Woman hit in Nanaimo crosswalk airlifted to Victoria hospital
A 24-year-old woman is in hospital in Victoria after she was hit by a vehicle in a crosswalk in Nanaimo on Monday night.
Nanaimo RCMP said the woman suffered life-threatening injuries when she was struck at 8:40 p.m. at the intersection of Albion Street and Bruce Avenue and was airlifted to hospital.
The 31-year-old woman who was driving remained at the scene and is co-operating with police. Her car has been seized for a mechanical inspection.
RCMP said the crosswalk is not lit and at the time of the collision, it was raining, roads were slick and there was glare on the road.
The injured woman was wearing dark, non-reflective clothing.


References
Image
Music Videos Page
All of the music is originally:
Drop It Like It's Hot (Instrumental) (4:31)
by Snoop Dogg feat. Pharrell Williams
Drop It Like It's Hot - Single
produced by The Neptunes.
2004 Geffen Records
All of the music is originally:
Drop It Like It's Hot (Instrumental) (4:31)
by Snoop Dogg feat. Pharrell Williams
Drop It Like It's Hot - Single
produced by The Neptunes.
2004 Geffen Records


Templating
There are almost as many Python templating systems as there are web frameworks (and, indeed, it seems like many templating systems are adopting web framework-like features). The following are the goals of templetor, which is the (codename of) templating system of web.py.
- The templating system has to look decent. No
<%#foo#%>
crud. - Reuse Python terms and semantics as much as possible.
- Expressive enough to do real computation.
- Usable for any text language, not just HTML and XML.
And requirements for the implementation as well:
- Sandboxable so that you can let untrusted users write templates.
- Simple and fast implementation.
So here it is.
Variable substitution
Look, a $string.
Hark, an ${arbitrary + expression}.
Gawk, a $dictionary[key].function('argument').
Cool, a $(limit)ing.
Stop, \$money isn't evaluated.
We use basically the same semantics as (rejected) PEP 215 [http://www.python.org/peps/pep-0215.html]. Variables can go anywhere in a document.
Newline suppression
If you put a backslash \
at the end of a line \
(like these) \
then there will be no newline.
renders as all one line.
Expressions
Here are some expressions:
$for var in iterator: I like $var!
$if times > max:
Stop! In the name of love.
$else:
Keep on, you can do it.
That's all, folks.
All your old Python friends are here: if
, while
, for
,
else
, break
, continue
, and pass
also act as you’d
expect. (Obviously, you can’t have variables named any of these.) The
Python code starts at the $
and ends at the :
. The $
has to
be at the beginning of the line, but that’s not such a burden because of
newline suppression (above).
Also, we’re very careful about spacing – all the lines will render with no spaces at the beginning. (Open question: what if you want spaces at the beginning?) Also, a trailing space might break your code.
There are a couple changes from Python: for
and while
now take
an else
clause that gets called if the loop is never evaluated.
(Possible feature to add: Django-style for loop variables.)
Comments
$# Here's where we hoodwink the folks at home:
Please enter in your deets:
CC: [ ] $#this is the important one
SSN: $#Social Security Number#$ [ ]
Comments start with $#
and go to #$
or the end of the line,
whichever is first.
Code
NOTE: This feature has not been implemented in the current web.py implementation of templetor.
Sometimes you just need to break out the Python.
$ mapping = {
$ 'cool': ['nice', 'sweet', 'hot'],
$ 'suck': ['bad', 'evil', 'awful']
$ }
Isn't that $mapping[thought]?
That's$ del mapping $ fine with me.
$ complicatedfunc()
$ for x in bugs:
$ if bug.level == 'severe':
Ooh, this one is bad.
$ continue
And there's $x...
Body of loops have to be indented with exactly 4 spaces.
Code begins with a $
and a space and goes until the next $
or
the end of the line, whichever comes first. Nothing ever gets output if
the first character after the $
is a space (so complicatedfunc
above doesn’t write anything to the screen like it might without the
space).
Python integration
A template begins with a line like this:
$def with (name, title, company='BigCo')
which declares that the template takes those arguments. (The with
keyword is special, like def
or if
.)
Don’t forget to put spaces in the definition
The following will not work:
$def with (name,title,company='BigCo')
Inside Python, the template looks like a function that takes these
arguments. It returns a storage object with the special property that
evaluating it as a string returns the value of the body of the template.
The elements in the storage object are the results of the def
s and
the set
s.
Perhaps an example will make this clearer. Here’s a template, “entry”:
$def with (post)
$var title: $post.title

$markdown(post.body)

by $post.author

Here’s another; “base”:
$def with (self)

<title>$self.title</title>

$self.title

$:self

Now let’s say we compile both from within Python, the first as
entry
, the second as base
. Here’s how we might use them:
print base( entry( post ) )
entry
takes the argument post and returns an object whose string
value is a bit of HTML showing the post with its title in the property
title
. base
takes this object and places the title in the
appropriate place and displays the page itself in the body of the page.
The Python code prints out the result.
Where did ``markdown`` come from? It wasn’t passed as an argument. You can pass a list of functions and variables to the template compiler to be made globally available to templates. Why $:self? See below
Here’s an example:
import template
render = template.render('templates/')
template.Template.globals['len'] = len
print render.base(render.message('Hello, world!'))
The first line imports templetor. The second says that our templates are
in the directory templates/
. The third give all our templates access
to the len
function. The fourth grabs the template message.html
,
passes it the argument 'Hello, world!'
, passes the result of
rendering it to mcitp [http://www.buyitcert.com/mcitp.html] the
template base.html
and prints the result. (If your templates don’t
end in .html
or .xml
, templetor will still find them, but it
won’t do its automatic HTML-encoding.)
Turning Off Filter
By default template.render
will use web.websafe
filter to do
HTML-encoding. To turn it off, put a : after the $ as in:
$:form.render()
Output from form.render() will be displayed as is.
$:fooBar $# fooBar = lorem ipsum
Output from variable in template will be displayed as is.
Including / nesting templates
If you want to nest one template within another, you nest the
render()
calls, and then include the variable (unfiltered) in the
page. In your handler:
print render.foo(render.bar())
or (to make things a little more clear):
barhtml = render.bar()
print render.foo(barhtml)
Then in the template foo.html
:
$def with (bar)
html goes here
$:bar
more html
This replaces the $:bar
with the output of the render.bar()
call
(which is why it must be $:
/unfiltered, so that you get un-encoded
HTML (unless you want something else of course)). You can pass variables
in, in the same way:
print render.foo(render.bar(baz), qux)
In the template bar (bar.html
):
$def with (baz)
bar stuff goes here + baz
In template foo (foo.html
):
$def with (bar, qux)
html goes here
$:bar
Value of qux is $qux
Escaping
web.py automatically escapes any variables used in templates, so that if for some reason name is set to a value containing some HTML, it will get properly escaped and appear as plain text. If you want to turn this off, write $:name instead of $name.


Welcome and thank you for taking the time to visit my website. The navigation bar below contains the links to each page for your convenience.
My name is Hamza Iqbal. I majored in Industrial Engineering and received a minor in Engineering Project Management. I graduated from Texas A&M University in December 2020 with a bachelor's degree, a Data Center Operations Engineering Certificate, and an Engineering Systems Management Certificate.
The purpose of this website is to provide potential employers with information about me. You are currently viewing the Home Page, but you can navigate to the other two pages using the links in the naviagtion bar above. The "Resume" page contains information about my academics, skills, and work history while the "Projects" page provides details and visuals of projects I've done as a student at Texas A&M University.


India announces $400 mln loan for Sri Lanka, in support of new president
India will lend Sri Lanka $400 million for infrastructure projects, Prime Minister Narendra Modi said on Friday after talks with the island nation's new President Gotabaya Rajapaksa aimed at improving bilateral ties.
Sri Lanka, located off the southern tip of India, has become an arena of competing influence between New Delhi and China, which has built ports, power stations and highways as part of President Xi Jinping's signature "Belt and Road Initiative", designed to boost trade and transport links across Asia.
But the terms of some of those projects have drawn criticism from politicians in Sri Lanka and opened the way for countries such as India, the United States and Japan to rebuild ties in the Indian Ocean country that lies near key shipping lanes.
Rajapaksa, Sri Lanka's former wartime defence chief, is on his first visit to India after a sweeping election victory earlier this month won on a platform promising to pull the country out of its deepest economic slump in more than 15 years.
He told reporters he wanted to take bilateral ties with India to a ‘very high level’
Modi said India would provide Sri Lanka with $50 million for its security needs in addition to the $400 million for infrastructure. "India is fully committed to the development of Sri Lanka," he said.


OWASP Theme
A CTF, WTF is that?
CTF ⇒ Capture The Flags
Actually, they are…
hacking games
hacking puzzles
computer science puzzle
nerd puzzles


|
libARUtils
1.0
|
libARUtils Ftp header file. More...
Go to the source code of this file.
Macros | |
| #define | ARUTILS_FTP_ANONYMOUS "anonymous" |
| Ftp anonymous user name. | |
| #define | ARUTILS_FTP_MAX_URL_SIZE 512 |
| Ftp max url string size. | |
| #define | ARUTILS_FTP_MAX_PATH_SIZE 256 |
| Ftp max file name path string size. | |
| #define | ARUTILS_FTP_MAX_LIST_LINE_SIZE 512 |
| Ftp max list line string size. | |
Typedefs | |
| typedef void(* | ARUTILS_Ftp_ProgressCallback_t )(void *arg, float percent) |
| Progress callback of the Ftp download. More... | |
| typedef struct ARUTILS_WifiFtp_Connection_t | ARUTILS_WifiFtp_Connection_t |
| Public Ftp Connection struct. More... | |
Enumerations | |
| enum | eARUTILS_FTP_RESUME { FTP_RESUME_FALSE = 0, FTP_RESUME_TRUE } |
| Ftp Resume enum. More... | |
Functions | |
| const char * | ARUTILS_Ftp_List_GetNextItem (const char *list, const char **nextItem, const char *prefix, int isDirectory, const char **indexItem, int *itemLen, char *lineData, int lineDataLen) |
| File list iterator function. More... | |
| const char * | ARUTILS_Ftp_List_GetItemSize (const char *line, int lineSize, double *size) |
| File size accessor function from a file of a File list. More... | |
| ARUTILS_WifiFtp_Connection_t * | ARUTILS_WifiFtp_Connection_New (ARSAL_Sem_t *cancelSem, const char *server, int port, const char *username, const char *password, eARUTILS_ERROR *error) |
| Create a new Ftp Connection. More... | |
| void | ARUTILS_WifiFtp_Connection_Delete (ARUTILS_WifiFtp_Connection_t **connection) |
| Delete an Ftp Connection. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Connection_Disconnect (ARUTILS_WifiFtp_Connection_t *connection) |
| Disconnect an remote Ftp server connection. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Connection_Reconnect (ARUTILS_WifiFtp_Connection_t *connection) |
| Reconnect an remote Ftp server connection. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Connection_Cancel (ARUTILS_WifiFtp_Connection_t *connection) |
| Cancel an Ftp Connection command in progress (get, put, list etc) More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_IsCanceled (ARUTILS_WifiFtp_Connection_t *connection) |
| Check if the connection has received a cancel to it's semaphore. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Connection_Reset (ARUTILS_WifiFtp_Connection_t *connection) |
| Reset an Ftp Connection command in progress (get, put, list etc) More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_List (ARUTILS_WifiFtp_Connection_t *connection, const char *namePath, char **resultList, uint32_t *resultListLen) |
| Execute Ftp List command to retrieve directory content. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Rename (ARUTILS_WifiFtp_Connection_t *connection, const char *oldNamePath, const char *newNamePath) |
| Rename an remote Ftp server file. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Size (ARUTILS_WifiFtp_Connection_t *connection, const char *namePath, double *size) |
| Get the size of an remote Ftp server file. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Delete (ARUTILS_WifiFtp_Connection_t *connection, const char *namePath) |
| Delete an remote Ftp server file. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Get (ARUTILS_WifiFtp_Connection_t *connection, const char *namePath, const char *dstFile, ARUTILS_Ftp_ProgressCallback_t progressCallback, void *progressArg, eARUTILS_FTP_RESUME resume) |
| Get an remote Ftp server file. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Get_WithBuffer (ARUTILS_WifiFtp_Connection_t *connection, const char *namePath, uint8_t **data, uint32_t *dataLen, ARUTILS_Ftp_ProgressCallback_t progressCallback, void *progressArg) |
| Get an remote Ftp server file. More... | |
| eARUTILS_ERROR | ARUTILS_WifiFtp_Put (ARUTILS_WifiFtp_Connection_t *connection, const char *namePath, const char *srcFile, ARUTILS_Ftp_ProgressCallback_t progressCallback, void *progressArg, eARUTILS_FTP_RESUME resume) |
| Put an remote Ftp server file. More... | |
libARUtils Ftp header file.
| typedef void(* ARUTILS_Ftp_ProgressCallback_t)(void *arg, float percent) |
Progress callback of the Ftp download.
| arg | The pointer of the user custom argument |
| percent | The percent size of the media file already downloaded |
| typedef struct ARUTILS_WifiFtp_Connection_t ARUTILS_WifiFtp_Connection_t |
Public Ftp Connection struct.
| enum eARUTILS_FTP_RESUME |
Ftp Resume enum.
| const char* ARUTILS_Ftp_List_GetItemSize | ( | const char * | line, |
| int | lineSize, | ||
| double * | size | ||
| ) |
File size accessor function from a file of a File list.
| line | The line of the File list where to search file size |
| lineSize | The size of the given line |
| size | The addresse of the pointer to the file size to return |
| On | success, returns the addresse found size string, Otherwise, it returns null |
| const char* ARUTILS_Ftp_List_GetNextItem | ( | const char * | list, |
| const char ** | nextItem, | ||
| const char * | prefix, | ||
| int | isDirectory, | ||
| const char ** | indexItem, | ||
| int * | itemLen, | ||
| char * | lineData, | ||
| int | lineDataLen | ||
| ) |
File list iterator function.
| list | The file list |
| nextItem | The the next file |
| prefix | The file prefix to match |
| isDirectory | The file type requested: 1 directory or 0 file |
| indexItem | The beginning of the line item if address is not null |
| itemLen | The length of the line item if address is not null |
| lineData | The buffer that will receive the result |
| lineDataLen | The size of the buffer that will receive the result |
| On | success, returns the file name of the found item, Otherwise, it returns null |
| eARUTILS_ERROR ARUTILS_WifiFtp_Connection_Cancel | ( | ARUTILS_WifiFtp_Connection_t * | connection | ) |
Cancel an Ftp Connection command in progress (get, put, list etc)
| connection | The address of the pointer on the Ftp Connection |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| void ARUTILS_WifiFtp_Connection_Delete | ( | ARUTILS_WifiFtp_Connection_t ** | connection | ) |
Delete an Ftp Connection.
| connection | The address of the pointer on the Ftp Connection |
| eARUTILS_ERROR ARUTILS_WifiFtp_Connection_Disconnect | ( | ARUTILS_WifiFtp_Connection_t * | connection | ) |
Disconnect an remote Ftp server connection.
| connection | The address of the pointer on the Ftp Connection |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| ARUTILS_WifiFtp_Connection_t* ARUTILS_WifiFtp_Connection_New | ( | ARSAL_Sem_t * | cancelSem, |
| const char * | server, | ||
| int | port, | ||
| const char * | username, | ||
| const char * | password, | ||
| eARUTILS_ERROR * | error | ||
| ) |
Create a new Ftp Connection.
| cancelSem | The pointer of the Ftp get/put cancel semaphore or null | |
| server | The Ftp server IP address | |
| port | The Ftp server port | |
| username | The Ftp server account name | |
| password | The Ftp server account password | |
| [out] | error | The pointer of the error code: if success ARUTILS_OK, otherwise an error number of eARUTILS_ERROR |
| On | success, returns an ARUTILS_WifiFtp_Connection_t. Otherwise, it returns null. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Connection_Reconnect | ( | ARUTILS_WifiFtp_Connection_t * | connection | ) |
Reconnect an remote Ftp server connection.
| connection | The address of the pointer on the Ftp Connection |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Connection_Reset | ( | ARUTILS_WifiFtp_Connection_t * | connection | ) |
Reset an Ftp Connection command in progress (get, put, list etc)
| connection | The address of the pointer on the Ftp Connection |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Delete | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | namePath | ||
| ) |
Delete an remote Ftp server file.
| connection | The address of the pointer on the Ftp Connection |
| namePath | The string of the file name path on the remote Ftp server |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Get | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | namePath, | ||
| const char * | dstFile, | ||
| ARUTILS_Ftp_ProgressCallback_t | progressCallback, | ||
| void * | progressArg, | ||
| eARUTILS_FTP_RESUME | resume | ||
| ) |
Get an remote Ftp server file.
| connection | The address of the pointer on the Ftp Connection |
| namePath | The string of the file name path on the remote Ftp server |
| dstFile | The string of the local file name path to be get |
| progressCallback | The progress callback function |
| progressArg | The progress callback function arg |
| resume | The resume capability requested |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Get_WithBuffer | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | namePath, | ||
| uint8_t ** | data, | ||
| uint32_t * | dataLen, | ||
| ARUTILS_Ftp_ProgressCallback_t | progressCallback, | ||
| void * | progressArg | ||
| ) |
Get an remote Ftp server file.
| connection | The address of the pointer on the Ftp Connection |
| namePath | The string of the file name path on the remote Ftp server |
| data | The pointer of the data buffer of the file data |
| dataLen | The pointer of the length of the data buffer |
| progressCallback | The progress callback function |
| progressArg | The progress callback function arg |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_IsCanceled | ( | ARUTILS_WifiFtp_Connection_t * | connection | ) |
Check if the connection has received a cancel to it's semaphore.
| connection | The address of the pointer on the Ftp Connection |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_List | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | namePath, | ||
| char ** | resultList, | ||
| uint32_t * | resultListLen | ||
| ) |
Execute Ftp List command to retrieve directory content.
| connection | The address of the pointer on the Ftp Connection |
| namePath | The string of the directory path on the remote Ftp server |
| resultList | The pointer of the string of the directory content null terminated |
| resultListLen | The pointer of the lenght of the resultList string including null terminated |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Put | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | namePath, | ||
| const char * | srcFile, | ||
| ARUTILS_Ftp_ProgressCallback_t | progressCallback, | ||
| void * | progressArg, | ||
| eARUTILS_FTP_RESUME | resume | ||
| ) |
Put an remote Ftp server file.
| connection | The address of the pointer on the Ftp Connection |
| namePath | The string of the file name path on the remote Ftp server |
| srcFile | The string of the local file name path to be put |
| progressCallback | The progress callback function |
| progressArg | The progress callback function arg |
| resume | The resume capability requested |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Rename | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | oldNamePath, | ||
| const char * | newNamePath | ||
| ) |
Rename an remote Ftp server file.
| connection | The address of the pointer on the Ftp Connection |
| oldNamePath | The string of the old file name path on the remote Ftp server |
| newNamePath | The string of the new file name path on the remote Ftp server |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |
| eARUTILS_ERROR ARUTILS_WifiFtp_Size | ( | ARUTILS_WifiFtp_Connection_t * | connection, |
| const char * | namePath, | ||
| double * | size | ||
| ) |
Get the size of an remote Ftp server file.
| connection | The address of the pointer on the Ftp Connection |
| namePath | The string of the file name path on the remote Ftp server |
| On | success, returns ARUTILS_OK. Otherwise, it returns an error number of eARUTILS_ERROR. |


