GBDI Arboretum
Version Release 1
stRPriorityQueue< TKey, TValue > Class Template Reference
[Utilities]
#include <stUtil.h>
List of all members.
Detailed Description
template<class TKey, class TValue>
class stRPriorityQueue< TKey, TValue >
This class template implements a generic reverse priority queue. In other words, the priority of an entry grows in reverse proportion to its key value.
The template parameter TKey must support the =, < and > operators and TValue must support = operator.
This reverse priority queue is implemented using a simple heap which does not support dynamic growning. In other words, be aware of the maximum capacity chosen during its creation.
There is a variation of this class template, called stDynamicRPriorityQueue, wich supports dynamic growing of the queue in exchange of a little performance degradation.
NEVER USE THIS CLASS when the exact maximum size of the queue can not be predicted before the creation of an instance of this class. If unsure, use stDynamicRPriorityQueue instead of this class to avoid potential buffer overflows.
- Author:
- Fabio Jun Takada Chino<EMAIL_ADDRESS>Marcos Rodrigues Vieira<EMAIL_ADDRESS>- Version:
- 1.0
- See also:
- stDynamicRPriorityQueue
- Warning:
- Due to optmization issues, this class does not report memory overflows unless __stDEBUG__ macro is defined. Be aware of the maximum capacity of this queue or suffer the consequences! He he he...
Definition at line 471 of file stUtil.h.
Constructor & Destructor Documentation
|
|
Creates a new reverse priority queue with a given maximum capacity.
- Parameters:
-
| maxSize | Maximum size of this queue. |
Definition at line 478 of file stUtil.h. |
|
|
Disposes this queue.
Definition at line 487 of file stUtil.h. |
Member Function Documentation
|
template<class TKey, class TValue> |
| void stRPriorityQueue< TKey, TValue >::Add |
( |
const TKey & |
key, |
|
|
const TValue & |
value |
|
) |
|
|
|
|
Adds a new entry to the queue. This method will fail if the number of objects exceeds the maximum number of positions.
- Parameters:
-
| key | The key to be inserted. |
| value | The value to be inserted. |
- Warning:
- Due to optmization issues, this method does not report memory overflows unless __stDEBUG__ macro is defined.
|
|
template<class TKey, class TValue> |
| bool stRPriorityQueue< TKey, TValue >::Get |
( |
TKey & |
key, |
|
|
TValue & |
value |
|
) |
|
|
|
|
Gets the next pair key/value with the minimum key value. This pair is removed from the queue.
- Return values:
-
| key | The key value. |
| key | The key value. |
- Returns:
- True for success or false it the queue is empty.
|
|
template<class TKey, class TValue> |
| int stRPriorityQueue< TKey, TValue >::GetSize |
( |
|
) |
[inline] |
|
|
|
Returns the size of this queue.
Definition at line 517 of file stUtil.h. |
The documentation for this class was generated from the following file:
Generated on Mon Mar 21 16:12:08 2005 for GBDI Arboretum by Doxygen 1.3.4
Copyright © 2002-2003 GBDI-ICMC-USP


CoolTour Hostel is located in the heart of Budapest, a short walk from Deak Square and the well known Kiraly Street. Here, you can find everything unique to Budapest; famous ruin bars, excellent street food and alternative local businesses.
Our English speaking staff make it easy to meet other cool travelers, being experienced back packers themselves. Having lived in Budapest, they are knowledgeable about the local area, allowing them to make excellent recommendations. CoolTour Hostel also offers a vast array of activities appealing to both party-goers and holiday makers alike.
Located beneath the hostel is The CoolTour bar, offering great entertainment and cheap drink specials weekly, exclusively to our guests.
Cleanliness is of high priority here at CoolTour Hostel. We are committed to keeping our facilities, kitchen, common area and dorms to an exceptional standard. In addition to this, all beds have an assigned locker for personal belongings and padlocks are also available at reception.
Cooltour Hostel Policies & Conditions:
We take 6000 HUF or 20 EUR per person as a deposit from guests arriving in group of more than 5 guests.
The reception is open until 14 PM and reopens at 09 AM. Allowances can be made if notification is given.
There is no late check in option for the guests who book only 1 night.
Reservations made after 14 PM on arrival date acceptable only confirmation in advance - please contact Hostel reception.
Free
Free City Maps
Free WiFi
General
Air Conditioning
Hair Dryers
Security Lockers
Common Room
Breakfast not included
Guest Kitchen
Cable TV
Key Card Access
Services
Luggage Storage
Towels for hire
Shuttle Bus
Entertainment
Bar
Board Games
PlayStation
Games Room
Address: Asbóth Street 19, Budapest
From the Airport - shuttle bus is available (200E), 1 ticket costs €1. This takes the passengers to Kobanya-Kispest, from there Metro 3 is available to reach Deak Ferenc square.
Taxi is available for 6000-7000 HUF to the hostel.


Ruby and JavaScript are both coding languages, so the syntax must be the same, Right?!... Unfortunately, that is way wrong!! For four weeks I learned, researched, and explored Ruby. When I finally became comfortable with Ruby, I began learning JavaScript. As you can guess from my first statement, it wasn't exactly smooth sailing. Learning Ruby and then JavaScript was in some ways a catch 22. The one advantage to this order was understanding the general concepts in Ruby and recognizing comparisons to JavaScript concepts. However, shortly after things became confusing. While reading about JavaScript, I immediately started seeing connections to Ruby. Don't be confused though. The connection can only be made between meaning and purpose. Ruby and JavaScript become two different worlds when comparing syntax.
One difference in syntax, but similarity in meaning is found when comparing methods in Ruby to functions in JavaScript. Methods and functions are generally the same thing, however they are defined differently.
Ruby methods:
JavaScript functions:
Looking at these two examples, the syntax is completely different besides the message, "hello", which each are displaying. However, both the Ruby method and JavaScript function do the same thing.
As for the Ruby example, I am defining a method called greeting
by using the keyword def
. Then I am telling the interpreter to put "hello" on the output screen. Then, of course I use the keyword end
to close and finish my method.
Next we come to the JavaScript example. First, I am defining a function called hello()
and opening that function with a left curly brace {
. The parentheses that follow my function name are there to tell the computer there are no arguments or parameters. However, in other functions you may see parameters defined within these parentheses. Next, I am telling the computer to log the word "hello" to the console. Finally, I close and end my function the same way I opened it with a right curly brace }
.
This is just one of the several ways Ruby and JavaScript fundamentally implement some program differently.
Learn about Git!
Learn about CSS Concepts!
Learn about the difference between Arrays and Hashes!
Learn about Enumerable Methods!
Learn about Ruby Classes!
Learn about JavaScript!
Learn about Ruby and Ruby on Rails!
Read about what it was like for me to create my own site.


