TL;DR
On the importance of explanations. Definitely worth a read. Very interesting thought experiments. Extremely expansive in its scope - quantum physics, black holes, politics, morality, beauty et al.
Main takeaway - ‘Problems are inevitable. Problems are soluble’
My learnings follow.
For the more patient among you
I recently finished reading the book ‘The Beginning of Infinity’ by the Oxford physicist David Deutsch. It took me quite a while to do so. This was not only because of the size of the book (~500 pages) but also because of the density and novelty of insights.
The central theme of the book is the reach of knowledge and the central role that explanations have in its creation.
Human knowledge grows by a process of conjecture and criticism in a process similar to biological evolution - conjecture as variation and criticism as selection.
The best current theories will likely have a finite reach and fail at some point. We need to admit it and keep correcting our errors. Knowledge creation is essentially a process of error correction. It can go on infinitely. This is one of the senses of the word infinity in the title.
Knowledge creating systems like humans or genes have a special property. They can affect changes in the physical universe at great distances and in profound manners without the intervening space being modified in any significant way.
For example - humans can send robots to Mars to dig a tunnel.
This is another sense in which infinity is used since the reach of knowledge is potentially infinite.
Humans as universal constructors. Given sufficient knoweldge and wealth, a knowledge creating system can transform a physical system into any other physical system that is allowed by the laws of physics. This is yet another meaning of infinity.
Explanations can appear at various levels of abstractions known as emergence. They can also appear at various levels of approximation. When you heat a bowl of water, you could say that bubbles form because the ‘temperature’ reaches a certain ‘boiling point’. This is a useful explanation. A more lower level one would be that the kinetic energy of the particles increases. However, getting from this theory to predicting the formation of bubbles is non-trivial. There is no reason for one particular level of abstraction to be more fundamental or important than another. The various levels of explanations is yet another sense of infinity.
There are more such interpretations of infinity that are peppered throughout the book and that relate directly to the role of knowledge.
Optimism
Does not mean nothing bad will happen. That is pessimism in disguise.
It means that the root of problems is insufficient knowledge and wealth.
Problems are inevitable. Problems are soluble.
Bad philosophy and bad science
People often try to answer moral and philosophical questions using ‘science’. For example, the morality of killing animals. This is justified using biological ‘evidence’ to demonstrate that animals feel ‘pain’. However, pain like the sensation of seeing a colour is a quale (plural - qualia). Qualia are not something we don’t much understand scientifically yet. So in this case, society is just delegating a tough moral conversation about animals to bad science.
There is more discussion around Copenhagen interpretation of quantum physics that I will have to read more to get my head around.
Empiricism, Inductivism, Justificationism, Logical positivism, linguistic philosophy, Wittgenstein, post-modernism are contradicted unfavourably with fallibilism. I need to read Popper.
Society
Society is organised such that a few people are delegated the task of taking decisions that affect everyone.
Every individual is a possible policy maker. Some people volunteer for the task of doing so. The rest of the society should think of them as explanations. Competing political entities are akin to competing conjectures or explanations. We test one of them out for a tenure. Then if it seems not to work, we get rid of them by voting them out.
The true value of a democratic system is not in that it ‘represents’ people’s views. It is in that it provides a system where bad policies can be rejected peacefully while maintaining stability. Often in the past bad leadership was either disposed off in revolutions or lost out in battles.
‘Representing’ the choice of the society of even an individual is a logical impossibility. (Read social choice theory)
Art and beauty
Nature of beauty may not always be objective but a lot of times is. For example, flowers appear beautiful due to their need for unique cross-species signalling towards insects. This was honestly the least convincing section of the book but interesting nonetheless.
Static and Dynamic societies
The enlightenment that the West first encountered and which the rest of the world is now going through at different rates is giving rise to dynamic societies. These are societies where the use of innovation or creativity is directed towards challenging existing explanations.
Contrast this with static societies, which is most of the societies in the past where adhering to existing memes was highly valued and deviation looked down upon. So human creativity was directed towards best keeping the memes intact as they were.
Sustainability
The idea that sustainability means we should stop using up natural resource and keep things as they are is wrong. This is so because this would mean we are only waiting for a previously unencountered problem to come and destroy us. Sustainability means creating knowledge and wealth (resources) so that we can overcome ever newer challenges. To repeat - problems are inevitable. Problems are soluble.
For example -
Climate change. The main focus of all discussions and treaties is to reduce the contribution of anthropogenic rise in temperature. The problem with this approach:
- We are not focussing on mitigating climate change. What should we do if sea-level rise happens anyway even without human contribution ?
- These decisions are based on economic models that don’t take into account future knowledge. They are no different from phropesies and are not ‘scientific’
The title of the book
Taken from a quote in Asimov’s ‘The End of Eternity’. Used in this book in the sense that if we are indeed on a path towards infinite knowledge creation then at any point of time, we are uniquely at the beginning of that infinity.


Hooray! It's Ping Pong Time.
Ping Pong will count up to your number from 1 with the following exceptions:
Created by:
Charles Mwathi
Github Username
Mwathis
Level two test for:
JavaScript