If you have not registered, please do so to start your own Online Recipe Book!
You can save all your recipes on to your own account. And it is easy to save your recipes with our clean and easy interface. Thats not all you can search for recipes and also type in the ingredients that you have and you will be able yo search recipes acording to your ingredients!


| PostgreSQL 9.5.19 Documentation | |||
|---|---|---|---|
| Prev | Up | Appendix F. Additional Supplied Modules | Next |
adminpack provides a number of support functions which pgAdmin and other administration and management tools can use to provide additional functionality, such as remote management of server log files. Use of all these functions is restricted to superusers.
The functions shown in Table F-1 provide write access to files on the machine hosting the server. (See also the functions in Table 9-76, which provide read-only access.) Only files within the database cluster directory can be accessed, but either a relative or absolute path is allowable.
Table F-1. adminpack Functions
| Name | Return Type | Description |
|---|---|---|
pg_catalog.pg_file_write(filename text, data text, append boolean) | bigint | Write, or append to, a text file |
pg_catalog.pg_file_rename(oldname text, newname text [, archivename text]) | boolean | Rename a file |
pg_catalog.pg_file_unlink(filename text) | boolean | Remove a file |
pg_catalog.pg_logdir_ls() | setof record | List the log files in the log_directory directory |
pg_file_write
writes the specified data into
the file named by filename. If append is
false, the file must not already exist. If append is true,
the file can already exist, and will be appended to if so.
Returns the number of bytes written.
pg_file_rename
renames a file. If archivename
is omitted or NULL, it simply renames oldname
to newname (which must not already exist).
If archivename is provided, it first
renames newname to archivename (which must
not already exist), and then renames oldname
to newname. In event of failure of the second rename step,
it will try to rename archivename back
to newname before reporting the error.
Returns true on success, false if the source file(s) are not present or
not writable; other cases throw errors.
pg_file_unlink
removes the specified file.
Returns true on success, false if the specified file is not present
or the unlink()
call fails; other cases throw errors.
pg_logdir_ls
returns the start timestamps and path
names of all the log files in the log_directory
directory. The log_filename parameter must have its
default setting (postgresql-%Y-%m-%d_%H%M%S.log) to use this
function.
The functions shown in Table F-2 are deprecated and should not be used in new applications; instead use those shown in Table 9-67 and Table 9-76. These functions are provided in adminpack only for compatibility with old versions of pgAdmin.
Table F-2. Deprecated adminpack Functions
| Name | Return Type | Description |
|---|---|---|
pg_catalog.pg_file_read(filename text, offset bigint, nbytes bigint) | text | Alternate name for pg_read_file()
|
pg_catalog.pg_file_length(filename text) | bigint | Same as size column returned
by pg_stat_file()
|
pg_catalog.pg_logfile_rotate() | integer | Alternate name for pg_rotate_logfile() , but note that it
returns integer 0 or 1 rather than boolean
|