{% extends 'htc-layout.html' %} {% block pageTitle %} Guide to regulations - Information for innovators {% endblock %} {% block beforeContent %} {{ breadcrumb({ items: [ { href: "/htc", text: "Home" } ], href: "/htc/innovators", text: "Information for innovators" }) }} {% endblock %} {% block content %}
Medicines and medical devices are regulated by the Medicines and Healthcare products Regulatory Agency (MHRA). MHRA plays a leading role in protecting and improving public health and supports innovation through scientific research and development.
{{ contentsList({ items: [ { href: "/htc/innovators/regulations", text: "Medicines and medical devices", current: "true" }, { href: "/htc/innovators/regulations/digital", text: "Digital products, services and components" }, { href: "/htc/innovators/regulations/surgical", text: "Surgical procedures and techniques" }, { href: "/htc/innovators/regulations/other", text: "Models of care and other innovations" } ] }) }}As defined in the Human Medicines Regulations 2012, a ‘medicinal product’ means:
(a) any substance or combination of substances presented as having properties of preventing or treating disease in human beings; or
(b) any substance or combination of substances that may be used by or administered to human beings with a view to—
(i) restoring, correcting or modifying a physiological function by exerting a pharmacological, immunological or metabolic action, or
(ii) making a medical diagnosis.
MHRA don’t advise that products are medicines and something else – when MHRA are classifying products they look at the composition of the product, the mode of action and the proposed use of the product. It is sometimes complex but MHRA are expected to reach an ‘either or’ decision as this is how they determine what regulations apply.
The first step in developing most medicinal products is to conduct the necessary clinical trials.
During the conduct of clinical trials, the followiong requirements must be met to protect trial participants and to ensure that the relevant information is collected.
The information obtained in clinical trials is used to support a Marketing Authorisation Application. A Marketing Authorisation must be obtained by anyone intending to market a medicinal product in the UK. Details about the types of procedures that can be used to obtain a Marketing Authorisation Application can be found on the following page of the MHRA website: https://www.gov.uk/guidance/apply-for-a-licence-to-market-a-medicine-in-the-uk this information is likely to be updated at the end of the Brexit implementation period and should be monitored regularly.
In some cases, no clinical trial may be needed, for instance in the case of a so-called ‘piggy-back’ application. Likewise, the clinical trial data needed to support a so-called ‘generic’ version of a medicinal product that has been used for many years is less extensive than that required to support a new compound that has never been used in human before. To review the requirements that apply to Marketing Authorisation Applications submitted under the different legal bases (such as ‘piggy-back’, ‘generic’ and others) refer to the link in the paragraph above.
Innovators should engage with the MHRA at all stages of medicines development including early stage research, prior to human exposure, during clinical development but not approved and those ready for MA submission.
Manufacturers need to demonstrate that their device meets the requirements in the MDR or IVDR by carrying out a conformity assessment. The conformity assessment route depends on the classification of the device (and the risk class determines whether or not a conformity assessment is required).
A notified body will need to undertake a conformity assessment for all class IIa, IIb and III medical devices and class B, C and D in vitro diagnostic devices . This includes the review of clinical and scientific data, manufacturing processes and the quality management system. but the specific requirements and assessments process varies by class.
Manufacturers can certify their products with any notified body in the EU. The MHRA retains an up to date list of notified bodies for MedTech.
Conformity assessments will involve: a review of clinical and scientific data, manufacturing processes and the quality management system; however the specific requirements and assessments process varies by class. These can be undertaken by a European notified body (you can choose to be assessed by a notified body in any European country); in the UK details can be found.
Manufacturers will be issued with a CE certificate which can be placed on their product to show that it has passed the conformity assessment.
Some products are hard to distinguish from a medicine or a medical device, such as cosmetics, food supplements, herbal products, biocides, machinery/laboratory equipment. These products are called borderline products until their status has been decided.
The MHRA provides additional guidance and an enquiry form that can be submitted to the MHRA Borderline Team.
The MHRA Innovation Office provides a single point of access to free expert, confidential, regulatory information, advice and guidance.
This service helps to make regulatory information clear and accessible to those who are developing innovative medicines, medical devices or novel manufacturing processes - particularly those that challenge the current regulatory framework.
The aim is to encourage novel approaches (e.g. clinical trial designs or manufacturing methods as well as novel medicines). MHRA can offer advice throughout the product life cycle; however, MHRA encourage early engagement and offer advice on pre-clinical and clinical development.
At a later stage of medicines development, the MHRA also offers fee paid national scientific. This includes product-specific scientific advice, broader scope scientific advice and MHRA-NICE joint scientific advice which provides an opportunity to get advice about designing trials that meet both MHRA and Human Tissue Authority requirements.
The next stages in the regulatory pathway would be a clinical trial authorisation and demonstration of good clinical practice for clinical trials. Followed by demonstration of Good Manufacturing Practice (GMP) in medicines production processes.
Medicines developers can apply to the Early Access to Medicines (EAMs) to give patients with life threatening or seriously debilitating conditions access to medicines that do not yet have a marketing authorisation when there is a clear unmet medical need.
The final stage of the regulatory pathway is to support authorisation to market and maintenance of the licenced product through the product life cycle.
{% from 'pagination/macro.njk' import pagination %} {{ pagination({ "nextUrl": "/htc/innovators/regulations/digital", "nextPage": "Digital products, services and components" }) }}


{% extends "layout.html" %} {% block page_title %} Money Claims Prototype {% endblock %} {% block proposition_header %} {% include "includes/propositional_navigation.html" %} {% endblock %} {% block content %} {% include "includes/phase_banner_beta.html" %} Back {% if data['scenario'] == "ccjsetaside" %} {% else %} {% endif %} Select any support you'd require for a court hearing (optional) Disabled access Hearing loop Sign language interpreter Enter the sign language you need American Sign Language (ASL) British Sign Language (BSL) Hands on signing International Sign (IS) Lipspeaker Makaton Deafblind manual alphabet Notetaker Deaf Relay Sign Supported English (SSE) Visual frame signing Palantypist / Speech to text Language interpreter What language needs to be interpreted? You'll have to arrange and pay for interpreters except for Welsh. Acholi Afrikaans Akan Albanian Algerian Amharic Arabic Arabic (Middle Eastern) Arabic (North African) Armenian Ashanti Assyrian Ateso Azari Azerbajani (aka Nth Azari) Bajan (West Indian) Bajuni Baluchi Bambara Banjuni Bardini Bassa Belorussian Benba (Bemba) Bengali Bengali (Sylheti) Benin/Edo Berber Bharuchi Bhutanese Bihari Bilin Bravanese Brong Bulgarian Burmese Cambellpuri Cantonese Cebuano Chechen Chichewa Chittagonain Creole (English) Creole (French) Creole (Portuguese) Creole (Spanish) Czech Danish Dari Dinka Dioula Douala Dutch Edo/Benin Efik Emakhuna Estonian Ewe Ewondo Fanti Farsi Feili Fijian Flemish French French (Arabic) French(African) Fula Ga Gallacian Georgian German Gorani Greek Gujarati Gurage Guran Hakka Hausa Hebrew Hendko Herero Hindi Hindko Hokkien Hungarian Ibibio Igbo (Also Known As Ibo) Ilocano Indonesian Ishan Isoko Italian Jamaican Japanese Javanese Kachi Karaninka Kashmiri Khalanga Khmer Khymer Khymer Kibajuni,Kibanjuni,Bajuni,Ban Kibanjuni Kichagga Kikongo Kikuyu Kinyarwandan Kirundi Kisakata Kiswahili Konkani Korean Krio (Sierra Leone) Kru Kurdish (Bardini) Kurdish (Kurmanji) Kurdish (Sorani) Kutchi Kyrgyz Lango Latvian Lingala Lithuanian Luba (Tshiluba) Lugandan Lugisa Lunyankole Luo Luo (Kenyan) Luo (Ugandan[Acholi District]) Luo (Ugandan[Lango District]) Lusoga Lutoro Macedonian Maghreb Malay Malayalam Maldivian Malinke Maltese Mandarin Mandinka Marathi Mende Mina Mirpuri Moldovan Mongolian Monokutuba Navsari Ndebele Nepali Ngwa Norwegian Nzima Oromo Pahari Pampangan Pangasinan Pathwari Patois Pidgin English Polish Portuguese Pothohari Punjabi Punjabi (Indian) Punjabi (Pakistani) Pushtu (Also Known As Pashto) Putonghue Roma Romanian Romany Rukiga Runyoro Russian Rutoro Sarahuleh Saraiki (Seraiki) Sarpo Senegal (French) Olof Dialect Senegal (Wolof) Serbo‑Croatian Setswana Shina Shona Sindhi Sinhalese Slovak Slovenian Somali Spanish Susu Swahili Swedish Sylheti Tagalog Taiwanese Tamil Telugu Temne Thai Tibetan Tigre Tigrinya Toura Training Turkish Turkmen Twi Uighur Ukrainian Urdu Urohobo Uzbek Vietnamese Visayan Welsh Wolof Xhosa Yoruba Zaghawa Zaza Zulu Other support The court can't guarantee extra support, but it will consider other needs relating to physical or mental health impairments {% if data['claimantattending'] == 'true' %} Continue {% elif data['defaultccj'] == 'true' %} Continue {% else %} {% endif %} {% include 'prototypes/prototype-aug-2019/includes/contact.html' %} {% endblock %}
You'll have to arrange and pay for interpreters except for Welsh.
Continue


