text stringlengths 1 22.8M |
|---|
Woman's Hour was a British indie pop four-piece band based in London, England. The group was formed by siblings Fiona and William Burgess, along with Nicolas Graves and Josh Hunnisett. They played their first show in 2011, and released their debut album Conversations on Secretly Canadian in 2014. In December 2018 the band announced they would be breaking up after the release of their second album Ephyra.
History
After graduating with a degree in drama and applied theatre in 2011, front-woman Fiona, paired up with William and started a band. They were both craving something creative and William was already producing and making records. Woman's Hour got their name from the London female-focused news and culture show on BBC Radio 4. They originally started cataloguing their demos by different Radio 4 programs and the demo name Woman's Hour was adopted as the band's name.
They have graphics and monochrome visuals that were curated with TATE Modern and MoMA certified fine artists Oliver Chanarin and Adam Broomberg.
Their debut album, Conversations, was received well by critics, receiving a 10/10 score and the award of Debut Album Of The Year in The Line Of Best Fit for 2014 and 9/10 at Drowned in Sound among others.
In December 2018 the group announced they would be splitting up after the release of their second album Ephyra and a tour of the UK. The band's final show was at the Dome in Tufnell Park, north London on 22 March 2019.
Musical style
Allmusic described their musical style as "a signature sound of synths and subtlety".
Discography
Albums
2014: Conversations
2019: Ephyra
References
External links
Musical groups from London
Musical groups established in 2011
2011 establishments in England
Woman's Hour
Secretly Canadian artists |
The Maloka Museum is an interactive science museum located in Bogotá, Colombia. Visitors interact with a wide variety of exhibits that explore topics in science and technology.
The museum has 9 rooms, with different science and technology topics; the Telecommunications Room shows interactive games about the Binary System, the Computers' language, how cellphones work and the communication process.
The next room is The City: it shows different modules where you can see 3D images of Bogotá with glasses, the development and history of the city, and a model of the city showing all the buildings in it.
The Human is a room where visitors can explore the perfect machine: the human body.
The Universe room is one of the most popular rooms in the museum, where visitors can do experiments, such as knowing a person's weight on the various planets of Solar System.
Petroleum is another room located on the second floor. There one can see the process of exploring and exploiting that treasure, and its different kinds and characteristics.
The Water Room shows you through games the physical and chemical characteristics of that liquid; the others are the Biodiversity and Boys & Girls' room.
The museum has an Activity Zone with math games and activities too.
The museum has a dome theater where documentaries are shown.
See also
Geodesic dome
Hours of Operation
Monday to Friday: 8am. at 5pm., Saturdays 10am. to 7pm., Sundays and public holidays: 11am. at 7pm.
External links
Official Site
Places To Go in Bogotá: Maloka Interactive Center video and information
Science museums
Landmarks in Colombia
Museums in Bogotá |
```go
package controllers
import (
"database/sql"
"fmt"
"github.com/3xxx/engineercms/models"
"github.com/3xxx/flow"
"github.com/PuerkitoBio/goquery"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
// beego "github.com/beego/beego/v2/adapter"
_ "github.com/go-sql-driver/mysql"
"io"
"log"
"path"
"strconv"
"strings"
)
// VueFlow API
type FlowController struct {
web.Controller
}
func (c *FlowController) Get() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplName = "flow.tpl"
}
// var tx *sql.Tx
// tx, _ := db.Begin()
// db.Close()
// var db *sql.DB
// func init() {
// driver, connStr := "mysql", "travis@/flow?charset=utf8&parseTime=true"
// tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB)
// // flow.RegisterDB(tdb)
// if tdb == nil {
// log.Fatal("given database handle is `nil`")
// }
// db = tdb
// tx, _ := db.Begin()
// db.Close()
// }
// @Title show wf page
// @Description show workflow page
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 articls not found
// @router /workflow [get]
//
func (c *FlowController) WorkFlow() {
c.TplName = "index.html"
}
// @Title post wf doctype...
// @Description post workflowdoctype..
// @Param name query string true "The name of doctype"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtype [post]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowType() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
// func init() {
// orm.RegisterDriver("mysql", orm.DRMySQL)//
// orm.RegisterModel(new(Model))// model
// orm.RegisterDataBase("default", "mysql", "test:123456@/test?charset=utf8",30,30)//
//orm.RegisterDataBase("default", "mysql", "test:@/test?charset=utf8")//
// }
// driver, connStr := "mysql", "travis@/flow?charset=utf8&parseTime=true"
// tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB)
// if tdb == nil {
// log.Fatal("given database handle is `nil`")
// }
// db := tdb
// tx, _ := db.Begin()
// db.Close()
var tx *sql.Tx
name := c.GetString("name")
// beego.Info(name)
// jsoninfo := c.GetString("name1") //formdata
// beego.Info(jsoninfo)
//
_, err := flow.DocTypes.New(tx, name) //""
if err != nil {
fmt.Println(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit() //
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
}
//
type doctypelist struct {
Doctype []*flow.DocType `json:"doctypes"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf doctypelist...
// @Description get workflowdoctype..
// @Param page query string false "The page of doctype"
// @Param limit query string false "The size of page"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtypelist [get]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowTypeList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
doctype, err := flow.DocTypes.List(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.DocTypes.List(0, 0)
if err != nil {
logs.Error(err)
}
list := doctypelist{doctype, page1, len(arr)}
// tx.Commit()
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf doctype...
// @Description post workflowdoctype..
// @Param name query string false "The name of doctype"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtypeupdate [post]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowTypeUpdate() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
//
err = flow.DocTypes.Rename(tx, flow.DocTypeID(dtID), name) //""
if err != nil {
fmt.Println(err)
}
// tx.Commit()
c.Data["json"] = "ok"
c.ServeJSON()
}
// @Title post wf doctype...
// @Description post workflowdoctype..
// @Param name query string true "The name of doctype"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtypedelete [post]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowTypeDelete() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
//
_, err := flow.DocTypes.New(tx, name) //""
if err != nil {
fmt.Println(err)
}
c.Data["json"] = "ok"
c.ServeJSON()
}
// @Title post wf docstate...
// @Description post workflowdocstate..
// @Param name query string true "The name of docstate"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowstate [post]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowState() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
//
_, err := flow.DocStates.New(tx, name) //"..."
if err != nil {
fmt.Println(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit()
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// dsID2, err := flow.DocStates.New(tx, "...")
// if err != nil {
// fmt.Println(err)
// }
// dsID3, err := flow.DocStates.New(tx, "...")
// if err != nil {
// fmt.Println(err)
// }
// flow.DocStates.New(tx, "...")
// flow.DocStates.New(tx, "...")
// flow.DocStates.New(tx, "...")
// flow.DocStates.New(tx, "...")
c.Data["json"] = "ok"
c.ServeJSON()
}
// @Title post wf docstate...
// @Description post workflowdocstate..
// @Param name query string false "The name of docstate"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowstateupdate [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowStateUpdate() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
//
err = flow.DocStates.Rename(tx, flow.DocStateID(dtID), name) //""
if err != nil {
fmt.Println(err)
}
c.Data["json"] = "ok"
c.ServeJSON()
}
// @Title post wf docstate...
// @Description post workflowdocstate..
// @Param name query string true "The name of docstate"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowstatedelete [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowStateDelete() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
//
_, err := flow.DocStates.New(tx, name) //""
if err != nil {
fmt.Println(err)
}
c.Data["json"] = "ok"
c.ServeJSON()
}
//
type docstatelist struct {
Docstate []*flow.DocState `json:"docstates"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title post wf docstate...
// @Description post workflowdocstate..
// @Param page query string false "The page of docstate"
// @Param limit query string false "The size of page"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowstatelist [get]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowStateList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
docstate, err := flow.DocStates.List(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.DocStates.List(0, 0)
if err != nil {
logs.Error(err)
}
list := docstatelist{docstate, page1, len(arr)}
// tx.Commit()
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf docaction...
// @Description post workflowdocaction..
// @Param name query string true "The name of docaction"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowaction [post]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowAction() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
reconfirm := c.GetString("reconfirm")
// beego.Info(reconfirm)
var reconfirm1 bool
if reconfirm == "true" {
reconfirm1 = true
} else {
reconfirm1 = false
}
//
_, err := flow.DocActions.New(tx, name, reconfirm1) //""......
if err != nil {
fmt.Println(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
}
// @Title post wf docaction...
// @Description post workflowdocaction..
// @Param name query string false "The name of docaction"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowactionupdate [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowActionUpdate() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
//
err = flow.DocActions.Rename(tx, flow.DocActionID(dtID), name) //""
if err != nil {
fmt.Println(err)
}
c.Data["json"] = "ok"
c.ServeJSON()
}
// @Title post wf docaction...
// @Description post workflowdocaction..
// @Param name query string true "The name of docaction"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowactiondelete [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowActionDelete() {
}
//
type docactionlist struct {
Docaction []*flow.DocAction `json:"docactions"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf docaction...
// @Description get workflowdocaction..
// @Param page query string true "The page of docaction"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowactionlist [get]
// doctypestatenode
// actiontransitionevent
func (c *FlowController) FlowActionList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
docaction, err := flow.DocActions.List(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.DocActions.List(0, 0)
if err != nil {
logs.Error(err)
}
list := docactionlist{docaction, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf transition...
// @Description post transition..
// @Param name query string true "The name of transition"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtransition [post]
// doctypestatenode
// transitiondoctypedocstate1docactiondocstate2
func (c *FlowController) FlowTransition() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
// dtid := c.GetString("dtid")
dtid := c.GetString("dtid")
// beego.Info(dtid)
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid1 := c.GetString("dsid1")
dsID1, err := strconv.ParseInt(dsid1, 10, 64)
if err != nil {
logs.Error(err)
}
daid := c.GetString("daid")
daID, err := strconv.ParseInt(daid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid2 := c.GetString("dsid2")
dsID2, err := strconv.ParseInt(dsid2, 10, 64)
if err != nil {
logs.Error(err)
}
//1:oldstate1 action1 newstate2
err = flow.DocTypes.AddTransition(tx, flow.DocTypeID(dtID), flow.DocStateID(dsID1), flow.DocActionID(daID), flow.DocStateID(dsID2))
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit()
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
//2:oldstate2 action2 newstate3
// err = flow.DocTypes.AddTransition(tx, flow.DocTypeID(dtID1), flow.DocStateID(dsID2), flow.DocActionID(daID2), flow.DocStateID(dsID3))
// if err != nil {
// logs.Error(err)
// }
}
// @Title post wf doctransition...
// @Description post workflowdoctransition..
// @Param name query string false "The name of doctransition"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtransitionupdate [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowTransitionUpdate() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
//
err = flow.DocTypes.RenameTransition(tx, flow.DocTransitionID(dtID), name) //""
if err != nil {
fmt.Println(err)
}
// tx.Commit()
c.Data["json"] = "ok"
c.ServeJSON()
}
// @Title post wf doctransition...
// @Description post workflowdoctransition..
// @Param name query string true "The name of doctransition"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtransitiondelete [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowTransitionDelete() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid := c.GetString("dsid")
//pid64
dsID, err := strconv.ParseInt(dsid, 10, 64)
if err != nil {
logs.Error(err)
}
daid := c.GetString("daid")
//pid64
daID, err := strconv.ParseInt(daid, 10, 64)
if err != nil {
logs.Error(err)
}
err = flow.DocTypes.RemoveTransition(tx, flow.DocTypeID(dtID), flow.DocStateID(dsID), flow.DocActionID(daID))
if err != nil {
fmt.Println(err)
}
// tx.Commit()
c.Data["json"] = "ok"
c.ServeJSON()
}
//
type transitionlist struct {
Transisions []*flow.Transitionstruct `json:"transitions"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf transition...
// @Description post transition..
// @Param page query string true "The page of transition"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowtransitionlist [get]
// doctypefrom docstatetransion
func (c *FlowController) FlowTransitionList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
transisions, err := flow.DocTypes.TransitionsList(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.DocTypes.TransitionsList(0, 0)
if err != nil {
logs.Error(err)
}
list := transitionlist{transisions, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf Workflow...
// @Description post Workflow..
// @Param name query string true "The name of Workflow"
// @Param dtid query string true "The doctypeid of Workflow"
// @Param dsid query string true "The docstate of Workflow"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowworkflow [post]
// Workflow
// doctypeaction
func (c *FlowController) FlowWorkflow() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name") //-
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid := c.GetString("dsid")
dsID, err := strconv.ParseInt(dsid, 10, 64)
if err != nil {
logs.Error(err)
}
//doctypeworkflow
workflowID, err := flow.Workflows.New(tx, name, flow.DocTypeID(dtID), flow.DocStateID(dsID)) //...
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit()
logs.Info(workflowID)
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// workflowID2, err := flow.Workflows.New(tx, "-", dtID1, dsID1) //...-
// if err != nil {
// fmt.Println(err)
// }
// beego.Info(workflowID2)
//
//
}
//
type workflowlist struct {
Workflows []*flow.Workflow `json:"workflows"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title post wf Workflow...
// @Description post Workflow..
// @Param page query string true "The page of Workflow"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowworkflowlist [get]
// Workflow
// doctypeaction
func (c *FlowController) FlowWorkflowList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
workflows, err := flow.Workflows.List(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.Workflows.List(0, 0)
if err != nil {
logs.Error(err)
}
list := workflowlist{workflows, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf AccessContext...
// @Description post AccessContext..
// @Param name query string true "The name of AccessContext"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowaccesscontext [post]
// AccessContext
//
func (c *FlowController) FlowAccessContext() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
//
_, err := flow.AccessContexts.New(tx, name) //"Context"
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit() //
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
}
// @Title post wf docaccesscontext...
// @Description post workflowdocaccesscontext..
// @Param name query string false "The name of docaccesscontext"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowaccesscontextupdate [post]
// docstatestatenode
// actiontransitionevent
func (c *FlowController) FlowAccessContextUpdate() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
//
err = flow.AccessContexts.Rename(tx, flow.AccessContextID(dtID), name) //""
if err != nil {
fmt.Println(err)
}
c.Data["json"] = "ok"
c.ServeJSON()
}
//
type accesscontextlist struct {
AccessContexts []*flow.AccessContext `json:"accesscontexts"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf AccessContext...
// @Description post AccessContext..
// @Param page query string true "The page of AccessContext"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowaccesscontextlist [get]
// AccessContext
//
func (c *FlowController) FlowAccessContextList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
prefix := c.GetString("prefix")
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
accesscontexts, err := flow.AccessContexts.List(prefix, offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.AccessContexts.List(prefix, 0, 0)
if err != nil {
logs.Error(err)
}
list := accesscontextlist{accesscontexts, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf Node...
// @Description post Node..
// @Param name query string true "The name of Node"
// @Param dtid query string true "The doctypeid of Node"
// @Param dsid query string true "The docstateid of Node"
// @Param acid query string true "The accesssid of Node"
// @Param nodetype query string true "The nodetype of Node"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flownode [post]
// Node
// nodedoctypedocstate1accessworkflownamenodetype
// A `Node` each has to be defined for each document state of the workflow,
// except the final state. Please look at `_Workflows.AddNode`.
func (c *FlowController) FlowNode() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
// c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Credentials", "true")
var tx *sql.Tx
name := c.GetString("name")
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid := c.GetString("dsid")
dsID, err := strconv.ParseInt(dsid, 10, 64)
if err != nil {
logs.Error(err)
}
acid := c.GetString("acid")
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
var flownodetype flow.NodeType
nodetype := c.GetString("nodetype") // flow.NodeTypeBegin
switch nodetype {
case "begin":
flownodetype = flow.NodeTypeBegin
case "end":
flownodetype = flow.NodeTypeEnd
case "linear":
flownodetype = flow.NodeTypeLinear
case "branch":
flownodetype = flow.NodeTypeBranch
case "joinany":
flownodetype = flow.NodeTypeJoinAny
case "joinall":
flownodetype = flow.NodeTypeJoinAll
// NodeTypeEnd = "end"
// // NodeTypeLinear : one incoming, one outgoing
// NodeTypeLinear = "linear"
// // NodeTypeBranch : one incoming, two or more outgoing
// NodeTypeBranch = "branch"
// // NodeTypeJoinAny : two or more incoming, one outgoing
// NodeTypeJoinAny = "joinany"
// // NodeTypeJoinAll : two or more incoming, one outgoing
// NodeTypeJoinAll = "joinall"
}
//doctypeidworkflow
workflow, err := flow.Workflows.GetByDocType(flow.DocTypeID(dtID))
if err != nil {
logs.Error(err)
}
//workflownodeeventaction
// AddNode maps the given document state to the specified node. This
// map is consulted by the workflow when performing a state transition
// of the system.nodeID1
_, err = flow.Workflows.AddNode(tx, flow.DocTypeID(dtID), flow.DocStateID(dsID), flow.AccessContextID(acID), workflow.ID, name, flownodetype)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit()
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// _, err = flow.Workflows.AddNode(tx, dtID1, dsID2, accessContextID1, workflowID1, "--", flow.NodeTypeLinear)
// if err != nil {
// fmt.Println(err)
// }
// _, err = flow.Workflows.AddNode(tx, dtID1, dsID3, accessContextID1, workflowID1, "--", flow.NodeTypeEnd)
// if err != nil {
// fmt.Println(err)
// }
}
//
// type nodelist struct {
// Nodes []*flow.Node `json:"nodes"`
// Page int64 `json:"page"`
// Total int `json:"total"` //stringint64
// }
// @Title get wf Node...
// @Description post Node..
// @Param page query string true "The page of Node"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flownodelist [get]
// Node
func (c *FlowController) FlowNodeList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
// prefix := c.GetString("prefix")
// var offset, limit1, page1 int64
// var err error
// limit := c.GetString("limit")
// if limit == "" {
// limit1 = 0
// } else {
// limit1, err = strconv.ParseInt(limit, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// }
// page := c.GetString("page")
// if page == "" {
// limit1 = 0
// page1 = 1
// } else {
// page1, err = strconv.ParseInt(page, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// }
// if page1 <= 1 {
// offset = 0
// } else {
// offset = (page1 - 1) * limit1
// }
workflowid := c.GetString("workflowid")
workflowID, err := strconv.ParseInt(workflowid, 10, 64)
if err != nil {
logs.Error(err)
}
// if page1 <= 1 {
// offset = 0
// } else {
// offset = (page1 - 1) * limit
// }
// nodes, err := flow.Nodes.NodeList(offset, limit)//ac_id,
nodes, err := flow.Nodes.List(flow.WorkflowID(workflowID))
c.Data["json"] = nodes
c.ServeJSON()
}
// @Title post wf user...
// @Description post user..
// @Param firstname query string true "The firstname of user"
// @Param lastname query string true "The lastname of user"
// @Param email query string true "The email of user"
// @Param active query string true "The active of user"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowuser [post]
// user
// actiontransitionevent
func (c *FlowController) FlowUser() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
first_name := c.GetString("firstname")
last_name := c.GetString("lastname")
email := c.GetString("email")
active := c.GetString("active")
var err error
var uid flow.UserID
// var res sql.Result
if active == "true" {
uid, err = flow.Users.New(tx, first_name, last_name, email, 1)
// res, err = tx.Exec("INSERT INTO users_master(first_name, last_name, email, active) VALUES(?, ?, ?, ?)", first_name, last_name, email, 1)
} else {
uid, err = flow.Users.New(tx, first_name, last_name, email, 0)
// res, err = tx.Exec("INSERT INTO users_master(first_name, last_name, email, active) VALUES(?, ?, ?, ?)", first_name, last_name, email, 0)
}
//---
// res, err := tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES(` + first_name + `, ` + last_name + `, ` + email + `, ` + active1 + `)`)
if err != nil {
log.Fatalf("%v\n", err)
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// uid, _ := res.LastInsertId()
uID1 := flow.UserID(uid)
_, err = flow.Groups.NewSingleton(tx, uID1)
// tx.Commit()
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-2', 'email2@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ = res.LastInsertId()
// uID2 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID2)
// res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-3', 'email3@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ = res.LastInsertId()
// uID3 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID3)
// res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-4', 'email4@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ = res.LastInsertId()
// uID4 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID4)
}
//
type userlist struct {
Users []*flow.User `json:"users"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf user...
// @Description post user..
// @Param page query string true "The page of user"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowuserlist [get]
// user
// actiontransitionevent
func (c *FlowController) FlowUserList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
prefix := c.GetString("prefix")
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
nodes, err := flow.Users.List(prefix, offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.Users.List(prefix, 0, 0)
if err != nil {
logs.Error(err)
}
list := userlist{nodes, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf Group...
// @Description post Group..
// @Param name query string true "The name of Group"
// @Param grouptype query string true "The type of Group"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowgroup [post]
// Group
// actiontransitionevent
func (c *FlowController) FlowGroup() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
grouptype := c.GetString("grouptype")
// beego.Info(grouptype)
//
_, err := flow.Groups.New(tx, name, grouptype) //).(flow.GroupID)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// gID2 := fatal1(flow.Groups.New(tx, "", "G")).(flow.GroupID)
}
//
type grouplist struct {
Groups []*flow.Group `json:"groups"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf Group...
// @Description post Group..
// @Param page query string true "The page of Group"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowgrouplist [get]
// Group
// actiontransitionevent
func (c *FlowController) FlowGroupList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
groups, err := flow.Groups.List(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.Groups.List(0, 0)
if err != nil {
logs.Error(err)
}
list := grouplist{groups, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf GroupUser...
// @Description post Group..
// @Param name query string true "The name of GroupUser"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowusergroup [post]
// GroupUser
// usersgroup
func (c *FlowController) FlowUserGroup() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
// uid := c.GetString("uid")
// beego.Info(uid)
gid := c.GetString("gid")
//pid64
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
uid := make([]string, 0, 10)
c.Ctx.Input.Bind(&uid, "uid") //ul ==[str array]
// uid := c.GetStrings("uid")
// beego.Info(uid)
for i, v := range uid {
if v != "" {
uID, err := strconv.ParseInt(uid[i], 10, 64)
if err != nil {
logs.Error(err)
}
err = flow.Groups.AddUser(tx, flow.GroupID(gID), flow.UserID(uID))
}
}
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
// tx.Commit()
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
}
type GroupUsers struct {
Id flow.GroupID
Group *flow.Group
Users []*flow.User
}
// @Title get wf GroupUsers...
// @Description post Group..
// @Param name query string true "The name of GroupUser"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowgroupuserslist [get]
// GroupUsers
func (c *FlowController) FlowGroupUsersList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
groupusers := make([]GroupUsers, 0)
groups, err := flow.Groups.List(offset, limit1)
if err != nil {
logs.Error(err)
} else {
for _, v := range groups {
groupusersarr := make([]GroupUsers, 1)
users, err := flow.Groups.Users(flow.GroupID(v.ID))
if err != nil {
logs.Error(err)
}
groupusersarr[0].Id = v.ID
groupusersarr[0].Group = v
groupusersarr[0].Users = users
groupusers = append(groupusers, groupusersarr...)
}
}
c.Data["json"] = groupusers
c.ServeJSON()
}
// @Title post wf Role...
// @Description post Role..
// @Param name query string true "The name of Role"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowrole [post]
// Role
// actiontransitionevent
func (c *FlowController) FlowRole() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
name := c.GetString("name")
_, err := flow.Roles.New(tx, name)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// roleID2 := fatal1(flow.Roles.New(tx, "")).(flow.RoleID)
}
//
type rolelist struct {
Roles []*flow.Role `json:"roles"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf Role...
// @Description post Role..
// @Param page query string true "The page of Role"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowrolelist [get]
// role
func (c *FlowController) FlowRoleList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
roles, err := flow.Roles.List(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.Roles.List(0, 0)
if err != nil {
logs.Error(err)
}
list := rolelist{roles, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf Permission...
// @Description post Permission..
// @Param name query string true "The name of Permission"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowpermission [post]
// Permission
// actiontransitionevent
func (c *FlowController) FlowPermission() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
roleid := c.GetString("roleid")
//pid64
roleID, err := strconv.ParseInt(roleid, 10, 64)
if err != nil {
logs.Error(err)
}
dtid := c.GetString("dtid")
//pid64
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
//
daid := c.GetString("daid")
daID, err := strconv.ParseInt(daid, 10, 64)
if err != nil {
logs.Error(err)
}
actions := []flow.DocActionID{flow.DocActionID(daID)} //[]flow.DocActionID{daID1, daID2, daID3, daID4}
//roleaction
err = flow.Roles.AddPermissions(tx, flow.RoleID(roleID), flow.DocTypeID(dtID), actions)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
// fatal0(flow.Roles.AddPermissions(tx, roleID2, dtID1, []flow.DocActionID{daID1, daID2, daID3, daID4, daID5, daID6, daID7}))
}
type RolePermission struct {
RoleID flow.RoleID
Action map[string]struct {
DocTypeID flow.DocTypeID
Actions []*flow.DocAction
}
}
type Actions struct {
DocTypeID flow.DocTypeID
Actions []*flow.DocAction
}
// @Title get wf Permission...
// @Description post Permission..
// @Param page query string true "The page of Permission"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowrolepermissionlist [get]
// rolepermission
func (c *FlowController) FlowRolePermissionList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
// rolepermission := make([]RolePermission, 0)
rolepermission := make([]flow.RolePermission, 0)
roles, err := flow.Roles.List(offset, limit1)
if err != nil {
logs.Error(err)
} else {
for _, v := range roles {
rolepermissionarr := make([]flow.RolePermission, 1)
// rolepermissions, err := flow.Roles.Permissions(flow.RoleID(v.ID))
rolepermissions, err := flow.Roles.PermissionsList(flow.RoleID(v.ID))
if err != nil {
logs.Error(err)
}
rolepermissionarr[0] = rolepermissions
if rolepermissions.TypeAction.DocTypeID == 0 {
flowaction := make([]*flow.DocAction, 0, 1)
var da flow.DocAction
da.ID = 0
flowaction = append(flowaction, &da)
rolepermissionarr[0].TypeAction.Actions = flowaction
}
// rolepermissionarr[0].Action = rolepermissions
rolepermission = append(rolepermission, rolepermissionarr...)
}
}
c.Data["json"] = rolepermission
c.ServeJSON()
}
// @Title post wf GroupRole...
// @Description post GroupRole..
// @Param name query string true "The name of GroupRole"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowgrouprole [post]
// GroupRole
// accesscontext
func (c *FlowController) FlowGroupRole() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
acid := c.GetString("acid")
//pid64
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
gid := c.GetString("gid")
//pid64
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
roleid := c.GetString("roleid")
//pid64
roleID, err := strconv.ParseInt(roleid, 10, 64)
if err != nil {
logs.Error(err)
}
//grouprole
err = flow.AccessContexts.AddGroupRole(tx, flow.AccessContextID(acID), flow.GroupID(gID), flow.RoleID(roleID))
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
//grouproleaccesscontext
// err = flow.AccessContexts.AddGroupRole(tx, accessContextID1, gID2, roleID2)
// if err != nil {
// logs.Error(err) //UNIQUE constraint failed: wf_ac_group_roles.ac_id
// }
}
//
type grouprolelist struct {
GroupRoles []*flow.GroupRolesstruct `json:"grouproles"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf GroupRole...
// @Description get GroupRole..
// @Param page query string true "The page of GroupRole"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowgrouprolelist [get]
// grouprole-accesscontext
func (c *FlowController) FlowGroupRoleList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
// accesscontexts, err := flow.AccessContexts.List(prefix, offset, limit)
//groups,err:=
// var gids []flow.GroupID
// groupid := flow.GroupID(11)
// gids = append(gids, groupid)
// groupid = flow.GroupID(12)
// gids = append(gids, groupid)
// groupid = flow.GroupID(13)
// gids = append(gids, groupid)
// grouproles, err := flow.AccessContexts.GroupRoles(flow.AccessContextID(1), gids, offset, limit)
grouproles, err := flow.AccessContexts.GroupRolesList(offset, limit1)
if err != nil {
logs.Error(err)
}
arr, err := flow.AccessContexts.GroupRolesList(0, 0)
if err != nil {
logs.Error(err)
}
list := grouprolelist{grouproles, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title post wf document
// @Description post document
// @Param dtid query string true "The doctypeid of document"
// @Param acid query string true "The accesscontext of document"
// @Param gid query string true "The groupid of Group"
// @Param name query string true "The name of document"
// @Param data query string false "The data of document"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdoc [post]
//
func (c *FlowController) FlowDoc() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
//doctype
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
acid := c.GetString("acid")
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
gid := c.GetString("gid")
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
name := c.GetString("docname")
data := c.GetString("docdata")
//docdataproductid,
productid, err := strconv.ParseInt(data, 10, 64)
if err != nil {
logs.Error(err)
}
//productidproductdocument
//workflowdoctype
//doctype
//doctype
//context--
//doctype
//-
//documentdoctypeworkflowstatedocumentstate
//
//
//
// Document:
//
// Document
// flow
docNewInput := flow.DocumentsNewInput{
DocTypeID: flow.DocTypeID(dtID), //
AccessContextID: flow.AccessContextID(acID), //contex
GroupID: flow.GroupID(gID), //groupId,
Title: name, //
Data: data, //
}
// flow.Documents.New(tx, &docNewInput)
documentid, err := flow.Documents.New(tx, &docNewInput)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"}
c.ServeJSON()
} else {
//productidproductdocument
//DocTypeID
_, err = models.AddProductDocument(dtID, int64(documentid), productid)
if err != nil {
logs.Error(err)
}
c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": "ok", "data": "!"}
c.ServeJSON()
}
}
// @Title post wf document
// @Description post document
// @Param dtid query string true "The doctypeid of document"
// @Param acid query string true "The accesscontext of document"
// @Param gid query string true "The groupid of Group"
// @Param name query string true "The name of document"
// @Param id query string true "The id of document"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /wxflowdoc [post]
// article
func (c *FlowController) WxFlowDoc() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
//doctype
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
acid := c.GetString("acid")
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
gid := c.GetString("gid")
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
name := c.GetString("docname")
//flowdocidprodid
data := c.GetString("docdata")
//docididproductid,
articleid, err := strconv.ParseInt(data, 10, 64)
if err != nil {
logs.Error(err)
}
article, err := models.GetArticle(articleid)
if err != nil {
logs.Error(err)
}
docNewInput := flow.DocumentsNewInput{
DocTypeID: flow.DocTypeID(dtID), //
AccessContextID: flow.AccessContextID(acID), //contex
GroupID: flow.GroupID(gID), //groupId,
Title: name, //
Data: data, //
}
// flow.Documents.New(tx, &docNewInput)
documentid, err := flow.Documents.New(tx, &docNewInput)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"}
c.ServeJSON()
} else {
//productidproductdocument
//DocTypeID
_, err = models.AddProductDocument(dtID, int64(documentid), article.ProductId)
if err != nil {
logs.Error(err)
}
c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": "ok", "data": "!"}
c.ServeJSON()
}
}
//
type Documentlist struct {
Docs []*flow.Document `json:"docs"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf document
// @Description get document
// @Param dtid query string true "The id of doctype"
// @Param acid query string true "The id of accesscontext"
// @Param gid query string false "The id of group"
// @Param dsid query string false "The id of docstate"
// @Param page query string true "The page of doc"
// @Param limit query string false "The limit page of doc"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdocumentlist [get]
// 1.,
func (c *FlowController) FlowDocumentList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
//doctype
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
acid := c.GetString("acid")
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
//group
// uses.GroupsOf(uid)
// SingletonGroupOf(uid)
// gid := c.GetString("gid")
// if gid != "" {
// gID, err := strconv.ParseInt(gid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// }
// dsid := c.GetString("dsid")
// if gid != "" {
// dsID, err := strconv.ParseInt(dsid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// }
documentslistinput := flow.DocumentsListInput{
DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required
AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required
// GroupID: flow.GroupID(gID), // List documents created by this (singleton) group
// DocStateID: flow.DocStateID(dsID), // List documents currently in this state
//CtimeStarting: time.Now(), // List documents created after this time
//CtimeBefore: time.Now(), // List documents created before this time
//TitleContains: string, // List documents whose title contains the given text; expensive operation
//RootOnly: bool, // List only root (top-level) documents
}
documents, err := flow.Documents.List(&documentslistinput, offset, limit1)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
}
arr, err := flow.Documents.List(&documentslistinput, 0, 0)
if err != nil {
logs.Error(err)
}
list := Documentlist{documents, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title get wf document
// @Description get document
// @Param dtid query string true "The id of doctype"
// @Param acid query string true "The id of accesscontext"
// @Param gid query string false "The id of group"
// @Param dsid query string false "The id of docstate"
// @Param page query string true "The page of doc"
// @Param limit query string false "The limit page of doc"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdocumentlist2 [get]
// 1.,
func (c *FlowController) FlowDocumentList2() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
//doctype
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
acid := c.GetString("acid")
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid := c.GetString("dsid")
dsID, err := strconv.ParseInt(dsid, 10, 64)
if err != nil {
logs.Error(err)
}
//group
var uID int64
username, _, _, _, _ := checkprodRole(c.Ctx)
if err != nil {
logs.Error(err)
}
flowuser, err := flow.Users.GetByName(username)
if err != nil {
logs.Error(err)
} else {
uID = int64(flowuser.ID)
}
// beego.Info(uID)
//
singletongroup, err := flow.Users.SingletonGroupOf(flow.UserID(uID))
if err != nil {
logs.Error(err)
}
documentslistinput := flow.DocumentsListInput{
DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required
AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required
GroupID: singletongroup.ID, // List documents created by this (singleton) group
DocStateID: flow.DocStateID(dsID), // List documents currently in this state
//CtimeStarting: time.Now(), // List documents created after this time
//CtimeBefore: time.Now(), // List documents created before this time
//TitleContains: string, // List documents whose title contains the given text; expensive operation
//RootOnly: bool, // List only root (top-level) documents
}
documents, err := flow.Documents.List(&documentslistinput, offset, limit1)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
}
arr, err := flow.Documents.List(&documentslistinput, 0, 0)
if err != nil {
logs.Error(err)
}
list := Documentlist{documents, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
//
type Doclist struct {
Docs []*flow.Documentstruct `json:"docs"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get wf doclist
// @Description get workflow doclist
// @Param dtid query string true "The id of doctype"
// @Param page query string true "The page of doc"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdoclist [get]
//
func (c *FlowController) FlowDocList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
//doctype
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
// acid := c.GetString("acid")
// acID, err := strconv.ParseInt(acid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// gid := c.GetString("gid")
// gID, err := strconv.ParseInt(gid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// dsid := c.GetString("dsid")
// dsID, err := strconv.ParseInt(dsid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// documentslistinput := flow.DocumentsListInput{
// DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required
// AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required
// GroupID: flow.GroupID(gID), // List documents created by this (singleton) group
// DocStateID: flow.DocStateID(dsID), // List documents currently in this state
// //CtimeStarting: time.Now(), // List documents created after this time
// //CtimeBefore: time.Now(), // List documents created before this time
// //TitleContains: string, // List documents whose title contains the given text; expensive operation
// //RootOnly: bool, // List only root (top-level) documents
// }
// documents, err := flow.Documents.List(&documentslistinput, offset, limit)
//events
// DocEventsListInput
// type DocEventsListInput struct {
// DocTypeID // Events on documents of this type are listed
// AccessContextID // Access context from within which to list
// GroupID // List events created by this (singleton) group
// DocStateID // List events acting on this state
// CtimeStarting time.Time // List events created after this time
// CtimeBefore time.Time // List events created before this time
// Status EventStatus // List events that are in this state of application
// }
// DocEvents, err := flow.DocEvents.List(DocEventsListInput)
// if err != nil {
// logs.Error(err)
// }
var offset, limit1, page1 int64
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
documents, err := flow.Documents.DocumentList(flow.DocTypeID(dtID), offset, limit1)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
}
arr, err := flow.Documents.DocumentList(flow.DocTypeID(dtID), 0, 0)
if err != nil {
logs.Error(err)
}
list := Doclist{documents, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title get wf doclist
// @Description get workflow doclist
// @Param dtid query string true "The id of doctype"
// @Param page query string true "The page of doc"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdoctransitionlist [get]
// doc
// func (c *FlowController) FlowDocTransitionList() {
// // var tx *sql.Tx
// var err error
// var offset, limit1, page1 int64
// limit := c.GetString("limit")
// if limit == "" {
// limit1 = 0
// } else {
// limit1, err = strconv.ParseInt(limit, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// }
// page := c.GetString("page")
// if page == "" {
// limit1 = 0
// page1 = 1
// } else {
// page1, err = strconv.ParseInt(page, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// }
// if page1 <= 1 {
// offset = 0
// } else {
// offset = (page1 - 1) * limit1
// }
// //doctype
// //doctype
// dtid := c.GetString("dtid")
// dtID, err := strconv.ParseInt(dtid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// //accesscontext
// acid := c.GetString("acid")
// acID, err := strconv.ParseInt(acid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// //
// gid := c.GetString("gid")
// gID, err := strconv.ParseInt(gid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// //
// dsid := c.GetString("dsid")
// dsID, err := strconv.ParseInt(dsid, 10, 64)
// if err != nil {
// logs.Error(err)
// }
// documentslistinput := flow.DocumentsListInput{
// DocTypeID: flow.DocTypeID(dtID), // Documents of this type are listed; required
// AccessContextID: flow.AccessContextID(acID), // Access context from within which to list; required
// GroupID: flow.GroupID(gID), // List documents created by this (singleton) group
// DocStateID: flow.DocStateID(dsID), // List documents currently in this state
// //CtimeStarting: time.Now(), // List documents created after this time
// //CtimeBefore: time.Now(), // List documents created before this time
// //TitleContains: string, // List documents whose title contains the given text; expensive operation
// //RootOnly: bool, // List only root (top-level) documents
// }
// documents, err := flow.Documents.List(&documentslistinput, offset, limit1)
// if err != nil {
// logs.Error(err)
// }
// //transition
// for _, v := range documents {
// TransitionMap, err := flow.DocTypes.Transitions(flow.DocTypeID(dtID), v.State.ID)
// if err != nil {
// logs.Error(err)
// }
// }
// if err != nil {
// logs.Error(err)
// c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
// c.ServeJSON()
// } else {
// c.Data["json"] = docevents
// c.ServeJSON()
// }
// }
// A `DocEvent` has to be constructed to signal to the workflow
// that a `DocAction` has been performed by either the user or a system event.
// Document states are changed by `Workflow.ApplyEvent`, to which this event has to be fed.
// In turn, the workflow loads the node corresponding to the document state specified in the event,
// and applies the event to the node with the specified document.
// The node applies the given document action to transition the document into
// the target state of the action. These transitions are defined for document types.
// Please see `Transition` and `TransitionMap` in the file `doctype.go`.
// myDocument, err := Documents.Get(tx, DocTypeID(1), DocumentID(1))
// retMap, err := DocTypes.Transitions(DocTypeID(1), myDocument.State.ID)
// Yes, once you have the transitions defined, this query gives you the set of possible next states,
// together with which actions would lead to such transitions.
// @Title post wf event
// @Description get docevent
// @Param name query string true "The name of event"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdocevent [post]
// events
func (c *FlowController) FlowEvent() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
docid := c.GetString("docid")
docID, err := strconv.ParseInt(docid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid := c.GetString("dsid")
dsID, err := strconv.ParseInt(dsid, 10, 64)
if err != nil {
logs.Error(err)
}
daid := c.GetString("daid")
daID, err := strconv.ParseInt(daid, 10, 64)
if err != nil {
logs.Error(err)
}
gid := c.GetString("gid")
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
text := c.GetString("text")
// beego.Info(text)
//documentevents
//documentDoctypes.Transitionsstateaction
//events
//listevents
docEventInput := flow.DocEventsNewInput{
DocTypeID: flow.DocTypeID(dtID), //flow.DocTypeID(1),
DocumentID: flow.DocumentID(docID),
DocStateID: flow.DocStateID(dsID), //document state must be this state
DocActionID: flow.DocActionID(daID), //Action performed by `Group`; required,
GroupID: flow.GroupID(gID), //Group (user) who performed the action that raised this event; required()
Text: text, //Any comments or notes; required
}
// beego.Info(docEventInput)
_, err = flow.DocEvents.New(tx, &docEventInput)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
}
// @Title get wf eventlist
// @Description get doceventlist
// @Param page query string true "The page of event"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdoceventlist [get]
// events
func (c *FlowController) FlowEventList() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
// var tx *sql.Tx
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
acid := c.GetString("acid")
acID, err := strconv.ParseInt(acid, 10, 64)
if err != nil {
logs.Error(err)
}
gid := c.GetString("gid")
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
dsid := c.GetString("dsid")
dsID, err := strconv.ParseInt(dsid, 10, 64)
if err != nil {
logs.Error(err)
}
//listevents
//doctypeiddoctypedoctype
docEventListInput := flow.DocEventsListInput{
DocTypeID: flow.DocTypeID(dtID), // Events on documents of this type are listed
AccessContextID: flow.AccessContextID(acID), // Access context from within which to list
GroupID: flow.GroupID(gID), // List events created by this (singleton) group
DocStateID: flow.DocStateID(dsID), // List events acting on this state
// CtimeStarting: time.Time, // List events created after this time
// CtimeBefore: time.Time, // List events created before this time
Status: flow.EventStatusAll, // EventStatusAll,List events that are in this state of application
}
var offset, limit1, page1 int64
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
myDocEvent, err := flow.DocEvents.List(&docEventListInput, offset, limit1)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = myDocEvent
c.ServeJSON()
}
}
type DocumentDetail struct {
// DocTypeId flow.DocTypeID
Document *flow.Document
Action []flow.DocAction
History []*flow.DocEventsHistory
Text string
//product
Product models.Product
}
// @Title get wf document details
// @Description get documentdetail
// @Param dtid query string true "The id of doctype"
// @Param docid query string true "The id of doc"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowdocumentdetail [get]
// 2.actions
func (c *FlowController) FlowDocumentDetail() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx
//doctype
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
docid := c.GetString("docid")
docID, err := strconv.ParseInt(docid, 10, 64)
if err != nil {
logs.Error(err)
}
document, err := flow.Documents.Get(tx, flow.DocTypeID(dtID), flow.DocumentID(docID))
if err != nil {
logs.Error(err)
}
//actions
//actions
TransitionMap, err := flow.DocTypes.Transitions(flow.DocTypeID(dtID), document.State.ID)
if err != nil {
logs.Error(err)
}
//groups
// beegon.Info(TransitionMap[document.State.ID].Transitions[].Upon.ID)
// {
// "8": {
// "From": {
// "ID": 8,
// "Name": "..."
// },
// "Transitions": {
// "12": {
// "Upon": {
// "ID": 12,
// "Name": "",
// "Reconfirm": false
// },
// "To": {
// "ID": 9,
// "Name": "..."
// }
// },
// "14": {
// "Upon": {
// "ID": 14,
// "Name": "",
// "Reconfirm": true
// },
// "To": {
// "ID": 7,
// "Name": "..."
// }
// }
// }
// }
// }
//
// var documentdetail DocumentDetail
// for key, value := range TransitionMap[document.State.ID].Transitions {
// beego.Info(key)
// beego.Info(value.Upon.ID)
// documentdetailarr := make([]flow.DocAction, 1)
// documentdetailarr[0].ID = value.Upon.ID
// documentdetailarr[0].Name = value.Upon.Name
// documentdetail.Action = append(documentdetail.Action, documentdetailarr...)
// }
// documentdetail.Document = document
//
documentdetail := make([]DocumentDetail, 1)
if _, ok := TransitionMap[document.State.ID]; ok {
//
for _, value := range TransitionMap[document.State.ID].Transitions {
// beego.Info(key)
// beego.Info(value.Upon.ID)
documentdetailarr := make([]flow.DocAction, 1)
documentdetailarr[0].ID = value.Upon.ID
documentdetailarr[0].Name = value.Upon.Name
documentdetail[0].Action = append(documentdetail[0].Action, documentdetailarr...)
}
}
documentdetail[0].Document = document
//
// docEventListInput := flow.DocEventsListInput{
// DocTypeID: flow.DocTypeID(dtID), // Events on documents of this type are listed
// AccessContextID: flow.AccessContextID(acID), // Access context from within which to list
// GroupID: flow.GroupID(gID), // List events created by this (singleton) group
// DocStateID: flow.DocStateID(dsID), // List events acting on this state
// // CtimeStarting: time.Time, // List events created after this time
// // CtimeBefore: time.Time, // List events created before this time
// Status: flow.EventStatusAll, // EventStatusAll,List events that are in this state of application
// }
// myDocEvent, err := flow.DocEvents.List(&docEventListInput, offset, limit1)
doceventshistory, err := flow.DocEvents.DocEventsHistory(flow.DocTypeID(dtID), flow.DocumentID(docID))
if err != nil {
logs.Error(err)
}
documentdetail[0].History = doceventshistory
//flow.DocTypeID(dtID), flow.DocumentID(docID)product
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
c.Data["json"] = documentdetail
c.ServeJSON()
}
}
// @Title post wf next
// @Description post workflow next
// @Param dtid query string true "The id of doctype"
// @Param daid query string true "The id of action"
// @Param docid query string true "The id of document"
// @Param gid query string true "The id of group"
// @Param text query string false "The text of apply"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flownext [post]
// FlowDocActionactiondocstate
func (c *FlowController) FlowNext() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx //nilcommitflowcommit
var tx1 *sql.Tx
// GetByDocType
// :
// jsoninfo := c.GetString("docaction") //formdata
// beego.Info(jsoninfo)
// {"Document":
// {
// "ID":19,
// "DocType":{"ID":3,"Name":""},
// "Path":"",
// "AccessContext":{"ID":1},
// "DocState":{"ID":8,"Name":"..."},
// "Group":{"ID":11,"Name":"","GroupType":""},
// "Ctime":"2019-01-11T21:42:50Z",
// "Title":"",
// "Data":": 1, :2"},
// "Action":[
// {"ID":14,"Name":"","Reconfirm":false},
// {"ID":12,"Name":"","Reconfirm":false}
// ]
// }
// }
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
daid := c.GetString("daid")
daID, err := strconv.ParseInt(daid, 10, 64)
if err != nil {
logs.Error(err)
}
docid := c.GetString("docid")
docID, err := strconv.ParseInt(docid, 10, 64)
if err != nil {
logs.Error(err)
}
//messageid
messageid := c.GetString("messageid")
messageID, err := strconv.ParseInt(messageid, 10, 64)
if err != nil {
logs.Error(err)
}
//dociddocument
document, err := flow.Documents.Get(tx, flow.DocTypeID(dtID), flow.DocumentID(docID))
if err != nil {
logs.Error(err)
}
//documentworkflow
myWorkflow, err := flow.Workflows.GetByDocType(document.DocType.ID)
if err != nil {
logs.Error(err)
}
var uID int64
username, _, _, _, _ := checkprodRole(c.Ctx)
// beego.Info(username)
// beego.Info(uid)
// if err != nil {
// logs.Error(err)
// }
flowuser, err := flow.Users.GetByName(username)
if err != nil {
logs.Error(err)
} else {
uID = int64(flowuser.ID)
}
// beego.Info(uID)
//
singletongroup, err := flow.Users.SingletonGroupOf(flow.UserID(uID))
if err != nil {
logs.Error(err)
}
// beego.Info(singletongroup)
//
gid := make([]string, 0, 2)
c.Ctx.Input.Bind(&gid, "gid")
// beego.Info(gid)
var groupIds []flow.GroupID
for _, v := range gid {
gID, err := strconv.ParseInt(v, 10, 64)
if err != nil {
logs.Error(err)
}
groupIds = append(groupIds, flow.GroupID(gID))
}
// beego.Info(groupIds)
text := c.GetString("text")
if text == "" {
text = "no comments"
}
//event
docEventInput := flow.DocEventsNewInput{
DocTypeID: flow.DocTypeID(dtID),
DocumentID: flow.DocumentID(docID),
DocStateID: document.State.ID, //document state must be this state
DocActionID: flow.DocActionID(daID), //Action performed by `Group`; required,
GroupID: singletongroup.ID, //Group (user) who performed the action that raised this event; required()
Text: text, //Any comments or notes; required
}
// beego.Info(docEventInput)
deID, err := flow.DocEvents.New(tx, &docEventInput)
if err != nil {
logs.Error(err)
}
myDocEvent, err := flow.DocEvents.Get(flow.DocEventID(deID))
if err != nil {
logs.Error(err)
} else {
// beego.Info(myDocEvent)
}
//unreadfalse
newDocStateId, err := myWorkflow.ApplyEvent(tx1, myDocEvent, groupIds)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
//
//messageidmailbox
err = flow.Mailboxes.SetStatusByUser(tx, flowuser.ID, flow.MessageID(messageID), false)
if err != nil {
logs.Error(err)
}
fmt.Println("newDocStateId=", newDocStateId, err)
c.Data["json"] = map[string]interface{}{"err": nil, "data": "!"}
c.ServeJSON()
}
}
// @Title post wf next
// @Description post workflow next
// @Param dtid query string true "The id of doctype"
// @Param daid query string true "The id of action"
// @Param articleid query string true "The id of article"
// @Param gid query string true "The id of group"
// @Param messageid query string true "The messageid of doc"
// @Param text query string false "The text of apply"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /wxflownext [post]
// next
func (c *FlowController) WxFlowNext() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var tx *sql.Tx //nilcommitflowcommit
var tx1 *sql.Tx
// var openID string
var user models.User
var err error
var uID int64
openid := c.GetSession("openID")
if openid != nil {
user, err = models.GetUserByOpenID(openid.(string))
if err != nil {
logs.Error(err)
} else {
flowuser, err := flow.Users.GetByName(user.Username) //user.Username
if err != nil {
logs.Error(err)
uID = 5
} else {
uID = int64(flowuser.ID)
}
}
} else {
uID = 5
// c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"}
// c.ServeJSON()
}
dtid := c.GetString("dtid")
dtID, err := strconv.ParseInt(dtid, 10, 64)
if err != nil {
logs.Error(err)
}
daid := c.GetString("daid")
daID, err := strconv.ParseInt(daid, 10, 64)
if err != nil {
logs.Error(err)
}
articleid := c.GetString("articleid")
articleID, err := strconv.ParseInt(articleid, 10, 64)
if err != nil {
logs.Error(err)
}
article, err := models.GetArticle(articleID)
if err != nil {
logs.Error(err)
}
//article.productiddocumentid
proddocument, err := models.GetProductDocument(article.ProductId)
if err != nil {
logs.Error(err)
}
messageid := c.GetString("messageid")
messageID, err := strconv.ParseInt(messageid, 10, 64)
if err != nil {
logs.Error(err)
}
//mailboxexidmailboxmessageid
// notification,err:=flow.Mailboxes.GetMessage(flow.mmailboxesID)
//dociddocument
// beego.Info(article.ProductId)
document, err := flow.Documents.Get(tx, flow.DocTypeID(dtID), flow.DocumentID(proddocument.DocumentId))
if err != nil {
logs.Error(err)
}
//documentworkflow
myWorkflow, err := flow.Workflows.GetByDocType(document.DocType.ID)
if err != nil {
logs.Error(err)
}
//
singletongroup, err := flow.Users.SingletonGroupOf(flow.UserID(uID))
if err != nil {
logs.Error(err)
}
//
// gid := make([]string, 0, 2)
// c.Ctx.Input.Bind(&gid, "gid")
gid := make([]string, 1, 2)
gid[0] = c.GetString("gid")
var groupIds []flow.GroupID
for _, v := range gid {
gID, err := strconv.ParseInt(v, 10, 64)
if err != nil {
logs.Error(err)
}
groupIds = append(groupIds, flow.GroupID(gID))
}
text := c.GetString("text")
if text == "" {
text = "no comments"
}
//event
docEventInput := flow.DocEventsNewInput{
DocTypeID: flow.DocTypeID(dtID),
DocumentID: flow.DocumentID(proddocument.DocumentId),
DocStateID: document.State.ID, //document state must be this state
DocActionID: flow.DocActionID(daID), //Action performed by `Group`; required,
GroupID: singletongroup.ID, //Group (user) who performed the action that raised this event; required()
Text: text, //Any comments or notes; required
}
deID, err := flow.DocEvents.New(tx, &docEventInput)
if err != nil {
logs.Error(err)
}
myDocEvent, err := flow.DocEvents.Get(flow.DocEventID(deID))
if err != nil {
logs.Error(err)
} else {
// beego.Info(myDocEvent)
}
//unreadfalse
newDocStateId, err := myWorkflow.ApplyEvent(tx1, myDocEvent, groupIds)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"}
c.ServeJSON()
} else {
//
//messageid~~~~%%%&&******
//messageidmailbox()
notification, err := flow.Mailboxes.GetMessageList(flow.MessageID(messageID), 0, 0, false)
if err != nil {
logs.Error(err)
}
for _, v := range notification {
err = flow.Mailboxes.SetStatusByUser(tx, flow.UserID(uID), flow.MessageID(v.Message.ID), false)
if err != nil {
logs.Error(err)
}
}
fmt.Println("newDocStateId=", newDocStateId, err)
c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": nil, "data": "!"}
c.ServeJSON()
}
}
//
type mailboxlist struct {
Notification []*flow.Notification `json:"notification"`
Page int64 `json:"page"`
Total int `json:"total"` //stringint64
}
// @Title get user mailbox
// @Description get usermailbox
// @Param uid query string true "The id of user"
// @Param page query string true "The page of mailbox"
// @Param limit query string false "The limit page of mailbox"
// @Param unread query string false "The unread of mailbox"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowusermailbox [get]
// 1.
func (c *FlowController) FlowUserMailbox() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
//doctype
uid := c.GetString("uid")
uID, err := strconv.ParseInt(uid, 10, 64)
if err != nil {
logs.Error(err)
}
var unreadbool bool
unread := c.GetString("unread")
if unread != "" {
if unread == "true" {
unreadbool = true
} else {
unreadbool = false
}
} else {
unreadbool = false
}
notification, err := flow.Mailboxes.ListByUser(flow.UserID(uID), offset, limit1, unreadbool)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
}
arr, err := flow.Mailboxes.ListByUser(flow.UserID(uID), 0, 0, unreadbool)
if err != nil {
logs.Error(err)
}
list := mailboxlist{notification, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title get user mailbox
// @Description get usermailbox
// @Param uid query string true "The id of user"
// @Param page query string true "The page of mailbox"
// @Param limit query string false "The limit page of mailbox"
// @Param unread query string false "The unread of mailbox"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowusermailbox2 [get]
// 1.
func (c *FlowController) FlowUserMailbox2() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
// var uID int64
var unreadbool bool
unread := c.GetString("unread")
if unread == "true" {
unreadbool = true
} else {
unreadbool = false
}
username, _, _, _, _ := checkprodRole(c.Ctx)
// beego.Info(username)
// beego.Info(uid)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
} else {
flowuser, err := flow.Users.GetByName(username)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "flow!"}
c.ServeJSON()
} else {
// uID = int64(flowuser.ID)
notification, err := flow.Mailboxes.ListByUser(flowuser.ID, offset, limit1, unreadbool)
// notification, err := flow.Mailboxes.ListByUser(flow.UserID(uID), offset, limit1, unreadbool)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
}
arr, err := flow.Mailboxes.ListByUser(flowuser.ID, 0, 0, unreadbool)
// arr, err := flow.Mailboxes.ListByUser(flow.UserID(uID), 0, 0, unreadbool)
if err != nil {
logs.Error(err)
}
list := mailboxlist{notification, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
}
}
// @Title get user mailbox
// @Description get usermailbox
// @Param page query string true "The page of mailbox"
// @Param limit query string false "The limit page of mailbox"
// @Param unread query string false "The unread of mailbox"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /wxflowusermailbox2 [get]
//
// messageidwxflownext
func (c *FlowController) WxFlowUserMailbox2() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
wxsite, err := web.AppConfig.String("wxreqeustsite")
if err != nil {
logs.Error(err)
}
var offset, limit1, page1 int64
// var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
// var uID int64
var unreadbool bool
unread := c.GetString("unread")
if unread == "true" {
unreadbool = true
} else {
unreadbool = false
}
// username, _, _, _, _ := checkprodRole(c.Ctx)
var user models.User
var uID int64
openid := c.GetSession("openID")
if openid != nil {
user, err = models.GetUserByOpenID(openid.(string))
if err != nil {
logs.Error(err)
} else {
flowuser, err := flow.Users.GetByName(user.Username) //user.Username
if err != nil {
logs.Error(err)
uID = 6
} else {
uID = int64(flowuser.ID)
}
}
} else {
uID = 6
// c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"}
// c.ServeJSON()
}
// if err != nil {
// logs.Error(err)
// c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
// c.ServeJSON()
// } else {
// flowuser, err := flow.Users.GetByName(username)
// if err != nil {
// logs.Error(err)
// c.Data["json"] = map[string]interface{}{"err": err, "data": "flow!"}
// c.ServeJSON()
// } else {
// uID = int64(flowuser.ID)
Articleslice := make([]WxArticle, 0)
articlearr := make([]WxArticle, 1)
var tx *sql.Tx
//idflowuidgroupidsingle
notification, err := flow.Mailboxes.ListByUser(flow.UserID(uID), offset, limit1, unreadbool)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"info": "ERR", "err": err, "data": "!"}
c.ServeJSON()
}
for _, v := range notification {
// beego.Info(v.ID)
productdoc, err := models.GetDocumentProduct(int64(v.Message.DocID))
if err != nil {
logs.Error(err)
} else {
// for _, w := range products {
product, err := models.GetProd(productdoc.ProductId)
if err != nil {
logs.Error(err)
}
//
Articles, err := models.GetWxArticles(productdoc.ProductId)
if err != nil {
logs.Error(err)
}
//flow
// proddoc, err := models.GetProductDocument(v.Message.DocID)
// if err != nil {
// logs.Error(err)
// } else {
document, err := flow.Documents.Get(tx, v.Message.DocType.ID, v.Message.DocID)
if err != nil {
logs.Error(err)
} else {
// linkarr[0].DocState = document.State
// linkarr[0].ProdDoc = proddoc
// }
articlearr[0].DocState = document.State
}
articlearr[0].DocNotification.Message.ID = v.Message.ID
articlearr[0].ProdDoc = productdoc
for _, x := range Articles {
//
slice2 := make([]Img, 0)
var r io.Reader = strings.NewReader(string(x.Content))
doc, err := goquery.NewDocumentFromReader(r)
if err != nil {
logs.Error(err)
}
doc.Find("img").Each(func(i int, s *goquery.Selection) {
sel, _ := s.Attr("src")
aa := make([]Img, 1)
aa[0].Src = sel
aa[0].Name = path.Base(sel)
slice2 = append(slice2, aa...)
})
//
likes, err := models.GetAllTopicLikes(x.Id)
if err != nil {
logs.Error(err)
}
//
comments, err := models.GetAllTopicReplies(x.Id)
if err != nil {
logs.Error(err)
}
articlearr[0].Id = x.Id
articlearr[0].Title = product.Title
articlearr[0].Subtext = x.Subtext
articlearr[0].Author = product.Principal
articlearr[0].Views = x.Views
articlearr[0].LikeNum = len(likes)
articlearr[0].CommentNum = len(comments)
if len(slice2) > 0 {
articlearr[0].ImgUrl = wxsite + slice2[0].Src
} else {
articlearr[0].ImgUrl = wxsite + "/static/img/go.jpg"
}
articlearr[0].LeassonType = 1
articlearr[0].ProductId = x.ProductId
Articleslice = append(Articleslice, articlearr...)
}
}
}
// arr, err := flow.Mailboxes.ListByUser(flow.UserID(uID), 0, 0, unreadbool)
// if err != nil {
// logs.Error(err)
// }
// list := mailboxlist{notification, page1, len(arr)}
c.Data["json"] = map[string]interface{}{"info": "SUCCESS", "err": nil, "articles": Articleslice} //list
c.ServeJSON()
// }
// }
}
// @Title get group mailbox
// @Description get groupmailbox
// @Param gid query string true "The id of group"
// @Param page query string true "The page of mailbox"
// @Param limit query string false "The limit page of mailbox"
// @Param unread query string false "The unread of mailbox"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /flowgroupmailbox [get]
// 1.
func (c *FlowController) FlowGroupMailbox() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var offset, limit1, page1 int64
var err error
limit := c.GetString("limit")
if limit == "" {
limit1 = 0
} else {
limit1, err = strconv.ParseInt(limit, 10, 64)
if err != nil {
logs.Error(err)
}
}
page := c.GetString("page")
if page == "" {
limit1 = 0
page1 = 1
} else {
page1, err = strconv.ParseInt(page, 10, 64)
if err != nil {
logs.Error(err)
}
}
if page1 <= 1 {
offset = 0
} else {
offset = (page1 - 1) * limit1
}
//doctype
gid := c.GetString("gid")
gID, err := strconv.ParseInt(gid, 10, 64)
if err != nil {
logs.Error(err)
}
unread := c.GetString("unread")
var unreadbool bool
// if unread != "" {
if unread == "true" {
unreadbool = true
} else {
unreadbool = false
}
// } else {
// unreadbool = false
// }
notification, err := flow.Mailboxes.ListByGroup(flow.GroupID(gID), offset, limit1, unreadbool)
if err != nil {
logs.Error(err)
c.Data["json"] = map[string]interface{}{"err": err, "data": "!"}
c.ServeJSON()
}
arr, err := flow.Mailboxes.ListByGroup(flow.GroupID(gID), 0, 0, unreadbool)
if err != nil {
logs.Error(err)
}
list := mailboxlist{notification, page1, len(arr)}
c.Data["json"] = list
c.ServeJSON()
}
// @Title get flowchart text
// @Description get flowchart text
// @Param docstate query string true "The state of document"
// @Success 200 {object} models.GetProductsPage
// @Failure 400 Invalid page supplied
// @Failure 404 data not found
// @router /liucheng [get]
// 2.flowchart
func (c *FlowController) LiuCheng() {
c.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Origin", c.Ctx.Request.Header.Get("Origin"))
var code, code1, code2, code3, code4, code5, code6, code7, code8, code9, code10, code11, code12, code13, code14, code15, code16, code17, code18, code19, code20 string
code14 = "st->input->design->check->countersign\n"
code15 = "countersign(yes,right)->countersignYes->review\n"
code16 = "countersign(no,left)->review->auditcond\n"
code17 = "auditcond(yes)->audit->approvalcond\n"
code18 = "auditcond(no,right)->print\n"
code19 = "approvalcond(no,right)->print\n"
code20 = "approvalcond(yes)->approval->print->e\n"
docstate := c.GetString("docstate")
switch docstate {
case "...":
code1 = "st=>start: |past\n"
code2 = "e=>end: \n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |current\n"
code5 = "check=>operation: \n"
code6 = "countersign=>condition: ?\n"
code7 = "countersignYes=>operation: \n"
code8 = "review=>operation: \n"
code9 = "auditcond=>condition: \n"
code10 = "audit=>operation: \n"
code11 = "approvalcond=>condition: \n"
code12 = "approval=>operation: \n"
code13 = "print=>inputoutput: |future\n"
case "...":
code1 = "st=>start: |past\n"
code2 = "e=>end: \n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |past\n"
code5 = "check=>operation: |current\n"
code6 = "countersign=>condition: ?\n"
code7 = "countersignYes=>operation: \n"
code8 = "review=>operation: \n"
code9 = "auditcond=>condition: \n"
code10 = "audit=>operation: \n"
code11 = "approvalcond=>condition: \n"
code12 = "approval=>operation: \n"
code13 = "print=>inputoutput: |future\n"
case "...":
code1 = "st=>start: |past\n"
code2 = "e=>end: \n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |past\n"
code5 = "check=>operation: |past\n"
code6 = "countersign=>condition: ?|past\n"
code7 = "countersignYes=>operation: |past\n"
code8 = "review=>operation: |current\n"
code9 = "auditcond=>condition: \n"
code10 = "audit=>operation: \n"
code11 = "approvalcond=>condition: \n"
code12 = "approval=>operation: \n"
code13 = "print=>inputoutput: |future\n"
case "...":
code1 = "st=>start: |past\n"
code2 = "e=>end: \n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |past\n"
code5 = "check=>operation: |past\n"
code6 = "countersign=>condition: ?|past\n"
code7 = "countersignYes=>operation: |past\n"
code8 = "review=>operation: |past\n"
code9 = "auditcond=>condition: |past\n"
code10 = "audit=>operation: |current\n"
code11 = "approvalcond=>condition: \n"
code12 = "approval=>operation: \n"
code13 = "print=>inputoutput: |future\n"
case "...":
code1 = "st=>start: |past\n"
code2 = "e=>end: \n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |past\n"
code5 = "check=>operation: |past\n"
code6 = "countersign=>condition: ?|past\n"
code7 = "countersignYes=>operation: |past\n"
code8 = "review=>operation: |past\n"
code9 = "auditcond=>condition: |past\n"
code10 = "audit=>operation: |past\n"
code11 = "approvalcond=>condition: |past\n"
code12 = "approval=>operation: |current\n"
code13 = "print=>inputoutput: |future\n"
case "...":
code1 = "st=>start: |past\n"
code2 = "e=>end: \n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |past\n"
code5 = "check=>operation: |past\n"
code6 = "countersign=>condition: ?|past\n"
code7 = "countersignYes=>operation: |past\n"
code8 = "review=>operation: |past\n"
code9 = "auditcond=>condition: |past\n"
code10 = "audit=>operation: |past\n"
code11 = "approvalcond=>condition: |past\n"
code12 = "approval=>operation: |past\n"
code13 = "print=>inputoutput: |current\n"
default:
code1 = "st=>start: |past\n"
code2 = "e=>end: |past\n"
code3 = "input=>inputoutput: |past\n"
code4 = "design=>operation: |past\n"
code5 = "check=>operation: |past\n"
code6 = "countersign=>condition: ?|past\n"
code7 = "countersignYes=>operation: |past\n"
code8 = "review=>operation: |past\n"
code9 = "auditcond=>condition: |past\n"
code10 = "audit=>operation: |past\n"
code11 = "approvalcond=>condition: |past\n"
code12 = "approval=>operation: |past\n"
code13 = "print=>inputoutput: |past\n"
}
code = code1 + code2 + code3 + code4 + code5 + code6 + code7 + code8 + code9 + code10 + code11 + code12 + code13 + code14 + code15 + code16 + code17 + code18 + code19 + code20
c.Ctx.WriteString(code)
}
// fatal1 expects a value and an error value as its arguments.
func fatal1(val1 interface{}, err error) interface{} {
if err != nil {
fmt.Println("%v", err)
}
return val1
}
// error0 expects only an error value as its argument.
func error0(err error) error {
if err != nil {
fmt.Println("%v", err)
}
return err
}
// error1 expects a value and an error value as its arguments.
func error1(val1 interface{}, err error) interface{} {
if err != nil {
fmt.Println("%v", err)
return nil
}
return val1
}
// fatal0 expects only an error value as its argument.
func fatal0(err error) {
if err != nil {
fmt.Println("%v", err)
}
}
// Document Type : docType1
// Document States : [
// docState1,
// docState2,
// docState3,
// docState4 // for example
// ]
// Document Actions : [
// docAction12,
// docAction23,
// docAction34 // for the above document states
// ]
// Document Type State Transitions : [
// docState1 --docAction12--> docState2,
// docState2 --docAction23--> docState3,
// docState3 --docAction34--> docState4,
// ]
// Access Contexts : [
// accCtx1, accCtx2 // for example
// ]
// Workflow : {
// Name : wFlow1,
// Initial State : docState1
// }
// Nodes : [
// node1: {
// Document Type : docType1,
// Workflow : wFlow1,
// Node Type : NodeTypeBegin, // note this
// From State : docState1,
// Access Context : accCtx1,
// },
// node2: {
// Document Type : docType1,
// Workflow : wFlow1,
// Node Type : NodeTypeLinear, // note this
// From State : docState2,
// Access Context : accCtx2, // a different context
// },
// node3: {
// Document Type : docType1,
// Workflow : wFlow1,
// Node Type : NodeTypeEnd, // note this
// From State : docState3,
// Access Context : accCtx1,
// },
// ]
// With the above setup, you can dispatch document events to the workflow appropriately.
// With each event, the workflow moves along, as defined.
// * When you create new documents, their events need **_not_** be created at the same time.
// Events should be created and applied in response to user actions (or system events).
// * Whether you list all possible actions in a list of documents is up to you.
// In my opinion, the possible actions - for a given user - on a given document,
// are best made available in the detailed view of that document (not in a document list view).
// * Yes, when the user clicks on an action button, we can create the corresponding event instance,
// and apply it to the document's workflow.
// * With a `DocEventID`, you can fetch the corresponding event instance using `DocEvents.Get`
// ()
// *
// ()
// *
// *DocEventIDDocEvents.Get
// Initialise DB connection.
// func init() {
// gt = t
// Connect to the database.travis
// driver, connStr := "mysql", "root:root@/flow"
// tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB)
// flow.RegisterDB(tdb)
// if tdb == nil {
// log.Fatal("given database handle is `nil`")
// }
// db = tdb
// return nil
// }
// func RegisterDB(sdb *sql.DB) error {
// if sdb == nil {
// log.Fatal("given database handle is `nil`")
// }
// db = sdb
// return nil
// }wflist []*flow.DocState
// func (c *FlowController) testaddflow() {
// // driver, connStr := "mysql", "root:root@/flow"
// // tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB)
// // if tdb == nil {
// // log.Fatal("given database handle is `nil`")
// // }
// // db := tdb
// driver, connStr := "sqlite3", "database/meritms.db"
// tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB)
// if tdb == nil {
// log.Fatal("given database handle is `nil`")
// }
// db := tdb
// tx, err := db.Begin()
// if err != nil {
// fmt.Println(err)
// }
// // var tx *sql.Tx
// defer tx.Rollback()
// // docType1, err := flow.DocTypes.New(tx, "EXAM:COMMON")
// // DocTypes.New(tx, "Stor Request")
// // DocTypes.New(tx, "Compute Request")
// // if err != nil {
// // fmt.Println(err)
// // }
// // docState1, err := flow.DocStates.New(tx, "Init") //
// // flow.DocStates.New(tx, "EntrustCreate") //
// // flow.DocStates.New(tx, "EntrustApproved") //
// // flow.DocStates.New(tx, "SampleHandon") //
// // flow.DocStates.New(tx, "PrepareFinish") //
// // flow.DocStates.New(tx, "PrepareApproved") //
// // flow.DocStates.New(tx, "TaskAssign") //
// // flow.DocStates.New(tx, "DataApproved") //
// // flow.DocStates.New(tx, "ReportGen") //
// // flow.DocStates.New(tx, "ReportApproved") //
// // docActionID1, _ := flow.DocActions.New(tx, "CreateEntrust", false) //
// // docActionID2, _ := flow.DocActions.New(tx, "ApproveEntrust", false) //
// // docActionID3, _ := flow.DocActions.New(tx, "HandonSample", false) //
// // docActionID4, _ := flow.DocActions.New(tx, "FinishPrepare", true) //
// // docActionID5, _ := flow.DocActions.New(tx, "ApprovePrepare", true) //
// // docActionID6, _ := flow.DocActions.New(tx, "AssignTask", false) //
// // docActionID7, _ := flow.DocActions.New(tx, "ApproveData", false) //
// // docActionID8, _ := flow.DocActions.New(tx, "GenReport", false) //
// // docActionID9, _ := flow.DocActions.New(tx, "ApproveReport", true) //
// // workflowId, _ := flow.Workflows.New(tx, "Examination", docType1, docState1)
// // flow.Workflows.SetActive(tx, workflowId, true)
// //Docments
// // contextId, _ := flow.AccessContexts.New(tx, "Context")
// // groupId, err := flow.Groups.New(tx, "Examination", "G")
// // if err != nil {
// // logs.Error(err)
// // }
// // resUser, _ := tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// // VALUES('admin', 'dashoo', 'admin@dashoo.com', 1)`)
// // uid, _ := resUser.LastInsertId()
// // userID1 := flow.UserID(uid)
// // flow.Groups.AddUser(tx, groupId, 5)
// // roleID1, _ := flow.Roles.New(tx, "administrator")
// flow.Roles.AddPermissions(tx, 5, 4, []flow.DocActionID{8, 9,
// 10, 11, 12, 13, 14, 15, 16})
// docNewInput := flow.DocumentsNewInput{
// DocTypeID: 4, //docType1,
// AccessContextID: 1, //contextId,
// GroupID: 7,
// Title: "entrust flow",
// Data: "eid: 111, entrustNo: 2222",
// }
// // flow.Documents.New(tx, &docNewInput)
// _, err = flow.Documents.New(tx, &docNewInput)
// if err != nil {
// logs.Error(err)
// }
// // Documents.setState(tx, docType1, documentID1, docState2, contextId)
// tx.Commit()
// // wflist, err = flow.DocStates.List(0, 0)
// // if err != nil {
// // logs.Error(err)
// // }
// // return wflist
// }
// func (c *FlowController) flownext() {
// // tx, _ := flow.db.Begin()
// var tx *sql.Tx
// defer tx.Rollback()
// /*docNewInput := DocumentsNewInput {
// DocTypeID: docType1,
// AccessContextID: contextId,
// GroupID: groupId,
// Title: "entrust flow",
// Data: "eid: 111, entrustNo: 2222",
// }
// documentID1, err := Documents.New(tx, &docNewInput)
// fmt.Println("documentID1=", documentID1, err)*/
// docEventInput := flow.DocEventsNewInput{
// DocTypeID: flow.DocTypeID(4),
// DocumentID: flow.DocumentID(1),
// DocStateID: flow.DocStateID(9),
// DocActionID: flow.DocActionID(2),
// GroupID: flow.GroupID(1),
// Text: "",
// }
// groupIds := []flow.GroupID{flow.GroupID(1)}
// myWorkflow, err := flow.Workflows.Get(flow.WorkflowID(3))
// docEvent1, err := flow.DocEvents.New(tx, &docEventInput)
// tx.Commit()
// myDocEvent, err := flow.DocEvents.Get(docEvent1)
// newDocStateId, err := myWorkflow.ApplyEvent(tx, myDocEvent, groupIds)
// tx.Commit()
// fmt.Println("newDocStateId=", newDocStateId, err)
// }
//2019-01-11
// func (c *FlowController) FlowGetDocTypeByName() {
// driver, connStr := "mysql", "travis@/flow?charset=utf8&parseTime=true"
// tdb := fatal1(sql.Open(driver, connStr)).(*sql.DB)
// if tdb == nil {
// log.Fatal("given database handle is `nil`")
// }
// db := tdb
// tx, err := db.Begin()
// if err != nil {
// logs.Error(err)
// }
// // db.Close()
// //doctype
// dtID1, err := flow.DocTypes.GetByName("")
// if err != nil {
// logs.Error(err)
// }
// beego.Info(dtID1)
// // err = flow.DocTypes.AddTransition(tx, dtID1.ID, 7, 10, 8)
// // if err != nil {
// // logs.Error(err)
// // }
// myWorkflow, err := flow.Workflows.GetByName("")
// if err != nil {
// logs.Error(err)
// }
// beego.Info(myWorkflow)
// //context
// accessContextID1, err := flow.AccessContexts.List("Context", 0, 0)
// if err != nil {
// logs.Error(err)
// }
// beego.Info(accessContextID1[0].ID)
// beego.Info(flow.GroupID(1))
// docNewInput := flow.DocumentsNewInput{
// DocTypeID: dtID1.ID,
// AccessContextID: accessContextID1[0].ID,
// GroupID: 11, //groupId,
// Title: "",
// Data: ": 1, : 2",
// }
// // flow.Documents.New(tx, &docNewInput)
// DocumentID1, err := flow.Documents.New(tx, &docNewInput)
// if err != nil {
// logs.Error(err)
// }
// // tx.Commit() //newcommit
// beego.Info(DocumentID1)
// dsID1, err := flow.DocStates.GetByName("...")
// if err != nil {
// fmt.Println(err)
// }
// beego.Info(dsID1)
// dsID2, err := flow.DocStates.GetByName("...")
// if err != nil {
// fmt.Println(err)
// }
// beego.Info(dsID2)
// // _, err = flow.Workflows.AddNode(tx, dtID1.ID, dsID1.ID, accessContextID1[0].ID, myWorkflow.ID, "-", flow.NodeTypeEnd)
// // if err != nil {
// // fmt.Println(err)
// // }
// daID2, err := flow.DocActions.GetByName("")
// if err != nil {
// fmt.Println(err)
// }
// beego.Info(daID2)
// beego.Info(flow.GroupID(12))
// // docEventInput := flow.DocEventsNewInput{
// // DocTypeID: dtID1.ID, //flow.DocTypeID(1),
// // DocumentID: DocumentID1,
// // DocStateID: dsID1.ID, //document state must be this state
// // DocActionID: daID2.ID, //flow.DocActionID(2),
// // GroupID: 12,
// // Text: "",
// // }
// // docEventID1, err := flow.DocEvents.New(tx, &docEventInput)
// // if err != nil {
// // logs.Error(err)
// // }
// // // tx.Commit() //commit
// // beego.Info(docEventID1)
// myDocEvent, err := flow.DocEvents.Get(16)
// if err != nil {
// logs.Error(err)
// }
// beego.Info(myDocEvent)
// // myWorkflow, err := flow.Workflows.Get(workflowId.ID)
// // if err != nil {
// // logs.Error(err)
// // }
// //groupids
// groupIds := []flow.GroupID{flow.GroupID(13)}
// beego.Info(groupIds)
// newDocStateId, err := myWorkflow.ApplyEvent(tx, myDocEvent, groupIds)
// if err != nil {
// logs.Error(err)
// }
// tx.Commit() //commit
// fmt.Println("newDocStateId=", newDocStateId, err)
// // wflist, err := flow.DocTypes.GetByName("Compute Request")
// // if err != nil {
// // logs.Error(err)
// // }
// c.Data["json"] = "OK" //wflist
// c.ServeJSON()
// }
// daID2, err := flow.DocActions.New(tx, "", false)
// if err != nil {
// fmt.Println(err)
// }
// daID3, err := flow.DocActions.New(tx, "", false)
// if err != nil {
// fmt.Println(err)
// }
// daID4, err := flow.DocActions.New(tx, "", true)
// if err != nil {
// fmt.Println(err)
// }
// daID5, err := flow.DocActions.New(tx, "", true)
// if err != nil {
// fmt.Println(err)
// }
// daID6, err := flow.DocActions.New(tx, "", false)
// if err != nil {
// fmt.Println(err)
// }
// daID7, err := flow.DocActions.New(tx, "", false)
// if err != nil {
// fmt.Println(err)
// }
// //1:oldstate1 action1 newstate2
// err = flow.DocTypes.AddTransition(tx, dtID1, dsID1, daID1, dsID2)
// if err != nil {
// logs.Error(err)
// }
// //2:oldstate2 action2 newstate3
// err = flow.DocTypes.AddTransition(tx, dtID1, dsID2, daID2, dsID3)
// if err != nil {
// logs.Error(err)
// }
// //doctypeworkflow
// workflowID1, err := flow.Workflows.New(tx, "-", dtID1, dsID1) //...
// if err != nil {
// fmt.Println(err)
// }
// beego.Info(workflowID1)
// // workflowID2, err := flow.Workflows.New(tx, "-", dtID1, dsID1) //...-
// // if err != nil {
// // fmt.Println(err)
// // }
// // beego.Info(workflowID2)
// //
// //
// //
// accessContextID1, err := flow.AccessContexts.New(tx, "Context")
// if err != nil {
// logs.Error(err)
// }
// //workflownodeeventaction
// // AddNode maps the given document state to the specified node. This
// // map is consulted by the workflow when performing a state transition
// // of the system.nodeID1
// _, err = flow.Workflows.AddNode(tx, dtID1, dsID1, accessContextID1, workflowID1, "--", flow.NodeTypeBegin)
// if err != nil {
// fmt.Println(err)
// }
// _, err = flow.Workflows.AddNode(tx, dtID1, dsID2, accessContextID1, workflowID1, "--", flow.NodeTypeLinear)
// if err != nil {
// fmt.Println(err)
// }
// _, err = flow.Workflows.AddNode(tx, dtID1, dsID3, accessContextID1, workflowID1, "--", flow.NodeTypeEnd)
// if err != nil {
// fmt.Println(err)
// }
// //---
// res, err := tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-1', 'email1@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ := res.LastInsertId()
// uID1 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID1)
// res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-2', 'email2@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ = res.LastInsertId()
// uID2 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID2)
// res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-3', 'email3@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ = res.LastInsertId()
// uID3 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID3)
// res, err = tx.Exec(`INSERT INTO users_master(first_name, last_name, email, active)
// VALUES('', '-4', 'email4@example.com', 1)`)
// if err != nil {
// log.Fatalf("%v\n", err)
// }
// uid, _ = res.LastInsertId()
// uID4 := flow.UserID(uid)
// _, err = flow.Groups.NewSingleton(tx, uID4)
// gID1 := fatal1(flow.Groups.New(tx, "", "G")).(flow.GroupID)
// gID2 := fatal1(flow.Groups.New(tx, "", "G")).(flow.GroupID)
// fatal0(flow.Groups.AddUser(tx, gID1, uID1))
// fatal0(flow.Groups.AddUser(tx, gID1, uID2))
// fatal0(flow.Groups.AddUser(tx, gID1, uID3))
// fatal0(flow.Groups.AddUser(tx, gID2, uID2))
// fatal0(flow.Groups.AddUser(tx, gID2, uID3))
// fatal0(flow.Groups.AddUser(tx, gID2, uID4))
// roleID1 := fatal1(flow.Roles.New(tx, "")).(flow.RoleID)
// roleID2 := fatal1(flow.Roles.New(tx, "")).(flow.RoleID)
// //roleaction
// fatal0(flow.Roles.AddPermissions(tx, roleID1, dtID1, []flow.DocActionID{daID1, daID2, daID3, daID4}))
// fatal0(flow.Roles.AddPermissions(tx, roleID2, dtID1, []flow.DocActionID{daID1, daID2, daID3, daID4, daID5, daID6, daID7}))
// //grouprole
// err = flow.AccessContexts.AddGroupRole(tx, accessContextID1, gID1, roleID1)
// if err != nil {
// logs.Error(err)
// }
// //grouproleaccesscontext
// err = flow.AccessContexts.AddGroupRole(tx, accessContextID1, gID2, roleID2)
// if err != nil {
// logs.Error(err) //UNIQUE constraint failed: wf_ac_group_roles.ac_id
// }
``` |
The Bento Gomes River is a river of Mato Grosso state in western Brazil.
See also
List of rivers of Mato Grosso
References
Brazilian Ministry of Transport
Rivers of Mato Grosso |
```swift
//
// Feedback.swift
// KeyboardKit
//
// Created by Daniel Saidi on 2024-04-08.
//
import Foundation
/// This namespace contains feedback-related types.
///
/// The namespace doesn't contain protocols, nor any context
/// or settings types that should be top-level types.
public struct Feedback {}
``` |
Prague 4, formally the Prague 4 Municipal District (Městská čast Praha 4), is a second-tier municipality in Prague. The administrative district (správní obvod) of the same name consists of municipal districts Prague 4 and Kunratice.
Prague 4 is located just south of Prague 2 and is the biggest municipality in Prague. Most of this district consists of large estates of panelaks. The district is also well connected to the motorway to Brno.
Government and infrastructure
The Prison Service of the Czech Republic is headquartered in this district.
Demographics
Education
Two campuses of the Prague British International School are in Prague 4: Kamýk and Libuš. Kamýk belonged to the pre-merger Prague British School, while Libuš belonged to the pre-merger English International School Prague and opened in 2007.
See also
Districts of Prague#Symbols
References
External links
Prague 4 official site
Census statistics for Czech municipalities (in Czech)
Districts of Prague |
Pasupuleti (Telugu: పసుపులేటి) is an Indian surname. It is a popular and dominant surname in the Telugu Kapu Naidu community.
Pasupuleti Kannamba, Indian actress and playback singer of Telugu cinema
Pasupuleti Krishna Vamsi is an Indian film director
Pasupuleti Ramesh Naidu was an Indian music director
Pasupuleti Madhavi Latha is an Indian actress in Telugu cinema
Reshma Pasupuleti is an Indian actress in Tamil cinema.
Surnames of Indian origin |
Pucheng County () is a county under the jurisdiction of the municipality of Nanping, in northern Fujian province, People's Republic of China, bordering Jiangxi to the northwest and Zhejiang to the east; it is the northernmost county-level division of Fujian.
The county is named for the Nanpu Brook, a major tributary to the Min River.
Geography
Pucheng comprises in the Wuyi Mountains which separates Fujian and Jiangxi provinces. It borders Songxi County to the southeast, Jianyang District to the south and Wuyishan City (location of the famous UNESCO park) to the west, all within Nanping. The municipality of Shangrao, Jiangxi, borders to the northwest; those of Quzhou, to the north, and Lishui, to the east, are in Zhejiang.
Climate
Culture
Language
The Pucheng dialect shares some features with Wu, but is classed among the Southern Chinese varieties. It is however not demonstrably a member of the Min subgroup (which covers almost all of Fujian), and pending further research must stand as an isolate - the sole exemplar of the Pucheng group of Southern Chinese. Some Wu dialects and the Northern Min dialect of Shibei are also spoken in Pucheng.
Intangible Cultural Heritage
Pucheng-style Papercutting ()
Min-school Guqin ()
Administrative divisions
The county administers 2 street offices, 9 towns and 8 townships. The county executive, legislature and judiciary are in Nanpu Street Office, together with the CPC and PSB branches.
Subdistricts (街道, jiedao)
Nanpu () - the county seat
Hebin ()
Towns (镇, zhen)
Fuling ()
Shibei ()
Linjiang ()
Xianyang ()
Shuibeijie ()
Yongxing ()
Zhongxin ()
Liantang ()
Jiumu ()
Townships (乡, xiang)
Wan'an()
Gulou()
Shanxia ()
Fengxi()
Haocun()
Guancuo()
Panting()
Guanlu()
Transportation
Expressway
S0311 Pucheng-Jianning Expressway
Specialty
Pucheng Rouyan/Taipingyan ()
tofu ball ()
osmanthus tea ()
wild jujube cake ()
baojiu ()
Archaeology
In 2006 mound tombs of the Wuyue Kingdom were discovered in Guanjiu village. (The kingdom was contemporary with the Spring and Autumn period and Warring States period of the Yellow River-centred Hans). Considered a strongly significant element of Wuyue culture, these are the first such tombs discovered in Fujian Province. 72 bronze funerary articles were excavated from the tombs, making the excavation the largest harvest of bronze items in Fujian archaeological history.
Notable persons
Ye Jianming, founder and former Chairman of CEFC China Energy Company Limited
References
External links
Pucheng County official site
County-level divisions of Fujian
Nanping |
Grimpoteuthis megaptera is a species of octopus known from five specimens, collected by Addison Emery Verrill. Between two and three of these specimens may belong to different species.
Description and habitat
Grimpoteuthis megaptera lives in the Atlantic Ocean off of Martha's Vineyard in the United States. It was found 4,600 meters deep.
Its full length reaches 107 millimeters. Its eyes are small, as are its suckers and cirri.
The octopus' arms and web, when viewed orally, are brown. G. megaptera has yellow suckers and a blue-white mantle and fins. The mantle is spotted with irregular brown-purple markings.
References
Octopuses
Molluscs of the Atlantic Ocean
Molluscs described in 1885 |
Paula Montgomery née Paula Smith (born 1971) is an Irish international lawn bowler.
Bowls career
She represented Ireland at Under 25 level (as Paula Smith) from 1991 to 1996, gaining 18 junior international caps. Montgomery then represented Ireland at Senior level from 1997 to 2004 before taking a three-year sabbatical and returning to international duty in 2008, competing each year in the British Isles Women's Home International Series, the most recent of which was 2019 and captained the International team in 2018 & 2019. She currently has 74 Senior International caps.
Montgomery has represented Northern Ireland at two Commonwealth Games; in the pairs event at the 1998 Commonwealth Games in Kuala Lumpur 1998 (Lead in Pairs with Barbara Cameron - 5th place) and the fours event at the 2002 Commonwealth Games in Manchester (playing position of 2nd in Fours with Alicia Weir, Dessa Baird & Pat Horner - Quarter Finalists).
Montgomery has also represented Ireland at various international events including the Atlantic Bowls Championships in Llandrindod Wells, Wales (1997) and Paphos, Cyprus (2011) where she won the fours bronze medal. In 2012, she represented Ireland at the 2012 World Outdoor Bowls Championship in Adelaide, Australia competing in the pairs and the fours events.
At national level she won the 2002 and 2009 pairs titles and 2001 triples title at the Irish National Bowls Championships and subsequently won two British Isles Bowls Championships triples in the 2002 and pairs in 2010. Additionally she won the Irish U25 singles in 1994, 1995 & 1997 (as Paula Smith).
Montgomery was assistant manager to the Under 25 Women's Irish International team in 2014 and has been part of the coaching and selection committee since then.
Personal life
She is married to former Irish International bowler Alan Montgomery.
References
Female lawn bowls players from Northern Ireland
1971 births
Living people
Bowls players at the 1998 Commonwealth Games
Bowls players at the 2002 Commonwealth Games |
There were various games and applications available in Windows Live Messenger that could be accessed via the conversation window by clicking the games icon and challenging a "buddy".
Games
Tic-Tac-Toe
Tic-Tac-Toe is a game where the player places a letter (either an X or an O) on part of the board, which consists of a 3×3 grid. The aim of the game is to complete 3 squares in a row, either vertically, horizontally, or diagonally.
Solitaire Showdown
This game, included since MSN Messenger version 6, is based on the Solitaire game that is part of Windows. It is online, 2 player, and features 2 decks (a triple deck, and a special 13-card pile). Each player must race to remove cards of the special 13-card pile, and put their cards on the shared piles/suit stacks (e.g. putting an ace of any suit on the pile, but putting 2's of a suit may only be possible after the ace of the suit is currently on the pile, not covered by any other cards). There are eight different suit stacks possible. Other differences between this and normal Solitaire are that not just Kings, but any card can be put on a blank row stack, and there are four black row stacks to put on instead of seven. The game ends if one player removes all cards of the 13-card pile, or when both players are "stuck" and cannot remove/put up any more cards, and manually end the game using the End Game button. This game is similar to the game nertz.
Checkers
A standard two-player game of checkers.
Bejeweled
A two-player game where pairs of jewels on a playfield are switched to arrange three or more in a line of the same colour therefore removing them from the game. It is played in real time and individually, with scores being compared at the end.
Minesweeper Flags
In a twist on the original game, players must now locate flags and whoever has found the most by the end wins (i.e. the first person to get 26 or more mines wins). There are 51 mines on the map. Finding a flag allows the player to continue; otherwise it becomes their opponent's turn. Players get the one-off option to "bomb" a 5×5 area if they are losing, and get all the flags in that area (hence it is possible to get more than 26 mines).
Other games
Other instant games included: 3D Tic-Tac-Toe, Jewel Quest, Mahjong Quest, Quarto, Backgammon, 7 Hand Poker, Mah Jong Tiles, All Star Bowling, Bumper Stars, Flowerz, Jigsaw Too, Cubis, Hexic, Mozaki Blocks, Sudoku Too, Uno, Worms, Tic-A-Tac Poker, BrainBattle, Reversi, Rock-Paper-Scissors, Luxor, and You-Know-It! Trivia.
A number of additional third-party games have also been built using the Messenger Activity SDK. An overview of third party activities is available on gallery.live.com.
Applications
Whiteboard
Whiteboard opens up a program that looks like Microsoft Paint, but it is shared through two users. They can see what each other draws. This Whiteboard also supports different pages, to allow drawing across many different pages. It is not compatible with Windows Vista. See Whiteboarding. This is from Microsoft NetMeeting, This will be disabled if people disable NetMeeting in Windows Setup.
Application Sharing
Application Sharing allows two computers to share an application over the network. This is usually a smaller application, as most computers cannot handle large programs on two systems at once. This is from Microsoft NetMeeting, This will be disabled if people disable NetMeeting in Windows Setup.
Web browser
Windows Live Messenger includes an Internet Explorer-based web browser that can be started when using the Encarta robot.
Remote Assistance
Remote Assistance is a feature of Windows XP and Windows Vista which is integrated with Windows Live Messenger. It allows one person to "take control" of the other's computer (with their permission) and is intended for offering computer assistance to friends and family on other computers.
References
Windows Live
es:Anexo:Juegos y aplicaciones para Windows Live Messenger |
Mirali mausoleum () is a mausoleum in the Ashaghi Veysalli village of the Fuzuli District of Azerbaijan. The mausoleum was constructed in the beginning of the 14th century. The name of the mausoleum is famous in legends. It was located near an old road between Beylagan and Barda, a stone's throw from the center of Fizuli Rayon.
Architecture
Mirali mausoleum is a tower-type mausoleum. Narrow cylindrical housing of the mausoleum with diameter of 5 meters and a conic ending of 15 meters heights is built from rows of thoroughly dressed and bedded stone. A well-composed housing with a conic marquee, which is covered with excellently dressed stone plates and decorated with a portal with shaped margin and a woven twist under foundation of the marquee, stands on a short, three-laddered pedestal. The marquee is constructed from thoroughly bedded stone plates.
References
Towers completed in the 14th century
Mausoleums in Azerbaijan
Tourist attractions in Azerbaijan
Islamic architecture
Fuzuli District |
Rama VI Bridge (, , ) is a railway bridge over the Chao Phraya River in Bangkok, in Thailand, connecting the districts Bang Sue and Bang Phlat.
History
It is the first bridge to cross the Chao Phraya River and was initially both a single-track railway and road (two lanes) bridge. Construction started in December 1922, during the reign of Vajiravudh to link the Northern Line with the Southern Line so the bridge was named after King Vajiravudh. Construction cost was 2,714,113.30 baht and It was officially opened on 1 January 1927.
Center of the bridge was torn on 7 February 1945, during World War II, thus it was repaired in 1950-1953 by Dorman Long and Christiani & Nielsen and was officially reopened on 12 December 1953. Following the opening of the adjacent Rama VII Bridge in 1992 due to increase in traffic volumes, cars were diverted from Rama VI bridge. Another railway track was laid in place of the road completed in 1999, making it a railway-only bridge.
Location
The bridge is located 13 km from Bangkok railway station, between Bang Son railway station and Bang Bamru railway station. The bridge has 5 spans, all of the through-truss design: 77, 83, 120, 83 and 77 metres respectively, for a total length of 441 metres. It is thus the longest railway bridge in Thailand, almost 110 metres longer than its nearest rival, the 132 metre River Kwai bridge near Kanchanaburi.
References
Bridges in Bangkok
Bridges completed in 1926
Crossings of the Chao Phraya River
Railway bridges in Thailand
Unregistered ancient monuments in Bangkok |
The Indian Creek Local School District is a public school district based in Wintersville, Ohio, United States.
The district serves the villages of Wintersville, Bloomingdale, and Mingo Junction, the far western portion of Steubenville as well as unincorporated areas in central Jefferson County.
Schools
Grades 9-12
Indian Creek High School
Grades 5-8
Indian Creek Middle School
Preschool-Grade 4
Hills Elementary School
Wintersville Elementary School
See also
List of school districts in Ohio
External links
Indian Creek Local School District – Official site.
Education in Jefferson County, Ohio
School districts in Ohio |
Mickey's Northwest Mounted is a 1929 silent short film in Larry Darmour's Mickey McGuire series starring a young Mickey Rooney. Directed by Albert Herman, the two-reel short was released to theaters on June 9, 1929 by FBO.
Plot
Stinkie Davis invites Mickey and the Scorpions to his rodeo. His invitation is actually a ploy to prank McGuire and his pals. However, things don't exactly go as planned for Stinkie. The kids partake in various picnic games, and Hambone gets into a headbutting contest with a goat.
Notes
An edited version of this film appeared on the Those Lovable Scallawags With Their Gangs television series.
Cast
Mickey Rooney - Mickey McGuire
Jimmy Robinson - Hambone Johnson
Delia Bogard - Tomboy Taylor
Marvin Stephens - Katrink
Buddy Brown - Stinkie Davis
Kendall McComas - Master of ceremonies
External links
1929 films
1929 comedy films
American black-and-white films
American silent short films
Mickey McGuire short film series
Royal Canadian Mounted Police in fiction
1929 short films
Silent American comedy films
American comedy short films
1920s American films
1920s English-language films |
John G. Frayne (July 8, 1894 in Ireland – October 31, 1990 in Pasadena, California) was a physicist and sound engineer.
Career
Frayne received his Ph.D. in physics from the University of Minnesota while working at the Bell Laboratories. In 1928, he went to California Institute of Technology as a National Research Fellow in Physics.
In 1949, with Halley Wolfe, he wrote the classic textbook Elements of Sound Recording.
Among his technical achievements were the development of sound recording techniques and their reproduction
for optical sound recording systems, which led to stereo-optical formats used by films in the 1970s and '80s. He was a
co-inventor of the sphere densitometer, which won a Scientific or Technical Academy Award in 1941. He was also the co-inventor of the stereo disc cutter which was standard in the recording industry, and the co-inventor of the inter-modulation techniques of distortion measurements, which won him an Academy Award in 1953.
He was awarded a Gordon E. Sawyer Award (Oscar statuette) by the Academy of Motion Picture Arts and Sciences in 1983.
Awards
Dr. Frayne, a Fellow of the Audio Engineering Society (AES), received its Gold Medal Award for Outstanding Achievement in advancing the art of audio engineering in 1976. He received the SMPTE Progress Medal in 1947.
External links
An Afternoon with John G. Frayne
In Memoriam, AES Journal
1894 births
1990 deaths
University of Minnesota College of Science and Engineering alumni
People educated at Kilkenny College
Recipients of the John A. Bonner Medal of Commendation
American audio engineers
20th-century American engineers
Academy Award for Technical Achievement winners
Irish emigrants to the United States
Fellows of the American Physical Society |
The Principality of Trubetsk (Russian: Трубецкое княжество) was a small, landlocked Rus' principality in Eastern Europe. In the later Middle Ages it was bordered by the Grand Duchy of Lithuania to its west and by Muscovy to its east. The Principality of Trubetsk (Troubchevsk) was a principality within modern Bryansk Oblast, about southwest of Bryansk.
The Trubetsk (Troubchevsk) town was referred to in the Old East Slavic poem The Tale of Igor's Campaign where, among others, Vsevolod Svyatoslavich, the Prince of Trubetsk and of Kursk, was glorified. In 1185 the Trubetsk army fought against Cumans.
In 1239, after the Mongol invasion of Rus, the Principality of Trubetsk passed to the Princes of Bryansk, and then to the Princes of Trubetsk. In 1566 Ivan IV the Terrible took the principality during the Livonian War. In 1609 Vasili IV of Russia relinquished it to the Polish–Lithuanian Commonwealth during the Polish–Muscovite War (1605–1618). In 1654 Prince Aleksey Trubetskoy on the side of Alexis I of Russia led the southern flank of the Muscovian army from Bryansk to Ukraine. The territory between the Dniepr and Berezyna was overrun, with Aleksey Trubetskoy taking Mstsislaw (Mstislavl) and Roslavl. In 1654 The Principality of Trubetsk was finally conquered by Aleksey Trubetskoy, Prince of Trubetsk himself, as a result of the Russo-Polish War (1654-1667).
1566 disestablishments
Trubetsk, Principality of
Trubetsk, Principality of
Trubetsk
Trubetsk
Medieval Russia |
Rockcliffe railway station, later Rockcliffe Halt was a station which served the rural area around Rockcliffe, Rockcliffe parish, north of Carlisle in the English county of Cumberland (now part of Cumbria). It was served by local trains on what is now known as the West Coast Main Line. The nearest station for Rockcliffe is now at Carlisle. It lay some distance from the village.
History
Opened by the Caledonian Railway, it became part of the London Midland and Scottish Railway during the Grouping of 1923 and BR in 1948. It closed briefly during WW1 and was renamed as Rockcliffe Halt in 1950 when regular passenger service ceased after which it was only used by railway workers at the nearby marshalling yards until 1965.
The station had a stationmaster's house, with combined ticket office and a waiting room. The line is still double track here.
The site today
Trains pass at speed on the electrified West Coast Main Line. The station platforms have been demolished, the pedestrian overbridge has been removed, however the stationmaster's house remains as a private dwelling.
References
Notes
Sources
External links
Rail Brit
Cumbrian Railways Association
Rockcliffe Station
Cumbria Gazetteer
Railway stations in Great Britain opened in 1847
Railway stations in Great Britain closed in 1917
Railway stations in Great Britain opened in 1919
Railway stations in Great Britain closed in 1965
Disused railway stations in Cumbria
Former Caledonian Railway stations
1847 establishments in England
1965 disestablishments in England
Rockcliffe, Cumbria |
Padayani, also known Padeni (from the Malayalam word for military formations), is a traditional folk dance and a ritual art from the central portion of the Indian state of Kerala. A ceremonial dance involving masks, it is an ancient ritual performed in Bhagavati temples. The dance is performed in honor of Bhadrakaali. Meaning, a 'row of warriors', Padayani is an art form that blends all music, dance, theatre, satire, facial masks, and paintings. It is part of worship of Bhadrakali and is staged in temples dedicated to the goddess from mid-December to mid-May.
Padayani is unique to central Travancore, comprising the Pathanamthitta and Kottayam districts of Kerala. It is also performed in adjoining regions of Kollam, Alappuzha districts.
Padayani is regarded as a remnant of the Dravidian forms of worship that existed before the advent of Brahmanism.
Padayani is like Theyyam in north Kerala. The percussion instruments used in Patayani are patayani thappu, chenda, para and kumbham.
Padayani at Puthukulangara Devi Temple, Othera, Pathanamthitta District is also famous. Here Bhairavi kolam which is on last day of festival is very famous. For making that 1001 bark of arecanut palm tree is used. Main festival is on star ThiruvathiraMeenamme month of Meena.
"Pachathappu" is the first Malayalam film based on Padayani. Pachathappu is written and directed by Anu Purushoth. It was nominated Kerala Film Critics Award for Best Art Film of 2020
Etymology
The term Padayani originated from malayalam words 'Pata' meaning military and 'ani' meaning preparation.
Traditions of origin
Padyani is a modern form of Kolam Thullal, a ritual dance, which had been performed by the magico-medicine men of Kerala ( The Tinta endogamous section of Ganaka community ) . In olden days, this elaborate and expensive event was carried out to heal illnesses of deep psychological dysfunctions without any identifiable serious physical cause, and cases that seemed to be not amenable to medical modalities of intervention . This form of psychic or spiritual healing other wise known as Kolam Thullal, was solely designed, controlled and performed by the Tinta sub sect of the Ganaka community, as a method of exorcism The folk art, Padayani made its development from this dance performance, as a divine ritual tradition in association with festival occasions of Bhagavathy (Bhadrakaali) temples of Kerala.
Another version of its origin is related to the practice of ancient martial arts training in Kerala. Since the origin of term 'padayani' relates to military parade or rows of army, it is generally believed that it is evolved from a symbolic past reminiscent of the fencing march of the martial art (Kalari) by the Nair soldiers and their Kalari Asaans. Eventually the responsibilities of various functions related to this dance were divided and assigned among people of different communities.
So the Nair folk became the performers of the modern form of Padayani art, but the right of writing lyrics, the design and making of elaborate costumes was vested with the Kaniyar people. Nowadays the modern form of Padayani is performed at many Devi temples in the southern region of Kerala, particularly in Pathanamthitta, Kottayam, Alappuzha and Kollam Districts.
Design and performance
Padayani is very popular in Kerala, India, as a means, used to worship goddess Bhadra Kali.
After the kolam thullal dancing ends, there is ritual called Pooppada which is the end of the padayani festival. After that, the days of colours will be over and the colourful memories will be in the minds.
The waiting for the next padayani starts with a prayer for the wellness of all world.
In 2007, plans were put forward to implement a proposal by poet Kadammanitta Ramakrishnan to create a Padayani Village to promote the dance form. As of 2009, the first such village is expected to be built in the poet's hometown of Kadammanitta at a cost of Rs. 1.9 crore. A chief exponent of Padayani is Prof. Kadammanitta Vasudevan Pillai. His association and acquaintance with Kadammanitta Ramakrishnan has led to many literary contributions. His Literary work "Padayaniyude Paalakolangal" and "Padayani" is an authoritative work on Kerala Folklore with special reference to Padayani.
Elanthoor Padayani
"Elanthoor Padayani" is being performed along with 8 days long Padeni maholtsavam at Elanthoor Bhagavathikunnu Devi Temple during February–March month of every year (Malayalam month of )(starts on makayiram naal). 8th day from makayiram naal is the grand padeni or Valya Padeni. Large crowd on valya padeni's procession is a main attraction follows kaappoli program. Main kolams are Ganapathi, Pishaachu, Sivakolam, Marutha, Koottamarutha, Rudra Marutha, Naayattu, Kuthira, Pakshi, Sundara Yekshi, Anthara Yekshi, Maya Yekshi, Arakki Yekshi, Erinaaga Yekshi, Maadan, Karinkkaali, Kaalankolam, Nina Bhairavi, Bhairavi, Kaanjiramaala and Mangala Bhairavi. Other performances include Velakali, Thaavadi, Pulavrittham, Pooppada and various types of Vinodhams such as Kaakkarashi Drama, Paradeshi, Sharkarakudam, Ammumma, Pattarum Pennum, Ooraali, Pulayan, Naadukaani, etc.
Kottangal Padayani
"Kottangal Padayani" is being performed along with the 8 (Ettu padayani) days from a total of 28 days during January - February (Makara Bharani). This is performed every year at Kottangal Devi Temple located in the boundary of Kottayam and Pathanamthitta Districts. The last 8 days are important with the performance of different Kolams and other traditional programs.
The padayani is done by two Karas (areas which contains different sub areas) Kottangal and Kulathoor. The Last 8 days are equally divided to two karas that is 4 for each. The last two days (Valiya Padayani) are most important for both Karas and they conduct programs in a competitive manner. Beautiful Processions will be there on the evening of last two days. The main programs include vela Kali, Adavi, Pallippana, Vellam Kudi, vinodam and kolam Thullal. The kolams performed in the padayani are Ganapathi Kolam, Kuthira, Bhairavi, Sundara Yakshi, Araki Yakshi, Marutha, Pakshi, Kalamadan and Kalan Kolam.
Kadammanitta Padayani
"Kadammanitta Padayani"
The festival is celebrated every year from the first day of Malayalam month medam to the 10th day, called the pathamudayam. Medam 8th is popular for Grand padayani (Vellya Padeni) when all "kolams" under padayani will be performed by experts, and large number of people interested, from all over the country as well as a few foreigners who are regular visitors every year will come to see the magnificent performances, apart from many prominent cultural and social leaders.
Padayani is being performed as an offering to Goddess Kali (Devi) and often portrays the story of Goddess winning victory over Daarikan, an evil character. This ritual festival is famous in Kadammanitta village in Pathanamthitta district.
The main aspect of the festival of Kadammanitta Padayani is the aspect of devotion to God and is a mark of homage paid to Goddess Bhagavathy, who is symbolized as a Mother Goddess. The festival which is marked by worship of the all powerful Mother Goddess is an exhibition of passionate devotion to the Goddess who is worshipped as a Mother figure throughout the province of Kerala. A festival which is celebrated for ten days throughout this tropical paradise is a massive display of color and the elegance which stems naturally from a culture dating back to several years in antiquity. The festival is also marked by the performance of the Patayani, a popular dance form which is an intrinsic part of the celebrations of Kadammanitta Padayani. Traditionally performed on the eight day of the festival, the Patayani indicates an offering to Goddess Kali, in whose honor, the festival is celebrated. The festival is also auspicious as it marks the victory of Kali over Daariken, an evil character and the renewal of protection of the Goddess on human beings.
At Kadammanitta Devi Kshethram- First two days are the ceremonial rituals (9.pm-30mts) to start the Padayani. The presence of Goddess is evoked to the Padayani performing ground by folk songs and drumming Thappu. From third day onwards Padayani Kolam like Ganapathi, Marutha, Pakshi, Kalan, Sundara Yekshi, Bhairavi, Kanjiramala etc. are staged. (11 pm-4am). On the sixth day (19 Apr) night is Adavi, a ritual where a Palmyra tree is brought and mounts it on the ground, after some rituals the tree is then pushed down. On 21 April is Valiya padayani, the most important day of the festival. During the full night performance (12 nt to 6am), about 15 variety Kolams are staged including Maya yakshi, Anthara yakshi, Arakki yakshi, Kurathi kolam, Shiva kolam, Kanjhiramala and Mangala Bhairavi. There is no performance on ninth day. The concluding day performance is in the morning (11am-12.20pm). Apart from Folk songs, a type of folk dance called Pulavrutham and Thavadi is also performed. A grand procession is the conducted (4.30pm- 6.30pm) through the streets of the village with Jeevatha, accompanied by Velakali, kavadi, Melam, Panchavadyam etc. A similar procession (Vilakku ezhunnallippu) is conducted in the temple compound during night (11.30pm to 2 hrs) with Thalappoli etc.
Kurampala Padayani
"Kurampala Padayani" is being performed once in five years. Adavi (human Sacrifice Festival) is a main ritual of Kurampala.
Kallooppara Padayani
"Kallooppara Padayani" is being performed at Kallooppara Devi Temple in Kallooppara village, 8 kilometers from Thiruvalla, located between Thiruvala and Mallappally. It is held in the month of February–March (Kumbha maasam) as part of the Kumbhabharani festival. Here, Padayani is celebrated in Revathy and Aswathy of Kumbha Masam. Several artists perform this art as a worship to the Goddess, Bhadrakali. The main Kolams performed are Yakshi, Pakshi, Marutha, Bhairavi and Kalan Kolam. Along with these, Vinodam also being performed.
Kadalimangalam Padayani
Padayani is conducted in the Kadalimangalam Devi Temple, in Kuttoor village in Thiruvalla every year during the months of March and April. The ten-day-long festival is conducted by the people of two local karas, namely Eruvellipara and Venpala. The rare and great Padayani Kolam, namely 'KALAYAKSHI', is performed here. It is the right of two families, namely Mukkanjirathu and Pullenplavil of the two karas, to perform this 'KALAYAKSHI KOLAM'.
Kunnamthanam Padayani
"Kunnamthanam padayani" being performed at Kunnamthanam, a village in Thiruvalla along with Pathamudaya Maholsavam at Madathilkavu Bhagavathi Temple. It is being said that the padayani season in a year starts with Vrishchikam (November–December) at thelliyoorkavu and ends in month of Medam (March–April) at Kunnamthanam Madathilkavu temple.
Gothrakalapeedom is an organization dedicated to providing training and promoting projects involving Padayani, a folk art form of Kerala. It is located at Kunnamthanam, a nature-rich village in Thiruvalla.It was formed in 2004 aiming to bring back Padayani, a long lost ritual of the village temple "Madathilkavu Devi Kshetram". The ‘arangetram’ of the first batch trained by Tharanamuriyil Vasudevan Pillai asan was in the year 2005
Gothrakalapeedom was successful in its efforts and became well established, extending the activities to make Padayani renowned across the world, to assist research works on the history of Padayani and to implement welfare programmes for Padayani artistes. Active participation of the local people in its efforts contribute to the success of the organization. It also focuses on the promotion of age-old temple rituals of Kerala like the Kalamezhuth and Mudiyettu. These ritual art forms, unlike many other art forms of Kerala receive the whole-hearted involvement of the local people, which makes them stand apart. The artists of Gothrakalapeedom have performed at various temples and platforms for cultural collaborations across Kerala. The Kunnamthanam Padayani is one among the earliest Padayanis of Central Travancore. The ritual is observed in association with the Madathilkavu Bhagavathy Temple. The Padayani was presented for 8 days from Medam 3 to Medam10. The real architects of the Kunnamthanam Padayani , the Sage like Kanppettil Narayanakurup Asan, Allimangalathu Krishna Pilla Asan, Kamukumcheril Kunjunni Kurup Asan, were its real torch bearers. The Padayani discontinued from 1952 was ritualised again in 2005. The Kunnamthanam Padayani owes its birth to the Gothrakalapeedom, a renowned training group for rituals and folklore. Tharanamuryil T.K. Vasudevan Pilla Asan was instrumental in recreating the Kunnamthanam Padayani by keeping intact its old rites.
Five Ganapathykolams in the guise of Pisachu dancing in the Kalam (ground), the imagery of the sky bound Ambarayakshy descending in a chariot as Chattathelyakshy, and the Devathakolam, resembling the Madthilkkavil Bhagavathy are exclusive features of the Kunnamthanam Padayani .
The Padayani is observed annually on Medam 7 (20 April).
Madathilkkavu Bhagavathy Temple, situated , is accessible from Thiruvalla (12 km) and Changanacherry (11 km).
Myth
A very destructive war between the devas (gods) and the asuras (anti-gods) left only two women, Danavathi and Darumathi, with the asura class. Left to themselves they practiced tapasya (devotion penance) to please Brahma the creator. By his blessings each begot a son, Danava and Darika. When Darika came of age Darumathi narrated to him the sad tale of the defeat and destruction of their class by the devas. She exhorted him to do penance to please Brahma and obtain powers with which he should retrieve the lost glory of their class. Darika performed arduous tapasya, which Brahma could not ignore, and he blessed him with such powers as may shield him from harm by man or god night and day. Brahma bestowed him with the mighty rod of Brahma, a weapon of great destructive potential. But an arrogant turn by the asura enraged Brahma who added to his devotee’s luck death by a divine damsel.
Darika with the help of the supernal architect Maya built a splendid palace on the shores of the western sea and proclaimed protection and honor to all the surviving members of his class scattered and hiding. With their help he reconstituted the asura army, fought with Indra the chief of gods, and defeated him. Darika didn't stop with this. He took intermittent military excursions into the territories of the devas and became a perpetual menace to them. The gods in distress petitioned to Vishnu the great god of preservation who directed them to Shiva who told them that only a goddess of extraordinary prowess could slay Darika.Thus Brahma created Brahmi, Vishnu created Vaishnavi and Shiva Maheswari, Indra Indrani, Subrahmanya Kumari, and Yama Varahi. Their combined effort could not, however, vanquish Darika. Then fate in the form of Narada, the celestial monk, came in Darika’s way.
The haughty asura reproached the saint and threatened to kill him. The distressed Narada went to Kailasa and complained to Shiva about the demonic behaviour. The infuriated Shiva created Bhadrakali out of his third eye and assigned to her the task of destroying the asura. In the battle that followed Bhadrakali killed Darika’s minister. Provoked, Darika decided to confront Kali, but before going to the battlefield he transferred all the powerful mantras (hymns of invocation) to his wife. Darika used the rod of brahma forcing Kali to retreat. Goddess Kartyayani, an ally of Kali, who knew that Darika was no more the sole owner of the mantras of his success, tricked the asura’s wife disguising herself as an innocent Brahmin girl. With all the powerful mantras of the opponent now with her, Kali fought with Darika and on the twenty-second day she captured the rod of Brahma, cut her opponent's head and slaked her thirst with his blood. Kali’s fury raged even after the war ended. Her army of goddesses and phantoms, terrified at the unusual anger of their leader, fled the field and sought refuge in Shiva.Shiva proposed several modes of entertainment to cool her down. Dance, music, comic dialogues and mime were tried but all in vain. But when Lord Subrahmanya drew her furious form on the ground, and then acted her out with gorgeous accoutrement and rhythmic movement, Kali was amused and pleased. This, in brief, is the story behind Padayani.
Mythical narratives of this sort that form background to art forms like Padayani are also ground for the founding of certain ethics. During succeeding stages of social change meanings were attached ‘figures’ – acted out with the help of accoutrement and designs drawn on the floor. The ‘figures’(Kolam in Malayalam) became signifiers with signifieds lying in the religious system that was developing alongside the social system. Padayani, as it is known today, has, apart from its artistic function, the function of relieving the social group of ‘spirits’ that malign body and soul. Each Kolam has a purpose and a meaning, its function is not individual but social.
See also
Theyyam
References
External links
Padayani.com, a website dedicated for Padayani
Further reading
Gopalakrishnan, K.K. (2010) Study of Padayani CHOOTTUPADAYANI — Folklore Study: B. Ravikumar; Rainbow Book Publishers, Chengannur-689124. BHAIRAVIKOLAM - B.Ravikumar:
Ashok Kumar Elanthoor's "PRAKRUTHIYUDE MUGHAM PAALAKOLANGALIL", "KAALANKOLATTHINTE ARTHATHALANGAL" & "PADENIYILE KAANAPPURANGAL".
Hindu dance traditions
Ritual dances
Dances of Kerala |
XOMGL (eXtensible Open Municipal Geodata Language) is an XML-based open standard for the exchange of large amounts of government data between a municipal agency and regular citizens and developers creating web-based mapping applications. It is part of the OMG Standard, which seeks to promote the free flow of information between government agencies and citizens by establishing a common set of technical standards for organizing and sharing public data.
Types of data
The XOMGL format is good for organizing and distributing digitally many types of government data, including crime, building permits, restaurant health reviews, pollution sources, political contributions, property values, traffic accidents, sex offenders, and historic sites.
Fields
It has just enough required fields to allow easy updates and the plotting of data on online maps. It also has enough optional data to allow categorization, filtering, date ranges, images, external links, and latitude and longitude. It provides all of this without overwhelming the end user, providing too much irrelevant data, and displays in an easy to read and manage format.
Usage examples
A government agency would make data available on its website with either static links to files in this format, or queryable versions that allow users to filter the data by last updated date, date range, category, etc.
The XML and JSON versions can be used to automate data importing into web-based software applications, while the CSV version allows regular people to browse, filter, sort, edit, and re-purpose the information with only spreadsheet software knowledge.
Formats vs. Standards
Note there is a distinction between data standards and data formats. A data format like KML, GeoRSS, JSON, XML, CSV, and others describe how to format data to make it machine readable by specific applications. A data standard defines which fields/columns are needed to make raw data usable in these formats. Information in the XOMGL standard can be machine-output to any of the above listed data formats.
Example XOMGL format
<?xml version="1.0" encoding="utf-8"?>
<dataset name=""><!-- * name:string - name of the dataset -->
<metadata><!-- * metadata about the dataset -->
<sourcename><!-- * string: name of the source of the data --></sourcename>
<sourceurl><!-- string: full path to the page that has the source data --></sourceurl>
<sourcecity><!-- string: name of the originating city --></sourcecity>
<sourcestateid><!-- int: id of the originating state --></sourcestateid>
<sourcecountryid><!-- int: id of the originating country --></sourcecountryid>
<description><!-- string: text description of source of the data --></description>
<updatefrequency><!-- string: frequency of data updates, daily, monthly, weekly, etc --></updatefrequency>
<lastupdated><!-- datetime: stamp of last update to this dataset --></lastupdated>
<startdatetime><!-- datetime: earliest date of data coverage --></startdatetime>
<enddatetime><!-- datetime: latest date of data coverage --></enddatetime>
</metadata>
<locationdata><!-- * location-based information -->
<centercity><!-- string: name of the city of the data center --></centercity>
<centerstateid><!-- int: id of the state of the data center --></centerstateid>
<centercountryid><!-- int: id of the country of the data center --></centercountryid>
<centerlatitude><!-- float: latitude of center --></centerlatitude>
<centerlongitude><!-- float: longitude of center --></centerlongitude>
<coveragecity><!-- string: city of the dataset coverage area. Leave out if coverage area is greater --></coveragecity>
<coveragestateid><!-- int: id of the state of the dataset coverage area. Leave out if coverage area is greater --></coveragestateid>
<coveragecountryid><!-- * int: id of the country of the dataset coverage area. --></coveragecountryid>
<minlatitude><!-- float: based on data coverage area --></minlatitude>
<maxlatitude><!-- float: based on data coverage area --></maxlatitude>
<minlongitude><!-- float: based on data coverage area --></minlongitude>
<maxlongitude><!-- float: based on data coverage area --></maxlongitude>
</locationdata>
<itemdata> <!-- data concerning all items -->
<externalurl><!-- full path to more info with [ExternalID] in place of item->id in a url --></externalurl>
</itemdata>
<item> <!-- * one item of data. there can be many of these -->
<id><!-- * string: unique id of this item based on internal system id. used for updating data later --></id>
<name><!-- * string: name of the item --></name>
<description><!-- string: html formatted or plain text full description of item --></description>
<categories><!-- one or more categories the item can be classified as. id links to other xml formatted data that shows category name-->
<categoryid><!-- int: id of categorization of item. --></categoryid>
</categories>
<location><!-- string: full text string of location. this can be used instead of address, city, state, zip --></location>
<address><!-- string: street address with house number --></address>
<address2><!-- string: more detailed street address info or location description --></address2>
<city><!-- string: city of item location --></city>
<state><!-- string: state of item location --></state>
<zip><!-- string: zip code of item location --></zip>
<date><!-- date: date associated with item --></date>
<latitude><!-- float: latitude of item location --></latitude>
<longitude><!-- float: longitude of item location --></longitude>
<fullurl><!-- string: full path to more information about this item --></fullurl>
<imagepath><!-- string: full path to location of image on a server --></imagepath>
<detaillink><!-- boolean: if true, will us item->id to link to another XML dataset with full details --></detaillink>
</item>
</dataset>
References
External links
XOMGL Tech Spec
Markup languages
Open formats
XML-based standards |
The Bova Marina Synagogue is the second oldest synagogue uncovered in Italy and one of the oldest in Europe.
The synagogue is located in Bova Marina, Calabria. Bova Marina means "Bova by the sea", in Italian. Only the Ostia Synagogue is older. The remains of the Bova Marina synagogue were unearthed in 1983 during road construction. The site features a mosaic floor with the image of a menorah and accompanying images of a shofar and a lulav to the right and an etrog on the left. In addition, there are other decorative motifs such as Solomon's Knots. There is also a wall niche thought to once contain Torah scrolls.
The synagogue was built in the 4th century with renovations dating to the 6th century. There appears to be an older structure beneath the site but trying to reach it would require destroying the ruins. The synagogue is a basilica-style building that resembles the Byzantine synagogues of the Galilee.
The building is oriented to south-east. The synagogue appears to have ceased functioning around the year 600 when the entire area seemed to have been abandoned. In addition to the site itself, many artifacts have been discovered such as amphora handles with menorah impressions and three thousand bronze coins.
In January 2011, Calabrian newspapers reported increase funding of 600,000 Euros for restoration of the Bova Marina archaeological park. The restoration is part of a regional plan to increase tourism. The project also calls for the opening of a museum to display Jewish artifacts excavated from the site.
Local rabbi Barbara Aiello conducts tours to the site as well as other Jewish heritage sites in southern Italy.
The ancient Jewish community of Calabria is one of the oldest in Europe.
See also
History of the Jews in Italy
History of the Jews in Calabria
Oldest synagogues in the world
References
External links
https://web.archive.org/web/20090715220501/http://www.jewishroots.it/BovaMarina-p1.shtml
Synagogues in Calabria
Ancient synagogues |
Hinaldagh () is a mountain in the Dashkasan District of Azerbaijan. It's located in the western part of the Tanriyokhush, the source section of the Levchay, Shamkir and Ganja rivers. It used to be the de facto 'Line of Contact' between Azerbaijan and self-proclaimed Republic of Artsakh following the First Nagorno-Karabakh war, however, Azerbaijan gained full control over it on 25 November 2021 per the 2020 Nagorno-Karabakh ceasefire agreement. There are alpine and subalpine meadows. Its height is 3367 meters.
See also
List of the highest major summits of Azerbaijan
References
Mountains of Azerbaijan |
Rosa Castillo may refer to:
Rosa Castillo Varó (born 1974), Spanish footballer
Rosa Castillo (basketball) (born 1956), Spanish basketball player
Rosa Castillo (artist) (1910–1989), Mexican sculptor |
Caridosuctor populosum is an extinct species of coelacanth that lived during the Carboniferous period (Serpukhovian stage, about 318 - 326 million years ago). Fossils have been found in the Bear Gulch Limestone in Montana.
References
External links
Fossil fishes of Bear Gulch: Caridosuctor populosum
Rhabdodermatidae
Carboniferous bony fish
Mississippian fish of North America
Prehistoric lobe-finned fish genera |
The Benedictine Priory of Savannah is a Catholic monastery of Benedictine monks located in Savannah, Georgia. The priory was founded in 1877, and is a dependency of Saint Vincent Archabbey in Latrobe, Pennsylvania, and thereby belongs to the American-Cassinese Congregation. It currently operates the Benedictine Military School for boys.
History
First mission
In 1866, the Catholic bishops of the United States had met in Baltimore for the Second Plenary Council held there to continue providing order to the Catholic Church, which was still newly established in the nation. One of the decrees which resulted from that assembly was to call on all the bishops of the country to establish an outreach to the newly emancipated African-American slaves. In keeping with this mandate, William Hickley Gross, C.Ss.R., at that time the Roman Catholic Bishop of Savannah, invited the Benedictine monks of St. Vincent Abbey in Latrobe, Pennsylvania, to contribute priests to this mission in his diocese.
In response to his invitation, Abbot Boniface Wimmer, O.S.B., the founder of Benedictine life in the United States, sent two German-born monks to Savannah in 1874. The monks quickly began missionary work amongst newly freed slaves, opening St. Benedict Parish in the city that year, and a parochial school the following year.
Soon after settling there, the monks were able to obtain some parcels of land on the Isle of Hope, off the coast of Savannah, where they opened the first monastery in the Southern United States. Within a year, however, all the members of the monastic community had died of yellow fever.
Second mission
In 1877, the abbot sent a new group of monks to Georgia, under the leadership of Dom Oswald Moosmueller, O.S.B., to continue the mission to the former slaves. The monks bought 713 acres on Skidaway Island. At this site (now believed to be preserved, not part of a golf course, and is currently undergoing archaeological research) they built a new monastery and school. Unfortunately, in less than ten years, the project was abandoned as a failure because the monks could not attract enough interest among the African American community in their enterprise.
Benedictine Priory of Savannah
The ten monks of the mission, now operating under the authority of Belmont Abbey in North Carolina, made the decision to move to Savannah, where they established a monastery at 31st and Habersham Streets, adjacent to Sacred Heart Parish, which they then served. Recognizing the need for a Catholic boys' school, they established Benedictine College in 1902, later the Benedictine Military School, next to the church. In 1963, both the priory and the school moved to their current location on the southside of Savannah. Shortly after moving to the new location, the monastic community chose to return to the authority of St. Vincent Archabbey in Latrobe.
Current status
Today the community consists of seven monks, all of whom serve on the staff of the school in various capacities. The monks also provide sacramental assistance in the Diocese of Savannah.
See also
Benedictine Military School
Saint Vincent Archabbey
References
Religious organizations established in 1877
Benedictine monasteries in the United States
19th-century Christian monasteries
African-American history in Savannah, Georgia
African-American Roman Catholicism
19th-century Roman Catholic church buildings in the United States
1877 establishments in Georgia (U.S. state) |
"The Road to Hamelin" is the thirty-eighth episode of the American television drama series The Killing, which aired on August 4, 2013, as the second of a two-part season finale. The episode is co-written by series executive producers Dawn Prestwich and Nicole Yorkin and directed by Dan Attias. In the episode, frantic to find Adrian (Rowan Longworth), Stephen Holder (Joel Kinnaman) and Sarah Linden (Mireille Enos) voice their suspicions about Carl Reddick (Gregg Henry) to James Skinner (Elias Koteas). Linden later sees a ring from the missing Kallie on Skinner's daughter's finger. She knows Skinner is the killer and must ride with him to find Adrian. Holder must race to save Linden when Adrian is found safe.
Plot
Holder and Linden ask Adrian's adoptive mother, Tess Clarke (Ingrid Torrance), if she has seen him. She grows worried when his backpack is found in the house and the back door is open. Adrian is missing.
Skinner picks his daughter Bethany (Katherine Evans) up from ballet class. She asks if he loves the "woman from work," meaning Linden. Her mother had told her about the situation. He explains that he can't be someone that he's not, but that he still loves Bethany. She wonders if things will change and he receives a call.
He arrives at the Clarke house, where Holder and Linden tell him about Adrian possibly being abducted. Then, they suggest that they have the wrong man in jail for the murders. Reddick is their suspect. Skinner tells them to continue to search for Adrian, and he will handle the Reddick investigation. Holder and Linden then talk to Cammy Ezer (Jennifer Copping), a neighbor of the Clarkes'. Adrian had come to her house, scared, saying he was being followed. She was too busy to care for him and drove him home.
At the station, Linden mentions security camera footage is being collected from the school to Adrian's house. She and Holder are met at the door by internal affairs agents. They wish to speak to Holder and take him inside. Linden tries to contact Skinner for his help with Holder. She is then given photos of a car following Adrian in several successions.
The IA agents inform Holder they are investigating Holder for several reasons, besides his assault on Reddick. He surrenders his cell phone so they may check it.
When Linden cannot reach Skinner by phone, she goes to his house. He is packing his clothes. She shows him the photo of the car following Adrian and he acts complacent. He tells her that she needs to be more thorough before accusing Reddick. On the way downstairs, his wife and daughter enter and see them together. The daughter is upset with his leaving and they hug. Linden sees Kallie Leeds's ring on Bethany's finger. She deduces that her former partner and lover is the serial killer. Believing that Skinner has Adrian held captive somewhere, she disarms him and forces him to take her to him.
At the station, Holder tells the IA agents to call Skinner and the matter will be cleared up, but the agents inform him that Skinner was the one who filed the complaint, just before Holder arrived. Holder dupes the agents into believing that he has rigged Reddick's car with a bomb; his cell phone is the detonator. Reddick quickly arrives, upset that his family night out was interrupted by the prank. Holder is released and he asks Reddick for help to find Adrian.
In the car, Skinner admits to Linden that he set Holder up with the IAD. At Skinner's home, Holder learns from his wife that Linden was with Skinner. He gets a possible address from the wife. Skinner tells Linden that things would be different if she would've walked away after Joe Mills was arrested. Holder heads out of town, looking at a map to find the address given to him.
In Skinner's car, he claims that the first victim was an accident. She was supposed to be at junior officer's class and missed it. He went to look for her, finding her high on drugs and prostituting. He forced her into his car, struck her after she spat at him, and took her to the woods to keep her from talking to anyone about it. He claims to not remember much after that point. He mentions the exhilaration of killing the "human garbage" that nobody cares about.
Reddick calls Holder. He has found a piece of paper with Adrian's writing on it, saying that, if his father dies, he wants to be with his mother. Holder says that the mother is dead, and Adrian might've meant his foster mother. Reddick investigates further. In the car, Linden suggests that Skinner wanted to kill Adrian for being a witness, but Skinner just wanted to know if the kid remembered him, which he didn't. Skinner was free, until Linden began to help Adrian remember. He insists that he doesn't kill children. She reminds him that some victims were 12 years old and asks why he killed them. He says he didn't need excuses.
He suggests that Linden knows him and that she loved him. That's why she ended up in the psychiatric ward. Linden attacks him for mentioning that, causing him to stop the car. She gets out, exasperated, but knows she must continue the search for Adrian. They resume the ride and she asks where they are. He speaks of a nearby lake and she asks if that is where more bodies are. He says it's one of the places. He remains silent when she asks about Kallie Leeds. When they stop for the final time, he says that he is tired of hiding, confesses to Bullet's murder and easily making Joe Mills the suspect.
Holder arrives at the cabin but finds no one there, not even Adrian. Out of the car, Linden asks where Adrian is and Skinner says that he has been with them the whole time in the car's trunk. Reddick finds Adrian at Trisha Seward's grave and calls Holder. Skinner tells Linden that he lied and regrets killing Adrian. Linden shoots him in the gut and Holder runs toward the sound. He arrives to tell her Adrian is alive, yet she keeps her gun pointed at Skinner, who tells her that she has to be the one to end it. Holder pleads with her to put her gun down and spare him, but is unsuccessful; Linden shoots him in the chest, killing him.
Production
In an August 2013 interview, Mireille Enos (Sarah Linden) talked about her response after reading the script for "The Road to Hamelin": "It's so powerful and intense — and such a surprising twist for TV, to have her kill him. I was definitely surprised but ultimately I'm like, 'What other choice [did she have], considering everything that she's been through?' Veena [Sud] referred to this season as 'Sarah's Inferno. Considering everything that she had been through, and that he had been the catalyst for that — her greatest potential for love was also the one who had not only done all these heinous crimes but allowed [Seward] to go to death, allowed her to go to this hospital and think that she was crazy, allowed her to be put in a situation where Joe Mills beat her up ... he was responsible for all of these horrifying things. Ultimately I don't know what other choice Sarah would have made."
Reception
Critical reception
"The Road to Hamelin" was reviewed in conjunction with "From Up Here" as a two-part season finale. Sean McKenna of TV Fanatic stated, "In a two hours that could have easily dragged and become bloated, [the] season finale of The Killing Season 3 found a way to be compelling, exciting, focused on the characters as much as finishing the case, and providing one heck of an ending." The A.V. Club's Phil Dyess-Nugent gave the finale a B+ grade, stating, "The pieces fit, and the revelation that Skinner, the cop who put the wrongly convicted Ray Seward away, was actually covering up his own crimes, alters the story in a way that, if anything, makes more sense, not less."
Ratings
The two-part season finale was watched by 1.48 million viewers, a slight increase from the second season's finale, as well as the previous episode, and got a 0.5 rating in the 18-49 ages demographic.
References
External links
"The Road to Hamelin" at AMC
The Killing (American TV series) episodes
2013 American television episodes
Television episodes directed by Dan Attias |
Diego Evangelista dos Santos, better known as Dieguinho (September 29, 1989 in Caarapó) is a Brazilian footballer who currently plays for Duque de Caxias.
External links
1989 births
Living people
Brazilian men's footballers
Fluminense FC players
Brasiliense FC players
Atlético Clube Goianiense players
Tupi Football Club players
Campeonato Brasileiro Série A players
Men's association football defenders |
The herkie (aka hurkie) is a cheerleading jump named after Lawrence Herkimer, the founder of the National Cheerleaders Association and former cheerleader at Southern Methodist University. It is similar to a side-hurdler and to the abstract double hook, except instead of the bent leg's knee being pointed downward, it should be flat while the other leg is straight in a straddle jump (toetouch) position.
The jump was invented accidentally, because Herkimer was not able to do an actual side-hurdler. Common misspellings include "hurky" and "herky".
Jump position
In a left herkie, the jumper has the left leg straight in a half-straddle position, and the right leg bent flat beneath them. In a right herkie, it is the opposite. When used as a "signature" at the end of an organized cheer, the jumper typically bends their weaker leg.
Arm positions
Herkie arm positions depend on how the legs are positioned. A left Herkie has the left arm in a straight up High V motion and the right arm on the right hip. If doing a right Herkie the arm positions are flipped.
References
External links
About.com
Cheerleading |
Hedyosmum cumbalense is a species of tree in the Chloranthaceae family. It is native to South America.
References
cumbalense
Trees of Colombia
Trees of Peru
Trees of Ecuador |
```sqlpl
SELECT 'Outer part of Mecca';
SELECT pointInPolygon((39.840202, 21.451471), [(39.90553, 21.38668),(39.91034, 21.38608),(39.91834, 21.38048),(39.93078, 21.3627),(39.94141, 21.36278),(39.94753, 21.36075),(39.94986, 21.35894),(39.95349, 21.3533),(39.97833, 21.3815),(39.98132, 21.38231),(39.98851, 21.38151),(39.99076, 21.37747),(39.98987, 21.36908),(39.98791, 21.36332),(39.99543, 21.35687),(39.99827, 21.34722),(39.99784, 21.34271),(39.99632, 21.33955),(39.99322, 21.3366),(39.98908, 21.33496),(39.9692, 21.3331),(39.95841, 21.3388),(39.95109, 21.34412),(39.95026, 21.34825),(39.95203, 21.35168),(39.94753, 21.35845),(39.94165, 21.36077),(39.93272, 21.36009),(39.92969, 21.36103),(39.91928, 21.37669),(39.91374, 21.3816),(39.91056, 21.38296),(39.90839, 21.38361),(39.90059, 21.38257),(39.8978, 21.37712),(39.90051, 21.37335),(39.90033, 21.37195),(39.89559, 21.37533),(39.89099, 21.36937),(39.89101, 21.3661),(39.89465, 21.364),(39.92418, 21.35725),(39.92838, 21.35433),(39.94394, 21.33915),(39.96711, 21.32785),(39.97437, 21.32734),(39.99523, 21.33055),(40.01271, 21.3293),(40.01345, 21.3276),(40.00731, 21.32689),(39.99189, 21.32817),(39.97264, 21.3251),(39.96216, 21.32725),(39.95825, 21.32598),(39.95783, 21.32734),(39.96017, 21.32834),(39.94652, 21.33514),(39.94578, 21.33237),(39.94438, 21.33259),(39.94454, 21.33563),(39.92448, 21.3545),(39.92007, 21.3563),(39.89586, 21.3615),(39.86239, 21.35659),(39.85241, 21.35319),(39.85183, 21.35189),(39.84187, 21.3498),(39.83475, 21.35001),(39.82272, 21.35322),(39.80957, 21.34986),(39.80645, 21.34645),(39.80654, 21.34104),(39.82207, 21.29116),(39.82732, 21.26685),(39.82657, 21.22894),(39.82468, 21.22761),(39.82364, 21.22857),(39.82459, 21.22961),(39.82535, 21.26649),(39.82016, 21.29057),(39.81723, 21.29965),(39.81585, 21.30012),(39.81652, 21.30158),(39.81475, 21.30815),(39.80378, 21.34492),(39.8023, 21.34648),(39.79042, 21.34584),(39.78385, 21.34687),(39.77227, 21.34595),(39.7601, 21.34279),(39.73947, 21.34141),(39.71051, 21.34288),(39.70233, 21.34041),(39.68839, 21.33943),(39.65964, 21.33189),(39.64627, 21.3344),(39.64733, 21.33592),(39.65598, 21.33404),(39.66095, 21.33402),(39.68789, 21.34136),(39.70198, 21.34238),(39.71031, 21.34487),(39.74208, 21.34353),(39.76109, 21.34495),(39.77363, 21.34845),(39.77446, 21.35039),(39.76342, 21.37977),(39.75978, 21.39951),(39.75655, 21.40491),(39.73768, 21.39607),(39.72646, 21.38795),(39.71285, 21.3969),(39.69867, 21.37979),(39.66651, 21.36156),(39.6662, 21.36338),(39.69742, 21.38135),(39.7112, 21.39803),(39.70333, 21.40335),(39.70227, 21.40556),(39.70273, 21.40892),(39.71038, 21.41608),(39.71004, 21.42139),(39.68758, 21.414),(39.68099, 21.41398),(39.63179, 21.4366),(39.62927917729339, 21.43855995858338),(39.629299942421596, 21.44105336136311),(39.63273, 21.43836),(39.65768, 21.42753),(39.67404, 21.419),(39.6815, 21.41592),(39.68534, 21.41555),(39.7182, 21.42582),(39.72915, 21.4318),(39.72926, 21.43473),(39.72198, 21.45071),(39.72058, 21.46018),(39.72262, 21.46776),(39.72871, 21.47851),(39.73639, 21.48854),(39.73607, 21.50077),(39.73921, 21.50608),(39.74358, 21.50869),(39.77204, 21.51334),(39.78965, 21.51773),(39.78925, 21.52186),(39.77895, 21.53768),(39.77335, 21.55878),(39.77409, 21.55998),(39.77529, 21.55924),(39.78151, 21.53691),(39.79101, 21.52282),(39.79216, 21.51796),(39.79392, 21.51725),(39.793, 21.51609),(39.79416, 21.49641),(39.79816, 21.47216),(39.8004, 21.46856),(39.80363, 21.4669),(39.80549, 21.46717),(39.80785, 21.46483),(39.8079, 21.45844),(39.80961, 21.45125),(39.81407, 21.45956),(39.8189, 21.46404),(39.82568, 21.4678),(39.82961, 21.47351),(39.83079, 21.47799),(39.84122, 21.47849),(39.84401, 21.47583),(39.84423, 21.47113),(39.84321, 21.46813),(39.84421, 21.46059),(39.85356, 21.44251),(39.85688, 21.44231),(39.86433, 21.45155),(39.86762, 21.45385),(39.87655, 21.45623),(39.88419, 21.46034),(39.89153, 21.46165),(39.8939, 21.46349),(39.89668, 21.46326),(39.9075, 21.47496),(39.91921, 21.48088),(39.9355, 21.48404),(39.94435, 21.48781),(39.96608, 21.48881),(39.96569, 21.49663),(39.95135, 21.53005),(39.94352, 21.56004),(39.94384, 21.56417),(39.94803, 21.56766),(39.95376, 21.56964),(39.95497, 21.56891),(39.9538, 21.56747),(39.94686, 21.56478),(39.94534, 21.56123),(39.95324, 21.53069),(39.96782, 21.49652),(39.96808, 21.48868),(39.98958, 21.49423),(40.00615, 21.4944),(40.01566, 21.50406),(40.03305, 21.5127),(40.0475, 21.52172),(40.05278, 21.52274),(40.06051, 21.52124),(40.05971, 21.51952),(40.05217, 21.52052),(40.04866, 21.51978),(40.03052, 21.50875),(40.01631, 21.50181),(40.01014, 21.49459),(40.00619, 21.49215),(39.98995, 21.49206),(39.96952, 21.48658),(39.94485, 21.48571),(39.93748, 21.48246),(39.95107, 21.45666),(39.97348, 21.46578),(39.97479, 21.46523),(39.97424, 21.46392),(39.95217, 21.45495),(39.95444, 21.45202),(39.97071, 21.44272),(39.97127, 21.44141),(39.97007, 21.44065),(39.95381, 21.44976),(39.95007, 21.45407),(39.94121, 21.45146),(39.93089, 21.45021),(39.92173, 21.4449),(39.9164, 21.44366),(39.91152, 21.44104),(39.90446, 21.44019),(39.90416, 21.43717),(39.9067, 21.43268),(39.90657, 21.42875),(39.91121, 21.40898),(39.91566, 21.40698),(39.91675, 21.40517),(39.91627, 21.40045),(39.91407, 21.39734),(39.91949, 21.39132),(39.92673, 21.38963),(39.93267, 21.39089),(39.93373, 21.38995),(39.93279, 21.38889),(39.92676, 21.38762),(39.91905, 21.38931),(39.91251, 21.39595),(39.91173, 21.40041),(39.90949, 21.39663),(39.91172, 21.3928),(39.91031, 21.39269),(39.90798, 21.39493),(39.90668, 21.39219),(39.90882, 21.38887),(39.90768, 21.38803),(39.90505, 21.39084),(39.90417, 21.38841),(39.90553, 21.38668)]);
SELECT 'Inner parts of Mecca';
SELECT pointInPolygon((39.840202, 21.451471), [(39.89317, 21.40473),(39.8952, 21.40371),(39.89574, 21.40332),(39.89629, 21.40285),(39.89739, 21.40172),(39.89925, 21.39916),(39.90055, 21.39718),(39.90145, 21.39501),(39.90173, 21.39491),(39.90189, 21.3948),(39.90252, 21.39409),(39.90289, 21.39384),(39.90396, 21.3934),(39.90422, 21.39338),(39.90436, 21.39343),(39.9044, 21.39349),(39.90404, 21.39369),(39.9037, 21.39396),(39.90351, 21.39416),(39.90319, 21.39463),(39.9027, 21.39571),(39.90267, 21.3959),(39.90268, 21.3961),(39.90281, 21.39646),(39.90293, 21.39662),(39.90307, 21.39675),(39.90324, 21.39685),(39.90362, 21.39695),(39.90382, 21.39694),(39.90418, 21.39681),(39.90447, 21.39655),(39.90505, 21.39544),(39.90523, 21.39531),(39.90547, 21.39528),(39.90556, 21.39529),(39.90572, 21.39537),(39.90592, 21.39552),(39.90662, 21.39645),(39.906, 21.39651),(39.9052, 21.39665),(39.90396, 21.39711),(39.90363, 21.39731),(39.9035, 21.39746),(39.90341, 21.39763),(39.90332, 21.39801),(39.90313, 21.39836),(39.90309, 21.39856),(39.90308, 21.39875),(39.90312, 21.39895),(39.90329, 21.39929),(39.90343, 21.39944),(39.90376, 21.39963),(39.90415, 21.39968),(39.90743, 21.39882),(39.90786, 21.39882),(39.90822, 21.39894),(39.9085, 21.39911),(39.90876, 21.39934),(39.9095, 21.40036),(39.90976, 21.40084),(39.90998, 21.40146),(39.91019, 21.40247),(39.90991, 21.40276),(39.90931, 21.40349),(39.90896, 21.40373),(39.90674, 21.40608),(39.90348, 21.40934),(39.9024, 21.41059),(39.90214, 21.4108),(39.90157, 21.41114),(39.90101, 21.41142),(39.90053, 21.41156),(39.90001, 21.41165),(39.89952, 21.41166),(39.89816, 21.41146),(39.89719, 21.4114),(39.8962, 21.41124),(39.89535, 21.41126),(39.89484, 21.41133),(39.89435, 21.41148),(39.89405, 21.41163),(39.89166, 21.4077),(39.89109, 21.40671),(39.89172, 21.4064),(39.89219, 21.40606),(39.89252, 21.40568),(39.89317, 21.40473)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.89411, 21.37812),(39.89305, 21.37935),(39.89229, 21.38007),(39.89129, 21.38085),(39.88637, 21.38398),(39.88501, 21.38505),(39.88428, 21.38581),(39.87665, 21.38344),(39.87669, 21.38209),(39.87721, 21.38049),(39.87864, 21.37771),(39.8796, 21.37629),(39.88162, 21.37426),(39.88637, 21.36994),(39.88657, 21.36988),(39.88706, 21.37),(39.88876, 21.37081),(39.88896, 21.37101),(39.89013, 21.37233),(39.89156, 21.37426),(39.89332, 21.37678),(39.89411, 21.37812)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.87603, 21.38534),(39.88308, 21.38753),(39.88293, 21.38778),(39.88223, 21.38927),(39.88216, 21.3895),(39.88185, 21.39103),(39.88178, 21.39207),(39.88187, 21.39333),(39.8821, 21.39461),(39.88234, 21.39542),(39.88273, 21.39643),(39.88352, 21.39787),(39.87797, 21.4004),(39.87743, 21.40069),(39.87678, 21.4011),(39.87442, 21.40281),(39.87359, 21.40173),(39.87299, 21.40077),(39.87076, 21.39685),(39.87013, 21.39591),(39.8696, 21.39535),(39.8714, 21.39394),(39.87198, 21.39344),(39.87254, 21.39286),(39.87317, 21.39206),(39.87356, 21.39139),(39.87399, 21.39041),(39.87552, 21.3857),(39.87573, 21.38561),(39.87603, 21.38534)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.8728, 21.40398),(39.86889, 21.40686),(39.86188, 21.41407),(39.8567, 21.41973),(39.85571, 21.42095),(39.85474, 21.4207),(39.85357, 21.42055),(39.8571, 21.4159),(39.8598, 21.4115),(39.86247, 21.40702),(39.86312, 21.40575),(39.86566, 21.39964),(39.86637, 21.39829),(39.86702, 21.39748),(39.86801, 21.39659),(39.86852, 21.39711),(39.86908, 21.39794),(39.87126, 21.40177),(39.87192, 21.40283),(39.8728, 21.40398)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.85537, 21.42292),(39.85579, 21.42569),(39.85581, 21.42611),(39.85559, 21.4266),(39.85335, 21.42856),(39.85159, 21.43039),(39.85001, 21.43114),(39.84921, 21.43092),(39.84693, 21.42992),(39.84558, 21.42953),(39.84158, 21.42902),(39.83488, 21.42846),(39.83661, 21.42511),(39.8371, 21.42353),(39.84406, 21.42267),(39.84527, 21.4226),(39.85309, 21.42252),(39.85438, 21.42267),(39.85537, 21.42292)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.84628, 21.43181),(39.84808, 21.43261),(39.84783, 21.43302),(39.84618, 21.43694),(39.84577, 21.43776),(39.84437, 21.43886),(39.84394, 21.43902),(39.84241, 21.43929),(39.84185, 21.43935),(39.8414, 21.43937),(39.83966, 21.43925),(39.83928, 21.4393),(39.83876, 21.43957),(39.83857, 21.43971),(39.8382, 21.44005),(39.83781, 21.44051),(39.83637, 21.44071),(39.83611, 21.4407),(39.83599, 21.44066),(39.83589, 21.44058),(39.83584, 21.44048),(39.83575, 21.43989),(39.83567, 21.43963),(39.83545, 21.43919),(39.83508, 21.4388),(39.83491, 21.4387),(39.83472, 21.43864),(39.83453, 21.43861),(39.83433, 21.43862),(39.83409, 21.4387),(39.83396, 21.43862),(39.83377, 21.43814),(39.83364, 21.43792),(39.83319, 21.43732),(39.83279, 21.43689),(39.83253, 21.43633),(39.8323, 21.43541),(39.83224, 21.43523),(39.83214, 21.43506),(39.83189, 21.43474),(39.83144, 21.43432),(39.83111, 21.43413),(39.8305, 21.43392),(39.82999, 21.43269),(39.83002, 21.43255),(39.82998, 21.43209),(39.83109, 21.43171),(39.8318, 21.43138),(39.83234, 21.43109),(39.83301, 21.43064),(39.83338, 21.43032),(39.83365, 21.43037),(39.84139, 21.43101),(39.8432, 21.43126),(39.84419, 21.43134),(39.84517, 21.43149),(39.84628, 21.43181)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.83035, 21.42986),(39.8304, 21.42866),(39.83018, 21.42818),(39.83125, 21.42753),(39.83199, 21.42688),(39.83261, 21.42604),(39.83342, 21.42459),(39.83365, 21.42395),(39.83444, 21.42391),(39.83496, 21.4238),(39.83479, 21.42429),(39.83281, 21.42802),(39.83184, 21.42901),(39.83126, 21.4294),(39.83035, 21.42986)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.82819, 21.42907),(39.82814, 21.4304),(39.82488, 21.43059),(39.82445, 21.43066),(39.82337, 21.43101),(39.82191, 21.43183),(39.82049, 21.43295),(39.81955, 21.43393),(39.81912, 21.43421),(39.81892, 21.4343),(39.81862, 21.43437),(39.81829, 21.4344),(39.81774, 21.43434),(39.81632, 21.43374),(39.81706, 21.43236),(39.81724, 21.4319),(39.81748, 21.43143),(39.81812, 21.43039),(39.81845, 21.42992),(39.81919, 21.42907),(39.81933, 21.42884),(39.81964, 21.4281),(39.82006, 21.42826),(39.82103, 21.4285),(39.82135, 21.42873),(39.82154, 21.42879),(39.82284, 21.42907),(39.82412, 21.42923),(39.8253, 21.42933),(39.82659, 21.42933),(39.8273, 21.42926),(39.82819, 21.42907)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.82779, 21.43244),(39.82826, 21.43377),(39.82849, 21.43431),(39.82776, 21.4346),(39.82626, 21.43537),(39.82591, 21.43559),(39.8245, 21.43597),(39.82298, 21.4366),(39.822, 21.43711),(39.82165, 21.43723),(39.82055, 21.43753),(39.81734, 21.43816),(39.81631, 21.43843),(39.81333, 21.43905),(39.81312, 21.43912),(39.81267, 21.43934),(39.81245, 21.4395),(39.81128, 21.4405),(39.81094, 21.44064),(39.81165, 21.43717),(39.81218, 21.43422),(39.81403, 21.43504),(39.81432, 21.4353),(39.8145, 21.43538),(39.81489, 21.43543),(39.81499, 21.43547),(39.81655, 21.4363),(39.81714, 21.4365),(39.81776, 21.43662),(39.81815, 21.43662),(39.81834, 21.43656),(39.81861, 21.43638),(39.81889, 21.43636),(39.81948, 21.43622),(39.82014, 21.43593),(39.82092, 21.4354),(39.82179, 21.43448),(39.82309, 21.43346),(39.82425, 21.43281),(39.82484, 21.43263),(39.82515, 21.43258),(39.82779, 21.43244)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.8207, 21.42636),(39.82125, 21.42508),(39.82206, 21.42403),(39.82275, 21.42279),(39.82346, 21.42235),(39.82418, 21.42178),(39.82499, 21.42142),(39.8265, 21.42122),(39.83136, 21.42199),(39.83197, 21.42264),(39.83163, 21.4237),(39.8309, 21.425),(39.83051, 21.42553),(39.83031, 21.42574),(39.82948, 21.42628),(39.828, 21.42705),(39.82644, 21.42733),(39.8243, 21.42724),(39.82267, 21.42698),(39.82214, 21.42669),(39.8207, 21.42636)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.82102, 21.42106),(39.82062, 21.42128),(39.82017, 21.42162),(39.8194, 21.42239),(39.81905, 21.4228),(39.81802, 21.42299),(39.8179, 21.42265),(39.81779, 21.42189),(39.8176, 21.42155),(39.81729, 21.42131),(39.81711, 21.42124),(39.81692, 21.4212),(39.81653, 21.42125),(39.81619, 21.42144),(39.81595, 21.42175),(39.81588, 21.42193),(39.81584, 21.42212),(39.81585, 21.42232),(39.81597, 21.42319),(39.81504, 21.42328),(39.81423, 21.42329),(39.80999, 21.42266),(39.80755, 21.42223),(39.80737, 21.42203),(39.80706, 21.42179),(39.80695, 21.42166),(39.80685, 21.42142),(39.80686, 21.42123),(39.80695, 21.42105),(39.80755, 21.42041),(39.80768, 21.42022),(39.80789, 21.41962),(39.80793, 21.41935),(39.80801, 21.41519),(39.80809, 21.41439),(39.80827, 21.41351),(39.80867, 21.41233),(39.80881, 21.41233),(39.80924, 21.41409),(39.80931, 21.41428),(39.80941, 21.41444),(39.80969, 21.41471),(39.81006, 21.41484),(39.81026, 21.41485),(39.81064, 21.41475),(39.81095, 21.41452),(39.81107, 21.41437),(39.8112, 21.414),(39.81121, 21.4138),(39.81118, 21.41361),(39.81088, 21.41239),(39.81311, 21.41248),(39.81908, 21.41249),(39.8197, 21.41244),(39.82006, 21.41251),(39.8204, 21.41251),(39.8209, 21.41367),(39.82144, 21.41481),(39.82169, 21.41562),(39.82182, 21.4166),(39.82176, 21.41785),(39.81945, 21.41827),(39.81851, 21.41855),(39.8182, 21.41879),(39.81809, 21.41895),(39.81801, 21.41913),(39.81796, 21.41951),(39.81807, 21.41989),(39.81831, 21.4202),(39.81865, 21.42039),(39.81884, 21.42043),(39.81903, 21.42044),(39.81994, 21.42021),(39.82154, 21.41992),(39.82154, 21.41997),(39.82102, 21.42106)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.81069, 21.41022),(39.81115, 21.40581),(39.8114, 21.4056),(39.81159, 21.40525),(39.81163, 21.40487),(39.81157, 21.40426),(39.81209, 21.40103),(39.81211, 21.39966),(39.81193, 21.39818),(39.81097, 21.39505),(39.8115, 21.39475),(39.81252, 21.39399),(39.8134, 21.39321),(39.81416, 21.39245),(39.81607, 21.38983),(39.81662, 21.38928),(39.81728, 21.38874),(39.81819, 21.38814),(39.81928, 21.38768),(39.82014, 21.38742),(39.82059, 21.38733),(39.82164, 21.38725),(39.82287, 21.38723),(39.82462, 21.3871),(39.82443, 21.38782),(39.82441, 21.38855),(39.82457, 21.39047),(39.82464, 21.39192),(39.82479, 21.3973),(39.82485, 21.3976),(39.82514, 21.39842),(39.82525, 21.39865),(39.8258, 21.39947),(39.82635, 21.4),(39.82679, 21.40031),(39.82736, 21.40062),(39.82928, 21.40137),(39.82948, 21.40151),(39.82914, 21.40441),(39.82897, 21.40551),(39.8282, 21.40889),(39.82795, 21.41023),(39.82696, 21.41),(39.82658, 21.40996),(39.82664, 21.40825),(39.82658, 21.40787),(39.82649, 21.40769),(39.82622, 21.40741),(39.82605, 21.40731),(39.82567, 21.40722),(39.82529, 21.40728),(39.82511, 21.40737),(39.82483, 21.40764),(39.82473, 21.40781),(39.82464, 21.40819),(39.82458, 21.41008),(39.8235, 21.41017),(39.82153, 21.41019),(39.82001, 21.40827),(39.81977, 21.40778),(39.81909, 21.40579),(39.81879, 21.40505),(39.81827, 21.40417),(39.81699, 21.40224),(39.8159, 21.4008),(39.81463, 21.39957),(39.8141, 21.39915),(39.81392, 21.39908),(39.81353, 21.39903),(39.81316, 21.39914),(39.81299, 21.39925),(39.81274, 21.39955),(39.81267, 21.39973),(39.81262, 21.40012),(39.81273, 21.40049),(39.81284, 21.40066),(39.81298, 21.4008),(39.81326, 21.40103),(39.81445, 21.40218),(39.81537, 21.40342),(39.81656, 21.40521),(39.81696, 21.40588),(39.81722, 21.40652),(39.81794, 21.4086),(39.81826, 21.40925),(39.81898, 21.41019),(39.81328, 21.41012),(39.81218, 21.41014),(39.81134, 21.41021),(39.81069, 21.41022)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.80999, 21.39018),(39.80983, 21.38939),(39.80816, 21.38343),(39.80609, 21.3751),(39.80867, 21.37472),(39.80969, 21.37875),(39.81147, 21.38151),(39.81202, 21.38214),(39.81339, 21.38345),(39.81628, 21.38612),(39.81677, 21.38646),(39.81575, 21.38713),(39.81478, 21.38799),(39.81395, 21.38898),(39.81265, 21.39076),(39.81228, 21.39111),(39.8121, 21.3912),(39.81181, 21.39121),(39.81033, 21.39058),(39.80999, 21.39018)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.81909, 21.38545),(39.8181, 21.38496),(39.81759, 21.3846),(39.81476, 21.382),(39.81349, 21.38079),(39.81311, 21.38035),(39.81153, 21.37795),(39.81145, 21.37773),(39.81046, 21.37363),(39.81038, 21.37341),(39.81025, 21.37321),(39.80995, 21.37288),(39.80962, 21.3727),(39.80925, 21.37265),(39.80899, 21.37265),(39.80561, 21.37315),(39.80517, 21.37139),(39.80492, 21.37068),(39.80504, 21.37048),(39.8051, 21.37031),(39.80521, 21.36975),(39.8052, 21.36955),(39.80506, 21.36919),(39.80494, 21.36903),(39.80441, 21.36603),(39.80411, 21.36492),(39.80356, 21.36191),(39.80349, 21.36116),(39.80345, 21.35965),(39.80349, 21.35894),(39.80411, 21.35504),(39.80433, 21.35476),(39.80482, 21.35383),(39.80553, 21.35304),(39.8063, 21.35252),(39.80724, 21.35222),(39.80825, 21.35217),(39.80932, 21.35231),(39.81637, 21.35445),(39.81856, 21.35504),(39.82046, 21.35546),(39.82287, 21.35558),(39.82421, 21.35536),(39.82613, 21.35492),(39.83433, 21.35261),(39.83656, 21.35216),(39.83834, 21.35188),(39.83936, 21.35182),(39.84169, 21.3521),(39.84381, 21.35252),(39.84777, 21.35391),(39.84887, 21.35434),(39.84773, 21.35594),(39.84744, 21.35628),(39.84524, 21.35927),(39.83253, 21.37661),(39.8295, 21.38077),(39.82857, 21.38214),(39.82833, 21.38244),(39.82791, 21.38279),(39.82744, 21.38324),(39.82631, 21.3845),(39.82551, 21.38473),(39.82438, 21.38494),(39.82041, 21.38516),(39.81948, 21.38534),(39.81909, 21.38545)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.80215, 21.35462),(39.8015, 21.35868),(39.80145, 21.35959),(39.80149, 21.36132),(39.80157, 21.36215),(39.80215, 21.36532),(39.80244, 21.36642),(39.80274, 21.36813),(39.79915, 21.3652),(39.79798, 21.36406),(39.79715, 21.36315),(39.79586, 21.36153),(39.79496, 21.36019),(39.79359, 21.35827),(39.79297, 21.35753),(39.79128, 21.35568),(39.79053, 21.35503),(39.78825, 21.35321),(39.78735, 21.35255),(39.78586, 21.35172),(39.78394, 21.35084),(39.78351, 21.35055),(39.78399, 21.34968),(39.78415, 21.34951),(39.78515, 21.34915),(39.78558, 21.34906),(39.78718, 21.34859),(39.78801, 21.34846),(39.78885, 21.34839),(39.78982, 21.34822),(39.79322, 21.3482),(39.79564, 21.34849),(39.79835, 21.34916),(39.79957, 21.34986),(39.80019, 21.35029),(39.80071, 21.35078),(39.80117, 21.35137),(39.80155, 21.35202),(39.80187, 21.35285),(39.80206, 21.35367),(39.80209, 21.35432),(39.80215, 21.35462)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.779, 21.35047),(39.78, 21.35119),(39.78099, 21.35171),(39.78492, 21.35348),(39.78632, 21.35426),(39.78702, 21.35478),(39.78924, 21.35656),(39.78993, 21.35716),(39.79145, 21.35883),(39.79203, 21.35952),(39.79333, 21.36134),(39.79427, 21.36274),(39.79565, 21.36447),(39.79656, 21.36548),(39.79779, 21.36667),(39.80229, 21.37034),(39.80218, 21.37053),(39.80167, 21.37113),(39.80041, 21.37248),(39.79975, 21.3731),(39.79894, 21.37373),(39.79827, 21.37413),(39.79698, 21.37475),(39.79643, 21.37496),(39.79558, 21.37521),(39.79529, 21.37422),(39.79478, 21.3732),(39.79409, 21.37214),(39.79351, 21.37149),(39.793, 21.37101),(39.79201, 21.37035),(39.79122, 21.36997),(39.79048, 21.36972),(39.7891, 21.36947),(39.7887, 21.36944),(39.78832, 21.36949),(39.78814, 21.36957),(39.78784, 21.36982),(39.78767, 21.37017),(39.78763, 21.37037),(39.78718, 21.375),(39.78467, 21.37478),(39.78431, 21.37488),(39.78402, 21.37511),(39.78391, 21.37526),(39.78378, 21.3756),(39.78245, 21.38285),(39.78231, 21.38317),(39.78211, 21.38348),(39.77952, 21.38561),(39.77935, 21.38579),(39.77889, 21.38643),(39.77608, 21.391),(39.77578, 21.39181),(39.77555, 21.39291),(39.77492, 21.39694),(39.76541, 21.3964),(39.76273, 21.39622),(39.76342, 21.3915),(39.76482, 21.38563),(39.76512, 21.38401),(39.76545, 21.38126),(39.76562, 21.38041),(39.76602, 21.37916),(39.76859, 21.37278),(39.76972, 21.36938),(39.77036, 21.36686),(39.77091, 21.36513),(39.77314, 21.35887),(39.77478, 21.35448),(39.77517, 21.35368),(39.77568, 21.35293),(39.77631, 21.35217),(39.77681, 21.35168),(39.77761, 21.3511),(39.77831, 21.35073),(39.779, 21.35047)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.76244, 21.39846),(39.76255, 21.39821),(39.76528, 21.3984),(39.77595, 21.399),(39.77653, 21.39906),(39.78224, 21.39999),(39.78304, 21.40016),(39.78406, 21.40081),(39.78349, 21.40178),(39.78316, 21.40249),(39.78263, 21.40405),(39.78258, 21.40444),(39.78267, 21.40478),(39.78245, 21.40582),(39.78226, 21.407),(39.78167, 21.40978),(39.78069, 21.41362),(39.77994, 21.41671),(39.77776, 21.41693),(39.77732, 21.41693),(39.7769, 21.41689),(39.77624, 21.41674),(39.77593, 21.41661),(39.773, 21.41486),(39.77164, 21.41423),(39.76892, 21.41344),(39.76744, 21.41319),(39.76656, 21.41312),(39.76083, 21.41289),(39.7596, 21.41288),(39.75858, 21.41283),(39.756, 21.4126),(39.75567, 21.41255),(39.75472, 21.41221),(39.75448, 21.41203),(39.7544, 21.41191),(39.75435, 21.41171),(39.75437, 21.41133),(39.75446, 21.41111),(39.75488, 21.41038),(39.75712, 21.40804),(39.75802, 21.40692),(39.75933, 21.40518),(39.7607, 21.40297),(39.76127, 21.40197),(39.76186, 21.40076),(39.76209, 21.40008),(39.76228, 21.39934),(39.76244, 21.39846)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.78571, 21.4023),(39.78613, 21.40226),(39.78735, 21.40325),(39.78684, 21.40459),(39.78685, 21.40595),(39.78943, 21.41476),(39.79045, 21.41882),(39.79071, 21.41927),(39.79203, 21.42035),(39.7921, 21.42071),(39.79178, 21.42117),(39.79074, 21.42159),(39.7902, 21.42203),(39.78993, 21.42249),(39.78974, 21.42357),(39.78774, 21.42363),(39.78577, 21.42328),(39.78521, 21.42357),(39.78486, 21.42441),(39.78493, 21.42495),(39.78537, 21.42543),(39.78674, 21.42583),(39.7884, 21.42607),(39.78817, 21.42683),(39.7881, 21.428),(39.78914, 21.43215),(39.7889, 21.43869),(39.78737, 21.43877),(39.78262, 21.43967),(39.78006, 21.43961),(39.77771, 21.43792),(39.77742, 21.43637),(39.77739, 21.43356),(39.77763, 21.4322),(39.77929, 21.42676),(39.78007, 21.42488),(39.78048, 21.42431),(39.78176, 21.42346),(39.78296, 21.42427),(39.78354, 21.42436),(39.78438, 21.42393),(39.78469, 21.42344),(39.78459, 21.42268),(39.78345, 21.42155),(39.78336, 21.41933),(39.78243, 21.41679),(39.78242, 21.41498),(39.78361, 21.41026),(39.78458, 21.40542),(39.78489, 21.40468),(39.7849, 21.40411),(39.78571, 21.4023)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.77052, 21.43821),(39.76961, 21.43812),(39.76832, 21.4382),(39.76767, 21.43829),(39.76811, 21.43749),(39.76863, 21.4368),(39.76943, 21.43601),(39.77156, 21.43438),(39.77239, 21.43353),(39.77295, 21.43277),(39.77411, 21.43069),(39.7749, 21.42952),(39.77558, 21.42859),(39.77673, 21.42736),(39.77594, 21.42991),(39.77575, 21.4307),(39.77542, 21.43177),(39.77522, 21.43286),(39.77508, 21.43432),(39.77509, 21.43554),(39.77488, 21.43577),(39.77474, 21.43605),(39.77467, 21.43622),(39.77444, 21.43711),(39.77419, 21.43754),(39.77404, 21.43771),(39.77377, 21.43791),(39.77352, 21.43805),(39.77287, 21.43824),(39.77085, 21.43816),(39.77052, 21.43821)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.77683, 21.42438),(39.77605, 21.425),(39.77496, 21.42603),(39.7739, 21.42729),(39.77313, 21.42836),(39.77185, 21.4304),(39.77114, 21.43164),(39.77043, 21.4325),(39.76964, 21.4332),(39.76827, 21.43424),(39.76732, 21.43509),(39.76667, 21.43583),(39.76622, 21.43647),(39.76497, 21.43865),(39.76336, 21.43887),(39.76248, 21.43875),(39.76215, 21.43863),(39.75945, 21.4361),(39.75799, 21.43499),(39.75779, 21.43487),(39.75661, 21.43435),(39.75139, 21.43268),(39.75032, 21.43203),(39.74784, 21.42997),(39.74759, 21.42982),(39.74683, 21.4295),(39.74612, 21.42931),(39.74467, 21.42912),(39.74448, 21.42896),(39.7443, 21.42888),(39.74194, 21.4285),(39.74145, 21.42827),(39.74102, 21.42776),(39.7407, 21.42681),(39.74058, 21.42589),(39.74083, 21.42453),(39.74184, 21.4225),(39.74313, 21.42067),(39.74414, 21.41962),(39.74463, 21.41918),(39.74722, 21.41719),(39.74816, 21.41667),(39.75131, 21.41514),(39.7528, 21.4143),(39.7546, 21.41468),(39.75722, 21.41503),(39.7665, 21.41541),(39.76768, 21.41554),(39.7691, 21.41584),(39.77057, 21.41631),(39.77193, 21.41692),(39.77339, 21.41779),(39.7742, 21.41838),(39.77635, 21.41978),(39.77611, 21.41999),(39.77594, 21.42034),(39.77589, 21.42086),(39.77591, 21.42111),(39.77604, 21.42177),(39.77613, 21.42203),(39.77649, 21.42272),(39.77693, 21.42331),(39.77708, 21.42367),(39.77707, 21.42393),(39.77683, 21.42438)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.73364, 21.42933),(39.73324, 21.42934),(39.72777, 21.42885),(39.72661, 21.42861),(39.72586, 21.42833),(39.71975, 21.42438),(39.71903, 21.424),(39.71198, 21.42198),(39.71237, 21.41843),(39.71241, 21.4169),(39.71237, 21.41582),(39.71224, 21.4153),(39.71207, 21.41499),(39.71028, 21.41276),(39.70957, 21.412),(39.70914, 21.4116),(39.70794, 21.41071),(39.70769, 21.41057),(39.70642, 21.41012),(39.70575, 21.40943),(39.70451, 21.40799),(39.70442, 21.40779),(39.70426, 21.40579),(39.70437, 21.4053),(39.70468, 21.40483),(39.70531, 21.40433),(39.71243, 21.39961),(39.7206, 21.41007),(39.72131, 21.41077),(39.72202, 21.41134),(39.72276, 21.41188),(39.72424, 21.41269),(39.72578, 21.41323),(39.72663, 21.41346),(39.72741, 21.41357),(39.72886, 21.41366),(39.73014, 21.4136),(39.7346, 21.41323),(39.73624, 21.41339),(39.73895, 21.41313),(39.74098, 21.41303),(39.74174, 21.41319),(39.74348, 21.41408),(39.74416, 21.41454),(39.74445, 21.41478),(39.74463, 21.41504),(39.74467, 21.41523),(39.74465, 21.41565),(39.74447, 21.41608),(39.74416, 21.41649),(39.74239, 21.41799),(39.74121, 21.41922),(39.74065, 21.41993),(39.73973, 21.42137),(39.73894, 21.42307),(39.7385, 21.42385),(39.73799, 21.42463),(39.73672, 21.42624),(39.73364, 21.42933)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.71409, 21.39848),(39.7259, 21.39043),(39.72856, 21.39237),(39.72897, 21.39258),(39.72946, 21.39268),(39.72985, 21.39281),(39.73553, 21.39698),(39.73563, 21.39707),(39.73609, 21.39767),(39.73676, 21.39815),(39.74249, 21.40142),(39.743, 21.40162),(39.74336, 21.40168),(39.7445, 21.40156),(39.74465, 21.40162),(39.74535, 21.40201),(39.74586, 21.40221),(39.74731, 21.4031),(39.75127, 21.4053),(39.75207, 21.40561),(39.75415, 21.40664),(39.75489, 21.40686),(39.75501, 21.40693),(39.75368, 21.40835),(39.75296, 21.4087),(39.75071, 21.40918),(39.74696, 21.41005),(39.74601, 21.41024),(39.74227, 21.41003),(39.74019, 21.41017),(39.73721, 21.41052),(39.73608, 21.41079),(39.73591, 21.41089),(39.73567, 21.41113),(39.72999, 21.4116),(39.72892, 21.41166),(39.72757, 21.41157),(39.72697, 21.41149),(39.72641, 21.41133),(39.7251, 21.41088),(39.72389, 21.41023),(39.72326, 21.40977),(39.72261, 21.40924),(39.72205, 21.40869),(39.71409, 21.39848)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.7457, 21.43127),(39.74624, 21.43142),(39.74667, 21.4316),(39.7491, 21.43362),(39.75045, 21.43445),(39.75067, 21.43455),(39.75586, 21.43621),(39.75688, 21.43666),(39.75811, 21.43759),(39.7606, 21.43995),(39.76102, 21.44029),(39.76115, 21.44038),(39.76188, 21.44066),(39.7621, 21.44072),(39.76323, 21.44087),(39.76349, 21.44087),(39.76572, 21.44057),(39.76592, 21.44058),(39.76625, 21.4405),(39.76848, 21.4402),(39.76965, 21.44012),(39.77019, 21.44018),(39.77471, 21.44129),(39.77662, 21.44142),(39.77705, 21.44257),(39.77753, 21.44343),(39.77792, 21.444),(39.77863, 21.44489),(39.77936, 21.44567),(39.7797, 21.44597),(39.7803, 21.44638),(39.78107, 21.44684),(39.7823, 21.4475),(39.78364, 21.44835),(39.78622, 21.45028),(39.78775, 21.45163),(39.78853, 21.45236),(39.79426, 21.45875),(39.79488, 21.45938),(39.79706, 21.46135),(39.79869, 21.4625),(39.80185, 21.46439),(39.80201, 21.46461),(39.80207, 21.46475),(39.80206, 21.46486),(39.80187, 21.46508),(39.79992, 21.4663),(39.79979, 21.46644),(39.79968, 21.46663),(39.79914, 21.467),(39.79814, 21.46788),(39.79751, 21.46867),(39.79695, 21.46959),(39.79658, 21.47045),(39.79623, 21.47164),(39.7932, 21.48709),(39.79286, 21.48954),(39.79217, 21.49622),(39.79191, 21.49914),(39.79191, 21.50009),(39.79167, 21.502),(39.79039, 21.5155),(39.7749, 21.51163),(39.77208, 21.51099),(39.7654, 21.51023),(39.74443, 21.5064),(39.74326, 21.50603),(39.74213, 21.50544),(39.74139, 21.50491),(39.74068, 21.50419),(39.7399, 21.50329),(39.73911, 21.50203),(39.73868, 21.50103),(39.73842, 21.49995),(39.73826, 21.49836),(39.73919, 21.49113),(39.73916, 21.48952),(39.73895, 21.48839),(39.73888, 21.48816),(39.73839, 21.4871),(39.73787, 21.4862),(39.73693, 21.48477),(39.73567, 21.48348),(39.73286, 21.48021),(39.73059, 21.47715),(39.72508, 21.46749),(39.72433, 21.46585),(39.72302, 21.46073),(39.72287, 21.45961),(39.72278, 21.45841),(39.72284, 21.45738),(39.72295, 21.45633),(39.72389, 21.45255),(39.72481, 21.45005),(39.73039, 21.43827),(39.7314, 21.43644),(39.73183, 21.43594),(39.73214, 21.43568),(39.73369, 21.43469),(39.73481, 21.43411),(39.73548, 21.43368),(39.73637, 21.433),(39.73709, 21.43238),(39.73785, 21.43181),(39.73821, 21.43158),(39.73856, 21.43144),(39.73898, 21.43133),(39.73951, 21.43126),(39.74295, 21.43112),(39.7457, 21.43127)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.7791, 21.44156),(39.77939, 21.44157),(39.78003, 21.44187),(39.78046, 21.442),(39.78123, 21.44207),(39.78208, 21.44195),(39.78301, 21.44163),(39.78764, 21.44075),(39.78822, 21.44077),(39.78917, 21.44068),(39.79022, 21.44082),(39.7976, 21.44116),(39.7978, 21.44115),(39.79799, 21.4411),(39.79933, 21.44116),(39.79964, 21.44126),(39.80102, 21.44147),(39.80255, 21.44181),(39.80419, 21.4421),(39.80647, 21.44221),(39.80682, 21.44216),(39.80854, 21.4424),(39.8081, 21.44453),(39.80796, 21.44538),(39.8078, 21.44743),(39.80767, 21.44769),(39.80763, 21.44789),(39.80767, 21.44828),(39.80774, 21.44843),(39.80761, 21.45109),(39.80736, 21.4538),(39.80599, 21.45785),(39.8059, 21.45822),(39.80589, 21.45902),(39.80592, 21.45926),(39.80609, 21.45985),(39.80634, 21.46041),(39.80595, 21.46096),(39.8057, 21.46124),(39.8038, 21.46239),(39.80349, 21.46246),(39.80322, 21.46244),(39.79996, 21.46056),(39.79871, 21.45967),(39.79745, 21.45865),(39.79647, 21.45779),(39.79588, 21.4572),(39.78985, 21.45056),(39.78754, 21.44849),(39.7862, 21.44745),(39.78483, 21.44646),(39.78342, 21.44554),(39.78147, 21.44446),(39.78087, 21.44401),(39.77967, 21.44266),(39.7791, 21.44156)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.93436, 21.4816),(39.93241, 21.48133),(39.92917, 21.48071),(39.92795, 21.48063),(39.92391, 21.48004),(39.92213, 21.47963),(39.92017, 21.47891),(39.91245, 21.47545),(39.91099, 21.47469),(39.9098, 21.47394),(39.90843, 21.47286),(39.90708, 21.4716),(39.90445, 21.46837),(39.90205, 21.46552),(39.90002, 21.46344),(39.89957, 21.4628),(39.8993, 21.46223),(39.89803, 21.45836),(39.898, 21.45747),(39.89804, 21.45702),(39.90192, 21.44447),(39.9022, 21.44387),(39.90238, 21.44363),(39.90272, 21.44337),(39.90406, 21.44277),(39.90471, 21.44266),(39.90601, 21.44278),(39.90621, 21.44277),(39.90655, 21.44267),(39.90946, 21.44274),(39.91033, 21.44282),(39.91091, 21.44294),(39.91136, 21.44311),(39.912, 21.44341),(39.91274, 21.44388),(39.91397, 21.44474),(39.9147, 21.44511),(39.91571, 21.44553),(39.91731, 21.44594),(39.9197, 21.44635),(39.92104, 21.44677),(39.92156, 21.44697),(39.92234, 21.44739),(39.92405, 21.44847),(39.92538, 21.44954),(39.92675, 21.45043),(39.92962, 21.4519),(39.93035, 21.45214),(39.93227, 21.45265),(39.93426, 21.45311),(39.93484, 21.45321),(39.93669, 21.45325),(39.9378, 21.4532),(39.93928, 21.45321),(39.94077, 21.45341),(39.94229, 21.45381),(39.94572, 21.45459),(39.94649, 21.45483),(39.94901, 21.45579),(39.93559, 21.4801),(39.93508, 21.48113),(39.93479, 21.48161),(39.93436, 21.4816)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.9044, 21.42901),(39.90248, 21.42675),(39.90195, 21.4262),(39.90111, 21.42499),(39.90059, 21.42408),(39.90038, 21.42359),(39.89991, 21.42209),(39.89946, 21.42086),(39.89889, 21.41972),(39.89911, 21.41951),(39.89926, 21.41931),(39.89948, 21.41892),(39.89961, 21.41855),(39.89964, 21.41816),(39.89957, 21.41767),(39.89948, 21.41741),(39.89925, 21.417),(39.89899, 21.41667),(39.89887, 21.41624),(39.89879, 21.41607),(39.89867, 21.41591),(39.89852, 21.41578),(39.89835, 21.41569),(39.89816, 21.41562),(39.89777, 21.41561),(39.89741, 21.41575),(39.89725, 21.41587),(39.89712, 21.41602),(39.89703, 21.41619),(39.89696, 21.41645),(39.89537, 21.41379),(39.89576, 21.4136),(39.89645, 21.41343),(39.89707, 21.41339),(39.89798, 21.41346),(39.89948, 21.41366),(39.90026, 21.41364),(39.90105, 21.4135),(39.90182, 21.41325),(39.90257, 21.41288),(39.90323, 21.41248),(39.90385, 21.41197),(39.90475, 21.41093),(39.90476, 21.41108),(39.90482, 21.41126),(39.90492, 21.41143),(39.9052, 21.4117),(39.90538, 21.41179),(39.90589, 21.4119),(39.90633, 21.41211),(39.90744, 21.4129),(39.90772, 21.41318),(39.9078, 21.4133),(39.90791, 21.41361),(39.90793, 21.41377),(39.9079, 21.41405),(39.90795, 21.41444),(39.90814, 21.41478),(39.90724, 21.41976),(39.90704, 21.42054),(39.90545, 21.42577),(39.9044, 21.42901)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.8047, 21.42149),(39.80352, 21.42129),(39.80246, 21.42135),(39.80157, 21.42154),(39.79665, 21.42328),(39.79613, 21.42337),(39.79422, 21.4236),(39.79363, 21.42362),(39.79194, 21.42358),(39.79197, 21.42339),(39.79246, 21.42319),(39.79288, 21.42298),(39.79309, 21.42284),(39.79357, 21.42239),(39.79395, 21.4219),(39.79415, 21.42135),(39.7942, 21.42109),(39.79422, 21.42034),(39.79408, 21.41965),(39.7938, 21.41913),(39.79365, 21.41892),(39.79326, 21.41852),(39.79252, 21.41799),(39.79244, 21.41749),(39.79228, 21.41685),(39.78902, 21.4057),(39.78897, 21.40545),(39.78905, 21.40469),(39.78917, 21.40441),(39.7896, 21.40383),(39.7899, 21.40361),(39.79015, 21.40348),(39.79091, 21.4033),(39.79119, 21.40331),(39.79188, 21.40345),(39.79208, 21.40353),(39.7923, 21.40367),(39.79685, 21.4084),(39.79791, 21.40973),(39.79986, 21.41254),(39.80035, 21.41301),(39.80145, 21.41381),(39.80223, 21.41458),(39.80241, 21.41472),(39.80482, 21.41733),(39.80568, 21.41832),(39.80568, 21.41932),(39.80526, 21.41977),(39.8051, 21.41999),(39.80494, 21.4203),(39.8047, 21.42107),(39.8047, 21.42149)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.79951, 21.40831),(39.79848, 21.40702),(39.79501, 21.40333),(39.79373, 21.40207),(39.79355, 21.40193),(39.79291, 21.40156),(39.79209, 21.40128),(39.79129, 21.40117),(39.7904, 21.40122),(39.78952, 21.40145),(39.78886, 21.40175),(39.78761, 21.40064),(39.78831, 21.39977),(39.78842, 21.39961),(39.7885, 21.39941),(39.78889, 21.39915),(39.78934, 21.39892),(39.78975, 21.39885),(39.79039, 21.39844),(39.7913, 21.39812),(39.79528, 21.39727),(39.79685, 21.39697),(39.79808, 21.39687),(39.80179, 21.39686),(39.80549, 21.39681),(39.80651, 21.39668),(39.80725, 21.39666),(39.80743, 21.3966),(39.80771, 21.39643),(39.80899, 21.39602),(39.80971, 21.39842),(39.80979, 21.39893),(39.80983, 21.39956),(39.80955, 21.39958),(39.80936, 21.39965),(39.8092, 21.39975),(39.80893, 21.40003),(39.8088, 21.4004),(39.80766, 21.40803),(39.80749, 21.40874),(39.8071, 21.4101),(39.80666, 21.41003),(39.80538, 21.40971),(39.8038, 21.40937),(39.80309, 21.40917),(39.79951, 21.40831)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.78528, 21.39922),(39.78493, 21.39899),(39.78591, 21.39763),(39.78619, 21.3968),(39.78824, 21.38477),(39.78896, 21.37718),(39.79196, 21.37747),(39.79386, 21.37747),(39.79431, 21.38367),(39.79466, 21.38521),(39.79527, 21.38685),(39.7963, 21.39301),(39.79642, 21.39481),(39.79092, 21.39593),(39.78942, 21.39642),(39.78822, 21.39699),(39.78722, 21.3976),(39.78651, 21.3981),(39.78528, 21.39922)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.79842, 21.39469),(39.79828, 21.39273),(39.79723, 21.38643),(39.79656, 21.38457),(39.7963, 21.38345),(39.79584, 21.3772),(39.79782, 21.37657),(39.80001, 21.37542),(39.80108, 21.37459),(39.80295, 21.37269),(39.80319, 21.37258),(39.80748, 21.38942),(39.80783, 21.39052),(39.80783, 21.39119),(39.8077, 21.39161),(39.80752, 21.39189),(39.80687, 21.39255),(39.80579, 21.39415),(39.80519, 21.39458),(39.79842, 21.39469)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.86272, 21.42529),(39.86276, 21.42495),(39.86273, 21.42476),(39.86266, 21.42457),(39.86255, 21.42441),(39.8638, 21.42428),(39.8642, 21.42419),(39.86474, 21.42401),(39.86583, 21.42353),(39.86774, 21.42232),(39.87468, 21.41769),(39.87519, 21.41722),(39.87556, 21.41679),(39.87623, 21.41572),(39.87632, 21.41563),(39.87919, 21.41359),(39.88011, 21.41502),(39.88112, 21.41677),(39.88159, 21.4177),(39.88115, 21.41807),(39.88045, 21.41821),(39.87899, 21.41871),(39.87817, 21.41908),(39.87653, 21.41992),(39.87497, 21.42078),(39.87348, 21.42172),(39.87086, 21.42355),(39.86554, 21.42759),(39.86429, 21.4284),(39.86344, 21.42888),(39.86315, 21.42914),(39.86304, 21.42931),(39.86297, 21.42949),(39.86288, 21.42955),(39.86345, 21.42732),(39.86493, 21.42715),(39.86628, 21.42693),(39.86645, 21.42685),(39.86674, 21.42659),(39.86691, 21.42623),(39.86694, 21.42604),(39.86693, 21.42584),(39.8668, 21.42548),(39.86654, 21.42519),(39.86618, 21.42502),(39.86599, 21.42499),(39.86579, 21.425),(39.86465, 21.42517),(39.86303, 21.42536),(39.86272, 21.42529)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.88137, 21.4133),(39.88234, 21.41345),(39.88299, 21.41336),(39.88369, 21.41308),(39.88421, 21.41275),(39.88498, 21.41196),(39.88634, 21.40971),(39.88889, 21.40731),(39.89212, 21.41262),(39.89182, 21.41282),(39.89033, 21.41422),(39.88928, 21.41434),(39.88824, 21.41479),(39.88626, 21.41669),(39.88579, 21.41696),(39.88471, 21.41737),(39.88379, 21.4176),(39.88287, 21.41579),(39.88137, 21.4133)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.89343, 21.41478),(39.89599, 21.41909),(39.8969, 21.42055),(39.89729, 21.42134),(39.89771, 21.42243),(39.8981, 21.42371),(39.89874, 21.4253),(39.89905, 21.42595),(39.89945, 21.42665),(39.89984, 21.42723),(39.90044, 21.42799),(39.90305, 21.43104),(39.9031, 21.43127),(39.90311, 21.43155),(39.90306, 21.43194),(39.9017, 21.43639),(39.90122, 21.43585),(39.90098, 21.43544),(39.90059, 21.43417),(39.90029, 21.43348),(39.89965, 21.43238),(39.89683, 21.4285),(39.89643, 21.42802),(39.89572, 21.4274),(39.89208, 21.42467),(39.8859, 21.42038),(39.88621, 21.41977),(39.8863, 21.41948),(39.88648, 21.41926),(39.88752, 21.4184),(39.88777, 21.4181),(39.88784, 21.41793),(39.88939, 21.41644),(39.88975, 21.41629),(39.89056, 21.41626),(39.891, 21.41612),(39.89343, 21.41478)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.90063, 21.43987),(39.89683, 21.45214),(39.8956, 21.45625),(39.89544, 21.45648),(39.89523, 21.45671),(39.89504, 21.45685),(39.89446, 21.45714),(39.89298, 21.45776),(39.89025, 21.4587),(39.88889, 21.4589),(39.88829, 21.45893),(39.88695, 21.45888),(39.88613, 21.45869),(39.88496, 21.45834),(39.88205, 21.45719),(39.88115, 21.45672),(39.87854, 21.45483),(39.87734, 21.45423),(39.87619, 21.45386),(39.871, 21.45278),(39.87018, 21.45257),(39.86828, 21.45177),(39.86695, 21.45101),(39.86592, 21.45008),(39.86505, 21.44914),(39.86307, 21.44683),(39.86096, 21.44427),(39.86036, 21.44351),(39.85993, 21.44287),(39.85876, 21.44092),(39.85863, 21.4405),(39.85853, 21.4385),(39.85845, 21.43789),(39.85841, 21.4377),(39.85799, 21.43648),(39.85816, 21.43625),(39.85861, 21.4358),(39.86082, 21.43328),(39.86139, 21.43272),(39.86152, 21.43255),(39.86213, 21.43226),(39.86471, 21.4308),(39.86495, 21.4305),(39.86503, 21.43028),(39.86671, 21.42921),(39.87205, 21.42516),(39.87456, 21.4234),(39.87601, 21.42249),(39.87745, 21.42169),(39.87968, 21.42059),(39.88, 21.42048),(39.88078, 21.42029),(39.88189, 21.4201),(39.8827, 21.41988),(39.88297, 21.4204),(39.8836, 21.42141),(39.88376, 21.42162),(39.88439, 21.4222),(39.89129, 21.42698),(39.89334, 21.42853),(39.89452, 21.42953),(39.89488, 21.42994),(39.89779, 21.43386),(39.89841, 21.43486),(39.89868, 21.43546),(39.89962, 21.43833),(39.89972, 21.4385),(39.8999, 21.43867),(39.90027, 21.43939),(39.90063, 21.43987)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.89963, 21.38706),(39.8989, 21.38816),(39.8987, 21.38839),(39.89842, 21.38854),(39.89495, 21.38902),(39.8945, 21.38902),(39.89358, 21.38881),(39.89293, 21.38854),(39.88689, 21.38662),(39.88679, 21.38636),(39.88745, 21.38587),(39.89342, 21.38207),(39.89382, 21.38213),(39.89462, 21.38259),(39.89517, 21.38281),(39.8958, 21.38288),(39.89673, 21.3828),(39.89855, 21.38564),(39.89963, 21.38706)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.89348, 21.39296),(39.89286, 21.39348),(39.89194, 21.39401),(39.88552, 21.39692),(39.8847, 21.3955),(39.88413, 21.39366),(39.88401, 21.39185),(39.88434, 21.39012),(39.88475, 21.38944),(39.88506, 21.38913),(39.88593, 21.38845),(39.88615, 21.38848),(39.88648, 21.38874),(39.88738, 21.38915),(39.89272, 21.39085),(39.89371, 21.39128),(39.89392, 21.39143),(39.89398, 21.39158),(39.89408, 21.39224),(39.89348, 21.39296)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.84886, 21.43817),(39.85002, 21.43712),(39.85126, 21.43554),(39.85158, 21.43529),(39.85427, 21.4341),(39.85471, 21.4338),(39.85655, 21.43378),(39.85785, 21.43364),(39.85715, 21.43444),(39.85687, 21.43452),(39.85609, 21.43509),(39.85562, 21.43524),(39.85418, 21.43543),(39.85305, 21.43578),(39.85245, 21.43611),(39.85064, 21.43763),(39.85024, 21.43783),(39.84886, 21.43817)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.85972, 21.41943),(39.86333, 21.41545),(39.8703, 21.40829),(39.87409, 21.40552),(39.87517, 21.40688),(39.87599, 21.40806),(39.87819, 21.41186),(39.87494, 21.41418),(39.87458, 21.41459),(39.87399, 21.41555),(39.87339, 21.41616),(39.86496, 21.42173),(39.86398, 21.42216),(39.86342, 21.42231),(39.86213, 21.42238),(39.85971, 21.42177),(39.86001, 21.42041),(39.85992, 21.41983),(39.85972, 21.41943)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.87571, 21.40434),(39.87841, 21.40243),(39.88448, 21.39962),(39.88786, 21.4056),(39.8874, 21.40591),(39.8848, 21.40843),(39.88417, 21.40934),(39.8834, 21.41072),(39.88317, 21.41098),(39.8828, 21.41129),(39.88232, 21.41144),(39.88197, 21.41139),(39.88098, 21.41104),(39.88003, 21.41105),(39.8777, 21.40702),(39.87679, 21.40571),(39.87571, 21.40434)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.88646, 21.39869),(39.89349, 21.39545),(39.8941, 21.39505),(39.89698, 21.39264),(39.89974, 21.3939),(39.89882, 21.39616),(39.89759, 21.39804),(39.8959, 21.40038),(39.89488, 21.40142),(39.89409, 21.40204),(39.89129, 21.40342),(39.88971, 21.40437),(39.88646, 21.39869)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.95221, 21.34705),(39.95232, 21.34622),(39.95252, 21.3457),(39.95278, 21.34519),(39.95313, 21.34467),(39.95355, 21.34423),(39.95402, 21.34383),(39.95944, 21.34052),(39.96716, 21.3359),(39.96818, 21.33546),(39.96952, 21.33507),(39.97082, 21.33491),(39.97164, 21.33491),(39.97628, 21.33524),(39.97843, 21.33549),(39.98862, 21.33691),(39.99004, 21.33729),(39.99099, 21.33767),(39.9921, 21.33826),(39.99311, 21.339),(39.99377, 21.33959),(39.99466, 21.34067),(39.99517, 21.3415),(39.9956, 21.34231),(39.99591, 21.34323),(39.99606, 21.34384),(39.99627, 21.34514),(39.99627, 21.34711),(39.99622, 21.34781),(39.99493, 21.3532),(39.99449, 21.35441),(39.99377, 21.35575),(39.99337, 21.3563),(39.99265, 21.35702),(39.99047, 21.35841),(39.98785, 21.36027),(39.98739, 21.36066),(39.98664, 21.36148),(39.98629, 21.36203),(39.98604, 21.36261),(39.98588, 21.36326),(39.98582, 21.36386),(39.98584, 21.36461),(39.98597, 21.36522),(39.98613, 21.36571),(39.98645, 21.36645),(39.98769, 21.36884),(39.98792, 21.36953),(39.98811, 21.37052),(39.98876, 21.37739),(39.98869, 21.37821),(39.98863, 21.37841),(39.98851, 21.37867),(39.98808, 21.37931),(39.98785, 21.37954),(39.98758, 21.37973),(39.98671, 21.38013),(39.98624, 21.38023),(39.98142, 21.38031),(39.9805, 21.38024),(39.97978, 21.38003),(39.97949, 21.37987),(39.97917, 21.37962),(39.97889, 21.37936),(39.97864, 21.37904),(39.9778, 21.37783),(39.97605, 21.37561),(39.96729, 21.36519),(39.96247, 21.36003),(39.95955, 21.35682),(39.95867, 21.35593),(39.95499, 21.3519),(39.95402, 21.35093),(39.95309, 21.34984),(39.95262, 21.34915),(39.95236, 21.34849),(39.95225, 21.34799),(39.95218, 21.34733),(39.95221, 21.34705)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.80959, 21.42471),(39.80961, 21.42502),(39.80967, 21.4252),(39.80976, 21.42538),(39.80988, 21.42553),(39.81003, 21.42565),(39.81021, 21.42574),(39.81039, 21.4258),(39.81059, 21.42582),(39.81079, 21.4258),(39.81097, 21.42574),(39.81115, 21.42565),(39.8113, 21.42553),(39.81142, 21.42538),(39.81157, 21.42502),(39.81422, 21.4254),(39.81499, 21.42539),(39.81683, 21.42523),(39.8172, 21.4259),(39.81788, 21.42678),(39.81735, 21.42785),(39.81708, 21.42816),(39.817, 21.42821),(39.81458, 21.42838),(39.8142, 21.42837),(39.81313, 21.4282),(39.81278, 21.42826),(39.81207, 21.42855),(39.81173, 21.42888),(39.81161, 21.42903),(39.81152, 21.42921),(39.81137, 21.42959),(39.81126, 21.43002),(39.81082, 21.4313),(39.80838, 21.43082),(39.80778, 21.43079),(39.80781, 21.4305),(39.80793, 21.4264),(39.80787, 21.4244),(39.80959, 21.42471)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.80556, 21.43147),(39.80353, 21.43246),(39.80246, 21.43184),(39.80176, 21.43158),(39.80132, 21.43147),(39.80103, 21.43144),(39.80025, 21.43149),(39.79977, 21.43161),(39.79946, 21.43174),(39.79918, 21.43192),(39.79694, 21.43394),(39.79578, 21.43486),(39.79286, 21.43677),(39.79262, 21.43702),(39.79251, 21.43723),(39.79246, 21.43742),(39.79245, 21.43762),(39.79253, 21.43798),(39.79272, 21.43828),(39.79297, 21.43852),(39.79326, 21.43865),(39.79353, 21.43869),(39.79384, 21.43864),(39.79402, 21.43856),(39.79789, 21.43598),(39.80018, 21.4339),(39.80064, 21.43359),(39.80097, 21.43358),(39.80149, 21.43371),(39.80259, 21.43438),(39.80291, 21.4345),(39.8032, 21.43456),(39.80343, 21.43458),(39.80388, 21.43455),(39.8048, 21.43423),(39.80446, 21.43495),(39.80406, 21.43567),(39.80366, 21.43693),(39.80347, 21.43812),(39.80332, 21.43981),(39.80118, 21.43938),(39.79973, 21.43917),(39.79102, 21.43876),(39.79131, 21.43242),(39.79123, 21.43161),(39.79026, 21.42778),(39.79024, 21.42756),(39.79027, 21.42715),(39.79032, 21.42696),(39.79049, 21.42663),(39.79096, 21.42597),(39.79434, 21.4257),(39.79706, 21.42535),(39.80209, 21.42359),(39.80281, 21.42342),(39.8032, 21.42339),(39.80401, 21.42349),(39.80572, 21.42393),(39.80578, 21.4274),(39.80564, 21.43075),(39.80556, 21.43147)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.80743, 21.43297),(39.8081, 21.43292),(39.81017, 21.43334),(39.80879, 21.44042),(39.80641, 21.44006),(39.80544, 21.44004),(39.80577, 21.43726),(39.80612, 21.43633),(39.80671, 21.43526),(39.80743, 21.43297)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.80978, 21.44779),(39.80994, 21.44566),(39.81007, 21.44487),(39.81053, 21.44265),(39.81116, 21.44264),(39.81154, 21.44256),(39.81225, 21.44226),(39.81248, 21.44211),(39.81366, 21.44109),(39.81384, 21.44099),(39.81679, 21.44037),(39.81781, 21.44011),(39.82104, 21.43947),(39.8222, 21.43916),(39.82287, 21.43891),(39.82379, 21.43843),(39.82508, 21.43789),(39.82657, 21.43749),(39.82684, 21.43737),(39.82727, 21.4371),(39.82865, 21.43639),(39.82907, 21.43623),(39.82934, 21.4363),(39.82961, 21.43628),(39.83008, 21.43695),(39.8317, 21.43866),(39.83196, 21.439),(39.83218, 21.43955),(39.8324, 21.43989),(39.83262, 21.44011),(39.83308, 21.44043),(39.83338, 21.44071),(39.83419, 21.44194),(39.83469, 21.44238),(39.83493, 21.44253),(39.83535, 21.44272),(39.83558, 21.44279),(39.83628, 21.44289),(39.83853, 21.44254),(39.83909, 21.44226),(39.8397, 21.44168),(39.83977, 21.44165),(39.84008, 21.44161),(39.84192, 21.44153),(39.843, 21.44143),(39.84509, 21.4411),(39.84799, 21.44052),(39.84946, 21.44019),(39.84981, 21.44021),(39.84994, 21.44025),(39.85134, 21.44181),(39.85116, 21.44253),(39.85117, 21.44267),(39.85047, 21.4439),(39.85008, 21.44479),(39.84952, 21.44592),(39.84796, 21.44857),(39.84741, 21.44971),(39.84589, 21.45357),(39.84554, 21.45432),(39.84375, 21.45712),(39.84259, 21.45929),(39.84225, 21.46015),(39.84203, 21.46152),(39.84189, 21.46327),(39.8414, 21.46556),(39.84112, 21.46739),(39.84112, 21.46789),(39.84122, 21.46847),(39.84135, 21.46887),(39.84146, 21.4691),(39.84191, 21.4698),(39.84204, 21.4701),(39.84217, 21.47069),(39.84223, 21.47113),(39.84204, 21.47546),(39.84198, 21.47572),(39.84187, 21.47595),(39.84166, 21.47621),(39.84137, 21.4764),(39.84125, 21.47644),(39.84102, 21.4765),(39.84071, 21.47651),(39.83664, 21.47574),(39.836, 21.4757),(39.83537, 21.47573),(39.83436, 21.47593),(39.83347, 21.47628),(39.83274, 21.47666),(39.83259, 21.47668),(39.83234, 21.47663),(39.83211, 21.47648),(39.83203, 21.4764),(39.83197, 21.47626),(39.83172, 21.47361),(39.83147, 21.47277),(39.83127, 21.4723),(39.83087, 21.47161),(39.82925, 21.46941),(39.82728, 21.4666),(39.82667, 21.46592),(39.82647, 21.46575),(39.82613, 21.46553),(39.82048, 21.46267),(39.82011, 21.46245),(39.81967, 21.46209),(39.81931, 21.46169),(39.81868, 21.46072),(39.81798, 21.45998),(39.81588, 21.45849),(39.81553, 21.45819),(39.81515, 21.45776),(39.81493, 21.45736),(39.81256, 21.45195),(39.8115, 21.45014),(39.81057, 21.44875),(39.80978, 21.44779)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.78317, 21.39802),(39.78285, 21.39808),(39.77692, 21.3971),(39.77752, 21.39324),(39.77769, 21.39243),(39.77792, 21.39179),(39.78089, 21.38707),(39.78351, 21.38492),(39.7841, 21.38405),(39.78439, 21.38333),(39.78558, 21.37686),(39.78697, 21.37699),(39.78625, 21.38452),(39.78422, 21.39642),(39.78406, 21.39682),(39.78317, 21.39802)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.78917, 21.37519),(39.78953, 21.37157),(39.79052, 21.37185),(39.79107, 21.37212),(39.79169, 21.37253),(39.7921, 21.37292),(39.79255, 21.37342),(39.79307, 21.37423),(39.7934, 21.37489),(39.79358, 21.37547),(39.7921, 21.37547),(39.78917, 21.37519)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.87268, 21.3607),(39.87229, 21.37234),(39.87238, 21.37312),(39.8727, 21.37412),(39.87403, 21.3768),(39.87459, 21.37751),(39.87492, 21.3778),(39.87565, 21.3783),(39.87539, 21.37897),(39.87431, 21.38235),(39.87402, 21.38249),(39.87222, 21.38192),(39.87075, 21.38162),(39.86994, 21.38153),(39.86868, 21.38151),(39.86677, 21.38175),(39.86582, 21.382),(39.86468, 21.38241),(39.86373, 21.38286),(39.86273, 21.38347),(39.8619, 21.3841),(39.86106, 21.38489),(39.85782, 21.38829),(39.85728, 21.38809),(39.85678, 21.38807),(39.85608, 21.38827),(39.85576, 21.38852),(39.85553, 21.38885),(39.8554, 21.38933),(39.85538, 21.38957),(39.85547, 21.38999),(39.85567, 21.39042),(39.85495, 21.39109),(39.85387, 21.39231),(39.8531, 21.39292),(39.85269, 21.39312),(39.85256, 21.39313),(39.85225, 21.39306),(39.8512, 21.39193),(39.84972, 21.39016),(39.84959, 21.39004),(39.84879, 21.38937),(39.8481, 21.38893),(39.84746, 21.38863),(39.84605, 21.38825),(39.84136, 21.38785),(39.84054, 21.3877),(39.84015, 21.38753),(39.83982, 21.38734),(39.8394, 21.38701),(39.83693, 21.38443),(39.83665, 21.38418),(39.83518, 21.38321),(39.83492, 21.38309),(39.83413, 21.38287),(39.83345, 21.38279),(39.83236, 21.38277),(39.83156, 21.38286),(39.83051, 21.38312),(39.83637, 21.37503),(39.84749, 21.35985),(39.84785, 21.35942),(39.84912, 21.35812),(39.84948, 21.35783),(39.84985, 21.35763),(39.85045, 21.35745),(39.8545, 21.35696),(39.85519, 21.35698),(39.85738, 21.35754),(39.85971, 21.35848),(39.86135, 21.35892),(39.86264, 21.35917),(39.8703, 21.36038),(39.87268, 21.3607)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.87658, 21.37651),(39.87598, 21.37607),(39.87578, 21.37582),(39.87453, 21.3733),(39.87429, 21.37232),(39.87467, 21.36095),(39.87758, 21.36131),(39.87798, 21.36151),(39.88107, 21.36223),(39.88281, 21.36325),(39.88379, 21.36404),(39.88498, 21.36539),(39.88608, 21.36683),(39.8788, 21.37364),(39.8776, 21.375),(39.87658, 21.37651)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.82364, 21.41981),(39.82367, 21.41954),(39.82416, 21.41928),(39.82507, 21.41862),(39.82572, 21.41854),(39.8261, 21.4186),(39.8258, 21.41927),(39.82445, 21.41949),(39.82364, 21.41981)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.82391, 21.41697),(39.82383, 21.41571),(39.82364, 21.41473),(39.82274, 21.41253),(39.82449, 21.41261),(39.82443, 21.41485),(39.82469, 21.41537),(39.82519, 21.41566),(39.82577, 21.41563),(39.82623, 21.41527),(39.82642, 21.41472),(39.82648, 21.41309),(39.82695, 21.41321),(39.82661, 21.41499),(39.82657, 21.41567),(39.82683, 21.41674),(39.82634, 21.4166),(39.82514, 21.41656),(39.82446, 21.41671),(39.82391, 21.41697)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.82876, 21.41802),(39.83007, 21.41793),(39.83168, 21.41763),(39.83252, 21.41736),(39.8333, 21.41696),(39.83461, 21.41893),(39.83507, 21.41978),(39.83524, 21.42063),(39.8353, 21.42147),(39.83401, 21.42163),(39.83388, 21.42071),(39.83352, 21.41999),(39.83348, 21.41968),(39.83332, 21.41932),(39.83276, 21.41877),(39.8319, 21.41823),(39.83077, 21.41798),(39.82876, 21.41802)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.83509, 21.41604),(39.839, 21.41402),(39.84021, 21.41316),(39.84098, 21.41247),(39.84179, 21.41159),(39.8438, 21.40921),(39.84747, 21.40466),(39.84802, 21.40381),(39.84838, 21.40303),(39.84864, 21.40216),(39.84886, 21.40096),(39.849, 21.39949),(39.84909, 21.39896),(39.84924, 21.39842),(39.84956, 21.39772),(39.85004, 21.39711),(39.8502, 21.39695),(39.8506, 21.39665),(39.85157, 21.39618),(39.853, 21.39569),(39.85363, 21.39558),(39.85396, 21.39547),(39.8544, 21.39524),(39.8547, 21.39503),(39.85499, 21.39478),(39.85617, 21.39361),(39.85696, 21.39291),(39.85746, 21.39236),(39.8579, 21.39179),(39.85877, 21.39085),(39.86338, 21.39308),(39.86446, 21.39356),(39.86531, 21.39402),(39.86577, 21.39435),(39.86651, 21.39507),(39.86596, 21.3955),(39.86532, 21.39609),(39.86472, 21.39688),(39.86379, 21.39863),(39.86138, 21.40439),(39.86035, 21.4064),(39.85537, 21.41465),(39.85266, 21.41823),(39.85145, 21.41971),(39.85133, 21.4198),(39.85092, 21.41997),(39.84912, 21.42017),(39.84516, 21.42027),(39.84289, 21.42044),(39.83728, 21.4212),(39.83723, 21.42043),(39.83701, 21.4193),(39.83677, 21.41867),(39.83632, 21.41789),(39.83509, 21.41604)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.86021, 21.38932),(39.86365, 21.38583),(39.86459, 21.38516),(39.86624, 21.38442),(39.86768, 21.38403),(39.86962, 21.38393),(39.8717, 21.38431),(39.87299, 21.3847),(39.8729, 21.38575),(39.87303, 21.38632),(39.87188, 21.38979),(39.87157, 21.39051),(39.87068, 21.39174),(39.87013, 21.39226),(39.8681, 21.39384),(39.86709, 21.39285),(39.86632, 21.39229),(39.86021, 21.38932)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.84703, 21.39096),(39.84715, 21.39117),(39.84744, 21.39143),(39.84761, 21.39151),(39.84787, 21.39156),(39.84872, 21.39256),(39.84882, 21.39314),(39.84858, 21.39443),(39.84842, 21.39495),(39.848, 21.39601),(39.84714, 21.39783),(39.84698, 21.39845),(39.84677, 21.40025),(39.84654, 21.40175),(39.84636, 21.40234),(39.84612, 21.40283),(39.84579, 21.40335),(39.84226, 21.4074),(39.8407, 21.40935),(39.83947, 21.41065),(39.83831, 21.41161),(39.8377, 21.41205),(39.83345, 21.41428),(39.83247, 21.41344),(39.83245, 21.41324),(39.83239, 21.41305),(39.8323, 21.41288),(39.83217, 21.41273),(39.83121, 21.41178),(39.83068, 21.41134),(39.83015, 21.41099),(39.83001, 21.41065),(39.83052, 21.40833),(39.83112, 21.40587),(39.8317, 21.40157),(39.83168, 21.40101),(39.83164, 21.40082),(39.83137, 21.40027),(39.83115, 21.39999),(39.83083, 21.39971),(39.83052, 21.39952),(39.8284, 21.39872),(39.82797, 21.39848),(39.82767, 21.39827),(39.82744, 21.39803),(39.82711, 21.39753),(39.827, 21.39726),(39.82693, 21.3969),(39.82679, 21.39172),(39.82659, 21.38808),(39.82672, 21.38766),(39.82705, 21.38702),(39.82746, 21.38644),(39.83156, 21.38522),(39.83244, 21.38503),(39.83282, 21.38502),(39.83372, 21.38517),(39.83421, 21.38535),(39.83473, 21.38565),(39.83527, 21.38603),(39.83533, 21.38622),(39.83555, 21.38655),(39.83588, 21.38676),(39.83607, 21.38681),(39.83738, 21.38827),(39.83788, 21.38875),(39.83886, 21.38944),(39.83905, 21.38954),(39.83962, 21.38978),(39.84022, 21.38998),(39.84135, 21.39018),(39.84179, 21.39021),(39.84192, 21.39029),(39.8423, 21.3904),(39.84269, 21.39035),(39.84282, 21.39029),(39.84546, 21.39049),(39.84593, 21.39055),(39.84632, 21.39064),(39.84672, 21.39079),(39.84703, 21.39096)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.83154, 21.41527),(39.83052, 21.41557),(39.82875, 21.41575),(39.82868, 21.41557),(39.8287, 21.41522),(39.82898, 21.41382),(39.83043, 21.41432),(39.83154, 21.41527)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.88532, 21.36227),(39.89047, 21.36299),(39.88935, 21.36357),(39.889, 21.36359),(39.88711, 21.36335),(39.88654, 21.36324),(39.88587, 21.36295),(39.88576, 21.36273),(39.88532, 21.36227)]);
SELECT pointInPolygon((39.840202, 21.451471), [(39.91229, 21.40316),(39.91302, 21.40213),(39.91357, 21.40253),(39.91432, 21.40334),(39.91464, 21.40392),(39.91478, 21.40442),(39.91478, 21.40479),(39.91465, 21.40516),(39.91433, 21.40548),(39.914, 21.40563),(39.91331, 21.4056),(39.9128, 21.40534),(39.91261, 21.40516),(39.91238, 21.40474),(39.91229, 21.40316)]);
SELECT 'Check that the point is not in Mecca with multiple holes';
SELECT pointInPolygon((39.840202, 21.451471),
[(39.90553, 21.38668),(39.91034, 21.38608),(39.91834, 21.38048),(39.93078, 21.3627),(39.94141, 21.36278),(39.94753, 21.36075),(39.94986, 21.35894),(39.95349, 21.3533),(39.97833, 21.3815),(39.98132, 21.38231),(39.98851, 21.38151),(39.99076, 21.37747),(39.98987, 21.36908),(39.98791, 21.36332),(39.99543, 21.35687),(39.99827, 21.34722),(39.99784, 21.34271),(39.99632, 21.33955),(39.99322, 21.3366),(39.98908, 21.33496),(39.9692, 21.3331),(39.95841, 21.3388),(39.95109, 21.34412),(39.95026, 21.34825),(39.95203, 21.35168),(39.94753, 21.35845),(39.94165, 21.36077),(39.93272, 21.36009),(39.92969, 21.36103),(39.91928, 21.37669),(39.91374, 21.3816),(39.91056, 21.38296),(39.90839, 21.38361),(39.90059, 21.38257),(39.8978, 21.37712),(39.90051, 21.37335),(39.90033, 21.37195),(39.89559, 21.37533),(39.89099, 21.36937),(39.89101, 21.3661),(39.89465, 21.364),(39.92418, 21.35725),(39.92838, 21.35433),(39.94394, 21.33915),(39.96711, 21.32785),(39.97437, 21.32734),(39.99523, 21.33055),(40.01271, 21.3293),(40.01345, 21.3276),(40.00731, 21.32689),(39.99189, 21.32817),(39.97264, 21.3251),(39.96216, 21.32725),(39.95825, 21.32598),(39.95783, 21.32734),(39.96017, 21.32834),(39.94652, 21.33514),(39.94578, 21.33237),(39.94438, 21.33259),(39.94454, 21.33563),(39.92448, 21.3545),(39.92007, 21.3563),(39.89586, 21.3615),(39.86239, 21.35659),(39.85241, 21.35319),(39.85183, 21.35189),(39.84187, 21.3498),(39.83475, 21.35001),(39.82272, 21.35322),(39.80957, 21.34986),(39.80645, 21.34645),(39.80654, 21.34104),(39.82207, 21.29116),(39.82732, 21.26685),(39.82657, 21.22894),(39.82468, 21.22761),(39.82364, 21.22857),(39.82459, 21.22961),(39.82535, 21.26649),(39.82016, 21.29057),(39.81723, 21.29965),(39.81585, 21.30012),(39.81652, 21.30158),(39.81475, 21.30815),(39.80378, 21.34492),(39.8023, 21.34648),(39.79042, 21.34584),(39.78385, 21.34687),(39.77227, 21.34595),(39.7601, 21.34279),(39.73947, 21.34141),(39.71051, 21.34288),(39.70233, 21.34041),(39.68839, 21.33943),(39.65964, 21.33189),(39.64627, 21.3344),(39.64733, 21.33592),(39.65598, 21.33404),(39.66095, 21.33402),(39.68789, 21.34136),(39.70198, 21.34238),(39.71031, 21.34487),(39.74208, 21.34353),(39.76109, 21.34495),(39.77363, 21.34845),(39.77446, 21.35039),(39.76342, 21.37977),(39.75978, 21.39951),(39.75655, 21.40491),(39.73768, 21.39607),(39.72646, 21.38795),(39.71285, 21.3969),(39.69867, 21.37979),(39.66651, 21.36156),(39.6662, 21.36338),(39.69742, 21.38135),(39.7112, 21.39803),(39.70333, 21.40335),(39.70227, 21.40556),(39.70273, 21.40892),(39.71038, 21.41608),(39.71004, 21.42139),(39.68758, 21.414),(39.68099, 21.41398),(39.63179, 21.4366),(39.62927917729339, 21.43855995858338),(39.629299942421596, 21.44105336136311),(39.63273, 21.43836),(39.65768, 21.42753),(39.67404, 21.419),(39.6815, 21.41592),(39.68534, 21.41555),(39.7182, 21.42582),(39.72915, 21.4318),(39.72926, 21.43473),(39.72198, 21.45071),(39.72058, 21.46018),(39.72262, 21.46776),(39.72871, 21.47851),(39.73639, 21.48854),(39.73607, 21.50077),(39.73921, 21.50608),(39.74358, 21.50869),(39.77204, 21.51334),(39.78965, 21.51773),(39.78925, 21.52186),(39.77895, 21.53768),(39.77335, 21.55878),(39.77409, 21.55998),(39.77529, 21.55924),(39.78151, 21.53691),(39.79101, 21.52282),(39.79216, 21.51796),(39.79392, 21.51725),(39.793, 21.51609),(39.79416, 21.49641),(39.79816, 21.47216),(39.8004, 21.46856),(39.80363, 21.4669),(39.80549, 21.46717),(39.80785, 21.46483),(39.8079, 21.45844),(39.80961, 21.45125),(39.81407, 21.45956),(39.8189, 21.46404),(39.82568, 21.4678),(39.82961, 21.47351),(39.83079, 21.47799),(39.84122, 21.47849),(39.84401, 21.47583),(39.84423, 21.47113),(39.84321, 21.46813),(39.84421, 21.46059),(39.85356, 21.44251),(39.85688, 21.44231),(39.86433, 21.45155),(39.86762, 21.45385),(39.87655, 21.45623),(39.88419, 21.46034),(39.89153, 21.46165),(39.8939, 21.46349),(39.89668, 21.46326),(39.9075, 21.47496),(39.91921, 21.48088),(39.9355, 21.48404),(39.94435, 21.48781),(39.96608, 21.48881),(39.96569, 21.49663),(39.95135, 21.53005),(39.94352, 21.56004),(39.94384, 21.56417),(39.94803, 21.56766),(39.95376, 21.56964),(39.95497, 21.56891),(39.9538, 21.56747),(39.94686, 21.56478),(39.94534, 21.56123),(39.95324, 21.53069),(39.96782, 21.49652),(39.96808, 21.48868),(39.98958, 21.49423),(40.00615, 21.4944),(40.01566, 21.50406),(40.03305, 21.5127),(40.0475, 21.52172),(40.05278, 21.52274),(40.06051, 21.52124),(40.05971, 21.51952),(40.05217, 21.52052),(40.04866, 21.51978),(40.03052, 21.50875),(40.01631, 21.50181),(40.01014, 21.49459),(40.00619, 21.49215),(39.98995, 21.49206),(39.96952, 21.48658),(39.94485, 21.48571),(39.93748, 21.48246),(39.95107, 21.45666),(39.97348, 21.46578),(39.97479, 21.46523),(39.97424, 21.46392),(39.95217, 21.45495),(39.95444, 21.45202),(39.97071, 21.44272),(39.97127, 21.44141),(39.97007, 21.44065),(39.95381, 21.44976),(39.95007, 21.45407),(39.94121, 21.45146),(39.93089, 21.45021),(39.92173, 21.4449),(39.9164, 21.44366),(39.91152, 21.44104),(39.90446, 21.44019),(39.90416, 21.43717),(39.9067, 21.43268),(39.90657, 21.42875),(39.91121, 21.40898),(39.91566, 21.40698),(39.91675, 21.40517),(39.91627, 21.40045),(39.91407, 21.39734),(39.91949, 21.39132),(39.92673, 21.38963),(39.93267, 21.39089),(39.93373, 21.38995),(39.93279, 21.38889),(39.92676, 21.38762),(39.91905, 21.38931),(39.91251, 21.39595),(39.91173, 21.40041),(39.90949, 21.39663),(39.91172, 21.3928),(39.91031, 21.39269),(39.90798, 21.39493),(39.90668, 21.39219),(39.90882, 21.38887),(39.90768, 21.38803),(39.90505, 21.39084),(39.90417, 21.38841),(39.90553, 21.38668)],
[(39.89317, 21.40473),(39.8952, 21.40371),(39.89574, 21.40332),(39.89629, 21.40285),(39.89739, 21.40172),(39.89925, 21.39916),(39.90055, 21.39718),(39.90145, 21.39501),(39.90173, 21.39491),(39.90189, 21.3948),(39.90252, 21.39409),(39.90289, 21.39384),(39.90396, 21.3934),(39.90422, 21.39338),(39.90436, 21.39343),(39.9044, 21.39349),(39.90404, 21.39369),(39.9037, 21.39396),(39.90351, 21.39416),(39.90319, 21.39463),(39.9027, 21.39571),(39.90267, 21.3959),(39.90268, 21.3961),(39.90281, 21.39646),(39.90293, 21.39662),(39.90307, 21.39675),(39.90324, 21.39685),(39.90362, 21.39695),(39.90382, 21.39694),(39.90418, 21.39681),(39.90447, 21.39655),(39.90505, 21.39544),(39.90523, 21.39531),(39.90547, 21.39528),(39.90556, 21.39529),(39.90572, 21.39537),(39.90592, 21.39552),(39.90662, 21.39645),(39.906, 21.39651),(39.9052, 21.39665),(39.90396, 21.39711),(39.90363, 21.39731),(39.9035, 21.39746),(39.90341, 21.39763),(39.90332, 21.39801),(39.90313, 21.39836),(39.90309, 21.39856),(39.90308, 21.39875),(39.90312, 21.39895),(39.90329, 21.39929),(39.90343, 21.39944),(39.90376, 21.39963),(39.90415, 21.39968),(39.90743, 21.39882),(39.90786, 21.39882),(39.90822, 21.39894),(39.9085, 21.39911),(39.90876, 21.39934),(39.9095, 21.40036),(39.90976, 21.40084),(39.90998, 21.40146),(39.91019, 21.40247),(39.90991, 21.40276),(39.90931, 21.40349),(39.90896, 21.40373),(39.90674, 21.40608),(39.90348, 21.40934),(39.9024, 21.41059),(39.90214, 21.4108),(39.90157, 21.41114),(39.90101, 21.41142),(39.90053, 21.41156),(39.90001, 21.41165),(39.89952, 21.41166),(39.89816, 21.41146),(39.89719, 21.4114),(39.8962, 21.41124),(39.89535, 21.41126),(39.89484, 21.41133),(39.89435, 21.41148),(39.89405, 21.41163),(39.89166, 21.4077),(39.89109, 21.40671),(39.89172, 21.4064),(39.89219, 21.40606),(39.89252, 21.40568),(39.89317, 21.40473)],
[(39.89411, 21.37812),(39.89305, 21.37935),(39.89229, 21.38007),(39.89129, 21.38085),(39.88637, 21.38398),(39.88501, 21.38505),(39.88428, 21.38581),(39.87665, 21.38344),(39.87669, 21.38209),(39.87721, 21.38049),(39.87864, 21.37771),(39.8796, 21.37629),(39.88162, 21.37426),(39.88637, 21.36994),(39.88657, 21.36988),(39.88706, 21.37),(39.88876, 21.37081),(39.88896, 21.37101),(39.89013, 21.37233),(39.89156, 21.37426),(39.89332, 21.37678),(39.89411, 21.37812)],
[(39.87603, 21.38534),(39.88308, 21.38753),(39.88293, 21.38778),(39.88223, 21.38927),(39.88216, 21.3895),(39.88185, 21.39103),(39.88178, 21.39207),(39.88187, 21.39333),(39.8821, 21.39461),(39.88234, 21.39542),(39.88273, 21.39643),(39.88352, 21.39787),(39.87797, 21.4004),(39.87743, 21.40069),(39.87678, 21.4011),(39.87442, 21.40281),(39.87359, 21.40173),(39.87299, 21.40077),(39.87076, 21.39685),(39.87013, 21.39591),(39.8696, 21.39535),(39.8714, 21.39394),(39.87198, 21.39344),(39.87254, 21.39286),(39.87317, 21.39206),(39.87356, 21.39139),(39.87399, 21.39041),(39.87552, 21.3857),(39.87573, 21.38561),(39.87603, 21.38534)],
[(39.8728, 21.40398),(39.86889, 21.40686),(39.86188, 21.41407),(39.8567, 21.41973),(39.85571, 21.42095),(39.85474, 21.4207),(39.85357, 21.42055),(39.8571, 21.4159),(39.8598, 21.4115),(39.86247, 21.40702),(39.86312, 21.40575),(39.86566, 21.39964),(39.86637, 21.39829),(39.86702, 21.39748),(39.86801, 21.39659),(39.86852, 21.39711),(39.86908, 21.39794),(39.87126, 21.40177),(39.87192, 21.40283),(39.8728, 21.40398)],
[(39.85537, 21.42292),(39.85579, 21.42569),(39.85581, 21.42611),(39.85559, 21.4266),(39.85335, 21.42856),(39.85159, 21.43039),(39.85001, 21.43114),(39.84921, 21.43092),(39.84693, 21.42992),(39.84558, 21.42953),(39.84158, 21.42902),(39.83488, 21.42846),(39.83661, 21.42511),(39.8371, 21.42353),(39.84406, 21.42267),(39.84527, 21.4226),(39.85309, 21.42252),(39.85438, 21.42267),(39.85537, 21.42292)],
[(39.84628, 21.43181),(39.84808, 21.43261),(39.84783, 21.43302),(39.84618, 21.43694),(39.84577, 21.43776),(39.84437, 21.43886),(39.84394, 21.43902),(39.84241, 21.43929),(39.84185, 21.43935),(39.8414, 21.43937),(39.83966, 21.43925),(39.83928, 21.4393),(39.83876, 21.43957),(39.83857, 21.43971),(39.8382, 21.44005),(39.83781, 21.44051),(39.83637, 21.44071),(39.83611, 21.4407),(39.83599, 21.44066),(39.83589, 21.44058),(39.83584, 21.44048),(39.83575, 21.43989),(39.83567, 21.43963),(39.83545, 21.43919),(39.83508, 21.4388),(39.83491, 21.4387),(39.83472, 21.43864),(39.83453, 21.43861),(39.83433, 21.43862),(39.83409, 21.4387),(39.83396, 21.43862),(39.83377, 21.43814),(39.83364, 21.43792),(39.83319, 21.43732),(39.83279, 21.43689),(39.83253, 21.43633),(39.8323, 21.43541),(39.83224, 21.43523),(39.83214, 21.43506),(39.83189, 21.43474),(39.83144, 21.43432),(39.83111, 21.43413),(39.8305, 21.43392),(39.82999, 21.43269),(39.83002, 21.43255),(39.82998, 21.43209),(39.83109, 21.43171),(39.8318, 21.43138),(39.83234, 21.43109),(39.83301, 21.43064),(39.83338, 21.43032),(39.83365, 21.43037),(39.84139, 21.43101),(39.8432, 21.43126),(39.84419, 21.43134),(39.84517, 21.43149),(39.84628, 21.43181)],
[(39.83035, 21.42986),(39.8304, 21.42866),(39.83018, 21.42818),(39.83125, 21.42753),(39.83199, 21.42688),(39.83261, 21.42604),(39.83342, 21.42459),(39.83365, 21.42395),(39.83444, 21.42391),(39.83496, 21.4238),(39.83479, 21.42429),(39.83281, 21.42802),(39.83184, 21.42901),(39.83126, 21.4294),(39.83035, 21.42986)],
[(39.82819, 21.42907),(39.82814, 21.4304),(39.82488, 21.43059),(39.82445, 21.43066),(39.82337, 21.43101),(39.82191, 21.43183),(39.82049, 21.43295),(39.81955, 21.43393),(39.81912, 21.43421),(39.81892, 21.4343),(39.81862, 21.43437),(39.81829, 21.4344),(39.81774, 21.43434),(39.81632, 21.43374),(39.81706, 21.43236),(39.81724, 21.4319),(39.81748, 21.43143),(39.81812, 21.43039),(39.81845, 21.42992),(39.81919, 21.42907),(39.81933, 21.42884),(39.81964, 21.4281),(39.82006, 21.42826),(39.82103, 21.4285),(39.82135, 21.42873),(39.82154, 21.42879),(39.82284, 21.42907),(39.82412, 21.42923),(39.8253, 21.42933),(39.82659, 21.42933),(39.8273, 21.42926),(39.82819, 21.42907)],
[(39.82779, 21.43244),(39.82826, 21.43377),(39.82849, 21.43431),(39.82776, 21.4346),(39.82626, 21.43537),(39.82591, 21.43559),(39.8245, 21.43597),(39.82298, 21.4366),(39.822, 21.43711),(39.82165, 21.43723),(39.82055, 21.43753),(39.81734, 21.43816),(39.81631, 21.43843),(39.81333, 21.43905),(39.81312, 21.43912),(39.81267, 21.43934),(39.81245, 21.4395),(39.81128, 21.4405),(39.81094, 21.44064),(39.81165, 21.43717),(39.81218, 21.43422),(39.81403, 21.43504),(39.81432, 21.4353),(39.8145, 21.43538),(39.81489, 21.43543),(39.81499, 21.43547),(39.81655, 21.4363),(39.81714, 21.4365),(39.81776, 21.43662),(39.81815, 21.43662),(39.81834, 21.43656),(39.81861, 21.43638),(39.81889, 21.43636),(39.81948, 21.43622),(39.82014, 21.43593),(39.82092, 21.4354),(39.82179, 21.43448),(39.82309, 21.43346),(39.82425, 21.43281),(39.82484, 21.43263),(39.82515, 21.43258),(39.82779, 21.43244)],
[(39.8207, 21.42636),(39.82125, 21.42508),(39.82206, 21.42403),(39.82275, 21.42279),(39.82346, 21.42235),(39.82418, 21.42178),(39.82499, 21.42142),(39.8265, 21.42122),(39.83136, 21.42199),(39.83197, 21.42264),(39.83163, 21.4237),(39.8309, 21.425),(39.83051, 21.42553),(39.83031, 21.42574),(39.82948, 21.42628),(39.828, 21.42705),(39.82644, 21.42733),(39.8243, 21.42724),(39.82267, 21.42698),(39.82214, 21.42669),(39.8207, 21.42636)],
[(39.82102, 21.42106),(39.82062, 21.42128),(39.82017, 21.42162),(39.8194, 21.42239),(39.81905, 21.4228),(39.81802, 21.42299),(39.8179, 21.42265),(39.81779, 21.42189),(39.8176, 21.42155),(39.81729, 21.42131),(39.81711, 21.42124),(39.81692, 21.4212),(39.81653, 21.42125),(39.81619, 21.42144),(39.81595, 21.42175),(39.81588, 21.42193),(39.81584, 21.42212),(39.81585, 21.42232),(39.81597, 21.42319),(39.81504, 21.42328),(39.81423, 21.42329),(39.80999, 21.42266),(39.80755, 21.42223),(39.80737, 21.42203),(39.80706, 21.42179),(39.80695, 21.42166),(39.80685, 21.42142),(39.80686, 21.42123),(39.80695, 21.42105),(39.80755, 21.42041),(39.80768, 21.42022),(39.80789, 21.41962),(39.80793, 21.41935),(39.80801, 21.41519),(39.80809, 21.41439),(39.80827, 21.41351),(39.80867, 21.41233),(39.80881, 21.41233),(39.80924, 21.41409),(39.80931, 21.41428),(39.80941, 21.41444),(39.80969, 21.41471),(39.81006, 21.41484),(39.81026, 21.41485),(39.81064, 21.41475),(39.81095, 21.41452),(39.81107, 21.41437),(39.8112, 21.414),(39.81121, 21.4138),(39.81118, 21.41361),(39.81088, 21.41239),(39.81311, 21.41248),(39.81908, 21.41249),(39.8197, 21.41244),(39.82006, 21.41251),(39.8204, 21.41251),(39.8209, 21.41367),(39.82144, 21.41481),(39.82169, 21.41562),(39.82182, 21.4166),(39.82176, 21.41785),(39.81945, 21.41827),(39.81851, 21.41855),(39.8182, 21.41879),(39.81809, 21.41895),(39.81801, 21.41913),(39.81796, 21.41951),(39.81807, 21.41989),(39.81831, 21.4202),(39.81865, 21.42039),(39.81884, 21.42043),(39.81903, 21.42044),(39.81994, 21.42021),(39.82154, 21.41992),(39.82154, 21.41997),(39.82102, 21.42106)],
[(39.81069, 21.41022),(39.81115, 21.40581),(39.8114, 21.4056),(39.81159, 21.40525),(39.81163, 21.40487),(39.81157, 21.40426),(39.81209, 21.40103),(39.81211, 21.39966),(39.81193, 21.39818),(39.81097, 21.39505),(39.8115, 21.39475),(39.81252, 21.39399),(39.8134, 21.39321),(39.81416, 21.39245),(39.81607, 21.38983),(39.81662, 21.38928),(39.81728, 21.38874),(39.81819, 21.38814),(39.81928, 21.38768),(39.82014, 21.38742),(39.82059, 21.38733),(39.82164, 21.38725),(39.82287, 21.38723),(39.82462, 21.3871),(39.82443, 21.38782),(39.82441, 21.38855),(39.82457, 21.39047),(39.82464, 21.39192),(39.82479, 21.3973),(39.82485, 21.3976),(39.82514, 21.39842),(39.82525, 21.39865),(39.8258, 21.39947),(39.82635, 21.4),(39.82679, 21.40031),(39.82736, 21.40062),(39.82928, 21.40137),(39.82948, 21.40151),(39.82914, 21.40441),(39.82897, 21.40551),(39.8282, 21.40889),(39.82795, 21.41023),(39.82696, 21.41),(39.82658, 21.40996),(39.82664, 21.40825),(39.82658, 21.40787),(39.82649, 21.40769),(39.82622, 21.40741),(39.82605, 21.40731),(39.82567, 21.40722),(39.82529, 21.40728),(39.82511, 21.40737),(39.82483, 21.40764),(39.82473, 21.40781),(39.82464, 21.40819),(39.82458, 21.41008),(39.8235, 21.41017),(39.82153, 21.41019),(39.82001, 21.40827),(39.81977, 21.40778),(39.81909, 21.40579),(39.81879, 21.40505),(39.81827, 21.40417),(39.81699, 21.40224),(39.8159, 21.4008),(39.81463, 21.39957),(39.8141, 21.39915),(39.81392, 21.39908),(39.81353, 21.39903),(39.81316, 21.39914),(39.81299, 21.39925),(39.81274, 21.39955),(39.81267, 21.39973),(39.81262, 21.40012),(39.81273, 21.40049),(39.81284, 21.40066),(39.81298, 21.4008),(39.81326, 21.40103),(39.81445, 21.40218),(39.81537, 21.40342),(39.81656, 21.40521),(39.81696, 21.40588),(39.81722, 21.40652),(39.81794, 21.4086),(39.81826, 21.40925),(39.81898, 21.41019),(39.81328, 21.41012),(39.81218, 21.41014),(39.81134, 21.41021),(39.81069, 21.41022)],
[(39.80999, 21.39018),(39.80983, 21.38939),(39.80816, 21.38343),(39.80609, 21.3751),(39.80867, 21.37472),(39.80969, 21.37875),(39.81147, 21.38151),(39.81202, 21.38214),(39.81339, 21.38345),(39.81628, 21.38612),(39.81677, 21.38646),(39.81575, 21.38713),(39.81478, 21.38799),(39.81395, 21.38898),(39.81265, 21.39076),(39.81228, 21.39111),(39.8121, 21.3912),(39.81181, 21.39121),(39.81033, 21.39058),(39.80999, 21.39018)],
[(39.81909, 21.38545),(39.8181, 21.38496),(39.81759, 21.3846),(39.81476, 21.382),(39.81349, 21.38079),(39.81311, 21.38035),(39.81153, 21.37795),(39.81145, 21.37773),(39.81046, 21.37363),(39.81038, 21.37341),(39.81025, 21.37321),(39.80995, 21.37288),(39.80962, 21.3727),(39.80925, 21.37265),(39.80899, 21.37265),(39.80561, 21.37315),(39.80517, 21.37139),(39.80492, 21.37068),(39.80504, 21.37048),(39.8051, 21.37031),(39.80521, 21.36975),(39.8052, 21.36955),(39.80506, 21.36919),(39.80494, 21.36903),(39.80441, 21.36603),(39.80411, 21.36492),(39.80356, 21.36191),(39.80349, 21.36116),(39.80345, 21.35965),(39.80349, 21.35894),(39.80411, 21.35504),(39.80433, 21.35476),(39.80482, 21.35383),(39.80553, 21.35304),(39.8063, 21.35252),(39.80724, 21.35222),(39.80825, 21.35217),(39.80932, 21.35231),(39.81637, 21.35445),(39.81856, 21.35504),(39.82046, 21.35546),(39.82287, 21.35558),(39.82421, 21.35536),(39.82613, 21.35492),(39.83433, 21.35261),(39.83656, 21.35216),(39.83834, 21.35188),(39.83936, 21.35182),(39.84169, 21.3521),(39.84381, 21.35252),(39.84777, 21.35391),(39.84887, 21.35434),(39.84773, 21.35594),(39.84744, 21.35628),(39.84524, 21.35927),(39.83253, 21.37661),(39.8295, 21.38077),(39.82857, 21.38214),(39.82833, 21.38244),(39.82791, 21.38279),(39.82744, 21.38324),(39.82631, 21.3845),(39.82551, 21.38473),(39.82438, 21.38494),(39.82041, 21.38516),(39.81948, 21.38534),(39.81909, 21.38545)],
[(39.80215, 21.35462),(39.8015, 21.35868),(39.80145, 21.35959),(39.80149, 21.36132),(39.80157, 21.36215),(39.80215, 21.36532),(39.80244, 21.36642),(39.80274, 21.36813),(39.79915, 21.3652),(39.79798, 21.36406),(39.79715, 21.36315),(39.79586, 21.36153),(39.79496, 21.36019),(39.79359, 21.35827),(39.79297, 21.35753),(39.79128, 21.35568),(39.79053, 21.35503),(39.78825, 21.35321),(39.78735, 21.35255),(39.78586, 21.35172),(39.78394, 21.35084),(39.78351, 21.35055),(39.78399, 21.34968),(39.78415, 21.34951),(39.78515, 21.34915),(39.78558, 21.34906),(39.78718, 21.34859),(39.78801, 21.34846),(39.78885, 21.34839),(39.78982, 21.34822),(39.79322, 21.3482),(39.79564, 21.34849),(39.79835, 21.34916),(39.79957, 21.34986),(39.80019, 21.35029),(39.80071, 21.35078),(39.80117, 21.35137),(39.80155, 21.35202),(39.80187, 21.35285),(39.80206, 21.35367),(39.80209, 21.35432),(39.80215, 21.35462)],
[(39.779, 21.35047),(39.78, 21.35119),(39.78099, 21.35171),(39.78492, 21.35348),(39.78632, 21.35426),(39.78702, 21.35478),(39.78924, 21.35656),(39.78993, 21.35716),(39.79145, 21.35883),(39.79203, 21.35952),(39.79333, 21.36134),(39.79427, 21.36274),(39.79565, 21.36447),(39.79656, 21.36548),(39.79779, 21.36667),(39.80229, 21.37034),(39.80218, 21.37053),(39.80167, 21.37113),(39.80041, 21.37248),(39.79975, 21.3731),(39.79894, 21.37373),(39.79827, 21.37413),(39.79698, 21.37475),(39.79643, 21.37496),(39.79558, 21.37521),(39.79529, 21.37422),(39.79478, 21.3732),(39.79409, 21.37214),(39.79351, 21.37149),(39.793, 21.37101),(39.79201, 21.37035),(39.79122, 21.36997),(39.79048, 21.36972),(39.7891, 21.36947),(39.7887, 21.36944),(39.78832, 21.36949),(39.78814, 21.36957),(39.78784, 21.36982),(39.78767, 21.37017),(39.78763, 21.37037),(39.78718, 21.375),(39.78467, 21.37478),(39.78431, 21.37488),(39.78402, 21.37511),(39.78391, 21.37526),(39.78378, 21.3756),(39.78245, 21.38285),(39.78231, 21.38317),(39.78211, 21.38348),(39.77952, 21.38561),(39.77935, 21.38579),(39.77889, 21.38643),(39.77608, 21.391),(39.77578, 21.39181),(39.77555, 21.39291),(39.77492, 21.39694),(39.76541, 21.3964),(39.76273, 21.39622),(39.76342, 21.3915),(39.76482, 21.38563),(39.76512, 21.38401),(39.76545, 21.38126),(39.76562, 21.38041),(39.76602, 21.37916),(39.76859, 21.37278),(39.76972, 21.36938),(39.77036, 21.36686),(39.77091, 21.36513),(39.77314, 21.35887),(39.77478, 21.35448),(39.77517, 21.35368),(39.77568, 21.35293),(39.77631, 21.35217),(39.77681, 21.35168),(39.77761, 21.3511),(39.77831, 21.35073),(39.779, 21.35047)],
[(39.76244, 21.39846),(39.76255, 21.39821),(39.76528, 21.3984),(39.77595, 21.399),(39.77653, 21.39906),(39.78224, 21.39999),(39.78304, 21.40016),(39.78406, 21.40081),(39.78349, 21.40178),(39.78316, 21.40249),(39.78263, 21.40405),(39.78258, 21.40444),(39.78267, 21.40478),(39.78245, 21.40582),(39.78226, 21.407),(39.78167, 21.40978),(39.78069, 21.41362),(39.77994, 21.41671),(39.77776, 21.41693),(39.77732, 21.41693),(39.7769, 21.41689),(39.77624, 21.41674),(39.77593, 21.41661),(39.773, 21.41486),(39.77164, 21.41423),(39.76892, 21.41344),(39.76744, 21.41319),(39.76656, 21.41312),(39.76083, 21.41289),(39.7596, 21.41288),(39.75858, 21.41283),(39.756, 21.4126),(39.75567, 21.41255),(39.75472, 21.41221),(39.75448, 21.41203),(39.7544, 21.41191),(39.75435, 21.41171),(39.75437, 21.41133),(39.75446, 21.41111),(39.75488, 21.41038),(39.75712, 21.40804),(39.75802, 21.40692),(39.75933, 21.40518),(39.7607, 21.40297),(39.76127, 21.40197),(39.76186, 21.40076),(39.76209, 21.40008),(39.76228, 21.39934),(39.76244, 21.39846)],
[(39.78571, 21.4023),(39.78613, 21.40226),(39.78735, 21.40325),(39.78684, 21.40459),(39.78685, 21.40595),(39.78943, 21.41476),(39.79045, 21.41882),(39.79071, 21.41927),(39.79203, 21.42035),(39.7921, 21.42071),(39.79178, 21.42117),(39.79074, 21.42159),(39.7902, 21.42203),(39.78993, 21.42249),(39.78974, 21.42357),(39.78774, 21.42363),(39.78577, 21.42328),(39.78521, 21.42357),(39.78486, 21.42441),(39.78493, 21.42495),(39.78537, 21.42543),(39.78674, 21.42583),(39.7884, 21.42607),(39.78817, 21.42683),(39.7881, 21.428),(39.78914, 21.43215),(39.7889, 21.43869),(39.78737, 21.43877),(39.78262, 21.43967),(39.78006, 21.43961),(39.77771, 21.43792),(39.77742, 21.43637),(39.77739, 21.43356),(39.77763, 21.4322),(39.77929, 21.42676),(39.78007, 21.42488),(39.78048, 21.42431),(39.78176, 21.42346),(39.78296, 21.42427),(39.78354, 21.42436),(39.78438, 21.42393),(39.78469, 21.42344),(39.78459, 21.42268),(39.78345, 21.42155),(39.78336, 21.41933),(39.78243, 21.41679),(39.78242, 21.41498),(39.78361, 21.41026),(39.78458, 21.40542),(39.78489, 21.40468),(39.7849, 21.40411),(39.78571, 21.4023)],
[(39.77052, 21.43821),(39.76961, 21.43812),(39.76832, 21.4382),(39.76767, 21.43829),(39.76811, 21.43749),(39.76863, 21.4368),(39.76943, 21.43601),(39.77156, 21.43438),(39.77239, 21.43353),(39.77295, 21.43277),(39.77411, 21.43069),(39.7749, 21.42952),(39.77558, 21.42859),(39.77673, 21.42736),(39.77594, 21.42991),(39.77575, 21.4307),(39.77542, 21.43177),(39.77522, 21.43286),(39.77508, 21.43432),(39.77509, 21.43554),(39.77488, 21.43577),(39.77474, 21.43605),(39.77467, 21.43622),(39.77444, 21.43711),(39.77419, 21.43754),(39.77404, 21.43771),(39.77377, 21.43791),(39.77352, 21.43805),(39.77287, 21.43824),(39.77085, 21.43816),(39.77052, 21.43821)],
[(39.77683, 21.42438),(39.77605, 21.425),(39.77496, 21.42603),(39.7739, 21.42729),(39.77313, 21.42836),(39.77185, 21.4304),(39.77114, 21.43164),(39.77043, 21.4325),(39.76964, 21.4332),(39.76827, 21.43424),(39.76732, 21.43509),(39.76667, 21.43583),(39.76622, 21.43647),(39.76497, 21.43865),(39.76336, 21.43887),(39.76248, 21.43875),(39.76215, 21.43863),(39.75945, 21.4361),(39.75799, 21.43499),(39.75779, 21.43487),(39.75661, 21.43435),(39.75139, 21.43268),(39.75032, 21.43203),(39.74784, 21.42997),(39.74759, 21.42982),(39.74683, 21.4295),(39.74612, 21.42931),(39.74467, 21.42912),(39.74448, 21.42896),(39.7443, 21.42888),(39.74194, 21.4285),(39.74145, 21.42827),(39.74102, 21.42776),(39.7407, 21.42681),(39.74058, 21.42589),(39.74083, 21.42453),(39.74184, 21.4225),(39.74313, 21.42067),(39.74414, 21.41962),(39.74463, 21.41918),(39.74722, 21.41719),(39.74816, 21.41667),(39.75131, 21.41514),(39.7528, 21.4143),(39.7546, 21.41468),(39.75722, 21.41503),(39.7665, 21.41541),(39.76768, 21.41554),(39.7691, 21.41584),(39.77057, 21.41631),(39.77193, 21.41692),(39.77339, 21.41779),(39.7742, 21.41838),(39.77635, 21.41978),(39.77611, 21.41999),(39.77594, 21.42034),(39.77589, 21.42086),(39.77591, 21.42111),(39.77604, 21.42177),(39.77613, 21.42203),(39.77649, 21.42272),(39.77693, 21.42331),(39.77708, 21.42367),(39.77707, 21.42393),(39.77683, 21.42438)],
[(39.73364, 21.42933),(39.73324, 21.42934),(39.72777, 21.42885),(39.72661, 21.42861),(39.72586, 21.42833),(39.71975, 21.42438),(39.71903, 21.424),(39.71198, 21.42198),(39.71237, 21.41843),(39.71241, 21.4169),(39.71237, 21.41582),(39.71224, 21.4153),(39.71207, 21.41499),(39.71028, 21.41276),(39.70957, 21.412),(39.70914, 21.4116),(39.70794, 21.41071),(39.70769, 21.41057),(39.70642, 21.41012),(39.70575, 21.40943),(39.70451, 21.40799),(39.70442, 21.40779),(39.70426, 21.40579),(39.70437, 21.4053),(39.70468, 21.40483),(39.70531, 21.40433),(39.71243, 21.39961),(39.7206, 21.41007),(39.72131, 21.41077),(39.72202, 21.41134),(39.72276, 21.41188),(39.72424, 21.41269),(39.72578, 21.41323),(39.72663, 21.41346),(39.72741, 21.41357),(39.72886, 21.41366),(39.73014, 21.4136),(39.7346, 21.41323),(39.73624, 21.41339),(39.73895, 21.41313),(39.74098, 21.41303),(39.74174, 21.41319),(39.74348, 21.41408),(39.74416, 21.41454),(39.74445, 21.41478),(39.74463, 21.41504),(39.74467, 21.41523),(39.74465, 21.41565),(39.74447, 21.41608),(39.74416, 21.41649),(39.74239, 21.41799),(39.74121, 21.41922),(39.74065, 21.41993),(39.73973, 21.42137),(39.73894, 21.42307),(39.7385, 21.42385),(39.73799, 21.42463),(39.73672, 21.42624),(39.73364, 21.42933)],
[(39.71409, 21.39848),(39.7259, 21.39043),(39.72856, 21.39237),(39.72897, 21.39258),(39.72946, 21.39268),(39.72985, 21.39281),(39.73553, 21.39698),(39.73563, 21.39707),(39.73609, 21.39767),(39.73676, 21.39815),(39.74249, 21.40142),(39.743, 21.40162),(39.74336, 21.40168),(39.7445, 21.40156),(39.74465, 21.40162),(39.74535, 21.40201),(39.74586, 21.40221),(39.74731, 21.4031),(39.75127, 21.4053),(39.75207, 21.40561),(39.75415, 21.40664),(39.75489, 21.40686),(39.75501, 21.40693),(39.75368, 21.40835),(39.75296, 21.4087),(39.75071, 21.40918),(39.74696, 21.41005),(39.74601, 21.41024),(39.74227, 21.41003),(39.74019, 21.41017),(39.73721, 21.41052),(39.73608, 21.41079),(39.73591, 21.41089),(39.73567, 21.41113),(39.72999, 21.4116),(39.72892, 21.41166),(39.72757, 21.41157),(39.72697, 21.41149),(39.72641, 21.41133),(39.7251, 21.41088),(39.72389, 21.41023),(39.72326, 21.40977),(39.72261, 21.40924),(39.72205, 21.40869),(39.71409, 21.39848)],
[(39.7457, 21.43127),(39.74624, 21.43142),(39.74667, 21.4316),(39.7491, 21.43362),(39.75045, 21.43445),(39.75067, 21.43455),(39.75586, 21.43621),(39.75688, 21.43666),(39.75811, 21.43759),(39.7606, 21.43995),(39.76102, 21.44029),(39.76115, 21.44038),(39.76188, 21.44066),(39.7621, 21.44072),(39.76323, 21.44087),(39.76349, 21.44087),(39.76572, 21.44057),(39.76592, 21.44058),(39.76625, 21.4405),(39.76848, 21.4402),(39.76965, 21.44012),(39.77019, 21.44018),(39.77471, 21.44129),(39.77662, 21.44142),(39.77705, 21.44257),(39.77753, 21.44343),(39.77792, 21.444),(39.77863, 21.44489),(39.77936, 21.44567),(39.7797, 21.44597),(39.7803, 21.44638),(39.78107, 21.44684),(39.7823, 21.4475),(39.78364, 21.44835),(39.78622, 21.45028),(39.78775, 21.45163),(39.78853, 21.45236),(39.79426, 21.45875),(39.79488, 21.45938),(39.79706, 21.46135),(39.79869, 21.4625),(39.80185, 21.46439),(39.80201, 21.46461),(39.80207, 21.46475),(39.80206, 21.46486),(39.80187, 21.46508),(39.79992, 21.4663),(39.79979, 21.46644),(39.79968, 21.46663),(39.79914, 21.467),(39.79814, 21.46788),(39.79751, 21.46867),(39.79695, 21.46959),(39.79658, 21.47045),(39.79623, 21.47164),(39.7932, 21.48709),(39.79286, 21.48954),(39.79217, 21.49622),(39.79191, 21.49914),(39.79191, 21.50009),(39.79167, 21.502),(39.79039, 21.5155),(39.7749, 21.51163),(39.77208, 21.51099),(39.7654, 21.51023),(39.74443, 21.5064),(39.74326, 21.50603),(39.74213, 21.50544),(39.74139, 21.50491),(39.74068, 21.50419),(39.7399, 21.50329),(39.73911, 21.50203),(39.73868, 21.50103),(39.73842, 21.49995),(39.73826, 21.49836),(39.73919, 21.49113),(39.73916, 21.48952),(39.73895, 21.48839),(39.73888, 21.48816),(39.73839, 21.4871),(39.73787, 21.4862),(39.73693, 21.48477),(39.73567, 21.48348),(39.73286, 21.48021),(39.73059, 21.47715),(39.72508, 21.46749),(39.72433, 21.46585),(39.72302, 21.46073),(39.72287, 21.45961),(39.72278, 21.45841),(39.72284, 21.45738),(39.72295, 21.45633),(39.72389, 21.45255),(39.72481, 21.45005),(39.73039, 21.43827),(39.7314, 21.43644),(39.73183, 21.43594),(39.73214, 21.43568),(39.73369, 21.43469),(39.73481, 21.43411),(39.73548, 21.43368),(39.73637, 21.433),(39.73709, 21.43238),(39.73785, 21.43181),(39.73821, 21.43158),(39.73856, 21.43144),(39.73898, 21.43133),(39.73951, 21.43126),(39.74295, 21.43112),(39.7457, 21.43127)],
[(39.7791, 21.44156),(39.77939, 21.44157),(39.78003, 21.44187),(39.78046, 21.442),(39.78123, 21.44207),(39.78208, 21.44195),(39.78301, 21.44163),(39.78764, 21.44075),(39.78822, 21.44077),(39.78917, 21.44068),(39.79022, 21.44082),(39.7976, 21.44116),(39.7978, 21.44115),(39.79799, 21.4411),(39.79933, 21.44116),(39.79964, 21.44126),(39.80102, 21.44147),(39.80255, 21.44181),(39.80419, 21.4421),(39.80647, 21.44221),(39.80682, 21.44216),(39.80854, 21.4424),(39.8081, 21.44453),(39.80796, 21.44538),(39.8078, 21.44743),(39.80767, 21.44769),(39.80763, 21.44789),(39.80767, 21.44828),(39.80774, 21.44843),(39.80761, 21.45109),(39.80736, 21.4538),(39.80599, 21.45785),(39.8059, 21.45822),(39.80589, 21.45902),(39.80592, 21.45926),(39.80609, 21.45985),(39.80634, 21.46041),(39.80595, 21.46096),(39.8057, 21.46124),(39.8038, 21.46239),(39.80349, 21.46246),(39.80322, 21.46244),(39.79996, 21.46056),(39.79871, 21.45967),(39.79745, 21.45865),(39.79647, 21.45779),(39.79588, 21.4572),(39.78985, 21.45056),(39.78754, 21.44849),(39.7862, 21.44745),(39.78483, 21.44646),(39.78342, 21.44554),(39.78147, 21.44446),(39.78087, 21.44401),(39.77967, 21.44266),(39.7791, 21.44156)],
[(39.93436, 21.4816),(39.93241, 21.48133),(39.92917, 21.48071),(39.92795, 21.48063),(39.92391, 21.48004),(39.92213, 21.47963),(39.92017, 21.47891),(39.91245, 21.47545),(39.91099, 21.47469),(39.9098, 21.47394),(39.90843, 21.47286),(39.90708, 21.4716),(39.90445, 21.46837),(39.90205, 21.46552),(39.90002, 21.46344),(39.89957, 21.4628),(39.8993, 21.46223),(39.89803, 21.45836),(39.898, 21.45747),(39.89804, 21.45702),(39.90192, 21.44447),(39.9022, 21.44387),(39.90238, 21.44363),(39.90272, 21.44337),(39.90406, 21.44277),(39.90471, 21.44266),(39.90601, 21.44278),(39.90621, 21.44277),(39.90655, 21.44267),(39.90946, 21.44274),(39.91033, 21.44282),(39.91091, 21.44294),(39.91136, 21.44311),(39.912, 21.44341),(39.91274, 21.44388),(39.91397, 21.44474),(39.9147, 21.44511),(39.91571, 21.44553),(39.91731, 21.44594),(39.9197, 21.44635),(39.92104, 21.44677),(39.92156, 21.44697),(39.92234, 21.44739),(39.92405, 21.44847),(39.92538, 21.44954),(39.92675, 21.45043),(39.92962, 21.4519),(39.93035, 21.45214),(39.93227, 21.45265),(39.93426, 21.45311),(39.93484, 21.45321),(39.93669, 21.45325),(39.9378, 21.4532),(39.93928, 21.45321),(39.94077, 21.45341),(39.94229, 21.45381),(39.94572, 21.45459),(39.94649, 21.45483),(39.94901, 21.45579),(39.93559, 21.4801),(39.93508, 21.48113),(39.93479, 21.48161),(39.93436, 21.4816)],
[(39.9044, 21.42901),(39.90248, 21.42675),(39.90195, 21.4262),(39.90111, 21.42499),(39.90059, 21.42408),(39.90038, 21.42359),(39.89991, 21.42209),(39.89946, 21.42086),(39.89889, 21.41972),(39.89911, 21.41951),(39.89926, 21.41931),(39.89948, 21.41892),(39.89961, 21.41855),(39.89964, 21.41816),(39.89957, 21.41767),(39.89948, 21.41741),(39.89925, 21.417),(39.89899, 21.41667),(39.89887, 21.41624),(39.89879, 21.41607),(39.89867, 21.41591),(39.89852, 21.41578),(39.89835, 21.41569),(39.89816, 21.41562),(39.89777, 21.41561),(39.89741, 21.41575),(39.89725, 21.41587),(39.89712, 21.41602),(39.89703, 21.41619),(39.89696, 21.41645),(39.89537, 21.41379),(39.89576, 21.4136),(39.89645, 21.41343),(39.89707, 21.41339),(39.89798, 21.41346),(39.89948, 21.41366),(39.90026, 21.41364),(39.90105, 21.4135),(39.90182, 21.41325),(39.90257, 21.41288),(39.90323, 21.41248),(39.90385, 21.41197),(39.90475, 21.41093),(39.90476, 21.41108),(39.90482, 21.41126),(39.90492, 21.41143),(39.9052, 21.4117),(39.90538, 21.41179),(39.90589, 21.4119),(39.90633, 21.41211),(39.90744, 21.4129),(39.90772, 21.41318),(39.9078, 21.4133),(39.90791, 21.41361),(39.90793, 21.41377),(39.9079, 21.41405),(39.90795, 21.41444),(39.90814, 21.41478),(39.90724, 21.41976),(39.90704, 21.42054),(39.90545, 21.42577),(39.9044, 21.42901)],
[(39.8047, 21.42149),(39.80352, 21.42129),(39.80246, 21.42135),(39.80157, 21.42154),(39.79665, 21.42328),(39.79613, 21.42337),(39.79422, 21.4236),(39.79363, 21.42362),(39.79194, 21.42358),(39.79197, 21.42339),(39.79246, 21.42319),(39.79288, 21.42298),(39.79309, 21.42284),(39.79357, 21.42239),(39.79395, 21.4219),(39.79415, 21.42135),(39.7942, 21.42109),(39.79422, 21.42034),(39.79408, 21.41965),(39.7938, 21.41913),(39.79365, 21.41892),(39.79326, 21.41852),(39.79252, 21.41799),(39.79244, 21.41749),(39.79228, 21.41685),(39.78902, 21.4057),(39.78897, 21.40545),(39.78905, 21.40469),(39.78917, 21.40441),(39.7896, 21.40383),(39.7899, 21.40361),(39.79015, 21.40348),(39.79091, 21.4033),(39.79119, 21.40331),(39.79188, 21.40345),(39.79208, 21.40353),(39.7923, 21.40367),(39.79685, 21.4084),(39.79791, 21.40973),(39.79986, 21.41254),(39.80035, 21.41301),(39.80145, 21.41381),(39.80223, 21.41458),(39.80241, 21.41472),(39.80482, 21.41733),(39.80568, 21.41832),(39.80568, 21.41932),(39.80526, 21.41977),(39.8051, 21.41999),(39.80494, 21.4203),(39.8047, 21.42107),(39.8047, 21.42149)],
[(39.79951, 21.40831),(39.79848, 21.40702),(39.79501, 21.40333),(39.79373, 21.40207),(39.79355, 21.40193),(39.79291, 21.40156),(39.79209, 21.40128),(39.79129, 21.40117),(39.7904, 21.40122),(39.78952, 21.40145),(39.78886, 21.40175),(39.78761, 21.40064),(39.78831, 21.39977),(39.78842, 21.39961),(39.7885, 21.39941),(39.78889, 21.39915),(39.78934, 21.39892),(39.78975, 21.39885),(39.79039, 21.39844),(39.7913, 21.39812),(39.79528, 21.39727),(39.79685, 21.39697),(39.79808, 21.39687),(39.80179, 21.39686),(39.80549, 21.39681),(39.80651, 21.39668),(39.80725, 21.39666),(39.80743, 21.3966),(39.80771, 21.39643),(39.80899, 21.39602),(39.80971, 21.39842),(39.80979, 21.39893),(39.80983, 21.39956),(39.80955, 21.39958),(39.80936, 21.39965),(39.8092, 21.39975),(39.80893, 21.40003),(39.8088, 21.4004),(39.80766, 21.40803),(39.80749, 21.40874),(39.8071, 21.4101),(39.80666, 21.41003),(39.80538, 21.40971),(39.8038, 21.40937),(39.80309, 21.40917),(39.79951, 21.40831)],
[(39.78528, 21.39922),(39.78493, 21.39899),(39.78591, 21.39763),(39.78619, 21.3968),(39.78824, 21.38477),(39.78896, 21.37718),(39.79196, 21.37747),(39.79386, 21.37747),(39.79431, 21.38367),(39.79466, 21.38521),(39.79527, 21.38685),(39.7963, 21.39301),(39.79642, 21.39481),(39.79092, 21.39593),(39.78942, 21.39642),(39.78822, 21.39699),(39.78722, 21.3976),(39.78651, 21.3981),(39.78528, 21.39922)],
[(39.79842, 21.39469),(39.79828, 21.39273),(39.79723, 21.38643),(39.79656, 21.38457),(39.7963, 21.38345),(39.79584, 21.3772),(39.79782, 21.37657),(39.80001, 21.37542),(39.80108, 21.37459),(39.80295, 21.37269),(39.80319, 21.37258),(39.80748, 21.38942),(39.80783, 21.39052),(39.80783, 21.39119),(39.8077, 21.39161),(39.80752, 21.39189),(39.80687, 21.39255),(39.80579, 21.39415),(39.80519, 21.39458),(39.79842, 21.39469)],
[(39.86272, 21.42529),(39.86276, 21.42495),(39.86273, 21.42476),(39.86266, 21.42457),(39.86255, 21.42441),(39.8638, 21.42428),(39.8642, 21.42419),(39.86474, 21.42401),(39.86583, 21.42353),(39.86774, 21.42232),(39.87468, 21.41769),(39.87519, 21.41722),(39.87556, 21.41679),(39.87623, 21.41572),(39.87632, 21.41563),(39.87919, 21.41359),(39.88011, 21.41502),(39.88112, 21.41677),(39.88159, 21.4177),(39.88115, 21.41807),(39.88045, 21.41821),(39.87899, 21.41871),(39.87817, 21.41908),(39.87653, 21.41992),(39.87497, 21.42078),(39.87348, 21.42172),(39.87086, 21.42355),(39.86554, 21.42759),(39.86429, 21.4284),(39.86344, 21.42888),(39.86315, 21.42914),(39.86304, 21.42931),(39.86297, 21.42949),(39.86288, 21.42955),(39.86345, 21.42732),(39.86493, 21.42715),(39.86628, 21.42693),(39.86645, 21.42685),(39.86674, 21.42659),(39.86691, 21.42623),(39.86694, 21.42604),(39.86693, 21.42584),(39.8668, 21.42548),(39.86654, 21.42519),(39.86618, 21.42502),(39.86599, 21.42499),(39.86579, 21.425),(39.86465, 21.42517),(39.86303, 21.42536),(39.86272, 21.42529)],
[(39.88137, 21.4133),(39.88234, 21.41345),(39.88299, 21.41336),(39.88369, 21.41308),(39.88421, 21.41275),(39.88498, 21.41196),(39.88634, 21.40971),(39.88889, 21.40731),(39.89212, 21.41262),(39.89182, 21.41282),(39.89033, 21.41422),(39.88928, 21.41434),(39.88824, 21.41479),(39.88626, 21.41669),(39.88579, 21.41696),(39.88471, 21.41737),(39.88379, 21.4176),(39.88287, 21.41579),(39.88137, 21.4133)],
[(39.89343, 21.41478),(39.89599, 21.41909),(39.8969, 21.42055),(39.89729, 21.42134),(39.89771, 21.42243),(39.8981, 21.42371),(39.89874, 21.4253),(39.89905, 21.42595),(39.89945, 21.42665),(39.89984, 21.42723),(39.90044, 21.42799),(39.90305, 21.43104),(39.9031, 21.43127),(39.90311, 21.43155),(39.90306, 21.43194),(39.9017, 21.43639),(39.90122, 21.43585),(39.90098, 21.43544),(39.90059, 21.43417),(39.90029, 21.43348),(39.89965, 21.43238),(39.89683, 21.4285),(39.89643, 21.42802),(39.89572, 21.4274),(39.89208, 21.42467),(39.8859, 21.42038),(39.88621, 21.41977),(39.8863, 21.41948),(39.88648, 21.41926),(39.88752, 21.4184),(39.88777, 21.4181),(39.88784, 21.41793),(39.88939, 21.41644),(39.88975, 21.41629),(39.89056, 21.41626),(39.891, 21.41612),(39.89343, 21.41478)],
[(39.90063, 21.43987),(39.89683, 21.45214),(39.8956, 21.45625),(39.89544, 21.45648),(39.89523, 21.45671),(39.89504, 21.45685),(39.89446, 21.45714),(39.89298, 21.45776),(39.89025, 21.4587),(39.88889, 21.4589),(39.88829, 21.45893),(39.88695, 21.45888),(39.88613, 21.45869),(39.88496, 21.45834),(39.88205, 21.45719),(39.88115, 21.45672),(39.87854, 21.45483),(39.87734, 21.45423),(39.87619, 21.45386),(39.871, 21.45278),(39.87018, 21.45257),(39.86828, 21.45177),(39.86695, 21.45101),(39.86592, 21.45008),(39.86505, 21.44914),(39.86307, 21.44683),(39.86096, 21.44427),(39.86036, 21.44351),(39.85993, 21.44287),(39.85876, 21.44092),(39.85863, 21.4405),(39.85853, 21.4385),(39.85845, 21.43789),(39.85841, 21.4377),(39.85799, 21.43648),(39.85816, 21.43625),(39.85861, 21.4358),(39.86082, 21.43328),(39.86139, 21.43272),(39.86152, 21.43255),(39.86213, 21.43226),(39.86471, 21.4308),(39.86495, 21.4305),(39.86503, 21.43028),(39.86671, 21.42921),(39.87205, 21.42516),(39.87456, 21.4234),(39.87601, 21.42249),(39.87745, 21.42169),(39.87968, 21.42059),(39.88, 21.42048),(39.88078, 21.42029),(39.88189, 21.4201),(39.8827, 21.41988),(39.88297, 21.4204),(39.8836, 21.42141),(39.88376, 21.42162),(39.88439, 21.4222),(39.89129, 21.42698),(39.89334, 21.42853),(39.89452, 21.42953),(39.89488, 21.42994),(39.89779, 21.43386),(39.89841, 21.43486),(39.89868, 21.43546),(39.89962, 21.43833),(39.89972, 21.4385),(39.8999, 21.43867),(39.90027, 21.43939),(39.90063, 21.43987)],
[(39.89963, 21.38706),(39.8989, 21.38816),(39.8987, 21.38839),(39.89842, 21.38854),(39.89495, 21.38902),(39.8945, 21.38902),(39.89358, 21.38881),(39.89293, 21.38854),(39.88689, 21.38662),(39.88679, 21.38636),(39.88745, 21.38587),(39.89342, 21.38207),(39.89382, 21.38213),(39.89462, 21.38259),(39.89517, 21.38281),(39.8958, 21.38288),(39.89673, 21.3828),(39.89855, 21.38564),(39.89963, 21.38706)],
[(39.89348, 21.39296),(39.89286, 21.39348),(39.89194, 21.39401),(39.88552, 21.39692),(39.8847, 21.3955),(39.88413, 21.39366),(39.88401, 21.39185),(39.88434, 21.39012),(39.88475, 21.38944),(39.88506, 21.38913),(39.88593, 21.38845),(39.88615, 21.38848),(39.88648, 21.38874),(39.88738, 21.38915),(39.89272, 21.39085),(39.89371, 21.39128),(39.89392, 21.39143),(39.89398, 21.39158),(39.89408, 21.39224),(39.89348, 21.39296)],
[(39.84886, 21.43817),(39.85002, 21.43712),(39.85126, 21.43554),(39.85158, 21.43529),(39.85427, 21.4341),(39.85471, 21.4338),(39.85655, 21.43378),(39.85785, 21.43364),(39.85715, 21.43444),(39.85687, 21.43452),(39.85609, 21.43509),(39.85562, 21.43524),(39.85418, 21.43543),(39.85305, 21.43578),(39.85245, 21.43611),(39.85064, 21.43763),(39.85024, 21.43783),(39.84886, 21.43817)],
[(39.85972, 21.41943),(39.86333, 21.41545),(39.8703, 21.40829),(39.87409, 21.40552),(39.87517, 21.40688),(39.87599, 21.40806),(39.87819, 21.41186),(39.87494, 21.41418),(39.87458, 21.41459),(39.87399, 21.41555),(39.87339, 21.41616),(39.86496, 21.42173),(39.86398, 21.42216),(39.86342, 21.42231),(39.86213, 21.42238),(39.85971, 21.42177),(39.86001, 21.42041),(39.85992, 21.41983),(39.85972, 21.41943)],
[(39.87571, 21.40434),(39.87841, 21.40243),(39.88448, 21.39962),(39.88786, 21.4056),(39.8874, 21.40591),(39.8848, 21.40843),(39.88417, 21.40934),(39.8834, 21.41072),(39.88317, 21.41098),(39.8828, 21.41129),(39.88232, 21.41144),(39.88197, 21.41139),(39.88098, 21.41104),(39.88003, 21.41105),(39.8777, 21.40702),(39.87679, 21.40571),(39.87571, 21.40434)],
[(39.88646, 21.39869),(39.89349, 21.39545),(39.8941, 21.39505),(39.89698, 21.39264),(39.89974, 21.3939),(39.89882, 21.39616),(39.89759, 21.39804),(39.8959, 21.40038),(39.89488, 21.40142),(39.89409, 21.40204),(39.89129, 21.40342),(39.88971, 21.40437),(39.88646, 21.39869)],
[(39.95221, 21.34705),(39.95232, 21.34622),(39.95252, 21.3457),(39.95278, 21.34519),(39.95313, 21.34467),(39.95355, 21.34423),(39.95402, 21.34383),(39.95944, 21.34052),(39.96716, 21.3359),(39.96818, 21.33546),(39.96952, 21.33507),(39.97082, 21.33491),(39.97164, 21.33491),(39.97628, 21.33524),(39.97843, 21.33549),(39.98862, 21.33691),(39.99004, 21.33729),(39.99099, 21.33767),(39.9921, 21.33826),(39.99311, 21.339),(39.99377, 21.33959),(39.99466, 21.34067),(39.99517, 21.3415),(39.9956, 21.34231),(39.99591, 21.34323),(39.99606, 21.34384),(39.99627, 21.34514),(39.99627, 21.34711),(39.99622, 21.34781),(39.99493, 21.3532),(39.99449, 21.35441),(39.99377, 21.35575),(39.99337, 21.3563),(39.99265, 21.35702),(39.99047, 21.35841),(39.98785, 21.36027),(39.98739, 21.36066),(39.98664, 21.36148),(39.98629, 21.36203),(39.98604, 21.36261),(39.98588, 21.36326),(39.98582, 21.36386),(39.98584, 21.36461),(39.98597, 21.36522),(39.98613, 21.36571),(39.98645, 21.36645),(39.98769, 21.36884),(39.98792, 21.36953),(39.98811, 21.37052),(39.98876, 21.37739),(39.98869, 21.37821),(39.98863, 21.37841),(39.98851, 21.37867),(39.98808, 21.37931),(39.98785, 21.37954),(39.98758, 21.37973),(39.98671, 21.38013),(39.98624, 21.38023),(39.98142, 21.38031),(39.9805, 21.38024),(39.97978, 21.38003),(39.97949, 21.37987),(39.97917, 21.37962),(39.97889, 21.37936),(39.97864, 21.37904),(39.9778, 21.37783),(39.97605, 21.37561),(39.96729, 21.36519),(39.96247, 21.36003),(39.95955, 21.35682),(39.95867, 21.35593),(39.95499, 21.3519),(39.95402, 21.35093),(39.95309, 21.34984),(39.95262, 21.34915),(39.95236, 21.34849),(39.95225, 21.34799),(39.95218, 21.34733),(39.95221, 21.34705)],
[(39.80959, 21.42471),(39.80961, 21.42502),(39.80967, 21.4252),(39.80976, 21.42538),(39.80988, 21.42553),(39.81003, 21.42565),(39.81021, 21.42574),(39.81039, 21.4258),(39.81059, 21.42582),(39.81079, 21.4258),(39.81097, 21.42574),(39.81115, 21.42565),(39.8113, 21.42553),(39.81142, 21.42538),(39.81157, 21.42502),(39.81422, 21.4254),(39.81499, 21.42539),(39.81683, 21.42523),(39.8172, 21.4259),(39.81788, 21.42678),(39.81735, 21.42785),(39.81708, 21.42816),(39.817, 21.42821),(39.81458, 21.42838),(39.8142, 21.42837),(39.81313, 21.4282),(39.81278, 21.42826),(39.81207, 21.42855),(39.81173, 21.42888),(39.81161, 21.42903),(39.81152, 21.42921),(39.81137, 21.42959),(39.81126, 21.43002),(39.81082, 21.4313),(39.80838, 21.43082),(39.80778, 21.43079),(39.80781, 21.4305),(39.80793, 21.4264),(39.80787, 21.4244),(39.80959, 21.42471)],
[(39.80556, 21.43147),(39.80353, 21.43246),(39.80246, 21.43184),(39.80176, 21.43158),(39.80132, 21.43147),(39.80103, 21.43144),(39.80025, 21.43149),(39.79977, 21.43161),(39.79946, 21.43174),(39.79918, 21.43192),(39.79694, 21.43394),(39.79578, 21.43486),(39.79286, 21.43677),(39.79262, 21.43702),(39.79251, 21.43723),(39.79246, 21.43742),(39.79245, 21.43762),(39.79253, 21.43798),(39.79272, 21.43828),(39.79297, 21.43852),(39.79326, 21.43865),(39.79353, 21.43869),(39.79384, 21.43864),(39.79402, 21.43856),(39.79789, 21.43598),(39.80018, 21.4339),(39.80064, 21.43359),(39.80097, 21.43358),(39.80149, 21.43371),(39.80259, 21.43438),(39.80291, 21.4345),(39.8032, 21.43456),(39.80343, 21.43458),(39.80388, 21.43455),(39.8048, 21.43423),(39.80446, 21.43495),(39.80406, 21.43567),(39.80366, 21.43693),(39.80347, 21.43812),(39.80332, 21.43981),(39.80118, 21.43938),(39.79973, 21.43917),(39.79102, 21.43876),(39.79131, 21.43242),(39.79123, 21.43161),(39.79026, 21.42778),(39.79024, 21.42756),(39.79027, 21.42715),(39.79032, 21.42696),(39.79049, 21.42663),(39.79096, 21.42597),(39.79434, 21.4257),(39.79706, 21.42535),(39.80209, 21.42359),(39.80281, 21.42342),(39.8032, 21.42339),(39.80401, 21.42349),(39.80572, 21.42393),(39.80578, 21.4274),(39.80564, 21.43075),(39.80556, 21.43147)],
[(39.80743, 21.43297),(39.8081, 21.43292),(39.81017, 21.43334),(39.80879, 21.44042),(39.80641, 21.44006),(39.80544, 21.44004),(39.80577, 21.43726),(39.80612, 21.43633),(39.80671, 21.43526),(39.80743, 21.43297)],
[(39.80978, 21.44779),(39.80994, 21.44566),(39.81007, 21.44487),(39.81053, 21.44265),(39.81116, 21.44264),(39.81154, 21.44256),(39.81225, 21.44226),(39.81248, 21.44211),(39.81366, 21.44109),(39.81384, 21.44099),(39.81679, 21.44037),(39.81781, 21.44011),(39.82104, 21.43947),(39.8222, 21.43916),(39.82287, 21.43891),(39.82379, 21.43843),(39.82508, 21.43789),(39.82657, 21.43749),(39.82684, 21.43737),(39.82727, 21.4371),(39.82865, 21.43639),(39.82907, 21.43623),(39.82934, 21.4363),(39.82961, 21.43628),(39.83008, 21.43695),(39.8317, 21.43866),(39.83196, 21.439),(39.83218, 21.43955),(39.8324, 21.43989),(39.83262, 21.44011),(39.83308, 21.44043),(39.83338, 21.44071),(39.83419, 21.44194),(39.83469, 21.44238),(39.83493, 21.44253),(39.83535, 21.44272),(39.83558, 21.44279),(39.83628, 21.44289),(39.83853, 21.44254),(39.83909, 21.44226),(39.8397, 21.44168),(39.83977, 21.44165),(39.84008, 21.44161),(39.84192, 21.44153),(39.843, 21.44143),(39.84509, 21.4411),(39.84799, 21.44052),(39.84946, 21.44019),(39.84981, 21.44021),(39.84994, 21.44025),(39.85134, 21.44181),(39.85116, 21.44253),(39.85117, 21.44267),(39.85047, 21.4439),(39.85008, 21.44479),(39.84952, 21.44592),(39.84796, 21.44857),(39.84741, 21.44971),(39.84589, 21.45357),(39.84554, 21.45432),(39.84375, 21.45712),(39.84259, 21.45929),(39.84225, 21.46015),(39.84203, 21.46152),(39.84189, 21.46327),(39.8414, 21.46556),(39.84112, 21.46739),(39.84112, 21.46789),(39.84122, 21.46847),(39.84135, 21.46887),(39.84146, 21.4691),(39.84191, 21.4698),(39.84204, 21.4701),(39.84217, 21.47069),(39.84223, 21.47113),(39.84204, 21.47546),(39.84198, 21.47572),(39.84187, 21.47595),(39.84166, 21.47621),(39.84137, 21.4764),(39.84125, 21.47644),(39.84102, 21.4765),(39.84071, 21.47651),(39.83664, 21.47574),(39.836, 21.4757),(39.83537, 21.47573),(39.83436, 21.47593),(39.83347, 21.47628),(39.83274, 21.47666),(39.83259, 21.47668),(39.83234, 21.47663),(39.83211, 21.47648),(39.83203, 21.4764),(39.83197, 21.47626),(39.83172, 21.47361),(39.83147, 21.47277),(39.83127, 21.4723),(39.83087, 21.47161),(39.82925, 21.46941),(39.82728, 21.4666),(39.82667, 21.46592),(39.82647, 21.46575),(39.82613, 21.46553),(39.82048, 21.46267),(39.82011, 21.46245),(39.81967, 21.46209),(39.81931, 21.46169),(39.81868, 21.46072),(39.81798, 21.45998),(39.81588, 21.45849),(39.81553, 21.45819),(39.81515, 21.45776),(39.81493, 21.45736),(39.81256, 21.45195),(39.8115, 21.45014),(39.81057, 21.44875),(39.80978, 21.44779)],
[(39.78317, 21.39802),(39.78285, 21.39808),(39.77692, 21.3971),(39.77752, 21.39324),(39.77769, 21.39243),(39.77792, 21.39179),(39.78089, 21.38707),(39.78351, 21.38492),(39.7841, 21.38405),(39.78439, 21.38333),(39.78558, 21.37686),(39.78697, 21.37699),(39.78625, 21.38452),(39.78422, 21.39642),(39.78406, 21.39682),(39.78317, 21.39802)],
[(39.78917, 21.37519),(39.78953, 21.37157),(39.79052, 21.37185),(39.79107, 21.37212),(39.79169, 21.37253),(39.7921, 21.37292),(39.79255, 21.37342),(39.79307, 21.37423),(39.7934, 21.37489),(39.79358, 21.37547),(39.7921, 21.37547),(39.78917, 21.37519)],
[(39.87268, 21.3607),(39.87229, 21.37234),(39.87238, 21.37312),(39.8727, 21.37412),(39.87403, 21.3768),(39.87459, 21.37751),(39.87492, 21.3778),(39.87565, 21.3783),(39.87539, 21.37897),(39.87431, 21.38235),(39.87402, 21.38249),(39.87222, 21.38192),(39.87075, 21.38162),(39.86994, 21.38153),(39.86868, 21.38151),(39.86677, 21.38175),(39.86582, 21.382),(39.86468, 21.38241),(39.86373, 21.38286),(39.86273, 21.38347),(39.8619, 21.3841),(39.86106, 21.38489),(39.85782, 21.38829),(39.85728, 21.38809),(39.85678, 21.38807),(39.85608, 21.38827),(39.85576, 21.38852),(39.85553, 21.38885),(39.8554, 21.38933),(39.85538, 21.38957),(39.85547, 21.38999),(39.85567, 21.39042),(39.85495, 21.39109),(39.85387, 21.39231),(39.8531, 21.39292),(39.85269, 21.39312),(39.85256, 21.39313),(39.85225, 21.39306),(39.8512, 21.39193),(39.84972, 21.39016),(39.84959, 21.39004),(39.84879, 21.38937),(39.8481, 21.38893),(39.84746, 21.38863),(39.84605, 21.38825),(39.84136, 21.38785),(39.84054, 21.3877),(39.84015, 21.38753),(39.83982, 21.38734),(39.8394, 21.38701),(39.83693, 21.38443),(39.83665, 21.38418),(39.83518, 21.38321),(39.83492, 21.38309),(39.83413, 21.38287),(39.83345, 21.38279),(39.83236, 21.38277),(39.83156, 21.38286),(39.83051, 21.38312),(39.83637, 21.37503),(39.84749, 21.35985),(39.84785, 21.35942),(39.84912, 21.35812),(39.84948, 21.35783),(39.84985, 21.35763),(39.85045, 21.35745),(39.8545, 21.35696),(39.85519, 21.35698),(39.85738, 21.35754),(39.85971, 21.35848),(39.86135, 21.35892),(39.86264, 21.35917),(39.8703, 21.36038),(39.87268, 21.3607)],
[(39.87658, 21.37651),(39.87598, 21.37607),(39.87578, 21.37582),(39.87453, 21.3733),(39.87429, 21.37232),(39.87467, 21.36095),(39.87758, 21.36131),(39.87798, 21.36151),(39.88107, 21.36223),(39.88281, 21.36325),(39.88379, 21.36404),(39.88498, 21.36539),(39.88608, 21.36683),(39.8788, 21.37364),(39.8776, 21.375),(39.87658, 21.37651)],
[(39.82364, 21.41981),(39.82367, 21.41954),(39.82416, 21.41928),(39.82507, 21.41862),(39.82572, 21.41854),(39.8261, 21.4186),(39.8258, 21.41927),(39.82445, 21.41949),(39.82364, 21.41981)],
[(39.82391, 21.41697),(39.82383, 21.41571),(39.82364, 21.41473),(39.82274, 21.41253),(39.82449, 21.41261),(39.82443, 21.41485),(39.82469, 21.41537),(39.82519, 21.41566),(39.82577, 21.41563),(39.82623, 21.41527),(39.82642, 21.41472),(39.82648, 21.41309),(39.82695, 21.41321),(39.82661, 21.41499),(39.82657, 21.41567),(39.82683, 21.41674),(39.82634, 21.4166),(39.82514, 21.41656),(39.82446, 21.41671),(39.82391, 21.41697)],
[(39.82876, 21.41802),(39.83007, 21.41793),(39.83168, 21.41763),(39.83252, 21.41736),(39.8333, 21.41696),(39.83461, 21.41893),(39.83507, 21.41978),(39.83524, 21.42063),(39.8353, 21.42147),(39.83401, 21.42163),(39.83388, 21.42071),(39.83352, 21.41999),(39.83348, 21.41968),(39.83332, 21.41932),(39.83276, 21.41877),(39.8319, 21.41823),(39.83077, 21.41798),(39.82876, 21.41802)],
[(39.83509, 21.41604),(39.839, 21.41402),(39.84021, 21.41316),(39.84098, 21.41247),(39.84179, 21.41159),(39.8438, 21.40921),(39.84747, 21.40466),(39.84802, 21.40381),(39.84838, 21.40303),(39.84864, 21.40216),(39.84886, 21.40096),(39.849, 21.39949),(39.84909, 21.39896),(39.84924, 21.39842),(39.84956, 21.39772),(39.85004, 21.39711),(39.8502, 21.39695),(39.8506, 21.39665),(39.85157, 21.39618),(39.853, 21.39569),(39.85363, 21.39558),(39.85396, 21.39547),(39.8544, 21.39524),(39.8547, 21.39503),(39.85499, 21.39478),(39.85617, 21.39361),(39.85696, 21.39291),(39.85746, 21.39236),(39.8579, 21.39179),(39.85877, 21.39085),(39.86338, 21.39308),(39.86446, 21.39356),(39.86531, 21.39402),(39.86577, 21.39435),(39.86651, 21.39507),(39.86596, 21.3955),(39.86532, 21.39609),(39.86472, 21.39688),(39.86379, 21.39863),(39.86138, 21.40439),(39.86035, 21.4064),(39.85537, 21.41465),(39.85266, 21.41823),(39.85145, 21.41971),(39.85133, 21.4198),(39.85092, 21.41997),(39.84912, 21.42017),(39.84516, 21.42027),(39.84289, 21.42044),(39.83728, 21.4212),(39.83723, 21.42043),(39.83701, 21.4193),(39.83677, 21.41867),(39.83632, 21.41789),(39.83509, 21.41604)],
[(39.86021, 21.38932),(39.86365, 21.38583),(39.86459, 21.38516),(39.86624, 21.38442),(39.86768, 21.38403),(39.86962, 21.38393),(39.8717, 21.38431),(39.87299, 21.3847),(39.8729, 21.38575),(39.87303, 21.38632),(39.87188, 21.38979),(39.87157, 21.39051),(39.87068, 21.39174),(39.87013, 21.39226),(39.8681, 21.39384),(39.86709, 21.39285),(39.86632, 21.39229),(39.86021, 21.38932)],
[(39.84703, 21.39096),(39.84715, 21.39117),(39.84744, 21.39143),(39.84761, 21.39151),(39.84787, 21.39156),(39.84872, 21.39256),(39.84882, 21.39314),(39.84858, 21.39443),(39.84842, 21.39495),(39.848, 21.39601),(39.84714, 21.39783),(39.84698, 21.39845),(39.84677, 21.40025),(39.84654, 21.40175),(39.84636, 21.40234),(39.84612, 21.40283),(39.84579, 21.40335),(39.84226, 21.4074),(39.8407, 21.40935),(39.83947, 21.41065),(39.83831, 21.41161),(39.8377, 21.41205),(39.83345, 21.41428),(39.83247, 21.41344),(39.83245, 21.41324),(39.83239, 21.41305),(39.8323, 21.41288),(39.83217, 21.41273),(39.83121, 21.41178),(39.83068, 21.41134),(39.83015, 21.41099),(39.83001, 21.41065),(39.83052, 21.40833),(39.83112, 21.40587),(39.8317, 21.40157),(39.83168, 21.40101),(39.83164, 21.40082),(39.83137, 21.40027),(39.83115, 21.39999),(39.83083, 21.39971),(39.83052, 21.39952),(39.8284, 21.39872),(39.82797, 21.39848),(39.82767, 21.39827),(39.82744, 21.39803),(39.82711, 21.39753),(39.827, 21.39726),(39.82693, 21.3969),(39.82679, 21.39172),(39.82659, 21.38808),(39.82672, 21.38766),(39.82705, 21.38702),(39.82746, 21.38644),(39.83156, 21.38522),(39.83244, 21.38503),(39.83282, 21.38502),(39.83372, 21.38517),(39.83421, 21.38535),(39.83473, 21.38565),(39.83527, 21.38603),(39.83533, 21.38622),(39.83555, 21.38655),(39.83588, 21.38676),(39.83607, 21.38681),(39.83738, 21.38827),(39.83788, 21.38875),(39.83886, 21.38944),(39.83905, 21.38954),(39.83962, 21.38978),(39.84022, 21.38998),(39.84135, 21.39018),(39.84179, 21.39021),(39.84192, 21.39029),(39.8423, 21.3904),(39.84269, 21.39035),(39.84282, 21.39029),(39.84546, 21.39049),(39.84593, 21.39055),(39.84632, 21.39064),(39.84672, 21.39079),(39.84703, 21.39096)],
[(39.83154, 21.41527),(39.83052, 21.41557),(39.82875, 21.41575),(39.82868, 21.41557),(39.8287, 21.41522),(39.82898, 21.41382),(39.83043, 21.41432),(39.83154, 21.41527)],
[(39.88532, 21.36227),(39.89047, 21.36299),(39.88935, 21.36357),(39.889, 21.36359),(39.88711, 21.36335),(39.88654, 21.36324),(39.88587, 21.36295),(39.88576, 21.36273),(39.88532, 21.36227)],
[(39.91229, 21.40316),(39.91302, 21.40213),(39.91357, 21.40253),(39.91432, 21.40334),(39.91464, 21.40392),(39.91478, 21.40442),(39.91478, 21.40479),(39.91465, 21.40516),(39.91433, 21.40548),(39.914, 21.40563),(39.91331, 21.4056),(39.9128, 21.40534),(39.91261, 21.40516),(39.91238, 21.40474),(39.91229, 21.40316)]);
SELECT 'Simplified version of previous test';
SELECT pointInPolygon((39.840202, 21.451471),
[(39.90553, 21.38668),(39.91034, 21.38608),(39.91834, 21.38048),(39.93078, 21.3627),(39.94141, 21.36278),(39.94753, 21.36075),(39.94986, 21.35894),(39.95349, 21.3533),(39.97833, 21.3815),(39.98132, 21.38231),(39.98851, 21.38151),(39.99076, 21.37747),(39.98987, 21.36908),(39.98791, 21.36332),(39.99543, 21.35687),(39.99827, 21.34722),(39.99784, 21.34271),(39.99632, 21.33955),(39.99322, 21.3366),(39.98908, 21.33496),(39.9692, 21.3331),(39.95841, 21.3388),(39.95109, 21.34412),(39.95026, 21.34825),(39.95203, 21.35168),(39.94753, 21.35845),(39.94165, 21.36077),(39.93272, 21.36009),(39.92969, 21.36103),(39.91928, 21.37669),(39.91374, 21.3816),(39.91056, 21.38296),(39.90839, 21.38361),(39.90059, 21.38257),(39.8978, 21.37712),(39.90051, 21.37335),(39.90033, 21.37195),(39.89559, 21.37533),(39.89099, 21.36937),(39.89101, 21.3661),(39.89465, 21.364),(39.92418, 21.35725),(39.92838, 21.35433),(39.94394, 21.33915),(39.96711, 21.32785),(39.97437, 21.32734),(39.99523, 21.33055),(40.01271, 21.3293),(40.01345, 21.3276),(40.00731, 21.32689),(39.99189, 21.32817),(39.97264, 21.3251),(39.96216, 21.32725),(39.95825, 21.32598),(39.95783, 21.32734),(39.96017, 21.32834),(39.94652, 21.33514),(39.94578, 21.33237),(39.94438, 21.33259),(39.94454, 21.33563),(39.92448, 21.3545),(39.92007, 21.3563),(39.89586, 21.3615),(39.86239, 21.35659),(39.85241, 21.35319),(39.85183, 21.35189),(39.84187, 21.3498),(39.83475, 21.35001),(39.82272, 21.35322),(39.80957, 21.34986),(39.80645, 21.34645),(39.80654, 21.34104),(39.82207, 21.29116),(39.82732, 21.26685),(39.82657, 21.22894),(39.82468, 21.22761),(39.82364, 21.22857),(39.82459, 21.22961),(39.82535, 21.26649),(39.82016, 21.29057),(39.81723, 21.29965),(39.81585, 21.30012),(39.81652, 21.30158),(39.81475, 21.30815),(39.80378, 21.34492),(39.8023, 21.34648),(39.79042, 21.34584),(39.78385, 21.34687),(39.77227, 21.34595),(39.7601, 21.34279),(39.73947, 21.34141),(39.71051, 21.34288),(39.70233, 21.34041),(39.68839, 21.33943),(39.65964, 21.33189),(39.64627, 21.3344),(39.64733, 21.33592),(39.65598, 21.33404),(39.66095, 21.33402),(39.68789, 21.34136),(39.70198, 21.34238),(39.71031, 21.34487),(39.74208, 21.34353),(39.76109, 21.34495),(39.77363, 21.34845),(39.77446, 21.35039),(39.76342, 21.37977),(39.75978, 21.39951),(39.75655, 21.40491),(39.73768, 21.39607),(39.72646, 21.38795),(39.71285, 21.3969),(39.69867, 21.37979),(39.66651, 21.36156),(39.6662, 21.36338),(39.69742, 21.38135),(39.7112, 21.39803),(39.70333, 21.40335),(39.70227, 21.40556),(39.70273, 21.40892),(39.71038, 21.41608),(39.71004, 21.42139),(39.68758, 21.414),(39.68099, 21.41398),(39.63179, 21.4366),(39.62927917729339, 21.43855995858338),(39.629299942421596, 21.44105336136311),(39.63273, 21.43836),(39.65768, 21.42753),(39.67404, 21.419),(39.6815, 21.41592),(39.68534, 21.41555),(39.7182, 21.42582),(39.72915, 21.4318),(39.72926, 21.43473),(39.72198, 21.45071),(39.72058, 21.46018),(39.72262, 21.46776),(39.72871, 21.47851),(39.73639, 21.48854),(39.73607, 21.50077),(39.73921, 21.50608),(39.74358, 21.50869),(39.77204, 21.51334),(39.78965, 21.51773),(39.78925, 21.52186),(39.77895, 21.53768),(39.77335, 21.55878),(39.77409, 21.55998),(39.77529, 21.55924),(39.78151, 21.53691),(39.79101, 21.52282),(39.79216, 21.51796),(39.79392, 21.51725),(39.793, 21.51609),(39.79416, 21.49641),(39.79816, 21.47216),(39.8004, 21.46856),(39.80363, 21.4669),(39.80549, 21.46717),(39.80785, 21.46483),(39.8079, 21.45844),(39.80961, 21.45125),(39.81407, 21.45956),(39.8189, 21.46404),(39.82568, 21.4678),(39.82961, 21.47351),(39.83079, 21.47799),(39.84122, 21.47849),(39.84401, 21.47583),(39.84423, 21.47113),(39.84321, 21.46813),(39.84421, 21.46059),(39.85356, 21.44251),(39.85688, 21.44231),(39.86433, 21.45155),(39.86762, 21.45385),(39.87655, 21.45623),(39.88419, 21.46034),(39.89153, 21.46165),(39.8939, 21.46349),(39.89668, 21.46326),(39.9075, 21.47496),(39.91921, 21.48088),(39.9355, 21.48404),(39.94435, 21.48781),(39.96608, 21.48881),(39.96569, 21.49663),(39.95135, 21.53005),(39.94352, 21.56004),(39.94384, 21.56417),(39.94803, 21.56766),(39.95376, 21.56964),(39.95497, 21.56891),(39.9538, 21.56747),(39.94686, 21.56478),(39.94534, 21.56123),(39.95324, 21.53069),(39.96782, 21.49652),(39.96808, 21.48868),(39.98958, 21.49423),(40.00615, 21.4944),(40.01566, 21.50406),(40.03305, 21.5127),(40.0475, 21.52172),(40.05278, 21.52274),(40.06051, 21.52124),(40.05971, 21.51952),(40.05217, 21.52052),(40.04866, 21.51978),(40.03052, 21.50875),(40.01631, 21.50181),(40.01014, 21.49459),(40.00619, 21.49215),(39.98995, 21.49206),(39.96952, 21.48658),(39.94485, 21.48571),(39.93748, 21.48246),(39.95107, 21.45666),(39.97348, 21.46578),(39.97479, 21.46523),(39.97424, 21.46392),(39.95217, 21.45495),(39.95444, 21.45202),(39.97071, 21.44272),(39.97127, 21.44141),(39.97007, 21.44065),(39.95381, 21.44976),(39.95007, 21.45407),(39.94121, 21.45146),(39.93089, 21.45021),(39.92173, 21.4449),(39.9164, 21.44366),(39.91152, 21.44104),(39.90446, 21.44019),(39.90416, 21.43717),(39.9067, 21.43268),(39.90657, 21.42875),(39.91121, 21.40898),(39.91566, 21.40698),(39.91675, 21.40517),(39.91627, 21.40045),(39.91407, 21.39734),(39.91949, 21.39132),(39.92673, 21.38963),(39.93267, 21.39089),(39.93373, 21.38995),(39.93279, 21.38889),(39.92676, 21.38762),(39.91905, 21.38931),(39.91251, 21.39595),(39.91173, 21.40041),(39.90949, 21.39663),(39.91172, 21.3928),(39.91031, 21.39269),(39.90798, 21.39493),(39.90668, 21.39219),(39.90882, 21.38887),(39.90768, 21.38803),(39.90505, 21.39084),(39.90417, 21.38841),(39.90553, 21.38668)],
[(39.80978, 21.44779),(39.80994, 21.44566),(39.81007, 21.44487),(39.81053, 21.44265),(39.81116, 21.44264),(39.81154, 21.44256),(39.81225, 21.44226),(39.81248, 21.44211),(39.81366, 21.44109),(39.81384, 21.44099),(39.81679, 21.44037),(39.81781, 21.44011),(39.82104, 21.43947),(39.8222, 21.43916),(39.82287, 21.43891),(39.82379, 21.43843),(39.82508, 21.43789),(39.82657, 21.43749),(39.82684, 21.43737),(39.82727, 21.4371),(39.82865, 21.43639),(39.82907, 21.43623),(39.82934, 21.4363),(39.82961, 21.43628),(39.83008, 21.43695),(39.8317, 21.43866),(39.83196, 21.439),(39.83218, 21.43955),(39.8324, 21.43989),(39.83262, 21.44011),(39.83308, 21.44043),(39.83338, 21.44071),(39.83419, 21.44194),(39.83469, 21.44238),(39.83493, 21.44253),(39.83535, 21.44272),(39.83558, 21.44279),(39.83628, 21.44289),(39.83853, 21.44254),(39.83909, 21.44226),(39.8397, 21.44168),(39.83977, 21.44165),(39.84008, 21.44161),(39.84192, 21.44153),(39.843, 21.44143),(39.84509, 21.4411),(39.84799, 21.44052),(39.84946, 21.44019),(39.84981, 21.44021),(39.84994, 21.44025),(39.85134, 21.44181),(39.85116, 21.44253),(39.85117, 21.44267),(39.85047, 21.4439),(39.85008, 21.44479),(39.84952, 21.44592),(39.84796, 21.44857),(39.84741, 21.44971),(39.84589, 21.45357),(39.84554, 21.45432),(39.84375, 21.45712),(39.84259, 21.45929),(39.84225, 21.46015),(39.84203, 21.46152),(39.84189, 21.46327),(39.8414, 21.46556),(39.84112, 21.46739),(39.84112, 21.46789),(39.84122, 21.46847),(39.84135, 21.46887),(39.84146, 21.4691),(39.84191, 21.4698),(39.84204, 21.4701),(39.84217, 21.47069),(39.84223, 21.47113),(39.84204, 21.47546),(39.84198, 21.47572),(39.84187, 21.47595),(39.84166, 21.47621),(39.84137, 21.4764),(39.84125, 21.47644),(39.84102, 21.4765),(39.84071, 21.47651),(39.83664, 21.47574),(39.836, 21.4757),(39.83537, 21.47573),(39.83436, 21.47593),(39.83347, 21.47628),(39.83274, 21.47666),(39.83259, 21.47668),(39.83234, 21.47663),(39.83211, 21.47648),(39.83203, 21.4764),(39.83197, 21.47626),(39.83172, 21.47361),(39.83147, 21.47277),(39.83127, 21.4723),(39.83087, 21.47161),(39.82925, 21.46941),(39.82728, 21.4666),(39.82667, 21.46592),(39.82647, 21.46575),(39.82613, 21.46553),(39.82048, 21.46267),(39.82011, 21.46245),(39.81967, 21.46209),(39.81931, 21.46169),(39.81868, 21.46072),(39.81798, 21.45998),(39.81588, 21.45849),(39.81553, 21.45819),(39.81515, 21.45776),(39.81493, 21.45736),(39.81256, 21.45195),(39.8115, 21.45014),(39.81057, 21.44875),(39.80978, 21.44779)]
);
SELECT 'Very simplified version of previous test';
WITH
[(39.82535, 21.26649), (39.63179, 21.4366), (39.94803, 21.56766)] AS outer,
[(39.84994, 21.44025), (39.82728, 21.4666), (39.82667, 21.46592)] AS inner,
(39.840202, 21.451471) AS point
SELECT
pointInPolygon(point, inner) AS inside_inner,
pointInPolygon(point, outer, inner) AS inside_outer;
``` |
Qifang was a Chinese peer-to-peer lending online community focused on student loans.
Qifang was founded by Calvin Chin, who became its CEO. He is a Chinese American and a former ABC employee. With two friends, Qifang's operations were “basically doing a pure lending model focused on Chinese students wanting to go to school”.
Mr. Tingbin Tang, a serial entrepreneur, later on joined Qifang as COO and then CEO.
As a grown up from a small village in Hunan province of China, Tingbin understood how hard it is for a family to afford for their kids' tuition. So besides the lend to help model, he also introduced donate to help. For those college students who are able to pay back they can raise a P2P loan from Qifang; for those primary and/or middle school students who are not able to pay back, they can also raise a donation. Besides, Mr. Tang also introduced shop to help, game to help and ads to help business model to Qifang.
For personal reasons, Mr. Tang left Qifang at the early 2012.
In April 2013, Qifang ceased operations.
Background
China’s higher education sector has changed from a unified, centralized and closed system to one that allows openness and diversification. As the current undergoes decentralization and semi-privatization, there is greater inequality in educational opportunities. From 1989, China started to collect tuition and accommodation fees from its students enrolled in higher education institutions. The fees have since risen from 200RMB in 1989 to 5000RMB in 2007. Based on the figures, higher education tuition fees correspond to 37% of the average gross national income per person in China. Since 1999, average tuition fees are taking up roughly 50% of per capita GDP, compared to 20% observed in other developed countries. With the potential of tuition fees to further rise, average incomes in China may not be able to catch up.
Operations
Qifang was a P2P lending site for Chinese student loans which catered to students accepted into Chinese universities or colleges and post-graduate training programs. Qifang promoted a group lending dynamic in contrast to the conventional group borrowing associations. The company focused on helping poor students solve the problems of higher education tuition fees and full repayment and provided access to other educational financial services. Qifang’s business model shared similarities with that of Prosper Marketplace, tapping into the infant consumer lending sector of China’s developing banking infrastructure.
Under the scheme, lenders are banks, companies, non-governmental organizations, non-profit organizations, philanthropists and individuals seeking for projected investment returns in the range of 8 to 12 percent. Qifang established partnerships with schools to have access to the students’ information to verify the applications and disburse loan payments directly to the respective educational institutes. Upon application, students needed to provide personal information such as their national ID cards and had to list their school, major, grades, hometown, parents ID cards and income. Prospective lenders were recommended to invest in a portfolio of loans to reduce their risk, with the alternative of putting all their money in a single loan upon their own discretion.
References
Peer-to-peer lending companies |
Monita Chatterjee is an auditory scientist and the Director of the Auditory Prostheses & Perception Laboratory at Boys Town National Research Hospital. She investigates the basic mechanisms underlying auditory processing by cochlear implant listeners.
Biography
Chatterjee did her undergraduate studies in Electrical Engineering at Jadavpur University in Kolkata, India, graduating in 1987. After obtaining her PhD in Neuroscience from Syracuse University in 1994, she spent 10 years, from 1994 to 2004, at the House Ear Institute, first as postdoctoral researcher in the group led by Robert V. Shannon, and then as a scientist. She joined the University of Maryland, College Park, in 2005 as an assistant professor, and was promoted to associate professor in 2009. In 2012, she moved to Omaha, NE, joining the research group at Boys Town National Research Hospital. At Boys Town, Chatterjee leads the APPLab and has served as Director of the Technology Core. She is currently Program Director of the Post-Doctoral Training Grant at Boys Town, funded continuously by NIH for 41 years.
Chatterjee's work has been funded by the National Institutes of Health since 1998. She has served as a member of the Program Committee of the Association for Research in Otolaryngology. In 2017, she was elected Fellow of the Acoustical Society of America "For contributions to cochlear implant psychophysics and speech perception."
Chatterjee was a keynote speaker at the 105th convention of the Audio Engineering Society in 1998. She was also a keynote speaker at the 2017 conference of the Alliance of Cochlear Implants (CI2017). She was elected Scientific Chair of the 2013 Conference on Implantable Auditory Prostheses (CIAP). In 2018 she was an invited Translational Research Speaker at the American Auditory Society's annual meeting. She has served as Associate Editor of Ear & Hearing and American Journal of Audiology, and Frontiers in Aud. Cog. Neurosc. and is currently Associate Editor of the Journal of the Association for Research in Otolaryngology and JASA Express Letters
In 2021, Chatterjee established a network for Black, Indigenous, and other Persons of Color working in the area of Communication Sciences and Disorders at any career level. The primary objective of this grassroots network is to share resources, mentoring, and collaborative interests between members.
Research
Chatterjee has published extensively on the processing and perception of electrical signals by cochlear implant patients. These include studies of channel-interaction, amplitude modulation processing, modulation masking/modulation detection interference and voice pitch coding, an area of specific deficits in listeners with cochlear implants.
Chatterjee pioneered research on auditory scene analysis in cochlear-implant users. Until this study, the exploration of the auditory stream segregation phenomenon was limited to normal hearing listeners and hearing-impaired listeners.
Chatterjee's recent work turned to auditory, affective, and linguistic development, and has focused on deaf children with cochlear implants. The particularity of this unique population is the extraordinary neuroplasticity they exhibit during the first years of language acquisition following implantation. Chatterjee wondered to what extent their plastic brain could adapt to the relatively poor auditory inputs delivered by implants and overcome their limitations. Despite its remarkable success in restoring hearing to deaf individuals, the cochlear implant is not yet perfect in transmitting a speech signal with as much fidelity as acoustic hearing. Much of Chatterjee’s early work was concerned with those limitations in spectro-temporal resolution, exacerbated by physiological interactions in electric stimulation patterns between multiple channels of the electrode array. Those limitations should be particularly problematic for pitch perception, and she reasoned that cochlear-implanted children must find it especially challenging to recognize intonation within sentences or within words (as in the case of tonal languages) or to perceive emotion in a speaker’s voice. Those difficulties would represent a major obstacle when learning to interact with the primary caregiver, as well as peers, to communicate mood or intent, which has implications all the way to the development of theory of mind and psycho-social constructs.
References
External links
Monita Chatterjee's faculty bio at Boys Town National Research Hospital
Chatterjee Lab (APPLab) website Auditory Prostheses & Perception Laboratory
Women medical researchers
Living people
Year of birth missing (living people)
Jadavpur University alumni
Syracuse University College of Arts and Sciences alumni
University of Maryland, College Park faculty
Auditory scientists
Fellows of the Acoustical Society of America
Women scientists from West Bengal |
Natalie Cressman is an American jazz trombonist and vocalist.
Career
Cressman was born in San Francisco to jazz musicians Sandy and Jeff Cressman. When her father was part of Carlos Santana's band, she danced onstage with him at Madison Square Garden. In her early teens she began performing with Afro Cuban, Brazilian, and jazz bands. Cressman graduated from San Francisco's Ruth Asawa School of the Arts. At the age of eighteen she moved to New York City to attend the Manhattan School of Music, where she studied with Luis Bonilla, Garry Dial, Laurie Frink, and Wycliffe Gordon. She joined a band led by Trey Anastasio. She performed with Nicholas Payton's Television Symphony Orchestra and Peter Apfelbaum's New York Hieroglyphics Ensemble. In 2012 she played the Apollo Theater as a soloist in Wycliffe Gordon's Jazz a la Carte. She founded the band Secret Garden. She has appeared with the bands Dumpstaphunk and Lettuce and has been an artist at large at Bear Creek Music Festival.
References
External links
Audio interview
Interview at The Sound podcast
Date of birth missing (living people)
Year of birth missing (living people)
Living people
Jazz musicians from San Francisco
20th-century births
21st-century American musicians
21st-century American women musicians
21st-century trombonists
American trombonists
Women trombonists |
Barygenys parvula is a species of frog in the family Microhylidae. It is endemic to New Guinea and is only known from the Adelbert Mountains, an isolated coastal range on the north coast of Papua New Guinea. The specific name parvula is from
the Latin adjective meaning small, in reference to the small size of this frog.
Description
The type series consists of two adult males measuring in snout–vent length. The body is robust, with broad head, truncate shout, relatively short legs, and small eyes. The tympanum is inconspicuous. The fingers are short and unwebbed; the toes are unwebbed and have slightly expanded digital disks. The skin is somewhat warty. The dorsum is brown with indistinct markings. The ventral surfaces are finely mottled in dark and light brown.
The male advertisement call has been described as "a series of rapid, high-pitched peeps".
Habitat and conservation
Barygenys parvula inhabits primary tropical rainforest at about above sea level. It is a ground-dwelling species. It appears to adaptable and be able to survive in secondary and degraded habitats. It seems be common at the type locality. It is not considered to be significantly threatened by habitat loss, despite human settlement and forest loss, because of its adaptability.
References
parvula
Amphibians of New Guinea
Amphibians of Papua New Guinea
Endemic fauna of New Guinea
Endemic fauna of Papua New Guinea
Amphibians described in 1981
Taxa named by Richard G. Zweifel
Taxonomy articles created by Polbot |
St. Joseph's College of Commerce (SJCC) is a Bengaluru City University-affiliated college operated by the Jesuits. It is autonomous and has an independent examination and recognition system. It is situated in central Bangalore at Brigade Road.
History
The college traces its history to 1882, when the Missions Etrangeres' de Paris established St Joseph's European High School. Its operations were handed to the Jesuits in 1937 and the Department of Commerce created in 1949. In 1972 St. Joseph's College was divided, with its College of Arts and Sciences and its College of Commerce becoming independent, although both remain under the administration of the Bangalore Jesuit Educational Society. St Joseph's College of Commerce (SJCC) and St Joseph's College of Business Administration (SJCBA) moved to 163, Brigade Road, and St Joseph's Evening College became an independent college.
In 1996 SJCBA started offering two-year, full-time Postgraduate Diploma in Management (PGDM) with recognition from All India Council for Technical Education (AICTE), Govt Of India. By an order of the government Karnataka, the pre-university sections from both St Joseph's College of Arts & Science and St Joseph's College of Commerce were bifurcated to form into one junior College, St. Joseph's Pre-University College.
In 2014 SJCBA signed a MoU to cooperate with the global body of professional accountants ACCA in offering a joint BCom program.
Student life
Intercollegiate fests conducted annually:
Spiel - Sports Fest
Dhwani - Cultural Fest
Virtuoso - Business Fest For BBM Students
Chanakya - Business Fest for BCOM students
Kalarava - Kannada Language Fest
Turas - Travel & Tourism Fest featuring a myriad of events
CIPHER- Intra-college business fest
Kalotsav - Intra-college cultural fest
Animum - Short Film Fest.
Citadel - National Level Business Fest for UG students by the Erudition Club of Department of Commerce
Notable alumni
Rahul Dravid, cricket player and coach
T.V. Mohandas Pai, Chairman of Manipal Global Education
Shivil Kaushik, cricketer, Gujarat Lions
Noyonita Lodh, Miss Diva Universe 2014
Prakash Raj, actor
Ramya, actress and politician
Vinay Rajkumar, actor
Amritha Aiyer, actress
Salil Shetty, Secretary-General of Amnesty International
Devdutt Padikkal, Cricket Player
See also
List of Jesuit sites
St Joseph's Institute of Management
References
External links
SJCC official website
Colleges in Bangalore
Jesuit universities and colleges in India
Educational institutions established in 1972
Commerce colleges in India
1972 establishments in Mysore State |
Greatest Hits is the first greatest hits compilation album released by English boy band Take That.
Background
Following the departure of Robbie Williams, Take That started touring as a four-piece until the announcement of their split on 13 February 1996.
The greatest hits compilation was released by RCA Records on 25 March 1996, and contained their final single, a cover of the Bee Gees' "How Deep Is Your Love", which became their final number one hit on the UK Singles Chart before their reunion in 2005.
The album reached number one in the UK, Ireland, Germany, Spain, Austria, Italy, Denmark and the Netherlands. The compilation was re-released in 1998 and 2004. The album was the 8th best selling of 1996 in the UK, and has since been certified 4× Platinum in the UK.
The album re-entered the Irish Albums Chart after Take That performed the Irish leg of their Circus Tour on 13 June 2009, in Dublin. The album also returned on the Danish Albums Chart in 2011 at number eleven after the band's Danish leg of their Progress Live tour.
Track listings
Personnel
Gary Barlow – songwriter, vocals, producer
Howard Donald – vocals
Jason Orange – vocals
Mark Owen – vocals
Robbie Williams – vocals
Morgan Penn – artwork and design
Philip Ollerenshaw - photography
Charts
Weekly charts
Year-end charts
Decade-end charts
Certifications
Release history
References
1996 greatest hits albums
Take That albums
RCA Records compilation albums |
Vitor Hugo Franchescoli de Souza (born 20 May 1991), known as Vitor Hugo, is a Brazilian footballer who plays as a central defender for Brazilian club Bahia.
Club career
Hugo scored his first goal for Fiorentina in a Serie A match against Benevento on 11 March 2018, the only goal of the game, dedicating it to his club's recently deceased captain Davide Astori by saluting a T-shirt bearing Astori's image.
On 5 October 2020, Hugo signed a 4-year contract with Turkish club Trabzonspor.
International career
He was called up for the Brazil national team in January 2017 for a friendly against Colombia, but remained an unused substitute.
Career statistics
Honours
Palmeiras
Campeonato Brasileiro Série A: 2016
Copa do Brasil: 2015
Trabzonspor
Süper Lig: 2021–22
Turkish Super Cup: 2020, 2022
Individual
Süper Lig Defender of the Season: 2020–21
References
External links
1991 births
Living people
Footballers from São Paulo (state)
Brazilian men's footballers
Brazilian expatriate men's footballers
Men's association football defenders
Campeonato Brasileiro Série A players
Campeonato Brasileiro Série B players
Serie A players
Süper Lig players
Esporte Clube Santo André players
Sport Club do Recife players
Ituano FC players
Ceará Sporting Club players
América Futebol Clube (MG) players
Sociedade Esportiva Palmeiras players
Esporte Clube Bahia players
ACF Fiorentina players
Trabzonspor footballers
Expatriate men's footballers in Italy
Expatriate men's footballers in Turkey
Brazilian expatriate sportspeople in Italy
Brazilian expatriate sportspeople in Turkey |
This list of museums in Wisconsin encompasses museums defined for this context as institutions (including nonprofit organizations, government entities, and private businesses) that collect and care for objects of cultural, artistic, scientific, or historical interest and make their collections or related exhibits available for public viewing. Also included are non-profit and university art galleries. Museums that exist only in cyberspace (i.e., virtual museums) are not included.
Museums
Defunct museums
American UFO and Sci-Fi Museum, Wisconsin Dells
Artasia Gallery & Museum, Milwaukee
Carl's Wood Art Museum, Eagle River, Roadside America report
Chudnow Museum of Yesteryear in Milwaukee, closed December 2020, bulk of artifacts transferred to Cedarburg History Museum
Fairfield Art Center, Sturgeon Bay(Story on closure)
Fort Bon Secours, Cadott
The Hideout - Al Capone's Northwoods Retreat, Couderay
Kickapoo Indian Caverns, Wauzeka, included a Native American museum
Little Norway, Wisconsin, Blue Mounds, closed in 2012
Madison Museum of Bathroom Tissue
Museum of Norman Rockwell Art, Reedsburg, Reedsburg information about museum
Rudy Rotter's Museum of Sculpture, Manitowoc
Swarthout Museum, La Crosse, formerly operated by the La Crosse County Historical Society
Thunderbird Museum, Merrilan, Roadside America - closed report
Watson's Wild West Museum, Old west general store with American West artifacts, closed November 2018
William F. Eisner Museum of Advertising & Design, Milwaukee, closed in 2010
Regions defined
The Wisconsin Department of Natural Resources (WDNR) has defined five tourism regions of Wisconsin as follows below:
Central Sands Prairie Region
Counties in the central area: Adams, Calumet, Clark, Fond du Lac, Green Lake, Juneau, Marathon, Marquette, Menominee, Monroe, Outagamie, Portage, Shawano, Waupaca, Waushara, Winnebago, Wood
Lake Michigan Region
Counties in the eastern area along Lake Michigan, including the Door Peninsula: Brown, Door, Kenosha, Kewaunee, Manitowoc, Marinette, Marathon, Marquette, Menominee, Milwaukee, Oconto, Ozaukee, Racine, Sheboygan
Lake Superior Northwoods Region
Counties in the north central and northwest area: Ashland, Barron, Bayfield, Burnett, Douglas, Florence, Forest, Iron, Langlade, Lincoln, Oneida, Polk, Price, Rusk, Sawyer, Taylor, Vilas, Washburn
Mississippi/Chippewa Rivers Region
South central and southwest area along the Mississippi and Chippewa rivers: Buffalo, Chippewa, Crawford, Dunn, Eau Claire, Grant, Jackson, La Crosse, Pepin, Pierce, St. Croix, Trempealeau, Vernon
Southern Savanna Region
South central area: Columbia, Dane, Dodge, Green, Iowa, Jefferson, Lafayette, Richland, Rock, Sauk, Walworth, Washington, Waukesha
See also
Nature Centers in Wisconsin
Observatories in Wisconsin (category)
References
External links
Directory of Wisconsin Local Historical Organizations
Wisconsin Federation of Museums
Wisconsin Arts Board
Portal Wisconsin
Museums
Wisconsin
Museums |
"Meleğim" () is a song by French-Algerian singer Soolking featuring French singer Dadju. It was released on 7 February 2020. It was written by Dadju, Soolking and Raphaël Nyadjiko. Nyadjiko also produced the song.
Charts
Weekly charts
Year-end charts
Certifications
References
2020 singles
2020 songs
Soolking songs
Dadju songs
French-language songs |
Sagauni (Devanagari: सगौनी ) is a village in Mainpuri block of Mainpuri district, Uttar Pradesh. As of 2011, it has a population of 4,507, in 720 households.
Demographics
As of 2011, Sagauni had a population of 4,507, in 720 households. This population was 54.3% male (2,446) and 45.7% female (2,061). The 0-6 age group numbered 645 (360 male and 285 female), or 14.3% of the total population. 239 residents were members of Scheduled Castes, or 5.3% of the total.
The 1981 census recorded Sagauni as having a population of 2,967 people, in 478 households.
The 1961 census recorded Sagauni as comprising 4 hamlets, with a total population of 1,907 people (995 male and 912 female), in 369 households and 267 physical houses. The area of the village was given as 1,527 acres.
Infrastructure
As of 2011, Sagauni had 1 primary school; it did not have any healthcare facilities. Drinking water was provided by well, hand pump, and tube well; there were no public toilets. The village had a post office but no public library; there was at least some access to electricity for all purposes. Streets were made of kachcha materials.
References
Villages in Mainpuri district |
Chet Anekwe is an actor and filmmaker who was born in Nigeria and raised in New York City. His work spans Hollywood, Nollywood and the New York Theater.
Filmography
Awards and nominations
Other awards
1997 AUDELCO award nominee, Best Performance in a Musical, Male for Chap Am So (The Amistad Story)
2006 'VIV' AUDELCO Award Winner Best Ensemble for Real Black Men Don't Sit Crossed Legged on the Floor (Collage in blues)
2011 Nollywood and African Film Critics Awards (NAFCA) Winner: Best Actor in a Supporting Role – Diaspora, Paparazzi
2012 Nollywood Film Critics Award (NAFCA) Winner: Best Actor – Diaspora, Unwanted Guest
2014 Nollywood & African Film Critics' Awards (NAFCA) award nominee, Best Actor in Supporting role Diaspora Film (When One Door Closes)
See also
List of Nigerian film producers
List of Nigerian actors
List of Nigerian Americans
References
External links
Nigerian film directors
Nigerian male film actors
Nigerian screenwriters
Living people
Male actors from Lagos
Nigerian expatriate male actors in the United States
21st-century Nigerian male actors
Nigerian male stage actors
Year of birth missing (living people)
American people of Nigerian descent
People from New York (state)
Nigerian film producers |
```smalltalk
/*
This file is part of the iText (R) project.
Authors: Apryse Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at path_to_url For AGPL licensing, see below.
AGPL licensing:
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with this program. If not, see <path_to_url
*/
using System;
using iText.IO.Font.Constants;
using iText.IO.Image;
using iText.Kernel.Colors;
using iText.Kernel.Pdf;
using iText.Kernel.Pdf.Xobject;
using iText.Kernel.Utils;
using iText.Layout.Borders;
using iText.Layout.Element;
using iText.Layout.Font;
using iText.Layout.Properties;
using iText.Test;
using iText.Test.Attributes;
namespace iText.Layout {
[NUnit.Framework.Category("IntegrationTest")]
public class BlockTest : ExtendedITextTest {
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
.CurrentContext.TestDirectory) + "/resources/itext/layout/BlockTest/";
public static readonly String destinationFolder = NUnit.Framework.TestContext.CurrentContext.TestDirectory
+ "/test/itext/layout/BlockTest/";
private const String textByronNarrow = "When a man hath no freedom to fight for at home, " + "Let him combat for that of his neighbours; "
+ "Let him think of the glories of Greece and of Rome, " + "And get knocked on the head for his labours. "
+ "\n" + "To do good to Mankind is the chivalrous plan, " + "And is always as nobly requited; " + "Then battle for Freedom wherever you can, "
+ "And, if not shot or hanged, you'll get knighted.";
private const String textByron = "When a man hath no freedom to fight for at home,\n" + " Let him combat for that of his neighbours;\n"
+ "Let him think of the glories of Greece and of Rome,\n" + " And get knocked on the head for his labours.\n"
+ "\n" + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n"
+ "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted.";
[NUnit.Framework.OneTimeSetUp]
public static void BeforeClass() {
CreateOrClearDestinationFolder(destinationFolder);
}
[LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 2)]
[NUnit.Framework.Test]
public virtual void BlockWithSetHeightProperties01() {
String outFileName = destinationFolder + "blockWithSetHeightProperties01.pdf";
String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Paragraph p = new Paragraph(textByron);
for (int i = 0; i < 10; i++) {
p.Add(textByron);
}
p.SetBorder(new SolidBorder(0.5f));
doc.Add(new Paragraph("Default layout:"));
doc.Add(p);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set shorter than needed:"));
p.SetHeight(1300);
doc.Add(p);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's min height is set shorter than needed:"));
p.DeleteOwnProperty(Property.HEIGHT);
p.SetMinHeight(1300);
doc.Add(p);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's max height is set shorter than needed:"));
p.DeleteOwnProperty(Property.MIN_HEIGHT);
p.SetMaxHeight(1300);
doc.Add(p);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set bigger than needed:"));
p.DeleteOwnProperty(Property.MAX_HEIGHT);
p.SetHeight(2500);
doc.Add(p);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's min height is set bigger than needed:"));
p.DeleteOwnProperty(Property.HEIGHT);
p.SetMinHeight(2500);
doc.Add(p);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's max height is set bigger than needed:"));
p.DeleteOwnProperty(Property.MIN_HEIGHT);
p.SetMaxHeight(2500);
doc.Add(p);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 2)]
[NUnit.Framework.Test]
public virtual void BlockWithSetHeightProperties02() {
String outFileName = destinationFolder + "blockWithSetHeightProperties02.pdf";
String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties02.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Paragraph p = new Paragraph(textByron);
Div div = new Div();
div.SetBorder(new SolidBorder(ColorConstants.RED, 2));
for (int i = 0; i < 5; i++) {
div.Add(p);
}
PdfImageXObject xObject = new PdfImageXObject(ImageDataFactory.Create(sourceFolder + "Desert.jpg"));
iText.Layout.Element.Image image = new iText.Layout.Element.Image(xObject, 300);
div.Add(image);
doc.Add(new Paragraph("Default layout:"));
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Div's height is set shorter than needed:"));
div.SetHeight(1000);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Div's min height is set shorter than needed:"));
div.DeleteOwnProperty(Property.HEIGHT);
div.SetMinHeight(1000);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Div's max height is set shorter than needed:"));
div.DeleteOwnProperty(Property.MIN_HEIGHT);
div.SetMaxHeight(1000);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Div's height is set bigger than needed:"));
div.DeleteOwnProperty(Property.MAX_HEIGHT);
div.SetHeight(2500);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Div's min height is set bigger than needed:"));
div.DeleteOwnProperty(Property.HEIGHT);
div.SetMinHeight(2500);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Div's max height is set bigger than needed:"));
div.DeleteOwnProperty(Property.MIN_HEIGHT);
div.SetMaxHeight(2500);
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 3)]
[NUnit.Framework.Test]
public virtual void BlockWithSetHeightProperties03() {
//Relative height declaration tests
String outFileName = destinationFolder + "blockWithSetHeightProperties03.pdf";
String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties03.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
float parentHeight = 650;
Div d = new Div();
d.Add(new Paragraph(textByron));
d.SetBorder(new SolidBorder(0.5f));
doc.Add(new Paragraph("Default layout:"));
Div parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 80% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(80f));
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 150% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(150f));
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 10% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(10f));
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 40% of the parent and two paragraphs are added"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(40f));
parent.Add(d);
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 50% of the parent and two paragraphs are added"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
d.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(50f));
parent.Add(d);
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's min height is set to 80% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
d.SetProperty(Property.MIN_HEIGHT, UnitValue.CreatePercentValue(80f));
parent.Add(d);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's max height is set to 30% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
//Min-height trumps max-height, so we have to remove it when re-using the div
d.DeleteOwnProperty(Property.MIN_HEIGHT);
d.SetProperty(Property.MAX_HEIGHT, UnitValue.CreatePercentValue(30f));
parent.Add(d);
doc.Add(parent);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[LogMessage(iText.IO.Logs.IoLogMessageConstant.CLIP_ELEMENT, Count = 3)]
[NUnit.Framework.Test]
public virtual void BlockWithSetHeightProperties04() {
//Relative height declaration tests
String outFileName = destinationFolder + "blockWithSetHeightProperties04.pdf";
String cmpFileName = sourceFolder + "cmp_blockWithSetHeightProperties04.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
float parentHeight = 650;
Paragraph p = new Paragraph();
p.Add(new Text(textByron));
p.SetBorder(new SolidBorder(0.5f));
doc.Add(new Paragraph("Default layout:"));
Div parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 80% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(80f));
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 150% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(150f));
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 10% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(10f));
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 40% of the parent and two paragraphs are added"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(40f));
parent.Add(p);
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's height is set to 50% of the parent and two paragraphs are added"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.HEIGHT, UnitValue.CreatePercentValue(50f));
parent.Add(p);
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's min height is set to 80% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.MIN_HEIGHT, UnitValue.CreatePercentValue(80f));
parent.Add(p);
doc.Add(parent);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("Paragraph's max height is set to 30% of the parent"));
parent = new Div();
parent.SetHeight(parentHeight);
parent.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
//Min-height trumps max, so we have to remove it when re-using the paragraph
p.DeleteOwnProperty(Property.MIN_HEIGHT);
p.SetProperty(Property.MAX_HEIGHT, UnitValue.CreatePercentValue(30f));
parent.Add(p);
doc.Add(parent);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void OverflowTest01() {
// TODO DEVSIX-1373
String outFileName = destinationFolder + "overflowTest01.pdf";
String cmpFileName = sourceFolder + "cmp_overflowTest01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Paragraph explanation = new Paragraph("In this sample iText will not try to fit text in container's width, because overflow property is set. However no text is hidden."
);
doc.Add(explanation);
Paragraph p = new Paragraph(textByronNarrow);
p.SetWidth(200);
p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.HIDDEN);
Div div = new Div();
div.SetWidth(100);
div.SetBorder(new SolidBorder(ColorConstants.BLACK, 1));
div.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE);
div.Add(p);
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void OverflowTest02() {
String outFileName = destinationFolder + "overflowTest02.pdf";
String cmpFileName = sourceFolder + "cmp_overflowTest02.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Paragraph p = new Paragraph();
p.SetWidth(200);
p.SetHeight(100);
p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetBackgroundColor(ColorConstants.YELLOW);
for (int i = 0; i < 10; i++) {
p.Add(textByronNarrow);
}
p.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE);
doc.Add(p);
doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED));
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void OverflowTest03() {
String outFileName = destinationFolder + "overflowTest03.pdf";
String cmpFileName = sourceFolder + "cmp_overflowTest03.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Paragraph p = new Paragraph();
p.SetWidth(1400);
p.SetHeight(1400);
p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetBackgroundColor(ColorConstants.YELLOW);
for (int i = 0; i < 100; i++) {
p.Add(textByronNarrow);
}
p.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE);
p.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE);
doc.Add(p);
doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED));
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Ignore("DEVSIX-1375")]
[NUnit.Framework.Test]
public virtual void OverflowTest04() {
String outFileName = destinationFolder + "overflowTest04.pdf";
String cmpFileName = sourceFolder + "cmp_overflowTest04.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
iText.Layout.Element.Image image = new iText.Layout.Element.Image(ImageDataFactory.Create(sourceFolder + "Desert.jpg"
));
image.SetWidth(200);
Document doc = new Document(pdfDocument);
Paragraph p = new Paragraph();
p.SetRotationAngle(Math.PI / 2);
p.SetWidth(100);
p.SetHeight(100);
p.SetBorder(new SolidBorder(ColorConstants.BLUE, 1));
p.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE);
p.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE);
p.Add(image);
doc.Add(p);
doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED));
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Ignore("DEVSIX-1373")]
[NUnit.Framework.Test]
public virtual void OverflowTest05() {
String outFileName = destinationFolder + "overflowTest05.pdf";
String cmpFileName = sourceFolder + "cmp_overflowTest05.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
div.SetWidth(100);
div.SetHeight(150);
div.SetBackgroundColor(ColorConstants.GREEN);
div.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE);
div.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE);
List list = new List();
list.Add("Make Greeeeeeeeeetzky Great Again");
list.Add("Greeeeeeeeeetzky Great Again Make");
list.Add("Great Again Make Greeeeeeeeeetzky");
list.Add("Again Make Greeeeeeeeeetzky Great");
div.Add(list);
doc.Add(div);
doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED));
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Ignore("DEVSIX-1373")]
[NUnit.Framework.Test]
public virtual void OverflowTest06() {
String outFileName = destinationFolder + "overflowTest06.pdf";
String cmpFileName = sourceFolder + "cmp_overflowTest06.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
div.SetWidth(100);
div.SetHeight(100);
div.SetBackgroundColor(ColorConstants.GREEN);
div.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE);
div.Add(new Paragraph(textByron));
doc.Add(div);
doc.Add(new Paragraph("Hello!!!").SetBackgroundColor(ColorConstants.RED));
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BlockFillAvailableArea01() {
String outFileName = destinationFolder + "blockFillAvailableArea01.pdf";
String cmpFileName = sourceFolder + "cmp_blockFillAvailableArea01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
String textByron = "When a man hath no freedom to fight for at home,\n" + " Let him combat for that of his neighbours;\n"
+ "Let him think of the glories of Greece and of Rome,\n" + " And get knocked on the head for his labours.\n"
+ "\n" + "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n"
+ "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted."
+ "To do good to Mankind is the chivalrous plan,\n" + " And is always as nobly requited;\n" + "Then battle for Freedom wherever you can,\n"
+ " And, if not shot or hanged, you'll get knighted." + "To do good to Mankind is the chivalrous plan,\n"
+ " And is always as nobly requited;\n" + "Then battle for Freedom wherever you can,\n" + " And, if not shot or hanged, you'll get knighted.";
textByron = textByron + textByron;
Document doc = new Document(pdfDocument);
DeviceRgb blue = new DeviceRgb(80, 114, 153);
Div text = new Div().Add(new Paragraph(textByron));
Div image = new Div().Add(new iText.Layout.Element.Image(ImageDataFactory.Create(sourceFolder + "Desert.jpg"
)).SetHeight(500).SetAutoScaleWidth(true));
doc.Add(new Div().Add(new Paragraph("Fill on split").SetFontSize(30).SetFontColor(blue).SetTextAlignment(TextAlignment
.CENTER)).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetFillAvailableArea(true)).Add(new AreaBreak
());
doc.Add(new Paragraph("text").SetFontSize(18).SetFontColor(blue));
Div div = CreateDiv(text, textByron, blue, true, false, true);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("image").SetFontSize(18).SetFontColor(blue));
div = CreateDiv(image, textByron, blue, false, false, true);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Div().Add(new Paragraph("Fill always").SetFontSize(30).SetFontColor(blue).SetTextAlignment(TextAlignment
.CENTER)).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetFillAvailableArea(true)).Add(new AreaBreak
());
doc.Add(new Paragraph("text").SetFontSize(18).SetFontColor(blue));
div = CreateDiv(text, textByron, blue, true, true, false);
doc.Add(div);
doc.Add(new Paragraph("image").SetFontSize(18).SetFontColor(blue));
div = CreateDiv(image, textByron, blue, false, true, false);
doc.Add(div);
doc.Add(new Div().Add(new Paragraph("No fill").SetFontSize(30).SetFontColor(blue).SetTextAlignment(TextAlignment
.CENTER)).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetFillAvailableArea(true)).Add(new AreaBreak
());
doc.Add(new Paragraph("text").SetFontSize(18).SetFontColor(blue));
div = CreateDiv(text, textByron, blue, true, false, false);
doc.Add(div);
doc.Add(new AreaBreak());
doc.Add(new Paragraph("image").SetFontSize(18).SetFontColor(blue));
div = CreateDiv(image, textByron, blue, false, false, false);
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void MarginsBordersPaddingOverflow01() {
String outFileName = destinationFolder + "marginsBordersPaddingOverflow01.pdf";
String cmpFileName = sourceFolder + "cmp_marginsBordersPaddingOverflow01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
div.SetHeight(760).SetBackgroundColor(ColorConstants.DARK_GRAY);
doc.Add(div);
Div div1 = new Div().SetMarginTop(42).SetMarginBottom(42).SetBackgroundColor(ColorConstants.BLUE).SetHeight
(1);
doc.Add(div1);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void MarginsBordersPaddingOverflow02() {
String outFileName = destinationFolder + "marginsBordersPaddingOverflow02.pdf";
String cmpFileName = sourceFolder + "cmp_marginsBordersPaddingOverflow02.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
// TODO DEVSIX-1092 div with fixed height is bigger than 60pt
Div div = new Div();
div.SetHeight(60).SetBackgroundColor(ColorConstants.DARK_GRAY);
Div div1 = new Div().SetMarginTop(200).SetMarginBottom(200).SetBorder(new SolidBorder(6));
div.Add(div1);
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void MarginsBordersPaddingOverflow03() {
String outFileName = destinationFolder + "marginsBordersPaddingOverflow03.pdf";
String cmpFileName = sourceFolder + "cmp_marginsBordersPaddingOverflow03.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
div.SetHeight(710).SetBackgroundColor(ColorConstants.DARK_GRAY);
doc.Add(div);
// TODO DEVSIX-1092 this element is below first page visible area
Div div1 = new Div().SetMarginTop(200).SetMarginBottom(200).SetBorder(new SolidBorder(6));
doc.Add(div1);
doc.Add(new AreaBreak());
// TODO DEVSIX-1092 same with this one the second page
SolidBorder border = new SolidBorder(400);
Div div2 = new Div().SetBorderTop(border).SetBorderBottom(border);
doc.Add(div);
doc.Add(div2);
doc.Add(new AreaBreak());
// TODO DEVSIX-1092 same with this one the third page
Div div3 = new Div().SetBorder(new SolidBorder(6)).SetPaddingTop(400).SetPaddingBottom(400);
doc.Add(div);
doc.Add(div3);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BorderRadiusTest01() {
String outFileName = destinationFolder + "borderRadiusTest01.pdf";
String cmpFileName = sourceFolder + "cmp_borderRadiusTest01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
Style divStyle = new Style().SetHeight(500).SetWidth(500).SetBackgroundColor(ColorConstants.BLUE);
divStyle.SetBorderRadius(new BorderRadius(50));
// solid
div.AddStyle(divStyle);
div.SetBorderTop(new SolidBorder(ColorConstants.RED, 20)).SetBorderRight(new SolidBorder(ColorConstants.YELLOW
, 20));
doc.Add(div);
doc.Add(new AreaBreak());
// dashed
div = new Div();
div.AddStyle(divStyle);
div.SetBorderTop(new DashedBorder(ColorConstants.RED, 20)).SetBorderRight(new DashedBorder(ColorConstants.
YELLOW, 20));
doc.Add(div);
doc.Add(new AreaBreak());
// dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderTop(new DottedBorder(ColorConstants.RED, 20)).SetBorderRight(new DottedBorder(ColorConstants.
YELLOW, 20));
doc.Add(div);
doc.Add(new AreaBreak());
// round dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderTop(new RoundDotsBorder(ColorConstants.RED, 20)).SetBorderRight(new RoundDotsBorder(ColorConstants
.YELLOW, 20));
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BorderRadiusTest02() {
String outFileName = destinationFolder + "borderRadiusTest02.pdf";
String cmpFileName = sourceFolder + "cmp_borderRadiusTest02.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
// width and height > 2 * radius
Div div = new Div();
div.SetHeight(500).SetWidth(500).SetBackgroundColor(ColorConstants.GREEN).SetBorderRadius(new BorderRadius
(100));
doc.Add(div);
doc.Add(new AreaBreak());
// 2 * radius > width and height > radius
div = new Div();
div.SetHeight(150).SetWidth(150).SetBackgroundColor(ColorConstants.GREEN).SetBorderRadius(new BorderRadius
(100));
doc.Add(div);
doc.Add(new AreaBreak());
// radius > width and height
div = new Div();
div.SetHeight(50).SetWidth(50).SetBackgroundColor(ColorConstants.GREEN).SetBorderRadius(new BorderRadius(100
));
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BorderRadiusTest03() {
String outFileName = destinationFolder + "borderRadiusTest03.pdf";
String cmpFileName = sourceFolder + "cmp_borderRadiusTest03.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
Style divStyle = new Style().SetHeight(500).SetWidth(500).SetBackgroundColor(ColorConstants.GREEN);
divStyle.SetBorderRadius(new BorderRadius(200));
// solid
div.AddStyle(divStyle);
div.SetBorderLeft(new SolidBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new SolidBorder(ColorConstants
.BLACK, 100)).SetBorderTop(new SolidBorder(ColorConstants.RED, 100)).SetBorderRight(new SolidBorder(ColorConstants
.BLUE, 100));
doc.Add(div);
doc.Add(new AreaBreak());
// dashed
div = new Div();
div.AddStyle(divStyle);
div.SetBorderLeft(new DashedBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new DashedBorder(ColorConstants
.BLACK, 100)).SetBorderTop(new DashedBorder(ColorConstants.RED, 100)).SetBorderRight(new DashedBorder(
ColorConstants.BLUE, 100));
doc.Add(div);
doc.Add(new AreaBreak());
// dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderLeft(new DottedBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new DottedBorder(ColorConstants
.BLACK, 100)).SetBorderTop(new DottedBorder(ColorConstants.RED, 100)).SetBorderRight(new DottedBorder(
ColorConstants.BLUE, 100));
doc.Add(div);
doc.Add(new AreaBreak());
// round dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderLeft(new RoundDotsBorder(ColorConstants.MAGENTA, 100)).SetBorderBottom(new RoundDotsBorder(ColorConstants
.BLACK, 100)).SetBorderTop(new RoundDotsBorder(ColorConstants.RED, 100)).SetBorderRight(new RoundDotsBorder
(ColorConstants.BLUE, 100));
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BorderRadiusTest04() {
String outFileName = destinationFolder + "borderRadiusTest04.pdf";
String cmpFileName = sourceFolder + "cmp_borderRadiusTest04.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
Style divStyle = new Style().SetHeight(120).SetWidth(120).SetBackgroundColor(ColorConstants.MAGENTA);
divStyle.SetBorderRadius(new BorderRadius(90));
// solid
div.AddStyle(divStyle);
div.SetBorderBottom(new SolidBorder(ColorConstants.RED, 30)).SetBorderLeft(new SolidBorder(ColorConstants.
GREEN, 15)).SetBorderTop(new SolidBorder(ColorConstants.BLACK, 60)).SetBorderRight(new SolidBorder(ColorConstants
.BLUE, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// dashed
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new DashedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DashedBorder(ColorConstants
.GREEN, 15)).SetBorderTop(new DashedBorder(ColorConstants.BLACK, 60)).SetBorderRight(new DashedBorder(
ColorConstants.BLUE, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new DottedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DottedBorder(ColorConstants
.GREEN, 15)).SetBorderTop(new DottedBorder(ColorConstants.BLACK, 60)).SetBorderRight(new DottedBorder(
ColorConstants.BLUE, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// round dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new RoundDotsBorder(ColorConstants.RED, 30)).SetBorderLeft(new RoundDotsBorder(ColorConstants
.GREEN, 15)).SetBorderTop(new RoundDotsBorder(ColorConstants.BLACK, 60)).SetBorderRight(new RoundDotsBorder
(ColorConstants.BLUE, 150));
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BorderRadiusTest05() {
String outFileName = destinationFolder + "borderRadiusTest05.pdf";
String cmpFileName = sourceFolder + "cmp_borderRadiusTest05.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
Style divStyle = new Style().SetHeight(460).SetWidth(360).SetBackgroundColor(ColorConstants.MAGENTA);
divStyle.SetBorderRadius(new BorderRadius(100));
// solid
div.AddStyle(divStyle);
div.SetBorderBottom(new SolidBorder(ColorConstants.RED, 30)).SetBorderLeft(new SolidBorder(ColorConstants.
BLUE, 15)).SetBorderTop(new SolidBorder(ColorConstants.GREEN, 60)).SetBorderRight(new SolidBorder(ColorConstants
.YELLOW, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// dashed
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new DashedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DashedBorder(ColorConstants
.BLUE, 15)).SetBorderTop(new DashedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DashedBorder(ColorConstants
.YELLOW, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new DottedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DottedBorder(ColorConstants
.BLUE, 15)).SetBorderTop(new DottedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DottedBorder(ColorConstants
.YELLOW, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// round dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new RoundDotsBorder(ColorConstants.RED, 30)).SetBorderLeft(new RoundDotsBorder(ColorConstants
.BLUE, 15)).SetBorderTop(new RoundDotsBorder(ColorConstants.GREEN, 60)).SetBorderRight(new RoundDotsBorder
(ColorConstants.YELLOW, 150));
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void BorderRadiusTest06() {
String outFileName = destinationFolder + "borderRadiusTest06.pdf";
String cmpFileName = sourceFolder + "cmp_borderRadiusTest06.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div();
Style divStyle = new Style().SetHeight(460).SetWidth(360).SetBackgroundColor(ColorConstants.MAGENTA);
divStyle.SetBorderRadius(new BorderRadius(40, 120));
// solid
div.AddStyle(divStyle);
div.SetBorderBottom(new SolidBorder(ColorConstants.RED, 30)).SetBorderLeft(new SolidBorder(ColorConstants.
BLUE, 15)).SetBorderTop(new SolidBorder(ColorConstants.GREEN, 60)).SetBorderRight(new SolidBorder(ColorConstants
.YELLOW, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// dashed
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new DashedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DashedBorder(ColorConstants
.BLUE, 15)).SetBorderTop(new DashedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DashedBorder(ColorConstants
.YELLOW, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new DottedBorder(ColorConstants.RED, 30)).SetBorderLeft(new DottedBorder(ColorConstants
.BLUE, 15)).SetBorderTop(new DottedBorder(ColorConstants.GREEN, 60)).SetBorderRight(new DottedBorder(ColorConstants
.YELLOW, 150));
doc.Add(div);
doc.Add(new AreaBreak());
// round dotted
div = new Div();
div.AddStyle(divStyle);
div.SetBorderBottom(new RoundDotsBorder(ColorConstants.RED, 30)).SetBorderLeft(new RoundDotsBorder(ColorConstants
.BLUE, 15)).SetBorderTop(new RoundDotsBorder(ColorConstants.GREEN, 60)).SetBorderRight(new RoundDotsBorder
(ColorConstants.YELLOW, 150));
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
public virtual void HeightShouldBeIncreasedUpToSetHeightTest01() {
// TODO DEVSIX-1895 if height bigger than min-height is set,
// then the element's height should be increased up to height
String outFileName = destinationFolder + "heightShouldBeIncreasedUpToSetHeightTest01.pdf";
String cmpFileName = sourceFolder + "cmp_heightShouldBeIncreasedUpToSetHeightTest01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
Div div = new Div().SetWidth(100).SetMinHeight(100).SetHeight(200).SetBackgroundColor(ColorConstants.BLUE);
doc.Add(div);
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("DEVSIX-1897")]
public virtual void ParagraphVerticalAlignmentTest01() {
String outFileName = destinationFolder + "paragraphVerticalAlignmentTest01.pdf";
String cmpFileName = sourceFolder + "paragraphVerticalAlignmentTest01.pdf";
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName));
Document doc = new Document(pdfDocument);
FontProvider fontProvider = new FontProvider();
fontProvider.AddStandardPdfFonts();
doc.SetFontProvider(fontProvider);
String loremIpsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
doc.Add(new Paragraph(loremIpsum).SetHeight(100).SetVerticalAlignment(VerticalAlignment.MIDDLE).SetBorder(
new SolidBorder(3)).SetFontFamily(StandardFonts.TIMES_ROMAN));
doc.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, destinationFolder
, "diff"));
}
private Div CreateDiv(Div innerOverflowDiv, String text, DeviceRgb backgroundColor, bool keepTogether, bool
fillAlways, bool fillOnSplit) {
Div div = new Div().SetBorder(new DoubleBorder(10)).SetBackgroundColor(new DeviceRgb(216, 243, 255)).SetFillAvailableAreaOnSplit
(fillOnSplit).SetFillAvailableArea(fillAlways);
div.Add(new Paragraph(text));
div.Add(innerOverflowDiv.SetKeepTogether(keepTogether));
if (backgroundColor != null) {
innerOverflowDiv.SetBackgroundColor(backgroundColor);
}
return div;
}
}
}
``` |
E Bappa is a 2011 Maldivian family drama directed by Yoosuf Shafeeu. Produced by Koyya Hassan Manik under Lantern Production, the film stars Yoosuf Shafeeu, Sheela Najeeb, Amira Ismail, Fathimath Fareela, Koyya Hassan Manik and Mohamed Manik in pivotal roles. The film was released on 31 May 2011. Upon release, the film received mixed to negative reviews from critics and was considered a box office failure.
Premise
Hassan (Koyya Hassan Manik) successfully lands a job as a sailor and considering his financial insecurities, leaves his three children and wife, Atheefa (Mariyam Shakeela) to return after few years when he is financially stable.
After his departure, Atheefa prostituted herself and abandons her children. Realizing his grave mistake, Hassan divorces Atheefa and is forced to separate the children where he looked after his only daughter, Sheeza (Amira Ismail) and his friend, Adamfulhu took care of his two sons, Liyaz (Yoosuf Shafeeu) and Iyaz (Lufshan Shakeeb).
Years later, Atheefa returns to the family and starts brainwashing her children and in-laws while bad-mouthing about their father.
Atheefa and Liyaz's wife (Sheela Najeeb) conspire to throw Hassan out of the house when an accident resulted in him being handicapped.
Cast
Yoosuf Shafeeu as Liyaz
Sheela Najeeb as Sabeeaa
Amira Ismail as Sheeza
Fathimath Fareela as Mazeena
Koyya Hassan Manik as Hassan
Mohamed Manik as Yooshau
Mariyam Shakeela as Atheefa
Lufshan Shakeeb as Iyaz
Roanu Hassan Manik as Mazeena's father
Maajidha as Nadheema
Ali Shameel as Sheeza's step-father (Special appearance)
Mariyam Haleem as Mariyam (Special appearance)
Reeko Moosa Manik as Moosa (Special appearance)
Mohamed Rasheed as Adhurey (Special appearance)
Abdulla Naseer as Alibe (Special appearance)
Soundtrack
References
Maldivian drama films
2011 films
Films directed by Yoosuf Shafeeu
2011 drama films
Dhivehi-language films |
Ahmednagar district is a district in state of Maharashtra in India. There are 14 talukas (talukas) in Ahmednagar.
District Subdivisions
Ahmednagar district is divided into four district subdivisions.
List of talukas in Ahmednagar district by area
The Table below list all 14 talukas of Ahmednagar district in the Indian state of Maharashtra along with district subdivision, area, largest city and location map in the district information.
List of talukas in Ahmednagar district by population
The table below lists important geographic and demographic parameters for all 14 talukas of Ahmednagar district. Population data is extracted from the 2001 Census of India.
List of talukas in Ahmednagar district by rain fall
The Table below list all 14 talukas of Ahmednagar district in the Indian state of Maharashtra by average rain fall along with each year rainfall information from 1981 to 2004.
See also
Ahmednagar district
talukas in Pune district
References
Maharashtra-related lists |
İzzet Çelik (born 20 June 2004) is a Turkish professional footballer who plays as a winger for Adana Demirspor.
Career
A youth product of Adana Gençlerbirliği and Adana Demirspor, Çelik signed his first professional contract with Adana Demirspor on 10 September 2020. He began his senior career with the team in 2020 at the age of 16. He made his professional debut with Adana Demirspor in a 4–0 Süper Lig win over Gaziantep on 25 September 2021. On 22 January 2022, he moved to Diyarbakırspor for the second half of the 2021–22 season. He moved to Bayrampaşa on loan for the 2022–23 season.
International career
Çelik was called up to a training camp for the Turkey U17s on 18 June 2021.
Honours
Adana Demirspor
TFF First League: 2020–21
References
External links
2004 births
People from Yüreğir
Living people
Turkish men's footballers
Men's association football wingers
Adana Demirspor footballers
Bayrampaşa SK footballers
Diyarbakırspor footballers
Süper Lig players
TFF First League players
TFF Second League players
TFF Third League players |
Vellinge Airfield , also known as Vellinge-Söderslätt Airfield (), is an airport in Vellinge, Sweden, run by Söderslätts Aviation Club (). The club has about 80 members and owns one PA-28-180, one Evektor EV-97 Eurostar (Ultralight) and one Aerospool WT-9 Dynamic. The aviation club and airport was previously located at the Trelleborg/Maglarp airport located just a few hundred meters to the north, but was forced to relocate in 2003. The airport is active year-round, weather permitting, with school flights as well as a number of privately own aircraft operating from the airport.
See also
List of the largest airports in the Nordic countries
References
Söderslätts Flygklubb
Briefing
Airports in Sweden |
Adolf "Adi" Fischera (22 August 1888 – 25 August 1938) was an Austrian international footballer. At club level, he played for ASK Schwechat, Wiener AC, Wiener AF, SC Germania Schwechat, Borussia Neunkirchen and First Vienna FC. He made 15 appearances for the Austria national team, scoring eight goals.
On 26 May 1912 WAF hosted a match with Middlesex Wanderers whom they beat 5-1. Cookson scored for Middlesex and Fischera scored a hattrick for WAF, with two more goals from Engelbert König (senior) and Richard 'Little' Kohn. He also managed Borussia Neunkirchen.
He was also part of Austria's squad for the football tournament at the 1912 Summer Olympics, but he did not play in any matches.
References
External links
1888 births
1938 deaths
Men's association football forwards
Austrian men's footballers
Austria men's international footballers |
The 1932 United States Senate election in Oklahoma took place on November 8, 1932. Incumbent Democratic Senator Elmer Thomas ran for re-election to a second term. Thomas faced a crowded path to renomination, and only won the Democratic primary following a runoff election with attorney Gomer Smith. On the Republican side, oil magnate Wirt Franklin similarly won the Republican nomination in a runoff election. Thomas overwhelmingly defeated Franklin to win re-election, aided by Democratic presidential nominee Franklin D. Roosevelt's landslide win in Oklahoma over Republican President Herbert Hoover.
Democratic primary
Candidates
Elmer Thomas, incumbent U.S. Senator
Gomer Smith, attorney
R. M. McCool, Chairman of the Oklahoma Democratic Party
Albert C. Hunt, former Oklahoma Supreme Court Justice
Lee Wade, Duncan contractor
Moses E. Harris
D. O. Witmer, Cardin salesman, druggist
Results
Runoff election results
Republican primary
Candidates
Wirt Franklin, oil producer
James A. Harris, former Chairman of the Oklahoma Republican Party
Ulysses S. Stone, former U.S. Congressman from Oklahoma's 5th congressional district
R. F. Bingham
Rexford B. Cragg
Results
Runoff election results
General election
Results
References
Oklahoma
United States Senate elections in Oklahoma
1932 Oklahoma elections |
The Army Band Hannover () is a musical band unit of the German Army based in Hannover, Lower Saxony.
Description
It was established as Musikkorps II A on July 1, 1956. Its founding came at a time when military bands of East Germany and West Germany were being founded, with then-Chancellor Konrad Adenauer of West Germany placing significant importance to the founding of similar army bands during the development period of the German Heer. It later on was given the name "Army Band 1" in 1959, following its joining with the 1st Panzer Division that year. Army Band 1 published in 1967 its first official record which was called the "Great Concert of the Bundeswehr". Since then, the band has produced numerous CDs of its music, with the most one being made in January 2011. Like the Staff Band of the Bundeswehr, the band is responsible for the musical aspect of the ceremonial protocol events that take place in the federal states of Lower Saxony and North Rhine-Westphalia.
Besides serving in its area of responsibility, the Army Band Hannover also takes part in other national and international events with a professional background. These include appearances on local and national radio and television stations such as Bremen Vier and Vodafone Kabel Deutschland. The band also has had a history of taking part in military music festivals and international events such as the 1972 Summer Olympics in Munich.
Ensembles
Ceremonial Band
Corps of Drums
Concert Band
Dance Band
Woodwinds Ensemble
Brass Ensemble
Wind quartet
List of conductors
1956-1966 Major Martin Kothe
1966-1978 Lieutenant Colonel Hans Herzberg
1978-1987 Lieutenant Colonel Eberhard von Freymann
1987-1991 Lieutenant Colonel Robert Kuckertz
1991-1996 Lieutenant Colonel Martin Kötter
1996-2008 Lieutenant Colonel Friedrich Szepansky
2008-2014 Lieutenant Colonel Manfred Peter
2014-today Lieutenant Colonel Martin Wehn
References
Military units and formations established in 1956
German military bands |
Im Chang-kyun (; born January 26, 1996), known by the stage name I.M or mononymously as Changkyun, is a South Korean rapper, singer, songwriter, and producer. He is a member of the South Korean boy group Monsta X, which debuted through the Mnet's survival show No.Mercy, under Starship Entertainment in 2015. He also made his solo debut with the EP Duality in 2021.
History
His stage name I.M came up by reading the English letters I and M equated for "Im", while his English name is "Daniel", also nicknamed "Danny". The first language he learned was English and learned Korean only when he entered elementary school.
Career
Early life and debut
I.M was born in Suwon, Gyeonggi-do, South Korea and Gwangsan-gu, Gwangju as his hometown on January 26, 1996. He spent most of his early years living abroad due to his father's work as a scientist, including living in Boston, Massachusetts, where he gained fluency in English, while his father worked at Harvard University.
Between 2013 and 2014, I.M became part of the boy group Nu'bility under Special K Entertainment but never officially debuted despite holding several events and performances.
I.M was a late addition to the Mnet's survival show No.Mercy, becoming the thirteenth competitor. Despite his late addition, he was one of the seven contestants chosen to debut in Starship Entertainment's new hip-hop boy group Monsta X.
2015–2020: Monsta X and solo work
In May 2015, I.M debuted with Monsta X with their first EP Trespass, on which he has five writing credits.
In May 2016, I.M released his first mixtape through Starship Entertainment's YouTube channel, titled "Who Am I?" featuring Yeseo.
On October 20, I.M released another mixtape titled "Madeleine" with Brother Su that featured J.Han.
In July 2017, I.M released a mixtape titled "Be My Friend", alongside group member Joohoney.
In February 2018, I.M released another solo mixtape titled "Fly With Me".
In April 2019, I.M released his mixtape, with the lead single "Horizon", which was a collaboration with the American artist ELHAE. He also released the song "Scent" as the B-side of the single.
In May 2020, I.M collaborated with ELHAE again, releasing the single "Need to Know". I.M also made his first solo appearance on the talk show Talk Talk Information Brunch.
2021–present: Solo debut and other solo endeavors
In January 2021, I.M announced the solo work he had been preparing in 2020, would be released as his first solo album, with an intended release later in 2021. His first official release was announced to be an extended play titled Duality, which was released on February 19, with its lead single "God Damn". For his first EP, I.M was commended for showing a wider diversity of skill with the EP, with a noted difference in rap-style from his work in Monsta X as well as showcasing his abilities as singer-songwriter and composer. All five songs from the album charted on the weekly Billboard World Digital Song Sales chart, occupying twenty percent of the entire World Songs chart.
In July, I.M and other Monsta X members' Shownu and Hyungwon, took part in Pepsi's Taste of Korea summer campaign, releasing a promotional single "Summer Taste", alongside Rain, Brave Girls members' Yujeong and Yuna, and Ateez members' Hongjoong and Yunho.
In August, I.M was part of Baverse Studio's Welcome To My Baverse, which is a documentary where he can show his thoughts as a musician and as an idol group member.
On September 4, I.M released the single "Loop", as part of his work for Welcome To My Baverse, in which he contributed to the production and composition. On September 6, he became a new DJ for Naver Now's radio program Midnight Idol, alongside group member Kihyun.
In December, I.M appeared as one of the special judges in the Mnet's dance survival program Street Dance Girls Fighters fourth mission, along with his group members Hyungwon and Joohoney, for Monsta X's B-side song "Autobahn".
In August 2022, I.M decided not to renew his contract with Starship Entertainment but will still continue to participate in the group's future plans.
In November, I.M signed an exclusive contract with Sony Music Korea for his solo activities.
In February 2023, I.M and Joohoney had a pictorial and an interview with the fashion and lifestyle magazine Vogue Korea.
In March, I.M joined the mobile application Dear U bubble under "Bubble with Stars". He also decorated the cover of the fashion magazine 1st Look Koreas 254th issue.
On April 19, Sony Music Korea released a video containing I.M's new logo and announced the opening of his official site on May 16.
In May, I.M confirmed the release of his second extended play Overdrive on June 23, with the lead single of the same name.
On August 5 and 6, I.M held the Overdrive Showcase Tour in Seoul at Yes24 Live Hall, which sold out within 5 minutes for both days.
On September 3, I.M performed for Resffect Festival 2023, held at 88 Garden Olympic Park, Seoul.
On October 13, I.M attended the launch event of BOSS' Korea-only capsule collection pop-up store, held at Oud Cafe in Seongsu-dong, Seoul.
Artistry
Musical style and influences
As one of Monsta X's producer line, I.M made various musical attempts, contributing to broadening the musical spectrum of the group. He established the intense and powerful music color and framework unique to Monsta X, as well as presenting a variety of music, from songs with a dreamy and sensual mood to exciting songs that will enhance the atmosphere of a concert. As a solo artist, I.M incorporates various genres, such as trap, deep soul, R&B, and jazz in his releases, considered not a typical mainstream type of music and different from his usual songs produced for the group.
Upon growing up, he was influenced by his father's love for jazz, classical, and old pop music, specifically the Kenny G's saxophone albums and Norah Jones' albums, besides being particularly obsessed with Trevor Daniel's songs since their music tendencies are similar.
Public image and impact
I.M, as an individual and a member of Monsta X, showed outstanding musical growth that shined into a unique world of music. Also, his musical ability not only broke the prejudice of being an "idol", but became a musician that brings out genuine music. I.M has built his own identity through the release of various mixtapes, which showed off a different, yet original music color, and developed his skills through steady music work. In addition to music, he has also conducted exclusive interviews with famous overseas media, such as the Chicago Tribune and the BBC, with his fluent English skills, as well as playing an active role in leading the early overseas promotions of the group, becoming their practical spokesperson, as what Forbes had evaluated. He has established himself as an unprecedented artist who goes back and forth between groups and solos, while showing his outstanding musicality as an "all-round artist".
I.M dominates domestic and international charts with his solo releases, drawing hot global response, by topping the Melon, Bugs!, iTunes, Amazon, and Billboard, surpassing world-famous pop artists including Ariana Grande, Moguai, Adele, and Coldplay while occupying multiple spots on the charts which was a rare feat, one that only the biggest names in the business can muster.
Billboards 2023 International Power Player and Sony Music Korea's Managing Director Bobby Ju revealed that signing I.M with the record label had marked Sony as the first major label in Korea to sign a "360 deal" with an established K-pop star. This entitles a record label to a percentage of earnings from all of an artist's revenue streams, rather than just the recorded music sales, with the artist getting the largest share of the royalties from music releases. Billboard emphasized that Ju's inclusion was due to I.M's "global success". The replica of the jacket he used in The Connect World Tour was presented at 2023 Swarovski Crystal World's "The Art of Performance", an exhibition of art pieces with world stars including Marlene Dietrich, Marilyn Monroe, Elton John, and Lady Gaga.
I.M had been cited by DKB's Harry-June as his role model.
Other ventures
Endorsements
In June 2021, I.M became the new model for the Italian luxury fashion brand Versace's Eros Fragrance perfume through the Korean fashion, beauty, and life magazine Singles. In July, he took part in the global beverage brand Pepsi's "Taste of Korea" summer campaign, with Rain, Monsta X members' Shownu and Hyungwon, Brave Girls members' Yujeong and Yuna, and Ateez members' Hongjoong and Yunho.
Philanthropy
In January 2022, I.M donated 00,000 through the idol fandom community service My Favorite Idol, for his birthday. It will be delivered to the Miral Welfare Foundation and used as a fund for the disabled who are isolated due to COVID-19.
Production
In February 2019, I.M narrated an audiobook, Oscar Wilde's The Happy Prince, which was released through Naver's Audioclip. That same year, he narrated two more audiobooks, Edgar Allan Poe's Annabelle Lee and William Wordsworth's My Heart Leaps Up, alongside group member Shownu, which were also released through Naver's Audioclip, as well as to help the visually impaired people as the main purpose.
In September 2021, I.M was included in the production of the album cover image work and details through the Baverse Studio, as part of his work for Welcome To My Baverse.
In April 2023, I.M took the lead in the production process of his official logo, which was designed with chrome material to give it a "stylish look", where his "philosophy" and "style" are implied.
Discography
Extended plays
Singles
As lead artist
As featured artist
Promotional singles
Other charted songs
Mixtapes
Music videos
Filmography
Television shows
Radio shows
Audiobook narrator
Songwriting
Awards and nominations
See also
List of K-pop on the Billboard charts
Notes
References
External links
1996 births
Living people
Musicians from Gwangju
People from Suwon
Musicians from Gyeonggi Province
English-language singers from South Korea
Japanese-language singers of South Korea
K-pop singers
Starship Entertainment artists
South Korean hip hop record producers
South Korean male idols
South Korean male pop singers
South Korean male rappers
South Korean male singer-songwriters
South Korean singer-songwriters
Monsta X members
Weekly Idol members |
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package im.ene.toro.exoplayer;
import android.net.Uri;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.mediacodec.MediaCodecRenderer;
import com.google.android.exoplayer2.mediacodec.MediaCodecUtil;
import com.google.android.exoplayer2.source.BehindLiveWindowException;
import com.google.android.exoplayer2.source.TrackGroupArray;
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
import com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo;
import com.google.android.exoplayer2.trackselection.TrackSelectionArray;
import com.google.android.exoplayer2.trackselection.TrackSelector;
import com.google.android.exoplayer2.ui.PlayerView;
import static com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo.RENDERER_SUPPORT_UNSUPPORTED_TRACKS;
import static im.ene.toro.exoplayer.ToroExo.toro;
/**
* Making {@link Playable} extensible. This can be used with custom {@link ExoCreator}. Extending
* this class must make sure the re-usability of the implementation.
*
* @author eneim (2018/02/26).
* @since 3.4.0
*/
@SuppressWarnings("WeakerAccess")
public class ExoPlayable extends PlayableImpl {
@SuppressWarnings("unused") private static final String TAG = "ToroExo:Playable";
private EventListener listener;
// Adapt from ExoPlayer demo.
protected boolean inErrorState = false;
protected TrackGroupArray lastSeenTrackGroupArray;
/**
* Construct an instance of {@link ExoPlayable} from an {@link ExoCreator} and {@link Uri}. The
* {@link ExoCreator} is used to request {@link SimpleExoPlayer} instance, while {@link Uri}
* defines the media to play.
*
* @param creator the {@link ExoCreator} instance.
* @param uri the {@link Uri} of the media.
* @param fileExt the custom extension of the media Uri.
*/
public ExoPlayable(ExoCreator creator, Uri uri, String fileExt) {
super(creator, uri, fileExt);
}
@Override public void prepare(boolean prepareSource) {
if (listener == null) {
listener = new Listener();
super.addEventListener(listener);
}
super.prepare(prepareSource);
this.lastSeenTrackGroupArray = null;
this.inErrorState = false;
}
@Override public void setPlayerView(@Nullable PlayerView playerView) {
// This will also clear these flags
if (playerView != this.playerView) {
this.lastSeenTrackGroupArray = null;
this.inErrorState = false;
}
super.setPlayerView(playerView);
}
@Override public void reset() {
super.reset();
this.lastSeenTrackGroupArray = null;
this.inErrorState = false;
}
@Override public void release() {
if (listener != null) {
super.removeEventListener(listener);
listener = null;
}
super.release();
this.lastSeenTrackGroupArray = null;
this.inErrorState = false;
}
@SuppressWarnings({ "unused" }) //
protected void onErrorMessage(@NonNull String message) {
// Sub class can have custom reaction about the error here, including not to show this toast
// (by not calling super.onErrorMessage(message)).
if (this.errorListeners.size() > 0) {
this.errorListeners.onError(new RuntimeException(message));
} else if (playerView != null) {
Toast.makeText(playerView.getContext(), message, Toast.LENGTH_SHORT).show();
}
}
class Listener extends DefaultEventListener {
@Override
public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {
super.onTracksChanged(trackGroups, trackSelections);
if (trackGroups == lastSeenTrackGroupArray) return;
lastSeenTrackGroupArray = trackGroups;
if (!(creator instanceof DefaultExoCreator)) return;
TrackSelector selector = ((DefaultExoCreator) creator).getTrackSelector();
if (selector instanceof DefaultTrackSelector) {
MappedTrackInfo trackInfo = ((DefaultTrackSelector) selector).getCurrentMappedTrackInfo();
if (trackInfo != null) {
if (trackInfo.getTypeSupport(C.TRACK_TYPE_VIDEO) == RENDERER_SUPPORT_UNSUPPORTED_TRACKS) {
onErrorMessage(toro.getString(R.string.error_unsupported_video));
}
if (trackInfo.getTypeSupport(C.TRACK_TYPE_AUDIO) == RENDERER_SUPPORT_UNSUPPORTED_TRACKS) {
onErrorMessage(toro.getString(R.string.error_unsupported_audio));
}
}
}
}
@Override public void onPlayerError(ExoPlaybackException error) {
/// Adapt from ExoPlayer Demo
String errorString = null;
if (error.type == ExoPlaybackException.TYPE_RENDERER) {
Exception cause = error.getRendererException();
if (cause instanceof MediaCodecRenderer.DecoderInitializationException) {
// Special case for decoder initialization failures.
MediaCodecRenderer.DecoderInitializationException decoderInitializationException =
(MediaCodecRenderer.DecoderInitializationException) cause;
if (decoderInitializationException.codecInfo == null) {
if (decoderInitializationException.getCause() instanceof MediaCodecUtil.DecoderQueryException) {
errorString = toro.getString(R.string.error_querying_decoders);
} else if (decoderInitializationException.secureDecoderRequired) {
errorString = toro.getString(R.string.error_no_secure_decoder,
decoderInitializationException.mimeType);
} else {
errorString = toro.getString(R.string.error_no_decoder,
decoderInitializationException.mimeType);
}
} else {
errorString = toro.getString(R.string.error_instantiating_decoder,
decoderInitializationException.codecInfo.name);
}
}
}
if (errorString != null) onErrorMessage(errorString);
inErrorState = true;
if (isBehindLiveWindow(error)) {
ExoPlayable.super.reset();
} else {
ExoPlayable.super.updatePlaybackInfo();
}
super.onPlayerError(error);
}
@Override public void onPositionDiscontinuity(int reason) {
if (inErrorState) {
// Adapt from ExoPlayer demo.
// "This will only occur if the user has performed a seek whilst in the error state. Update
// the resume position so that if the user then retries, playback will resume from the
// position to which they seek." - ExoPlayer
ExoPlayable.super.updatePlaybackInfo();
}
super.onPositionDiscontinuity(reason);
}
}
static boolean isBehindLiveWindow(ExoPlaybackException error) {
if (error.type != ExoPlaybackException.TYPE_SOURCE) return false;
Throwable cause = error.getSourceException();
while (cause != null) {
if (cause instanceof BehindLiveWindowException) return true;
cause = cause.getCause();
}
return false;
}
}
``` |
```yaml
description: TI TLC59108 LED
compatible: "ti,tlc59108"
include: i2c-device.yaml
``` |
The 2017 American League Wild Card Game was a play-in game during Major League Baseball's (MLB) 2017 postseason that was played between the American League's (AL) two wild card teams, the New York Yankees and the Minnesota Twins. The game was televised nationally by ESPN. The game took place on October 3 at Yankee Stadium, with the Yankees winning 8–4, thus eliminating the Twins from the postseason and advancing the Yankees to the AL Division Series (ALDS), in which they defeated the Cleveland Indians, 3–2.
Background
This was Minnesota's first playoff appearance as a Wild Card team, and their first postseason appearance since the 2010 American League Division Series. After clinching their spot, the Twins named Ervin Santana as their starting pitcher. Miguel Sanó was left off of the roster because of his injured left shin. The Twins had an 85–77 record and finished in second place in the AL Central, 17 games behind the Indians.
This was New York's sixth playoff appearance as a Wild Card team, and their first postseason appearance since the 2015 American League Wild Card Game. Luis Severino started for the Yankees. With a 91–71 record, the Yankees finished in second place in the AL East, two games behind the division-winning Red Sox.
This was the fifth postseason meeting between the two clubs, with the Yankees winning all four previous series. Their most recent meeting was in the 2010 American League Division Series in which the Yankees swept the Twins in three games. This loss also extended the Twins' postseason losing streak to 13 games; ten of those games were against the Yankees.
Game results
Line score
The Twins did not waste any time getting to Severino, with Brian Dozier hitting a leadoff home run. This was followed by a walk to Jorge Polanco and another home run, this one by Eddie Rosario, to put the Twins quickly up 3–0. After allowing a single by Eduardo Escobar and a double by Max Kepler, Severino was relieved after only recording one out, marking the shortest appearance by a Yankees starting pitcher in postseason history. Chad Green relieved Severino and recorded consecutive strikeouts to end the inning. The Yankees quickly responded, however, tying the game in the bottom of the first inning on a three-run home run by Didi Gregorius as Twins starter Ervin Santana also struggled, throwing 41 pitches in the inning. Brett Gardner's home run in the next inning gave the Yankees the lead. In the top of the third, after loading the bases with one out, Green was replaced by David Robertson. Robertson induced a potential double-play ground ball from Byron Buxton, but the Yankees weren't able to get the speedy Buxton out at first, allowing the Twins to tie the game at 4.
José Berríos relieved Santana (who had thrown 64 pitches in the first two innings) to start the bottom of the third, and the Yankees quickly pounced on the right-hander. Gary Sánchez doubled to lead off the inning and later scored on an RBI single by Greg Bird to give the Yankees the lead. In the bottom of the fourth, rookie sensation Aaron Judge hit a two-run home run to extend the Yankee lead to 7–4. Tommy Kahnle relieved Robertson, who had thrown a career-high innings, all scoreless, to finish the sixth inning and threw shutout innings of his own. In the bottom of the seventh, a two-out bases-loaded walk to Aaron Hicks further extended the Yankees' lead to 8–4. Closer Aroldis Chapman pitched the ninth inning in a non-save situation for the Yankees to end the game and advance the Yankees to the ALDS.
Notes
References
External links
2017 Major League Baseball postseason schedule
American League Wild Card Game
Major League Baseball Wild Card Game
American League Wild Card Game
Minnesota Twins postseason
New York Yankees postseason
American League Wild Card Game
2010s in the Bronx |
is a train station located on the Nara Line in Uji, Kyoto Prefecture, Japan, operated by West Japan Railway Company (JR West). This station administrates all intermediate stations on the Nara Line. It has the station number "JR-D09".
Layout
Originally, there was a side platform and an island platform serving three tracks. Both these and the station building were at ground level. The station was rebuilt in 2000 with two island platforms serving four tracks and a new station building designed imitating the Phoenix Hall of Byōdō-in, a major tourist attraction in Uji.
Platforms
History
Station numbering was introduced in March 2018 with Uji being assigned station number JR-D09.
Passenger statistics
According to the Kyoto Prefecture statistical report, the average number of passengers per day is as follows.
Adjacent stations
Surrounding area
Uji City Hall
Byōdō-in
Agata Shrine
Ujigami Shrine
Uji Bridge
Uji Station (Keihan Railway Uji Line)
References
External links
Railway stations in Japan opened in 1896
Railway stations in Kyoto Prefecture
Uji, Kyoto |
Nasarawa may referred to:
Nasarawa State
Nasarawa, Nasarawa State
Nasarawa, Kano State |
The Residenz (, Residence) in central Munich is the former royal palace of the Wittelsbach monarchs of Bavaria. The Residenz is the largest city palace in Germany and is today open to visitors for its architecture, room decorations, and displays from the former royal collections.
The complex of buildings contains ten courtyards and displays 130 rooms. The three main parts are the Königsbau (near the Max-Joseph-Platz), the Alte Residenz (Old Residenz; towards the Residenzstraße) and the Festsaalbau (towards the Hofgarten). A wing of the Festsaalbau contains the Cuvilliés Theatre since the reconstruction of the Residenz after World War II. It also houses the Herkulessaal (Hercules Hall), the primary concert venue for the Bavarian Radio Symphony Orchestra.
The Byzantine Court Church of All Saints (Allerheiligen-Hofkirche) at the east side is facing the Marstall, the building for the former Court Riding School and the royal stables.
History and architecture
The first buildings at this site were erected in the year 1385 and were financed by the township of Munich as a sanction for a failed uprising against Stephen III (1375–1413) and his younger brothers. The Silver Tower (Silberturm), as the strongest bastion, was significantly situated next to the inner walls protecting the castle against the city. This sturdy new castle (Neuveste – new fortress), surrounded by wide moats and located at the very north eastern corner of the new double ring of town walls, replaced the difficult to defend Alter Hof (the Old Court) located in the middle of the town as residence of the Wittelsbach rulers. For the Dukes of the often divided country had felt the need to keep some distance from the frequently rebellious city dwellers at the one hand and for some defence against their warlike relatives at the other. As a result, they sought to build themselves a shelter impregnable and easy to leave (directly towards the glacis, without having to enter city lanes) at the same time. Around 1470, under Albert IV (1465–1508), the fortress walls and the gate in the north were built, followed by the construction of two turrets.
The gothic foundation walls and the basement vaults of the old castle including the round pillars of the so-called ballroom cellar (Ballsaalkeller) are today the oldest surviving parts of the palace. The Residenz's development over the centuries didn't only take place out of its main centre, the Neuveste, but in addition grew out of several single parts and extensions, the first of which used to be the Antiquarium. Finally, after more than four centuries of development, the giant palace had practically replaced a whole former city quarter with barracks, a monastery, houses and gardens. It assembles the styles of the late Renaissance, as well as of Baroque, Rococo and Neo-Classicism.
The Alte Residenz
With the order of William IV (1508–1550) to expand the Neuveste with the so-called Rundstubenbau and to set up the first Court Garden, began the history of the Munich Residenz as a representative palace. To the history cycle of this garden pavilion belonged once also the Battle of Issus of Albrecht Altdorfer.
Under Albert V (1550–1579) Wilhelm Egkl built next to a banqueting hall of the Neuveste (St. George Hall) an art chamber in the building of the former ducal stables, many collections in Munich originate from there. Since there was not enough space for the extensive collection of sculptures, the building for the Antiquarium was created 1568–1571. It had to be built outside the castle, as there was no place in the Neuveste.
William V (1579–1597) ordered the construction of the Witwenstock (Widow Wing) for the dowager Duchess Anna and in 1581–1586 the four wings of the Grottenhof. Friedrich Sustris was the architect. Around 1590 the construction of the Black Hall was begun to the southeast on the Antiquarium. Under direction of Sustris the Erbprinzentrakt (Prince Wing), north of the Witwenstock was added.
Maximilian I (1597–1651) commissioned what is now called the Maximilian Residenz (Maximilianische Residenz ), the west wing of the palace. Until the 19th century, it was the only publicly visible facade and it still is preserved. The portals are guarded by two lions and a statue of the Virgin Mary as patroness of Bavaria in a wall niche between the portals on the west side of the residence complex. Maximilian had rebuilt and connected the existing buildings. In addition, Maximilian I had from 1612 large parts of the south and west wings of the Neuveste with the Silver Tower demolished. Between 1611 and 1619, the wing at the large Emperor's Courtyard (Kaiserhof) was created to the north of the complex. It documents the high political claims of Maximilian.
Its large dimensions satisfied Maximilian's successors up to 18th century, who contented themselves with interior upgrading and smaller extensions such as the wing for the Grüne Galerie (1730) and the Residenz Theatre (1751).
Courtyards
Ten courtyards can be found inside the large complex: The Grotto Courtyard (Grottenhof) with the Perseus Fountain was built between 1581 and 1586 under William V (1579–1597) by Friedrich Sustris as the leading architect,
and takes its name from the grotto on the western façade of the Antiquarium.
The octagonal Brunnenhof (Fountain Courtyard) served as a place for tournaments before the large Wittelsbach Fountain was erected in the middle of the courtyard in 1610. The buildings around the Kaiserhof (Emperor's Courtyard) with the Residenz Tower as clock tower, were erected from 1612 to 1618, in the reign of Maximilian I. Both courtyards are decorated with optical illusions on the facade, the same as the facade of the Alte Residenz.
The Königsbauhof (King's Building Courtyard) replaced a garden. At its eastern side the rococo facade of the Grüne Galerie (Green Gallery) is situated, designed by François Cuvilliés the Elder in of 1731–33.
Other courtyards are the Kapellenhof (Chapel Courtyard), the large Apothekenhof (Apothecary Courtyard) behind the Festsaalbau, the Puderhöfchen (Small Powder Courtyard), the Küchenhof (Kitchen Courtyard), the Kabinettsgarten (Cabinet Garden), and then finally the Zierhöfchen (Decorative Courtyard or Comité Courtyard).
The Königsbau
Today's building is from the time of King Ludwig I of Bavaria (1825–1848), who instructed his architect Leo von Klenze to extend the palace. Between 1825 and 1835 the King's building (Königsbau) was constructed to the south in the style of the Florentine Palazzo Pitti. The building is 30 meters high.
In the Königsbau are numerous suites of rooms, including the State Apartment of Ludwig I on the first floor and the Nibelungen Halls on the ground floor. Today also the Treasury are situated in the ground floor of the Königsbau. The royal living rooms are still preserved, they served primarily for the representation and could be visited by appointment already at that time. The actual private apartments of the royal couple on the back of Königsbau have not survived due to its destruction in World War II. On the second floor were the so-called Festgemächer, which were intended for minor court festivities. The spatial sequence was divided into lounge, reception salon, dance hall, flowers hall and private rooms for the king. These rooms are still preserved but in a highly simplified form and are now home to the Bavarian Academy of Fine Arts.
From 2016 to 2018 the Yellow Staircase of Klenze was restored. Once it was the main entrance to the royal apartments in the Königsbau.
The Maximilian-Joseph Denkmal (King Maximilian-Joseph Memorial) at Max-Joseph-Platz (Maximilian-Joseph Square) stands in front of the Königsbau. It was created as a memorial for King Maximilian Joseph (1799–1825) by Christian Daniel Rauch and carried out by Johann Baptist Stiglmaier. It was only unveiled in 1835 as the king had rejected being depicted seated.
The Festsaalbau
The neo-classical 250 metre long Banqueting Hall Wing (Festsaalbau) in the north section of the Residenz was added between 1832 and 1842 by Klenze under instructions from King Ludwig I. Here were located the Large Throne Room and the royal reception halls. One of the primary concert venues for the Bavarian Radio Symphony Orchestra is the Herkulessaal (Hercules Hall), which has replaced the destroyed Large Throne Room. The Festsaalbau today houses also the Bavarian Academy of Sciences and Humanities and the Cuvilliés Theatre (Old Residenz Theatre).
The Winter Garden was commissioned by King Ludwig II of Bavaria (1864–1886) around 1870. After the king's death, the Winter Garden on the roof of the Festsaalbau of the Residenz Palace was dismantled in 1897. The reason for this was due to water leaking from the ornamental lake through the ceiling of the rooms below. Photographs and sketches still record this incredible creation which included a grotto, a Moorish kiosk, an Indian royal tent, an artificially illuminated rainbow and intermittent moonlight.
The Old Residenz Theatre
The building of the Residenz Theatre, next to the church, was constructed already under Elector Maximilian III (1745–1777) from 1751. Before World War II, it housed the Old Residenz Theatre. The decoration of the old theatre, carefully dismantled and removed, was moved into the south-eastern wing of the Festsaalbau next to the Allerheiligen-Hofkirche after the war. Here it was reopened as Cuvilliés Theatre. In 2008, the courtyard before the theatre was also redesigned and covered with a new glass roof. It was then named Comité Courtyard after the Comité Cuvilliés, an initiative that made the renovation of the theatre possible by collecting donations.
The Allerheiligen-Hofkirche
The Allerheiligen-Hofkirche (Court Church of All Saints) on the eastern side of the Residenz was commissioned in 1825 by King Ludwig I. It was inspired by the Cappella Palatina, the richly decorated Byzantine royal chapel in Palermo. As bombs destroyed all but the outer walls in 1944, its rich interior ornament was almost completely lost. The church is now used for concerts and events.
The Marstall
Facing the church, the Marstall, the building for the former Court Riding School (Hofreitschule) was erected under King Maximilian Joseph by Klenze between 1817 and 1822. The construction of the monumental portal arch, surmounted by busts of Castor and Pollux, is considered one of the most mature early works of Klenze. The extensive buildings for the royal stables no longer exist. From 1923 the Marstall housed the Marstallmuseum which was in 1941 moved into Nymphenburg Palace. Today the building serves as scenery house, workshop building and study stage of the Residenz Theatre.
Opening to public and World War II damage
Prince Regent Luitpold (1886–1912) ordered the rebuilding of the Stone Rooms for his purposes as he did not want to live in the apartments of the King. During his time, the new Treasury, designed by Julius Hofmann, was created. Today it forms the entrance to the counter area. King Ludwig III (1912–1918) occupied the palace for only a short period before the revolution of 1918. He first moved like his father, into the Stone Rooms at the Kaiserhof tract, and later into the Königsbau. Now technical upgrades such as central heating and electric lighting were made, which had the Prince Regent still rejected. In addition, the Nibelungen Halls were used by Queen Maria Theresa, to create with other women, items for Bavarian soldiers during World War I.
As early as the reign of King Ludwig I, interested citizens could by appointment (when the royal couple were not living in the Residenz) visit the Königsbau. Under Prince Regent Luitpold, it was possible to visit all the unused parts of the palace and the Old Treasury. In 1897 the first guide book for the Residenz in Munich was published. After the revolution of 1918, the Residenz became a public museum.
The palace was severely damaged by bombing during World War II. Most of its rooms were reconstructed by the 1980s. Some of the buildings, however, were rebuilt in a simplified manner. Examples of this are the facade of the Alte Residenz on Residenzstrasse or the Arcades in front of the former throne hall on the first floor of the Festsaalbau. A substantial loss was caused by the destruction of the neo-classical rooms and halls in the Festssalbau (including the Grand Throne Hall, now the Hercules Concert Hall, and the Grand Stairway), of the rich décor of the Papal Rooms including the ceiling of the Golden Hall and of the apartment of King Ludwig II (1864–1886). The frescoes of the Court Church of All Saints were also completely destroyed.
Inside the palace
Residenz Museum
The Hall of Antiquities (Antiquarium), built between 1568 and 1571 for the antique collection of Duke Albert V (1550–1579) by Wilhelm Egkl and Jacobo Strada, is the largest Renaissance hall north of the Alps. It was remodelled into a banqueting hall by Friedrich Sustris in 1586–1600. The Antiquarium housed the Ducal Library until 1581. The low hall was then covered with a barrel vault that had 17 window lunettes. The hall was adorned with paintings by Peter Candid, Antonio Ponzano, and Hans Thonauer the Elder, though some were initially designed by Sustris himself. The Court Chapel (Hofkapelle), the Emperor's Staircase (Kaisertreppe) and Imperial Hall (Kaisersaal), the Stone Rooms (Steinzimmer; 1612–1617; general design by Hans Krumpper) and the Trier Rooms (Trierzimmer); ceiling frescoes by Peter Candid) built for Elector Maximilian I are typical examples from the early 17th century.
The Baroque era is represented by the Papal Rooms (Päpstlichen Zimmer), erected under his son Elector Ferdinand Maria (1651–1679). Pope Pius VI lived here during his visit in Munich in 1782. As a result, the rooms were named after him. The extensions of Elector Maximilian II Emanuel (1679–1726), especially the Alexander room and Summer room are representative living rooms. They were altered not long after his death. The remains were destroyed during the residence fire of 1729.
The Ancestral Gallery (Ahnengallerie; 1726–1731) along with the Porcelain Cabinet (both constructed by Joseph Effner) and the Ornate Rooms (Reichen Zimmer) designed by François de Cuvilliés for Charles Albert (1726–1745) are magnificent examples of the court Rococo style. The rich decoration was executed by Johann Baptist Zimmermann, Joachim Dietrich and Wenzeslaus Miroffsky. The two-storey exterior façade of the Green Gallery (Grüne Gallerie) with its seven arched windows facing the courtyard of the Königsbau is a masterpiece of Cuvilliés. The Green Gallery, named after the wall covering made of green silk damask, was not only a ballroom, but also a gallery for paintings and mirrors. The magnificent Bedchamber (Paradeschlafzimmer) served as the place for the electoral dressing procedure. Thus all the structures erected by the court architects Joseph Effner and François de Cuvilliés served only the glorification of the House of Wittelsbach and the attainment of the imperial crown, which ultimately succeeded in 1742. In January 1745, Charles Albert died as Emperor Charles VII in the Residenz, which was thus also for a short time the imperial palace of the Holy Roman Empire. In the times of Elector Maximilian III (1745–1777) the rococo Apartments of the Prince Elector (Kurfürstenzimmer) were constructed between 1746 and 1763. Cuvilliés and Johann Baptist Gunetzrhainer were responsible for the work.
The Neo-classical epoch is represented by the Charlotte Rooms (Charlottenzimmer), the Royal Apartments and the Halls of the Battles (Schlachtensäle) in the Königsbau. The wall and ceiling paintings are by Julius Schnorr von Carolsfeld in the Nibelungensäle (Nibelungen Halls; 1827–1834). They are the first monumental representations of the Nibelungenlied Nibelungen Saga of Songs. The actual private chambers of the royal couple at the back of the Königsbau no longer survive as they were destroyed in World War II. Leo von Klenze was not only responsible for the architecture, but also designed the floors, the wall paintings and all the furniture. In the Festsaalbau were spacious halls that contained the Grand Throne Room in the centre, the Imperial halls, the ballroom and the Battle Hall in the north-eastern pavilion. These facilities were intended only for state occasions and were only accessible by a grand staircase which no longer exists. Here the most important royal ceremonies were held, surrounded by twelve colossal statues sculpted by Ferdinand von Miller, representing the main Bavarian rulers.
In addition to the rich accumulation of furniture, paintings and sculptures, today the museum contains bronze work, clocks, tapestries, porcelain and several special collections such as masterpieces of bronze art, European miniatures and liturgical vestments. The Wittelsbach dynasty porcelain collection includes items from their own Nymphenburg Porcelain Factory as well as from such famous porcelain producers such as Sèvres in France and Royal Porcelain from Berlin. The Wittelsbach East Asian collection includes over 500 pieces of porcelain and some paintings. In the Royal Silver Chambers, valuable pieces are housed. The collection of relics of the Munich Residenz come from the era of the Counter-Reformation. In the Festsaalbau bronze sculptures from the late 16th and early 17th centuries are presented, one of the richest collections of European bronze art from the Mannerism and early Baroque eras.
The Treasury
Founded by Duke Albert V the Treasury houses the jewels of the Wittelsbach dynasty. This magnificent display in the Schatzkammer (Treasury) is contained in ten halls in the eastern wing of the Königsbau. The collection is one of the most important in the world and spans 1000 years from the early Middle Ages to Neo-classicism. Royal insignia, crowns, swords, goblets, goldsmith works, rock crystal, ivory work, icons and numerous other treasures like precious tableware and toiletries are magnificently presented.
Among the exhibits are Emperor Charles the Bald's prayer-book from around
860, the altar-ciborium of Emperor Arnulf of Carinthia from around 890, the crown of the Empress Cunigunde, reliquary of the True Cross which belonged to the Emperor Henry II, a cross which belonged to Queen Gisela, all from around 1000, the Reliquary Crown of Henry II from around 1270, an English Queen's crown from around 1370 (the oldest surviving crown of England that came to the palatinate line of the house of Wittelsbach as the dowry of Blanche of England, the daughter of King Henry IV of England), the famous Statuette of St George (Munich, ca. 1599), the insignia and orders of the Bavarian monarchs, including crowns and insignia of the Emperor Charles VII (1742), the Crown of Bavaria (1807), ceremonial swords and ruby jewellery which belonged to Queen Therese. A precious set of matching dishes served the French Empress Marie Louise during her journeys. Non-European art and craftwork, including Chinese porcelain, ivories from Ceylon and captured Turkish daggers are also on display.
The coin collection
The Residenz houses the Bavarian state coin collection, the . It was found by Duke Albert V. By the accession of Elector Palatine Charles Theodore (1777–1799), the Palatine and the Electoral Bavarian collection were combined. During the Napoleonic era many monastic coin collections came into the care of the Bavarian state. Crown Prince Ludwig, later King Ludwig I, had much enthusiasm for Ancient Greek coins and spent a lot of time examining the collection. In the first three decades of the 20th century, the collection was extended to house the Renaissance coins, medals and insignia. In 1963, the current exhibition rooms were opened in the Munich Residenz. With more than 300,000 coins, medals and banknotes from the ancient world to the present time, it is one of the world's leading collections.
Hofgarten
The Hofgarten (Court Garden) is located at the northern side of the Residenz opposite to the Festsaalbau. It was laid out under King Maximilian I. In the middle of the park in French style is a circular temple built in 1615, crowned by a statue of Bavaria created in 1594 by Hubert Gerhard. The western Hofgarten arcades with the gate (Hofgartentor) were executed by Klenze. The northern wing includes the former electoral gallery building which was built by court architect Karl Albert von Lespilliez in 1780/81, today home of a theatre museum (Deutsches Theatermueum).
The remnants of some renaissance arcades in the north east of the park were integrated into the Bavarian State Chancellery in 1992. The people of Munich love to denounce it as the 'Straussoleum', named after a former state Premier who commissioned it, or even the Munich White House, in reference to the long and hard fights that prevented the state government from erecting three giant wings instead of one. These wings it was claimed would have destroyed the overall impression of the court gardens. Its middle section with the a reconstructed dome are the only surviving sections of the former Bavarian Army Museum, constructed between 1900 and 1905 and almost completely destroyed during the bombing raids of World War II. The museum is now located in the Neues Schloss (New Palace) in Ingolstadt, around 80 kilometres north of Munich.
Tourism
The Munich Residence and its museums have received more than 300,000 visitors per year, similar to the Nymphenburg Palace and ahead of Schleissheim Palace, but clearly behind the castles of King Ludwig II, especially Neuschwanstein.
Images
References
External links
Munich Residenz website
Buildings and structures in Munich
Palaces in Bavaria
Royal residences in Bavaria
Historic house museums in Germany
Renaissance architecture in Munich
Renaissance architecture in Germany
Museums in Munich
Neoclassical architecture in Munich
Tourist attractions in Munich
Registered historic buildings and monuments in Bavaria |
Pobrđani is a village in the municipality of Donji Vakuf, Bosnia and Herzegovina.
Demographics
According to the 2013 census, its population was nil, down from 53 in 1991.
References
Populated places in Donji Vakuf |
The 27th Infantry Regiment, nicknamed the "Wolfhounds", is a regiment of the United States Army established in 1901, that served in the Philippine–American War, in the Siberian Intervention after World War I, and as part of the 25th Infantry Division ("Tropic Lightning") during World War II, the Korean War, and later the Vietnam War. More recently the regiment deployed to Afghanistan for the second time, following two deployments to Iraq. The regimental march is the Wolfhound March.
First and second formations
Prior to its establishment in 1901, the Wolfhound Regiment was preceded by two US Army 27th Infantry Regiments:
27th U.S. Infantry Regiment constituted 29 January 1813; consolidated 3 July 1815 with 4 other regiments to become 6th Infantry Regiment (United States).
27th U.S. Infantry Regiment constituted 3 May 1861 as 2nd Battalion/18th Infantry Regiment (United States); redesignated 27th Infantry Regiment 21 September 1866; consolidated 10 March 1869 with 9th Infantry Regiment to form 9th Infantry Regiment (United States)
Third formation – the "Wolfhounds"
The 27th Infantry Regiment was established by act of Congress on 2 February 1901. James M. J. Sanno was assigned to command in August, and the regiment saw its first combat action in 1902 while serving as part of the American force sent to quell the Philippine Insurrection on the island of Mindanao.
By 1904–1905, the unit had returned from the Philippines and its battalions were stationed at Fort Sheridan (Chicago, Illinois) and Columbus Barracks (Columbus, Ohio). The 1st Battalion, 27th Infantry participated in field maneuvers with the mobilized Ohio National Guard in southeastern Ohio (near Athens, Ohio) alongside other regular army units including Troop L of the 4th Cavalry, in a test of the nationally reorganized state militias following the Dick Act of 1903. This unit was involved in the August 19, 1904 riot with Ohio National Guard and civil authorities that resulted in several deaths.
During the Russian Civil War, the 27th Infantry served in the American Expeditionary Force sent to Siberia in 1918. The troops embarked on the Army transports , and departing Manila on 7 August 1918 and arriving Vladivostok on 15 and 16 August. This campaign has become an integral part of the regiment's history. The tenacious pursuit tactics of the regiment won the respect of the Bolsheviks, who gave them the name "Wolfhounds." This emblem continues to serve as the symbol of the 27th Infantry Regiment. During their time in Siberia, the unit was part of the Evgenevka incident, a face-off between the Wolfhounds and the Japanese Military.
In 1920, the regiment was assigned to duty in the Philippines, and Joseph D. Leitch was assigned to command. On 1 March 1921, the 27th Infantry Regiment was assigned to the Hawaiian Division. It served in the Hawaiian Division for over twenty years until it was relieved on 26 August 1941, and assigned to the 25th Infantry Division.
Stationed in Hawaii, they were some of first to fire back at attacking Japanese war planes during Japan's attack on Pearl Harbor. The film and book by James Jones From Here to Eternity was based on some of the Wolfhound regimental life. After seeing extensive action in the Pacific theater during World War II, especially on the island of Guadalcanal during the Battle of Mount Austen, the Galloping Horse, and the Sea Horse, it fought in the last days of the New Georgia Campaign on the right flank on the advance on Munda, Solomon Islands, later during the Battle of Luzon and the ensuing occupation of Japan, the 27th Infantry Regiment earned the nickname "Gentle Wolfhounds" for their support of the Holy Family Home orphanage.
Occupation duties were cut short in July, 1950, when the 27th Infantry Regiment departed for Pusan, South Korea, to assist in holding the Pusan perimeter at the onset of the Korean War. The unit saw heavy action throughout the war, where they were considered the "fire brigade" for the 25th Infantry Division – in essence, making first combat contact with enemy forces. They saw significant fighting at Sandbag Castle. Colonel George B. Sloan, the commander of the 27th Infantry Regiment offered David Hackworth command of a new volunteer raider unit; Hackworth created the 27th Wolfhound Raiders and led them from August to November 1951. The 27th earned ten campaign streamers and three Presidential Unit Citations. Upon conclusion of hostilities in Korea, the unit returned to Schofield Barracks.
The 2nd Battalion, 27th Infantry Regiment, entered the Vietnam War in January, 1966. During their five-year stay in Vietnam, the unit earned two valorous unit citations, and proved to be one of the last 25th Infantry Division units to return home. The regiment participated in Operation Junction City and fought during the Tet Offensive and the May Offensive. The regiment finally returned to Hawaii in April, 1971.
On 10 June 1987, the 2nd Battalion was relieved from their assignment to the 25th Infantry Division, and assigned to the 7th Infantry Division at Fort Ord, California. During their tour at Fort Ord the 2nd and 3rd Battalions were deployed to Honduras in 1988 in support of "Operation Golden Pheasant" and in 1989 they were deployed to Panama in support of "Operation Just Cause." On 15 September 1993, the battalion was inactivated and relieved from assignment to the 7th Infantry Division.
The 2nd Battalion, 27th Infantry Regiment, was again activated on 31 August 1995, and this unit again carries its thirty battle streamers and twelve unit citations on its colors. The motto "Nec Aspera Terrent" translates to "Frightened by no Difficulties," more literally "Not even difficulties frighten [us, them]": nec = nor, not even; aspera (nominative neuter plural noun) = rough things, adversities, difficulties; terrent (3rd person plural present tense verb) = "they (= the difficulties) frighten", from the same root as "terror". It is often stated as "No Fear on Earth," or more colloquially "Difficulties be Damned."
The 4th Battalion, 27th Infantry Regiment, was active in the 3rd Brigade, 25th Infantry Division (L) at Schofield Barracks on the island of Oahu in Hawaii during the late 1980s and early 1990s. Assigned to 2nd Brigade was the 1st Battalion, 27th Infantry Regiment. Elements of 4th Battalion were deployed during Operation Desert Storm and served as guards for Gen. Norman Schwarzkopf during their deployment. They also participated in clearing operations in Kuwait and a security element for later peace talks.
Medal of Honor recipients
Philippine–American War Medal of Honor recipients include:
Charles G. Bickham, 1st Lieutenant, 27th IN
George C. Shaw, Brigadier General (Then 1st Lt.), 27th IN
World War II Medal of Honor recipients include:
Charles W. Davis, Captain, 2nd Battalion's executive officer, 27th IN
Raymond H. Cooley, Staff Sergeant, Company B, 27th IN
Korean War Medal of Honor recipients include:
John W. Collier, Corporal, Company C, 27th IN
Reginald B. Desiderio, Captain, Company E, 27th IN
Benito Martinez, Corporal, Company A, 27th IN
Lewis L. Millett, Captain, Company E, 27th IN
Jerome A. Sudut, Second Lieutenant, Company B, 27th IN
Vietnam War Medal of Honor recipients include:
John F. Baker, Jr., Sergeant (Then Pfc.), Company A, 2nd Battalion, 27th IN
Charles C. Fleek, Sergeant, Company C, 1st Battalion, 27th IN
Robert F. Foley, Captain, Company A, 2nd Battalion, 27th IN
Paul R. Lambers, Staff Sergeant, Company A, 2nd Battalion, 27th IN
Riley L. Pitts, Captain, Company C, 2nd Battalion, 27th IN
Regimental distinctive insignia
The 27th Infantry Regiment currently consists of two battalions; the 1/27 and 2/27. While some might believe that there are actually two separate distinctive unit insignia (DUI), one for the 1st Battalion wolfhound unit crest which has the wolfhound facing to the left and 2nd Battalion wolfhound crest has the wolfhound facing to the right on the crest, the wolfhound crests are issued in pairs. While in a Class A uniform a coordinated pair of the two different crests is worn, one on each shoulder with the motto toward the shoulder seam and the head of the wolfhound facing forward.
Charitable activities
Both battalions of the 27th Infantry have entered the 71st year of the regiment's relationship with the children and staff of the Holy Family Home Orphanage, Osaka, Japan. During Christmas 1949, Wolfhounds visited the orphanage to deliver gifts and hold a Christmas party for the children. Recognizing the needs of the children, and the then-limited capacity for self-help in postwar Japan, the regiment turned what was to have been a one-time occurrence into flow of supplies, food, building materials, and medical assistance from American soldiers and their families to the orphans. Soldiers from 1st and 2nd Battalions return to Japan every Christmas, and two children from the orphanage have visited Schofield Barracks annually since 1957. The relationship was recognized by Hollywood in 1956 when members of the regiment were profiled in the 1955 film, Three Stripes in the Sun, starring Aldo Ray.
Battalion commanders
1st Battalion
2022–present LTC Ryan M. Case
2020–2022 LTC Eric B. Alexander
2018–2020 LTC Lou Kangas
2016–2018 LTC Val Bernat
2014–2016 LTC Neal Mayo (Transition back to Light Infantry)
2012–2014 LTC Charles Bergman
2011–2012 LTC Todd Fox
2009–2011 LTC Brown
2006–2009 LTC Rich "Flip" Wilson (Strykers)
2005–2006 LTC Bryan Lee Rudacille (Transition to Strykers)
2002–2005 LTC C. Scott Leith
2000–2002 LTC Billy J. Buckner
1998–2000 LTC William B. Garrett III
1996–1998 LTC Bernard Champoux
1995–1996 LTC Kenneth R Curley
1993–1995 LTC Daniel Fey
1991–1993 LTC Paul Herbert
1989–1991 LTC Roland Carter
1985–1987 LTC David A Crittenden (Transition to Light Infantry)
1982–1985 LTC Howard Thacher Linke
1981–1982 LTC William Petersen
1979–1981 LTC Fred Peters
2nd Battalion
2022–present LTC Pete Leszczynski
2020–2022 LTC Michael C. Haith
2018–2020 LTC Matthew D. Lee
2016–2018 LTC Glen T. Helberg
2014–2016 LTC Kevin J. Williams
2012–2014 LTC Barrett M. Bernard
2010–2012 LTC Daniel Wilson
2008–2010 LTC Raul E. Gonzalez
2005–2008 LTC Drew Meyerowich
2003–2005 LTC Walter E. Piatt
2001–2003 LTC Tom Guthrie
1999–2001 LTC Lee Rudacille
1997–1999 LTC Jon Smart
1996–1997 LTC Greg Lynch
1991–1993 LTC Randy Glass
1988–1991 LTC Alan J. Rock
1986–1988 LTC Joe Trez
1984–1986 LTC Edward Chamberlain
3rd Battalion
1991–1993 LTC William R. Phillips (previously Executive Officer of 3rd Battalion and S3 and XO of 2nd Brigade, 7th Infantry Division (Light)
1989–1991 LTC Scott Hutchison
1989–1990 Col Lynwood Burney (Cold Steel) Note – Col Burney was 2nd Brigade Cdr 7th ID (Light) which consisted of 2/27, 3/27, and 5/21
1987–1989 LTC Joseph Hunt
4th Battalion (inactive)
1995–1996 LTC Greg Lynch (Battalion Reflagged from 4th Battalion to 2nd Battalion in 1996)
1993–1995 LTC William B. Caldwell IV
1991–1993 LTC Danny R. McKnight
1989–1991 LTC Michael A. Thompson
Campaign credits
Philippine Insurrection: Mindanao
World War I: Siberia 1918; Siberia 1919
World War II: Central Pacific; Guadalcanal; Northern Solomons (with arrowhead); Luzon
Korean War: UN Defensive; UN Offensive; CCF Intervention; First UN Counteroffensive; CCF Spring Offensive; UN Summer–Fall Offensive; Second Korean Winter; Korea, Summer–Fall 1952; Third Korean Winter; Korea, Summer 1953
Vietnam: Counteroffensive; Counteroffensive, Phase II; Counteroffensive, Phase III; Tet Counteroffensive; Counteroffensive, Phase IV; Counteroffensive, Phase V; Counteroffensive, Phase VI; Tet 69/Counteroffensive; Summer–Fall 1969; Winter–Spring 1970; Sanctuary Counteroffensive; Counteroffensive, Phase VII
Armed Forces Expeditions: Panama
Decorations
Presidential Unit Citation (Army) for SANGNYONG-NI
Presidential Unit Citation (Army) for TAEGU
Presidential Unit Citation (Army) for HAN RIVER
Presidential Unit Citation (Army) for 19 July 1966
Valorous Unit Award for CU CHI DISTRICT
Valorous Unit Award for SAIGON
Philippine Presidential Unit Citation for 17 OCTOBER 1944 TO 4 JULY 1945
Republic of Korea Presidential Unit Citation for MASAN-CHINJU
Republic of Korea Presidential Unit Citation for MUNSAN-NI
Republic of Korea Presidential Unit Citation for KOREA
Joint Meritorious Unit Award CJTF-7 Baghdad, Iraq 2004-2005
Meritorious Unit Award 2nd BCT, 25th Infantry Division 2004-2005
Meritorious Unit Award Operation Iraqi Freedom 2006-2007
Meritorious Unit Award Operation Iraqi Freedom 2008-2009
Valorous Unit Award Operation Enduring Freedom 2011–2012
Depictions in media
James Jones wrote From Here to Eternity and The Thin Red Line based on his experiences in Schofield Barracks, Hawaii during the Attack of Pearl Harbor and Guadalcanal during the Battle of Mount Austen, the Galloping Horse, and the Sea Horse as a member of the 27th Infantry Regiment.
The movie Three Stripes in the Sun (1955) is based on the New Yorker magazine article "The Gentle Wolfhound" by Ely Jacques Kahn, Jr.
The movie "Lord of War" has a scene where a fascist soldier depicts the 27th Infantry Regiment crest on his beret while talking to Yuri Orlov.
References
External links
1st Battalion, 27th Infantry Regiment – US Army website
Wolfhounds Website / 27th Infantry Regimental Historical Society
A 1987 U.S. Army news archive about Wolfhounds training at the Jungle Operations Training Center.
0027
Allied intervention in the Russian Civil War
Military units and formations established in 1901
Military units and formations of the United States in the Philippine–American War
Infantry regiments of the United States Army in World War II
USInfReg0027
Military units and formations of the United States Army in the Vietnam War |
Briesen () is a municipality in the district of Spree-Neiße, in Lower Lusatia, Brandenburg, Germany.
History
From 1815 to 1947, Briesen was part of the Prussian Province of Brandenburg.
After World War II, Briesen was incorporated into the State of Brandenburg from 1947 to 1952 and the Bezirk Cottbus of East Germany from 1952 to 1990. Since 1990, Briesen has been part of Brandenburg.
Demography
References
Populated places in Spree-Neiße |
```php
<?php
namespace Server;
use Gelf\Publisher;
use Monolog\Formatter\JsonFormatter;
use Monolog\Handler\GelfHandler;
use Monolog\Handler\RotatingFileHandler;
use Monolog\Handler\SyslogHandler;
use Monolog\Logger;
use Noodlehaus\Config;
use Server\Components\Backstage\BackstageHelp;
use Server\Components\Event\EventDispatcher;
use Server\Components\GrayLog\UdpTransport;
use Server\Components\log\SDJsonFormatter;
use Server\Components\Middleware\MiddlewareManager;
use Server\Components\Process\ProcessRPC;
use Server\CoreBase\ControllerFactory;
use Server\CoreBase\ILoader;
use Server\CoreBase\Loader;
use Server\CoreBase\PortManager;
use Whoops\Exception\ErrorException;
/**
* Created by PhpStorm.
* User: zhangjincheng
* Date: 16-6-28
* Time: 11:37
*/
abstract class SwooleServer extends ProcessRPC
{
/**
*
*/
const config_version = 3;
/**
*
*/
const version = "3.7.4";
/**
* server name
* @var string
*/
public $name = '';
/**
* server user
* @var string
*/
public $user = '';
/**
* worker
* @var int
*/
public $worker_num = 0;
public $task_num = 0;
/**
*
* @var int
*/
public $tickTime;
/**
*
* @var ILoader
*/
public $loader;
/**
* Emitted when worker processes stoped.
*
* @var callback
*/
public $onErrorHandel = null;
/**
* @var \swoole_server
*/
public $server;
/**
* @var Config
*/
public $config;
/**
*
* @var Logger
*/
public $log;
/**
* @var PortManager
*/
public $portManager;
/**
* @var MiddlewareManager
*/
protected $middlewareManager;
/**
* @var int
*/
public $workerId;
/**
*
* @var \swoole_table
*/
protected $uid_fd_table;
/**
* @var \swoole_table
*/
protected $fd_uid_table;
/**
* @var int
*/
protected $max_connection;
/**
* @var bool
*/
protected $allow_MonitorFlowData;
/**
* monologloghandler
*/
public function setLogHandler()
{
$this->log = new Logger($this->config->get('log.log_name', 'SD'));
switch ($this->config['log']['active']) {
case "graylog":
$this->log->setHandlers([new GelfHandler(new Publisher(new UdpTransport($this->config['log']['graylog']['ip'], $this->config['log']['graylog']['port'])),
$this->config['log']['log_level'])]);
break;
case "file":
$handel = new RotatingFileHandler(LOG_DIR . "/" . $this->name . '.log',
$this->config['log']['file']['log_max_files'],
$this->config['log']['log_level']);
$handel->setFormatter(new JsonFormatter());
$this->log->pushHandler($handel);
break;
case "syslog":
$handel = new SyslogHandler($this->config['log']['syslog']['ident']);
$handel->setFormatter(new SDJsonFormatter());
$this->log->pushHandler($handel);
break;
}
}
/**
* SwooleServer constructor.
* @throws \Noodlehaus\Exception\EmptyDirectoryException
*/
public function __construct()
{
$this->onErrorHandel = [$this, 'onErrorHandel'];
$this->setConfig();
$this->middlewareManager = new MiddlewareManager();
$this->user = $this->config->get('server.set.user', '');
$this->setLogHandler();
set_error_handler([$this, 'displayErrorHandler'], E_ALL | E_STRICT);
set_exception_handler('displayExceptionHandler');
$this->portManager = new PortManager($this->config['ports']);
if ($this->loader == null) {
$this->loader = new Loader();
}
$this->allow_MonitorFlowData = $this->config->get("allow_MonitorFlowData", false);
}
/**
*
* @throws \Noodlehaus\Exception\EmptyDirectoryException
*/
protected function setConfig()
{
$this->config = new Config(getConfigDir());
BackstageHelp::init();
}
/**
* Loader
* @param ILoader $loader
*/
protected function setLoader(ILoader $loader)
{
$this->loader = $loader;
}
/**
*
* @return mixed
*/
public function setServerSet($probuf_set)
{
$set = $this->config->get('server.set', []);
if ($probuf_set != null) {
$set = array_merge($set, $probuf_set);
}
$this->worker_num = $set['worker_num'];
$this->task_num = $set['task_worker_num'];
$set['daemonize'] = Start::getDaemonize();
$this->server->set($set);
swoole_async_set([
'socket_buffer_size' => 1024 * 1024 * 1024
]);
}
/**
*
*/
public function start()
{
if ($this->portManager->tcp_enable) {
$first_config = $this->portManager->getFirstTypePort();
$set = $this->portManager->getProbufSet($first_config['socket_port']);
if (array_key_exists('ssl_cert_file', $first_config)) {
$set['ssl_cert_file'] = $first_config['ssl_cert_file'];
}
if (array_key_exists('ssl_key_file', $first_config)) {
$set['ssl_key_file'] = $first_config['ssl_key_file'];
}
$socket_ssl = $first_config['socket_ssl'] ?? false;
if ($socket_ssl) {
$this->server = new \swoole_server($first_config['socket_name'], $first_config['socket_port'], SWOOLE_PROCESS, $first_config['socket_type'] | SWOOLE_SSL);
} else {
$this->server = new \swoole_server($first_config['socket_name'], $first_config['socket_port'], SWOOLE_PROCESS, $first_config['socket_type']);
}
$this->setServerSet($set);
$this->server->on('Start', [$this, 'onSwooleStart']);
$this->server->on('WorkerStart', [$this, 'onSwooleWorkerStart']);
$this->server->on('connect', [$this, 'onSwooleConnect']);
$this->server->on('receive', [$this, 'onSwooleReceive']);
$this->server->on('close', [$this, 'onSwooleClose']);
$this->server->on('WorkerStop', [$this, 'onSwooleWorkerStop']);
$this->server->on('Task', [$this, 'onSwooleTask']);
$this->server->on('Finish', [$this, 'onSwooleFinish']);
$this->server->on('PipeMessage', [$this, 'onSwoolePipeMessage']);
$this->server->on('WorkerError', [$this, 'onSwooleWorkerError']);
$this->server->on('ManagerStart', [$this, 'onSwooleManagerStart']);
$this->server->on('ManagerStop', [$this, 'onSwooleManagerStop']);
$this->server->on('Packet', [$this, 'onSwoolePacket']);
$this->server->on('Shutdown', [$this, 'onSwooleShutdown']);
$this->portManager->buildPort($this, $first_config['socket_port']);
$this->beforeSwooleStart();
$this->server->start();
} else {
secho("SYS", "");
exit(0);
}
}
/**
* start
*/
public function beforeSwooleStart()
{
//uid->fd
$this->createUidTable();
}
/**
* uid->fd
*/
public function createUidTable()
{
$this->max_connection = $this->config['server']['set']['max_connection'] ?? 65536;
$this->uid_fd_table = new \swoole_table($this->max_connection);
$this->uid_fd_table->column('fd', \swoole_table::TYPE_INT, 8);
$this->uid_fd_table->create();
$this->fd_uid_table = new \swoole_table($this->max_connection);
$this->fd_uid_table->column('uid', \swoole_table::TYPE_STRING, 50);
$this->fd_uid_table->create();
}
/**
* onSwooleStart
* @param $serv
*/
public function onSwooleStart($serv)
{
setTimezone();
Start::setProcessTitle(getServerName() . '-Master');
if (Start::getDebug()) {
secho("SYS", "DEBUG");
}
}
/**
* onSwooleWorkerStart
* @param $serv
* @param $workerId
*/
public function onSwooleWorkerStart($serv, $workerId)
{
setTimezone();
$this->workerId = $workerId;
//apc
if (function_exists('apc_clear_cache')) {
apc_clear_cache();
}
if (function_exists('opcache_reset')) {
opcache_reset();
}
//
$this->config = $this->config->load(getConfigDir());
if (!$serv->taskworker) {//worker
Start::setProcessTitle(getServerName() . "-Worker");
} else {
Start::setProcessTitle(getServerName() . "-Tasker");
}
}
/**
* onSwooleConnect
* @param $serv
* @param $fd
* @throws \Throwable
*/
public function onSwooleConnect($serv, $fd)
{
$this->portManager->eventConnect($fd);
}
/**
*
* @param $serv
* @param $fd
* @param $from_id
* @param $data
* @param null $server_port
* @return CoreBase\Controller|void
*/
public function onSwooleReceive($serv, $fd, $from_id, $data, $server_port = null)
{
if (!Start::$testUnity) {
$server_port = $this->getServerPort($fd);
$uid = $this->getUidFromFd($fd);
} else {
$fd = 'self';
$uid = $fd;
}
$pack = $this->portManager->getPack($server_port);
//
try {
$client_data = $pack->unPack($data);
} catch (\Throwable $e) {
$pack->errorHandle($e, $fd);
return;
}
//
if ($this->allow_MonitorFlowData) {
if (!empty($uid)) {
try {
get_instance()->pub('$SYS_CHANNEL/' . "$uid/recv", $client_data);
} catch (\Throwable $e) {
}
}
}
$middleware_names = $this->portManager->getMiddlewares($server_port);
$context = [];
$path = '';
$middlewares = $this->middlewareManager->create($middleware_names, $context, [$fd, &$client_data]);
//client_data
try {
$this->middlewareManager->before($middlewares);
$route = $this->portManager->getRoute($server_port);
try {
$client_data = $route->handleClientData($client_data);
$controller_name = $route->getControllerName();
$method_name = $this->portManager->getMethodPrefix($server_port) . $route->getMethodName();
$path = $route->getPath();
$controller_instance = ControllerFactory::getInstance()->getController($controller_name);
if ($controller_instance != null) {
$controller_instance->setContext($context);
$controller_instance->setClientData($uid, $fd, $client_data, $controller_name, $method_name, $route->getParams());
} else {
throw new \Exception('no controller');
}
} catch (\Throwable $e) {
$route->errorHandle($e, $fd);
}
} catch (\Exception $e) {
//
}
try {
$this->middlewareManager->after($middlewares, $path);
} catch (\Exception $e) {
//
}
$this->middlewareManager->destory($middlewares);
if (Start::getDebug()) {
secho("DEBUG", $context);
}
unset($context);
}
/**
* @return string
*/
abstract function getEventControllerName();
/**
* @return string
*/
abstract function getCloseMethodName();
/**
* @return string
*/
abstract function getConnectMethodName();
/**
* onSwooleClose
* @param $serv
* @param $fd
* @throws \Throwable
*/
public function onSwooleClose($serv, $fd)
{
$this->portManager->eventClose($fd);
}
/**
* onSwooleWorkerStop
* @param $serv
* @param $worker_id
*/
public function onSwooleWorkerStop($serv, $worker_id)
{
}
/**
* onSwooleShutdown
* @param $serv
*/
public function onSwooleShutdown($serv)
{
}
/**
* onSwooleTask
* @param $serv
* @param $task_id
* @param $from_id
* @param $data
* @return mixed
*/
public function onSwooleTask($serv, $task_id, $from_id, $data)
{
}
/**
* onSwooleFinish
* @param $serv
* @param $task_id
* @param $data
*/
public function onSwooleFinish($serv, $task_id, $data)
{
}
/**
* onSwoolePipeMessage
* @param $serv
* @param $from_worker_id
* @param $message
* @throws \Exception
*/
public function onSwoolePipeMessage($serv, $from_worker_id, $message)
{
switch ($message['type']) {
case SwooleMarco::PROCESS_RPC_RESULT:
EventDispatcher::getInstance()->dispatch($message['message']['token'], $message['message']['result'], true);
break;
case SwooleMarco::PROCESS_RPC:
$this->processPpcRun($message['message']);
break;
default:
if (!empty($message['func'])) {
$message['func']($message['message']);
}
}
}
/**
* onSwooleWorkerError
* @param $serv
* @param $worker_id
* @param $worker_pid
* @param $exit_code
*/
public function onSwooleWorkerError($serv, $worker_id, $worker_pid, $exit_code)
{
$data = ['worker_id' => $worker_id,
'worker_pid' => $worker_pid,
'exit_code' => $exit_code];
$log = "WORKER Error ";
$log .= json_encode($data);
$this->log->alert($log);
if ($this->onErrorHandel != null) {
sd_call_user_func($this->onErrorHandel, '', $log);
}
}
/**
* ManagerStart
* @param $serv
*/
public function onSwooleManagerStart($serv)
{
Start::setProcessTitle(getServerName() . '-Manager');
}
/**
* ManagerStop
* @param $serv
*/
public function onSwooleManagerStop($serv)
{
}
/**
* onPacket(UDP)
* @param $server
* @param string $data
* @param array $client_info
*/
public function onSwoolePacket($server, $data, $client_info)
{
}
/**
* SerevrMessageBody
* @param $type
* @param $message
* @param string $func
* @return string
*/
public function packServerMessageBody($type, $message, string $func = null)
{
$data['type'] = $type;
$data['message'] = $message;
$data['func'] = $func;
return $data;
}
/**
*
* @param $name
* @param $arguments
* @return mixed
*/
public function __call($name, $arguments)
{
return sd_call_user_func_array(array($this->server, $name), $arguments);
}
/**
* @param $error
* @param $error_string
* @param $filename
* @param $line
* @param $symbols
* @throws ErrorException
*/
public function displayErrorHandler($error, $error_string, $filename, $line, $symbols)
{
throw new ErrorException($error_string, $error, 1, $filename, $line);
}
/**
* Get socket name.
*
* @return string
*/
public function getSocketName()
{
return $this->socket_name ? lcfirst($this->socket_name . ":" . $this->port) : 'none';
}
/**
* workerId
* @return int
*/
public function getWorkerId()
{
return $this->workerId;
}
/**
* worker
* @param null $worker_id
* @return bool
*/
public function isWorker($worker_id = null)
{
if ($worker_id == null) {
$worker_id = $this->workerId;
}
return $worker_id < $this->worker_num ? true : false;
}
/**
* task
* @return bool
*/
public function isTaskWorker()
{
return $this->server->taskworker ?? false;
}
/**
*
* @param null $worker_id
* @return bool
*/
public function isUserProcess($worker_id = null)
{
//===
if ($worker_id === null) {
$worker_id = $this->workerId;
}
return $worker_id >= $this->worker_num + $this->task_num ? true : false;
}
/**
* tcpwebsocket
* @param $fd
* @param $data
* @param bool $ifPack
* @param null $topic
* @return bool
*/
public function send($fd, $data, $ifPack = false, $topic = null)
{
if (!$this->server->exist($fd)) {
return false;
}
if ($ifPack) {
$pack = $this->portManager->getPackFromFd($fd);
if ($pack != null) {
$data = $pack->pack($data, $topic);
}
}
return $this->server->send($fd, $data);
}
/**
*
* close fd
* @param $fd
*/
public function close($fd)
{
$this->server->close($fd);
}
/**
*
* @param $msg
* @param $log
*/
public function onErrorHandel($msg, $log)
{
secho("ERROR", $msg);
secho("ERROR", $log);
}
/**
* @param $fd
* @return mixed
*/
public function getFdInfo($fd)
{
$fdinfo = $this->server->connection_info($fd);
return $fdinfo;
}
/**
* @param $fd
* @return mixed
*/
public function getServerPort($fd)
{
return $this->server->connection_info($fd)['server_port'];
}
/**
*
* @param $fd
*/
public function protect($fd)
{
$this->server->protect($fd);
}
/**
* Uidfd
* @param $uid
* @return mixed
*/
public function getFdFromUid($uid)
{
return $this->uid_fd_table->get($uid, 'fd');
}
/**
* fduid
* @param $fd
* @return mixed
*/
public function getUidFromFd($fd)
{
return $this->fd_uid_table->get($fd, 'uid');
}
}
``` |
San Lorenzo Nuovo is a small town and comune in the province of Viterbo, in the Latium region of Italy. It is an agricultural center producing potatoes, olive oil, garlic, onions, cereals and grapes. A second source of revenue is tourism.
Geography
The town is located on the northern side of Lake Bolsena's crater rim. It dominates the lake basin on one side and the valley of the Acquapendente on the other side, at the crossing of the ancient Via Cassia (now state road 2) and the via Maremmana (state road 74). Neighbouring cities are Acquapendente, Bolsena, Castel Giorgio, Gradoli and Grotte di Castro.
The rock known as "Sasso della graticola" is placed to mark the border with Bolsena and Castelgiorgo. The rock bears initials S L on the side facing San Lorenzo Nuovo. San Lorenzo Nuovo is famous for the harmonious symmetry and linearity of its streets, due to Francesco Navone.
History
The old village
Originally inhabited by the Etruscans, after the Roman conquest San Lorenzo was elected municipium and prefecture. According to tradition, the inhabitants had asked for protection from the heavens during the 5th-century AD invasions of the Vandals; on the feast of Saint Apollinare, a dense fog came down and the invaders spared the town. In 771–772, refugees came here from Tiro, a small centre placed on the hill of Civita (later "Svignata"), when the original Etruscan town of Grotte di Castro was destroyed by the Lombards under king Desiderius. It was in this area, according to Roman Martyrology, that Saint Christina of Bolsena would have been martyrized.
Before 1774, the old village of San Lorenzo alle Grotte was located in the lowlands closer to Lake Bolsena than the current village. This ancient hamlet was named after the numerous surrounding caves (grotte). Due to its location along the Via Cassia, in a central position for the interests of Orvieto, Viterbo and Sovana, San Lorenzo alle Grotte had been always of strategic importance and was contended for by local noblemen and the Church. In 1113 the area was donated to the Church by Matilda of Canossa, countess of Tuscany. The same area was sacked by the Holy Roman Emperor Henry VI in 1186. The opposition of Pope Celestine III, mediated by the bishop of Sovana, to the direct interference of the bishops of Orvieto over this area is recorded in a document dated 28 June 1183.
Towards 1265, together with neighbouring lands (Grotte di Castro, Latera, Gradoli, Bisentina island), the area became part of the province of Val di Lago, ruled by the Republic of Orvieto for a short time. The next year, San Lorenzo took part in the Ghibellines expedition against Martana Island and other Guelphs centres but the next year it renewed its obedience to the Church. In 1294, San Lorenzo and other centres of Val di Lago, professed submission to Orvieto. It was the beginning of a series of disputes with Pope Boniface VIII. Orvieto, once excommunicated and placed under interdict, stopped any action contrary to the Church. This was not the intention of San Lorenzo, claiming actions against Orvieto. On 20 March 1298, Boniface VIII ordered to stop all hostilities and let Orvieto's army occupy the castle of San Lorenzo. Although returned to Orvieto's jurisdiction, the centres of Val di Lago resisted paying their tribute for three years. In 1315, San Lorenzo was involved in the fights between Orvieto and the papal legate Bernard of Cluny, being defeated at Montefiascone by Guittuccio of Bisenzio. In 1318, San Lorenzo supported with 25 infantries Orvieto against Ugolinuccio de' Neri of Montemarano. In 1354, in the presence of Gil Alvarez De Albornoz, all villages of Val di Lago confirmed their submission to Orvieto. In 1359, the Republic of Orvieto was abolished and Cardinal Albornoz brought San Lorenzo again under the jurisdiction of the papacy.
In 1527, the landsknechts, on their way to Rome, burnt San Lorenzo, Bolsena and Montefiascone. An agreement was achieved between San Lorenzo and Grotte di Castro about rights and duties of land owners residing in their respective territories.
In the early 1630s, a painting of a view of San Lorenzo was produced by the visiting Flemish painter Bartholomeus Breenbergh. Known as a pastoral landscape with a citadel, an engraving by the Swiss engravers Balthasar Anton Dunker and Robert Daudet is the inverse image of Breenbergh painting.
The new village
The new town was built in 1774. The area of San Lorenzo alle Grotte was rather unhealthy, as acknowledged by the marble frame kept in the central square of the new town. People were affected by malaria and other epidemics, and trade had ceased. Cardinal Giovanni Angelo Braschi, future Pope Pius VI, at the time when he was apostolic treasurer, after the many failures in trying to decontaminate the area, induced Pope Clement XIV to take the decision to move all homes from the hollow, unhealthy areas by the lake to a higher and more liveable place, in order to be safe from the frequent floods which hit the plains. An area was identified on a wide upland in the vicinity of the old village (in a location named Gabelletta) and next brought on mandate of the Reverend Apostolic Chamber. Initially, with a signed document dated 3 June 1772, Pope Clement XIV commissioned the work of reconstruction to architect Alessandro Dori and then to architect Francesco Navone, who designed a sort of ideal city according to urban planning canons of his time.
Once Pope, Pius VI made efforts to have the works completed and entrusted to Cardinal Guglielmo Pallotta, vice apostolic treasurer, the carrying out of the works. The original route of Via Cassia was modified, leaving the old village completely isolated. Water was brought and the village of San Lorenzo Nuovo was founded. The parish, the central square, the Governor's Palace (then Palazzo Comunale), and a few buildings housing about 300 people were in place in 1777. As a sign of gratitude, two years later the citizens created and put on view a marble frame in memory of the saviour and founder of the new town.
On 22–23 February 1798 on his way to Florence as prisoner of the French, Pius VI had the opportunity to stop by San Lorenzo Nuovo for an address to the population. On 10 August 1929, a memorial stone was placed on the house of family Pacetti, to commemorate the visit of the prisoner pope. Bands of Giuseppe Garibaldi's followers crossed into the Papal States in September 1867 and came into fights with the Papal Zouaves. On the territory of San Lorenzo Nuovo, Monte Landro was the theatre of the defeat of Garibaldi's men.
In May–June 1944, in the course of World War II, San Lorenzo Nuovo suffered aerial bombardment by Allied forces, with numerous casualties and substantial damages.
In April–May 2006, to celebrate 500 years in the line of duty a group of veteran Swiss Guards marched from Switzerland, stopping in San Lorenzo Nuovo on their way to Rome.
Main sights
Piazza Europa
Road Cassia, over the tract between Acquapendente and Bolsena, at km 124, crosses through an octagonal square, just in front of the parish church of San Lorenzo Martire. This is the centre of San Lorenzo Nuovo, Piazza Europa, a wide square regarded as an interesting example of 18th century urban planning.
The artist Francesco Navone adopted an innovative technique meant to create the plan of the new town in the style of Copenhagen Amalienborg square. A sign of the originality of Navone's project was also the uniformity of the buildings. Little differences can be noticed between the nobles' and the common people's houses, the only exception being San Lorenzo Martire, which stands out of the other buildings for its considerable height.
Collegiate church of San Lorenzo Martire
The height parish church of San Lorenzo Martire dominates Piazza Europa. Surrounded by numerous ex-voto, a crucifix is kept in its fine chapel. It is a 12th-century Byzantine statue made of polychrome wood. On 12 October 1778 it was escorted in a solemn procession from the old village to the new church. The crucifix has been venerated ever since.
Two mannerist canvases of Jacopo Zucchi, representing the Ascension and Resurrection are housed in the church. Originally constructed by Cardinal Aragona for his private chapel in Vatican, they were donated to the town by Pope Pius VI in 1777. Behind the altar, a painting by the Filippo Bracci depicts the Martyrdom of Saint Lawrence and Saint Apollinare with the Virgin Mary and child (1779). Remains of Saint Apollinare, the town's co-patron, together with the ones of Saint Lawrence and Saint Stephen, were supposedly found in ancient altar and re-entombed in the sepulcher donated by Acaste Bresciani to the new altar in 1938. The Triumph of Saint Lawrence in the apse of the church is a tempera paint composition of Testa (1940). Valuable artworks are preserved in the parish buildings. An example is the San Carlo Borromeo signed by the Italian painter Tommaso Aloysio Juvarra (1809-1875).
Church of Capuchin Fathers
The church of Capuchin Fathers, is a single nave building with three lateral chapels on each side. Corso Umberto I, ideally equivalent to the Royal street of Copenhagen, is a straight street connecting Piazza Europa to the church of Capuchin Fathers. The church was completed in 1784, and dedicated to a Capuchin friar, Saint Seraphim of Montegranaro. The interiors were finely decorated by the Sicilian Capuchin friar, painter and littérateur, Fidelis of San Biagio (1717–1801). He painted: Immaculate Conception with Saint Seraphim of Montegranaro, Saint Francis receiving stigmata, martyrdom of Saint Fidelis of Sigmaringen, ecstasy of Saint Lawrence of Brindisi, Sacred Family with Saint Felix of Cantalice, martyrdom of Saint Joseph of Leonessa. The painting representing the blessed Bernard of Corleone was lost during World War II. At present, the church is dedicated to the Assumption of Mary. Built in the early 18th century, it was part of a convent of the Capuchin Fathers until 1810, when all religious orders were suppressed by Napoleon I.
In 1997, the church housed a photo exhibition depicting the history of the Shroud of Turin.
Church of Torano
The neighbouring areas feature the noticeable church of Torano, probably built after an Etruscan temple (Tyranus ager). The Virgin Mary "Turan" was honored here, named after the Etruscan goddess Turan (ruines of an Etruscan worship area were found close to the church).
The building has a simple gabled facade in whose frieze stands the dedication: VIRGINI DEIPARAE DICATUM
("DEDICATED TO THE VIRGIN MOTHER OF GOD").
The only entrance door is flanked by two small windows, from which, even when the church is closed, visitors can take a look inside for a prayer or to leave a flower on the windowsill. In the eye of the pediment there is a stained glass window with the image of the Madonna. The rustic bell tower is made of tufa ashlars. Inside, the hall is plastered in white, the arches of the side chapels are in excellent handmade red tuff and the presbytery is decorated with floral motifs and architectural elements in faux marble. The nave is covered by a sail vault; the presbytery, instead, by a cross vault. From the polychrome stained-glass window of the oculus of the apse, where the monogram of Mary's name surmounted by a royal crown stands out, a warm and dazzling light enters on sunny days.
The church houses a Umbrian-Latin school fresco of the Virgin Mary on the throne, with the sweetest face and the blessing Christ Child naked on his mother's knees and a carnation to the right, dating back to the 15th century (likely 1475). The Holy Trinity (top part) and the holy martyrs Agata and Apolonnia are also painted in the same fresco (valuable work by an artist of the 16th century. From the tympanum, the Holy Trinity blesses the pilgrims.
Based on the memories of his Lordship Acaste Bresciani, the church is probably the remainder of an ancient Benedictine monastery. Half-size small, it was expanded in 1875 thanks to Reverend Eugenio Licca and donations and voluntary works by the population. The current face of the sacred building is mainly due to the work carried out in 1986 by the parish priest Pompeo Rossi. The Florentine terracotta floor and the buttresses supporting the vaults were made, the bell tower was consolidated, the apse walls were decorated (Ennio Luzzi, died on 30 October 1999) and a new basalt altar was consecrated with a terracotta frontal by Mario Vinci (died on 20 November 2018), depicting the Nativity of Mary.
The feast of Our Lady of Torano is celebrated on 8 September. Godmothers of the feast are the "Ladies of Torano", three 16-year-old girls who are elected every year on Ascension Day by lot.
Church of San Giovanni in Val di Lago
Near to the lake, between San Lorenzo Nuovo and Bolsena, are ruins of the church of San Giovanni in Val di Lago (destroyed by the earthquake of 30 May 1563).
The area, also known as "Civita di Grotte di Castro", was used until 1799 to host the yearly celebrations of Saint John the Baptist on 24 June. The octagonal church, dedicated to Saint John the Baptist, was rebuilt in 1563 by the architect Pietro Tartarino, an apprentice of Alberto da Sangallo. Stuccos by Ferrando Fancello are no longer present here.
Park of the Grottoes
It is known with this name (Parco delle Grotte) a vast area covering over most of the ancient settlement of San Lorenzo alle Grotte (and a small area of the commune of Grotte di Castro). The area extends northwards from the Lake Bolsena borders up towards the Vulsini volcanic caldera margin. The minimum elevation is at above sea level (lake border) and the maximum at on (Monte Landro), with a difference in level of .
The zone is characterized by the presence of several grottoes and cavities excavated in the tuff. The biggest one is of regular shape, with a length of about .
Two visit centres are meant to be located in the park: centre San Lazzaro along the Via Cassia at km 122, and centro Paese Vecchio near the ancient village.
The Park is part of the Territorial Museum of Lake Bolsena, supported by Lazio Region and Viterbo Province.
The Brigands' path
During the 19th century the area across Latium, Umbria and Tuscany marked the southern border of the Grand Duchy of Tuscany and, since 1861 the Kingdom of Italy and the States of the Church. The area included woodlands such as Selva del Lamone and Monti di Castro, with isolated caves and small rivers out of the main roads. Several brigands used to live here. One of the latest brigands of northern Latium, in action at the end of the 19th century when the area became part of the Kingdom of Italy, was Fortunato Ansuini. He was as cruel as anybody else. The most influential brigand of the zone was Domenico Tiburzi, who was called Domenichino, and was known as the King of Lamone, or the Robin Hood of Maremma. He always refused to come into alliance with Ansuini because he considered him no more than a common outlaw. Born at Norcia in 1844 from a family of farmers, Ansuini was forced by parents to work as a stonemason. He killed a man in a tavern and was sentenced to 11 years in prison in Rome. In May 1866, together with three jail-mates, he escaped through a drain. The fugitives left Rome and chose Maremma as a secure place for their furtiveness. Here, their new life had a start, made of robberies and racketeering to get weapons, bullets, and money. The gendarmes were on their traces and forced them to continuously move from one place to another, without capturing them for a long time. The soldiers could identify them with the help of a spy, and caught them while banqueting inside a cave. The outlaws surrendered soon.
In April 1890, Ansuini was locked up in the fort Filippo II to the Monte Argentario. Again, he arranged for an escape together with other captives. Breaking off the chains that were keeping them blocked, they went out through the window with the help of bed sheets. The next night the brigands stormed a shepherd house near Capalbio, tied up the shepherds and raided food, money, weapons, and bullets. The bloodthirsty brigand Damiano Menichetti was part of the group. He came soon into close alliance with Ansuini, whilst the others left them.
Several anecdotes are known about Ansuini. He liked to mock the gendarmes, leaving signed fliers in the same restaurants where he used to eat. Once he went elegantly dressed to Bassano in Teverina and entered the barracks of carabinieri in the name of a trade man on travel from Milan. On his request, he had an escort of two gendarmes, for personal protection during his journey. At the end he asked the two men to deliver a flyer to their commander. It came about that the commander expressed all his anger when he read the paper with the signature of Ansuini. The phenomenon of brigandage was close to being extinguished. Ansuini disappeared after a fight with carabinieri. Menichetti was captured after killing the brigadier Sebastiano Preta, and died in prison.
The Brigands' Path is an historical hiking trail that follows in the footsteps of some of Italy's infamous notorious figures. It is a trail that links the Tyrrhenian Sea (area of Vulci) to the Apennine mountains of central Italy. A trail is marked in the area across Onano, Grotte di Castro, Gradoli and San Lorenzo Nuovo where the adventures of Ansuini and other brigands set their stage.
Events
Sagra degli Gnocchi
Firstly introduced in the 1970s as a celebration of potato as the main local agricultural produce, the Gnocchi's Festival (in Italian, Sagra degli Gnocchi) is a typical mid-August event in San Lorenzo Nuovo. The town's main square is transformed into a large, open-air restaurant where the visitors can taste potato gnocchi, and other typical local recipes such as pigskin beans, tripe, and roasted sausages. A special atmosphere is created by liscio and rock orchestras in the context of cultural, sporting and religious (patron saint day and Assumption of Mary) events.
Sanlorenziadi
The term 'sanlorenziadi' (literally Olympic games of San Lorenzo Nuovo) refers to non-professional sporting and game competitions opposing the "yiellows" (from the colour of the contrade 'Pergolino', located eastern side from Via Cassia) to the "blues" (from the colour of the contrade 'Convento', located western side from Via Cassia). The town's central square is the main site of public games. Discontinuously taking place since the 1980s (1984, 1988, 1989, 1990, 1994, 1995), sanlorenziadi is a typical summer event. Originated from the long lasting tradition of football match Pergolino-Convento (since 2000 memorial "Antonio Cimpella"), it consists of an array of sporting competitions combined with popular games. A magnificent inaugural happening precedes the games, which attracts visitors and spectators. The summer 2007 games (21 July – 5 August), won by Pergolino, were organized by the local cultural association 'Scacciapensieri'. Sanlorenziadi edition 2008 (18 July – 3 August), jointly organized by 'Scacciapensieri' and 'Associazione Culturale Giovani Laurentini', was also won by Pergolino. As well, Pergolino won edition 2009, organized by 'Associazione Culturale Giovani Laurentini', and edition 2010. The 2011 edition was not played and was the occasion of an 'old glories' football match (won by Pergolino). Convento won the 2012 edition.
17 January, Saint Anthony the Abbot
Yearly celebration of Sant'Anthony the Abbot is a typical farming feast, characterized by blessing of the animals, distribution of faba bean soup, show of chariots and animals, and snack with anchovies, Saint Anthony "biscuit" and wine.
24 June, Saint John Baptist
The fair of Saint John is a popular event whose origin dates back to 1563, when allegedly St. John the Baptist appeared in front of a farmer requesting to rebuild a church on the spot where ruins of an earlier church had stood. The population met the request and the above-mentioned church of San Giovanni in Val di Lago, San Lorenzo Nuovo, a ruin now, was built. This yearly fair commemorating this event goes on the entire day of 24 June all around the central square. The 2020 edition was particular in that the need to comply with anti-covid regulations made it appropriate to identify a different location than usual: the location of Vignolo was considered the most suitable for size, logistics and landscape and 1624 entrance tickets were issued. Until the 19th century, the same fair had been having place near lake Bolsena, in the area of the church of San Giovanni in Val di Lago.
10–11 August, Saint Lawrence Martyr
San Lorenzo Nuovo was named after the patron Saint Lawrence, martyr. Every year, on 10 August a solemn procession marks the highlight of the occasion according to a longstanding tradition. Moving from the parochial church, the procession carries the statue of the Saint through the village streets. The next day, a traditional fair takes place.
15 August, Assumption of the Virgin Mary
The Assumption of Mary is celebrated every year by a procession in which the statue of Mary is carried from the church of Capuchin Fathers in the neighbour streets.
8 September, Virgin Mary "Turan"
"Madonna di Torano" is celebrated every year according to a secular tradition. On 8 September, the so-called "Ladies of Turan" protagonize the event. They are three 16-year-old girls selected as godmothers of the feast. In the morning, they use to take off until they reach the rural church of Turan (about 1.5 km away from the centre). In the afternoon, convivial events take place in the area of the church.
14 September, Exaltation of the Holy Cross
According to an ancient popular tradition, the wooden crucifix dating back to the 12th century and housed in the parochial church is object of deep veneration. Every year a religious procession is celebrated on 14 September (feast of the Very Holy Cross), but it is only every 15 years (probably since 1787) that a solemn procession takes place on the same day carrying the cross through the village streets finely decked for the occasion. This procession, celebrated in memory of the transfer of the statue from the old village to the parochial church of the new municipium (12 October 1778), is joined by the people, the representatives of the local authorities, the local band, the SS. Crocifisso Brotherhood, the flag-wavers with a parade of the historical cortege. An array of events, collectively known as "Festone" (Big Feast), span over the summer months with traditional feasts and other forms of merriment. The Festone was lastly celebrated in 2012. In 2000, on the occasion of the Great Jubilee, both civil and religious authorities took the decision for an exceptional procession, out of the habitual festivities.
Famous citizens
Lorenzo Cozza, friar Minor, cardinal and theologian
Acaste Bresciani, Roman Catholic priest and author
See also
Fanum Voltumnae
Gianni Bellocchi
Leonardo Ambrosini {30 June 1974 – 23 February 2008}
Edith Fischhof Gilboa {Israeli writer interned in San Lorenzo Nuovo during World War II}
References
Amministrazione Comunale, Associazione Pro Loco, Festone 1997, XXa Sagra degli Gnocchi, 1997.
Comunità Montana Alta Tuscia Laziale, Il sentiero dei briganti, guida 2006.
Munari Mario, San Lorenzo Nuovo – Storia della fondazione 1737–1774, Grotte di Castro, 1975.
Richter Ulf – Monte Luana, Il Fanum Voltumnae: misterioso "cuore" dell'antica Etruria. Antikitera.net.
Roethlisberger Marcel, Bartholomaeus Breenbergh (1600–1659). The Paintings, Berlin, 1981.
Scuola Media Statale San Lorenzo Nuovo, San Lorenzo ricorda. 1945–1995, 50 anni dalla fine della guerra, 1995.
External links
Official website
Comuni Italiani website
Tourism page
Lake Bolsena
Mountain Community "Alta Tuscia Laziale"
Tusciaweb
International Association Via Francigena
Associazione Culturale Giovani Laurentini
Facebook | San Lorenzo Nuovo
Facebook | San Lorenzo Nuovo Youth Committee for Marco Bottarini
Viterbo |
Twilight Investigation () is a 2010 TVB modern drama series.
Synopsis
Former police officer Yip Kwok Cheung (Bill Chan) has set up a private detective agency. Members of the team have their own strengths. Gei On Gui (Wong Hei) (known best as Encore) is the most important member who specializes in careful thought and sharp deconstruction of dialysis. The team has solved many cases of crime.
Because of investigating an adultery case, Encore is acquainted with the pseudo model, Chung Yee Tak (Linda Chung) (also known as Dak Chai). Yee Tak was born in an incomplete family, and is withdrawn. This makes her frustrated in both love and work. After breaking up with her boyfriend, she becomes drunk and is a victim of a car accident she causes, and dies. Unknown to herself that she is dead, she tries to find her separated mother so she finds Encore to help her. Encore sympathizes with Yee Tak and tries his best to find Yee Tak's mother, but during the investigation, he discovers a secret about Yee Tak's mother that even Yee tak doesn't know......
Cast
Wui Chun Investigation Company
Police
Gei's family
Chung's family
Cases
A Jewellery Businessman's Affair (Chapter 1)
Rich businessman love murders (Chapter 2 - 6)
Mystery of Yau Sam-mei's Identity (Chapter 7 - 9)
Mystery of the Studio Ghost (Chapter 10 - 12)
Lee Kwok-pang Murder (Chapter 12 - 16)
Hotel Arson and Brick Attack Cases (Chapter 2 - 4, 17 - 20)
Others
Awards and nominations
2011 TVB Anniversary Awards
Nominated: Best Drama
My Astor On Demand Favourites Awards 2011
Won: My Favourite Supporting Actor (Raymond Wong)
Viewership ratings
References
External links
TVB.com Twilight Investigation - Official Website
TVB dramas
2010 Hong Kong television series debuts
2010 Hong Kong television series endings |
Giuseppe Fatigati (20 September 1906 – 9 September 1975) was an Italian film editor, producer and director.
Life and career
Born in Terracina, Latina, Fatigati started his career as a film editor in the early 1930s, and with this role he often collaborated to films directed by Mario Camerini, Gennaro Righelli and Guido Brignone. Besides serving as assistant director in several films he edited, Fatigati also had a limited activity as a film director, being better known for the musical comedy Voglio bene soltanto a te, starring Beniamino Gigli. Starting from the second half of the 1940s he focused into producing, and he financed some films directed by Luigi Comencini, Riccardo Freda, Goffredo Alessandrini and Guido Brignone, among others. His last works were the productions of two films directed by Mario Imperoli and starring Gloria Guida, Monika and Blue Jeans.
Selected filmography
Figaro and His Great Day (1931)
The Devil's Lantern (1931)
The Last Adventure (1932)
The Wedding March (1934)
Marcella (1937)
They've Kidnapped a Man (1938)
For Men Only (1938)
The Castle Ball (1939)
Kean (1940)
Laugh, Pagliacci (1943)
Buried Alive (1949)
References
External links
1906 births
1975 deaths
Italian film directors
20th-century Italian screenwriters
People from Terracina
Italian film editors
Italian film producers
Italian male screenwriters
20th-century Italian male writers |
```java
package com.yahoo.vespa.indexinglanguage;
import com.yahoo.document.DataType;
import com.yahoo.document.Document;
import com.yahoo.document.DocumentUpdate;
import com.yahoo.document.Field;
import com.yahoo.document.FieldPath;
import com.yahoo.document.datatypes.Array;
import com.yahoo.document.datatypes.FieldValue;
import com.yahoo.document.datatypes.IntegerFieldValue;
import com.yahoo.document.datatypes.MapFieldValue;
import com.yahoo.document.datatypes.StringFieldValue;
import com.yahoo.document.datatypes.StructuredFieldValue;
import com.yahoo.document.datatypes.WeightedSet;
import com.yahoo.document.update.AddValueUpdate;
import com.yahoo.document.update.ArithmeticValueUpdate;
import com.yahoo.document.update.AssignValueUpdate;
import com.yahoo.document.update.ClearValueUpdate;
import com.yahoo.document.update.FieldUpdate;
import com.yahoo.document.update.MapValueUpdate;
import com.yahoo.document.update.RemoveValueUpdate;
import com.yahoo.document.update.TensorAddUpdate;
import com.yahoo.document.update.TensorModifyUpdate;
import com.yahoo.document.update.TensorRemoveUpdate;
import com.yahoo.document.update.ValueUpdate;
import com.yahoo.vespa.indexinglanguage.expressions.Expression;
import com.yahoo.vespa.indexinglanguage.expressions.FieldValueAdapter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* @author Simon Thoresen Hult
*/
@SuppressWarnings("rawtypes")
public class FieldUpdateAdapter implements UpdateAdapter {
private final DocumentAdapter adapter;
private final Builder builder;
private final Expression optimizedExpression;
private FieldUpdateAdapter(Expression optimizedExpression, DocumentAdapter adapter, Builder builder) {
this.adapter = adapter;
this.builder = builder;
this.optimizedExpression = optimizedExpression;
}
@Override
public DocumentUpdate getOutput() {
Document doc = adapter.getUpdatableOutput();
DocumentUpdate upd = new DocumentUpdate(doc.getDataType(), doc.getId());
for (Iterator<Map.Entry<Field, FieldValue>> it = doc.iterator(); it.hasNext();) {
Map.Entry<Field, FieldValue> entry = it.next();
Field field = entry.getKey();
if (field.getName().equals("sddocname")) {
continue;
}
FieldUpdate fieldUpd = FieldUpdate.create(field);
fieldUpd.addValueUpdates(builder.build(entry.getValue()));
if (!fieldUpd.isEmpty()) {
upd.addFieldUpdate(fieldUpd);
}
}
return upd.isEmpty() ? null : upd;
}
@Override
public Expression getExpression(Expression expression) {
return optimizedExpression != null ? optimizedExpression : expression;
}
@Override
public DataType getInputType(Expression exp, String fieldName) {
return adapter.getInputType(exp, fieldName);
}
@Override
public FieldValue getInputValue(String fieldName) {
return adapter.getInputValue(fieldName);
}
@Override
public FieldValue getInputValue(FieldPath fieldPath) { return adapter.getInputValue(fieldPath); }
@Override
public void tryOutputType(Expression exp, String fieldName, DataType valueType) {
adapter.tryOutputType(exp, fieldName, valueType);
}
@Override
public FieldValueAdapter setOutputValue(Expression exp, String fieldName, FieldValue fieldValue) {
return adapter.setOutputValue(exp, fieldName, fieldValue);
}
public static FieldUpdateAdapter fromPartialUpdate(DocumentAdapter documentAdapter, ValueUpdate valueUpdate) {
return new FieldUpdateAdapter(null, documentAdapter, new PartialBuilder(valueUpdate));
}
public static FieldUpdateAdapter fromPartialUpdate(Expression expression, DocumentAdapter documentAdapter, ValueUpdate valueUpdate) {
return new FieldUpdateAdapter(expression, documentAdapter, new PartialBuilder(valueUpdate));
}
public static FieldUpdateAdapter fromCompleteUpdate(DocumentAdapter documentAdapter) {
return new FieldUpdateAdapter(null, documentAdapter, new CompleteBuilder());
}
private interface Builder {
List<ValueUpdate> build(FieldValue val);
}
private static class PartialBuilder implements Builder {
final ValueUpdate update;
PartialBuilder(ValueUpdate update) {
this.update = update;
}
@Override
public List<ValueUpdate> build(FieldValue val) {
return createValueUpdates(val, update);
}
@SuppressWarnings({ "unchecked" })
List<ValueUpdate> createValueUpdates(FieldValue val, ValueUpdate upd) {
List<ValueUpdate> lst = new ArrayList<>();
if (upd instanceof ClearValueUpdate) {
lst.add(new ClearValueUpdate());
} else if (upd instanceof AssignValueUpdate) {
lst.add(new AssignValueUpdate(val));
} else if (upd instanceof AddValueUpdate) {
if (val instanceof Array) {
lst.addAll(createAddValueUpdateForArray((Array)val, ((AddValueUpdate)upd).getWeight()));
} else if (val instanceof WeightedSet) {
lst.addAll(createAddValueUpdateForWset((WeightedSet)val));
} else {
// do nothing
}
} else if (upd instanceof ArithmeticValueUpdate) {
lst.add(upd); // leave arithmetics alone
} else if (upd instanceof RemoveValueUpdate) {
if (val instanceof Array) {
lst.addAll(createRemoveValueUpdateForEachElement(((Array)val).fieldValueIterator()));
} else if (val instanceof WeightedSet) {
lst.addAll(createRemoveValueUpdateForEachElement(((WeightedSet)val).fieldValueIterator()));
} else {
// do nothing
}
} else if (upd instanceof MapValueUpdate) {
if (val instanceof Array) {
lst.addAll(createMapValueUpdatesForArray((Array)val, (MapValueUpdate)upd));
} else if (val instanceof MapFieldValue) {
throw new UnsupportedOperationException("Can not map into a " + val.getClass().getName());
} else if (val instanceof StructuredFieldValue) {
lst.addAll(createMapValueUpdatesForStruct((StructuredFieldValue)val, (MapValueUpdate)upd));
} else if (val instanceof WeightedSet) {
lst.addAll(createMapValueUpdatesForWset((WeightedSet)val, (MapValueUpdate)upd));
} else {
// do nothing
}
} else if (upd instanceof TensorModifyUpdate) {
lst.add(upd);
} else if (upd instanceof TensorAddUpdate) {
lst.add(upd);
} else if (upd instanceof TensorRemoveUpdate) {
lst.add(upd);
} else {
throw new UnsupportedOperationException(
"Value update type " + upd.getClass().getName() + " not supported");
}
return lst;
}
@SuppressWarnings({ "unchecked" })
private List<ValueUpdate> createAddValueUpdateForArray(Array arr, int weight) {
List<ValueUpdate> ret = new ArrayList<>(arr.size());
for (Iterator<FieldValue> it = arr.fieldValueIterator(); it.hasNext(); ) {
ret.add(new AddValueUpdate(it.next(), weight));
}
return ret;
}
@SuppressWarnings({ "unchecked" })
private List<ValueUpdate> createAddValueUpdateForWset(WeightedSet wset) {
List<ValueUpdate> ret = new ArrayList<>(wset.size());
for (Iterator<FieldValue> it = wset.fieldValueIterator(); it.hasNext(); ) {
FieldValue key = it.next();
ret.add(new AddValueUpdate(key, wset.get(key)));
}
return ret;
}
private List<ValueUpdate> createRemoveValueUpdateForEachElement(Iterator<FieldValue> it) {
List<ValueUpdate> ret = new ArrayList<>();
while (it.hasNext()) {
ret.add(new RemoveValueUpdate(it.next()));
}
return ret;
}
@SuppressWarnings({ "unchecked" })
private List<ValueUpdate> createMapValueUpdatesForArray(Array arr, MapValueUpdate upd) {
List<ValueUpdate> ret = new ArrayList<>();
for (Iterator<FieldValue> it = arr.fieldValueIterator(); it.hasNext();) {
FieldValue childVal = it.next();
for (ValueUpdate childUpd : createValueUpdates(childVal, upd.getUpdate())) {
// The array update is always directed towards a particular array index, which is
// kept as the _value_ in the original update.
ret.add(new MapValueUpdate(upd.getValue(), childUpd));
}
}
return ret;
}
private List<ValueUpdate> createMapValueUpdatesForStruct(StructuredFieldValue struct, MapValueUpdate upd) {
List<ValueUpdate> ret = new ArrayList<>();
for (Iterator<Map.Entry<Field, FieldValue>> it = struct.iterator(); it.hasNext();) {
Map.Entry<Field, FieldValue> entry = it.next();
for (ValueUpdate childUpd : createValueUpdates(entry.getValue(), upd.getUpdate())) {
ret.add(new MapValueUpdate(new StringFieldValue(entry.getKey().getName()), childUpd));
}
}
return ret;
}
@SuppressWarnings({ "unchecked" })
private List<ValueUpdate> createMapValueUpdatesForWset(WeightedSet wset, MapValueUpdate upd) {
List<ValueUpdate> ret = new ArrayList<>();
for (Iterator<FieldValue> it = wset.fieldValueIterator(); it.hasNext();) {
FieldValue childVal = it.next();
for (ValueUpdate childUpd : createValueUpdates(new IntegerFieldValue(wset.get(childVal)),
upd.getUpdate()))
{
ret.add(new MapValueUpdate(childVal, childUpd));
}
}
return ret;
}
}
private static class CompleteBuilder extends PartialBuilder {
static final ValueUpdate nullAssign = new AssignValueUpdate(null);
CompleteBuilder() {
super(null);
}
@Override
List<ValueUpdate> createValueUpdates(FieldValue val, ValueUpdate upd) {
return super.createValueUpdates(val, nullAssign);
}
}
}
``` |
The judiciary of Iraq is a branch of the government of Iraq that interprets and applies the laws of Iraq, to ensure equal justice under law, and provides a mechanism for dispute resolution. The judiciary is composed of the Higher Judicial Council, the Supreme Court, the Court of Cassation, the Public Prosecution Department, the Judiciary Oversight Commission, the Supreme Iraqi Criminal Tribunal, the Central Criminal Court and other courts that are regulated by law.
Higher Judicial Council
The Higher Judicial Council manages and supervises the affairs of the federal judiciary. It oversees the affairs of the various judicial committees, nominates the Chief Justice and members of the Court of Cassation, the Chief Public Prosecutor, and the Chief Justice of the Judiciary Oversight Commission, and drafts the budget of the judiciary. In 2013, the Council of Representatives passed the Iraqi Federal Court Act, which forbids the Chief Justice of the Supreme Court from also being the head of the Judicial Council, and replaced him with the Chief Justice of the Court of Cassation.
Supreme Court
The Supreme Court is an independent judicial body that interprets the constitution and determines the constitutionality of laws and regulations. It acts as a final court of appeals, settles disputes amongst or between the federal government and the regions and governorates, municipalities, and local administrations, and settles accusations directed against the President, the Prime Minister and the Ministers. It also ratifies the final results of the general elections for the Council of Representatives.
Supreme Iraqi Criminal Tribunal
The Supreme Iraqi Criminal Tribunal (formerly the Iraqi Special Tribunal) is a body established to try Iraqi nationals or residents accused of genocide, crimes against humanity, war crimes or other serious crimes committed between 1968 and 2003. It organized the trials of Saddam Hussein, Ali Hassan al-Majid ("Chemical Ali"), former Vice President Taha Yassin Ramadan, former deputy Prime Minister Tariq Aziz and other former senior officials of the deposed Ba'athist regime. The Court was set up by the Coalition Provisional Authority and reaffirmed later by the Iraqi Interim Government. In 2005 it was renamed after the constitution banned "special or exceptional courts". The Transitional Administrative Law (TAL) promulgated by the Iraq Governing Council before the restoration of Iraqi sovereignty preserves and continues the Iraq Special Tribunal in force and effect.
Central Criminal Court
The Central Criminal Court is the main criminal court of Iraq. The CCCI is based on an inquisitorial system and consists of two chambers: an investigative court, and a criminal court.
References
External links
The Iraqi Higher Judicial Council
Government of Iraq
Law of Iraq |
Drenčec is a village in Croatia. It is formally a settlement (naselje) of Zagreb, the capital of Croatia.
Demographics
According to the 2021 census, its population was 136. According to the 2011 census, it had 131 inhabitants.
References
Populated places in the City of Zagreb |
Carumbium can be one of these two plant genera:
Carumbium Kurz, which is a synonym of Sapium.
Carumbium Reinw., which is a synonym of Homalanthus. |
Theodor Zwinger III (26 August 1658 – 22 April 1724) was a Swiss physician.
Life
Theodor Zwinger came from an important Basel family of scholars. His father was the Basel theology professor Johannes Zwinger. He studied in Basel from 1675 and in 1680 was made a medical doctor with the dissertation De paedotrophia.
He then spent two years in France, including in Paris and Strasbourg. After his return to Basel, he pursued a career as a university lecturer at the University of Basel. First he took over the professorship of rhetoric in 1684, three years later the chair of physics, in 1703 that of anatomy and botany, and in 1711 the chair of theoretical and practical medicine which he retained until his death. He also worked as Stadtarzt (town doctor), was dean several times and in 1711/1712 rector.
In 1685 Zwinger was elected a member of the German National Academy of Sciences Leopoldina. In 1706 he became a member of the Prussian Academy of Sciences.
In 1700 Zwinger was offered the first chair of medicine at Leiden University. The Landgrave of Hesse-Cassel and the King of Prussia sought to secure him by offers; but nothing could persuade him to leave his native town. Appointed physician and Aulic Counciller to the Duke of Württemberg and the Marquis of Baden-Durlach, he received the same titles from several princes and from various towns in Germany.
In December 1703, he moved from the chair of physics to that of anatomy and botany. In winter he presided over dissections in the amphitheater, and in summer, followed by his pupils, he traveled through the mountains of Switzerland to collect new plants, with which he enriched the garden of the academy.
The city of Freiburg im Breisgau, afflicted with an epidemic in 1710, demanded the care of Zwinger. He spent the day visiting the sick and part of the night writing up his observations.
He made valuable contributions to pediatrics and physics classes in Basel. He also maintained an extensive correspondence, including with Johann Jakob Scheuchzer.
The theologian Johann Rudolf Zwinger was a brother of Zwinger. One son was the anatomist Johann Rudolph Zwinger. His nephew Johann Rudolf Mieg was also one of his students.
References
1658 births
1724 deaths
People from Basel-Landschaft
17th-century Swiss physicians
18th-century Swiss physicians
Academic staff of the University of Basel |
Vojislav Đonović (November 18, 1921 – January 5, 2008), nicknamed Vojkan, was a famous Serbian jazz guitarist - soloist, member of the Belgrade Jazz Trio and Jazz Orchestra of the Radio Belgrade. He was also a composer and arranger.
Vojislav Đonović was born on November 18, 1921 in Belgrade, where he spent most of his life. His father, a Serbian diplomat, bought his first guitar in the 1930s. Đonović claimed it was the best guitar he ever owned. After a year of learning, he began playing in the streets of Belgrade. In 1951, Vojislav Đonović joined the Jazz Orchestra of Radio Belgrade. He participated as a composer, soloist, and an arranger. From 1959 - 1962, Vojislav Đonović gained a lot of popularity as a soloist in the Grand Revue Orchestra Elijah Backa Genić. In addition to jazz, Đonović also enjoyed folk music and romantic genres. Later, Đonović moved his main focus to music production. Đonović died in Belgrade on January 5, 2008.
References
1921 births
2008 deaths
Serbian jazz guitarists
Yugoslav musicians
20th-century guitarists |
2000 Herschel, provisional designation , is a stony Phocaea asteroid and a tumbling slow rotator from the inner regions of the asteroid belt, approximately in diameter. It was discovered 29 July 1960, by German astronomer Joachim Schubart at Sonneberg Observatory in eastern Germany. The S-type asteroid has a long rotation period of 130 hours. It was named after astronomer William Herschel.
Orbit and classification
Herschel is a member of the Phocaea family (), a large family of stony asteroids with nearly two thousand known members. It orbits the Sun in the inner main-belt at a distance of 1.7–3.1 AU once every 3 years and 8 months (1,341 days; semi-major axis of 2.38 AU). Its orbit has an eccentricity of 0.30 and an inclination of 23° with respect to the ecliptic. It was first identified as at Johannesburg Observatory in 1934, extending the body's observation arc by 26 years prior to its official discovery observation at Sonneberg.
The relatively high orbital eccentricity of this object causes it to come close to the orbit of the planet Mars. This means there is a chance it will eventually collide with the planet, with the odds of a collision estimated at 18% per billion orbits.
Naming
This minor planet was named in honour of the English astronomer of German origin William Herschel (1738–1822), who discovered what he called Georgium Sidus (aka Uranus). The official was published by the Minor Planet Center on 15 October 1977 (). While the minor planet with number "1000", 1000 Piazzia, honors the discoverer of the first minor planet, Giuseppe Piazzi, number "2000" does so for Herschel, discoverer of the first telescopic major planet. The asteroid is one of several early "kilo-numbered" minor planets that were dedicated to renowned scientists or institutions including:
1000 Piazzia named for Giuseppe Piazzi, discoverer of Ceres
2000 Herschel for William Herschel who discovered Uranus
3000 Leonardo for the Italian polymath of the Renaissance, Leonardo da Vinci
4000 Hipparchus for ancient Greek astronomer Hipparchus
The sequence continues with the asteroids 5000 IAU (for the International Astronomical Union), 6000 United Nations (for the United Nations), 7000 Curie (for the pioneers on radioactivity, Marie and Pierre Curie), and (for Isaac Newton), while 9000 Hal (after HAL 9000 from 2001: A Space Odyssey) and 10000 Myriostos (after the Greek word for ten-thousandth, which is meant to honor all astronomers) were named based on their direct numeric accordance.
Physical characteristics
In the Tholen classification, Herschel is a common S-type asteroid.
Slow rotator and tumbler
Analysis of the lightcurve for this object appears to show that it is tumbling, with rotation occurring about the non-principal axis. Lightcurve analysis gave a rotation period of hours with a high brightness variation of magnitude (). This makes it a slow rotator.
Diameter and albedo
The Collaborative Asteroid Lightcurve Link assumes a standard albedo for a stony asteroid of 0.20 and calculates a diameter of 16.71 kilometers based on an absolute magnitude of 11.25. According to the surveys carried out by the Japanese Akari satellite and the NEOWISE mission of NASA's Wide-field Infrared Survey Explorer, Herschel measures between 14.768 and 17.385 kilometers in diameter and its surface has an albedo between 0.1870 and 0.256.
See also
20000 Varuna
References
External links
Lightcurve plot of 2000 Herschel, Palmer Divide Observatory, B. D. Warner (2008)
Asteroid Lightcurve Database (LCDB), query form (info )
Dictionary of Minor Planet Names, Google books
Discovery Circumstances: Numbered Minor Planets (1)-(5000) – Minor Planet Center
002000
Discoveries by Joachim Schubart
Named minor planets
002000
002000
19600729 |
Ulanqab (Wulanchabu) Jining Airport is an airport located in the north of the city of Ulanqab in Inner Mongolia, China. The airport received approval from the State Council of China and the Central Military Commission on 31 July 2013. The airport was opened on 25 April 2016.
Facilities
The airport has a runway that is 3,200 meters long and 45 meters wide, and a 35,700-square-meter terminal building with 7 aerobridges. It is projected to handle 1 million passengers and 9000 tons of cargo annually in the next few years.
Airlines and destinations
See also
List of airports in China
List of the busiest airports in China
References
Airports in Inner Mongolia
Airports established in 2016
2016 establishments in China
Ulanqab |
Henry William Burgess (London, c. 1792–1839) was a British artist known particularly for his drawings of trees and landscapes. His medium was graphite and watercolour.
Early life and education
He was part of the a well-known dynasty of painters who flourished in the 18th and 19th centuries. His father was the portrait-painter William Burgess (1749–1812), and his grandfather was Thomas Burgess (fl. 1766–1786). His brothers were the painters John Cart Burgess and Thomas Burgess. His son John-Bagnold Burgess (1830–1897) also became a successful painter.
Art
Based in Chelsea like the rest of his family, between 1809 and 1839 Burgess exhibited many works at the Royal Academy, the Suffolk Street Gallery, and the New Water-Colour Society in London.
He became landscape painter to William IV of the United Kingdom in 1826. At least one of his drawings is still in the Royal Collection, Windsor Castle, a distant view, with deer and horse and cart. He was also drawing master at Charterhouse School.
In 1827 the book Eidodendron was published (J. Dickinson, London, 1827), a collection of sepia-printed lithographs on chine applique, realized by the lithographer Charles Joseph Hullmandel (1789–1850) after H.W. Burgess's drawings. The subtitle is: Views of the general Character and Appearance of Trees Foreign & Indigenous as connected with picturesque Scenery. It is a set of pastoral landscapes, each featuring different species of large trees. Rural folk going about their routines provide a sense of scale.
Burgess and Hullmandel were among the earliest practitioners of lithography in England, which in this series replicates the tonal variations of a sepia ink wash drawing very effectively. Burgess's attention to the qualities of light exhibited in these prints links him to his contemporaries John Constable and J. M. W. Turner.
Henry William Burgess died in London on 8 May 1839, aged about 47.
Legacy
His drawings are held today by major galleries such as The Met, the Royal Collection, the Victoria and Albert Museum (an entire book of his pencil drawings bound in volume, c. 1832). The British Museum has a lithograph of his portrait as a young man, seated to right in armchair, holding portfolio and pencil, with facsimile signature, after a vignette by Sir William Charles Ross.
References
1839 deaths
1790s births
English artists |
Hits for Kids is the official debut album by Dutch singer and multi-instrumentalist Jett Rebel and his second studio album. The album was scheduled for release on October 31, 2014, through Sony Music Entertainment, but Rebel decided to release it the day before on various streaming services , on October 30, 2014. Pineapple Morning was the first and only single released on October 30, 2014.
Recording
Rebel got help from Tony Platt in making essential choices. The renowned producer/mixer Tony Platt gave the necessary advice and did the mix in his Platinum Tones studio in London. Hits for Kids was recorded in Soesterberg in his former old house and home studio. Rebel played all the instruments himself. Hits for kids was the last record Rebel recorded digitally. In Wisseloordstudio's some parts have been replaced by Rebel in cooperation with Platt. Like for example the drums. Rebel wanted to record with two mics. Also the guitars of some of the songs have been re-recorded." There they have, for example, a '55 Les Paul Goldtop and those beautiful old Strats. I've done a few acoustics and sometimes you can hear that Goldtop. You really hear that, a guitar that sounds expensive and rich and beautiful, both clean and totally driven. And I also used some very nice bass guitars. Hammond organ, grand piano, and a few tracks re-sung by beautiful, old vintage mics."
The name of the album does not refer to it being songs for children to listen to, but rather as memorable catchy sounds with childlike impulsiveness, as he states. The cover of the album was designed by Soesja Leugs.
The songs Gwen and Goosebumps Galore were performed on September 8, 2017 by Jett Rebel together with the Dutch Noordpool Orkest (orchestra) at the Prinsengrachtconcert in Meppel.
Videos
A music video for "Pineapple Morning", the first track on the album, was released one day prior to the release of the album, on October 30, 2014.
On 31 October 2014, 14 lyric videos were released from the album.
In addition to the single Pineapple Morning, two official video clips have been released from the album, Baby on 28 November 2014 and Sunshine on 25 February 2015. Baby's video is from the documentary Who The Fuck Is Jett Rebel? by Linda Hakeboom.
Promotion
One day prior to the release of the album, Rebel held a live performance on the Dutch talk show De Wereld Draait Door. He played the songs "Pineapple Morning" and "Baby".
A hand-signed version of the album was given when pre-ordering the album at Bol.com, an online retailer.
Track listing
Personnel
The album is written, composed, arranged, produced by Jett Rebel. All songs written and instruments played by Jett Rebel.
Tony Platt – engineering, mixing
Ray Staff – mastering
The album has been released on compact disc and LP. The vinyl was pressed by Music On Vinyl.
The artwork is by Jett Rebel and Soesja Leugs.
All video lyrics come from Niels Bourgonje, Olf de Bruin and Dorien Bolhuis.
Hits For Kids has been released by Vosmeijer Media. It was exclusively licensed to Sony Music Entertainment Nederland B.V.
Credits for Venus & Mars adapted from album liner notes.
Charts
Release history
References
2014 albums
Jett Rebel albums |
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.graal.compiler.lir.constopt;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.BiConsumer;
import jdk.graal.compiler.core.common.cfg.BasicBlock;
import jdk.graal.compiler.core.common.cfg.AbstractControlFlowGraph;
import jdk.graal.compiler.core.common.cfg.BlockMap;
import jdk.graal.compiler.core.common.cfg.DominatorOptimizationProblem;
import jdk.graal.compiler.core.common.cfg.PropertyConsumable;
/**
* Represents a dominator (sub-)tree for a constant definition.
*/
public class ConstantTree extends DominatorOptimizationProblem<ConstantTree.Flags, ConstantTree.NodeCost> {
public enum Flags {
SUBTREE,
USAGE,
MATERIALIZE,
CANDIDATE,
}
/**
* Costs associated with a block.
*/
public static class NodeCost implements PropertyConsumable {
private List<UseEntry> usages;
private double bestCost;
private int numMat;
public NodeCost(double bestCost, List<UseEntry> usages, int numMat) {
this.bestCost = bestCost;
this.usages = usages;
this.numMat = numMat;
}
@Override
public void forEachProperty(BiConsumer<String, String> action) {
action.accept("bestCost", Double.toString(getBestCost()));
action.accept("numMat", Integer.toString(getNumMaterializations()));
action.accept("numUsages", Integer.toString(usages.size()));
}
public List<UseEntry> getUsages() {
if (usages == null) {
return Collections.emptyList();
}
return usages;
}
public double getBestCost() {
return bestCost;
}
public int getNumMaterializations() {
return numMat;
}
@Override
public String toString() {
return "NodeCost [bestCost=" + bestCost + ", numUsages=" + usages.size() + ", numMat=" + numMat + "]";
}
}
private final BlockMap<List<UseEntry>> blockMap;
public ConstantTree(AbstractControlFlowGraph<?> cfg, DefUseTree tree) {
super(Flags.class, cfg);
this.blockMap = new BlockMap<>(cfg);
tree.forEach(u -> getOrInitList(u.getBlock()).add(u));
}
private List<UseEntry> getOrInitList(BasicBlock<?> block) {
List<UseEntry> list = blockMap.get(block);
if (list == null) {
list = new ArrayList<>();
blockMap.put(block, list);
}
return list;
}
public List<UseEntry> getUsages(BasicBlock<?> block) {
List<UseEntry> list = blockMap.get(block);
if (list == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(list);
}
/**
* Returns the cost object associated with {@code block}. If there is none, a new cost object is
* created.
*/
NodeCost getOrInitCost(BasicBlock<?> block) {
NodeCost cost = getCost(block);
if (cost == null) {
cost = new NodeCost(block.getRelativeFrequency(), blockMap.get(block), 1);
setCost(block, cost);
}
return cost;
}
@Override
public String getName(Flags type) {
switch (type) {
case USAGE:
return "hasUsage";
case SUBTREE:
return "inSubtree";
case MATERIALIZE:
return "materialize";
case CANDIDATE:
return "candidate";
}
return super.getName(type);
}
public BasicBlock<?> getStartBlock() {
return stream(Flags.SUBTREE).findFirst().get();
}
public void markBlocks() {
for (BasicBlock<?> block : getBlocks()) {
if (get(Flags.USAGE, block)) {
setDominatorPath(Flags.SUBTREE, block);
}
}
}
public boolean isMarked(BasicBlock<?> block) {
return get(Flags.SUBTREE, block);
}
public boolean isLeafBlock(BasicBlock<?> block) {
BasicBlock<?> dom = block.getFirstDominated();
while (dom != null) {
if (isMarked(dom)) {
return false;
}
dom = dom.getDominatedSibling();
}
return true;
}
public void setSolution(BasicBlock<?> block) {
set(Flags.MATERIALIZE, block);
}
public int size() {
return getBlocks().length;
}
}
``` |
Mordechai Nessyahu (September 25, 1929 – April 23, 1997) was an Israeli political theorist and philosopher of science, as well as the originator of a worldview he called cosmotheism.
Biography
While studying physics and philosophy at the Hebrew University, Nessyahu began to formulate the worldview he eventually called cosmotheism. He exchanged several letters on the subject with Albert Einstein. In 1953 he published a book in Hebrew entitled מדע הקוסמוס וחברת המדע (Cosmic Science and the Scientific Society) which became the foundation of his eventual cosmotheistic formulation. Moshe Sharett, soon to be Israel's second prime minister, was so impressed by the book that he shared it with Prime Minister David Ben-Gurion. As a result, Nessyahu was appointed Director of the Research Department of the Israeli Labor Party. Nessyahu remained in this position until his death.
In 1968 he met Tsvi Bisk, a new immigrant from the United States, who became his assistant at the Research Department. This meeting triggered a renewed interest in cosmotheism with Bisk as his collaborator and translator. Numerous English-language drafts of the idea were produced over the years and sent to hundreds of thinkers around the world to solicit their opinions. The year he died Nessyahu finally published his work in book form in Hebrew.
The cosmotheistic hypothesis
The cosmotheistic hypothesis stipulates that the Big Bang that created our cosmos was a local event in an infinite universe — a universe that contains an infinite number of cosmoi (what is now being speculated by theoretical physicists as the multiverse). It proposes that this cosmos is an evolutionary entity, in a constant state of ever growing complexity — that eventually has produced conscious life. It posits that due to the evolutionary nature of cosmic development, now being revealed by the "new physics" and "new cosmology", it is statistically certain that huge numbers of conscious life-forms (equivalent in self-awareness to human beings) have arisen throughout the cosmos; as if conscious life has been sown (as a cosmic genome) throughout the cosmos by the very process of cosmic evolution.
Nessyahu postulated that a number of these conscious life-forms will conclude that they must strive to become part of the God-ing of the cosmos. The expansion of conscious life throughout the cosmos will eventually be unfettered by its physical limitations and ultimately conscious life will fill the entire cosmos; it will become co-eval with a cosmos that has dissolved into pure radiation as an inevitable consequence of entropy. Thus the cosmos will become in its entirety a conscious universal being — i.e., the cosmos will have become God. Cosmotheism posits God as the consequence of the cosmos and not as its cause. Not in the beginning God created the cosmos but in the end the evolutionary cosmos will have created God.
From cosmotheism to cosmodeism
Since several racist groups co-opted the name cosmotheism, Nessyahu's living colleague Tsvi Bisk decided to rename Nessyahu's hypothesis cosmodeism, a name closer to the tradition of natural theology which cosmodeism best reflects. Bisk is presently writing a book entitled Cosmodeism: A Worldview for the Space Age.
Publications
(all in Hebrew)
Mada Ha'Cosmos ve-Hevrat Ha'Mada (Cosmic Science and the Scientific Society); Tel Aviv: Katavim, 1953
Darkah shel Mapai (The Way of Mapai); Israel: Beit Berl, 1958
Ha-Mahapekhah ha-mada'it ṿeha-olam ha-mitpate'aḥ (The Scientific Revolution and the Developing World); Tel Aviv: Am Oved, 1965
Yiśrael ke-etgar: mi-20 la-medinah li-shenat 2000 (Israel as a challenge: from the State's 20th anniversary to the year 2000). Tel Aviv: Am Oved, 1969
Peace Time, Facts and Thoughts on the Oslo Track. Israel, 1994
Ḳosmoteizm (Cosmotheism). Ramat Gan: Poeṭiḳah, 1997
References
1929 births
1997 deaths
20th-century Israeli philosophers
Burials at Yarkon Cemetery
Israeli political scientists
20th-century political scientists |
Vincenzo Vallelonga is a Paralympic athletics competitor from Australia. At the 1988 Summer Paralympics he won four medals: silver in the Men's 4 × 100 m Relay 1A–1C, silver in the Men's 100 m 1B, bronze in the Men's 4 × 200 m Relay 1A–1C and bronze in the Men's Slalom 1B. At the 1992 Barcelona Games he won a bronze medal in the Men's 4 × 400 m Relay TW1-2 event and a silver medal in the Men's 4 × 100 m Relay TW1-2 event.
References
Paralympic athletes for Australia
Athletes (track and field) at the 1992 Summer Paralympics
Paralympic silver medalists for Australia
Paralympic bronze medalists for Australia
Living people
Medalists at the 1988 Summer Paralympics
Medalists at the 1992 Summer Paralympics
Year of birth missing (living people)
Paralympic medalists in athletics (track and field)
Australian male wheelchair racers
Athletes (track and field) at the 1988 Summer Paralympics
Place of birth missing (living people) |
Obe ata (Yoruba) is a base stew or sauce used in Yoruba cuisine and meals found in Nigeria, Benin and Togo. In concept, it is similar to that of French mother sauces: a sauce from which other sauces are made. It is used as the base with which Jollof rice is made. In Nigerian cooking the sauce is "ubiquitous".
It is also eaten on its own as a soup or stew with rice or as a dip for bread, chips, or fries.
Obe ata is made from tomatoes, a variety of peppers, onions, oil, and spices like thyme, garlic, ginger, and stock. Obe ata stews have several recipes that require Iru as well, or bay leaves and curry powder depending on the flavour profile. Some recipes call for dried or powdered crayfish.
The tomatoes, peppers and onions are pureed together and then sauteed in oil; often groundnut or palm oil, depending on the flavour the cook is going for. Red palm oil, an unrefined oil with a sweet taste, is specified in some recipes. Spices and other flavorings are added as it sautees. The finished product is spicy and slightly sweet. Most cooks use fresh tomatoes, some use canned and some use a mix of both. Some roast the tomatoes, peppers, and onions before pureeing.
A cousin sauce is ata din din (Yoruba) which is more a spicy concentrated stew. There are other Yoruba stews as well, including Ofada Sauce/stew, Ayamase, Agoyin Sauce, Buka Stew etc.
References
Yoruba cuisine
West African cuisine
Stews
Tomato sauces |
Yo! Check Out This Ride! EP is an EP by American band the Aquabats, independently recorded and released by the band themselves in 2004.
Overview
After being dismissed from Goldenvoice Records in 2000 and subsequently failing to find another record label, the Aquabats entered an extended period of relative inactivity in the first half of the 2000s, delaying all plans for extensive touring or future recording due to financial constraints. Yo! Check Out This Ride!!, the Aquabats' first self-produced album since 1996's The Return of the Aquabats, was recorded to both appease the band's fanbase after four years of no new material, as well as to serve as a potential demo to attract interest from record labels. This would ultimately prove successful, as the Aquabats were signed to Nitro Records later in the year.
Yo! Check Out This Ride! was recorded during a transitional period in the Aquabats' career. Following the departure of trumpeter and co-founder Catboy in 2002, the band had dropped their once characteristic horn section and predominant ska elements to focus more exclusively on the guitar and synthesizer-driven rock and new wave influences which had dominated their previous studio album. Musically, the album showcases a hip hop-tinged rock song in the title track and straight synthpop in "Todd-1 in Space Mountain Land!", while featuring cover songs from power pop bands the Plimsouls and the Kinks, and vocal group the Kids of Widney High.
The EP was the first Aquabats album to feature drummer Ricky Fitness, who joined the band in 2002, as well as the final to feature original member Prince Adam as an official member. The cover art, depicting a horseback Aquabat lassoing a dinosaur-like creature, was painted by Brandon Bird.
Reception
Scott Auth of Punknews.org gave Yo! Check Out This Ride! 3½ out of 5 stars, writing "Musically this isn’t the greatest work they’ve ever prepared; sadly there's not a trace of ska to be found on Yo! Check Out This Ride! As heartbreaking as that is, it's still a quality EP worthy of purchase."
Track listing
Previous versions
A demo version of "Todd-1 in Space Mountain Land!", an outtake from the Floating Eye of Death! recording sessions, was first released on The Aquabats' website in the early 2000s.
Personnel
The Aquabats
The MC Bat Commander – vocals
Crash McLarson – bass guitar
Jimmy The Robot – saxophone, keyboards
Prince Adam – rhythm guitar, synthesizer, trumpet
Chainsaw, Prince of Karate – lead guitar
Ricky Fitness – drums
Production
Produced, engineered and mixed by Adam Deibert and The Aquabats
Mastered by Alex Reverberi
Recorded at "Global International Worldwide Studios" in Santa Ana, California and "The Deibert Ranch Studios" in Huntington Beach, California.
References
The Aquabats albums
2004 debut EPs |
Ryan Doble (born 1 February 1991) is a Welsh former under-21 international footballer who played as a striker. He last played for Shrewsbury Town in 2013.
Club career
Southampton
Born in Blaenavon, he joined the Southampton F.C. Academy at the age of 12.
Having completed a scholarship at Southampton, Doble played in a number of pre-season fixtures. He also played a significant role in the F.A youth cup run during the 2008–09 campaign, scoring six goals, one of them coming against Derby County in the later stages of the competition.
On his 17th birthday. Doble signed his first professional contract which was for an original three years. On 16 February 2011, he signed a new professional contract keeping him at the club until 2012.
In the 2010–11 season, Doble appeared on the substitutes bench in Southampton's league campaign but was not used. He made his only first-team appearance for the club in an FA Cup game against Coventry City on 7 January 2012 where he played for 59 minutes before being replaced by Sam Hoskins. On 19 May, it was announced that he was to be released at the end of his contract.
Loan to Stockport County
On 17 February 2011, Doble joined Stockport County on loan for one month. He made his debut on 19 February in a 4–1 defeat by Macclesfield Town.
In his second appearance on 26 February, he scored County's second goal at Bradford City before being sent off in the 64th minute, following a challenge on Luke Oliver; with Adam Griffin having already been sent off, nine-man County were unable to hang on to their lead and lost 3–2. After making three appearances for Stockport, Doble returned to his parent club.
Other loans
On 22 March 2011 it was announced that Doble would join Oxford United on loan until the end of the season. On 2 April, Doble made his debut for club, coming on as a substitute for Tom Craddock on a 58 minutes. He returned to Southampton early due to injury after making three appearances.
On 11 August 2011, he joined Bournemouth on a month's loan; which was later extended by a further month; however this loan was also cut short by injury having made seven appearances for the club. Two days later after signing for Bournemouth, Doble made his debut for club in a 2–0 win over Sheffield Wednesday.
On 17 January 2012, he joined League One side Bury on a month-long loan. He made his debut for the club in a 1–1 draw against Charlton Athletic where he provided an assist for Lenell John-Lewis. On 20 February 2012, Doble returned to his parent club, just two days after he made his last appearance for Bury in a 3–2 defeat by Exeter City, after his one-month spell at Bury where he made five appearances and failed to find the net.
Shrewsbury Town
On 20 June 2012, he joined League One side Shrewsbury Town., but was released after just one season having only made one start and four substitute appearances. Shrewsbury manager Graham Turner said on Doble's release, "He worked hard and he can look at it, I think, and say that he had very few opportunities but you've got to earn those opportunities and I didn't feel he had done enough to warrant a run in the first team.".
Doble went on trial at League Two newcomers Newport County in July 2013, but turned down the offer of a month-to-month contract.
International career
In 2006, he was called up to the Wales U17 squad going on to make three appearances. A year later he was promoted to the U19 squad yet again going on to make three appearances. On 23 August 2010, Doble was called up to the Wales U21 side in hope to boost their chance to qualify for the UEFA U21 European championships.
He was then celebrating his first call up to the Wales senior squad. The 20-year-old had been drafted in for the Euro 2012 qualifying matches against Bulgaria and Switzerland. Doble was brought in as cover by caretaker manager Brian Flynn, after strikers Robert Earnshaw and Craig Bellamy pulled out through injury.
References
External links
1991 births
Living people
People from Blaenavon
Sportspeople from Torfaen
Welsh men's footballers
Wales men's youth international footballers
Wales men's under-21 international footballers
Men's association football forwards
Southampton F.C. players
Stockport County F.C. players
Oxford United F.C. players
AFC Bournemouth players
Bury F.C. players
Shrewsbury Town F.C. players
English Football League players |
Kathleen M. Peters (born February 27, 1961) is an American politician of the Republican Party and a former member of the Florida House of Representatives, representing the 69th District, which includes southern Pinellas County, stretching from Redington Shores to St. Pete Beach, from 2012 to 2018.
Peters currently serves on the Pinellas County Board of County Commissioners, having announced in 2017 that she would not seek re-election the Florida House in order to run for a seat on the commission.
History
Peters was born in Northbrook, Illinois, in 1961, and moved to Florida in 1985, where she attended St. Petersburg College, where she received her associate degree, and Eckerd College, receiving a degree in human development. In 2008, Peters was elected to the South Pasadena City Commission, and in 2009, she was selected by her fellow Commissioners to serve as Mayor. She continued serving on the City Commission and as Mayor until 2012, and simultaneously worked as the Vice-President of Public Affairs at the Clearwater Regional Chamber of Commerce.
Florida House of Representatives
In 2012, following the reconfiguration of Florida House districts, Peters opted to run in the newly created 69th District. She faced David Phillips and Jim Dobyns in the Republican primary, campaigning on education reform. She ended up comfortably defeating both of her opponents, winning 51% of the vote to Phillips's 36% and Dobyns's 13%. Advancing to the general election, she faced Josh Shulman, the Democratic nominee and a financial planner. Peters was endorsed by the Tampa Bay Times, predicting that she would be a "moderate Republican voice in Tallahassee" and praising her for her political experience. She ended up narrowly defeating Shulman, winning 52% of the vote to his 48%.
2014 congressional campaign
Following the death of Republican United States Congressman Bill Young on October 18, 2013, a special election was held to replace him. On November 19, 2013, Peters announced that she would run to replace him, declaring that she would fight "the weak-willed, the preening and the posturing men" responsible for the dysfunction of the federal government. At her campaign's kickoff, she was introduced by, among others, Young's son, Bill Young II, and State Senator Jack Latvala. In the Republican primary, she faced David Jolly, a former aide to Young, and retired General Mark Bircher. During the course of the campaign, Peters received the support of a number of serving members of Congress, including Diane Black, Lynn Jenkins, and Ann Wagner, all of whom sought to increase the number of Republican women in their caucus, and who helped Peters fundraise. She received the endorsement of the Tampa Bay Times in her bid, which noted that, following Young's death, "[T]he best-known and best-qualified potential candidates declined to run," but that Peters "has the local experience and temperament to succeed even though she has a lot to learn about federal issues." The Tampa Tribune, meanwhile, endorsed Jolly over Peters, criticizing her for having a "knowledge of the issues facing Congress" that "only skims the surface," though praising her for her "reputation for doggedness" and for her efforts in "pushing through a measure that eliminated a tax inequity affecting condominium owners." Ultimately, however, Peters was defeated by Jolly, who had consistently performed better than her in public polls and in terms of fundraising, and she received 31% of the vote to Jolly's 45% and Bircher's 24%. Jolly would go on to win the election against Alex Sink, the Democratic nominee and the former Chief Financial Officer of Florida.
References
External links
Florida House of Representatives - Kathleen Peters
1961 births
Living people
Republican Party members of the Florida House of Representatives
Eckerd College alumni
People from Northbrook, Illinois
People from South Pasadena, Florida
Women state legislators in Florida
21st-century American politicians
21st-century American women politicians |
Elena Laumenskienė (16 July 1880 – 24 March 1960) was a Lithuanian composer, music educator, and pianist who published some music under the name Elena Stanekaite-Laumyanskene. Also Stanek, Moráuskienė, by marriages.
Laumyanskene was born in Radviliškis. She graduated from the Moscow Conservatory in 1907, where her teachers included Alexander Ilyinsky, Konstantin Igumnov, and Alexander Scriabin. She married Laumenskis.
Laumenskienė taught piano in Vilnius and Moscow. She founded the Lithuanian National Conservatory in Kaunas in 1930, managing it for the next decade. In 1940, she began teaching at the Vilnius Conservatory. During this time, she presented piano recitals in Kaunas, Moscow, and Vilnius. Her compositions were recorded commercially by Melodija (MELOD D 009587/8). She died in Vilnius.
Works
Laumenskienė's compositions included:
Chamber
Mazurka (violin and piano)
Memories (violin and piano)
Romance (violin and piano)
Tarantella (violin and piano)
Piano
more than 200 works (preludes, miniatures, children’s pieces)
Vocal
approximately 100 songs in Lithuanian
“Evening”
“I was Sad in the Night”
“It is Good for Your Heart”
References
Lithuanian composers
Lithuanian women composers
Lithuanian music educators
Lithuanian women music educators
Composers for piano
Lithuanian pianists
Lithuanian women pianists
1880 births
1960 deaths
Moscow Conservatory alumni
Composers for violin |
Unwanted Advances: Sexual Paranoia Comes to Campus is a 2017 book by the American cultural critic and feminist intellectual Laura Kipnis, published by Harper. The book is largely based on the case of the philosopher Peter Ludlow, who resigned from Northwestern University after a university disciplinary body found that he sexually harassed two students. Ludlow denied any wrongdoing and said the relationship was consensual. A central argument of the book is that "the stifling sense of sexual danger sweeping American campuses" and "neo-sentimentality about female vulnerability" do not empower women, but impede the fight for gender equality.
A student who had brought a Title IX complaint discussed at length in the book filed a lawsuit against Kipnis and her publisher, HarperCollins, alleging invasion of privacy, defamation, and other charges relating to the book. The case was settled. Kipnis has publicly stated, "In case there’s any confusion, Unwanted Advances remains in print and I stand by everything in the book." Unwanted Advances was named one of the Wall Street Journal's Ten Best Non-Fiction Books of 2017
References
Books about feminism
HarperCollins books
2017 non-fiction books
Campus sexual assault |
Elaphrus marginicollis is a species of ground beetle in the subfamily Elaphrinae. It was described by Goulet in 1983.
References
Elaphrinae
Beetles described in 1983 |
The Goshen News is a six-day, Monday through Saturday daily newspaper serving Goshen, Indiana, and adjacent portions of Elkhart, Kosciosko, Noble, LaGrange and Marshall Counties in Indiana. The paper publishes Monday through Friday with a Saturday Weekend edition. It is owned by CNHI, a subsidiary of Raycom Media.
History
The Goshen News has been in print since 1954.
Joseph A. Beane created the Goshen Daily Democrat in 1897, and it remained in print until 1933. The Goshen Democrat was a weekly edition of the paper that served rural subscribers. The Goshen Daily Democrat competed with George W. Kinnison's paper, the Goshen-News Times for several decades before they merged into the Goshen Daily News-Times and Democrat in 1933. The paper was owned by Kinnison and D.L. Barndhart under the News Print Co. The paper's name was shortened to the News-Democrat in 1936. The News-Democrat was renamed Goshen News in 1954. The paper was owned by Kinnison's relatives until 1999 when the family sold News Print Co. to Gray Communications Systems Inc., based out of Atlanta, Georgia. Community Newspaper Holdings Inc. bought the paper in 2006.
References
External links
Newspapers published in Indiana
Elkhart County, Indiana
Companies based in Elkhart County, Indiana
Newspapers established in 1837
1837 establishments in Indiana
References |
Abul-Mahāsin Abu Bakr Zaynuddin Azraqi () was an 11th-century poet who lived in Iran.
Firdowsi is said to have taken refuge in Azraqi's father's house (Ismail Varrāq, "the book seller") on his flight from Ghazneh to Tus.
Born in Herat, Azraqi was an eminent panegyrist. He turned Alfiyya va Shalfiyya into poetry, and is said to have presented himself to Shamsudowleh Abolfavāris Tughan-Shah, son of Alp Arslan. He also wrote a version of the Sandbad nama. Except for his qasidahs, none of the aforementioned works remain.
He died in 1072 CE.
References
Jan Rypka, History of Iranian Literature. Reidel Publishing Company. ASIN B-000-6BXVT-K
AZRAQĪ HERAVĪ in the Encyclopedia Iranica
See also
List of Persian poets and authors
Persian literature
1072 deaths
11th-century Persian-language poets
11th-century writers
Year of birth unknown
11th-century Iranian people |
is a Kofun period keyhole-shaped burial mound, located in the Yamashiro neighborhood of the city of Kizugawa, Kyoto in the Kansai region of Japan. The tumulus was designated a National Historic Site of Japan in 2008. It is noted for the bronze mirrors which were found within. These artifacts are collectively designated a National Important Cultural Property.
Overview
The Tsubai Ōtsukayama Kofun is a , which is shaped like a keyhole, having one square end and one circular end, when viewed from above. It is located at the end of a 60-meter hill approximately two kilometers north of where the Kizu River enters the plains of southern Yamashiro and turns north. In 1894, when the Nara Railway (now JR West Nara Line) track was being laid, the front of the posterior circular section of the tumulus was truncated, and in 1953, when the track was being widened during maintenance work, part of the tomb collapsed due to heavy rain, and a stone burial chamber was uncovered. This left the posterior portion with a semicircular shape, now covered in a bamboo forest. The anterior rectangular portion of the tumulus was also partially leveled, and private residences were constructed on the site. There is a cut approximately 15 meters wide to separate the hill from the east, and it appears to be the remnants of a surrounding moat. The total length of the tumulus is estimated to have been around 180 meters, and the posterior circular portion originally had a diameter of over 70 meters.
The burial chamber is a stylized pit-style stone chamber measuring 6.9 meters long from north-to-south, one meter wide, and three meters high.The walls are made of slabs and split stones, and the ceiling is also covered with slabs and thickly covered with clay. The floor is laid with flagstones, gravel, and sand, covered with clay, and contained long split bamboo-shaped wooden coffin. The interior of the stone chamber was painted vermilion, and the clay floor was sprinkled with more than 10 kilograms of cinnabar. Archaeological excavation of the burial chamber found 40 bronze mirrors, more than 30 of which were "Triangular-rimmed Divine Beast Mirrors" as descried in the Chinese chronicle ( "Records of Wei"), which is part of the Records of the Three Kingdoms (). Per this record, in the year 239 AD Emperor Cao Rui sent "one hundred bronze mirrors" to Queen Himiko of Wa, and as the tumulus dates from the late 3rd century, it is speculated that the mirrors excavated from this tomb correspond to some a portion of these mirrors; however, later investigation divided these mirrors into six designs, which were manufactured in Japan in almost the same place and area within a short period of time. There was also a possibility that the tomb contained more mirrors which have now gone missing due to grave theft
Other artifacts included more than 10 iron swords, seven iron spears, about 200 iron arrowheads, 17 bronze arrowheads, and one piece of iron armor. As for tools and agricultural implements, there are 3 iron sickles, 10 iron axes, eight iron drills, and three iron chisels as well as ten iron harpoons, several iron fishing spears, and one iron fishhook. In addition, an iron product suspected to be an iron crown was found.
The site is about 20 minutes walk from Kamikoma Station on the JR West Nara Line.
See also
List of Historic Sites of Japan (Kyoto)
References
External links
Kizugawa City home page
History of Kyoto Prefecture
Kizugawa, Kyoto
Historic Sites of Japan
Zenpokoenfun |
Christopher Wighton Moncrieff CBE (9 September 1931 – 22 November 2019) was a British journalist. He was the political editor of the Press Association from 1980 to 1994.
Early life
Moncrieff was born in Derby in 1931 to Robert Wighton Moncrieff and Winifred Margaret (née Hydon). His father had studied chemistry at Manchester University, and worked in the textile industry, including as superintendent of textile research for British Celanese. He wrote several books, including Man-Made Fibres: Wool Shrinkage and its Prevention and The Chemistry of Perfumery Materials.
Education
Moncrieff was educated at the Moravian Girls' School, an independent school in the village of Ockbrook, near his home in Chaddesden in Derbyshire. He said that his parents decided to send him there as they didn't believe the local council school was good enough, and that although there were other boys at the school, he nevertheless found it "very embarrassing" to have attended it. After time at Nottingham High School, he finished his education at Ellesmere College, Shropshire.
Life and career
Having left school at age 16, Moncrieff trained as a journalist at the Harrogate Herald and, after National Service in the Intelligence Corps, worked for six years at the Coventry Evening Telegraph and the Nottingham Evening Post. In 1962 he joined the Houses of Parliament political staff of the Press Association, a leading news agency, becoming a lobby correspondent in 1973 and then political editor in 1984.
Once a legendary drinker of Guinness, Moncrieff was teetotal from 1983. The Rev Ian Paisley, who used to insist on smelling the breath of journalists he was about to be interviewed by, once famously said to him "Moncrieff, is that the devil's buttermilk I smell on your breath?" Margaret Thatcher, a great admirer, made him a CBE in the 1990 New Year Honours. He officially retired in 1994, but continued to write political commentary for the Press Association and regularly appeared on political programmes on radio and television.
In November 2010 he was awarded a Diamond Jubilee Award for Political Journalism by the UK Political Studies Association on the occasion of the PSA's 60th Anniversary. Presenting the award, Financial Times journalist Sue Cameron told an anecdote of spying Moncrieff in the lobby at Westminster: "Looking for a story, Chris?" she enquired. "No," came the reply, "I've got the story. I'm just looking for somebody to say it."
Sir Bernard Ingham, Margaret Thatcher's former press secretary, said of Moncrieff: "He is the nearest approach to the 24-hour journalist I have ever known". Sir Nicholas Winterton MP said: "To me, the best journalist in this place is the oldest journalist, Chris Moncrieff. You tell him something; he reports it; he does not dress it up; he actually reports....Chris Moncrieff is the straightest man you could ever come across."
The refurbished press gallery bar at the House of Commons was renamed Moncrieff's in his honour.
Moncrieff was interviewed by National Life Stories (C467/20) in 2016 for the "Oral History of the British Press" collection held by the British Library.
He died in hospital after a short illness on 22 November 2019 at the age of 88.
Family life
He was married to actress Maggie (née Ferguson) from 1961 until her death in 2016. He had four children, Joanna, Sarah, Kate and Angus.
Bibliography
Living On a Deadline, Virgin Books Ltd, 2001.
Wine, Women and Westminster, JR Books, 2008.
References
1931 births
2019 deaths
British male journalists
Commanders of the Order of the British Empire
People from Chaddesden |
Colonial Air Transport was an early airline that flew between New York City and Boston, Massachusetts.
History
It was established as Bee Line on 16 March 1923 and operated out Naugatuck, Connecticut; in 1926 was reorganised in New York City by Juan Trippe.
Colonial acquired rights to fly the early U.S. airmail commercial route CAM-1, with the first flight held on July 26, 1926.
In 1927, the headquarters were moved to Boston.
On April 15 1929, they started passenger service between New York City and Boston, Massachusetts.
In May 1929, it was acquired by AVCO.
Fleet
The Colonial Air Transport fleet consisted of the following aircraft as of 1926:
See also
List of defunct airlines of the United States
References
Defunct airlines of the United States
Airlines established in 1926
Airlines disestablished in 1930
Companies based in Boston
Airlines based in Massachusetts |
Tobaiwa Mudede is the Registrar-General of Zimbabwe for Robert Mugabe's government. Mudede has been accused by international human rights organizations of falsifying voting records to ensure Mugabe remains in power. Mudede gained a reputation from foreign journalists as a key player in press censorship and a culpable member of the Mugabe regime for human rights violations.
Elections
Tobaiwa Mudede has been in charge of all elections held in Zimbabwe since 1980. His critics charge him with manipulating the elections to favor President Mugabe and ZANU-PF, a charge he denies.
Family
Tobaiwa Mudede is related to writer and filmmaker Charles Mudede.
References
Living people
1944 births
ZANU–PF politicians |
Almon Woodworth (April 1841 – October 5, 1908) was an American politician in the state of Washington. He served in the Washington House of Representatives from 1893 to 1897.
References
1841 births
1908 deaths
Republican Party members of the Washington House of Representatives
People from Union County, Pennsylvania
19th-century American politicians |
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/code-generator.h"
#include "src/compilation-info.h"
#include "src/compiler/code-generator-impl.h"
#include "src/compiler/gap-resolver.h"
#include "src/compiler/node-matchers.h"
#include "src/compiler/osr.h"
#include "src/mips/macro-assembler-mips.h"
namespace v8 {
namespace internal {
namespace compiler {
#define __ masm()->
// TODO(plind): Possibly avoid using these lithium names.
#define kScratchReg kLithiumScratchReg
#define kScratchReg2 kLithiumScratchReg2
#define kScratchDoubleReg kLithiumScratchDouble
// TODO(plind): consider renaming these macros.
#define TRACE_MSG(msg) \
PrintF("code_gen: \'%s\' in function %s at line %d\n", msg, __FUNCTION__, \
__LINE__)
#define TRACE_UNIMPL() \
PrintF("UNIMPLEMENTED code_generator_mips: %s at line %d\n", __FUNCTION__, \
__LINE__)
// Adds Mips-specific methods to convert InstructionOperands.
class MipsOperandConverter final : public InstructionOperandConverter {
public:
MipsOperandConverter(CodeGenerator* gen, Instruction* instr)
: InstructionOperandConverter(gen, instr) {}
FloatRegister OutputSingleRegister(size_t index = 0) {
return ToSingleRegister(instr_->OutputAt(index));
}
FloatRegister InputSingleRegister(size_t index) {
return ToSingleRegister(instr_->InputAt(index));
}
FloatRegister ToSingleRegister(InstructionOperand* op) {
// Single (Float) and Double register namespace is same on MIPS,
// both are typedefs of FPURegister.
return ToDoubleRegister(op);
}
Register InputOrZeroRegister(size_t index) {
if (instr_->InputAt(index)->IsImmediate()) {
DCHECK((InputInt32(index) == 0));
return zero_reg;
}
return InputRegister(index);
}
DoubleRegister InputOrZeroDoubleRegister(size_t index) {
if (instr_->InputAt(index)->IsImmediate()) return kDoubleRegZero;
return InputDoubleRegister(index);
}
DoubleRegister InputOrZeroSingleRegister(size_t index) {
if (instr_->InputAt(index)->IsImmediate()) return kDoubleRegZero;
return InputSingleRegister(index);
}
Operand InputImmediate(size_t index) {
Constant constant = ToConstant(instr_->InputAt(index));
switch (constant.type()) {
case Constant::kInt32:
return Operand(constant.ToInt32());
case Constant::kInt64:
return Operand(constant.ToInt64());
case Constant::kFloat32:
return Operand(
isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED));
case Constant::kFloat64:
return Operand(
isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED));
case Constant::kExternalReference:
case Constant::kHeapObject:
// TODO(plind): Maybe we should handle ExtRef & HeapObj here?
// maybe not done on arm due to const pool ??
break;
case Constant::kRpoNumber:
UNREACHABLE(); // TODO(titzer): RPO immediates on mips?
break;
}
UNREACHABLE();
return Operand(zero_reg);
}
Operand InputOperand(size_t index) {
InstructionOperand* op = instr_->InputAt(index);
if (op->IsRegister()) {
return Operand(ToRegister(op));
}
return InputImmediate(index);
}
MemOperand MemoryOperand(size_t* first_index) {
const size_t index = *first_index;
switch (AddressingModeField::decode(instr_->opcode())) {
case kMode_None:
break;
case kMode_MRI:
*first_index += 2;
return MemOperand(InputRegister(index + 0), InputInt32(index + 1));
case kMode_MRR:
// TODO(plind): r6 address mode, to be implemented ...
UNREACHABLE();
}
UNREACHABLE();
return MemOperand(no_reg);
}
MemOperand MemoryOperand(size_t index = 0) { return MemoryOperand(&index); }
MemOperand ToMemOperand(InstructionOperand* op) const {
DCHECK_NOT_NULL(op);
DCHECK(op->IsStackSlot() || op->IsFPStackSlot());
return SlotToMemOperand(AllocatedOperand::cast(op)->index());
}
MemOperand SlotToMemOperand(int slot) const {
FrameOffset offset = frame_access_state()->GetFrameOffset(slot);
return MemOperand(offset.from_stack_pointer() ? sp : fp, offset.offset());
}
};
static inline bool HasRegisterInput(Instruction* instr, size_t index) {
return instr->InputAt(index)->IsRegister();
}
namespace {
class OutOfLineLoadSingle final : public OutOfLineCode {
public:
OutOfLineLoadSingle(CodeGenerator* gen, FloatRegister result)
: OutOfLineCode(gen), result_(result) {}
void Generate() final {
__ Move(result_, std::numeric_limits<float>::quiet_NaN());
}
private:
FloatRegister const result_;
};
class OutOfLineLoadDouble final : public OutOfLineCode {
public:
OutOfLineLoadDouble(CodeGenerator* gen, DoubleRegister result)
: OutOfLineCode(gen), result_(result) {}
void Generate() final {
__ Move(result_, std::numeric_limits<double>::quiet_NaN());
}
private:
DoubleRegister const result_;
};
class OutOfLineLoadInteger final : public OutOfLineCode {
public:
OutOfLineLoadInteger(CodeGenerator* gen, Register result)
: OutOfLineCode(gen), result_(result) {}
void Generate() final { __ mov(result_, zero_reg); }
private:
Register const result_;
};
class OutOfLineRound : public OutOfLineCode {
public:
OutOfLineRound(CodeGenerator* gen, DoubleRegister result)
: OutOfLineCode(gen), result_(result) {}
void Generate() final {
// Handle rounding to zero case where sign has to be preserved.
// High bits of double input already in kScratchReg.
__ dsrl(at, kScratchReg, 31);
__ dsll(at, at, 31);
__ mthc1(at, result_);
}
private:
DoubleRegister const result_;
};
class OutOfLineRound32 : public OutOfLineCode {
public:
OutOfLineRound32(CodeGenerator* gen, DoubleRegister result)
: OutOfLineCode(gen), result_(result) {}
void Generate() final {
// Handle rounding to zero case where sign has to be preserved.
// High bits of float input already in kScratchReg.
__ srl(at, kScratchReg, 31);
__ sll(at, at, 31);
__ mtc1(at, result_);
}
private:
DoubleRegister const result_;
};
class OutOfLineRecordWrite final : public OutOfLineCode {
public:
OutOfLineRecordWrite(CodeGenerator* gen, Register object, Register index,
Register value, Register scratch0, Register scratch1,
RecordWriteMode mode)
: OutOfLineCode(gen),
object_(object),
index_(index),
value_(value),
scratch0_(scratch0),
scratch1_(scratch1),
mode_(mode),
must_save_lr_(!gen->frame_access_state()->has_frame()) {}
void Generate() final {
if (mode_ > RecordWriteMode::kValueIsPointer) {
__ JumpIfSmi(value_, exit());
}
__ CheckPageFlag(value_, scratch0_,
MemoryChunk::kPointersToHereAreInterestingMask, eq,
exit());
RememberedSetAction const remembered_set_action =
mode_ > RecordWriteMode::kValueIsMap ? EMIT_REMEMBERED_SET
: OMIT_REMEMBERED_SET;
SaveFPRegsMode const save_fp_mode =
frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs;
if (must_save_lr_) {
// We need to save and restore ra if the frame was elided.
__ Push(ra);
}
RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_,
remembered_set_action, save_fp_mode);
__ Daddu(scratch1_, object_, index_);
__ CallStub(&stub);
if (must_save_lr_) {
__ Pop(ra);
}
}
private:
Register const object_;
Register const index_;
Register const value_;
Register const scratch0_;
Register const scratch1_;
RecordWriteMode const mode_;
bool must_save_lr_;
};
#define CREATE_OOL_CLASS(ool_name, masm_ool_name, T) \
class ool_name final : public OutOfLineCode { \
public: \
ool_name(CodeGenerator* gen, T dst, T src1, T src2) \
: OutOfLineCode(gen), dst_(dst), src1_(src1), src2_(src2) {} \
\
void Generate() final { __ masm_ool_name(dst_, src1_, src2_); } \
\
private: \
T const dst_; \
T const src1_; \
T const src2_; \
}
CREATE_OOL_CLASS(OutOfLineFloat32Max, Float32MaxOutOfLine, FPURegister);
CREATE_OOL_CLASS(OutOfLineFloat32Min, Float32MinOutOfLine, FPURegister);
CREATE_OOL_CLASS(OutOfLineFloat64Max, Float64MaxOutOfLine, FPURegister);
CREATE_OOL_CLASS(OutOfLineFloat64Min, Float64MinOutOfLine, FPURegister);
#undef CREATE_OOL_CLASS
Condition FlagsConditionToConditionCmp(FlagsCondition condition) {
switch (condition) {
case kEqual:
return eq;
case kNotEqual:
return ne;
case kSignedLessThan:
return lt;
case kSignedGreaterThanOrEqual:
return ge;
case kSignedLessThanOrEqual:
return le;
case kSignedGreaterThan:
return gt;
case kUnsignedLessThan:
return lo;
case kUnsignedGreaterThanOrEqual:
return hs;
case kUnsignedLessThanOrEqual:
return ls;
case kUnsignedGreaterThan:
return hi;
case kUnorderedEqual:
case kUnorderedNotEqual:
break;
default:
break;
}
UNREACHABLE();
return kNoCondition;
}
Condition FlagsConditionToConditionTst(FlagsCondition condition) {
switch (condition) {
case kNotEqual:
return ne;
case kEqual:
return eq;
default:
break;
}
UNREACHABLE();
return kNoCondition;
}
Condition FlagsConditionToConditionOvf(FlagsCondition condition) {
switch (condition) {
case kOverflow:
return ne;
case kNotOverflow:
return eq;
default:
break;
}
UNREACHABLE();
return kNoCondition;
}
FPUCondition FlagsConditionToConditionCmpFPU(bool& predicate,
FlagsCondition condition) {
switch (condition) {
case kEqual:
predicate = true;
return EQ;
case kNotEqual:
predicate = false;
return EQ;
case kUnsignedLessThan:
predicate = true;
return OLT;
case kUnsignedGreaterThanOrEqual:
predicate = false;
return ULT;
case kUnsignedLessThanOrEqual:
predicate = true;
return OLE;
case kUnsignedGreaterThan:
predicate = false;
return ULE;
case kUnorderedEqual:
case kUnorderedNotEqual:
predicate = true;
break;
default:
predicate = true;
break;
}
UNREACHABLE();
return kNoFPUCondition;
}
} // namespace
#define ASSEMBLE_CHECKED_LOAD_FLOAT(width, asm_instr) \
do { \
auto result = i.Output##width##Register(); \
auto ool = new (zone()) OutOfLineLoad##width(this, result); \
if (instr->InputAt(0)->IsRegister()) { \
auto offset = i.InputRegister(0); \
__ Branch(USE_DELAY_SLOT, ool->entry(), hs, offset, i.InputOperand(1)); \
__ And(kScratchReg, offset, Operand(0xffffffff)); \
__ Daddu(kScratchReg, i.InputRegister(2), kScratchReg); \
__ asm_instr(result, MemOperand(kScratchReg, 0)); \
} else { \
int offset = static_cast<int>(i.InputOperand(0).immediate()); \
__ Branch(ool->entry(), ls, i.InputRegister(1), Operand(offset)); \
__ asm_instr(result, MemOperand(i.InputRegister(2), offset)); \
} \
__ bind(ool->exit()); \
} while (0)
#define ASSEMBLE_CHECKED_LOAD_INTEGER(asm_instr) \
do { \
auto result = i.OutputRegister(); \
auto ool = new (zone()) OutOfLineLoadInteger(this, result); \
if (instr->InputAt(0)->IsRegister()) { \
auto offset = i.InputRegister(0); \
__ Branch(USE_DELAY_SLOT, ool->entry(), hs, offset, i.InputOperand(1)); \
__ And(kScratchReg, offset, Operand(0xffffffff)); \
__ Daddu(kScratchReg, i.InputRegister(2), kScratchReg); \
__ asm_instr(result, MemOperand(kScratchReg, 0)); \
} else { \
int offset = static_cast<int>(i.InputOperand(0).immediate()); \
__ Branch(ool->entry(), ls, i.InputRegister(1), Operand(offset)); \
__ asm_instr(result, MemOperand(i.InputRegister(2), offset)); \
} \
__ bind(ool->exit()); \
} while (0)
#define ASSEMBLE_CHECKED_STORE_FLOAT(width, asm_instr) \
do { \
Label done; \
if (instr->InputAt(0)->IsRegister()) { \
auto offset = i.InputRegister(0); \
auto value = i.InputOrZero##width##Register(2); \
if (value.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { \
__ Move(kDoubleRegZero, 0.0); \
} \
__ Branch(USE_DELAY_SLOT, &done, hs, offset, i.InputOperand(1)); \
__ And(kScratchReg, offset, Operand(0xffffffff)); \
__ Daddu(kScratchReg, i.InputRegister(3), kScratchReg); \
__ asm_instr(value, MemOperand(kScratchReg, 0)); \
} else { \
int offset = static_cast<int>(i.InputOperand(0).immediate()); \
auto value = i.InputOrZero##width##Register(2); \
if (value.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) { \
__ Move(kDoubleRegZero, 0.0); \
} \
__ Branch(&done, ls, i.InputRegister(1), Operand(offset)); \
__ asm_instr(value, MemOperand(i.InputRegister(3), offset)); \
} \
__ bind(&done); \
} while (0)
#define ASSEMBLE_CHECKED_STORE_INTEGER(asm_instr) \
do { \
Label done; \
if (instr->InputAt(0)->IsRegister()) { \
auto offset = i.InputRegister(0); \
auto value = i.InputOrZeroRegister(2); \
__ Branch(USE_DELAY_SLOT, &done, hs, offset, i.InputOperand(1)); \
__ And(kScratchReg, offset, Operand(0xffffffff)); \
__ Daddu(kScratchReg, i.InputRegister(3), kScratchReg); \
__ asm_instr(value, MemOperand(kScratchReg, 0)); \
} else { \
int offset = static_cast<int>(i.InputOperand(0).immediate()); \
auto value = i.InputOrZeroRegister(2); \
__ Branch(&done, ls, i.InputRegister(1), Operand(offset)); \
__ asm_instr(value, MemOperand(i.InputRegister(3), offset)); \
} \
__ bind(&done); \
} while (0)
#define ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(mode) \
if (kArchVariant == kMips64r6) { \
__ cfc1(kScratchReg, FCSR); \
__ li(at, Operand(mode_##mode)); \
__ ctc1(at, FCSR); \
__ rint_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \
__ ctc1(kScratchReg, FCSR); \
} else { \
auto ool = new (zone()) OutOfLineRound(this, i.OutputDoubleRegister()); \
Label done; \
__ mfhc1(kScratchReg, i.InputDoubleRegister(0)); \
__ Ext(at, kScratchReg, HeapNumber::kExponentShift, \
HeapNumber::kExponentBits); \
__ Branch(USE_DELAY_SLOT, &done, hs, at, \
Operand(HeapNumber::kExponentBias + HeapNumber::kMantissaBits)); \
__ mov_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \
__ mode##_l_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \
__ dmfc1(at, i.OutputDoubleRegister()); \
__ Branch(USE_DELAY_SLOT, ool->entry(), eq, at, Operand(zero_reg)); \
__ cvt_d_l(i.OutputDoubleRegister(), i.OutputDoubleRegister()); \
__ bind(ool->exit()); \
__ bind(&done); \
}
#define ASSEMBLE_ROUND_FLOAT_TO_FLOAT(mode) \
if (kArchVariant == kMips64r6) { \
__ cfc1(kScratchReg, FCSR); \
__ li(at, Operand(mode_##mode)); \
__ ctc1(at, FCSR); \
__ rint_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \
__ ctc1(kScratchReg, FCSR); \
} else { \
int32_t kFloat32ExponentBias = 127; \
int32_t kFloat32MantissaBits = 23; \
int32_t kFloat32ExponentBits = 8; \
auto ool = new (zone()) OutOfLineRound32(this, i.OutputDoubleRegister()); \
Label done; \
__ mfc1(kScratchReg, i.InputDoubleRegister(0)); \
__ Ext(at, kScratchReg, kFloat32MantissaBits, kFloat32ExponentBits); \
__ Branch(USE_DELAY_SLOT, &done, hs, at, \
Operand(kFloat32ExponentBias + kFloat32MantissaBits)); \
__ mov_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \
__ mode##_w_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); \
__ mfc1(at, i.OutputDoubleRegister()); \
__ Branch(USE_DELAY_SLOT, ool->entry(), eq, at, Operand(zero_reg)); \
__ cvt_s_w(i.OutputDoubleRegister(), i.OutputDoubleRegister()); \
__ bind(ool->exit()); \
__ bind(&done); \
}
#define ASSEMBLE_ATOMIC_LOAD_INTEGER(asm_instr) \
do { \
__ asm_instr(i.OutputRegister(), i.MemoryOperand()); \
__ sync(); \
} while (0)
#define ASSEMBLE_ATOMIC_STORE_INTEGER(asm_instr) \
do { \
__ sync(); \
__ asm_instr(i.InputOrZeroRegister(2), i.MemoryOperand()); \
__ sync(); \
} while (0)
#define ASSEMBLE_IEEE754_BINOP(name) \
do { \
FrameScope scope(masm(), StackFrame::MANUAL); \
__ PrepareCallCFunction(0, 2, kScratchReg); \
__ MovToFloatParameters(i.InputDoubleRegister(0), \
i.InputDoubleRegister(1)); \
__ CallCFunction(ExternalReference::ieee754_##name##_function(isolate()), \
0, 2); \
/* Move the result in the double result register. */ \
__ MovFromFloatResult(i.OutputDoubleRegister()); \
} while (0)
#define ASSEMBLE_IEEE754_UNOP(name) \
do { \
FrameScope scope(masm(), StackFrame::MANUAL); \
__ PrepareCallCFunction(0, 1, kScratchReg); \
__ MovToFloatParameter(i.InputDoubleRegister(0)); \
__ CallCFunction(ExternalReference::ieee754_##name##_function(isolate()), \
0, 1); \
/* Move the result in the double result register. */ \
__ MovFromFloatResult(i.OutputDoubleRegister()); \
} while (0)
void CodeGenerator::AssembleDeconstructFrame() {
__ mov(sp, fp);
__ Pop(ra, fp);
}
void CodeGenerator::AssemblePrepareTailCall() {
if (frame_access_state()->has_frame()) {
__ ld(ra, MemOperand(fp, StandardFrameConstants::kCallerPCOffset));
__ ld(fp, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
}
frame_access_state()->SetFrameAccessToSP();
}
void CodeGenerator::AssemblePopArgumentsAdaptorFrame(Register args_reg,
Register scratch1,
Register scratch2,
Register scratch3) {
DCHECK(!AreAliased(args_reg, scratch1, scratch2, scratch3));
Label done;
// Check if current frame is an arguments adaptor frame.
__ ld(scratch3, MemOperand(fp, StandardFrameConstants::kContextOffset));
__ Branch(&done, ne, scratch3,
Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
// Load arguments count from current arguments adaptor frame (note, it
// does not include receiver).
Register caller_args_count_reg = scratch1;
__ ld(caller_args_count_reg,
MemOperand(fp, ArgumentsAdaptorFrameConstants::kLengthOffset));
__ SmiUntag(caller_args_count_reg);
ParameterCount callee_args_count(args_reg);
__ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2,
scratch3);
__ bind(&done);
}
namespace {
void AdjustStackPointerForTailCall(MacroAssembler* masm,
FrameAccessState* state,
int new_slot_above_sp,
bool allow_shrinkage = true) {
int current_sp_offset = state->GetSPToFPSlotCount() +
StandardFrameConstants::kFixedSlotCountAboveFp;
int stack_slot_delta = new_slot_above_sp - current_sp_offset;
if (stack_slot_delta > 0) {
masm->Dsubu(sp, sp, stack_slot_delta * kPointerSize);
state->IncreaseSPDelta(stack_slot_delta);
} else if (allow_shrinkage && stack_slot_delta < 0) {
masm->Daddu(sp, sp, -stack_slot_delta * kPointerSize);
state->IncreaseSPDelta(stack_slot_delta);
}
}
} // namespace
void CodeGenerator::AssembleTailCallBeforeGap(Instruction* instr,
int first_unused_stack_slot) {
AdjustStackPointerForTailCall(masm(), frame_access_state(),
first_unused_stack_slot, false);
}
void CodeGenerator::AssembleTailCallAfterGap(Instruction* instr,
int first_unused_stack_slot) {
AdjustStackPointerForTailCall(masm(), frame_access_state(),
first_unused_stack_slot);
}
// Assembles an instruction after register allocation, producing machine code.
CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
Instruction* instr) {
MipsOperandConverter i(this, instr);
InstructionCode opcode = instr->opcode();
ArchOpcode arch_opcode = ArchOpcodeField::decode(opcode);
switch (arch_opcode) {
case kArchCallCodeObject: {
EnsureSpaceForLazyDeopt();
if (instr->InputAt(0)->IsImmediate()) {
__ Call(Handle<Code>::cast(i.InputHeapObject(0)),
RelocInfo::CODE_TARGET);
} else {
__ daddiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag);
__ Call(at);
}
RecordCallPosition(instr);
frame_access_state()->ClearSPDelta();
break;
}
case kArchTailCallCodeObjectFromJSFunction:
case kArchTailCallCodeObject: {
if (arch_opcode == kArchTailCallCodeObjectFromJSFunction) {
AssemblePopArgumentsAdaptorFrame(kJavaScriptCallArgCountRegister,
i.TempRegister(0), i.TempRegister(1),
i.TempRegister(2));
}
if (instr->InputAt(0)->IsImmediate()) {
__ Jump(Handle<Code>::cast(i.InputHeapObject(0)),
RelocInfo::CODE_TARGET);
} else {
__ daddiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag);
__ Jump(at);
}
frame_access_state()->ClearSPDelta();
frame_access_state()->SetFrameAccessToDefault();
break;
}
case kArchTailCallAddress: {
CHECK(!instr->InputAt(0)->IsImmediate());
__ Jump(i.InputRegister(0));
frame_access_state()->ClearSPDelta();
frame_access_state()->SetFrameAccessToDefault();
break;
}
case kArchCallJSFunction: {
EnsureSpaceForLazyDeopt();
Register func = i.InputRegister(0);
if (FLAG_debug_code) {
// Check the function's context matches the context argument.
__ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset));
__ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg));
}
__ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
__ Call(at);
RecordCallPosition(instr);
frame_access_state()->ClearSPDelta();
break;
}
case kArchTailCallJSFunctionFromJSFunction: {
Register func = i.InputRegister(0);
if (FLAG_debug_code) {
// Check the function's context matches the context argument.
__ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset));
__ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg));
}
AssemblePopArgumentsAdaptorFrame(kJavaScriptCallArgCountRegister,
i.TempRegister(0), i.TempRegister(1),
i.TempRegister(2));
__ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
__ Jump(at);
frame_access_state()->ClearSPDelta();
frame_access_state()->SetFrameAccessToDefault();
break;
}
case kArchPrepareCallCFunction: {
int const num_parameters = MiscField::decode(instr->opcode());
__ PrepareCallCFunction(num_parameters, kScratchReg);
// Frame alignment requires using FP-relative frame addressing.
frame_access_state()->SetFrameAccessToFP();
break;
}
case kArchPrepareTailCall:
AssemblePrepareTailCall();
break;
case kArchCallCFunction: {
int const num_parameters = MiscField::decode(instr->opcode());
if (instr->InputAt(0)->IsImmediate()) {
ExternalReference ref = i.InputExternalReference(0);
__ CallCFunction(ref, num_parameters);
} else {
Register func = i.InputRegister(0);
__ CallCFunction(func, num_parameters);
}
frame_access_state()->SetFrameAccessToDefault();
frame_access_state()->ClearSPDelta();
break;
}
case kArchJmp:
AssembleArchJump(i.InputRpo(0));
break;
case kArchLookupSwitch:
AssembleArchLookupSwitch(instr);
break;
case kArchTableSwitch:
AssembleArchTableSwitch(instr);
break;
case kArchDebugBreak:
__ stop("kArchDebugBreak");
break;
case kArchComment: {
Address comment_string = i.InputExternalReference(0).address();
__ RecordComment(reinterpret_cast<const char*>(comment_string));
break;
}
case kArchNop:
case kArchThrowTerminator:
// don't emit code for nops.
break;
case kArchDeoptimize: {
int deopt_state_id =
BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
Deoptimizer::BailoutType bailout_type =
Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
CodeGenResult result = AssembleDeoptimizerCall(
deopt_state_id, bailout_type, current_source_position_);
if (result != kSuccess) return result;
break;
}
case kArchRet:
AssembleReturn(instr->InputAt(0));
break;
case kArchStackPointer:
__ mov(i.OutputRegister(), sp);
break;
case kArchFramePointer:
__ mov(i.OutputRegister(), fp);
break;
case kArchParentFramePointer:
if (frame_access_state()->has_frame()) {
__ ld(i.OutputRegister(), MemOperand(fp, 0));
} else {
__ mov(i.OutputRegister(), fp);
}
break;
case kArchTruncateDoubleToI:
__ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
break;
case kArchStoreWithWriteBarrier: {
RecordWriteMode mode =
static_cast<RecordWriteMode>(MiscField::decode(instr->opcode()));
Register object = i.InputRegister(0);
Register index = i.InputRegister(1);
Register value = i.InputRegister(2);
Register scratch0 = i.TempRegister(0);
Register scratch1 = i.TempRegister(1);
auto ool = new (zone()) OutOfLineRecordWrite(this, object, index, value,
scratch0, scratch1, mode);
__ Daddu(at, object, index);
__ sd(value, MemOperand(at));
__ CheckPageFlag(object, scratch0,
MemoryChunk::kPointersFromHereAreInterestingMask, ne,
ool->entry());
__ bind(ool->exit());
break;
}
case kArchStackSlot: {
FrameOffset offset =
frame_access_state()->GetFrameOffset(i.InputInt32(0));
__ Daddu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp,
Operand(offset.offset()));
break;
}
case kIeee754Float64Acos:
ASSEMBLE_IEEE754_UNOP(acos);
break;
case kIeee754Float64Acosh:
ASSEMBLE_IEEE754_UNOP(acosh);
break;
case kIeee754Float64Asin:
ASSEMBLE_IEEE754_UNOP(asin);
break;
case kIeee754Float64Asinh:
ASSEMBLE_IEEE754_UNOP(asinh);
break;
case kIeee754Float64Atan:
ASSEMBLE_IEEE754_UNOP(atan);
break;
case kIeee754Float64Atanh:
ASSEMBLE_IEEE754_UNOP(atanh);
break;
case kIeee754Float64Atan2:
ASSEMBLE_IEEE754_BINOP(atan2);
break;
case kIeee754Float64Cos:
ASSEMBLE_IEEE754_UNOP(cos);
break;
case kIeee754Float64Cosh:
ASSEMBLE_IEEE754_UNOP(cosh);
break;
case kIeee754Float64Cbrt:
ASSEMBLE_IEEE754_UNOP(cbrt);
break;
case kIeee754Float64Exp:
ASSEMBLE_IEEE754_UNOP(exp);
break;
case kIeee754Float64Expm1:
ASSEMBLE_IEEE754_UNOP(expm1);
break;
case kIeee754Float64Log:
ASSEMBLE_IEEE754_UNOP(log);
break;
case kIeee754Float64Log1p:
ASSEMBLE_IEEE754_UNOP(log1p);
break;
case kIeee754Float64Log2:
ASSEMBLE_IEEE754_UNOP(log2);
break;
case kIeee754Float64Log10:
ASSEMBLE_IEEE754_UNOP(log10);
break;
case kIeee754Float64Pow: {
MathPowStub stub(isolate(), MathPowStub::DOUBLE);
__ CallStub(&stub);
break;
}
case kIeee754Float64Sin:
ASSEMBLE_IEEE754_UNOP(sin);
break;
case kIeee754Float64Sinh:
ASSEMBLE_IEEE754_UNOP(sinh);
break;
case kIeee754Float64Tan:
ASSEMBLE_IEEE754_UNOP(tan);
break;
case kIeee754Float64Tanh:
ASSEMBLE_IEEE754_UNOP(tanh);
break;
case kMips64Add:
__ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Dadd:
__ Daddu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64DaddOvf:
// Pseudo-instruction used for overflow/branch. No opcode emitted here.
break;
case kMips64Sub:
__ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Dsub:
__ Dsubu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64DsubOvf:
// Pseudo-instruction used for overflow/branch. No opcode emitted here.
break;
case kMips64Mul:
__ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64MulOvf:
// Pseudo-instruction used for overflow/branch. No opcode emitted here.
break;
case kMips64MulHigh:
__ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64MulHighU:
__ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64DMulHigh:
__ Dmulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Div:
__ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
if (kArchVariant == kMips64r6) {
__ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1));
}
break;
case kMips64DivU:
__ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
if (kArchVariant == kMips64r6) {
__ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1));
}
break;
case kMips64Mod:
__ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64ModU:
__ Modu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Dmul:
__ Dmul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Ddiv:
__ Ddiv(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
if (kArchVariant == kMips64r6) {
__ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1));
}
break;
case kMips64DdivU:
__ Ddivu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
if (kArchVariant == kMips64r6) {
__ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1));
}
break;
case kMips64Dmod:
__ Dmod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64DmodU:
__ Dmodu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Dlsa:
DCHECK(instr->InputAt(2)->IsImmediate());
__ Dlsa(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
i.InputInt8(2));
break;
case kMips64Lsa:
DCHECK(instr->InputAt(2)->IsImmediate());
__ Lsa(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
i.InputInt8(2));
break;
case kMips64And:
__ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64And32:
if (instr->InputAt(1)->IsRegister()) {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ sll(i.InputRegister(1), i.InputRegister(1), 0x0);
__ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
} else {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ And(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
}
break;
case kMips64Or:
__ Or(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Or32:
if (instr->InputAt(1)->IsRegister()) {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ sll(i.InputRegister(1), i.InputRegister(1), 0x0);
__ Or(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
} else {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ Or(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
}
break;
case kMips64Nor:
if (instr->InputAt(1)->IsRegister()) {
__ Nor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
} else {
DCHECK(i.InputOperand(1).immediate() == 0);
__ Nor(i.OutputRegister(), i.InputRegister(0), zero_reg);
}
break;
case kMips64Nor32:
if (instr->InputAt(1)->IsRegister()) {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ sll(i.InputRegister(1), i.InputRegister(1), 0x0);
__ Nor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
} else {
DCHECK(i.InputOperand(1).immediate() == 0);
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ Nor(i.OutputRegister(), i.InputRegister(0), zero_reg);
}
break;
case kMips64Xor:
__ Xor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Xor32:
if (instr->InputAt(1)->IsRegister()) {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ sll(i.InputRegister(1), i.InputRegister(1), 0x0);
__ Xor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
} else {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ Xor(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
}
break;
case kMips64Clz:
__ Clz(i.OutputRegister(), i.InputRegister(0));
break;
case kMips64Dclz:
__ dclz(i.OutputRegister(), i.InputRegister(0));
break;
case kMips64Ctz: {
Register reg1 = kScratchReg;
Register reg2 = kScratchReg2;
Label skip_for_zero;
Label end;
// Branch if the operand is zero
__ Branch(&skip_for_zero, eq, i.InputRegister(0), Operand(zero_reg));
// Find the number of bits before the last bit set to 1.
__ Subu(reg2, zero_reg, i.InputRegister(0));
__ And(reg2, reg2, i.InputRegister(0));
__ clz(reg2, reg2);
// Get the number of bits after the last bit set to 1.
__ li(reg1, 0x1F);
__ Subu(i.OutputRegister(), reg1, reg2);
__ Branch(&end);
__ bind(&skip_for_zero);
// If the operand is zero, return word length as the result.
__ li(i.OutputRegister(), 0x20);
__ bind(&end);
} break;
case kMips64Dctz: {
Register reg1 = kScratchReg;
Register reg2 = kScratchReg2;
Label skip_for_zero;
Label end;
// Branch if the operand is zero
__ Branch(&skip_for_zero, eq, i.InputRegister(0), Operand(zero_reg));
// Find the number of bits before the last bit set to 1.
__ Dsubu(reg2, zero_reg, i.InputRegister(0));
__ And(reg2, reg2, i.InputRegister(0));
__ dclz(reg2, reg2);
// Get the number of bits after the last bit set to 1.
__ li(reg1, 0x3F);
__ Subu(i.OutputRegister(), reg1, reg2);
__ Branch(&end);
__ bind(&skip_for_zero);
// If the operand is zero, return word length as the result.
__ li(i.OutputRegister(), 0x40);
__ bind(&end);
} break;
case kMips64Popcnt: {
Register reg1 = kScratchReg;
Register reg2 = kScratchReg2;
uint32_t m1 = 0x55555555;
uint32_t m2 = 0x33333333;
uint32_t m4 = 0x0f0f0f0f;
uint32_t m8 = 0x00ff00ff;
uint32_t m16 = 0x0000ffff;
// Put count of ones in every 2 bits into those 2 bits.
__ li(at, m1);
__ dsrl(reg1, i.InputRegister(0), 1);
__ And(reg2, i.InputRegister(0), at);
__ And(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 4 bits into those 4 bits.
__ li(at, m2);
__ dsrl(reg2, reg1, 2);
__ And(reg2, reg2, at);
__ And(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 8 bits into those 8 bits.
__ li(at, m4);
__ dsrl(reg2, reg1, 4);
__ And(reg2, reg2, at);
__ And(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 16 bits into those 16 bits.
__ li(at, m8);
__ dsrl(reg2, reg1, 8);
__ And(reg2, reg2, at);
__ And(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Calculate total number of ones.
__ li(at, m16);
__ dsrl(reg2, reg1, 16);
__ And(reg2, reg2, at);
__ And(reg1, reg1, at);
__ Daddu(i.OutputRegister(), reg1, reg2);
} break;
case kMips64Dpopcnt: {
Register reg1 = kScratchReg;
Register reg2 = kScratchReg2;
uint64_t m1 = 0x5555555555555555;
uint64_t m2 = 0x3333333333333333;
uint64_t m4 = 0x0f0f0f0f0f0f0f0f;
uint64_t m8 = 0x00ff00ff00ff00ff;
uint64_t m16 = 0x0000ffff0000ffff;
uint64_t m32 = 0x00000000ffffffff;
// Put count of ones in every 2 bits into those 2 bits.
__ li(at, m1);
__ dsrl(reg1, i.InputRegister(0), 1);
__ and_(reg2, i.InputRegister(0), at);
__ and_(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 4 bits into those 4 bits.
__ li(at, m2);
__ dsrl(reg2, reg1, 2);
__ and_(reg2, reg2, at);
__ and_(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 8 bits into those 8 bits.
__ li(at, m4);
__ dsrl(reg2, reg1, 4);
__ and_(reg2, reg2, at);
__ and_(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 16 bits into those 16 bits.
__ li(at, m8);
__ dsrl(reg2, reg1, 8);
__ and_(reg2, reg2, at);
__ and_(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Put count of ones in every 32 bits into those 32 bits.
__ li(at, m16);
__ dsrl(reg2, reg1, 16);
__ and_(reg2, reg2, at);
__ and_(reg1, reg1, at);
__ Daddu(reg1, reg1, reg2);
// Calculate total number of ones.
__ li(at, m32);
__ dsrl32(reg2, reg1, 0);
__ and_(reg2, reg2, at);
__ and_(reg1, reg1, at);
__ Daddu(i.OutputRegister(), reg1, reg2);
} break;
case kMips64Shl:
if (instr->InputAt(1)->IsRegister()) {
__ sllv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
int64_t imm = i.InputOperand(1).immediate();
__ sll(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm));
}
break;
case kMips64Shr:
if (instr->InputAt(1)->IsRegister()) {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ srlv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
int64_t imm = i.InputOperand(1).immediate();
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ srl(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm));
}
break;
case kMips64Sar:
if (instr->InputAt(1)->IsRegister()) {
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ srav(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
int64_t imm = i.InputOperand(1).immediate();
__ sll(i.InputRegister(0), i.InputRegister(0), 0x0);
__ sra(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm));
}
break;
case kMips64Ext:
__ Ext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1),
i.InputInt8(2));
break;
case kMips64Ins:
if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) {
__ Ins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2));
} else {
__ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1),
i.InputInt8(2));
}
break;
case kMips64Dext: {
int16_t pos = i.InputInt8(1);
int16_t size = i.InputInt8(2);
if (size > 0 && size <= 32 && pos >= 0 && pos < 32) {
__ Dext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1),
i.InputInt8(2));
} else if (size > 32 && size <= 64 && pos > 0 && pos < 32) {
__ Dextm(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1),
i.InputInt8(2));
} else {
DCHECK(size > 0 && size <= 32 && pos >= 32 && pos < 64);
__ Dextu(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1),
i.InputInt8(2));
}
break;
}
case kMips64Dins:
if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) {
__ Dins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2));
} else {
__ Dins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1),
i.InputInt8(2));
}
break;
case kMips64Dshl:
if (instr->InputAt(1)->IsRegister()) {
__ dsllv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
int64_t imm = i.InputOperand(1).immediate();
if (imm < 32) {
__ dsll(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm));
} else {
__ dsll32(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm - 32));
}
}
break;
case kMips64Dshr:
if (instr->InputAt(1)->IsRegister()) {
__ dsrlv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
int64_t imm = i.InputOperand(1).immediate();
if (imm < 32) {
__ dsrl(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm));
} else {
__ dsrl32(i.OutputRegister(), i.InputRegister(0),
static_cast<uint16_t>(imm - 32));
}
}
break;
case kMips64Dsar:
if (instr->InputAt(1)->IsRegister()) {
__ dsrav(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
} else {
int64_t imm = i.InputOperand(1).immediate();
if (imm < 32) {
__ dsra(i.OutputRegister(), i.InputRegister(0), imm);
} else {
__ dsra32(i.OutputRegister(), i.InputRegister(0), imm - 32);
}
}
break;
case kMips64Ror:
__ Ror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Dror:
__ Dror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
break;
case kMips64Tst:
// Pseudo-instruction used for cmp/branch. No opcode emitted here.
break;
case kMips64Cmp:
// Pseudo-instruction used for cmp/branch. No opcode emitted here.
break;
case kMips64Mov:
// TODO(plind): Should we combine mov/li like this, or use separate instr?
// - Also see x64 ASSEMBLE_BINOP & RegisterOrOperandType
if (HasRegisterInput(instr, 0)) {
__ mov(i.OutputRegister(), i.InputRegister(0));
} else {
__ li(i.OutputRegister(), i.InputOperand(0));
}
break;
case kMips64CmpS:
// Psuedo-instruction used for FP cmp/branch. No opcode emitted here.
break;
case kMips64AddS:
// TODO(plind): add special case: combine mult & add.
__ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64SubS:
__ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64MulS:
// TODO(plind): add special case: right op is -1.0, see arm port.
__ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64DivS:
__ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64ModS: {
// TODO(bmeurer): We should really get rid of this special instruction,
// and generate a CallAddress instruction instead.
FrameScope scope(masm(), StackFrame::MANUAL);
__ PrepareCallCFunction(0, 2, kScratchReg);
__ MovToFloatParameters(i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
// TODO(balazs.kilvady): implement mod_two_floats_operation(isolate())
__ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()),
0, 2);
// Move the result in the double result register.
__ MovFromFloatResult(i.OutputSingleRegister());
break;
}
case kMips64AbsS:
__ abs_s(i.OutputSingleRegister(), i.InputSingleRegister(0));
break;
case kMips64NegS:
__ Neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0));
break;
case kMips64SqrtS: {
__ sqrt_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
break;
}
case kMips64MaxS:
__ max_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64MinS:
__ min_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64CmpD:
// Psuedo-instruction used for FP cmp/branch. No opcode emitted here.
break;
case kMips64AddD:
// TODO(plind): add special case: combine mult & add.
__ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64SubD:
__ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64MaddS:
__ madd_s(i.OutputFloatRegister(), i.InputFloatRegister(0),
i.InputFloatRegister(1), i.InputFloatRegister(2));
break;
case kMips64MaddD:
__ madd_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1), i.InputDoubleRegister(2));
break;
case kMips64MaddfS:
__ maddf_s(i.OutputFloatRegister(), i.InputFloatRegister(1),
i.InputFloatRegister(2));
break;
case kMips64MaddfD:
__ maddf_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1),
i.InputDoubleRegister(2));
break;
case kMips64MsubS:
__ msub_s(i.OutputFloatRegister(), i.InputFloatRegister(0),
i.InputFloatRegister(1), i.InputFloatRegister(2));
break;
case kMips64MsubD:
__ msub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1), i.InputDoubleRegister(2));
break;
case kMips64MsubfS:
__ msubf_s(i.OutputFloatRegister(), i.InputFloatRegister(1),
i.InputFloatRegister(2));
break;
case kMips64MsubfD:
__ msubf_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1),
i.InputDoubleRegister(2));
break;
case kMips64MulD:
// TODO(plind): add special case: right op is -1.0, see arm port.
__ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64DivD:
__ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64ModD: {
// TODO(bmeurer): We should really get rid of this special instruction,
// and generate a CallAddress instruction instead.
FrameScope scope(masm(), StackFrame::MANUAL);
__ PrepareCallCFunction(0, 2, kScratchReg);
__ MovToFloatParameters(i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
__ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()),
0, 2);
// Move the result in the double result register.
__ MovFromFloatResult(i.OutputDoubleRegister());
break;
}
case kMips64AbsD:
__ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
break;
case kMips64NegD:
__ Neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
break;
case kMips64SqrtD: {
__ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
break;
}
case kMips64MaxD:
__ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64MinD:
__ min_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
i.InputDoubleRegister(1));
break;
case kMips64Float64RoundDown: {
ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(floor);
break;
}
case kMips64Float32RoundDown: {
ASSEMBLE_ROUND_FLOAT_TO_FLOAT(floor);
break;
}
case kMips64Float64RoundTruncate: {
ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(trunc);
break;
}
case kMips64Float32RoundTruncate: {
ASSEMBLE_ROUND_FLOAT_TO_FLOAT(trunc);
break;
}
case kMips64Float64RoundUp: {
ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(ceil);
break;
}
case kMips64Float32RoundUp: {
ASSEMBLE_ROUND_FLOAT_TO_FLOAT(ceil);
break;
}
case kMips64Float64RoundTiesEven: {
ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(round);
break;
}
case kMips64Float32RoundTiesEven: {
ASSEMBLE_ROUND_FLOAT_TO_FLOAT(round);
break;
}
case kMips64Float32Max: {
FPURegister dst = i.OutputSingleRegister();
FPURegister src1 = i.InputSingleRegister(0);
FPURegister src2 = i.InputSingleRegister(1);
auto ool = new (zone()) OutOfLineFloat32Max(this, dst, src1, src2);
__ Float32Max(dst, src1, src2, ool->entry());
__ bind(ool->exit());
break;
}
case kMips64Float64Max: {
FPURegister dst = i.OutputDoubleRegister();
FPURegister src1 = i.InputDoubleRegister(0);
FPURegister src2 = i.InputDoubleRegister(1);
auto ool = new (zone()) OutOfLineFloat64Max(this, dst, src1, src2);
__ Float64Max(dst, src1, src2, ool->entry());
__ bind(ool->exit());
break;
}
case kMips64Float32Min: {
FPURegister dst = i.OutputSingleRegister();
FPURegister src1 = i.InputSingleRegister(0);
FPURegister src2 = i.InputSingleRegister(1);
auto ool = new (zone()) OutOfLineFloat32Min(this, dst, src1, src2);
__ Float32Min(dst, src1, src2, ool->entry());
__ bind(ool->exit());
break;
}
case kMips64Float64Min: {
FPURegister dst = i.OutputDoubleRegister();
FPURegister src1 = i.InputDoubleRegister(0);
FPURegister src2 = i.InputDoubleRegister(1);
auto ool = new (zone()) OutOfLineFloat64Min(this, dst, src1, src2);
__ Float64Min(dst, src1, src2, ool->entry());
__ bind(ool->exit());
break;
}
case kMips64Float64SilenceNaN:
__ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
break;
case kMips64CvtSD:
__ cvt_s_d(i.OutputSingleRegister(), i.InputDoubleRegister(0));
break;
case kMips64CvtDS:
__ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0));
break;
case kMips64CvtDW: {
FPURegister scratch = kScratchDoubleReg;
__ mtc1(i.InputRegister(0), scratch);
__ cvt_d_w(i.OutputDoubleRegister(), scratch);
break;
}
case kMips64CvtSW: {
FPURegister scratch = kScratchDoubleReg;
__ mtc1(i.InputRegister(0), scratch);
__ cvt_s_w(i.OutputDoubleRegister(), scratch);
break;
}
case kMips64CvtSUw: {
__ Cvt_s_uw(i.OutputDoubleRegister(), i.InputRegister(0));
break;
}
case kMips64CvtSL: {
FPURegister scratch = kScratchDoubleReg;
__ dmtc1(i.InputRegister(0), scratch);
__ cvt_s_l(i.OutputDoubleRegister(), scratch);
break;
}
case kMips64CvtDL: {
FPURegister scratch = kScratchDoubleReg;
__ dmtc1(i.InputRegister(0), scratch);
__ cvt_d_l(i.OutputDoubleRegister(), scratch);
break;
}
case kMips64CvtDUw: {
__ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0));
break;
}
case kMips64CvtDUl: {
__ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0));
break;
}
case kMips64CvtSUl: {
__ Cvt_s_ul(i.OutputDoubleRegister(), i.InputRegister(0));
break;
}
case kMips64FloorWD: {
FPURegister scratch = kScratchDoubleReg;
__ floor_w_d(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64CeilWD: {
FPURegister scratch = kScratchDoubleReg;
__ ceil_w_d(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64RoundWD: {
FPURegister scratch = kScratchDoubleReg;
__ round_w_d(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64TruncWD: {
FPURegister scratch = kScratchDoubleReg;
// Other arches use round to zero here, so we follow.
__ trunc_w_d(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64FloorWS: {
FPURegister scratch = kScratchDoubleReg;
__ floor_w_s(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64CeilWS: {
FPURegister scratch = kScratchDoubleReg;
__ ceil_w_s(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64RoundWS: {
FPURegister scratch = kScratchDoubleReg;
__ round_w_s(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
break;
}
case kMips64TruncWS: {
FPURegister scratch = kScratchDoubleReg;
__ trunc_w_s(scratch, i.InputDoubleRegister(0));
__ mfc1(i.OutputRegister(), scratch);
// Avoid INT32_MAX as an overflow indicator and use INT32_MIN instead,
// because INT32_MIN allows easier out-of-bounds detection.
__ addiu(kScratchReg, i.OutputRegister(), 1);
__ slt(kScratchReg2, kScratchReg, i.OutputRegister());
__ Movn(i.OutputRegister(), kScratchReg, kScratchReg2);
break;
}
case kMips64TruncLS: {
FPURegister scratch = kScratchDoubleReg;
Register tmp_fcsr = kScratchReg;
Register result = kScratchReg2;
bool load_status = instr->OutputCount() > 1;
if (load_status) {
// Save FCSR.
__ cfc1(tmp_fcsr, FCSR);
// Clear FPU flags.
__ ctc1(zero_reg, FCSR);
}
// Other arches use round to zero here, so we follow.
__ trunc_l_s(scratch, i.InputDoubleRegister(0));
__ dmfc1(i.OutputRegister(), scratch);
if (load_status) {
__ cfc1(result, FCSR);
// Check for overflow and NaNs.
__ andi(result, result,
(kFCSROverflowFlagMask | kFCSRInvalidOpFlagMask));
__ Slt(result, zero_reg, result);
__ xori(result, result, 1);
__ mov(i.OutputRegister(1), result);
// Restore FCSR
__ ctc1(tmp_fcsr, FCSR);
}
break;
}
case kMips64TruncLD: {
FPURegister scratch = kScratchDoubleReg;
Register tmp_fcsr = kScratchReg;
Register result = kScratchReg2;
bool load_status = instr->OutputCount() > 1;
if (load_status) {
// Save FCSR.
__ cfc1(tmp_fcsr, FCSR);
// Clear FPU flags.
__ ctc1(zero_reg, FCSR);
}
// Other arches use round to zero here, so we follow.
__ trunc_l_d(scratch, i.InputDoubleRegister(0));
__ dmfc1(i.OutputRegister(0), scratch);
if (load_status) {
__ cfc1(result, FCSR);
// Check for overflow and NaNs.
__ andi(result, result,
(kFCSROverflowFlagMask | kFCSRInvalidOpFlagMask));
__ Slt(result, zero_reg, result);
__ xori(result, result, 1);
__ mov(i.OutputRegister(1), result);
// Restore FCSR
__ ctc1(tmp_fcsr, FCSR);
}
break;
}
case kMips64TruncUwD: {
FPURegister scratch = kScratchDoubleReg;
// TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function.
__ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
break;
}
case kMips64TruncUwS: {
FPURegister scratch = kScratchDoubleReg;
// TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function.
__ Trunc_uw_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
// Avoid UINT32_MAX as an overflow indicator and use 0 instead,
// because 0 allows easier out-of-bounds detection.
__ addiu(kScratchReg, i.OutputRegister(), 1);
__ Movz(i.OutputRegister(), zero_reg, kScratchReg);
break;
}
case kMips64TruncUlS: {
FPURegister scratch = kScratchDoubleReg;
Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg;
// TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function.
__ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch,
result);
break;
}
case kMips64TruncUlD: {
FPURegister scratch = kScratchDoubleReg;
Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg;
// TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function.
__ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(0), scratch,
result);
break;
}
case kMips64BitcastDL:
__ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0));
break;
case kMips64BitcastLD:
__ dmtc1(i.InputRegister(0), i.OutputDoubleRegister());
break;
case kMips64Float64ExtractLowWord32:
__ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0));
break;
case kMips64Float64ExtractHighWord32:
__ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
break;
case kMips64Float64InsertLowWord32:
__ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
break;
case kMips64Float64InsertHighWord32:
__ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
break;
// ... more basic instructions ...
case kMips64Seb:
__ seb(i.OutputRegister(), i.InputRegister(0));
break;
case kMips64Seh:
__ seh(i.OutputRegister(), i.InputRegister(0));
break;
case kMips64Lbu:
__ lbu(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Lb:
__ lb(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Sb:
__ sb(i.InputOrZeroRegister(2), i.MemoryOperand());
break;
case kMips64Lhu:
__ lhu(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Ulhu:
__ Ulhu(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Lh:
__ lh(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Ulh:
__ Ulh(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Sh:
__ sh(i.InputOrZeroRegister(2), i.MemoryOperand());
break;
case kMips64Ush:
__ Ush(i.InputOrZeroRegister(2), i.MemoryOperand(), kScratchReg);
break;
case kMips64Lw:
__ lw(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Ulw:
__ Ulw(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Lwu:
__ lwu(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Ulwu:
__ Ulwu(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Ld:
__ ld(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Uld:
__ Uld(i.OutputRegister(), i.MemoryOperand());
break;
case kMips64Sw:
__ sw(i.InputOrZeroRegister(2), i.MemoryOperand());
break;
case kMips64Usw:
__ Usw(i.InputOrZeroRegister(2), i.MemoryOperand());
break;
case kMips64Sd:
__ sd(i.InputOrZeroRegister(2), i.MemoryOperand());
break;
case kMips64Usd:
__ Usd(i.InputOrZeroRegister(2), i.MemoryOperand());
break;
case kMips64Lwc1: {
__ lwc1(i.OutputSingleRegister(), i.MemoryOperand());
break;
}
case kMips64Ulwc1: {
__ Ulwc1(i.OutputSingleRegister(), i.MemoryOperand(), kScratchReg);
break;
}
case kMips64Swc1: {
size_t index = 0;
MemOperand operand = i.MemoryOperand(&index);
FPURegister ft = i.InputOrZeroSingleRegister(index);
if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
__ swc1(ft, operand);
break;
}
case kMips64Uswc1: {
size_t index = 0;
MemOperand operand = i.MemoryOperand(&index);
FPURegister ft = i.InputOrZeroSingleRegister(index);
if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
__ Uswc1(ft, operand, kScratchReg);
break;
}
case kMips64Ldc1:
__ ldc1(i.OutputDoubleRegister(), i.MemoryOperand());
break;
case kMips64Uldc1:
__ Uldc1(i.OutputDoubleRegister(), i.MemoryOperand(), kScratchReg);
break;
case kMips64Sdc1: {
FPURegister ft = i.InputOrZeroDoubleRegister(2);
if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
__ sdc1(ft, i.MemoryOperand());
break;
}
case kMips64Usdc1: {
FPURegister ft = i.InputOrZeroDoubleRegister(2);
if (ft.is(kDoubleRegZero) && !__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
__ Usdc1(ft, i.MemoryOperand(), kScratchReg);
break;
}
case kMips64Push:
if (instr->InputAt(0)->IsFPRegister()) {
__ sdc1(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize));
__ Subu(sp, sp, Operand(kDoubleSize));
frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize);
} else {
__ Push(i.InputRegister(0));
frame_access_state()->IncreaseSPDelta(1);
}
break;
case kMips64StackClaim: {
__ Dsubu(sp, sp, Operand(i.InputInt32(0)));
frame_access_state()->IncreaseSPDelta(i.InputInt32(0) / kPointerSize);
break;
}
case kMips64StoreToStackSlot: {
if (instr->InputAt(0)->IsFPRegister()) {
__ sdc1(i.InputDoubleRegister(0), MemOperand(sp, i.InputInt32(1)));
} else {
__ sd(i.InputRegister(0), MemOperand(sp, i.InputInt32(1)));
}
break;
}
case kMips64ByteSwap64: {
__ ByteSwapSigned(i.OutputRegister(0), i.InputRegister(0), 8);
break;
}
case kMips64ByteSwap32: {
__ ByteSwapUnsigned(i.OutputRegister(0), i.InputRegister(0), 4);
__ dsrl32(i.OutputRegister(0), i.OutputRegister(0), 0);
break;
}
case kCheckedLoadInt8:
ASSEMBLE_CHECKED_LOAD_INTEGER(lb);
break;
case kCheckedLoadUint8:
ASSEMBLE_CHECKED_LOAD_INTEGER(lbu);
break;
case kCheckedLoadInt16:
ASSEMBLE_CHECKED_LOAD_INTEGER(lh);
break;
case kCheckedLoadUint16:
ASSEMBLE_CHECKED_LOAD_INTEGER(lhu);
break;
case kCheckedLoadWord32:
ASSEMBLE_CHECKED_LOAD_INTEGER(lw);
break;
case kCheckedLoadWord64:
ASSEMBLE_CHECKED_LOAD_INTEGER(ld);
break;
case kCheckedLoadFloat32:
ASSEMBLE_CHECKED_LOAD_FLOAT(Single, lwc1);
break;
case kCheckedLoadFloat64:
ASSEMBLE_CHECKED_LOAD_FLOAT(Double, ldc1);
break;
case kCheckedStoreWord8:
ASSEMBLE_CHECKED_STORE_INTEGER(sb);
break;
case kCheckedStoreWord16:
ASSEMBLE_CHECKED_STORE_INTEGER(sh);
break;
case kCheckedStoreWord32:
ASSEMBLE_CHECKED_STORE_INTEGER(sw);
break;
case kCheckedStoreWord64:
ASSEMBLE_CHECKED_STORE_INTEGER(sd);
break;
case kCheckedStoreFloat32:
ASSEMBLE_CHECKED_STORE_FLOAT(Single, swc1);
break;
case kCheckedStoreFloat64:
ASSEMBLE_CHECKED_STORE_FLOAT(Double, sdc1);
break;
case kAtomicLoadInt8:
ASSEMBLE_ATOMIC_LOAD_INTEGER(lb);
break;
case kAtomicLoadUint8:
ASSEMBLE_ATOMIC_LOAD_INTEGER(lbu);
break;
case kAtomicLoadInt16:
ASSEMBLE_ATOMIC_LOAD_INTEGER(lh);
break;
case kAtomicLoadUint16:
ASSEMBLE_ATOMIC_LOAD_INTEGER(lhu);
break;
case kAtomicLoadWord32:
ASSEMBLE_ATOMIC_LOAD_INTEGER(lw);
break;
case kAtomicStoreWord8:
ASSEMBLE_ATOMIC_STORE_INTEGER(sb);
break;
case kAtomicStoreWord16:
ASSEMBLE_ATOMIC_STORE_INTEGER(sh);
break;
case kAtomicStoreWord32:
ASSEMBLE_ATOMIC_STORE_INTEGER(sw);
break;
case kMips64AssertEqual:
__ Assert(eq, static_cast<BailoutReason>(i.InputOperand(2).immediate()),
i.InputRegister(0), Operand(i.InputRegister(1)));
break;
}
return kSuccess;
} // NOLINT(readability/fn_size)
#define UNSUPPORTED_COND(opcode, condition) \
OFStream out(stdout); \
out << "Unsupported " << #opcode << " condition: \"" << condition << "\""; \
UNIMPLEMENTED();
static bool convertCondition(FlagsCondition condition, Condition& cc) {
switch (condition) {
case kEqual:
cc = eq;
return true;
case kNotEqual:
cc = ne;
return true;
case kUnsignedLessThan:
cc = lt;
return true;
case kUnsignedGreaterThanOrEqual:
cc = uge;
return true;
case kUnsignedLessThanOrEqual:
cc = le;
return true;
case kUnsignedGreaterThan:
cc = ugt;
return true;
default:
break;
}
return false;
}
// Assembles branches after an instruction.
void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) {
MipsOperandConverter i(this, instr);
Label* tlabel = branch->true_label;
Label* flabel = branch->false_label;
Condition cc = kNoCondition;
// MIPS does not have condition code flags, so compare and branch are
// implemented differently than on the other arch's. The compare operations
// emit mips psuedo-instructions, which are handled here by branch
// instructions that do the actual comparison. Essential that the input
// registers to compare pseudo-op are not modified before this branch op, as
// they are tested here.
if (instr->arch_opcode() == kMips64Tst) {
cc = FlagsConditionToConditionTst(branch->condition);
__ And(at, i.InputRegister(0), i.InputOperand(1));
__ Branch(tlabel, cc, at, Operand(zero_reg));
} else if (instr->arch_opcode() == kMips64Dadd ||
instr->arch_opcode() == kMips64Dsub) {
cc = FlagsConditionToConditionOvf(branch->condition);
__ dsra32(kScratchReg, i.OutputRegister(), 0);
__ sra(at, i.OutputRegister(), 31);
__ Branch(tlabel, cc, at, Operand(kScratchReg));
} else if (instr->arch_opcode() == kMips64DaddOvf) {
switch (branch->condition) {
case kOverflow:
__ DaddBranchOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), tlabel, flabel);
break;
case kNotOverflow:
__ DaddBranchOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), flabel, tlabel);
break;
default:
UNSUPPORTED_COND(kMips64DaddOvf, branch->condition);
break;
}
} else if (instr->arch_opcode() == kMips64DsubOvf) {
switch (branch->condition) {
case kOverflow:
__ DsubBranchOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), tlabel, flabel);
break;
case kNotOverflow:
__ DsubBranchOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), flabel, tlabel);
break;
default:
UNSUPPORTED_COND(kMips64DsubOvf, branch->condition);
break;
}
} else if (instr->arch_opcode() == kMips64MulOvf) {
switch (branch->condition) {
case kOverflow: {
__ MulBranchOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), tlabel, flabel, kScratchReg);
} break;
case kNotOverflow: {
__ MulBranchOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), flabel, tlabel, kScratchReg);
} break;
default:
UNSUPPORTED_COND(kMips64MulOvf, branch->condition);
break;
}
} else if (instr->arch_opcode() == kMips64Cmp) {
cc = FlagsConditionToConditionCmp(branch->condition);
__ Branch(tlabel, cc, i.InputRegister(0), i.InputOperand(1));
} else if (instr->arch_opcode() == kMips64CmpS) {
if (!convertCondition(branch->condition, cc)) {
UNSUPPORTED_COND(kMips64CmpS, branch->condition);
}
FPURegister left = i.InputOrZeroSingleRegister(0);
FPURegister right = i.InputOrZeroSingleRegister(1);
if ((left.is(kDoubleRegZero) || right.is(kDoubleRegZero)) &&
!__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
__ BranchF32(tlabel, nullptr, cc, left, right);
} else if (instr->arch_opcode() == kMips64CmpD) {
if (!convertCondition(branch->condition, cc)) {
UNSUPPORTED_COND(kMips64CmpD, branch->condition);
}
FPURegister left = i.InputOrZeroDoubleRegister(0);
FPURegister right = i.InputOrZeroDoubleRegister(1);
if ((left.is(kDoubleRegZero) || right.is(kDoubleRegZero)) &&
!__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
__ BranchF64(tlabel, nullptr, cc, left, right);
} else {
PrintF("AssembleArchBranch Unimplemented arch_opcode: %d\n",
instr->arch_opcode());
UNIMPLEMENTED();
}
if (!branch->fallthru) __ Branch(flabel); // no fallthru to flabel.
}
void CodeGenerator::AssembleArchJump(RpoNumber target) {
if (!IsNextInAssemblyOrder(target)) __ Branch(GetLabel(target));
}
// Assembles boolean materializations after an instruction.
void CodeGenerator::AssembleArchBoolean(Instruction* instr,
FlagsCondition condition) {
MipsOperandConverter i(this, instr);
Label done;
// Materialize a full 32-bit 1 or 0 value. The result register is always the
// last output of the instruction.
Label false_value;
DCHECK_NE(0u, instr->OutputCount());
Register result = i.OutputRegister(instr->OutputCount() - 1);
Condition cc = kNoCondition;
// MIPS does not have condition code flags, so compare and branch are
// implemented differently than on the other arch's. The compare operations
// emit mips pseudo-instructions, which are checked and handled here.
if (instr->arch_opcode() == kMips64Tst) {
cc = FlagsConditionToConditionTst(condition);
if (instr->InputAt(1)->IsImmediate() &&
base::bits::IsPowerOfTwo64(i.InputOperand(1).immediate())) {
uint16_t pos =
base::bits::CountTrailingZeros64(i.InputOperand(1).immediate());
__ ExtractBits(result, i.InputRegister(0), pos, 1);
} else {
__ And(kScratchReg, i.InputRegister(0), i.InputOperand(1));
__ Sltu(result, zero_reg, kScratchReg);
}
if (cc == eq) {
// Sltu produces 0 for equality, invert the result.
__ xori(result, result, 1);
}
return;
} else if (instr->arch_opcode() == kMips64Dadd ||
instr->arch_opcode() == kMips64Dsub) {
cc = FlagsConditionToConditionOvf(condition);
// Check for overflow creates 1 or 0 for result.
__ dsrl32(kScratchReg, i.OutputRegister(), 31);
__ srl(at, i.OutputRegister(), 31);
__ xor_(result, kScratchReg, at);
if (cc == eq) // Toggle result for not overflow.
__ xori(result, result, 1);
return;
} else if (instr->arch_opcode() == kMips64DaddOvf ||
instr->arch_opcode() == kMips64DsubOvf ||
instr->arch_opcode() == kMips64MulOvf) {
Label flabel, tlabel;
switch (instr->arch_opcode()) {
case kMips64DaddOvf:
__ DaddBranchNoOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), &flabel);
break;
case kMips64DsubOvf:
__ DsubBranchNoOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), &flabel);
break;
case kMips64MulOvf:
__ MulBranchNoOvf(i.OutputRegister(), i.InputRegister(0),
i.InputOperand(1), &flabel, kScratchReg);
break;
default:
UNREACHABLE();
break;
}
__ li(result, 1);
__ Branch(&tlabel);
__ bind(&flabel);
__ li(result, 0);
__ bind(&tlabel);
} else if (instr->arch_opcode() == kMips64Cmp) {
cc = FlagsConditionToConditionCmp(condition);
switch (cc) {
case eq:
case ne: {
Register left = i.InputRegister(0);
Operand right = i.InputOperand(1);
Register select;
if (instr->InputAt(1)->IsImmediate() && right.immediate() == 0) {
// Pass left operand if right is zero.
select = left;
} else {
__ Dsubu(kScratchReg, left, right);
select = kScratchReg;
}
__ Sltu(result, zero_reg, select);
if (cc == eq) {
// Sltu produces 0 for equality, invert the result.
__ xori(result, result, 1);
}
} break;
case lt:
case ge: {
Register left = i.InputRegister(0);
Operand right = i.InputOperand(1);
__ Slt(result, left, right);
if (cc == ge) {
__ xori(result, result, 1);
}
} break;
case gt:
case le: {
Register left = i.InputRegister(1);
Operand right = i.InputOperand(0);
__ Slt(result, left, right);
if (cc == le) {
__ xori(result, result, 1);
}
} break;
case lo:
case hs: {
Register left = i.InputRegister(0);
Operand right = i.InputOperand(1);
__ Sltu(result, left, right);
if (cc == hs) {
__ xori(result, result, 1);
}
} break;
case hi:
case ls: {
Register left = i.InputRegister(1);
Operand right = i.InputOperand(0);
__ Sltu(result, left, right);
if (cc == ls) {
__ xori(result, result, 1);
}
} break;
default:
UNREACHABLE();
}
return;
} else if (instr->arch_opcode() == kMips64CmpD ||
instr->arch_opcode() == kMips64CmpS) {
FPURegister left = i.InputOrZeroDoubleRegister(0);
FPURegister right = i.InputOrZeroDoubleRegister(1);
if ((left.is(kDoubleRegZero) || right.is(kDoubleRegZero)) &&
!__ IsDoubleZeroRegSet()) {
__ Move(kDoubleRegZero, 0.0);
}
bool predicate;
FPUCondition cc = FlagsConditionToConditionCmpFPU(predicate, condition);
if (kArchVariant != kMips64r6) {
__ li(result, Operand(1));
if (instr->arch_opcode() == kMips64CmpD) {
__ c(cc, D, left, right);
} else {
DCHECK(instr->arch_opcode() == kMips64CmpS);
__ c(cc, S, left, right);
}
if (predicate) {
__ Movf(result, zero_reg);
} else {
__ Movt(result, zero_reg);
}
} else {
if (instr->arch_opcode() == kMips64CmpD) {
__ cmp(cc, L, kDoubleCompareReg, left, right);
} else {
DCHECK(instr->arch_opcode() == kMips64CmpS);
__ cmp(cc, W, kDoubleCompareReg, left, right);
}
__ dmfc1(result, kDoubleCompareReg);
__ andi(result, result, 1); // Cmp returns all 1's/0's, use only LSB.
if (!predicate) // Toggle result for not equal.
__ xori(result, result, 1);
}
return;
} else {
PrintF("AssembleArchBranch Unimplemented arch_opcode is : %d\n",
instr->arch_opcode());
TRACE_UNIMPL();
UNIMPLEMENTED();
}
}
void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) {
MipsOperandConverter i(this, instr);
Register input = i.InputRegister(0);
for (size_t index = 2; index < instr->InputCount(); index += 2) {
__ li(at, Operand(i.InputInt32(index + 0)));
__ beq(input, at, GetLabel(i.InputRpo(index + 1)));
}
__ nop(); // Branch delay slot of the last beq.
AssembleArchJump(i.InputRpo(1));
}
void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) {
MipsOperandConverter i(this, instr);
Register input = i.InputRegister(0);
size_t const case_count = instr->InputCount() - 2;
__ Branch(GetLabel(i.InputRpo(1)), hs, input, Operand(case_count));
__ GenerateSwitchTable(input, case_count, [&i, this](size_t index) {
return GetLabel(i.InputRpo(index + 2));
});
}
CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
int deoptimization_id, Deoptimizer::BailoutType bailout_type,
SourcePosition pos) {
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
isolate(), deoptimization_id, bailout_type);
if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
DeoptimizeReason deoptimization_reason =
GetDeoptimizationReason(deoptimization_id);
__ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
__ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
return kSuccess;
}
void CodeGenerator::FinishFrame(Frame* frame) {
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
if (saves_fpu != 0) {
int count = base::bits::CountPopulation32(saves_fpu);
DCHECK(kNumCalleeSavedFPU == count);
frame->AllocateSavedCalleeRegisterSlots(count *
(kDoubleSize / kPointerSize));
}
const RegList saves = descriptor->CalleeSavedRegisters();
if (saves != 0) {
int count = base::bits::CountPopulation32(saves);
DCHECK(kNumCalleeSaved == count + 1);
frame->AllocateSavedCalleeRegisterSlots(count);
}
}
void CodeGenerator::AssembleConstructFrame() {
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
if (frame_access_state()->has_frame()) {
if (descriptor->IsCFunctionCall()) {
__ Push(ra, fp);
__ mov(fp, sp);
} else if (descriptor->IsJSFunctionCall()) {
__ Prologue(this->info()->GeneratePreagedPrologue());
if (descriptor->PushArgumentCount()) {
__ Push(kJavaScriptCallArgCountRegister);
}
} else {
__ StubPrologue(info()->GetOutputStackFrameType());
}
}
int shrink_slots =
frame()->GetTotalFrameSlotCount() - descriptor->CalculateFixedFrameSize();
if (info()->is_osr()) {
// TurboFan OSR-compiled functions cannot be entered directly.
__ Abort(kShouldNotDirectlyEnterOsrFunction);
// Unoptimized code jumps directly to this entrypoint while the unoptimized
// frame is still on the stack. Optimized code uses OSR values directly from
// the unoptimized frame. Thus, all that needs to be done is to allocate the
// remaining stack slots.
if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --");
osr_pc_offset_ = __ pc_offset();
shrink_slots -= OsrHelper(info()).UnoptimizedFrameSlots();
}
if (shrink_slots > 0) {
__ Dsubu(sp, sp, Operand(shrink_slots * kPointerSize));
}
const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
if (saves_fpu != 0) {
// Save callee-saved FPU registers.
__ MultiPushFPU(saves_fpu);
DCHECK(kNumCalleeSavedFPU == base::bits::CountPopulation32(saves_fpu));
}
const RegList saves = descriptor->CalleeSavedRegisters();
if (saves != 0) {
// Save callee-saved registers.
__ MultiPush(saves);
DCHECK(kNumCalleeSaved == base::bits::CountPopulation32(saves) + 1);
}
}
void CodeGenerator::AssembleReturn(InstructionOperand* pop) {
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
// Restore GP registers.
const RegList saves = descriptor->CalleeSavedRegisters();
if (saves != 0) {
__ MultiPop(saves);
}
// Restore FPU registers.
const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
if (saves_fpu != 0) {
__ MultiPopFPU(saves_fpu);
}
MipsOperandConverter g(this, nullptr);
if (descriptor->IsCFunctionCall()) {
AssembleDeconstructFrame();
} else if (frame_access_state()->has_frame()) {
// Canonicalize JSFunction return sites for now unless they have an variable
// number of stack slot pops.
if (pop->IsImmediate() && g.ToConstant(pop).ToInt32() == 0) {
if (return_label_.is_bound()) {
__ Branch(&return_label_);
return;
} else {
__ bind(&return_label_);
AssembleDeconstructFrame();
}
} else {
AssembleDeconstructFrame();
}
}
int pop_count = static_cast<int>(descriptor->StackParameterCount());
if (pop->IsImmediate()) {
DCHECK_EQ(Constant::kInt32, g.ToConstant(pop).type());
pop_count += g.ToConstant(pop).ToInt32();
} else {
Register pop_reg = g.ToRegister(pop);
__ dsll(pop_reg, pop_reg, kPointerSizeLog2);
__ Daddu(sp, sp, pop_reg);
}
if (pop_count != 0) {
__ DropAndRet(pop_count);
} else {
__ Ret();
}
}
void CodeGenerator::AssembleMove(InstructionOperand* source,
InstructionOperand* destination) {
MipsOperandConverter g(this, nullptr);
// Dispatch on the source and destination operand kinds. Not all
// combinations are possible.
if (source->IsRegister()) {
DCHECK(destination->IsRegister() || destination->IsStackSlot());
Register src = g.ToRegister(source);
if (destination->IsRegister()) {
__ mov(g.ToRegister(destination), src);
} else {
__ sd(src, g.ToMemOperand(destination));
}
} else if (source->IsStackSlot()) {
DCHECK(destination->IsRegister() || destination->IsStackSlot());
MemOperand src = g.ToMemOperand(source);
if (destination->IsRegister()) {
__ ld(g.ToRegister(destination), src);
} else {
Register temp = kScratchReg;
__ ld(temp, src);
__ sd(temp, g.ToMemOperand(destination));
}
} else if (source->IsConstant()) {
Constant src = g.ToConstant(source);
if (destination->IsRegister() || destination->IsStackSlot()) {
Register dst =
destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
switch (src.type()) {
case Constant::kInt32:
if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
__ li(dst, Operand(src.ToInt32(), src.rmode()));
} else {
__ li(dst, Operand(src.ToInt32()));
}
break;
case Constant::kFloat32:
__ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED));
break;
case Constant::kInt64:
if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) {
__ li(dst, Operand(src.ToInt64(), src.rmode()));
} else {
DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
__ li(dst, Operand(src.ToInt64()));
}
break;
case Constant::kFloat64:
__ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED));
break;
case Constant::kExternalReference:
__ li(dst, Operand(src.ToExternalReference()));
break;
case Constant::kHeapObject: {
Handle<HeapObject> src_object = src.ToHeapObject();
Heap::RootListIndex index;
if (IsMaterializableFromRoot(src_object, &index)) {
__ LoadRoot(dst, index);
} else {
__ li(dst, src_object);
}
break;
}
case Constant::kRpoNumber:
UNREACHABLE(); // TODO(titzer): loading RPO numbers on mips64.
break;
}
if (destination->IsStackSlot()) __ sd(dst, g.ToMemOperand(destination));
} else if (src.type() == Constant::kFloat32) {
if (destination->IsFPStackSlot()) {
MemOperand dst = g.ToMemOperand(destination);
if (bit_cast<int32_t>(src.ToFloat32()) == 0) {
__ sw(zero_reg, dst);
} else {
__ li(at, Operand(bit_cast<int32_t>(src.ToFloat32())));
__ sw(at, dst);
}
} else {
DCHECK(destination->IsFPRegister());
FloatRegister dst = g.ToSingleRegister(destination);
__ Move(dst, src.ToFloat32());
}
} else {
DCHECK_EQ(Constant::kFloat64, src.type());
DoubleRegister dst = destination->IsFPRegister()
? g.ToDoubleRegister(destination)
: kScratchDoubleReg;
__ Move(dst, src.ToFloat64());
if (destination->IsFPStackSlot()) {
__ sdc1(dst, g.ToMemOperand(destination));
}
}
} else if (source->IsFPRegister()) {
FPURegister src = g.ToDoubleRegister(source);
if (destination->IsFPRegister()) {
FPURegister dst = g.ToDoubleRegister(destination);
__ Move(dst, src);
} else {
DCHECK(destination->IsFPStackSlot());
__ sdc1(src, g.ToMemOperand(destination));
}
} else if (source->IsFPStackSlot()) {
DCHECK(destination->IsFPRegister() || destination->IsFPStackSlot());
MemOperand src = g.ToMemOperand(source);
if (destination->IsFPRegister()) {
__ ldc1(g.ToDoubleRegister(destination), src);
} else {
FPURegister temp = kScratchDoubleReg;
__ ldc1(temp, src);
__ sdc1(temp, g.ToMemOperand(destination));
}
} else {
UNREACHABLE();
}
}
void CodeGenerator::AssembleSwap(InstructionOperand* source,
InstructionOperand* destination) {
MipsOperandConverter g(this, nullptr);
// Dispatch on the source and destination operand kinds. Not all
// combinations are possible.
if (source->IsRegister()) {
// Register-register.
Register temp = kScratchReg;
Register src = g.ToRegister(source);
if (destination->IsRegister()) {
Register dst = g.ToRegister(destination);
__ Move(temp, src);
__ Move(src, dst);
__ Move(dst, temp);
} else {
DCHECK(destination->IsStackSlot());
MemOperand dst = g.ToMemOperand(destination);
__ mov(temp, src);
__ ld(src, dst);
__ sd(temp, dst);
}
} else if (source->IsStackSlot()) {
DCHECK(destination->IsStackSlot());
Register temp_0 = kScratchReg;
Register temp_1 = kScratchReg2;
MemOperand src = g.ToMemOperand(source);
MemOperand dst = g.ToMemOperand(destination);
__ ld(temp_0, src);
__ ld(temp_1, dst);
__ sd(temp_0, dst);
__ sd(temp_1, src);
} else if (source->IsFPRegister()) {
FPURegister temp = kScratchDoubleReg;
FPURegister src = g.ToDoubleRegister(source);
if (destination->IsFPRegister()) {
FPURegister dst = g.ToDoubleRegister(destination);
__ Move(temp, src);
__ Move(src, dst);
__ Move(dst, temp);
} else {
DCHECK(destination->IsFPStackSlot());
MemOperand dst = g.ToMemOperand(destination);
__ Move(temp, src);
__ ldc1(src, dst);
__ sdc1(temp, dst);
}
} else if (source->IsFPStackSlot()) {
DCHECK(destination->IsFPStackSlot());
Register temp_0 = kScratchReg;
FPURegister temp_1 = kScratchDoubleReg;
MemOperand src0 = g.ToMemOperand(source);
MemOperand src1(src0.rm(), src0.offset() + kIntSize);
MemOperand dst0 = g.ToMemOperand(destination);
MemOperand dst1(dst0.rm(), dst0.offset() + kIntSize);
__ ldc1(temp_1, dst0); // Save destination in temp_1.
__ lw(temp_0, src0); // Then use temp_0 to copy source to destination.
__ sw(temp_0, dst0);
__ lw(temp_0, src1);
__ sw(temp_0, dst1);
__ sdc1(temp_1, src0);
} else {
// No other combinations are possible.
UNREACHABLE();
}
}
void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) {
// On 64-bit MIPS we emit the jump tables inline.
UNREACHABLE();
}
void CodeGenerator::EnsureSpaceForLazyDeopt() {
if (!info()->ShouldEnsureSpaceForLazyDeopt()) {
return;
}
int space_needed = Deoptimizer::patch_size();
// Ensure that we have enough space after the previous lazy-bailout
// instruction for patching the code here.
int current_pc = masm()->pc_offset();
if (current_pc < last_lazy_deopt_pc_ + space_needed) {
// Block tramoline pool emission for duration of padding.
v8::internal::Assembler::BlockTrampolinePoolScope block_trampoline_pool(
masm());
int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
DCHECK_EQ(0, padding_size % v8::internal::Assembler::kInstrSize);
while (padding_size > 0) {
__ nop();
padding_size -= v8::internal::Assembler::kInstrSize;
}
}
}
#undef __
} // namespace compiler
} // namespace internal
} // namespace v8
``` |
(also frutta di Martorana or, in Sicilian, ) are traditional marzipan sweets, in the form of fruits and vegetables, from the provinces of Palermo and Messina, Sicily.
Realistically coloured with vegetable dyes, they are said to have originated at the Monastero della Martorana, Palermo, when nuns decorated empty fruit trees with marzipan fruit to impress an archbishop visiting at Easter. They are traditionally put by children's bedsides on All Souls' Day.
See also
List of Sicilian dishes
References
External links
Martorana fruit Commercial page with image
Italian confectionery
Cuisine of Sicily
Marzipan |
Festuca petraea is a species of grass endemic to the Azores, Portugal. It is found in coastal cliffs and rocks. It is present in all of the nine islands.
References
petraea
Endemic flora of the Azores |
```protocol buffer
syntax = "proto2";
package object_detection.protos;
// Message to configure graph rewriter for the tf graph.
message GraphRewriter {
optional Quantization quantization = 1;
extensions 1000 to max;
}
// Message for quantization options. See
// tensorflow/contrib/quantize/python/quantize.py for details.
message Quantization {
// Number of steps to delay before quantization takes effect during training.
optional int32 delay = 1 [default = 500000];
// Number of bits to use for quantizing weights.
// Only 8 bit is supported for now.
optional int32 weight_bits = 2 [default = 8];
// Number of bits to use for quantizing activations.
// Only 8 bit is supported for now.
optional int32 activation_bits = 3 [default = 8];
// Whether to use symmetric weight quantization.
optional bool symmetric = 4 [default = false];
}
``` |
The 2018 Basketball Champions League (BCL) Final Four was the second Basketball Champions League tournament. It was the concluding phase of the 2017–18 Basketball Champions League season.
Venue
The O.A.C.A. Olympic Indoor Hall hosted the final tournament for the first time.
Teams
Road to the Final Four
Background
MHP Riesen Ludwigsburg
Ludwigsburg qualified for its first ever final phase of a European competition, as in the 2016–17 season they were eliminated by Banvit on a buzzer-beater. In the Basketball Bundesliga (BBL), Riesen was having a solid year as it was battling for playoff position. In the BCL play-offs, Riesen eliminated two German sides, EWE Baskets Oldenburg and medi Bayreuth in order to advance to the final four.
Monaco
Monaco was at the top of the standings in its domestic Pro A season. In February, Monaco won the Leaders Cup for its third consecutive time. In the previous season, the team also qualified for the Final Four but was eliminated in the semi-finals, by runners-up Banvit.
AEK Athens
AEK was having a successful season as well, as the team captured its fourth Greek Cup title, while beating EuroLeague teams Olympiacos and Panathinaikos on the way. AEK had a remarkable path to the final four, as it was nearly eliminated in the round of 16 but was saved by a three-pointer by Kevin Punter to defeat Czech side ČEZ Nymburk. In the quarter-finals, AEK eliminated French side SIG Strasbourg.
Guard Manny Harris was named the Basketball Champions League MVP as well.
UCAM Murcia
In its first BCL season, and just its second year ever playing in European competitions, Murcia eliminated the defending champions Iberostar Tenerife in the round of 16. In the quarter-finals, Pınar Karşıyaka was defeated. In the 2017–18 ACB season, Murcia was close to qualifying to the playoffs.
Bracket
Semifinals
MHP Riesen Ludwigsburg vs Monaco
AEK Athens vs UCAM Murcia
Third place game
Final
References
External links
Basketball Champions League (official website)
Final Four
Basketball Champions League
International sports competitions hosted by Greece
Sports competitions in Athens |
Bhosari (IAST: Bhosarī), historically known as Bhojapur, is a suburb in the city of Pune, India. It is well known for its cultural and sports activities like Wrestling and Kabaddi
History
Bhosari is situated at a height of above sea level. Bhosari has a salubrious climate all year round. Excavated by archaeologists, the 2000-year-old 'Artist temple' and the "Artist Mahal" is one of the monuments of interest in the township. King Bhoj is known to have organized many cultural events here. The artists performing at the "Artist Mahal" had their residence three kilometers away from the capital city. During excavation of the city, archaeologists discovered many artifacts, like pots and other equipments, which date back to 200 A.D. Currently Bhosari is known for most crowded place in Pimpri-Chinchwad and especially for Wrestling. Many sport centers for wrestling are contributing in building national and international champions.
Bhosari village has a history dating to Gautam Buddha's era.
Location
Bhosari is north from the center of Pune City. The NH60 (Pune - Nashik National Highway) goes through Bhosari.
Bhosari Maharashtra Industrial Development Corporation is the largest industrial area in this region containing big companies like Tata Motors, Philips, Thermax, Century Enka etc.
References
Cities and towns in Pune district
Neighbourhoods in Pimpri-Chinchwad |
The Life, also known as We Are ODST, is a television and cinema advertisement launched in 2009 by Microsoft to promote the first-person shooter Halo 3: ODST in the United States. The 150-second piece follows a young soldier through enlistment, training, and battle as an Orbital Drop Shock Trooper (ODST), analogous to a paratrooper that drops from space to a battlefield. The Life was created by advertising agency T.A.G., an offshoot of McCann Erickson. Production of the commercial itself was handled by production company Morton/Jankel/Zander (MJZ). It was directed by Rupert Sanders, and post-production was conducted by Asylum. It was filmed in Hungary, just outside Budapest in a coal mine and abandoned factories to give the sequence an "Eastern Bloc" aesthetic. The commercial and its associated campaign proved hugely successful; on the week of its launch, Halo 3: ODST became the top-selling game for the Xbox 360 worldwide, and over 2.5 million copies were sold within the first few weeks of release. The Life went on to win a number of honours from the advertising and entertainment industries, including two Clio Awards, a London International Advertising Award and several honours from the Cannes Lions International Advertising Festival, the most prestigious awards ceremony in the advertising industry.
Sequence
The Life opens to a military funeral of an ODST. Rows of candles arranged along the floor burn as a bagpiper plays a dirge. The assembled mourners, a mix of military personnel and civilians, attend as the casket's red ODST flag is removed, revealing the name of the deceased. A young man looks on as the cloth is ceremonially folded and passed to a woman among the mourners. A song in Welsh begins to play as the attending officer orders a gun salute in Hungarian. The camera cuts to another scene; the young man, Tarkov, is having his head shaved in the first of a montage of scenes depicting Tarkov undergoing recruit training. Again, the camera cuts ahead. Tarkov is in a one-man "drop pod", known in universe as the Single Occupant Exoatmospheric Insertion Vehicle (SOEIV), entering the atmosphere of an alien planet, onto a battlefield. He emerges under fire alongside several other soldiers, moving over corpses and through plasma fire until a Covenant Brute knocks him aside, sending his helmet flying and scarring Tarkov's face. Tarkov unholsters and fires his M6S (silenced M-6 magnum) sidearm at the Brute to no avail. However, he is saved when a falling alien aircraft crashes into the Brute, killing it. The film jumps ahead again; Tarkov is now a veteran soldier, and oversees a memorial service for one of his fallen comrades amidst burning ruins with a recruit that bears a resemblance to a younger Tarkov. Soon, sounds of gunfire draws him and his team back to the fight, closing with the lines "We are ODST" which transitions again into "Halo 3: ODST".
Production
Background
In 1999, Microsoft made the decision to consolidate its marketing efforts with a single advertising agency, after several years of partnership with different agencies for each of its product line. They entertained pitches from each of the agencies on their roster, and ultimately assigned the global account to McCann Erickson. McCann was assigned the task of promoting what would become the killer app of the Xbox, the video game Halo: Combat Evolved. The launch campaign was hugely successful, selling over five million copies of the game worldwide. The success of Halo: Combat Evolved led to a series of sequels and tie-in merchandise including books and action figures.
In 2007, McCann launched a multi-platform global advertising campaign titled Believe, that included six minutes of live-action sequences called Landfall, to promote the latest game in the Halo series, Halo 3. Landfall was directed by Neill Blomkamp who also agreed to direct a full length Halo film, but it was cancelled due to funding disagreements. Believe proved a critical and financial hit. Over £84 million of sales were made on the first day of release alone, the highest-grossing opening sale of an entertainment product at the time. Believe received dozens of awards from the advertising community, including eight Clio Awards, Best in Show at the ANDY Awards, and two Grand Prix (for Film and Integrated campaigns) at the Cannes Lions International Advertising Festival, the most prestigious awards ceremony in the advertising industry. According to the Gunn Report, Believe was the second-most-awarded integrated advertising campaign of 2008, behind Earth Hour for the World Wide Fund for Nature.
In 2012, due to the success of Landfall and The Life, Halo 4: Forward Unto Dawn was created to broaden the audience of Halo 4. Released initially as five 15-minute episodes online, it was later released as a ninety-minute extended cut on DVD and Blu-ray. Microsoft considers it the "next step" between advertising material and a full-length film, and Frank O'Connor, development director for the Halo franchise, has said that a film will be made "when the time is right". Live action shorts were also used in the advertisement of Halo: Reach focusing on the Spartan supersoldiers of the Halo universe. Two shorts, The Birth of a Spartan and Deliver Hope were made, again to appeal to customers who were unfamiliar with the series.
Filming
In early 2009, McCann received a brief to create a new campaign for the latest entrant into the Halo series, a first-person shooter called Halo 3: ODST. It would be the first game in the franchise not to feature the series' protagonist, the Master Chief. McCann returned with a pitch for a campaign in the same vein as Believe, aiming to humanize the soldiers featured in the Halo universe. The project was greenlit, and McCann brought back several collaborators from Believe to handle this new campaign, now given the working title of The Life.
Director Rupert Sanders, known for his work with production company MJZ on campaigns such as Lava for Guinness and Great Return for Nike, Inc., was given five weeks to produce the commercial, with three days set aside for filming. Several locations were scouted for shooting, with an eye towards an "Eastern Bloc" aesthetic. These included several areas around Chernobyl, Ukraine. However, the tight schedule precluded using locations too distant from one another for different scenes and, in the end, three spots outside of Budapest, Hungary were settled upon: the cooling tower of an active nuclear power station was dressed to act as the backdrop to the opening funeral scene; an open-pit coal mine served as the setting for the battle scenes, and an abandoned aluminum factory was used to stage the closing funeral scene.
Sanders drew inspiration for the shooting style and aesthetic of the commercial from a variety of sources, including news footage from journalists embedded with military forces in Afghanistan, and Russian feature films such as Stalker and Come and See. To keep the details within the commercial consistent with established Halo canon, the creators of the Halo series, Bungie, provided Sanders with information on aspects ranging from appropriate fur color and rank insignia for the Brute, to the armor and weaponry of the ODST soldiers.
Post-production
With filming complete, MJZ contacted post-production company Asylum to begin work on the substantial visual effects component of The Life. The team, led by Visual Effects Supervisor Robert Moggach, tripled in size as the scale of the work required became apparent, given the deadline of three weeks. Work on the opening funeral scene was relatively easy, requiring the creation of only minor elements such as additional tombstones in the foreground and color correction on the actors. The same was true for the training sequence, where only minimal tracking work and compositing of matte backgrounds was required. The bulk of the visual effects work was in the battle sequence. This ranged from simple work such as wire removal to the creation of dynamic lighting and reflections from visors and armor, to particle effects for the background smoke and dust, plasma weapon fire and alterations to some of the filmed explosions to lend them the appearance given to plasma explosions within the Halo games. The entire background was a 3D projection of matte paintings and dramatic skies. While the Brute was partially animatronic, substantial adjustments such as scaling to almost twice the size and the enhancement of fine muscle movements of the creature were made. Other elements, such as the Banshee aircraft and the drop-pods, were created entirely through the use of CGI. Software used by Asylum FX included Flame and Nuke for compositing, Maya for animation, RenderMan and Mantra for rendering, SynthEyes for tracking, Silhouette Pro for rotoscoping work.
Music
The Life was scored by Gareth Williams, a composer for Human Worldwide. The music, an arrangement of Light of Aidan's "Lament", was created specifically for the ad, and featured a wide variety of instruments. Percussive elements included military snare drums, a hand drum, Samoan log drums and stones tapped against one another. These were joined by a Great Highland Bagpipe and traditional string orchestration such as a double bass and cello. Vocals were provided by Kathy Fisher who, despite not being a native speaker of the language, sang the Welsh lyrics provided by Williams. The song was later expanded by Williams and used in the original soundtrack for King Arthur: Legend of the Sword under the title "Politics and The Life".
Release and reception
The Life premiered online as a 90-second cut on September 4, 2009, on both the social networking website MySpace and news and review website IGN. This was followed by its first appearance on U.S. national television as a 150-second spot three days later, during a commercial break in Spike's airing of the World War II miniseries Band of Brothers. Additional 90-second spaces were purchased on a variety of television networks, including Adult Swim, Comedy Central, ESPN, FX, G4, History, and Spike. The Life was made available for download through Xbox Live on September 8, and continued to air on television through the release of Halo 3: ODST on September 22, 2009 and into the Christmas period. The launch was accompanied by print advertisements and a new interactive website featuring a making-of documentary for The Life, interviews with the director and other crew members, and an unaired scene cut from the ending of the commercial, as well as interactive elements exploring features of the game itself, such as an "evaluation" application offering profiles on several of the game's characters.
Upon its release on September 22, Halo 3: ODST immediately became the best-selling title for the Xbox 360 worldwide. Within two weeks, over 2.5 million copies had been sold. The Life went on to win a number of awards from the advertising and television industries, including honors from the Visual Effects Society Awards, the ANDY Awards, the London International Advertising Awards, and the Clio Awards. The Life received several nominations at the 57th Cannes Lions International Advertising Festival, the most prestigious awards ceremony in the advertising community, going on to win Gold for Cinematography, Silver for Direction, and a Bronze in the Film category.
References
External links
2009 works
2009 in American television
Halo (franchise)
American television commercials |
In finance, a price (premium) is paid or received for purchasing or selling options. This article discusses the calculation of this premium in general. For further detail, see: for discussion of the mathematics; Financial engineering for the implementation; as well as generally.
Premium components
This price can be split into two components: intrinsic value, and time value (also called "extrinsic value").
Intrinsic value
The intrinsic value is the difference between the underlying spot price and the strike price, to the extent that this is in favor of the option holder. For a call option, the option is in-the-money if the underlying spot price is higher than the strike price; then the intrinsic value is the underlying price minus the strike price. For a put option, the option is in-the-money if the strike price is higher than the underlying spot price; then the intrinsic value is the strike price minus the underlying spot price. Otherwise the intrinsic value is zero.
For example, when a DJI call (bullish/long) option is 18,000 and the underlying DJI Index is priced at $18,050 then there is a $50 advantage even if the option were to expire today. This $50 is the intrinsic value of the option.
In summary, intrinsic value:call option
= current stock price − strike price (call option)
= strike price − current stock price (put option)
Extrinsic (Time) value
The option premium is always greater than the intrinsic value up to the expiration event. This extra money is for the risk which the option writer/seller is undertaking. This is called the time value.
Time value is the amount the option trader is paying for a contract above its intrinsic value, with the belief that prior to expiration the contract value will increase because of a favourable change in the price of the underlying asset. The longer the length of time until the expiry of the contract, the greater the time value. So,
Time value = option premium − intrinsic value
Other factors affecting premium
There are many factors which affect option premium. These factors affect the premium of the option with varying intensity. Some of these factors are listed here:
Price of the underlying: Any fluctuation in the price of the underlying (stock/index/commodity) obviously has the largest effect on premium of an option contract. An increase in the underlying price increases the premium of call option and decreases the premium of put option. Reverse is true when underlying price decreases.
Strike price: How far is the strike price from spot also affects option premium. Say, if NIFTY goes from 5000 to 5100 the premium of 5000 strike and of 5100 strike will change a lot compared to a contract with strike of 5500 or 4700.
Volatility of underlying: Underlying security is a constantly changing entity. The degree by which its price fluctuates can be termed as volatility. So a share which fluctuates 5% on either side on daily basis is said to have more volatility than e.g. stable blue chip shares whose fluctuation is more benign at 2–3%. Volatility affects calls and puts alike. Higher volatility increases the option premium because of greater risk it brings to the seller.
Payment of Dividend: Payment of Dividend does not have direct impact on value of derivatives but it does have indirect impact through stock price. We know that if dividend is paid, stock goes ex-dividend therefore price of stock will go down which will result into increase in Put premium and decrease in Call premium.
Apart from above, other factors like bond yield (or interest rate) also affect the premium. This is because the money invested by the seller can earn this risk free income in any case and hence while selling option; he has to earn more than this because of higher risk he is taking.
Pricing models
Because the values of option contracts depend on a number of different variables in addition to the value of the underlying asset, they are complex to value. There are many pricing models in use, although all essentially incorporate the concepts of rational pricing (i.e. risk neutrality), moneyness, option time value and put–call parity.
The valuation itself combines (1) a model of the behavior ("process") of the underlying price with (2) a mathematical method which returns the premium as a function of the assumed behavior.
The models in (1) range from the (prototypical) Black–Scholes model for equities, to the Heath–Jarrow–Morton framework for interest rates, to the Heston model where volatility itself is considered stochastic. See Asset pricing for a listing of the various models here.
As regards (2), the implementation, the most common approaches are:
Closed form, analytic models: the most basic of these are the Black–Scholes formula and the Black model.
Lattice models (Trees): Binomial options pricing model; Trinomial tree
Monte Carlo methods for option pricing
Finite difference methods for option pricing
More recently, the volatility surface-aware models in the local volatility and stochastic volatility families.
The Black model extends Black-Scholes from equity to options on futures, bond options, swaptions, (i.e. options on swaps), and interest rate cap and floors (effectively options on the interest rate).
The final four are numerical methods, usually requiring sophisticated derivatives-software, or a numeric package such as MATLAB. For these, the result is calculated as follows, even if the numerics differ:
(i) a risk-neutral distribution is built for the underlying price over time (for non-European options, at least at each exercise date) via the selected model, as calibrated to the market;
(ii) the option's payoff-value is determined at each of these times, for each of these prices;
(iii) the payoffs are discounted at the risk-free rate, and then averaged.
For the analytic methods, these same are subsumed into a single probabilistic result; see .
Post crisis
After the financial crisis of 2007–2008, counterparty credit risk considerations were brought into the valuation, previously using the risk-free rate to discount the payoff. Here, there are three major developments re option pricing:
For discounting, the overnight indexed swap (OIS) curve is typically used for the "risk free rate", as opposed to LIBOR as previously (LIBOR is due to be phased out by the end of 2021, with replacements including SOFR and TONAR); see . Relatedly, the "Multi-curve framework" is now standard in the valuation of interest rate derivatives and for fixed income analysis more generally.
As mentioned, option pricing models must consider the volatility surface, and the numerics will then require a zeroth calibration step, such that observed prices are returned before new prices and / or "greeks" can be calculated. To do so, banks will apply local- or stochastic volatility models, such as Heston mentioned above (or less common, implied trees).
The risk neutral value, no matter how determined, is adjusted for the impact of counterparty credit risk via a credit valuation adjustment, or CVA, as well as various of the other XVA which may also be appended.
References
Options (finance)
Mathematical finance |
Shyniece Thomas, known professionally as Lola Brooke, is an American rapper. Born and raised in Brooklyn, New York, Brooke released her breakout single "Don't Play with It" in 2021, which became popular the year after its release through its use on Twitter and TikTok. She was signed to Arista Records in 2023.
Personal life and career
Brooke was born and raised in Bedford–Stuyvesant, Brooklyn. She is an only child and was raised by her mother, a widow. Inspired to learn how to rap by the premiere of the music video for 50 Cent's 2002 song "Wanksta", Lil Wayne's song "Cannon" from his 2006 mixtape Dedication 2, and Meek Mill, she started making music in 2016 with her cousin, Jah, who learned how to make beats using Pro Tools. She worked as a residential aide at a shelter until 2017, when she quit her job to pursue a music career.
Brooke signed with Team 80 Productions in 2016. She released her breakout single, "Don't Play with It", in 2021. Her first song went viral on Twitter before subsequently getting popular on TikTok and Instagram. Brooke attributes her iconic cadence to Pop Smoke. Brooke was signed to Arista Records in January 2023 and was an opening act on A Boogie wit da Hoodie's Me v. Myself Tour throughout early 2023. Her song "So Disrespectful" and a remix of "Don't Play with It", the latter of which featured American rappers Latto and Yung Miami, were both released in March 2023. Also that month, she made a cameo on an episode of the CBS television series East New York.
Brooke was featured on the Girls Mix version of Ciara's song "Da Girls", alongside Ciara and Lady London. It was released on April 14, 2023. An official music video was released on the same day. In June, she was selected as 2023 XXL Freshmen Class.
Musical style
Brooke's music is hip hop. Her stage name is a combination of the names of the Looney Tunes character Lola Bunny and Brooklyn. She has listed her biggest influences on her music as Meek Mill, Lil Wayne, 50 Cent, Foxy Brown, DMX and Lil' Kim and she refers to herself by the nickname Big Gator.
Discography
Singles
As lead artist
As featured artist
Awards and nominations
References
Rappers from Brooklyn
Musicians from Bedford–Stuyvesant, Brooklyn
21st-century African-American musicians
Arista Records artists
Drill musicians
Living people
1994 births |
Shannon is a town in Lee County, Mississippi. The population was 1,496 at the 2020 Census.
Shannon is located on Mississippi Highway 145, west of U.S. Route 45. Chiwapa Creek flows south of the town.
History
The town is named for Samuel Shannon, who purchased land at that location from Chickasaw Chief Itawamba in the early 1800s, then built a cabin and a farm. More settlers arrived following the Treaty of Pontotoc, which ceding Chickasaw land in exchange for financial compensation.
In the early 1800s, Constantine Shannon brought strawberry plants from Shannon to Plant City, Florida, enabling the creation of a multimillion-dollar industry in Plant City.
A church was established in 1839.
The original townsite was north of the present location, and was moved when the Mobile and Ohio Railroad was constructed through the community in the 1850s. Shannon was incorporated in 1860 and a post office was established. Shannon was originally part of Itawamba County, but became part of Lee county after that county formed in 1866.
Commerce expanded in Shannon, and there was a corn elevator, grain elevator, and three cotton gins. Around 1915, Coca-Cola was bottled in Shannon.
The old Francis Store, one of the town's original buildings, is now a restaurant owned by the Town of Shannon.
Gay bar controversy
From 1998 until 2007, Shannon was home to Rumors, a gay bar featured in the Kevin Smith/Malcolm Ingram film Small Town Gay Bar. In 2013, after a hiatus, local businesspeople tried to reopen the bar. The town refused. This refusal led to a lawsuit claiming the town had refused the application out of concern of having a gay bar in its jurisdiction.
A message on the town's website reads: "we take pride in being on the quiet side of county with our relaxed country living where traditions of family, faith, and brotherly love make up who we are today."
Geography
Shannon is located at (34.116826, -88.701520).
According to the United States Census Bureau, the town has a total area of , all land.
Demographics
2020 census
As of the 2020 United States Census, there were 1,496 people, 700 households, and 416 families residing in the town.
2000 census
As of the census of 2000, there were 1,657 people, 632 households, and 437 families residing in the town. The population density was . There were 691 housing units at an average density of . The racial makeup of the town was 44.42% White, 54.19% African American, 0.06% Native American, 0.12% Asian, 0.84% from other races, and 0.36% from two or more races. Hispanic or Latino of any race were 1.57% of the population.
There were 632 households, out of which 40.2% had children under the age of 18 living with them, 38.4% were married couples living together, 23.7% had a female householder with no husband present, and 30.7% were non-families. 27.1% of all households were made up of individuals, and 7.9% had someone living alone who was 65 years of age or older. The average household size was 2.62 and the average family size was 3.18.
In the town, the population was spread out, with 32.0% under the age of 18, 10.6% from 18 to 24, 29.5% from 25 to 44, 19.1% from 45 to 64, and 8.8% who were 65 years of age or older. The median age was 29 years. For every 100 females, there were 94.9 males. For every 100 females age 18 and over, there were 91.3 males.
The median income for a household in the town was $29,773, and the median income for a family was $30,848. Males had a median income of $25,313 versus $20,149 for females. The per capita income for the town was $13,592. About 16.3% of families and 18.4% of the population were below the poverty line, including 21.6% of those under age 18 and 21.4% of those age 65 or over.
Economy
In 2005, General Atomics opened a $38 million manufacturing and test facility in Shannon. Much of the work at the facility is for the U.S. Navy, including advanced launch and recovery systems for aircraft carriers.
The Natchez Trace Parkway RV Park is located in Shannon.
Education
The Town of Shannon is served by the Lee County School District.
Notable people
Cousins Bertha Barbee and Norma Barbee of The Velvelettes were born in Shannon.
Guy Bush, professional baseball player; retired to Shannon.
George Washington Forbes, co-founder of the Boston Guardian.
Romaro Miller, former National Football League quarterback
Rickey W. Thompson, member of the Mississippi House of Representatives
References
External links
Town of Shannon
Towns in Lee County, Mississippi
Towns in Mississippi
Towns in Tupelo micropolitan area
2013 in LGBT history |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.