Learning in progress for the above MERN Stack which comprises of 4 technologies namely: MongoDB, Express, React and Node.js. Currently, client side viewing completed. Server side is pending database connection.
Create beautiful themed resumes just from a simple json file format, very lightweight & fast.
Featuring a CMS backend by Forestry.io to support Stackbit theme's website. Content update can be created/for commit via the UI or using it's markdown-based editor.
Responsive layout website page catered for blogs, portfolios, projects or hero showcase of products style with management of CDN from a separate CMS in backend. This theme was made from Stackbit's own starter theme "Exto".
Pink Season is app made for Hong Kong clients to promote diversity, inclusion and awareness among communities.
A personal website used as a test production & code development. This page was registered using my own personal name as business tradename as per requirements of legal entities and not intended for as a new company setup.


Back up Fusion servers¶
The Fusion server typically stores multiple terabytes of source data and intermediate assets. If you have a tape backup system or enough disk space, you should perform a full back up of the server any time a new database is built or a significant amount of new data is processed. If you do not have enough resources to do this, you can back up only critical files and display rules instead.

To back up display rules:
- In the Vector Layer dialog box, select Export as a Template.
- Save the display rules on a volume different from the source volume and the asset root.
Critical Fusion files
If you have backups of the files listed below, you can rebuild your database with some patience and scripting. The rebuild will take a lot of CPU time, but should go smoothly with a minimum of administrator time.
The files that are critical to restoring your Fusion server are:
- Your original source files. These are typically stored on a network shared drive or on portable USB disks, depending on the environment. Make sure that you can find and reload your original source files.
- The XML files that Fusion generates during its processing. These are critical because they contain the display rules for the vector data, the rules for building resources and projects, and other critical settings.
- All the files under /opt/google/gehttpd in the cgi-bin, conf conf.d, and htdocs directory. These files contain any user-customized scripts or web pages, and the definitions of any virtual servers you created on the Fusion server.
- The files in the .config and .userdata directories under the asset root. These contain custom icons and provider information as well as some basic Fusion configuration settings.
Backing up
The steps below show you how to back up your critical files. When you run these commands, replace the asset root and backup locations with the locations of your own asset root and backups.
Make sure that you can locate and reload all the source data files if needed.
Create a directory to hold the backup files:
mkdir -p /data/backup/assets mkdir -p /data/backup/gehttpd
Back up the gehttpd files:
cd /opt/google/gehttpd rsync -r htdocs cgi-bin conf conf.d /data/backup/gehttpd
Back up the XML files and config files to a safe place on a disk that is not part of the asset root or source directories:
cd /gevol/assets rsync -r .config .userdata /data/backup/assets/ find . -name "*.xml" > FileList.txt rsync --files-from=FileList.txt /gevol/assets /data/backup/assets/
(Optional.) Store a compressed backup of the files somewhere else:
tar czf /home/backups/GevolXmlBackup.tgz /data/backups
Restoring imagery and terrain
Make sure that the Fusion software is installed correctly and is running.
Configure your asset root to be consistent with your old asset root. If you are not sure about this, manually run commands like:
geconfigureassetroot --new --assetroot /gevol/assets geselectassetroot --assetroot /gevol/assets
Restore the backed-up XML and configuration files to their original location in the asset root.
Restore the source files to their original location on the Fusion server. If you cannot remember the directory they were in, just place them on the Fusion server in the source directory you specified in the Fusion volume definitions (
/gevol/src
by default).Use the
gequery
command and shell scripting to make sure your source files are in the right place. If the files are not found, find them and copy them to the right place. Below is an example of a script for reporting where all your imagery source files should be located. You can use the same script for terrain resources if you changekiasset
toktasset
. Example script:cd /gevol/assets for resource in `find . -type d -name "*.kiasset"` do for file in `gequery --infiles $resource` do if [ ! -f $file ] && [ ! -d $file ] then echo "Can not find $file" else echo "Found $file" fi done done
After all the files are in place, generate a series of commands to rebuild the resources. For example:
cd /gevol/assets for resource in `find . -type d -name "*.kiasset" | sed 's/.kiasset//'` do gequery --infiles $resource > filelist genewimageryresource -o $resource --filelist filelist sleep 1 gebuild $resource done
There is a
khasset.xml
file under each.kiasset
directory that contains information about the mask tolerance, feathering, white fill, and provider for each imagery and terrain resource. You can use scripting to extract this information from each resource and add it to thegenewimageryresource
command to apply the correct settings for each resource.
Restoring vectors
The vector restore process is different from the imagery and
terrain process because of the display rules that each vector
layer has. These display rules take a very long time to configure,
and typically the Fusion administrator has not saved the display
rules as a template. Without the XML files, the vector project can
take many hours to recreate. Fortunately, all the display rules
for each vector layer are contained in a single file called
khasset.xml
. This file is under the vector project’s main
directory, and is included in the backup script listed above. The
restore_vector_project.pl
file below reads the khasset.xml
file, and creates the commands and display templates necessary to
rebuild the entire vector project.
restore_vector_project.pl
#!/usr/bin/perl
#
# Do you want to back up your vector project or duplicate it as a new project?
#
#
# This script generates the instructions and files necessary to completely rebuild your
# vector project. It reads your current vector project and extracts the display rules
# and determines which raw data files were used to create your resources. The results
# of running this script is a series of four new scripts called Step_One thru Step_Four
# Running the resulting four scripts in order rebuilds your vector project as it was before.
use File::Path;
use File::Copy;
# Read in the vector project to be backed up and the directory to
# write the scripts and files to.
if ($#ARGV != 1){ usage(); exit; }
$vector_project = $ARGV[0];
$output_dir = $ARGV[1]; chomp( $output_dir );
$assetroot = &get_assetroot();
chomp( $assetroot );
print "Using Asset Root $assetroot \n";
open(StepOne, ">$output_dir/Step_One_Create_Resources.sh");
open(StepTwo, ">$output_dir/Step_Two_Build_Resources.sh");
open(StepThree,">$output_dir/Step_Three_Create_Project.sh");
print StepThree "genewvectorproject -o $vector_project\n";
close(StepThree);
open(StepFour, ">$output_dir/Step_Four_Add_Resources.sh");
# Locate the khasset.xml file for this project.
$khasset = "$assetroot/$vector_project.kvproject/khasset.xml";
open(IN, "$khasset") || die "Can't open $khasset";
# Read in all of the header info on the khasset file and ignore it
while(<IN>){ last if $_ !~ /<layers>/; }
# Keep reading the khasset file and parse out the information for each individual
# layer.
while(<IN>){
my(@current_layer);
if ($_ =~ /<layer>/){ # Found a new layer
$_ = <IN>;
while ($_ !~ /<\/layer>/){ # Read all of the data on this layer
push(@current_layer, $_);
$_ = <IN>;
}
# Extract the important naming information from this layer including
# the name of the layer, and the resource that was used for this layer.
# The legend corresponds to the folder that contains the layer
$assetref = get_value( grep(/assetRef/, @current_layer));
$assetname = get_value(grep(/name useDefault/, @current_layer));
$assetname =~ s/ /_/g;
$assetname =~ s/\W/_/g;
$legend = get_value( grep(/<legend>/, @current_layer));
$legend =~ s/\|/\//g;
$legend =~ s/ /_/g;
# Store all of the display rules in subdirectories that correspond to the
# structure of the folders that the layers are grouped in. This way, duplicate
# layer names will not overwrite eachother
if (! -d "$output_dir/$legend"){mkpath("$output_dir/$legend")};
# Begin writing each display rule to its own ".khdsp" file and simultaneously create
# the instructions for building the resource and adding the resource to the project
# using the correct ".khdsp" template.
if (length($assetref) >= 1){ # Not just a folder
open(OUT, ">$output_dir/$legend/$assetname.khdsp") ||
die "Cant open $output_dir/$legend/$assetname.khdsp";
print OUT '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>' . "\n";
print OUT "<LayerConfig>\n";
print OUT @current_layer;
print OUT "</LayerConfig>\n";
close( OUT );
$raw_files = `gequery --infiles "$assetref"`;
$raw_files =~ s/\n/ /g;
print StepOne "genewvectorresource -o $assetref $raw_files\n";
print StepTwo "gebuild $assetref\n";
print StepFour "geaddtovectorproject -o $vector_project --template $output_dir/$legend/$assetname.khdsp $assetref\n";
}
undef @current_layer;
}
last if $_ =~ /<\/layers>/;
}
copy( $khasset, $output_dir);
close(IN); close(OUT);
close(StepOne);
close(StepTwo);
close(StepThree);
close(StepFour);
sub get_assetroot(){
open(IN, "/opt/google/etc/systemrc") ||
open(IN, "/usr/keyhole/etc/systemrc") ||
die "Can not open /opt/google/etc/systemrc or /usr/keyhole/etc/systemrc\n";
@sysrc = <IN>;
$assetroot=&get_value(grep(/assetroot/, @sysrc));
return $assetroot;
}
sub get_value(){
$string=shift(@_);
$string =~ s/\s*<[^<>]*>//;
$string =~ s/<.*//;
chomp($string);
return $string;
}
sub usage(){
print<<EndOfUsage
rebuild_vector_layer.pl vector_project output_dir
where:
vector_project is the name of your vector project relative to the asset
root - for example, MyProjects/MyVectors
output_dir is the directory for putting all of the output from this script.


Title and author:
Mathematics PlaySpace MaPS_EJSS Bar Model Singapore Math
Fremont Teng; lookang
© 2020, Fremont Teng; lookang. Compiled with EJS 6.0 (191124)
Released under a
license.


RAINY DAY
Tomorrow is going to be
rainy day
. So enjoy yourselves with a cup of coffee and hot snack


I am Fuled by my Passion for unserstanding the new Technologies.
I consider myself forever a student.eager to both build on my academic
Foundations and stay in tune with the latest concept of little experiments
around the corner
My Hunger for Knowledge and determination to turn information into
action has contributed to my most recent sucess. Working on Technology
with increase the opportunity for growth and personal Growth.
.
Good in Artificial intelligency and security Keep observer a,inovative
adoptive.Fast Learner infulencer.Passionate about data science and
problem Solving. Highly capable leader and well Organised.


--- layout: default shorttitle: "COSC 480" title: "COSC 480: Topics in Computer Science" --- Syllabus, updated 2/15 Schedule Slack group


You can have a reliable supervision tree even if s6-svscan is not your process 1. The supervision tree just has to be rooted in process 1: that means that your process 1 will have to supervise your s6-svscan process somehow. That way, if s6-svscan dies, it will be restarted, and your set of services will always be maintained.
Be aware, though, that pipes between services and loggers are maintained by the s6-svscan process; if this process dies, the pipes will be closed and some logs may be lost.
s6-svscan and the various s6-supervise processes might produce error or warning messages; those messages are written to s6-svscan's stderr (which is inherited by the s6-supervise processes). To log these messages:
In some of the following examples, we'll assume that /command/s6-svscanboot is the name of the script you are using to start s6-svscan. We will also assume that all of the s6 executables are available through the /command path. Adjust this accordingly.
Put an appropriate line in your /etc/inittab file, then reload this config file with telinit q.
SV:123456:respawn:/command/s6-svscanboot
Put an appropriate configuration file in the /etc/init folder, for instance /etc/init/s6-svscan.conf, then start the service with start s6-svscan.
# s6-svscan start on runlevel [2345] stop on runlevel [!2345] oom never respawn exec /command/s6-svscanboot
Put an appropriate unit file in the /etc/systemd/system folder, for instance /etc/systemd/system/s6.service. It will be picked up by systemd at boot time.
[Unit] Description=s6 supervision tree Documentation=https://skarnet.org/software/s6/ [Install] WantedBy=multi-user.target [Service] Type=simple ExecStart=/command/s6-svscan /service ExecReload=/command/s6-svscanctl -an /service Restart=always RestartSec=1 KillMode=mixed
Please note that, among other things, systemd performs process supervision, so depending on the level of integration with your distribution that you wish to achieve, you may be better off using systemd to directly manage your daemons. Please also note that systemd is a terrible piece of software engineering, and if at all possible, you should try and switch to a distribution that does not use it.


Tired of the alone?Come along with us on one of our unusual adventures with your old friends. Here are some pictures from people who have had elevated experiences with us. We laugh, we play, we stand, we run, we talk, we shout, we are there always for you and your stories you old age people.
We offer a variety of group activity. Whether you've spent some years with cracked bones or this might be your first adventure towards healthy and fun life, we've got the perfect deal for you. Come along with us and live your childhood at this age.
Looking for the complete experience? Take a tour with one of our Fitness experts. They'll show you yoga secrets that you're likely to miss otherwise. Our motto is only make you laugh and see a wide smile on your face.
 Take a photo tour on our themed location coz Life is a party! and express your childhood ambition here and we promise to make it happen for you coz, we care for you.
Gossips never bored any! we have got some great environment and freshment not to get distracted during your gossips. Meet with your like peoples and spent happy moments.
Got a competitive spirit?Our challenge-based marathons! Game activity and brain-o-game and much more... Do come for a while and express your desire.


I'd Tab That
Sign-in with Google
Current Tabs
Old Sessions
Your Current Session:
Title this Session
Submit
Please title your session
Not the session you're looking for? Reopen this extension in the correct window.


You're receiving this email because someone filled out a request for sponsorship or a donation from {CasinoName}.
Please click on (or copy) the following link to review the request:
{Link}
To track this feedback, use the following link:
{FeedbackLink}
This email has been sent to the following people:
{Recipients}
Note: This is an automated response. Please do not reply to this email.


This is a bugfix release of Google Play Music Desktop Player
Here is a quick run down of all things that have changed.
- Fixes to do with theming and mini player due to the latest Google changes
- Space bar now properly playPauses the music
- The shop button now actually opens the shop!
- Mouse buttons 4 and 5 now act correctly as browser back and browser forward
- There is now a back button in the UI #easynavigation
- OSX and Linux now use native window borders by default, this can be changed in settings
- You can now add hotkeys for volume controL!
- OS X - You can now go proper full screen
- Linux - Config files are stored in a better place
Thanks to all the people who have helped with these bugfixes.


Service Catalog
User Name
Logout
Export API
×
Do you want to export the API?
Select the destination Project?
×
No config projects in the workspace. Please create a new config project following
Help -> Getting Started -> Miscellaneous -> Create config ptoject
.
Import from registry
Export to registry
Specifications
Select a category
Utility
EDGE
DOMAIN
Thera are no specifications available.
Failed obtain specifications.
View as:
API Artifacts
No API artifacts in the workspace.
Failed obtain API artifacts.
View as:


| Command | Input | Output | Description |
|---|---|---|---|
| c.pi | Xreg |
Calculates pi using default method Default is Chudnovsky formula |
|
| c.pi.ch | Xreg | Calculates pi using Chudnovsky formula | |
| c.pi.ra | Xreg | Calculates pi using Ramanujan formula | |
| c.pi.st c.pi.st <a> |
Xreg |
Calculates pi using Størmer formula. Appending 1,2,3, or 4 as an argument will break up the calculation into 4 parts. This will allow 4 instances of the program to be run concurrently 1 - Output to file "pi-st-1.num" 2 - Output to file "pi-st-2.num" 3 - Output to file "pi-st-3.num" 4 - Output to file "pi-st-4.num" 1234 - Combine all 4 files." |
| Command | Input | Output | Description |
|---|---|---|---|
| c.pi.ze | Xreg |
Estimate pi using the formula: zeta(2) = (π2)/6 |
|
| c.pi.mc | Xreg | Estimate pi using a Monte Carlo simulation. |
| Command | Input | Output | Description |
|---|---|---|---|
| c.e c.e <a> |
Xreg |
"c.e" calculates e by default method. Appending 1,2,3, or 4 as an argument will select between several different methods. 1 - Sum 1/n in fixed precision 2 - Sum 1/n i7 Register (64 bit DIV) 3 - Full floating point arithmetic 4 - Use f.exp function f.exp with Xreg=1 |
|
| c.gr | Xreg | Calculates Golden Ratio | |
| c.ln2 | Xreg | Calculates natural log of 2. ln(2) | |
| c.sr2 | Xreg |
Square root of 2 |
The following is a quick overview of several methods to calculate pi that are used in this program. If you would like to know more about π, Wikipedia has a great page here.
The Chudnovsky formula is my favorite method to calculate pi. You can read more about it on Wikipedia here. This is rapidly convergent. This program adds 711 terms of the infinite series to calculate 10,000 digits, which is about 14 digits per term. You may notice a delay at the start of the program, because the square root sqrt(10005) is calculated before starting the infinite series summation.
This is a chart made in 2015 showing the time to calculate π using the Chudnovsky formula. The line shows how this type of arithmetic scales (or perhaps does not scale) to larger size. It was run a Dell XPS with an i7-4790 processor that I bought in 2014. This does not include the base-10 conversion.
Ramanujan is a famous Indian mathematician. Over 100 year ago, he came up with this formula for pi. This program adds 1264 terms of the infinite series to calculate 10,000 digits, which is just under 8 digits per term.
With a little simple algebra, the Ramanujan formula can be rearranged to allow a more efficient calculation. Calculation in this program use this form.
There are two variations to the implementation of the Størmer formula in this program. You can use "c.pi.st" to calculate π using the formula below.
The other method involves calculation of each of the 4 terms of the formula independently. Computers with a quad core processor can run 4 copies of the calc-pi program at the same time. Commands "c.pi.st 1", "c,pi-st 2", "c.pi-st 3", and "c.pi-st 4" will calculate each of 4 parts separately and save the results into separate disk files. The command "c.pi.st 1234" will read all 4 parts from the disk and combine them.
This is an interesting case, but perhaps not a very efficient way to calculate pi.
This series converges extremely slowly. It will only produce a few digits of π, but it is interesting to see how it works and how slowly it converges.
To perform the calculation, set accuracy to 10 with input "sigfigs 10".
Set the number of cycles with the "slimit" function by typing "slimit 1000000". (or other value)
Next calculate the series with "c.pi.ze".
It is possible to estimate the value of π using a random number generator. Take a unit circle of radius R = 1. Circumscribe a square around it with sides of the square length 2. The area of the circle is A = π * R2. Since R = 1, the area of circle is A = π. The area of the circulscribed square is A = 2 * 2 = 4.
Next take a random number generator and generate a series of random X,Y values in the range of -1 < X < 1 and -1 < Y < 1. Using the formula for a right triangle, the radius of the point at (X,Y) is R = sqrt(X2 + Y2). In the case R < 1, the point is inside the circle. In the case R > 0, the point is outside the circle. Since the ratio of area of the square (4) to the area of the circle (π). We can count the points inside the circle and points outside the circle. The ratio of the counts inside verses outside can be used to calculate the value of π. This is known as a Monte Carlo simulation because it "rolls the dice" each time to see where the point would be.
To perform the calculation, set accuracy to 10 with input "sigfigs 10".
Set the number of cycles with the "slimit" function by typing "slimit 1000000". (or other value)
Next run the Monte Carlo by typing "c.pi.mc".
The random number source is the assembly language RDRAND command to use the i7 microprocessor RNG. Each time the program is run, the number will be slightly different. Note, it is not very accurate compared to the other methods.


Reports an export of an undeclared or unimported component, directive, or pipes from an Angular module.


Before Change
// simple TCN model.
max_len = 100
max_features = 50
i = Input(shape=(max_len,))
x = Embedding(max_features, 16)(i)
x = TCN(nb_filters=12,
dropout_rate=0.5, // with dropout here.
kernel_size=6,
dilations=[1, 2, 4])(x)
x = Dropout(0.5)(x) // and dropout here.
x = Dense(1, activation="sigmoid")(x)
model = Model(inputs=[i], outputs=[x])
if os.path.exists("tcn.npz"):
// Load checkpoint if file exists.
w = np.load("tcn.npz", allow_pickle=True)["w"]
After Change
max_features = 50
// make model
model = Sequential(layers=[Embedding(max_features, 16, input_shape=(max_len,)),
TCN(nb_filters=12,
dropout_rate=0.5,
kernel_size=6,
dilations=[1, 2, 4]),
Dropout(0.5),
Dense(units=1, activation="sigmoid")])
// get model as json string and save to file
model_as_json = model.to_json()


All Passes for IIT Delhi Students have been exhausted :(
Schedule for Confirmation (Those who have already booked)
1. Melange - 11:00 AM to 01:00 PM, 13th October
2. Spectrum - 11:00 AM to 01:00 PM, 14th October
3. Kaleidoscope - 11:00 AM to 01:00 PM, 15th October
4. Dhoom - 11:00 AM to 01:00 PM, 16th October
To confirm your entry for a ProNite, you have to visit here again on the morning of the particular ProNite and click on 'Confirm Booking'. The confirmation can be done anytime during the assigned slot (No first come first serve), but do not forget to do this, put a reminder!
Do not forget to confirm your pass according to above schedule or your booking will be cancelled.
This portal is not compatible with Mozilla firefox. Please use either Google Chrome only.
Note: We've tried to make the system as light and seamless as possible but if you still face any difficulty please drop an email at technical@rdv-iitd.com


There is an 800x600 canvas here. You can play with CanvasJS in browser console.
ctx = new Canvas('ctx'); // creates a new Canvas object in the canvas with id="ctx"
//Now you have all the features of CanvasJS available to you.
ctx.circle({x:25, y:25, radius: 10, fillStyle:'rgb(200,0,0)'}) //draw a circle
.rectangle({x:50, y:75, height: 100, width: 50, fillStyle: 'rgba(0, 0, 200, 0.5)'}) //draw a rectangle
.currentPos(); // returns the current x and y coordinates of the 'cursor' // get the current position
This will improve over time, and when it does, I'll remove the quotes.
For now, in the spirit of keeping moving on this project, here's a list of all the methods and properties available in a new Canvas object. All of the common properties (fillStyle, etc) are actually mapped to getter/setter methods. Anything that doesn't return a value is chainable.
An API reference has sprouted.


stdarg — variable argument lists
#include <stdarg.h>
void va_start(
va_list ap,
rest)
;
type va_arg(
va_list ap,
type)
;
void va_copy(
va_list dest,
va_list src)
;
void va_end(
va_list ap)
;
Functions may be defined as accepting a variable number of arguments. The
macros defined in <stdarg.h>
permit stepping
through the arguments passed to the called function.
An object of type va_list must be declared. This object is
used by va_start
(), va_arg
(),
va_copy
() and va_end
().
The va_list object is initialised by first calling the
va_start
() macro. The rest
argument is the last fixed parameter of the function's prototype (that is,
the parameter immediately preceding the ...
varadic
placeholder). Varadic functions must always be defined as requiring
at least one fixed parameter. The rest
parameter should not be declared as a register variable, a function,
or an array type, because its address is used to determine the
address of the parameter following it.
The va_arg
() macro returns the value of the parameter
pointed to by the va_list ap
and
advances the pointer to the next parameter. The type
specified in the call to va_arg
() is the expected
type of the parameter passed by the caller. It shall be specified in such
a way that the corresponding pointer type can be obtained by appending
*
.
If va_arg
() is invoked more times than there are
varadic parameters, or if the type
specified
does is not compatible with the type of parameter passed by the caller,
the results are undefined.
The va_copy
() macro copies the argument pointer
src
into dest
. Applications
must use va_copy
() rather than directly assigning
src
to dest
if they wish
to store the current state of an argument pointer.
When a va_list object is no longer required, it must be
freed with va_end
().
<stdarg.h>
conforms to the
Single UNIX Specification, Version 3 (SUSv3).


Slide Deck
class: title middle left # Developing for Accessibility .subtitle[Open edX Conference - 2015
#OPENEDX2015] --- ## What is accessibility?
Accessibility:
The degree to which a product, device, or environment is available to a person
Measured in relative terms
--- ## Types of Accessibility
Direct:
Some products, devices, and environments are natively accessible. They just work "out of the box." Anyone can use them unassisted. Sometimes special effort and consideration is given during design to achieve a directly accessible result.
Indirect:
Indirect access means that accessibility can be achieved by designing the product, device or environment to be compatible with a person's assistive technology.
--- ## Assistive Technology (AT)
Assistive technology
devices or software that people can use to help them access or use a product, device or environment.
enables people to perform tasks that they may be unable to accomplish, or have difficulty with.
can enhance or change how a person interacts with products, devices or environments.
--- class: title middle right ## Accessibility at edX .subtitle[Past, Present, Future] --- ## edX Accessibility Initiative * Demonstrated commitment since our inception * Gives the Open edX Platform a market advantage * Important to our learners, partners, and community * Is part of our Goals, Vision, and Mission --- ## Goals, Values, Vision, and Mission * "Expand access to education for *everyone*." - Goals * "Quality education for *everyone*, everywhere." - Vision * "To create the world's leading learning destination site and platform so that *everyone* around the world can become better educated." - Mission The word *everyone* is by definition "inclusive." It includes all humans, regardless of race, gender, class, creed, age, nationality, physical location, sexual orientation, or ability. --- ## Accessibility Policy ![Screenshot of edX Accessibility Policy which is posted on our public website](assets/accessibilitypolicy.png) --- ## Support * Feedback form on Accessibility Policy page * Accessibility category on Contact Us page * Help form on every page in Courseware * Clear process for escalating support requests --- ## Documentation (Authors) ![Screenshot of Accessibility Best Practices which is available in our documentation website](assets/bestpractices.png) --- ## Documentation (Developers) ![Screenshot of Accessibility Guidelines for developers which is available in our documentation website](assets/devguidelines.png) --- ## Training ![Screenshot of Accessibility Training course](assets/trainingcourse.png) --- ## Conformance * WCAG 2.0 * Accessibility Team * Product/Feature Exit Requirements * Automated testing * Accessibility Review process * Automated * Manual --- ## Remediation * Outside Audits (annual) * Internal testing (automated and manual) * Public JIRA Project --- class: title middle right ## Measuring Compliance .subtitle[Web Content Accessibility Guidelines 2.0] .thirdtitle[Our commitment is to conform with WCAG 2.0 AA] ---
Adoption of WCAG 2.0
WCAG 2.0 (9 countries)
Australia
Canada
EU
Hong Kong
Ireland
Netherlands
New Zealand
Norway
United Kingdom
Based on WCAG 2.0 (6 countries)
France
Germany
India
Japan
Ontario
Quebec
--- ### WCAG 2.0 Core Principles * **Perceivable:**
Content must be presented in a way that all users can perceive it * **Operable:**
Components and navigation must be operable * **Understandable:**
Information and navigation must be understandable * **Robust:**
Content must be robust enough that it can be interpreted by a wide variety of user agents including assistive technology --- ### WCAG 2.0 * 4 Principles * 12 Guidelines * 65 Success Criteria (38 applicable to Level AA) --- class: title middle right ## Intro to Accessibility .subtitle[How you can help improve the accessibility of the Open edX Platform] --- ## Accessibility == Quality Change how we think about Accessibility * Not just for users with disabilities * Intuitive interfaces * Redundant means of access * Give users *choice* * *A high quality product is accessible to **as many people as possible*** --- ### How does quality = accessibility? * Intuitive to use * Customizable * Gives users options/choice * Input * Output --- ### Human-Computer Interaction Problems: * Input * Support for too few (mouse) * Output * Support for too many (images, video, audio, PDF, spreadsheets, simulations) --- ### Human-Computer Interaction Solutions: * Input * Support the keyboard * Output * Text all the things --- ### Keyboard support (Input) * It's how it was done from the beginning * If it works with a keyboard, it works for things that emulate a keyboard * Joysticks * Sip-and-puff * Speech input * On-screen keyboards --- ### Text all the things (Output) Text can: * be transformed into sound, * be transformed into touch, * be translated into other languages, * become smaller or larger, * change color, * be assigned meta (magical) properties through the power of markup, * be read by machines! --- class: title middle right ## Accessibility Techniques --- class: title middle right shift-up ### Problem: All text is created equal .subtitle[Solution: Markup to the rescue!] .thirdtitle[*By itself, text has no semantic value*] --- ### Why is markup so important? *Software is really good at reading markup* * Assistive Technology (AT) relies on markup to determine the "role" the text plays * AT provides [shortcuts](http://doccenter.freedomscientific.com/doccenter/archives/training/jawskeystrokes.htm) to interact with markup * AT users benefit *greatly* from these shortcuts * Without proper markup, its just giant blobs of text --- ### Semantic Markup What "role" does the text play? * Is it a heading? * Is it a list, or an item in a list? * Is it a link? * An iframe? * Just a paragraph? * Does it identify a column or row in a table? *AT provides direct and enhanced access to all of these (and more). This functionality is not possible without the right markup.* --- ### Headings * All AT provides multiple ways for users to browse by heading (examples): * Next heading (at any level) * Next level 3 heading * First heading * First level 2 heading Logical order is important *This won't work if your text just looks like a heading* ### This is a level 3 heading .fake-heading[This is not a level 3 heading] --- layout: true ### Links --- .float-right.scale50[![Screenshot of links list in Voiceover](assets/mIsec.png)] * All AT provides multiple ways of navigating between links on a page: * By tabbing (of course) * In an interactive list * Where links can be directly accessed by how they are spelled or their order in the document --- Bad: * [Click here](#) to register * Article teaser [More...](#) * [Download](#) the white paper Good: * [Register for edX training](#) * [What is accessible content: Full Text](#) * [Download the PDF textbook](#) --- layout: false ### Color contrast * Minimum contrast ratio of 4.5 to 1 * Large text can have a ratio of 3 to 1 * 18pt and 14pt bold
(roughly equivalent to 1.2 and 1.5 em or to 120% or 150% )
This is 18pt text
This is 14pt bold
*Contrast ratios or nearly impossible to analyze without the help of [color contrast analyzing tools/software](#tools)* --- class: title middle left ## Images .subtitle[We need to text all the images, too!] .thirdtitle[The ALT Attribute] --- ### Text alternatives (using the alt attribute) * Can be rendered through any sensory modality (for example, visual, auditory or tactile) to match the needs of the user. * Authoring useful alt attribute content requires the author to carefully consider the .highlight[context] in which the image appears and the .highlight[function] that image may have in that context. * Needs to be an appropriate .highlight[functional replacement] for the image. * Can't be too long or require additional markup --- ### How do I determine what is *useful* alt content? *A good place to start is by asking the following questions:* * Why is the image being included in a page? * What is its purpose? * Does it provide useful information? * Does it perform a function? * Is it a label for an interactive element? * Is it purely decorative? *Answers to these questions can help you use a simple decision tree:* --- ### Is this image the only content of a link or form control? **Yes:** .float-right.center[![Screenshot of Introduction to Linux course card with an arrow highlighting the image linked to the course intro video](assets/EFAou.png)
![Screenshot of various social icons](assets/7xE4S.png)] Use the alt attribute communicate the destination of the link or action taken *A good alt value for this image would be "Watch the 'Introduction to Linux' course video", which describes the action, not the image.* **No:** Next slide! --- ### Does this image contain text? **Yes:** .float-right.scale40[![Screenshot of stylized text that represents the 3 main topics on the page, verbatim](assets/T2axY.png)] * If the text in the image is also present as real text nearby, .highlight[use an empty alt attribute] to hide the image from screen reader users. * If the text in the image is just for visual effect, use an empty alt attribute. * Otherwise, use the alt attribute to include the communicative text of the image. **No:** Next slide! --- ### Does this image contain text? **Yes:** .float-right.scale40[![Screenshot of computer code transparently overlaying a computer keyboard](assets/LFS01_Ch0_Screen7.jpg)] * If the text in the image is also present as real text nearby, use an empty alt attribute to hide the image from screen reader users. * If the text in the image is just for visual effect, .highlight[use an empty alt attribute]. * Otherwise, use the alt attribute to include the communicative text of the image. **No:** Next slide! --- ### Does this image contain text? **Yes:**
Appropriate alt for this image would be: "1: Things change in linux. 2: We've repeated some things in the class. 3: We've tried to avoid holy wars."
* If the text in the image is also present as real text nearby, use an empty alt attribute to hide the image from screen reader users. * If the text in the image is just for visual effect, use an empty alt attribute. * Otherwise, use the alt attribute to .highlight[include the communicative text of the image]. **No:** Next slide! --- ### Does the image contribute meaning to the current page or context? * **Yes**, and it’s a simple graphic or photograph: .highlight[the alt attribute should briefly describe the image in a way that conveys that meaning]. * **Yes**, and it’s a graph or complex piece of information: .highlight[include the information contained in the image elsewhere on the page]. * **Yes**, but a suitable alt text is unknown at the time of publication (for example on a photo upload site): .highlight[provide an alt attribute or caption for the image that includes as much useful information as possible]. **No:** Next slide! --- ### Is the image purely decorative or not intended for the user? * Use an .highlight[empty alt attribute]. This will make it invisible to a screen reader user.


Select multiple zip or jar files from your disk to upload. The file name may have any of the following formats:
12345678.zip
, interpreted as Student IDs.
assignment-1-Student.zip
,
which extracts the GitHub Username like Student
.
After importing from GitHub or Files, you can import embeddings.
Here is an estimate of the token costs. Actual costs may be lower if the embeddings are already cached, or slightly higher due to some tokens like filenames being added to improve results. Charges will be applied to your OpenAI account.
Please review the results below and click Import to confirm.
The import has been completed. The following costs have been applied to your OpenAI account.
After importing from GitHub or Files, you can run MOSS.


Package org.drip.state.creator
Class ScenarioGovvieCurveBuilder
java.lang.Object
org.drip.state.creator.ScenarioGovvieCurveBuilder
public class ScenarioGovvieCurveBuilder
extends java.lang.Object
ScenarioGovvieCurveBuilder implements the Construction of the Scenario Govvie Curve using the Input
Govvie Curve Instruments.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Latent State Inference and Creation Utilities
- Package = Scenario State Curve/Surface Builders
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ScenarioGovvieCurveBuilder()
-
Method Summary
Modifier and Type Method Description static GovvieCurve
ConstantYield(int iEpochDate, java.lang.String strTreasuryCode, java.lang.String strCurrency, double dblYield)
Construct a Govvie Curve from the Specified Date and Yieldstatic GovvieCurve
CubicPolynomialCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield)
Create an Instance of the Cubic Polynomial Splined Govvie Yield Curvestatic GovvieCurve
CubicPolyShapePreserver(java.lang.String strName, java.lang.String strTreasuryCode, java.lang.String strCurrency, int iSpotDate, CalibratableComponent[] aComp, double[] adblQuote, java.lang.String strManifestMeasure)
Construct an Instance of the Shape Preserver of the Cubic Polynomial Type, using the Specified Basis Set Builder Parameters.static GovvieCurve
CustomSplineCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, SegmentCustomBuilderControl scbc)
Create an Instance of the Custom Splined Govvie Yield Curvestatic GovvieCurve
DateYield(int iEpochDate, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiDate, double[] adblYield)
Construct a Govvie Curve from an Array of Dates and Yieldsstatic GovvieCurve
KaklisPandelisCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield)
Create an Instance of the Kaklis-Pandelis Splined Govvie Yield Curvestatic GovvieCurve
KLKHyperbolicCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, double dblTension)
Create an Instance of the KLK Hyperbolic Splined Govvie Yield Curvestatic GovvieCurve
KLKRationalLinearCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, double dblTension)
Create an Instance of the KLK Rational Linear Splined Govvie Yield Curvestatic GovvieCurve
KLKRationalQuadraticCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, double dblTension)
Create an Instance of the KLK Rational Quadratic Splined Govvie Yield Curvestatic GovvieCurve
LinearPolyShapePreserver(java.lang.String strName, java.lang.String strTreasuryCode, java.lang.String strCurrency, int iSpotDate, CalibratableComponent[] aComp, double[] adblQuote, java.lang.String strManifestMeasure)
Construct an Instance of the Shape Preserver of the Linear Polynomial Type, using the Specified Basis Set Builder Parameters.static GovvieCurve
QuarticPolynomialCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield)
Create an Instance of the Quartic Polynomial Splined Govvie Yield Curvestatic GovvieCurve
ShapePreservingGovvieCurve(java.lang.String strName, java.lang.String strTreasuryCode, java.lang.String strCurrency, ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, java.lang.String strBasisType, FunctionSetBuilderParams fsbp, SegmentInelasticDesignControl sdic, CalibratableComponent[] aCalibComp, java.lang.String strManifestMeasure, double[] adblQuote)
Construct an Instance of the Shape Preserver of the desired Basis Spline Type, using the specified Basis Spline Set Builder Parameters.static GovvieCurve
ShapePreservingGovvieCurve(LinearLatentStateCalibrator llsc, LatentStateStretchSpec[] aStretchSpec, java.lang.String strTreasuryCode, java.lang.String strCurrency, ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblEpochResponse)
Build the Shape Preserving Govvie Curve using the Custom ParametersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScenarioGovvieCurveBuilder
public ScenarioGovvieCurveBuilder()
-
-
Method Details
-
ShapePreservingGovvieCurve
public static final GovvieCurve ShapePreservingGovvieCurve(LinearLatentStateCalibrator llsc, LatentStateStretchSpec[] aStretchSpec, java.lang.String strTreasuryCode, java.lang.String strCurrency, ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblEpochResponse)Build the Shape Preserving Govvie Curve using the Custom Parameters- Parameters:
llsc
- The Linear Latent State Calibrator InstanceaStretchSpec
- Array of the Latent State StretchesstrTreasuryCode
- Treasury CodestrCurrency
- CurrencyvalParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqc
- Market Parametersvcp
- Valuation Customization ParametersdblEpochResponse
- The Starting Response Value- Returns:
- Instance of the Shape Preserving Discount Curve
-
ShapePreservingGovvieCurve
public static final GovvieCurve ShapePreservingGovvieCurve(java.lang.String strName, java.lang.String strTreasuryCode, java.lang.String strCurrency, ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, java.lang.String strBasisType, FunctionSetBuilderParams fsbp, SegmentInelasticDesignControl sdic, CalibratableComponent[] aCalibComp, java.lang.String strManifestMeasure, double[] adblQuote)Construct an Instance of the Shape Preserver of the desired Basis Spline Type, using the specified Basis Spline Set Builder Parameters.- Parameters:
strName
- Curve NamestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyvalParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqc
- Market Parametersvcp
- Valuation Customization ParametersstrBasisType
- The Basis Typefsbp
- The Function Set Basis Parameterssdic
- Segment Design In-elastic ControlaCalibComp
- Array of Calibration ComponentsstrManifestMeasure
- The Calibration Manifest MeasureadblQuote
- Array of Calibration Quotes- Returns:
- Instance of the Shape Preserver of the Desired Basis Type
-
LinearPolyShapePreserver
public static final GovvieCurve LinearPolyShapePreserver(java.lang.String strName, java.lang.String strTreasuryCode, java.lang.String strCurrency, int iSpotDate, CalibratableComponent[] aComp, double[] adblQuote, java.lang.String strManifestMeasure)Construct an Instance of the Shape Preserver of the Linear Polynomial Type, using the Specified Basis Set Builder Parameters.- Parameters:
strName
- Curve NamestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyiSpotDate
- Spot DateaComp
- Array of Calibration ComponentsadblQuote
- Array of Calibration QuotesstrManifestMeasure
- The Calibration Manifest Measure- Returns:
- Instance of the Shape Preserver of the Cubic Polynomial Type
-
CubicPolyShapePreserver
public static final GovvieCurve CubicPolyShapePreserver(java.lang.String strName, java.lang.String strTreasuryCode, java.lang.String strCurrency, int iSpotDate, CalibratableComponent[] aComp, double[] adblQuote, java.lang.String strManifestMeasure)Construct an Instance of the Shape Preserver of the Cubic Polynomial Type, using the Specified Basis Set Builder Parameters.- Parameters:
strName
- Curve NamestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyiSpotDate
- Spot DateaComp
- Array of Calibration ComponentsadblQuote
- Array of Calibration QuotesstrManifestMeasure
- The Calibration Manifest Measure- Returns:
- Instance of the Shape Preserver of the Cubic Polynomial Type
-
CustomSplineCurve
public static final GovvieCurve CustomSplineCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, SegmentCustomBuilderControl scbc)Create an Instance of the Custom Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the Yieldsscbc
- The Segment Custom Builder Control- Returns:
- The Instance of the Govvie Yield Curve
-
CubicPolynomialCurve
public static final GovvieCurve CubicPolynomialCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield)Create an Instance of the Cubic Polynomial Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the Govvie Yields- Returns:
- The Instance of the Govvie Yield Curve
-
QuarticPolynomialCurve
public static final GovvieCurve QuarticPolynomialCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield)Create an Instance of the Quartic Polynomial Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the Yields- Returns:
- The Instance of the Govvie Yield Curve
-
KaklisPandelisCurve
public static final GovvieCurve KaklisPandelisCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield)Create an Instance of the Kaklis-Pandelis Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the Yields- Returns:
- The Instance of the Govvie Yield Curve
-
KLKHyperbolicCurve
public static final GovvieCurve KLKHyperbolicCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, double dblTension)Create an Instance of the KLK Hyperbolic Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the YieldsdblTension
- The Tension Parameter- Returns:
- The Instance of the Govvie Yield Curve
-
KLKRationalLinearCurve
public static final GovvieCurve KLKRationalLinearCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, double dblTension)Create an Instance of the KLK Rational Linear Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the YieldsdblTension
- The Tension Parameter- Returns:
- The Instance of the Govvie Yield Curve
-
KLKRationalQuadraticCurve
public static final GovvieCurve KLKRationalQuadraticCurve(java.lang.String strName, JulianDate dtStart, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiMaturityDate, double[] adblYield, double dblTension)Create an Instance of the KLK Rational Quadratic Splined Govvie Yield Curve- Parameters:
strName
- Curve NamedtStart
- The Tenor Start DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiMaturityDate
- Array of the Maturity DatesadblYield
- Array of the YieldsdblTension
- The Tension Parameter- Returns:
- The Instance of the Govvie Yield Curve
-
DateYield
public static final GovvieCurve DateYield(int iEpochDate, java.lang.String strTreasuryCode, java.lang.String strCurrency, int[] aiDate, double[] adblYield)Construct a Govvie Curve from an Array of Dates and Yields- Parameters:
iEpochDate
- Epoch DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencyaiDate
- Array of DatesadblYield
- Array of Yields- Returns:
- The Govvie Curve Instance
-
ConstantYield
public static final GovvieCurve ConstantYield(int iEpochDate, java.lang.String strTreasuryCode, java.lang.String strCurrency, double dblYield)Construct a Govvie Curve from the Specified Date and Yield- Parameters:
iEpochDate
- Epoch DatestrTreasuryCode
- Treasury CodestrCurrency
- CurrencydblYield
- Yield- Returns:
- The Govvie Curve Instance
-