Update profile
{%else%}
Let's get you set up.
Get Started {%endif%}
Ready to turn miles into money?
Carpool-R-Us will get you on the ride thing
Set up your driver account


Samsung Note 10 sales surpass predecessor
by Simnikiwe MzekandabaThe Samsung Galaxy Note 10 is already out-performing its predecessor, the Note 9, in the South African market.
This is according to Sung Yoon, Samsung Africa president and CEO, speaking at the company’s ‘Empowering Tomorrow’ event this week.
“The Note 10 is actually the best performer sales-wise, selling 50% more than the Note 9 for the same period.”
This year, Samsung unveiled a range of new premium devices, including the Galaxy S10e, S10, Note 10 and the highly-anticipatedGalaxy Fold.
In October, the company celebrated the 10th year of Galaxy smartphones in SA through the ‘Power of 10’ celebration, which coincided with the brand’s 50 global anniversary and 25th anniversary in the country.
As part of the celebration, Yoon said the company decided to empower South African youth through its Empowering Tomorrow initiative.
See also
The initiative is part of wide-ranging efforts to uplift learners and students in the country, according to the company. Samsung awards bursaries to students currently pursuing studies in business, law, marketing and IT, among other fields.
The students are from the universities of Pretoria, North-West, Witwatersrand and Johannesburg, as well as Gauteng City Region Academy (GCRA), an entity of the Gauteng Department of Education.
This week, Samsung hosted bursary recipients and officials from the GCRA. The GCRA is responsible for promoting skills development in the Gauteng city region.
At the event, the South Korean-based electronics giant announced that following an initial R7 million bursary investment this year, it will award another R7 million for 2020.
The company said the best-performing students would get the opportunity to work at Samsung as part of a leadership programme.
“We are continuously working to build on and expand the programmes we offer to young people across South Africa. Samsung is committed to improving the use of IT in education, providing access to smarter learning environments to support students’ creativity and reduce the digital divide,” says Hlubi Shivanda, director for business innovation group and corporate affairs at Samsung SA.
“We strive to reduce local education gaps and turn potential into power.”


Players XML Page
The Players XML file is fairly straightforward. It currently has three tag types. Player separates individual players. Each Player tag requires a Name tag (which is a parseable string), and a Bankroll tag which is a parseable double.


Transit Analyst is an interactive tool for exploring transit accessibility to target resources from focus areas.
The marker shows the current location. The black points are those accesible from that point within the selected travel time, and the gray points are not accessible.
Click or tap on the "Info" tab to see detailed information for the current location
Choose a pointset to explore, and hover over or tap the points to see information for that location.
Move the mouse over the map to show blocks, and click or tap on a block to see detailed information for that block.
The "Show Travelshed" button will bring up a travelshed centered on the marker. Each band of color represents an area that can be traveled to on public transit, in 15 minute increments.
Information on data sources, methodology, and source code available here.


Warehouse Keeper Hagger:
Welcome, customer!  For only 30 Adena, we will gladly safeguard anything you leave with us, for as long as you leave it with us!
Private Warehouse
Clan Warehouse
Learn skills.
Quest