Rule
Master
Dashboard
Profiles
Rule Sets
Testing
Versions
History
Dashboard
No rules created! Click below to create a ruleset
Create Ruleset


--- layout: post status: publish published: true title: 'Retraction: Why I Pulled Yesterday''s Obsucrantism Article' author: Ryan Hayden wordpress_id: 1142 wordpress_url: http://ryan-hayden.com/?p=1142 date: '2013-05-02 11:30:14 -0500' date_gmt: '2013-05-02 16:30:14 -0500' categories: - Fundamentalism - Personal tags: [] ---
Yesterday I posted an article about "Why Obscurantism Does't Work Anymore" where I wrote about the dangers of an obscurantist attitude toward questions and information. But a commentator (who I do not know) pointed out that there are times when a pastor needs to discourage his people from getting into certain kinds of information and he gave biblical examples.
While I still think that obscurantism is a problem, and in many cases I think there is a "just accept what I say and don't ask questions" attitude among pastors (which is surely not biblical) I don't want to give the impression that I think it's a bad thing for pastors to warn about the dangers of immersing yourself in doctrinal error.
So I pulled the article. Maybe, someday in the future, I will revise it and repost it when I feel like it's a little more ironed out and balanced.


term
Section: File Formats (5)Index Return to Main Contents
NAME
term - format of compiled term file.SYNOPSIS
termDESCRIPTION
STORAGE LOCATION
Compiled terminfo descriptions are placed under the directory /usr/share/terminfo. Two configurations are supported (when building the ncurses libraries):- directory tree
- A two-level scheme is used to avoid a linear search of a huge UNIX system directory: /usr/share/terminfo/c/name where name is the name of the terminal, and c is the first character of name. Thus, act4 can be found in the file /usr/share/terminfo/a/act4. Synonyms for the same terminal are implemented by multiple links to the same compiled file.
- hashed database
- Using Berkeley database, two types of records are stored: the terminfo data in the same format as stored in a directory tree with the terminfo's primary name as a key, and records containing only aliases pointing to the primary name.
- If built to write hashed databases, ncurses can still read terminfo databases organized as a directory tree, but cannot write entries into the directory tree. It can write (or rewrite) entries in the hashed database.
- ncurses distinguishes the two cases in the TERMINFO and TERMINFO_DIRS environment variable by assuming a directory tree for entries that correspond to an existing directory, and hashed database otherwise.
STORAGE FORMAT
The format has been chosen so that it will be the same on all hardware. An 8 or more bit byte is assumed, but no assumptions about byte ordering or sign extension are made.The compiled file is created with the tic program, and read by the routine setupterm. The file is divided into six parts: the header, terminal names, boolean flags, numbers, strings, and string table.
The header section begins the file. This section contains six short integers in the format described below. These integers are
-
- (1) the magic number (octal 0432);
- (2) the size, in bytes, of the names section;
- (3) the number of bytes in the boolean section;
- (4) the number of short integers in the numbers section;
- (5) the number of offsets (short integers) in the strings section;
- (6) the size, in bytes, of the string table.
Short integers are stored in two 8-bit bytes. The first byte contains the least significant 8 bits of the value, and the second byte contains the most significant 8 bits. (Thus, the value represented is 256*second+first.) The value -1 is represented by the two bytes 0377, 0377; other negative values are illegal. This value generally means that the corresponding capability is missing from this terminal. Note that this format corresponds to the hardware of the VAX and PDP-11 (that is, little-endian machines). Machines where this does not correspond to the hardware must read the integers as two bytes and compute the little-endian value.
The terminal names section comes next. It contains the first line of the terminfo description, listing the various names for the terminal, separated by the `|' character. The section is terminated with an ASCII NUL character.
The boolean flags have one byte for each flag. This byte is either 0 or 1 as the flag is present or absent. The capabilities are in the same order as the file <term.h>.
Between the boolean section and the number section, a null byte will be inserted, if necessary, to ensure that the number section begins on an even byte (this is a relic of the PDP-11's word-addressed architecture, originally designed in to avoid IOT traps induced by addressing a word on an odd byte boundary). All short integers are aligned on a short word boundary.
The numbers section is similar to the flags section. Each capability takes up two bytes, and is stored as a little-endian short integer. If the value represented is -1, the capability is taken to be missing.
The strings section is also similar. Each capability is stored as a short integer, in the format above. A value of -1 means the capability is missing. Otherwise, the value is taken as an offset from the beginning of the string table. Special characters in ^X or \c notation are stored in their interpreted form, not the printing representation. Padding information $<nn> and parameter information %x are stored intact in uninterpreted form.
The final section is the string table. It contains all the values of string capabilities referenced in the string section. Each string is null terminated.
EXTENDED STORAGE FORMAT
The previous section describes the conventional terminfo binary format. With some minor variations of the offsets (see PORTABILITY), the same binary format is used in all modern UNIX systems. Each system uses a predefined set of boolean, number or string capabilities.The ncurses libraries and applications support extended terminfo binary format, allowing users to define capabilities which are loaded at runtime. This extension is made possible by using the fact that the other implementations stop reading the terminfo data when they have reached the end of the size given in the header. ncurses checks the size, and if it exceeds that due to the predefined data, continues to parse according to its own scheme.
First, it reads the extended header (5 short integers):
-
- (1)
- count of extended boolean capabilities
- (2)
- count of extended numeric capabilities
- (3)
- count of extended string capabilities
- (4)
- size of the extended string table in bytes.
- (5)
- last offset of the extended string table in bytes.
Using the counts and sizes, ncurses allocates arrays and reads data for the extended capabilties in the same order as the header information.
The extended string table contains values for string capabilities. After the end of these values, it contains the names for each of the extended capabilities in order, e.g., booleans, then numbers and finally strings.
PORTABILITY
Note that it is possible for setupterm to expect a different set of capabilities than are actually present in the file. Either the database may have been updated since setupterm has been recompiled (resulting in extra unrecognized entries in the file) or the program may have been recompiled more recently than the database was updated (resulting in missing entries). The routine setupterm must be prepared for both possibilities - this is why the numbers and sizes are included. Also, new capabilities must always be added at the end of the lists of boolean, number, and string capabilities.Despite the consistent use of little-endian for numbers and the otherwise self-describing format, it is not wise to count on portability of binary terminfo entries between commercial UNIX versions. The problem is that there are at least three versions of terminfo (under HP-UX, AIX, and OSF/1) which diverged from System V terminfo after SVr1, and have added extension capabilities to the string table that (in the binary format) collide with System V and XSI Curses extensions. See terminfo(5) for detailed discussion of terminfo source compatibility issues.

LIMITS
Some limitations: total compiled entries cannot exceed 4096 bytes. The name field cannot exceed 128 bytes.FILES
/usr/share/terminfo/*/* compiled terminal capability data baseSEE ALSO
curses(3X), terminfo(5).AUTHORS
Thomas E. Dickeyextended terminfo format for ncurses 5.0
hashed database support for ncurses 5.6
Eric S. Raymond
Index
This document was created by man2html, using the manual pages.
Time: 05:34:00 GMT, December 24, 2015


Permissions, Redirection, and Piping Exercise.
Part I(Permissions and links)
- touch restricted.txt
- chmod 600 restricted.txt
- chmod a+rwx rextricted.txt
- mkdir secret_files
- ~/desktop/secret_files touch first_secret.txt
- ~/desktop/secret_files mkdir classified
- ~/desktop/secret_files/classified touch suoer_secret.txt
- chmod 770 secret_files
- ln restricted.txt hard_link
- ln -s classified classified_link
Part II(Piping and Redirection)
touch vegeables.txt
echo Lettuce > vegetables.txt
echo Amaranth >> vegetables.txt
echo Beet >> vegetables.txt
echo Celery >> vegetables.txt
echo Kale >> vegetables.txt
echo Dill >> vegetables.txt
echo Cabbage >> vegetables.txt
echo Broccoli >> vegetables.txt
echo Lettuce >> vegetables.txt
echo Amaranth >> vegetables.txt
echo Beet >> vegetables.txt
echo Spinach >> vegetables.txt
echo Chard >> vegetables.txt
echo Broccoli >> vegetables.txt
echo Cabbage >> vegetables.txt
echo Dill >> vegetables.txt
- sort vegetables.txt
- wc -l vegetables.txt
- sort vegetables_sorted.txt
- cat vegetables.txt | sort | tail -n 3 > last_three.txt
- wc vegetables.txt | grep Broccoli -l


{% extends "./partial/base.html" %} {% block title %}About{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block tabs %} {% endblock %} {% block content %} Latest 1 2 3 • • • Location + Hours title bnhvnvghcc, fghfgfhgfhgfghf, fghfgfhgfhgfghf Phone: 000000000 Email<EMAIL_ADDRESS>Mon - Fri 7am - 7pm Sun 10am - 2pm Sat 10am - 6pm Holidays Closed title bnhvnvghcc, fghfgfhgfhgfghf, fghfgfhgfhgfghf Phone: 000000000 Email<EMAIL_ADDRESS>Mon - Fri 7am - 7pm Sun 10am - 2pm Sat 10am - 6pm Holidays Closed {% endblock %}


The content of the document......
link
Press play to test for VLC support.
This instance of the player is potentially able to handle the following content types:
setFullscreen()


|
Evelyn, The Isle of Saints and Sadists
By John Denvir
I can only view the Irish film
Evelyn through the eyes of an Irish-American, a fact which
probably makes it a different film for me than for other viewers.
Most viewers will judge it a charming little confection just
right for consumption during the holiday season. And I readily
admit that it is a heart-warming tale of a family overcoming
hardship to share in the inevitable happy ending.
But
I think an online journal on law and popular culture might point
out an aspect of the film not likely to be discussed in the most
reviews. On the popular culture front, it's important to note
how much the film's "heartwarming effect" is the product
of the cynical recycling of stereotypes about the Irish. I'll
just mention three to illustrate my point.
We have early in the movie
the appearance of the virile, yet asexual priest, who is equally
adept with a quip or a left hook. Here he decks the protagonist
and then ministers to him physically and spiritually. I bet he
also croons a mean "Danny Boy." This type cleric is
a throwback to Bing Crosby in "The Bells of St. Mary's"
and I am sure it is a comfort to Catholics in these times of
priestly travail. He's a positive stereotype, but no less a stereotype
for that.
Secondly, we have the drunken
legal scholar whose love of the law is only matched by his love
of the bottle. In Evelyn, Alan Bates plays a retired law
professor who temporarily overcomes his weakness for the drink
to concoct the legal theory which brings Evelyn back to her family.
This, you will recall, is exactly the same role that Jimmy Stewart's
Irish- American sidekick Parnell McCarthy played in Anatomy
of a Murder. The Irish and whiskey is a comic combination
that Irish-American John Ford made a Hollywood cliche and Evelyn
plays it to the hilt. In fact, most of the male characters seem
to be either alcoholics or reformed alcoholics. It would be refreshing
to see an Irishman with a cocaine problem for a change.
Finally, there is Holy Mother
Church. The Church in Evelyn is mainly represented by
two nuns in the orphanage where Evelyn is sent. One is is a direct
descendant of Loretta Young in Come to the Stable. She's
pretty, bright, warm-hearted, and, above all, fun-loving. The
other has a less well-documented history in Hollywood films,
but represents a type growing in popularity as the Church continues
to lose its influence on its portrayal in popular culture. She
is a new incarnation of the Wicked Witch of the West in The
Wizard of Oz. Not only is she cruel and violent; she also
no fun at all. We might say that Evelyn portrays Ireland
as the Isle of Saints and Sadists.
Of course, if popular culture
didn't employ popular stereotypes it would quickly become unpopular
culture. We rely on generalizations to interpret a plot and stock
stereotypes make the viewer's job a lot easier. It will always
be with us. So it doesn't make sense to watch and write about
popular film with too critical an eye. But perhaps we can keep
reminding ourselves every time we see film depictions of groups
we personally know little about ( Arabs come to mind) that it's
just a movie.
Posted January 22, 2003
|


| Specification Name | [[Description]] | Value and Purpose |
|---|---|---|
| @@asyncDispose | `"Symbol.asyncDispose"` | A method that performs explicit resource cleanup on an object. Called by the semantics of the `try`-`using` statement while in an async function or async generator. |
| @@dispose | `"Symbol.dispose"` | A method that performs explicit resource cleanup on an object. Called by the semantics of the `try`-`using` statement. |


ARIA Combobox (Native Inputs, Editable and Readonly)
The State field is an editable ARIA Combobox widget that uses a native Input element. The Country field is a readonly ARIA Combobox widget that uses a native Input element.
The native input comboboxes are optimized for screen reader and keyboard only users.
- Set focus to the State or Country fields to open the combobox control.
- Within a combobox that is not readonly, first type into the field, then press the Down arrow to navigate into the dropdown and use the Up and Down arrow keys to navigate available options.
- Press any other letter or number, or the Left or Right arrow keys to then move focus back into the Input for editing.
- Within a combobox that is readonly, press the Down arrow or click the trigger icon to open the dropdown.
- Press any letter or number within a readonly field to jump to an option starting with that character or digit.
- Press Enter or Alt+Up to close the dropdown and save the selection.
- To cancel, press Escape, Tab or Shift+Tab to close the dropdown.
- Sighted mouse users can click the desired option to save the selection and close the dropdown.


Dhruv Saidava
FAB LAB CEPT
Home
About Me
Weekly
Principles and Practices , Project Management
Computer Aided Design
Computer Controlled Cutting
Me at FAB LAB
Final Project
Files
Fab-Academy Weekly Assignments
Week 1 | 25 Jan
Making Website
Principles and practices project management.html


{% include './includes/head.html' %}
{% include './includes/header.html' %}
Denotational Semantics
Enter Data
** Remember to use spaces when entering an equation **
** equations mus be simple and not include brackets **
Data
Submit


This form is only meant for submitting some data to the DeclarativeSecureServlet using the HTTP POST method.
Remember that we have allowed only supervisors to access the doPost() of this servlet. Therefore, when you submit the form
you will be asked for username/password. And it will work only as per the users specified in tomcat-users.xml (explained in the previous page).
If you enter john/jjj as the username/password, you will not be allowed to access
the servlet because john is not configured as a supervisor in tomcat-users.xml. But if you enter bob/bbb, the servlet will be executed because bob is configured as a supervisor.
Also, once you enter a valid username/password (john/jjj or bob/bbb), you'll not be asked for authentication again even if you try to login with a different user name.
To change your authentication parameters, you'll have to shutdown all browser windows and access this page again.
Please enter your name


fooof.sim.gen_power_spectrum¶
-
fooof.sim.
gen_power_spectrum
(freq_range, aperiodic_params, periodic_params, nlv=0.005, freq_res=0.5, f_rotation=None, return_params=False)[source]¶ Generate a simulated power spectrum.
- Parameters
- freq_rangelist of [float, float]
Frequency range to simulate power spectrum across, as [f_low, f_high], inclusive.
- aperiodic_paramslist of float
Parameters to create the aperiodic component of a power spectrum. Length should be 2 or 3 (see note).
- periodic_paramslist of float or list of list of float
Parameters to create the periodic component of a power spectrum. Total length of n_peaks * 3 (see note).
- nlvfloat, optional, default: 0.005
Noise level to add to generated power spectrum.
- freq_resfloat, optional, default: 0.5
Frequency resolution for the simulated power spectrum.
- f_rotationfloat, optional
Frequency value, in Hz, to rotate around. Should only be set if spectrum is to be rotated.
- return_paramsbool, optional, default: False
Whether to return the parameters for the simulated spectrum.
- Returns
- freqs1d array
Frequency values, in linear spacing.
- powers1d array
Power values, in linear spacing.
- sim_paramsSimParams
Definition of parameters used to create the spectrum. Only returned if return_params is True.
Notes
Aperiodic Parameters:
The function for the aperiodic process to use is inferred from the provided parameters.
If length of 2, the ‘fixed’ aperiodic mode is used, if length of 3, ‘knee’ is used.
Periodic Parameters:
The periodic component is comprised of a set of ‘peaks’, each of which is described as:
Mean (Center Frequency), height (Power), and standard deviation (Bandwidth).
Make sure any center frequencies you request are within the simulated frequency range.
The total number of parameters that need to be specified is number of peaks * 3
These can be specified in as all together in a flat list (ex: [10, 1, 1, 20, 0.5, 1])
They can also be grouped into a list of lists (ex: [[10, 1, 1], [20, 0.5, 1]])
Rotating Power Spectra:
You can optionally specify a rotation frequency, such that power spectra will be simulated and rotated around that point to the specified aperiodic exponent.
This can be used so that any power spectra simulated with the same ‘f_rotation’ will relate to each other by having the specified rotation point.
Note that rotating power spectra changes the offset.
If you specify an offset value to simulate as well as ‘f_rotation’, the returned spectrum will NOT have the requested offset. It instead will have the offset value required to create the requested aperiodic exponent with the requested rotation point.
If you return SimParams, the recorded offset will be the calculated offset of the data post rotation, and not the entered value.
You cannot rotate power spectra simulated with a knee.
The procedure we use to rotate does not support spectra with a knee, and so setting ‘f_rotation’ with a knee will lead to an error.
Examples
Generate a power spectrum with a single peak, at 10 Hz:
>>> freqs, powers = gen_power_spectrum([1, 50], [0, 2], [10, 0.5, 1])
Generate a power spectrum with alpha and beta peaks:
>>> freqs, powers = gen_power_spectrum([1, 50], [0, 2], [[10, 0.5, 1], [20, 0.5, 1]])
Generate a power spectrum, that was rotated around a particular frequency point:
>>> freqs, powers = gen_power_spectrum([1, 50], [None, 2], [10, 0.5, 1], f_rotation=15)


Richard S Miller
Republican
Retired Previous employment: 1989-2018 Chief Title Officer, Title Company of the Rockies, Winter Park, CO
High School Diploma
80446
Just a regular voter
None
None
To help ensure that everyone is properly represented in the Colorado legislature.
Grand County and much of the western slope along with eastern Colorado is largely rural and believe that legislative representation should reflect those values, whereas much of the front range is largely urban/suburban and representation should be fair and equitable for all of the citizens of those regions. Matters of import to those in each of our state's regions vary greatly and it is important that all residents of Colorado have representation that most appropriately fits the demographics of a particular region.
Having spent nearly my entire career in the title insurance industry I've had the pleasure to work with attorneys from California to New York, from Illinois to Florida as well as most of the large firms in Denver. I have researched and written title insurance for several of Colorado's largest ski areas, including Aspen, Snowmass, Vail, Beaver Creek, Breckenridge, Copper Mountain plus a few others, and I would be remiss if I didn't mention Winter Park/MaryJane. Researching the history of real estate, particularly large parcel, high value transactions, can be a daunting task. You must possess a great knowledge of boundary descriptions, have a good working knowledge of Colorado real estate law, know the legal implications of easements and other liens and encumbrances, and then write a detailed report of your findings. The ultimate goal is to reach a satisfactory resolution to any concerns among the parties, and get the transaction completed, which, as many of you know, can be difficult with attorneys with differing clients perspectives.
Male


Let's add a simple script which loads google maps js API and execute callbacks when API is ready.
The simplest example is just a map without any markers and popups. Lets draw one.
To do so
we must be sure that all classes from the API are loaded and available globally.
I recommend using something like script above and subscribe on API load.
By doing that you don't rely on any execution order and don't load google script until it is needed (which is always good for performance).
You can do it either by waiting for onMapsReady callback:
onMapsReady(() => {
const map = new GoogleMaps.GoogleMap(document.getElementById('map'));
map.render();
});
Or pass a promise to the GoogleMap options which will be resolved once Maps Api is ready:
const map = new GoogleMaps.GoogleMap(
document.getElementById('map'),
{},
{
initPromise: () => new Promise((resolve) => onMapsReady(resolve))
}
);
map.render();
In our examples we will use the second option
Add a few options and render the map:
Note how after creating a GoogleMap we then call render() method.
Just creating an instance doesn't render anything,
you have to implicitly call its render method
Just pass an array of MarkerConfig to setMarkers method and then call render. Markers will be fit within the map automatically by calling
Map.fitBounds
This can be disabled by passing
autoFitOnRender: false to the options (default is true). Also you can pass
fitPaddings option
which will be also passed to Map.fitBounds as the second argument
To render popups we need some basic styles
Our implementation of custom popups is based on this example Google: https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/javascript/examples/overlay-popup
But it also hides a few implementation details and allow you to style your popups with fewer elements and classes:
These elements which will be our popups
autoFitPopup options is enabled by default and it will likely work at once: once you click on marker that has popupElement and popup with this element is opened
we will try to fit the whole popup within the map.
To do so we should get the width and height of particular popup's content and adjust map positioning.
In case you use more complex styles or a lot of "position:absolute" the width and height of the popup root element can be zero.
If
autoFitPopup doesn't work for you out of the box you can try passing additional options which is called
getPopupContent.
It is a function that receives a root element of your popup and should return an element that contains an actual content of your popup (so it will have proper width and height).
For example you can add additional attribute to your markup to mark a particular element as popup content and return it from
getPopupContent.
getPopupContent: root => root.querySelector('[data-popup-content]')
Lets render our markers with popups. For that we will have an array of markers configs which have popupElement property:
If you want to customize your markers the easiest way is to pass additional option
createMarker. If it is provided than instead of creating default marker class by calling new GoogleMarker(options)
your custom function will be called.
This function should return an instance of GoogleMarker class.
You can implement whatever logic you want (for example create instances of different classes) and then override their
getIconUrl (getIconWidth/getIconHeight) method like below:
See options for these here:
https://developers.google.com/maps/documentation/javascript/reference/polygon#PolylineOptions
https://developers.google.com/maps/documentation/javascript/reference/polygon#PolygonOptions


{% extends "layout_picker.html" %} {% set serviceName = "Apply for a resident's parking permit" %} {% set s = 's' if permitRequestData.permitRequests.length > 1 else '' %} {% set pageTitle = "Enter vehicle registration number" + s %} {% block content %}
You've chosen {{ parkingPermitCount }} resident's parking permit{{s}}.
{% if council.DVLAAPIenforcement %}We need your vehicle's registration number{{s}} to:
We need your vehicle's registration number{{s}} to link your permit{{s}} to your vehicle{{s}}.
{% endif %}


|
One stop platform for Physical Trainers and Trainees.
Need a platform to interact with your Clients? Dear Trainers, Oveefit is your choice. |
|
Meet Trainers or Clients from all over India.
During these times, the lack of physical interaction makes Physical training lose its touch.
Despite being an online platform, we strive to provide you a Personalised Experience. Trainers can have a one-on-one interactive experience as they provide hand-tailored Training plans to their clients based on their requirements and Physical Conditions. |
|
Work with us.
Development, Marketing and more For any Queries, please feel free to contact us. |


I have journeyed into the worlds of salvia divinorum (the divine sage) and our good friend dimethyltryptamine on numerous occasions and have always been drawn back for further explorations. At times my mind begs the question, is it worth the attempt to describe the rapture and sheer transcendence of these substances in words or is it in vain, must these realms must be experienced personally to be at all understood? I feel my experience can only provide a roadmap to aid in making the transcendent a less confusing and potentially overwhelming space for anyone else out there who is interested in such hyperspatial pursuits. That being said, allow me in this piece to present a composite of my encounters with the salvia goddess, and I will leave the DMT retrospective for another time.
I feel that salvia divinorum, in its most potent forms (40x and liquid salvia extract), has informed much of my life and world as a whole and specifically my attitudes regarding magick and non-physical entities. In my early period of usage (circa junior year of high school), I began encountering the “ecology of souls” that McKenna has described in his works. Once I had broken through, I encountered an infinitely teeming void, its liquid corridors seemingly crawling with super-conscious beings. Whether one labels them gods, aliens, self-transforming machine elves, or even garden variety machine elves is of no consequence to the fact of their felt and immediately present existence.
These realms are co-present with our own mundane reality but that they are not experienced because human evolution at this stage primarily locks us into the 3-D world of trees, cars, houses, oceans, paved wastelands, “physical” people and the like. All that salvia (or anything else) provides is a key to unlock the “doors of perception” (Huxley’s terms) and gain a more fully realized version of the complex spiritual reality I find myself living in (or choose to ignore as the case may be). The argument that these hyperspatial entities are figments of the human imagination is trivial, as the same argument can be made for ‘real’ people in the ‘real’ world (solipsism). I give as much respect to my experience of dream and faerie realities as I do to my waking and working life, and hold all as equally sacred and equally mundane as anything else.
The entities I encounter in this dimension are buzzing with energy, sometimes frantic, they are the very architects of the grosser levels of my existence. These are the gods who create and destroy universes in the blink of an eye, and guide us in the ongoing procession of states of awareness of the Self. They operate not as individual consciousness, but as group-mind, in unified collectives with a shared intentionality that represents our potential as humans and from which we have much to learn.
In McKenna’s words, this experience is “…a doorway out of history and into the wiring under the board in eternity.” What I often describe in elf or alien imagery can be compared to Hindu motifs in the words of Joseph Campbell: “The Earth is the energy of which the god is a personification and of which matter is a concretization… Vishnu sleeps on the cosmic serpent, that cosmic serpent floats on the cosmic sea, and Vishnu in that sleep dreams the dream that is the universe, the lotus of a universe. On the lotus sits a Brahma, and every time Brahma opens his eyes, A world-age comes into being, governed by an Indra. He closes his eyes. He opens his eyes, another world-age. He closes his eyes. This goes on for 360 divine years, eyes opening and closing, and then the lotus dissolves, and it goes back, another lotus, another Brahma, opening, closing… consider the galaxies, the infinitudes of space, each with its lotus, its Brahma - eyes opening, eyes closing.”
This is the experience of the eternal, psychedelic theater upon which the dance of creation itself is choreographed. There is also the feeling of being a much smaller aspect of a larger organism or being, of being a cell in the brain of a god who is imagining the lucid dream we call the world, and seeing the disconnect between my individualistic perception of daily living and the larger truth that the planet and cosmos itself is a unified being with specified ‘organs’ all serving the higher good.
I have been in certain rooms under the influence of the salvia goddess where I was not able to shield my immediate self from more hostile or disconnected forces. For instance, in the presence of those who carry a shadow with them, or are plagued by negative thought forms or ego trips (myself included at times), the openness that salvia brings on can tear at the fabric of my psyche. I have felt planes of two dimensional ‘glass’ intersecting at odd angles my entire being, splicing my body into disconnected pieces that had trouble communicating with each other, afraid my heart would stop beating if I did not consciously cause it to do so. It is all too common to resist this higher interconnected reality and be torn apart as a result. Resistance only feeds the fear, and I learned how to guide the process and attract only those energies that are in my best interest and the interest of the world.
I have had some of the most rapturous salvia experiences in the woods by the house I grew up in, and natural settings give me new admiration for the glory and diverse manifestation of the divine in nature. I have been able to guide the experience to absolute blissful laughter and a sense of ‘sharing a joke with the world’ as Jefferson Airplane put it.
The power of these experiences is very real, it is a depth of thought and the creation of new thought forms which informs my daily life with compassion and appreciation for the depth in the smallest details of living.
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.


FUNCTION
Using functions we can structure our programs in a more modular way, accessing all the potential that structured
programming can offer to us in C++.
A function is a group of statements that is executed when it is called from some point of the program. The
following is its format:
type name ( parameter1, parameter2, ...) { statements }
where:
- type is the data type specifier of the data returned by the function.
- name is the identifier by which it will be possible to call the function.
- parameters (as many as needed): Each parameter consists of a data type specifier followed by an identifier, like any regular variable declaration (for example: int x) and which acts within the function as a regular local variable. They allow to pass arguments to the function when it is called. The different parameters are separated by commas.
- statements is the function's body. It is a block of statements surrounded by braces { }.
Here you have the first function example:
// function example #include <iostream> using namespace std; int addition (int a, int b) { int r; r=a+b; return (r); } int main () { int z; z = addition (5,3); cout<<"The result is "<<z; return 0; }
example:
The result is 8
In order to examine this code, first of all remember something said at the beginning of this tutorial: a C++
program always begins its execution by the main function. So we will begin there.
We can see how the main function begins by declaring the variable z of type int. Right after that, we see a call to
a function called addition. Paying attention we will be able to see the similarity between the structure of the call
to the function and the declaration of the function itself some code lines above:
int addition(int a,int b)
z=addition(5,3);
The parameters and arguments have a clear correspondence. Within the main function we called to addition
passing two values: 5 and 3, that correspond to the int a and int b parameters declared for function addition.
At the point at which the function is called from within main, the control is lost by main and passed to function
addition. The value of both arguments passed in the call (5 and 3) are copied to the local variables int a and int
b within the function.
Function addition declares another local variable (int r), and by means of the expression r=a+b, it assigns to r
the result of a plus b. Because the actual parameters passed for a and b are 5 and 3 respectively, the result is 8.
The following line of code:
return (r);
finalizes function addition, and returns the control back to the function that called it in the first place (in this case,
main). At this moment the program follows it regular course from the same point at which it was interrupted by the
call to addition. But additionally, because the return statement in function addition specified a value: the
content of variable r (return (r);), which at that moment had a value of 8. This value becomes the value of
evaluating the function call.
int addition(int a,int b)
z=addition(5,3);
Scope of variables
The scope of variables declared within a function or any other inner block is only their own function or their own block and cannot be used outside of them. For example, in the previous example it would have been impossible to use the variables a, b or r directly in function main since they were variables local to function addition. Also, it would have been impossible to use the variable z directly within function addition, since this was a variable local to the function main.
#include <iostream> int Integer; //Global variable char Character; //Global variable char string[20]; //Global variable unsigned int NumberofSons; main() { unsigned short Age; //Local variable float Number; //Local variable cout<<"Enter your age"; cin>>Age; //Instructions }
Therefore, the scope of local variables is limited to the same block level in which they are declared. Nevertheless,
we also have the possibility to declare global variables; These are visible from any point of the code, inside and
outside all functions. In order to declare global variables you simply have to declare the variable outside any
function or block; that means, directly in the body of the program.
And here is another example about functions:
// function example #include <iostream> using namespace std; int subtraction (int a, int b) { int r; r=a-b; return (r); } int main () { int x=5, y=3, z; z = subtraction (7,2); cout<<"The first result is "<<z<<'\n'; cout<<"The second result is "<<subtraction (7,2)<<'\n'; cout<<"The third result is "<<subtraction (x,y)<<'\n'; z= 4 + subtraction (x,y); cout<<"The fourth result is "<<z<<'\n'; return 0; }
output:
first result is 5 The second result is 5 The third result is 2 The fourth result is 6
In this case we have created a function called subtraction. The only thing that this function does is to subtract
both passed parameters and to return the result.
Nevertheless, if we examine function main we will see that we have made several calls to function subtraction.
We have used some different calling methods so that you see other ways or moments when a function can be
called.
In order to fully understand these examples you must consider once again that a call to a function could be
replaced by the value that the function call itself is going to return. For example, the first case (that you should
already know because it is the same pattern that we have used in previous examples):
z = subtraction (7,2); cout<<"The first result is "<<z;
If we replace the function call by the value it returns (i.e., 5), we would have:
z=5; cout<<"The first result is "<<z;
As well as
cout<<"The second result is "<<subtraction (7,2);
has the same result as the previous call, but in this case we made the call to subtraction directly as an insertion parameter for cout. Simply consider that the result is the same as if we had written:
cout<<"The second result is "<<5;
since 5 is the value returned by subtraction (7,2).
In the case of:
cout<<"The third result is "<<subtraction (x,y);
The only new thing that we introduced is that the parameters of subtraction are variables instead of constants.
That is perfectly valid. In this case the values passed to function subtraction are the values of x and y, that are 5
and 3 respectively, giving 2 as result.
The fourth case is more of the same. Simply note that instead of:
z = 4 + subtraction (x,y);
we could have written:
z = subtraction (x,y) + 4;
with exactly the same result. I have switched places so you can see that the semicolon sign (;) goes at the end of the whole statement. It does not necessarily have to go right after the function call. The explanation might be once again that you imagine that a function can be replaced by its returned value:
z = 4 + 2; z = 2 + 4;
Functions with no type. The use of void.
syntax of a function declaration:
type name ( argument1, argument2 ...) statement
you will see that the declaration begins with a type, that is the type of the function itself (i.e., the type of the
datum that will be returned by the function with the return statement). But what if we want to return no value?
Imagine that we want to make a function just to show a message on the screen. We do not need it to return any
value. In this case we should use the void type specifier for the function. This is a special specifier that indicates
absence of type.
// void function example #include<iostream> using namespace std; void printmessage () { cout<<"I'm a function!"; } int main () { printmessage (); return 0; }
output:
I'm a function!
void can also be used in the function's parameter list to explicitly specify that we want the function to take no actual parameters when it is called. For example, function printmessage could have been declared as:
void printmessage (void) { cout<<"I'm a function!"; }
Although it is optional to specify void in the parameter list. In C++, a parameter list can simply be left blank if we
want a function with no parameters.
What you must always remember is that the format for calling a function includes specifying its name and
enclosing its parameters between parentheses. The non-existence of parameters does not exempt us from the
obligation to write the parentheses. For that reason the call to printmessage is:
printmessage ();
The parentheses clearly indicate that this is a call to a function and not the name of a variable or some other C++ statement. The following call would have been incorrect:
printmessage;


TestingTool :: Log In
Insert your 'Log In Code' in the box below and click on the 'Log In' button. Please ask your teacher if you do not have a 'Log In Code'.
Log In Code:
{$c{params}->{login_status}}


Go from Powerpoint to UI in seconds
Yes. We think building UIs are hard too. How does drag and drop sound?
Easy
Drop elements, write JS, and bundle with Electron to ship fast
Extensible
Don't see a shape or element? You can add it in yourself
Responsive
Choose to render your elements either as an absolute or grid layout
Reusable
Reuse the airppt-parser to use Powerpoint elements anywhere.
Note from the Author
I've always struggled with aligning UI elements. I hope this tool helps you as it helps me. Your contributions to improving this project are always welcome.
-Ravi