HP says it has received a 'proposal' from Xerox
by EndPlayNEW YORK (AP) - Computer and printer maker HP Inc. said Wednesday it had received a "proposal" from copier maker Xerox and has had conversations "from time to time" with the company about a potential business combination.
HP said Wednesday that it received the proposal on Tuesday but did not provide details. It said it will do what is in the best interests of its shareholders.
Asked for details of the proposal, a Xerox spokeswoman said the company does not comment on "rumors and speculation."
The Wall Street Journal on Tuesday reported that Xerox was considering making a bid for HP.
Both companies have faced difficulties as the demand for printed documents and ink have waned. They have both been trying to cut costs to boost results.


State
enum State
Current state of Doordeck
- authenticated: The auth token has been autheticated
- verificationRequired: verification is required from the user, this means the used key has changed
- notAuthenticated: The auhtoken has not been validated with the server.
-
Undocumented
Declaration
Swift
case authenticated
-
Undocumented
Declaration
Swift
case verificationRequired
-
Undocumented
Declaration
Swift
case notAuthenticated


Home
Work
Company
Careers
Log in
Sign Up
Home
Work
Company
Careers
Login
Signup
Community for developers
Explore, Learn, Share.
Your user registration is successful.
Count me in


If you want to remove the "Donate" button from the Windows GUI, you can download and launch the donation button removal executable.
'; } ?>|
U.S.A. / Others (in U.S. Dollars) |
Great Britain (in Pounds) |
Australia (in Australian Dollars) |
Canada (in Canadian Dollars) |