Reference¶
Entity Relations¶
The structure was created so that it is as flexible as possible regarding dimension changes. E.g. The number of commodities, demand types etc. are normalized in 3NF. As such it is no problem (read, you do not need to restructure the database), if at one time there is not 2 but 3 commodity types that are included in the demand per edge DataFrame. Database structural changes are no friend of ours…
Change in the program part:
| Edge | geometry | Heat | Elec |
|---|---|---|---|
| 0 | LINE | 150 | 200 |
to
| Edge | geometry | Heat | Elec | Cold |
|---|---|---|---|---|
| 0 | LINE | 150 | 200 | 50 |
Is no problem, as in the DB the edge table is separated from the demand table. The relation is represented by a table which connects an edge with a commodity.
| edge_id | edge | geometry |
|---|---|---|
| 12345 | 0 | LINE |
is connected to
| commodity_id | commodity |
|---|---|
| 345 | Heat |
through
| edge_id | commodity_id | demand |
|---|---|---|
| 12345 | 345 | 50 |
More on normalization and normal forms here (simple) and here (detailed)
The above example shows that storing the DataFrames of the rivus model is often not a proper solution.
In the following diagram you can see how the data is organised inside the database. Besides the names, you can retrieve the respective data types too.
Note: Some type notation follow the syntax of the PSQL plug-in
| Special | Explanation |
|---|---|
| INTEGER(-1) | for Postgres data type SERIAL |
| BIGINT(-1) | for Postgres data type BIGSERIAL |
| enum tags | see description in Postgres Extension |
- Blue:
- Optimization results
- Gray:
- Input (spatial and non-spatial)
- White:
- Global and extensions.
Enumerated values¶
The following columns accept only the listed values (Case Sensitive.)
Notation: table.columns
run.status
:- prepared
- run
- error
run.outcome
:- optimum,
- optimum_not_found
- error
- not_run
process_commodity.direction
:- in
- out
Scripts - Make Your Life Easier¶
Short summary of the used scripts. These scripts are shot and rich with in-line documentation. So for detail open them up with a text editor.
Database Create/Drop¶
rivus_db/sql/create_from_staruml.sh
:copies the raw scripts from
rivus_db/sql/staruml_expor/
intorivus_db/sql/
and modifies them slightly- add extension handling
- drop some generated defaults (encoding)
- your future feature?
executes the modified create_*.sql scripts.
if executed with
extend
argument:create_from_staruml.sh extend
the 2. step is omitted. (The scripts get modified, but not executed.)
rivus_db/sql/_purge_rivus.sh
:- Executes the
drop_*.sql
scripts inrivus_db/sql/
- Executes the
rivus_db/reset_db.sh
:- Executes the above two scripts after each other. This results in a clean new database.
Report/Analysis¶
I have a work-flow, where I narrow down the large data set with some SQL queries on the database
client (DBeaver, plsq…). Typically, from those results I can pick 1-5 runs which are really interesting.
I can investigate them further with rivus
functions.
Some of the scripts are enlightened here for inspiration:
List used hub processes¶
Entry level query, join the relevant tables, filter data. Get the used processes.
1 2 3 4 5 6 7 8 | select V.run_id, V.vertex_num, P.process, KP.capacity
from kappa_process as KP
join vertex as V on V.vertex_id=KP.vertex_id
join process as P on P.process_id=KP.process_id
where V.run_id > 1200 --V.run_id in (4825, 4833) -- for local
and KP.capacity > 0
-- for filtering most of the hubs (here not concerned with the number of inputs)
and P.cost_inv_fix <> 0 and P.cap_min <> 0;
|
Example results:
| run_id | vertex_num | process | capacity |
|---|---|---|---|
| 3599 | 0 | Gas power plant | 2462 |
| 3600 | 0 | Gas power plant | 6154 |
| 3601 | 0 | Gas power plant | 6154 |
| 3602 | 0 | Gas power plant | 6154 |
| 3603 | 0 | Gas power plant | 6154 |
| 3604 | 0 | Gas power plant | 6154 |
| 3605 | 0 | Gas power plant | 6154 |
| 3607 | 0 | Gas power plant | 6154 |
| 3608 | 0 | Gas power plant | 6154 |
| 3609 | 0 | Gas power plant | 6154 |
| 3610 | 0 | District heating plant | 10001 |
| 3611 | 0 | District heating plant | 10000 |
List source vertices and their capacity¶
Entry level query, join the relevant tables, filter data. Get the source vertices.
1 2 3 4 5 6 7 8 | select V.run_id, V.vertex_num, C.commodity, max(S.capacity)
from "source" as S
join vertex as V on V.vertex_id=S.vertex_id
join commodity as C on C.commodity_id=S.commodity_id
-- for view, remove where V.run_id in (4825, 4833)
where V.run_id in (4825, 4833) and S.capacity > 0
group by V.run_id, V.vertex_num, C.commodity
order by V.run_id, V.vertex_num;
|
Example results:
| run_id | vertex_num | commodity | max |
|---|---|---|---|
| 4825 | 0 | Elec | 1748 |
| 4825 | 5 | Gas | 6229 |
| 4833 | 0 | Elec | 1796 |
| 4833 | 30 | Gas | 6090 |
List count and max-capacity of built commodities¶
Or what have found a way into pmax (should be built) as a column. Plus show the maximum capacity per.
Show built commodities in a nice, tight manner. Here you can filter the results with the addition of a where clause.
Note jsonb_agg
and jsonb_object_agg
these are over the boundaries of MySQL or such,
but look how convenient they are! (Hooray, PostgreSQL!)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | select R.run_id, start_ts, built_comms, comm_cap_max
from run as R
join (
select C.run_id, count(distinct C.commodity) as built_comms, jsonb_agg(distinct C.commodity) as built_names
from pmax as P
join commodity as C on P.commodity_id=C.commodity_id
join edge as E on E.edge_id = P.edge_id
where P.capacity <> 0
group by C.run_id
) as builts on builts.run_id = R.run_id
join (
select run_id, jsonb_object_agg(commodity, cap_max) as comm_cap_max
from (
select C.run_id, C.commodity, max(P.capacity) as cap_max
from pmax as P
join commodity as C on P.commodity_id=C.commodity_id
join edge as E on E.edge_id = P.edge_id
group by C.run_id, C.commodity
order by C.run_id, C.commodity
) as cap_maxs
group by run_id
) as json_built on json_built.run_id = R.run_id
order by start_ts DESC
;
|
Example results:
| run_id | start_ts | built_comms | comm_cap_max |
|---|---|---|---|
| 5637 | 2017-09-02 10:47:30 | 1 | {“Gas”: 0, “Elec”: 1646, “Heat”: 0} |
| 5636 | 2017-09-02 10:46:31 | 1 | {“Gas”: 0, “Elec”: 1537, “Heat”: 0} |
| 5635 | 2017-09-02 10:45:30 | 2 | {“Elec”: 1317, “Heat”: 46} |
| 5634 | 2017-09-02 10:43:44 | 1 | {“Elec”: 1263, “Heat”: 0} |
| 5633 | 2017-09-02 10:42:50 | 1 | {“Gas”: 0, “Elec”: 1731} |
| 5632 | 2017-09-02 10:41:54 | 2 | {“Elec”: 1787, “Heat”: 46} |
| 5631 | 2017-09-02 10:39:56 | 1 | {“Elec”: 1029} |
| 5630 | 2017-09-02 10:38:43 | 1 | {“Elec”: 1114} |
| 5629 | 2017-09-02 10:29:53 | 2 | {“Gas”: 0, “Elec”: 1342, “Heat”: 93} |
Advanced Report¶
A more in depth analysis (report) with built capacities with their maximum value, square grid side dimension and edge length plus some parameters which were changed throughout a long run.
- Here you can even experience the PostGIS extension in action with length calculation.
- Some time filtering
- Filtering with the JSONb column. (Very intuitive.)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | select R.run_id, start_ts, comm_cap_max, vertex_dim, edge_max, edge_min, cost_fix, cost_inv_fix
from run as R
join (
select run_id, jsonb_object_agg(commodity, cap_max) as comm_cap_max
from (
select C.run_id, C.commodity, max(P.capacity) as cap_max
from pmax as P
join commodity as C on P.commodity_id=C.commodity_id
join edge as E on E.edge_id = P.edge_id
where p.capacity > 0 -- if this is disabled comm_cap_max will also include Commodities with 0 max Like Gas:0
group by C.run_id, C.commodity
order by C.run_id, C.commodity
) as cap_maxs
group by run_id
) as json_built on json_built.run_id = R.run_id
JOIN (
select R.run_id, sqrt(count(vertex_num)) AS vertex_dim
from vertex as V
join run as R on R.run_id=V.run_id
where R.start_ts BETWEEN '2017-09-02 08:00:00'::timestamp AND '2017-09-02 17:00:00'::timestamp
GROUP BY R.run_id
) as side_dim on side_dim.run_id = R.run_id
JOIN (
select r.run_id, round(max(ST_Length(geometry))) AS edge_max, round(min(ST_Length(geometry))) AS edge_min
from edge as e
join run as r on r.run_id=e.run_id
where r.start_ts BETWEEN '2017-09-02 08:00:00'::timestamp AND '2017-09-02 17:00:00'::timestamp
group by r.run_id
order by edge_max, edge_min, r.run_id
) as edge_len on edge_len.run_id = R.run_id
join (
select run.run_id, cost_fix, cost_inv_fix
from run
join commodity AS C on C.run_id = run.run_id
where run.start_ts BETWEEN '2017-09-02 08:00:00'::timestamp AND '2017-09-02 17:00:00'::timestamp
and C.commodity = 'Heat'
) as parameters on parameters.run_id = R.run_id
where comm_cap_max->>'Heat' is not null and comm_cap_max->>'Heat' <> '0'
order by start_ts DESC
;
|
Note
sqrt(count(vertex_num))
works here as the stored grids where symmetrical. (6x6, 5x5 etc…)
Example results:
| run_id | start_ts | comm_cap_max | vertex_dim | edge_max | edge_min | cost_fix | cost_inv_fix |
|---|---|---|---|---|---|---|---|
| 5635 | 2017-09-02 10:45:30 | {“Elec”: 1317, “Heat”: 46} | 6 | 50 | 50 | 4 | 350 |
| 5632 | 2017-09-02 10:41:54 | {“Elec”: 1787, “Heat”: 46} | 6 | 50 | 50 | 4 | 350 |
| 5629 | 2017-09-02 10:29:53 | {“Elec”: 1342, “Heat”: 93} | 6 | 50 | 50 | 4 | 350 |
After these results, I could say, ok, run 5635
looks interesting, I want to re-run it, maybe change some parameter or re-plot or plot it with matplotlib or or or…
I could do something like this:
from rivus.io import db as rdb
engine_string = 'postgresql://postgresql:postgresql@localhost/rivus'
engine = create_engine(engine_string)
data_dfs = ['process', 'commodity', 'process_commodity', 'time', 'area_demand']
data = {df_name: rdb.df_from_table(engine, df_name, run_id)
for df_name in data_dfs}
vertex = rdb.df_from_table(engine, 'vertex', run_id)
edge = rdb.df_from_table(engine, 'edge', run_id)
#... Change whatever parameter I would like ...
import pyomo.environ # although is not used directly, is needed by pyomo
from pyomo.opt.base import SolverFactory
from rivus.utils.prerun import setup_solver
from rivus.main.rivus import create_model
# Solve again!
prob = create_model(data, vertex, edge, hub_only_in_edge=False)
solver = SolverFactory(config['solver'])
solver = setup_solver(solver, log_to_console=True)
solver.solve(prob, tee=True)
# 3D Re-plot
from rivus.io.plot import fig3d
from plotly.offline import plot as plot3d
plotcomms = ['Gas', 'Heat', 'Elec']
fig = fig3d(prob, linescale=8, comms=plotcomms, use_hubs=True,
dz=(0.25 * 100))
plot3d(fig, filename='bunch-{}.html'.format(4242))
# Whatever you would like.
Archive (Dump - Import)¶
One can have various reasons to archive a database. For our project a short excerpt of the detailed official-tutorial is given here.
The bundled tools shipping with PostgreSQL are pretty amazing.
In the previous section or during psql database connection
you already used one of them. (psql
)
Now we will get to know pg_dump
and createdb
.
To dump all the contents of a database:
Make sure the database server is running.
Dump the contents into a SQL file.
- -U database-user
- -f file name to dump to
- last parameter without flag is the target database.
[Optional] Transport the created file to the site, where it should be restored.
Create a database where the restoration should take place.
Restore from file with
psql
pg_ctl status
pg_dump -U postgres -f rivus_dump.sql rivus
createdb -h localhost -U postgres rivus_import
psql -U postgres rivus_import < rivus_dump.sql
Voilà, you have there you have two local databases, on which you can run super fast queries.


Web Components
are the future present.
My definition
Web Componets are custom elements that behave like standard HTML elements and are easy to reuse and don't interfer with other elements.
Key Goals of Web Components
- Encapsulation - keep component logic isolated
- Isolation - keep component internals hidden
- Reusability - make features easy to reuse
- Native - expose standard event APIs
- Customizable - style and extendable
- Declarative - expressive markup
Web Components are 4 technologies
- Custom Elements (encapsulation, declarative)
- HTML Imports (reusability)
- Templates (encapsulation, reusability)
- Shadow DOM (isolation)
Fair warning
The Spec is not finalized, a polyfill is needed,
and API changes are possible.
Vanilla Javascript Example
Vanilla Javascript
- Just the native APIs
- Most flexibility
- Can be efficient
- Great for simple
|
- Most work to implement
- Opportunity for bad design
- Lacks supporting tools
- Best practices unknown
|
X-Tag
- Cleaner API
- Lifecycle and events
- Mixins and utilities
- Provides support for IE9+
|
- No Shadow DOM (by default)
- Documentation lacking
- No two way data binding
- Manual templating
|
Polymer
is a two part toolkit. It contains a set of polyfills, and a framework to develop custom elements.
http://polymer-project.org
Polymer
- Custom elements as APIs
- Two way data binding
- Rich framework
- Docs are growing
|
- Active development
- Loads assets
- Alpha
- IE10+
|
Web Components using AngularJS
- Extensive APIs
- Declarative markup
- Lots of flexibility
- Strong templating
|
- No styling isolation
- Difficult to reuse
- Needs Angular application
- Doesn't use native APIs
|
Web Components do not solve
- External dependency management (like jQuery)
- Accessibility requirements
- Duplication of features, the same as jQuery plugin duplication
- Doesn't enforce quality of componentization
Other considerations
- Packaging options: Polymer has Vulcanize, Grunt/Gulp/etc tasks
- Favor simplicity over complexity
- Limit dependencies
- Make web components like native elements


1 When this also came to the king's ears, he was astonished at the man's ingenuity and daring, and in the end, he sent a proclamation to every town, promising the thief immunity and a great reward if he would come into the king's presence.
2 The thief trusted the king and came before him; Rhampsinitus was very admiring and gave him his daughter to marry on the grounds that he was the cleverest of men; for as the Egyptians (he said) surpassed all others in craft, so he surpassed the Egyptians.