Andrea Laretto
Hello, I'm Andrea! I'm a first year PhD student at Tallinn University of Technology in the Logic and Semantics Group under the supervision of Niccolò Veltri and Fosco Loregian. I'm interested in dependent type theory, λ-calculus, programming languages, and category theory. I love programming/proving in Agda, Haskell, and Rust.Theses
-
2022-10-07Master's Thesis @ University of Pisa (110/110 with honors)Presentations:
- [ Slides] 2023-01-14 - 🇪🇪 World Logic Day 2023 - Logic in Estonia Workshop, Tallinn
- [ Slides] 2022-12-21 - 🇮🇹 3rd ItaCa Workshop, Pisa
- [ Slides] 2022-11-02 - 🇳🇴 Nordic Workshop on Programming Theory 2022, Bergen
-
2020-06-23Bachelor's Thesis @ University of Turin (110/110 with honors)Awarded the AILA 3+2 prize for best Italian theses in logic, announcement (in Italian)
Seminars
-
2022-02-17for the "Software Validation and Verification" 2021/2022 course @ University of Pisa
-
2021-07-23for the "Foundation of Computing" 2020/2021 course @ University of Pisa
-
2021-02-17for the "Languages, Compilers, and Interpreters" 2020/2021 course @ University of Pisa
Misc
Contact me
((λxy.x@y.com)iwilare)gmail)
((λxy.x@y.ee)andrea.laretto)taltech)


Home
(current)
What we do
Contact
Thank you for contacting us!
We will get in touch with you shortly.
Home Page


#include <uwdriftposition.h>
|
| virtual void | update (const double &) |
| |
| virtual double | getX () |
| |
| virtual double | getY () |
| |
| virtual double | getZ () |
| |
| virtual short | getSign () const |
| |
UwDriftPosition class implements the drift mobility model.
Definition at line 52 of file uwdriftposition.h.
◆ UwDriftPosition()
| UwDriftPosition::UwDriftPosition |
( |
| ) |
|
◆ ~UwDriftPosition()
| UwDriftPosition::~UwDriftPosition |
( |
| ) |
|
|
virtual |
◆ command()
| int UwDriftPosition::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
| argc | Number of arguments in argv. |
| argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Definition at line 112 of file uwdriftposition.cpp.
◆ getSign()
| short UwDriftPosition::getSign |
( |
| ) |
const |
|
protectedvirtual |
◆ getX()
| double UwDriftPosition::getX |
( |
| ) |
|
|
protectedvirtual |
Returns the current projection of the node on the x-axis.
If it's necessary (updating time ia expired), update the position values before returns it.
- Returns
- The new x-axis position value of the node.
Definition at line 250 of file uwdriftposition.cpp.
◆ getY()
| double UwDriftPosition::getY |
( |
| ) |
|
|
protectedvirtual |
Returns the current projection of the node on the y-axis.
If it's necessary (updating time ia expired), update the position values before returns it.
- Returns
- The new y-axis position value of the node.
Definition at line 259 of file uwdriftposition.cpp.
◆ getZ()
| double UwDriftPosition::getZ |
( |
| ) |
|
|
protectedvirtual |
Returns the current projection of the node on the z-axis.
If it's necessary (updating time ia expired), update the position values before returns it.
- Returns
- The new z-axis position value of the node.
Definition at line 268 of file uwdriftposition.cpp.
◆ update()
| void UwDriftPosition::update |
( |
const double & |
now | ) |
|
|
protectedvirtual |
Updates both the position coordinates as function of the number of states to be evaluated.
- Parameters
-
Definition at line 118 of file uwdriftposition.cpp.
◆ alpha_
| double UwDriftPosition::alpha_ |
|
protected |
Parameter to be used to vary the randomness: 0: totally random values (Brownian motion), 1: linear motion.
Definition at line 91 of file uwdriftposition.h.
◆ boundx_
| int UwDriftPosition::boundx_ |
|
protected |
◆ boundy_
| int UwDriftPosition::boundy_ |
|
protected |
◆ boundz_
| int UwDriftPosition::boundz_ |
|
protected |
◆ debug_
| int UwDriftPosition::debug_ |
|
protected |
Flag to enable or disable dirrefent levels of debug.
Definition at line 107 of file uwdriftposition.h.
◆ deltax_
| double UwDriftPosition::deltax_ |
|
protected |
Max value of the Uniform Distribution: Random movement between [0, deltax_).
Definition at line 94 of file uwdriftposition.h.
◆ deltay_
| double UwDriftPosition::deltay_ |
|
protected |
Max value of the Uniform Distribution: Random movement between [0, deltay_).
Definition at line 96 of file uwdriftposition.h.
◆ deltaz_
| double UwDriftPosition::deltaz_ |
|
protected |
Max value of the Uniform Distribution: Random movement between [0, deltaz_).
Definition at line 98 of file uwdriftposition.h.
◆ nextUpdateTime_
| double UwDriftPosition::nextUpdateTime_ |
|
protected |
Internal variable used to evaluate the steps to be computed.
Definition at line 105 of file uwdriftposition.h.
◆ old_speed_x_
| double UwDriftPosition::old_speed_x_ |
|
private |
◆ old_speed_y_
| double UwDriftPosition::old_speed_y_ |
|
private |
◆ old_speed_z_
| double UwDriftPosition::old_speed_z_ |
|
private |
◆ speed_horizontal_
| double UwDriftPosition::speed_horizontal_ |
|
protected |
◆ speed_longitudinal_
| double UwDriftPosition::speed_longitudinal_ |
|
protected |
◆ speed_vertical_
| double UwDriftPosition::speed_vertical_ |
|
protected |
◆ starting_speed_x_
| double UwDriftPosition::starting_speed_x_ |
|
protected |
◆ starting_speed_y_
| double UwDriftPosition::starting_speed_y_ |
|
protected |
◆ starting_speed_z_
| double UwDriftPosition::starting_speed_z_ |
|
protected |
◆ updateTime_
| double UwDriftPosition::updateTime_ |
|
protected |
◆ xFieldWidth_
| double UwDriftPosition::xFieldWidth_ |
|
protected |
Range of the x-axis of the field to be simulated, in meters.
Definition at line 79 of file uwdriftposition.h.
◆ yFieldWidth_
| double UwDriftPosition::yFieldWidth_ |
|
protected |
Range of the y-axis of the field to be simulated, in meters.
Definition at line 81 of file uwdriftposition.h.
◆ zFieldWidth_
| double UwDriftPosition::zFieldWidth_ |
|
protected |
Range of the z-axis of the field to be simulated, in meters.
Definition at line 83 of file uwdriftposition.h.
The documentation for this class was generated from the following files:


com.vividsolutions.jts.triangulate.quadedge
Interfaces
QuadEdgeLocator
TraversalVisitor
TriangleVisitor
Classes
EdgeConnectedTriangleTraversal
LastFoundQuadEdgeLocator
QuadEdge
QuadEdgeSubdivision
QuadEdgeTriangle
QuadEdgeUtil
TrianglePredicate
Vertex
Exceptions
LocateFailureException


Above this, we have the title, author (or subtitle) and date Pandoc metadata. These are specially classed H1, H2 and H3 elements that we just add centering to.
With Pandoc's --section-divs
option, nested header levels create nested DIVs. This stylesheet creates nested indentation for them to nest visually.
I should create some auxiliary CSS files that you could include after buttondown.css
to change some things like turning off nested indenting.
Buttondown doesn't re-define the font size or weight of the headers, but it does define the font families for them as sans- serf.
It doesn't re-define the body text font, and it doesn't make the text body narrow --- it leaves it full width. I will probably add a style option file for that.
Level 6 can be quite small.
Text before
Text after
Not all stylesheets make these have more spacing.
Alpha
Beta
Gamma
And the spacing after might be too tight.
We simply italicize them and don't do any fancy quote bar or decoration since they are already indented on the left and right.
We simply italicize them and don't do any fancy quote bar or decoration since they are already indented on the left and right.
Code blocks are styled more to be set apart a bit more than just the monospaced font. A light background color and border (in case the background doesn't print, but it looks nice too).
x = e * 10 / 2;
y = p - 7;
On screen, the blocks provide scroll boxes and the inline code spans
word wrap. For print, the code blocks also change to word wrap. On screen, the code spans
also get a little border, but lose it in print.
Remove the underline except on hover. When printing, remove all styling and print external URLs after the link text to be useful in a printout. There is no filter to not print very long URLs though.
A link to Google. A simple link to http://wikipedia.org.
I haven't figured out how to not redundantly print the URL after a simple link whose link text is the URL.
A thin line that doesn't have that shadow thing that looks terrible, especially in print.
See the end for what footnotes looks like1.
An inline image .
A Pandoc figure style image with caption:
Still may tweak this. Trying to use subtle lines to help group it, but it feels a bit too table-like. However, without them, it doesn't seem to stand out much.
Definition of the term
First definition of Term2 It can be a long, wrapped paragraph like this.
A definition can include multiple paragraphs if they are indented the same in Pandoc and MultiMarkdown 3. MultiMarkdown 2 doesn't support this, so it will be interpreted there as a code block following the Term2 definition.
A term can have multiple definitions.
The second definition of Term3. Depending on the stylesheet for HTML you are using or the output format (LaTeX, etc.), this second definition may appear styled as a separate term but without the term itself.
These get more styling than most things, yet it's still very little compared to most table stylings, but way better than an un-styled HTML table. It's to emulate a simple textbook style, but we throw in a hover row highlight to be a little useful on-screen when scrubbing around the table.
| Right | Left | Center | Default |
|---|---|---|---|
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |
A double-line rule with the word "NOTES" in the center.↩


Many years ago I had a bad meth addiction. Everything in my life revolved around getting my next bump. Most of the negative physical side effects were gradual, such as back problems from sitting in the same position for six hours at a time, palpitations or skin problems from constant picking. This report is about a much worse effect. Many addicts have to hit 'rock bottom' before they resolve to kick. Rock bottom is a term for an injury or experience that serves as a wake-up call. This is my rock bottom experience.
About two and a half years into my meth use, I got a contaminated batch. My primary mode of use was snorting, and there were many regular health issues that came up because of that. I had frequent sinus infections, sudden heavy nosebleeds, and I can't even count how many times I ruptured my conjunctiva (the clear tissue that covers the eye) from rubbing itchy, swollen eyes. But this time it was different. I'd been up for about a day and a half by the time the discomfort became intense.
I got a mirror and looked closely at my eyes. I'm very twitchy about eye problems in general, and what I saw absolutely horrified me. Not only were both my conjunctivae ruptured, but the entire eyes were swollen.  I was sure I was hallucinating at first, but when I asked my friend to look at it, he told me to go to the hospital.
I sat in the waiting area of the county emergency room for several hours in line to be treated. I went into the bathroom several times to do more little doses. I finally got to see a doctor who put ointment into my eyes and dyed them with orange stuff. He wanted me to go back to the waiting room for a few minutes to let the dye develop before examining me again. While I was waiting, I went right back into the bathroom to do more. That was when I looked at my reflection in the mirror. I looked shocking. My eyes were bright orange and clotted with ointment. It looked like a really good special FX makeup job, except it was my real face. Seeing myself in this condition, completely out of control and unable to stop doing more, I realized that I had to quit or I was going to kill myself.
It turned out I hadn't been hallucinating what I saw in the mirror. The whites of my eyes had curdled, for lack of a better word. The doctor's tests showed that the speed I had been doing more and more of was contaminated with Staphylococcus epidermidis. Having a staph infection in your eyes is not only unspeakably uncomfortable, it's repulsive.
[Erowid Note: It is not clear from these statements that the meth was actually 'contaminated with Staphylococcus epidermidis'; the doctor likely tested the patient, not the material.]
There is a relatively happy ending to this story. My eyes didn't sustain any permanent damage, and I finally did get clean. It's been almost nine years since I last got high, and it will never happen again. Most of my friends survived meth, but they also have lingering health problems years after they quit. Many are caught in a cycle of relapse. Some are dead. The high was great, but it was NOT worth the price that I paid.
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.


Dashboard
2
Calendar
Email
Social Media
Classes
Earnings
Earnings
Dashboard
Monday, April 11, 2020
New
Toggle Dropdown
Action
Another action
Something else here
Separated link
Notifications


Hi, my name is David. I'm a big silly. However, my great friend Michal is super-clever and is making a website with my awesome board-game. I will owe him pizza FOREVER!


WITNESS LIST Criminal Jurisprudence Committee April 6, 1999-2:00P HB 6 For: Harris, Bill (Self and Texas Distict and County Attorney's Association) Registering, but not testifying: For: Reagan, Karen (Texas Pharmacy Association) On: Boatright, David M. (Texas Department of Public Safety) Budge, Joel (Texas Department of Public Safety) Hampton, Keith S. (Texas Criminal Defense Lawyers Association) Hatcher, Johnny R. (Department of Public Safety) Taylor, Larry (Texas Department of Public Safety) HB 435 For: Comer, Mary Lee (AARP) Doreck, Larry E. (Houston Police Department) Registering, but not testifying: For: Rocha, Susan C. (City of San Antonio and the Greater San Antonio Crime Prevention Commission) HB 540 Registering, but not testifying: For: McDaniel, Gay (Texas Association Against Sexual Assault) On: Johnson, Gary (TDCJ) HB 582 For: Freeman, Gary (Justice of the Peace and Constables Association of Texas) Pardue, Craig (Dallas County) Registering, but not testifying: For: Kamm, Robert (Travis County Commissioners Court on Behalf of Travis County) Lee, Donald (Texas conference of Urban Counties) Mendez, Mark (Tarrant County Commission Court) HB 855 For: Olivarez, Sheriff L. (Self and Texas Sheriff Association) Registering, but not testifying: For: Igo, Shanna (Texas Municipal League) HB 943 For: Brawner, Chuck (Texas Municipal Police Association) McNeil Jr., Carvel "Corky" (Houston Police Patrolmen's Union) On: McBurney, Ruth (Texas Department of Health) Registering, but not testifying: For: Sallans, Jim (Harris County Deputies' Organization) Warp, Jeff (Texas Association of School District Police) Wilkison, Charley (Combined Law Enforcement Association of Texas) HB 947 Registering, but not testifying: For: Mendez, Mark (Tarrant County Commissioners Court) Renois, Randy (Tarrant County Fire Marshall Office) HB 1154 For: Brawner, Chuck (Texas Municipal Police Association) Ward, Jeff (Texas Association of School District Police) Against: Lee, Donald (Texas Conference of Urban Counties) Riester, Eric (Bexar County) Registering, but not testifying: For: Martinez, Louann (Texas Association of School Administrators) HB 1277 Registering, but not testifying: For: Granger, JD (Tarrant County District Attorney's Office) Williams, Christie (Dallas County Criminal District Attorney's Office) On: Kepple, Rob (Texas District and County Attorneys Association) HB 1763 For: Buchanan, Bree (Texas Council on Family Violence) HB 1923 For: Horton, Susan (Texas Municipal League) Registering, but not testifying: For: Brawns, Chuck (Texas Municipal Police Association) Wilkison, Charley (CLEAT) HB 2119 For: McMullen, Michael (American Airlines) Sloan, Charles (DFW Airport Board) HB 2306 For: Dodson, Donald Jay (Self and Dawson Neighborhood Association) Registering, but not testifying: For: Jones, Claude (Texas Police Chief Association) On: Hale, Debra (Travis County Community Supervision and Corrections) Rust, Jim (Travis County CSCD) HB 2734 For: Archer, Bill (Self) HB 3229 On: Kepple, Rob (Texas District and County Attorne's Association) HB 3249 On: Duke, Lonnie (Texas Department of Human Services) Registering, but not testifying: On: Whalen, Bill (Texas Department of Human Services) HB 3602 For: Moreland, Michael R. (Self and Chief Bruce D. Glasscock / Plano, Texas Police Department) Registering, but not testifying: For: Mann, Tom (Texas Police Chief's Association) HB 3648 For: McNeil Jr., Carvel "Corky" (Houston Police Patrolmen's Union Local 109) Sallans, Jim (Harris County Deputies Organization) Registering, but not testifying: For: Lewis, Bill (Mothers Against Drunk Drivers) Mann, Tom (Texas Police Chief's Association Lubbock Police Department) SB 116 For: Brawner, Chuck (TMPA) Ward, Jeff (Texas Association of School District Police) Against: Lee, Donald (Texas Conference of Urban Counties) Riester, Eric (Bexar County) Registering, but not testifying: For: Martinez, Louann (Texas Association of School Administrators) SB 284 Registering, but not testifying: For: Granger, JD (Tarrant County District Attorney's Office) Williams, Christie (Dallas County Criminal District Attorney's Office) On: Kepple, Rob (Texas District and County Attorneys Association) The State Jail System Today On: Fabelo, Ph.D, Tony (Criminal Justice Policy Council) Registering, but not testifying: On: Baker, Thomas A. (Texas Department of Criminal Justice)


Public API
If you're a developer and you would like to get the cards of the game in a convenient format, we provide a public REST API to get the cards and events.
It returns JSON objects that you can easily parse and use in your own tools or services.
Note that since we provide this service for free, unfortunately, we cannot 100% guarantee its uptime. However, we believe our architecture is reliable enough to be used in a production environment.
Contribute
Our project is open-source and open for contributions. We would be more than happy to accept your pull-requests on GitHub.
The website has been made using Django, the facemash has been made using Pyramid, and the public API has been made using Django-Rest-Framework, so in Python. We also use LESS CSS, Bootstrap, JQuery and Bower for the front-end of the website.
If you wish to contribute but you don't know what to do, feel free to browse tasks that are ready to be implemented.
Main contributors are db0 and Lamagicien.


 It sucks, but it's normal :(
Come To Terms With
Continue To Deny


{{.Title}}
{{.Description}}
Long Term Support
SourceBans++ has been supported since 2015! With the original starting back in 2009!
Huge Community
Over 2000 Servers run SourceBans++
Cross-Game Support
SourceBans++ runs on variety of games that use the Source Engine, from Alien Swarm to CS:GO


Scope in JS refers to the area of the code in which a rule or statement is considered applicable. There are two kinds of scope; global and local. Global scope means that the rule is applicable throughout the entirety of the code, while local scope specifies where exactly a rule is applied (and where it isn't).


Challenge is over!
Check out the write up!
Playground for S3! (Super Safe Sanitizer)
If you found a bug in the S3, contact us with this file on HackerOne!
Why is S3 guaranteed secure?
- Only supports HTML! No SVG, MathML, or other XML maddness :)
- Throws as soon as it finds unsupported tags/attributes :)
- Only supports a DocumentFragment output! No mutations, great for security & performance!
Contact Sales
Rules
- Execute alert(origin) on this origin. 1 click is allowed.
- XSSes has to work on Chrome stable version.
- You are only allowed to use vulnerability in this page or in the resources loaded in this page.
- DM me if you found 3+ XSS bugs (there are 4 bugs (i.e. XSS sinks) in this page).
Winners for finding 4 bugs
- alex
- Masato Kinugawa
- Michał Bentkowski
- You?
Winners for finding 3 bugs
- Luan Herrera
- Michał Bentkowski
- Jiantao Li
- alex
- Masato Kinugawa
- TheGrandPew
- kunte_
- You?
Honorable mention for bypassing the sanitizer in unintended ways
- Michał Bentkowski
- TheGrandPew
- alex
- You?