Background:
I used to take magic mushrooms for fun with friends once or twice a year when I was younger. I had a few 'bad trips' in those days, I didn't know the history of psychedelics, or understand the sacredness of these substances. The last time I'd taken a small amount of mushrooms was 2 years ago, and I cried through the entire trip.
My boyfriend had introduced me to DXM a couple months ago, and at 1st it blew my mind. I felt the spiritual possibilities of these 'alternate realities' at last. But it became something we did on weekends, for lack of anything better to do, a habit that did little more than gobble up precious hours of my life. Some kind of twisted logic or intuition (or denial?) in me decided that taking magic mushrooms this weekend would break me out of the rut!
Setting:
Our studio/condo in deep downtown (I would've preferred nature), Friday night.
The Trip:
8:15pm - M and I split up a 1/4 ounce, putting aside a gram or so. I wanted to have a complete, deep experience, I had never taken more than a gram or so before. We chewed and swallowed the straight goods, and discussed our intent for the duration: healing and transformation.
We had a cigarette and discussed taking a quick walk.  The luxurious purring body buzz and slight visuals had begun as we walked out the door.
I felt mischievously daring as we strolled past a security guard in the courtyard. As we walked by a lovely ivy-covered church, I was awe-struck by dusky clouds and stained glass windows. My voice rang in my ears briefly, and the atmosphere of our surroundings shifted abrubtly with each new sound or voice nearby. I wasn't overly alarmed, knowing this tendency of psychedelics. I allowed myself to focus on the natural beauty of the park we were entering, fairly successfully ignoring passerbys. I felt that if I stood still and stared at anything too long, I'd be swallowed up and crushed by the immensity of beauty. I feared the looming conspicuousness of falling on my knees before lilacs and blossoming trees.
We sat on a bench to have a smoke and comfortably stare at the trees. The lush leaves above were crystallizing into patterns, I could barely tear my eyes away. The joy rushing through my body was becoming too much to contain, and we agreed to head home. Walking back, the concrete was filling with mystical patterns.
As soon as we closed the door behind us, we were howling with laughter and 'Holy Shits!'
The next few hours are difficult to chronologically sequence. Part of the time was spent sitting at the table, more of the time lying in bed.
At the table, I was facing a 5' tall painting I'd done, and it completely came to life! Not only were beings appearing and endlessly moving and breathing within it, but 3-D prismatic patterns emanated all around it. It seemed to me that the only words I could enunciate were 'WOW', 'Oh my GOD', and 'Holy Shit!', but at times, I'd snap out of a period of 'daydreaming', ask M if I'd actually been speaking aloud - and the answer was always 'yes'! I realized that there was no distinction in this state, everything I thought I was just thinking, I was also saying, there was no separation! M was also speaking, though I only grasped fragments, which seeded into my own reveries.
The most unbelievable visions occured lying in bed, whether my eyes were open or closed. For the 1st while, an alien theme kept repeating. Aliens were questioning me, like reporters around a boardroom table, or attempting to examine me. I refused to be put into an inferior position, and felt that by laughing off some of their attempts, and casually humouring others, I retained a friendly equality. Eventually they went away. (As a child, I had re-occuring nightmares of everyone around me becoming aliens, they were always chasing me to make me one of them, and the only way I managed to make the nightmares stop was by giving in and becoming one of them. Is it possible my psyche has become strong enuf to stand alone?)
After the aliens, mind-blowing artistic images appeared. I've been reading Alex Grey's 'The Mission of Art', and finally saw the grid-like nets of light that had inspired him and his wife during an acid trip.  Whenever I turned to look at M, I saw into his flesh, as if it was translucent and swimming with layers of underwater life. I began to nibble on his hands, and experiment with the feel and taste and strangeness. I made up words and laughed and laughed with my funny new language. I may have freaked him out a bit!
The intensity of this part of the trip was all encompassing. Several times I asked M, 'Who are we?', 'Where are we?', 'What are we?'. I struggled with the concept of others, and whether they ever came 'here', and why wouldn't everyone want to.
The 1st step down, after 3&1/2 hours of peaking, was an instantaneous knowing of Who, Where, and What. The effects were still very strong, and I began to want a break of normality. There were a couple more subtle yet instant 'drops', but each time I found I was still tripping pretty large. M appeared to be becoming paranoid about how he was coming across to me. We dealt with this uncomfortable phase for 1/2 an hour or so, then both seemed to reach a plateau of understanding.
I was amazed at M's dish-sized pupils, and ran to the bathroom to see my own. I had always avoided looking in the mirror on psychedelics, since the 1st time, but now I was fascinated. I used to feel fear and revulsion seeing my face appear in stages of decay and unflattering mutations. But now, my massive pupils and glistening whites stared steadily back at me as I saw my flesh age, decay, rot, and repeat the cycle. This was deeply significant for me. I felt my fear of aging and death loosen its hold, lessening my attachment to this mortal possession, as I sensed that the divine energy/light within could never be extinguished, only transformed.
A new view of life dawned on me. I've always been afraid that if I commit to one thing, I'll miss something else. Yet I realized I'll miss the truly important things if I don't surrender and commit to the paths my heart desires to follow. It's no longer so sad that I can only see and experience one version of my life, and that it feels so brief; it's eternal in the moments of true connection. I can only be the fragment of God/Universe that I am, no one else. Through commitment and caring, the deepest joys and sorrows and the truest aliveness can be accessed.
We lay in bed and embarked on the most incredible conversational, philosophical, healing journey. All our hang-ups, our relationship to each other and the world, the workings of the Universe, the nature of God, all of our questions seemed so much easier to process and communicate.
I was surprised to notice how analytical, nearly scientific my outlook can be, and the unconscious nature of our belief systems. I realized how dogmatic I've been over certain issues, how blind I can be to my own nature! M's caring and beauty brought me to tears, and in a flash I saw the simplicity of unconditional devotion, and to me, it was the last straw of my fear of committing to him falling away, knowing a lifetime's choice was as simple as exhanging our soul-felt vows of devotion.
There were so many realizations I can't begin to write about them all. I mentally thanked the spirit of this truly magical mushroom for such a kindly-feeling space to objectively (?) and forgivingly view hang-ups, make intuitive leaps so effortlessly, and communicate nearly fearlessly. It took longer than we'd bargained for to fully come down, it was 6am before we were able to sleep, ~9&1/2 hours since take-off!
Postscript:
I've wondered if I'll retain the lessons I recieved during this unbelievably profound experience. So far, it's Sunday afternoon, 2 days since the trip, and my epiphanies still feel deeply embedded. I feel almost superstitious about going to that space again before I've seen if these understandings filter though in my day to day life, if I can be braver and truer to my intuition and life-path. I wouldn't treat this as something to get out of my mind on anymore, except in the most respectful sense! DXM has become quite unappealing by comparison!
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Created and updated Winsupply local company websites, managed various aspects of the employee portal website, and collaborated on digital commerce and marketing projects.
Developed transactional HTML email templates to serve as part of the guest post purchase experience, collaborated in a scrum team with developers, designers, scrum masters, product owners and business analysts, created UI components using React to be used as a part of the guest return experience.
Assisting startups with launching their technology, focused particularly on full stack web development. Creating web applications and pages for liven.io and Piano in a Flash.


{% extends "base.html" %} {% block content %}
Phone number must be exacly 10 digits total(USA/Canada number only).
Something went wrong. Please try again.
{{ form.non_field_errors }}


Which track is best for me?
What is your name?
Which would you choose to build?
Database for Business
Content Heavy Website
Interactive Web Application
Not sure/all of the above
Where would you rather work?
Large Company
Start Up
Which concept most interests you?
Working with a .Net Framework
Building content management systems
Interacting with dynamic content
Working with Android user interfaces
Do you like to Code?
Of course!
Love to!
Naturally!
Is this even a question?
Obviously!
Quite so, old bean!
All day every day!
Favorite thing in the world!
Is this some type of test?
How did you first hear about Epicodus?
Through a friend
Online
Word of Mouth
Find my Track!
About C#
About Java
About Ruby
About PHP
, you should consider the following track:


CEG HOSTELS
About Us
Message
Dean
Executive Warden
Administration
Resident Counsellors
Boys Hostels
Girls Hostels
Hostel Blocks
Boys Hostel
Girls Hostel
Gallery
Rules & Regulations
Contact Us
Boys Hostel
Girls Hostel
Facilities
Mess
Hostel Day
Others
AMBAL
MARUTHAM
MAHIZHAM
VAAGAI
CHEMPARUTHI
KURUNJI
KURUNJI(EXTN)
ANICHAM
THAZHAM
THAZHAM(EXTN)
SAMPANKI
SAMANTHI
MANTHARAI
SANBAGAM
HOSTEL OFFICE
MALLIGAI
MALLIGAI(EXTN)
MULLAI
THAMARAI
ROJA
PARIJATHAM
NANDHIYA(IGH)
JUNIOR MESS
SENIOR VEG MESS
SENIOR NON-VEG MESS
GIRLS MEGA MESS
PG MESS
Student links
All the links will be posted here.
HOSTEL FEE
FORMS


Compona SyntaxBox
for Microsoft .NET Windows forms
Developer guide
This guide provides information for Compona
SyntaxBoxTM
March
2003
Nordic Compona
Solutions
http://www.Compona.com
This document currently only includes the most
common tasks.
More samples will be included later.
Get / Insert /
Delete text ranges
The SyntaxDocument is a powerfull
text parsing component , with
capability to highlight words and fold source code/text.
The SyntaxDocument can be used in various scenarios eg:
·
Together
with the SyntaxBox to create a powerfull text editor .
·
As a
standalone component in a website to allow realtime html export of highlighted
and folded code to web pages.
·
Pretty
printing , the SyntaxDocument can be used with a print preview or print dialog.
·
Code
analysis , the SyntaxDocument is fully aware of what kind of code sections all
parts of a text belongs to , it can tell you if a word is inside a comment ,
code or inside a string etc.
This
section shows how to assign a text to a SyntaxDocument.
|
Property |
Description |
|
Text |
Gets or Sets the text of the SyntaxDocument. |
|
Lines[ ] |
Gets or Sets the rows (string array) of the SyntaxDocument. |
|
C# sample Set Document Text |
|
//Set
the text of the document |
|
VB.NET sample Set Document Text |
|
'Set
the text of the document |
This section shows how to Insert , Delete and Get a range of text from a
SyntaxDocument.
|
Method |
Description |
|
InsertText (string,int,int,bool) |
Inserts a text at a given position in the document |
|
DeleteRange(TextRange,bool) |
Deletes a range of text from the document |
|
GetRange(TextRange) |
Gets the content of a given TextRange in the document. |
|
C# sample Insert Text |
|
//Insert Hello World at
col 3 , row 10 //and store the action on
the undo stack MySyntaxBox.Document.InsertText
("Hello
World",3,10,true); |
|
VB.NET sample Insert Text |
|
'Insert Hello World at col
3 , row 10 'and store the action on
the undo stack MySyntaxBox.Document.InsertText
("Hello
World",3,10,True) |
|
C# sample Delete Range |
|
//delete from column 10
,row 10 to column 20 row 23 //and store the action on
the undo stack TextRange tr =new TextRange (); tr.FirstRow =10; tr.FirstColumn =10; tr.LastRow =23; tr.LastColumn =20; MySyntaxBox.Document.DeleteRange
(tr,true); |
|
VB.NET sample Delete Range |
|
'delete from column 10
,row 10 to column 20 row 23 'and store the action on
the undo stack Dim tr As TextRange
=new
TextRange () tr.FirstRow =10 tr.FirstColumn =10 tr.LastRow =23 tr.LastColumn =20 MySyntaxBox.Document.DeleteRange
(tr,True) |
|
C# sample Get Range |
|
//get text from column 10
,row 10 to column 20 row 23 TextRange tr =new TextRange (); tr.FirstRow =10; tr.FirstColumn =10; tr.LastRow =23; tr.LastColumn =20; string text=sBox.Document.GetRange
(tr); |
|
VB.NET sample Get Range |
|
'get text from column 10
,row 10 to column 20 row 23 Dim tr As TextRange
=new
TextRange () tr.FirstRow =10 tr.FirstColumn =10 tr.LastRow =23 tr.LastColumn =20 Dim text As
String =sBox.Document.GetRange (tr) |
There are
multiple ways of assigning a syntax to a SyntaxDocument.
You can either set the path of a syntaxfile (.syn file) in the
SyntaxDocument.SyntaxFile.
Or , You can create a syntax via code and apply the syntax directly to the
parser.
In this section we will only use the syntaxfile approach.
See the DynSyntax sample for information on how to build a language via code.
|
Property |
Description |
|
SyntaxFile |
Gets or Sets the FileName of the SyntaxFile to use. |
|
C# sample Apply Syntax |
|
//Set the text of the
document Compona.SourceCode.SyntaxDocument MyDoc=MySyntaxBox.Document; MyDoc.SyntaxFile="C#.syn"; |
|
VB.NET sample Apply Sytnax |
|
'Set the text of the
document Dim MyDoc As Compona.SourceCode.SyntaxDocument
= MySyntaxBox.Document MyDoc.SyntaxFile ="VB6.syn" |
This
Section shows how to group multiple text edit actions into a single undo action
before it is placed on the Undo Stack.
|
Method |
Description |
|
StartUndoCapture() |
Puts the SyntaxDocument in Capture mode , all edit actions are pushed to a temporairy UndoActionGroup |
|
EndUndoCapture() |
Terminates Capture mode and pushes the temporairy UndoActionGroup
onto the UndoStack. |
|
C# sample Undo Action Grouping |
|
//Group multiple edit
actions MySyntaxBox.Document.StartUndoCapture (); MySyntaxBox.Document.InsertText("hello1",10,10,true); MySyntaxBox.Document.InsertText("hello2",10,13,true); MySyntaxBox.Document.InsertText("hello3",10,13,true); |
|
VB.NET sample Undo Action Grouping |
|
'Group multiple edit
actions MySyntaxBox.Document.StartUndoCapture () MySyntaxBox.Document.InsertText("hello1",10,10,True) MySyntaxBox.Document.InsertText("hello2",10,13,True) MySyntaxBox.Document.InsertText("hello3",10,13,True) |
This
Section shows how to access a specific row in the SyntaxDocument.
|
C# sample Print a SyntaxDocument |
|
//get row #11 (document is
0 based) Row row =
sBox.Document[10]; //make the row bookmarked row.Bookmarked
=true; //set a breakpoint on the
row row.Breakpoint
=true; //apply a new text to the
row... row.Text
="this row is both bookmarked and has a breakpoint"; |
|
VB.NET sample Print a SyntaxDocument |
|
'get row #11 (document is
0 based) Dim row As
Row = sBox.Document(10) 'make the row bookmarked row.Bookmarked
=True 'set a breakpoint on the
row row.Breakpoint
=True 'apply a new text to the
row... row.Text
="this row is both bookmarked and has a
breakpoint" |
This
Section shows how to print and print preview a SyntaxDocument.
|
C# sample Print a SyntaxDocument |
|
//Print a document Compona.SourceCode.SourceCodePrintDocument pd; pd=new Compona.SourceCode.SourceCodePrintDocument (MySyntaxBox.Document); PrintDialog1.Document
= pd; if (PrintDialog1.ShowDialog
(this)==DialogResult.OK) pd.Print (); |
|
VB.NET sample Print a SyntaxDocument |
|
' Print a document Dim pd As Compona.SourceCode.SourceCodePrintDocument PrintDialog1.Document
= pd If PrintDialog1.ShowDialog
(this)=DialogResult.OK Then |
|
C# sample Print Preview a
SyntaxDocument |
|
//Show a print preview
dialog Compona.SourceCode.SourceCodePrintDocument pd; pd=new Compona.SourceCode.SourceCodePrintDocument (MySyntaxBox.Document); PrintPreviewDialog1.Document = pd; PrintPreviewDialog1.ShowDialog (); |
|
VB.NET sample Print Preview a SyntaxDocument |
|
'Show a print preview
dialog Dim pd As Compona.SourceCode.SourceCodePrintDocument PrintPreviewDialog1.Document = pd PrintPreviewDialog1.ShowDialog () |
|
C# sample Export SyntaxDocument to
HTML |
|
//Export document to html
and write it //to output buffer
(asp.net) Compona.SourceCode.SyntaxDocumentExporers.HTMLExporter
htmlx=new
Compona.SourceCode.SyntaxDocumentExporers.HTMLExporter(); string html=htmlx.Export (MySyntaxBox,""); Response.Write(html); |
|
VB.NET sample Export SyntaxDocument
to HTML |
|
'Export document to html
and write it 'to output buffer
(asp.net) Dim htmlx As
New Compona.SourceCode.SyntaxDocumentExporers.HTMLExporter()
Response.Write(html) |
|
Property |
Description |
|
.AutoList_Icons |
Get or Sets the ImageList to use in the AutoList. |
|
.AutoList_Visible |
Gets or Sets if the AutoList is visible. |
|
Method |
Description |
|
AutoList_Clear() |
Clears the content of the AutoList |
|
AutoList_BeginLoad() |
Disables drawing and Prepares the AutoList to load data. |
|
AutoList_Add(string,int) |
Adds an item to the AutoList. |
|
AutoList_EndLoad() |
Auto sizes and resumes drawing of the AutoList |
|
C# sample Show AutoList |
|
//Attach an ImageList //And fill the AutoList
with items MySyntaxBox.AutoList_Icons=MyImageList; MySyntaxBox.AutoList_Clear(); MySyntaxBox.AutoList_BeginLoad(); MySyntaxBox.AutoList_Add("Func1",1); MySyntaxBox.AutoList_Add("Func2",2); MySyntaxBox.AutoList_Add("Func3",3); MySyntaxBox.AutoList_Add("Func4",4); MySyntaxBox.AutoList_EndLoad(); MySyntaxBox.AutoList_Visible=true; |
|
VB.NET sample Show InfoTip |
|
'Attach an ImageList 'And fill the AutoList
with items MySyntaxBox.AutoList_Icons=MyImageList MySyntaxBox.AutoList_Clear() MySyntaxBox.AutoList_BeginLoad() MySyntaxBox.AutoList_Add("Func1",1) MySyntaxBox.AutoList_Add("Func2",2) MySyntaxBox.AutoList_Add("Func3",3) MySyntaxBox.AutoList_Add("Func4",4) MySyntaxBox.AutoList_EndLoad() MySyntaxBox.AutoList_Visible=True |
|
Property |
Description |
|
InfoTip_Text |
Gets or Sets the text of the InfoTip. |
|
InfoTip_Image |
Gets or Sets the image of the InfoTip. |
|
InfoTip_Count |
Gets or Sets the number of overloads to show in the InfoTip. |
|
InfoTip_Visible |
Gets or Sets if the InfoTip is visible. |
|
//in the InfoTip MySyntaxBox.InfoTip_Text="Hello World!"; MySyntaxBox.InfoTip_Count=0; //0 overloads MySyntaxBox.InfoTip_Image=null; //no image MySyntaxBox.InfoTip_Visible=true; |
|
VB.NET sample Show InfoTip |
|
'in the InfoTip MySyntaxBox.InfoTip_Text="Hello World!" MySyntaxBox.InfoTip_Count=0
'0 overloads MySyntaxBox.InfoTip_Image=Nothing 'no image MySyntaxBox.InfoTip_Visible=true |
|
Method |
Description |
|
ShowFind () |
Shows the Find dialog. |
|
ShowReplace() |
Sgows the Replace dialog. |
|
FindNext() |
Selects the next occurance of the pattern used in the Find dialog. |
|
Key(s) |
Description |
|
CTRL + F |
Shows the Find dialog. |
|
CRTL + H |
Shows the Replace dialog. |
|
F3 |
Selects the next occurance of the pattern used in the Find dialog. |
|
C# sample Find Next |
|
//(based on selections made
in the find dialog) MySyntaxBox.FindNext(); |
|
VB.NET sample Find Next |
|
'(based on selections made
in the find dialog) MySyntaxBox.FindNext() |
|
C# sample Show Find |
|
MySyntaxBox.ShowFind(); |
|
VB.NET sample Show Find |
|
MySyntaxBox.ShowFind() |
|
C# sample Show Replace |
|
MySyntaxBox.ShowReplace(); |
|
VB.NET sample Show Replace |
|
MySyntaxBox.ShowReplace () |
|
Method |
Description |
|
ShowGotoLine() |
Shows the Goto Line dialog. |
|
Key(s) |
Description |
|
CTRL + G |
Shows the Goto Line dialog. |
|
C# sample Show GotoLine |
|
MySyntaxBox. ShowGotoLine (); |
|
VB.NET sample Show GotoLine |
|
MySyntaxBox.ShowGotoLine () |
Full list
of predefined keyboard shortcuts:
|
Key(s) |
Description |
|
CTRL + Z |
Undo |
|
CTRL + Y |
Redo. |
|
CTRL + G |
Shows the Goto Line dialog. |
|
CTRL + F |
Shows the Find dialog. |
|
CTRL + H |
Shows the Replace dialog. |
|
CTRL + C |
Copy current selection to clipboard. |
|
CTRL + X |
Cut current selection to clipboard. |
|
CTRL + V |
Paste clipboard content to current Caret position. |
|
CTRL + A |
Select all. |
|
ESC |
Clear selection. |
|
F2 |
Goto next bookmark. |
|
SHIFT + F2 |
Goto previous bookmark. |
|
CRTL + F2 |
Toggle bookmark |
|
F3 |
Find next. |
|
TAB |
Indent selection. |
|
SHIFT + TAB |
Outdent selection. |
|
C# sample Add a keyboard action |
|
//Create a shortcut for
the F5 key (no shift,ctrl,alt) //to the
"SomeMethod" method ActionDelegate ad = new
ActionDelegate(this.SomeMethod); KeyboardAction ka =new
KeyboardAction (Keys.F5,false,false,false,false,ad); MySyntaxBox.KeyboadActions.Add
(ka); |
|
VB.NET sample Add a keyboard action |
|
'Create a shortcut for the
F5 key (no shift,ctrl,alt) 'to the
"SomeMethod" method Dim ad As
New ActionDelegate(Me.SomeMethod) Dim ka As
New KeyboardAction(Keys.F5, False, False,
False, False,
ad) MySyntaxBox.KeyboadActions.Add(ka) |
|
C# sample Remove a keyboard action |
|
//Remove shortcut assigned
to CTRL + Z sBox.KeyboadActions.Remove
(Keys.Z,false,true,false); |
|
VB.NET sample Remove a keyboard
action |
|
'Remove shortcut assigned
to CTRL + Z MySyntaxBox.KeyboadActions.Remove
(Keys.Z,False,True,False) |
|
Property |
Description |
|
GutterMarginWidth |
Gets or Sets the width of the Gutter margin in pixels. |
|
GutterMarginColor |
Gets or Sets the Color of the Gutter margin. |
|
GutterMarginBorderColor |
Gets or Sets the Color of the Gutter margin border. |
|
GutterIcons |
ImageList containing images that can be displayed in the gutter margin. |
|
ShowGutterMargin |
Gets or Sets if the Gutter margin is visible. |
|
C# sample Using Gutter icons |
|
private void
MySyntaxBox_RowMouseDown(object
sender, Compona.Windows.Forms.SyntaxBox.RowMouseEventArgs e) { //did the user click the gutter area? if (e.Area == RowArea.GutterArea) { //is image "3" visible on the clicked rows //gutter margin? if (e.Row.Images.Contains (3)) {
//yes , so we remove it
e.Row.Images.Remove (3); } else {
//no , lets add it--
e.Row.Images.Add (3); } //redraw the screen sBox.Refresh (); } } |
|
VB.NET sample - Using Gutter icons |
|
|
|
Property |
Description |
|
Document |
Gets or Sets the SyntaxDocument in a SyntaxBoxControl |
|
C# sample Attach a SyntaxDocument |
|
//attach
a new document to a syntaxbox |
|
VB.NET sample Attach a
SyntaxDocument |
|
'attach
a new document to a syntaxbox |
|
Property |
Description |
|
Position |
Gets or Sets the position of the Caret. |
|
LogicalPosition |
Gets or Sets the position of the Caret. |
|
Method |
Description |
|
MoveAbsoluteEnd (bool) |
Places the Caret at the last char of the document. |
|
MoveAbsoluteHome (bool) |
Places the Caret at position 0,0 |
|
MoveDown(bool) |
Moves the Caret DOWN 1 row. |
|
MoveDown(int,bool) |
Moves the Caret DOWN n rows. |
|
MoveEnd(bool) |
Moves the Caret to the last column of the current row. |
|
MoveHome(bool) |
Moves the Caret to either the first non-whitespace character of
the row or column 0 on that row, depending on the current position. |
|
MoveLeft(bool) |
Moves the Caret LEFT by one column , if start of line is reached
the caret is placed at the end of the previous row. |
|
MoveRight(bool) |
Moves the Caret RIGHT by one column , if end of line is reached
the caret moves to the start of the next row. |
|
MoveUp(bool) |
Moves the Caret UP 1 row. |
|
MoveUp(int,bool) |
Moves the Caret UP n rows. |
|
C# sample Move Caret |
|
//move the Caret one step
right and make a //selection from selection
start to the new position MySyntaxBox.Caret.MoveRight (true); |
|
VB.NET sample Move Caret |
|
'move the Caret one step
right and make a 'selection from selection
start to the new position MySyntaxBox.Caret.MoveRight (True) |
|
Property |
Description |
|
Bounds |
Gets or Sets bounds of the selection |
|
IsValid |
Gets if the selection covers 1 char or more. |
|
LogicalBounds |
Get normalized bounds . |
|
LogicalSelStart |
Get normalized SelStart |
|
SelEnd |
Index in the text where the selection ends. |
|
SelLength |
Length of the selection. |
|
SelStart |
Index in the text where the selection starts. |
|
Text |
The selected text. |
|
Method |
Description |
|
Indent() |
Indents the selected text. |
|
Outdent() |
Outdents the selected text. |
|
DeleteSelection() |
Deletes the selected text. |
|
ClearSelection() |
Clears the selection. |
|
MakeSelection() |
Creates a selection from the current selection start to the current Caret position. |
|
SelectAll() |
Select everything in the document. |


fun create(): ApiService
To send out network requests to an API, we need to use the Retrofit builder class and specify the base URL for the service.


We did not find any sensitive information, so your email was not filtered.
Go back to send another email.