doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
e73d2efb-2a60-4f56-89f2-1d3980bd10f0 | {
"language": "AsciiDoc"
} | ```asciidoc
To complete this guide you will need to checkout the source from Github and work through the steps presented by the guide.
To get started do the following:
* link:https://github.com/{githubSlug}/archive/master.zip[Download] and unzip the source or if you already have https://git-scm.com/[Git]: `git clone https://github.com/{githubSlug}.git`
* `cd` into `{githubSlug}/initial`
* Head on over to the next section
```
Add a note about completed example | ```asciidoc
To complete this guide you will need to checkout the source from Github and work through the steps presented by the guide.
To get started do the following:
* link:https://github.com/{githubSlug}/archive/master.zip[Download] and unzip the source or if you already have https://git-scm.com/[Git]: `git clone https://github.com/{githubSlug}.git`
* `cd` into `{githubSlug}/initial`
* Head on over to the next section
TIP: You can go right to the completed example if you `cd` into `{githubSlug}/complete`
``` |
389895d0-8bcb-47db-a94d-2fec9fdd132b | {
"language": "AsciiDoc"
} | ```asciidoc
:source-highlighter: pygments
= Muon Clojure
Muon Clojure is just awesome and clojurific
```
Add doc push on snapshot release | ```asciidoc
---
---
:title: Muon Clojure
:layout: documentation
:source-highlighter: pygments
:toc: right
= Muon Clojure docs
Muon Clojure is just awesome and clojurific
``` |
82cab9d2-e2d8-49df-93ac-edf52613081e | {
"language": "AsciiDoc"
} | ```asciidoc
[[analysis-standard-analyzer]]
=== Standard Analyzer
An analyzer of type `standard` that is built of using
<<analysis-standard-tokenizer,Standard
Tokenizer>>, with
<<analysis-standard-tokenfilter,Standard
Token Filter>>,
<<analysis-lowercase-tokenfilter,Lower
Case Token Filter>>, and
<<analysis-stop-tokenfilter,Stop
Token Filter>>.
The following are settings that can be set for a `standard` analyzer
type:
[cols="<,<",options="header",]
|=======================================================================
|Setting |Description
|`stopwords` |A list of stopword to initialize the stop filter with.
Defaults to the english stop words.
|`max_token_length` |The maximum token length. If a token is seen that
exceeds this length then it is discarded. Defaults to `255`.
|=======================================================================
```
Fix nonsensical sentence in standard analyzer documentation so that it is more understandable | ```asciidoc
[[analysis-standard-analyzer]]
=== Standard Analyzer
An analyzer of type `standard` is built using the
<<analysis-standard-tokenizer,Standard
Tokenizer>> with the
<<analysis-standard-tokenfilter,Standard
Token Filter>>,
<<analysis-lowercase-tokenfilter,Lower
Case Token Filter>>, and
<<analysis-stop-tokenfilter,Stop
Token Filter>>.
The following are settings that can be set for a `standard` analyzer
type:
[cols="<,<",options="header",]
|=======================================================================
|Setting |Description
|`stopwords` |A list of stopword to initialize the stop filter with.
Defaults to the english stop words.
|`max_token_length` |The maximum token length. If a token is seen that
exceeds this length then it is discarded. Defaults to `255`.
|=======================================================================
``` |
0d84a378-0dc6-48d1-b4be-2ff0c8acee6b | {
"language": "AsciiDoc"
} | ```asciidoc
[id="serverless-create-func-kn_{context}"]
= Creating functions
You can create a basic serverless function using the `kn` CLI.
You can specify the path, runtime, and template as flags on the command line, or use the `-c` flag to start the interactive experience in the terminal.
.Procedure
* Create a function project:
+
[source,terminal]
----
$ kn func create <path> -l <runtime> -t <template>
----
** Supported runtimes include `node`, `go`, `python`, `quarkus`, and `typescript`.
** Supported templates include `http` and `events`.
+
.Example command
[source,terminal]
----
$ kn func create -l typescript -t events examplefunc
----
+
.Example output
[source,terminal]
----
Project path: /home/user/demo/examplefunc
Function name: examplefunc
Runtime: typescript
Template: events
Writing events to /home/user/demo/examplefunc
----
```
Document the -r <repository> option of the `kn func create` command | ```asciidoc
[id="serverless-create-func-kn_{context}"]
= Creating functions
You can create a basic serverless function using the `kn` CLI.
You can specify the path, runtime, template, and repository with the template as flags on the command line, or use the `-c` flag to start the interactive experience in the terminal.
.Procedure
* Create a function project:
+
[source,terminal]
----
$ kn func create -r <repository> -l <runtime> -t <template> <path>
----
** Supported runtimes include `node`, `go`, `python`, `quarkus`, and `typescript`.
** Supported templates include `http` and `events`.
+
.Example command
[source,terminal]
----
$ kn func create -l typescript -t events examplefunc
----
+
.Example output
[source,terminal]
----
Project path: /home/user/demo/examplefunc
Function name: examplefunc
Runtime: typescript
Template: events
Writing events to /home/user/demo/examplefunc
----
+
** Alternatively, you can specify a repository that contains a custom template.
+
.Example command
[source,terminal]
----
$ kn func create -r https://github.com/boson-project/templates/ -l node -t hello-world examplefunc
----
+
.Example output
[source,terminal]
----
Project path: /home/user/demo/examplefunc
Function name: examplefunc
Runtime: node
Template: hello-world
Writing events to /home/user/demo/examplefunc
----
``` |
f8592526-ff08-40b9-8202-5d009a98ac7e | {
"language": "AsciiDoc"
} | ```asciidoc
libframetime
============
A preloadable library, able to dump the frame times of any OpenGL application on Linux, on
any driver.
By default, the timing is written into /tmp/libframetime.out, but you can specify an
alternate file with the LIBFRAMETIME_FILE env var.
Usage
-----
----
LD_PRELOAD=path/to/libframetime.so dota2
----
Or with a custom output file:
----
LIBFRAMETIME_FILE=/tmp/dota2.frametime LD_PRELOAD=path/to/libframetime.so dota2
----
The accompanying awk script can be used to calculate the usual stats:
----
$ stats.awk < libframetime.out
----
----
Min/avg/max frametimes (us): 166 / 625.626 / 5955
Min/avg/max FPS: 167.926 / 1598.4 / 6024.1
----
```
Update readme with latest stats output | ```asciidoc
libframetime
============
A preloadable library, able to dump the frame times of any OpenGL application on Linux, on
any driver.
By default, the timing is written into /tmp/libframetime.out, but you can specify an
alternate file with the LIBFRAMETIME_FILE env var.
Usage
-----
----
LD_PRELOAD=path/to/libframetime.so dota2
----
Or with a custom output file:
----
LIBFRAMETIME_FILE=/tmp/dota2.frametime LD_PRELOAD=path/to/libframetime.so dota2
----
The accompanying awk script can be used to calculate the usual stats:
----
$ stats.awk < libframetime.out
----
----
Min/avg/max frametimes (us): 166 / 625.626 / 5955
Min/avg/max FPS: 167.926 / 1598.4 / 6024.1
50/90/95/99 percentiles (us): 410 / 434 / 589 / 5018
----
``` |
e065115f-4903-489c-8a3b-5d2524d2c7ac | {
"language": "AsciiDoc"
} | ```asciidoc
== New Check and 2 Fixes
:docname: 20180406-new-check-and-2-fixes
I fixed 3 issues for which there are releases of the following components:
* `revapi-basic-features-0.7.1` that contains a fix for https://github.com/revapi/revapi/issues/119[#119] which means
that the semver transform should no longer crash when there is no prior version of artifacts
* `revapi-java-spi-0.15.1` that includes the definition of the new `serialVersionUIDChanged` check (prompted by
https://github.com/revapi/revapi/issues/120[#120])
* `revapi-java-0.16.0` that contains the implementation of `serialVersionUIDChanged` and additionally contains
an important fix that could cause problems be reported on wrong elements in some cases.
* `revapi-maven-plugin-0.10.1` that bundles the latest revapi-basic-features version
You are urged to upgrade especially to `revapi-java-0.16.0` to avoid some head scratching when examining the Revapi
reports.
Thanks go out to Ricardo Ferreira for reporting https://github.com/revapi/revapi/issues/120[#120] and Matthew Kavanagh
for his analysis of https://github.com/revapi/revapi/issues/119[#119].
include::../util/disqus.adoc[]
```
Add a link to the docs in the release announcement | ```asciidoc
== New Check and 2 Fixes
:docname: 20180406-new-check-and-2-fixes
I fixed 3 issues for which there are releases of the following components:
* `revapi-basic-features-0.7.1` that contains a fix for https://github.com/revapi/revapi/issues/119[#119] which means
that the semver transform should no longer crash when there is no prior version of artifacts
* `revapi-java-spi-0.15.1` that includes the definition of the new `serialVersionUIDChanged`
https://revapi.org/modules/revapi-java/index.html#field_code_serialversionuid_code_changed[check] (prompted by
https://github.com/revapi/revapi/issues/120[#120])
* `revapi-java-0.16.0` that contains the implementation of `serialVersionUIDChanged` and additionally contains
an important fix that could cause problems be reported on wrong elements in some cases.
* `revapi-maven-plugin-0.10.1` that bundles the latest revapi-basic-features version
You are urged to upgrade especially to `revapi-java-0.16.0` to avoid some head scratching when examining the Revapi
reports.
Thanks go out to Ricardo Ferreira for reporting https://github.com/revapi/revapi/issues/120[#120] and Matthew Kavanagh
for his analysis of https://github.com/revapi/revapi/issues/119[#119].
include::../util/disqus.adoc[]
``` |
029b7b6b-afd0-4ef7-8d54-3bbd6d4ecd8e | {
"language": "AsciiDoc"
} | ```asciidoc
= Vert.x Unit examples
Here you'll find some examples of how to use Vert.x unit to test your asynchronous applications.
Tests are located in the link:src/test/java/io/vertx/example/unit/test directory.
Examples can be run directly from the IDE.
== Vertx Unit Test
The link:src/test/java/io/vertx/example/unit/test/VertxUnitTest.java demonstrates how the Vert.x Unit API can be used to run tests using the Vert.x Unit test runner.
Run this example by running the `main` method.
== Junit
Vert.x Unit can be used with Junit:
* link:src/test/java/io/vertx/example/unit/test/MyJunitTest.java demonstrates how to use the Vert.x Unit Junit runner
to execute your tests
* link:src/test/java/io/vertx/example/unit/test/ParameterizedTest.java demonstrates how to inject parameters into
your Junit tests
* link:src/test/java/io/vertx/example/unit/test/RunOnContextTest.java demonstrates how to delegate Vert.x instance
creation to Vert.x Unit and how to use a rule to run the test methods on the event loop (caution: they must be non-blocking)
* link:src/test/java/io/vertx/example/unit/test/JUnitAndAssertJTest.java demonstrates how to use AssertJ in
combination with Vert.x Unit
* link:src/test/java/io/vertx/example/unit/test/JUnitAndHamcrestTest.java demonstrates how to use Hamcrest in
combination with Vert.x Unit
All the tests can be run from your IDE, or directly with Maven:
```
mvn clean test
```
```
Update readme with blank info | ```asciidoc
= Vert.x gRPC examples
todo
``` |
92e4a727-0f12-4213-8fd2-ea7d6cc160db | {
"language": "AsciiDoc"
} | ```asciidoc
= SpringBoot WebApp Demo
SpringBoot looks like a nice way to get started.
This is a trivial webapp created using SpringBoot.
== HowTo
mvn spring-boot:run
then connect to http://localhost:8000/notaservlet
Note that is 8000 not the usual 8080 to avoid conflicts.
Change this in application.properties if you don't like it.
== War Deployment
It seems that you can't have both the instant-deployment convenience of Spring Boot
AND the security of a full WAR deployment in the same pom file. You will need to
make several changes to deploy as a WAR file. See the section entitled
"Traditional Deployment"--"Create a deployable war file" in the
spring-boot reference manual (Section 73.1 in the current snapshot as of
this writing).
```
Add required "name" parameter in example | ```asciidoc
= SpringBoot WebApp Demo
SpringBoot looks like a nice way to get started.
This is a trivial webapp created using SpringBoot.
== HowTo
mvn spring-boot:run
then connect to
http://localhost:8000/notaservlet?name=Robin Smith
Note that is 8000 not the usual 8080 to avoid conflicts.
Change this in application.properties if you don't like it.
== War Deployment
It seems that you can't have both the instant-deployment convenience of Spring Boot
AND the security of a full WAR deployment in the same pom file. You will need to
make several changes to deploy as a WAR file. See the section entitled
"Traditional Deployment"--"Create a deployable war file" in the
spring-boot reference manual (Section 73.1 in the current snapshot as of
this writing).
``` |
a8ec1fa1-b882-4a42-8f46-3db94d66cc01 | {
"language": "AsciiDoc"
} | ```asciidoc
= Changelog
== Version 0.4.0
Date: unreleased
- Add encode/decode functions to JWS/JWT implementation. Them instead of return
plain value, return a monadic either. That allows granular error reporting
instead something like nil that not very useful. The previous sign/unsign
are conserved for backward compatibility but maybe in future will be removed.
- Rename parameter `maxage` to `max-age` on jws implementation. This change
introduces a little backward incompatibility.
== Version 0.3.0
Date: 2014-01-18
- First version splitted from monolitic buddy package.
- No changes from original version.
```
Add deprecatio not on changelog. | ```asciidoc
= Changelog
== Version 0.4.0
Date: unreleased
- Add encode/decode functions to JWS/JWT implementation. Them instead of return
plain value, return a monadic either. That allows granular error reporting
instead something like nil that not very useful. The previous sign/unsign
are conserved for backward compatibility but maybe in future will be removed.
- Rename parameter `maxage` to `max-age` on jws implementation. This change
introduces a little backward incompatibility.
- Django based generic signing is deprecated.
== Version 0.3.0
Date: 2014-01-18
- First version splitted from monolitic buddy package.
- No changes from original version.
``` |
2497db07-6d34-4e8f-bf5b-5888d4764158 | {
"language": "AsciiDoc"
} | ```asciidoc
To run the tests:
[source, bash]
----
./grailsw
grails> test-app
grails> open test-report
----
```
Add Gradle check to testApp snippet | ```asciidoc
To run the tests:
[source, bash]
----
./grailsw
grails> test-app
grails> open test-report
----
or
[source, bash]
----
./gradlew check
open build/reports/tests/index.html
----
``` |
bb1a2e24-de1f-42f8-ba32-bb79a9cc5db5 | {
"language": "AsciiDoc"
} | ```asciidoc
= Spring Boot and Two DataSources
This project demonstrates how to use two `DataSource` s with Spring Boot.
It utilizes:
* Spring Data JPA/REST
* Flyway migrations for the two `DataSource` s
* Separate Hibernate properties for each `DataSource`
* Application properties with YAML
* Thymeleaf
* Unit tests for components```
Add DataTables and links to readme | ```asciidoc
= Spring Boot and Two DataSources
This project demonstrates how to use two `DataSource` s with Spring Boot.
It utilizes:
* Spring Data https://github.com/spring-projects/spring-data-jpa[JPA] / https://github.com/spring-projects/spring-data-rest[REST]
* https://github.com/flyway/flyway[Flyway] migrations for the two `DataSource` s
* Separate Hibernate properties for each `DataSource` defined in the application.yml
* https://github.com/thymeleaf/thymeleaf[Thymeleaf]
* https://github.com/DataTables/DataTablesSrc[DataTables]
* Unit tests for components``` |
45829123-f8e6-417c-83f7-57ecd8d1609d | {
"language": "AsciiDoc"
} | ```asciidoc
= Database Table Replicator (DbShadow)
:Author: David Thompson, Matt Conroy
:Email: <[email protected]> <[email protected]>
:Revision: 0.0.1 2017-02-08
== Description
Have you ever had the need to copy data from one database to another? How about between to different types of
databases? How about just verifying that your database tables between replicated instances are in sync?
DbShadow is a Java command line application that can help you perform these actions. Using the power of JDBC, it
can read data from one database instance and then using primary keys compare, propogate, and locate differences within
a separate database instance.
== ReleaseNotes
0.0.1 - Base code
== Usage
```
Add a little more docs. More to come. | ```asciidoc
= Database Table Replicator (DbShadow)
:Author: David Thompson, Matt Conroy
:Email: <[email protected]> <[email protected]>
:Revision: 0.0.1 2017-02-08
== Description
Have you ever had the need to copy data from one database to another? How about between to different types of
databases? How about just verifying that your database tables between replicated instances are in sync?
DbShadow is a Java command line application that can help you perform these actions. Using the power of JDBC, it
can read data from one database instance and then using primary keys compare, propogate, and locate differences within
a separate database instance.
== ReleaseNotes
0.0.1 - Base code
== Building
DbShadow uses Scala Build Tool (sbt) in order to build. Clone the repo and type
....
$ sbt clean compile
....
In order to package the system into a Java binary that's useful for somebody to use:
....
$ sbt clean universal:packageZipTarball
....
This will produce a tarball that can then be installed with a bash script for launching.
== Usage
Help usage is available with the command line.
$ dbshadow -- --help
More documentation to follow.
``` |
6b7d62f1-a0c2-44e8-a763-c4777784e106 | {
"language": "AsciiDoc"
} | ```asciidoc
icon:plus[] GraphQL: Nodes can now be loaded in the context of a schema. This will return all nodes which use the schema.
```
Add breaking GraphQL change to changelog | ```asciidoc
CAUTION: GraphQL: The root field releases has been removed. The root field release now takes no parameters and loads the active release.
icon:plus[] GraphQL: Nodes can now be loaded in the context of a schema. This will return all nodes which use the schema.
``` |
3bde26b3-885b-4213-ad96-8ae600b0dcb8 | {
"language": "AsciiDoc"
} | ```asciidoc
=== Apm-Server version HEAD
https://github.com/elastic/apm-server/compare/x...master[View commits]
==== Breaking changes
==== Bugfixes
==== Added
==== Deprecated
==== Known Issue
```
Add minor schema changes to Changelog. | ```asciidoc
=== Apm-Server version HEAD
https://github.com/elastic/apm-server/compare/x...master[View commits]
==== Breaking changes
==== Bugfixes
*Bugfixes in fields.yml leading to ES schema changes*
- changed `context.system.title` to `context.system.process_title`, removed `transaction.context`, `trace.context` (already available on top level). {pull}10[10]
==== Added
==== Deprecated
==== Known Issue
``` |
1c1e9bdf-521d-419a-890b-0ae1879c14c2 | {
"language": "AsciiDoc"
} | ```asciidoc
[[Johnzon-Johnzon]]
Johnzon
~~~~~~~
*Available as of Camel 2.18*
Johnzon is a link:data-format.html[Data Format] which uses the
http://johnzon.apache.org/[Johnzon Library]
[source,java]
-------------------------------
from("activemq:My.Queue").
marshal().json(JsonLibrary.Johnzon).
to("mqseries:Another.Queue");
-------------------------------
[[JacksonXML-Dependencies]]
Dependencies
^^^^^^^^^^^^
To use Johnzon in your camel routes you need to add the dependency
on *camel-johnzon* which implements this data format.
If you use maven you could just add the following to your pom.xml,
substituting the version number for the latest & greatest release (see
link:download.html[the download page for the latest versions]).
[source,xml]
----------------------------------------------------------
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-johnzon</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
----------------------------------------------------------
```
Fix paragraph name in Johnzon docs for Gitbook | ```asciidoc
[[Johnzon-Johnzon]]
Johnzon
~~~~~~~
*Available as of Camel 2.18*
Johnzon is a link:data-format.html[Data Format] which uses the
http://johnzon.apache.org/[Johnzon Library]
[source,java]
-------------------------------
from("activemq:My.Queue").
marshal().json(JsonLibrary.Johnzon).
to("mqseries:Another.Queue");
-------------------------------
[[Johnzon-Dependencies]]
Dependencies
^^^^^^^^^^^^
To use Johnzon in your camel routes you need to add the dependency
on *camel-johnzon* which implements this data format.
If you use maven you could just add the following to your pom.xml,
substituting the version number for the latest & greatest release (see
link:download.html[the download page for the latest versions]).
[source,xml]
----------------------------------------------------------
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-johnzon</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
----------------------------------------------------------
``` |
3a93e976-d9b5-49ea-bb0c-0c641dee5b57 | {
"language": "AsciiDoc"
} | ```asciidoc
= bitcoinj-addons Release Process
== Main Release Process
. Update `CHANGELOG.adoc`
. Set versions
.. `README.adoc` (check/set bitcoinj version variable, too)
.. bitcoinj-dsl `ExtensionModule`
.. `gradle.properties`
. Commit version bump and changelog.
. Full build, test
.. `./gradlew clean jenkinsBuild install regTest`
.. Recommended: test with *OmniJ* regTests.
. Tag: `git tag -a v0.x.y -m "Release 0.x.y"`
. Push: `git push --tags origin master`
. Publish to Bintray:
.. `./gradlew bintrayUpload`
.. Confirm publish of artifacts in Bintray Web UI.
. Update github-pages site (including JavaDoc): `./gradlew publishSite`
== Announcements
. Not yet.
== After release
. Set versions back to -SNAPSHOT
.. `gradle.properties`
.. bitcoinj-groovy `ExtensionModule`
.. *Not* `README.adoc` -- it should match release version
. Commit and push to master
```
Update build-process (use `buildCI` target) | ```asciidoc
= bitcoinj-addons Release Process
== Main Release Process
. Update `CHANGELOG.adoc`
. Set versions
.. `README.adoc` (check/set bitcoinj version variable, too)
.. bitcoinj-dsl `ExtensionModule`
.. `gradle.properties`
. Commit version bump and changelog.
. Full build, test
.. `./gradlew clean buildCI install regTest`
.. Recommended: test with *OmniJ* regTests.
. Tag: `git tag -a v0.x.y -m "Release 0.x.y"`
. Push: `git push --tags origin master`
. Publish to Bintray:
.. `./gradlew bintrayUpload`
.. Confirm publish of artifacts in Bintray Web UI.
. Update github-pages site (including JavaDoc): `./gradlew publishSite`
== Announcements
. Not yet.
== After release
. Set versions back to -SNAPSHOT
.. `gradle.properties`
.. bitcoinj-groovy `ExtensionModule`
.. *Not* `README.adoc` -- it should match release version
. Commit and push to master
``` |
2897a38b-7e28-4728-b9ea-5a38c0d05322 | {
"language": "AsciiDoc"
} | ```asciidoc
[role="xpack"]
[[fleet-apis]]
TIP: For the {kib} {fleet} APIs, see the
{fleet-guide}/fleet-api-docs.html[`Fleet API Documentation`].
== Fleet APIs
The following APIs support {fleet}'s use of {es} as a data store for internal
agent and action data. These APIs are experimental and for internal use by
{fleet} only.
* <<get-global-checkpoints,Get global checkpoints>>
// top-level
include::get-global-checkpoints.asciidoc[]
```
Relocate tip for Fleet APIs | ```asciidoc
[role="xpack"]
[[fleet-apis]]
== Fleet APIs
TIP: For the {kib} {fleet} APIs, see the
{fleet-guide}/fleet-api-docs.html[Fleet API Documentation].
The following APIs support {fleet}'s use of {es} as a data store for internal
agent and action data. These APIs are experimental and for internal use by
{fleet} only.
* <<get-global-checkpoints,Get global checkpoints>>
// top-level
include::get-global-checkpoints.asciidoc[]
``` |
5a1be78a-654b-48b0-a606-ac83eea43101 | {
"language": "AsciiDoc"
} | ```asciidoc
= Report an issue
:awestruct-layout: normalBase
:showtitle:
== Issue tracker
We welcome issue reports (bugs, improvements, new feature requests, ...) in our issue tracker:
*Show https://issues.jboss.org/browse/drools[the JIRA issue tracker].*
Log in and click on the button _Create Issue_ to report a bug, improvement or feature request.
== Pull requests on GitHub
Want to fix the issue yourself? Fork https://github.com/droolsjbpm[the git repository] and send in a pull request.
We usually process all pull requests within a few days.
```
Add the known kanban boards | ```asciidoc
= Report an issue
:awestruct-layout: normalBase
:showtitle:
== Issue tracker
We welcome issue reports (bugs, improvements, new feature requests, ...) in our issue tracker:
*Show https://issues.jboss.org/browse/drools[the JIRA issue tracker].*
Log in and click on the button _Create Issue_ to report a bug, improvement or feature request.
== Pull requests on GitHub
Want to fix the issue yourself? Fork https://github.com/droolsjbpm[the git repository] and send in a pull request.
We usually process all pull requests within a few days.
== Kanban boards
* https://issues.jboss.org/secure/RapidBoard.jspa?rapidView=4016[Drools]
* https://issues.jboss.org/secure/RapidBoard.jspa?rapidView=3828[OptaPlanner]
* https://issues.jboss.org/secure/RapidBoard.jspa?rapidView=3972[jBPM]
* AppFormer (todo)
* https://issues.jboss.org/secure/RapidBoard.jspa?rapidView=3838[Designer.NEXT]
``` |
f277b167-c60d-449f-aceb-0d091ffa7426 | {
"language": "AsciiDoc"
} | ```asciidoc
// set attributes usually set by Antora
ifndef::site-gen-antora[]
:moduledir: ..
:attachmentsdir: {moduledir}/assets/attachments
:examplesdir: {moduledir}/examples
:imagesdir: {moduledir}/assets/images
:partialsdir: {moduledir}/pages/_partials
endif::[]
:ProductName: Debezium
:debezium-version: 1.0.0.Final
:debezium-dev-version: 1.1
:debezium-kafka-version: 2.4.0
:debezium-docker-label: 1.0
:install-version: 1.0
:confluent-platform-version: 5.3.1
:strimzi-version: 0.13.0
:jira-url: https://issues.redhat.com
:prodname: Debezium
:assemblies: ../assemblies
:modules: ../../modules
:mysql-connector-plugin-download: https://repo1.maven.org/maven2/io/debezium/debezium-connector-mysql/1.0.0.Final/debezium-connector-mysql-1.0.0.Final-plugin.tar.gz
:mysql-version: 8.0
```
Remove definition of unnecessary ProductName attribute in docs | ```asciidoc
// set attributes usually set by Antora
ifndef::site-gen-antora[]
:moduledir: ..
:attachmentsdir: {moduledir}/assets/attachments
:examplesdir: {moduledir}/examples
:imagesdir: {moduledir}/assets/images
:partialsdir: {moduledir}/pages/_partials
endif::[]
:debezium-version: 1.0.0.Final
:debezium-dev-version: 1.1
:debezium-kafka-version: 2.4.0
:debezium-docker-label: 1.0
:install-version: 1.0
:confluent-platform-version: 5.3.1
:strimzi-version: 0.13.0
:jira-url: https://issues.redhat.com
:prodname: Debezium
:assemblies: ../assemblies
:modules: ../../modules
:mysql-connector-plugin-download: https://repo1.maven.org/maven2/io/debezium/debezium-connector-mysql/1.0.0.Final/debezium-connector-mysql-1.0.0.Final-plugin.tar.gz
:mysql-version: 8.0
``` |
5ddaf3e2-f565-40d8-9e31-5b64fa2e8a92 | {
"language": "AsciiDoc"
} | ```asciidoc
// Allow examples to render correctly in previews despite being
// a nested directory
:idprefix:
:idseparator: -
:icons: font
:doc-guides: ../
:doc-examples: ../_examples
:imagesdir: ../../asciidoc/images
:includes: ../includes
:root: ../../asciidoc/
```
Fix broken xrefs that use the doc-guides attribute | ```asciidoc
// Allow examples to render correctly in previews despite being
// a nested directory
:idprefix:
:idseparator: -
:icons: font
:doc-guides: ..
:doc-examples: ../_examples
:imagesdir: ../../asciidoc/images
:includes: ../includes
:root: ../../asciidoc/
``` |
ee06d5db-43af-485e-b314-3a5576108198 | {
"language": "AsciiDoc"
} | ```asciidoc
[id="security-container-content"]
= Securing container content
include::modules/common-attributes.adoc[]
:context: security-container-content
toc::[]
To ensure the security of the content inside your containers
you need to start with trusted base images, such as Red Hat
Universal Base Images, and add trusted software. To check the
ongoing security of your container images, there are both
Red Hat and third-party tools for scanning images.
// Security inside the container
include::modules/security-container-content-inside.adoc[leveloffset=+1]
// Red Hat Universal Base Images
include::modules/security-container-content-universal.adoc[leveloffset=+1]
// Container content scanning
include::modules/security-container-content-scanning.adoc[leveloffset=+1]
// Integrating external scanning tools with OpenShift
include::modules/security-container-content-external-scanning.adoc[leveloffset=+1]
.Additional resources
* xref:../../openshift_images/images-understand.adoc#images-imagestream-use_images-understand[Image stream objects]
* xref:../../rest_api/index.adoc#rest-api[{product-title} {product-version} REST APIs]
```
Comment out ref to API reference page | ```asciidoc
[id="security-container-content"]
= Securing container content
include::modules/common-attributes.adoc[]
:context: security-container-content
toc::[]
To ensure the security of the content inside your containers
you need to start with trusted base images, such as Red Hat
Universal Base Images, and add trusted software. To check the
ongoing security of your container images, there are both
Red Hat and third-party tools for scanning images.
// Security inside the container
include::modules/security-container-content-inside.adoc[leveloffset=+1]
// Red Hat Universal Base Images
include::modules/security-container-content-universal.adoc[leveloffset=+1]
// Container content scanning
include::modules/security-container-content-scanning.adoc[leveloffset=+1]
// Integrating external scanning tools with OpenShift
include::modules/security-container-content-external-scanning.adoc[leveloffset=+1]
.Additional resources
* xref:../../openshift_images/images-understand.adoc#images-imagestream-use_images-understand[Image stream objects]
// * xref::../../rest_api/index.adoc#rest-api[{product-title} {product-version} REST APIs]
``` |
7d730cc3-7e31-4bf0-8ffc-01d8a0873b3d | {
"language": "AsciiDoc"
} | ```asciidoc
[[plugins_list]]
== List of plugins
This is a non-exhaustive list of Erlang.mk plugins, sorted
alphabetically.
=== elixir.mk
An https://github.com/botsunit/elixir.mk[Elixir plugin] for
Erlang.mk. http://elixir-lang.org/[Elixir] is an alternative
language for the BEAM.
=== elvis.mk
An https://github.com/inaka/elvis.mk[Elvis plugin] for Erlang.mk.
Elvis is an https://github.com/inaka/elvis[Erlang style reviewer].
=== geas
https://github.com/crownedgrouse/geas[Geas] gives aggregated
information on a project and its dependencies, and is available
as an Erlang.mk plugin.
=== hexer.mk
An https://github.com/inaka/hexer.mk[Hex plugin] for Erlang.mk.
Hex is a https://hex.pm/[package manager for the Elixir ecosystem].
=== lfe.mk
An https://github.com/ninenines/lfe.mk[LFE plugin] for Erlang.mk.
LFE, or http://lfe.io/[Lisp Flavoured Erlang], is an alternative
language for the BEAM.
=== reload.mk
A https://github.com/bullno1/reload.mk[live reload plugin] for Erlang.mk.
```
Add the Efene plugin to the list | ```asciidoc
[[plugins_list]]
== List of plugins
This is a non-exhaustive list of Erlang.mk plugins, sorted
alphabetically.
=== efene.mk
An https://github.com/ninenines/efene.mk[Efene plugin] for Erlang.mk.
http://efene.org/[Efene] is an alternative language for the BEAM.
=== elixir.mk
An https://github.com/botsunit/elixir.mk[Elixir plugin] for
Erlang.mk. http://elixir-lang.org/[Elixir] is an alternative
language for the BEAM.
=== elvis.mk
An https://github.com/inaka/elvis.mk[Elvis plugin] for Erlang.mk.
Elvis is an https://github.com/inaka/elvis[Erlang style reviewer].
=== geas
https://github.com/crownedgrouse/geas[Geas] gives aggregated
information on a project and its dependencies, and is available
as an Erlang.mk plugin.
=== hexer.mk
An https://github.com/inaka/hexer.mk[Hex plugin] for Erlang.mk.
Hex is a https://hex.pm/[package manager for the Elixir ecosystem].
=== lfe.mk
An https://github.com/ninenines/lfe.mk[LFE plugin] for Erlang.mk.
LFE, or http://lfe.io/[Lisp Flavoured Erlang], is an alternative
language for the BEAM.
=== reload.mk
A https://github.com/bullno1/reload.mk[live reload plugin] for Erlang.mk.
``` |
2076e59e-8b6c-4fc2-b964-5e877ad1770c | {
"language": "AsciiDoc"
} | ```asciidoc
// Module included in the following assemblies:
//
// * installing/installing_bare_metal/installing-bare-metal.adoc
// * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc
// * installing/installing_vsphere/installing-restricted-networks-vsphere.adoc
// * installing/installing_vsphere/installing-vsphere.adoc
// * registry/configuring-registry-storage/configuring-registry-storage-baremetal.adoc
// * registry/configuring-registry-storage/configuring-registry-storage-vsphere.adoc
[id="registry-change-management-state_{context}"]
= Change image registry ManagementState
To start the image registry, you must change `ManagementState` Image Registry Operator configuration from `Removed` to `Managed`.
.Procedure
* Change `ManagementState` Image Registry Operator configuration from `Removed` to `Managed`. For example:
+
[source,yaml]
----
apiVersion: imageregistry.operator.openshift.io/v1
kind: Config
metadata:
creationTimestamp: <time>
finalizers:
- imageregistry.operator.openshift.io/finalizer
generation: 3
name: cluster
resourceVersion: <version>
selfLink: <link>
spec:
readOnly: false
disableRedirect: false
requests:
read:
maxInQueue: 0
maxRunning: 0
maxWaitInQueue: 0s
write:
maxInQueue: 0
maxRunning: 0
maxWaitInQueue: 0s
defaultRoute: true
managementState: Managed
----
```
Simplify command to change managementState | ```asciidoc
// Module included in the following assemblies:
//
// * installing/installing_bare_metal/installing-bare-metal.adoc
// * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc
// * installing/installing_vsphere/installing-restricted-networks-vsphere.adoc
// * installing/installing_vsphere/installing-vsphere.adoc
// * registry/configuring_registry_storage/configuring-registry-storage-baremetal.adoc
// * registry/configuring_registry_storage/configuring-registry-storage-vsphere.adoc
// * virt/virtual_machines/importing_vms/virt-importing-vmware-vm.adoc
[id="registry-change-management-state_{context}"]
= Changing the image registry's management state
To start the image registry, you must change the Image Registry Operator configuration's `managementState` from `Removed` to `Managed`.
.Procedure
* Change `managementState` Image Registry Operator configuration from `Removed` to `Managed`. For example:
+
[source,terminal]
----
$ oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"managementState":"Managed"}}'
----
``` |
bfabf053-efa3-43ee-82a5-27eacb42f526 | {
"language": "AsciiDoc"
} | ```asciidoc
= Packed deployments
We use the term 'packed deployment' to mean that everything required at runtime is built (if necessary) and packed into an archive, ready for deployment and execution in the target operating environment.
It is common to create 'uberjars' containing pre-compiled Clojure code, togther with dependent pre-compiled library code from Clojure and other JVM languages.
Advantages of this approach include:
* Start up time is fast, ideal for AWS Lambdas and for coping with sudden spikes in traffic, for example, using AWS auto-scaling groups.
* Immutable
Disadvantages include:
* Uberjars can be large, meaning they _can_ be costly to build, store and transfer across network links.
* Lossy uberjar build process, possible licensing issues and ambiguities.
* Require a full redeploy on every change
* Distance between dev and prod
NOTE: Coming soon, documentation about integration with `pack`.
```
Add documentation on building uberjars | ```asciidoc
= Packed deployments
We use the term 'packed deployment' to mean that everything required at runtime is built (if necessary) and packed into an archive, ready for deployment and execution in the target operating environment.
It is common to create 'uberjars' containing pre-compiled Clojure code, togther with dependent pre-compiled library code from Clojure and other JVM languages.
Advantages of this approach include:
* Start up time is fast, ideal for AWS Lambdas and for coping with sudden spikes in traffic, for example, using AWS auto-scaling groups.
* Immutable
Disadvantages include:
* Uberjars can be large, meaning they _can_ be costly to build, store and transfer across network links.
* Lossy uberjar build process, possible licensing issues and ambiguities.
* Require a full redeploy on every change
* Distance between dev and prod
== Creating an uberjar
From the top-level directory, run the following:
[source]
----
edge$ bin/uberjar main
----
This creates an uberjar named `main.jar`.
NOTE: By default, uberjars are built using the https://github.com/juxt/pack.alpha#capsule[*capsule* strategy] in
JUXT's https://github.com/juxt/pack.alpha[pack] tool.
== Running the uberjar
[source]
----
edge$ java -jar main.jar
----
``` |
bdc2c538-15a0-4b3c-8114-47737a6d3642 | {
"language": "AsciiDoc"
} | ```asciidoc
== Spring Boot Application Plugin
The plugin `com.bmuschko.docker-spring-boot-application` is a highly opinionated plugin for projects applying the https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-gradle-plugin.html[Spring Boot plugin].
Under the covers the plugin preconfigures tasks for creating and pushing Docker images for your Spring Boot application.
The default configuration is tweakable via an exposed extension. The plugin https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/html/#reacting-to-other-plugins[reacts] to either the `java` or `war` plugin.
include::31-usage.adoc[]
include::32-extension.adoc[]
include::33-tasks.adoc[]
include::34-examples.adoc[]```
Add note about supported Spring Boot plugin version | ```asciidoc
== Spring Boot Application Plugin
The plugin `com.bmuschko.docker-spring-boot-application` is a highly opinionated plugin for projects applying the https://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-gradle-plugin.html[Spring Boot plugin].
Under the covers the plugin preconfigures tasks for creating and pushing Docker images for your Spring Boot application.
The default configuration is tweakable via an exposed extension. The plugin https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/html/#reacting-to-other-plugins[reacts] to either the `java` or `war` plugin.
[IMPORTANT]
The plugin only supports projects that use a 2.x version of the Spring Boot plugin.
include::31-usage.adoc[]
include::32-extension.adoc[]
include::33-tasks.adoc[]
include::34-examples.adoc[]``` |
fbb71b51-3d0c-4caa-9976-64390fed7bec | {
"language": "AsciiDoc"
} | ```asciidoc
=== 5.0.0-M1
*Date of Release:* June 30, 2016
*Scope:* First milestone release of JUnit 5
==== Summary of Changes
===== JUnit Platform
- `org.junit.platform.console.ConsoleRunner` has been renamed to `ConsoleLauncher`
===== JUnit Jupiter
- `ExtensionContext.getElement()` now returns `Optional<AnnotatedElement>`.
===== JUnit Vintage
- ???
```
Document package migration in release notes | ```asciidoc
=== 5.0.0-M1
*Date of Release:* June 30, 2016
*Scope:* First milestone release of JUnit 5
==== Summary of Changes
The following is a list of global changes. For details regarding changes specific to the
Platform, Jupiter, and Vintage, consult the dedicated subsections.
.Package Migration
[cols="20,80"]
|===
| Old Base Package | New Base Package
| `org.junit.gen5.api` | `org.junit.jupiter.api`
| `org.junit.gen5.commons` | `org.junit.platform.commons`
| `org.junit.gen5.console` | `org.junit.platform.console`
| `org.junit.gen5.engine.junit4` | `org.junit.vintage.engine`
| `org.junit.gen5.engine.junit5` | `org.junit.jupiter.engine`
| `org.junit.gen5.engine` | `org.junit.platform.engine`
| `org.junit.gen5.gradle` | `org.junit.platform.gradle.plugin`
| `org.junit.gen5.junit4.runner` | `org.junit.platform.runner`
| `org.junit.gen5.launcher` | `org.junit.platform.launcher`
| `org.junit.gen5.surefire` | `org.junit.platform.surefire.provider`
|===
===== JUnit Platform
- `org.junit.platform.console.ConsoleRunner` renamed to `ConsoleLauncher`
===== JUnit Jupiter
- `ExtensionContext.getElement()` now returns `Optional<AnnotatedElement>`
===== JUnit Vintage
- ???
``` |
d8f2661d-add9-436c-833b-41342fbc278e | {
"language": "AsciiDoc"
} | ```asciidoc
IronBee Reference Manual
========================
Brian Rectanus, Ivan Ristic
v0.9.0, 2010-2014
:doctype: book
:encoding: utf-8
:toc2:
:toclevels: 3
include::ch-preface.adoc[]
include::ch-introduction.adoc[]
include::ch-server-configuration.adoc[]
include::ch-ironbee-configuration.adoc[]
include::ch-diagnostics-devel-tools.adoc[]
include::ch-inspection.adoc[]
include::ch-rule-reference.adoc[]
include::ch-extending-ironbee.adoc[]
include::ch-installation-guide.adoc[]
include::ap-configuration-examples.adoc[]
include::ap-todo.adoc[]
include::ap-comparison-with-modsecurity.adoc[]
```
Remove Ivan as doc author (sorry Ivan, old asciidoc only supports one author). | ```asciidoc
IronBee Reference Manual
========================
Brian Rectanus
v0.9.0, 2010-2014
:doctype: book
:encoding: utf-8
:toc2:
:toclevels: 3
include::ch-preface.adoc[]
include::ch-introduction.adoc[]
include::ch-server-configuration.adoc[]
include::ch-ironbee-configuration.adoc[]
include::ch-diagnostics-devel-tools.adoc[]
include::ch-inspection.adoc[]
include::ch-rule-reference.adoc[]
include::ch-extending-ironbee.adoc[]
include::ch-installation-guide.adoc[]
include::ap-configuration-examples.adoc[]
include::ap-todo.adoc[]
include::ap-comparison-with-modsecurity.adoc[]
``` |
64c70b45-6861-4adf-9f1e-5b3ae2935e84 | {
"language": "AsciiDoc"
} | ```asciidoc
[[new]]
= What's New in Spring Security 5.8
Spring Security 5.8 provides a number of new features.
Below are the highlights of the release.
* https://github.com/spring-projects/spring-security/pull/11638[gh-11638] - Refresh remote JWK when unknown KID error occurs
* https://github.com/spring-projects/spring-security/pull/11782[gh-11782] - @WithMockUser Supported as Merged Annotation
* https://github.com/spring-projects/spring-security/issues/11661[gh-11661] - Configurable authentication converter for resource-servers with token introspection
* https://github.com/spring-projects/spring-security/pull/11771[gh-11771] - `HttpSecurityDsl` should support `apply` method
* https://github.com/spring-projects/spring-security/pull/11232[gh-11232] - `ClientRegistrations#rest` defines 30s connect and read timeouts
* https://github.com/spring-projects/spring-security/pull/11464[gh-11464] - Remember Me supports SHA256 algorithm
```
Update What's New for 5.8 | ```asciidoc
[[new]]
= What's New in Spring Security 5.8
Spring Security 5.8 provides a number of new features.
Below are the highlights of the release.
* https://github.com/spring-projects/spring-security/pull/11638[gh-11638] - Refresh remote JWK when unknown KID error occurs
* https://github.com/spring-projects/spring-security/pull/11782[gh-11782] - @WithMockUser Supported as Merged Annotation
* https://github.com/spring-projects/spring-security/issues/11661[gh-11661] - Configurable authentication converter for resource-servers with token introspection
* https://github.com/spring-projects/spring-security/pull/11771[gh-11771] - `HttpSecurityDsl` should support `apply` method
* https://github.com/spring-projects/spring-security/pull/11232[gh-11232] - `ClientRegistrations#rest` defines 30s connect and read timeouts
* https://github.com/spring-projects/spring-security/pull/11464[gh-11464] - Remember Me supports SHA256 algorithm
* https://github.com/spring-projects/spring-security/pull/11908[gh-11908] - Make X-Xss-Protection header value configurable in ServerHttpSecurity
``` |
ec04fbce-0c52-46c7-ada5-e223e3fa4cf4 | {
"language": "AsciiDoc"
} | ```asciidoc
= Full Ergodox EZ build environment for Void Linux
Create a chroot like so:
[source]
xbps-install -S -R https://repo.voidlinux.eu/current -r /tmp/foo base-voidstrap
Then you can run.
INFO: /tmp/foo here must be absolute. Limitation of xbps-uunshare.
[source]
xbps-uunshare /tmp/foo xbps-install -- -S gcc wget unzip dfu-programmer zip make teensy_loader_cli git avr-gcc avr-libc
You can fetch qmk like so:
[source]
xbps-uunshare /tmp/foo git -- clone --depth 1 https://github.com/qmk/qmk_firmware.git
Build with
[source]
xbps-uunshare /tmp/foo /bin/sh -- -c '(cd /qmk_firmware && make ergodox-ez-default-teensy)'
```
Remove reference to git, prefer -b in further statement | ```asciidoc
= Full Ergodox EZ build environment for Void Linux
Create a chroot like so:
[source]
xbps-install -S -R https://repo.voidlinux.eu/current -r /tmp/foo base-voidstrap
Then you can run.
INFO: /tmp/foo here must be absolute. Limitation of xbps-uunshare.
[source]
xbps-uunshare /tmp/foo xbps-install -- -S gcc wget unzip dfu-programmer zip make teensy_loader_cli avr-gcc avr-libc
You can fetch qmk like so:
[source]
xbps-uunshare /tmp/foo git -- clone --depth 1 https://github.com/qmk/qmk_firmware.git
Build with
[source]
xbps-uunshare /tmp/foo /bin/sh -- -c '(cd /qmk_firmware && make ergodox-ez-default-teensy)'
``` |
7f0407d4-8cf7-440d-ad46-9c82531348f4 | {
"language": "AsciiDoc"
} | ```asciidoc
[[release-notes-5.3.0-M1]]
== 5.3.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/23?closed=1+[5.3 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.3.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.3.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* New `assertThrows` methods in `Assertions` provide a more specific failure
message if the lambda returns a result instead of throwing the expected
exception.
[[release-notes-5.3.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
```
Document `--details verbose` stacktrace emission fix | ```asciidoc
[[release-notes-5.3.0-M1]]
== 5.3.0-M1
*Date of Release:* ❓
*Scope:* ❓
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/23?closed=1+[5.3 M1] milestone page in the JUnit repository
on GitHub.
[[release-notes-5.3.0-M1-junit-platform]]
=== JUnit Platform
==== Bug Fixes
* Full stacktrace is printed to the console, when running the `ConsoleLauncher`
in `--details verbose` mode.
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
[[release-notes-5.3.0-M1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* New `assertThrows` methods in `Assertions` provide a more specific failure
message if the lambda returns a result instead of throwing the expected
exception.
[[release-notes-5.3.0-M1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* ❓
==== Deprecations and Breaking Changes
* ❓
==== New Features and Improvements
* ❓
``` |
68e72c65-f0ca-4ba1-89cd-bdd7c48834f2 | {
"language": "AsciiDoc"
} | ```asciidoc
==== Changes to Configuration Model
In preparation for Hibernate 5.2 support the previous "SessionFactoryBean" notion has been removed. Now if you wish to customize `SessionFactory` creation you should instead register a custom `org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory` in Spring.
```
Update upgrade notes regarding Hibernate 5.2 | ```asciidoc
==== Changes to Configuration Model
In preparation for Hibernate 5.2 support the previous "SessionFactoryBean" notion has been removed. Now if you wish to customize `SessionFactory` creation you should instead register a custom `org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory` in Spring.
==== IdentityEnumType Handling Changed
Previous versions of GORM shipped with a `org.grails.orm.hibernate.cfg.IdentityEnumType` class for altering the handling of enums. In order to support different versions of Hibernate 5.x which feature different signatures for the `org.hibernate.usertype.UserType` interface this class has been removed.
If you wish to obtain the same functionality you need to change your `mapping` block to:
[source,groovy]
----
static mapping = {
myEnum enumType:"identity"
}
----
==== Changes to Support Hibernate 5.2
Hibernate 5.2 includes many breaking API changes, in order to support Hibernate 5.2 several classes have been removed or rewritten. Including:
* `org.grails.orm.hibernate.proxy.GroovyAwareJavassistLazyInitializer`
* `org.grails.orm.hibernate.proxy.GroovyAwareJavassistProxyFactory`
* `org.grails.orm.hibernate.persister.entity.GroovyAwareJoinedSubclassEntityPersister`
* `org.grails.orm.hibernate.persister.entity.GroovyAwareSingleTableEntityPersister`
Most of these classes are considered internal, however if you have extended or references these classes you may need to modify your code appropriately.``` |
c17ae204-5f3c-4bb4-8509-72031a6e8a39 | {
"language": "AsciiDoc"
} | ```asciidoc
[[vm-max-map-count]]
=== Virtual memory
Elasticsearch uses a <<default_fs,`mmapfs`>> directory by
default for 64bit systems to store its indices. The default operating system limits on mmap
counts is likely to be too low, which may result in out of memory exceptions.
On Linux, you can increase the limits by running the following command as
`root`:
[source,sh]
-------------------------------------
sysctl -w vm.max_map_count=262144
-------------------------------------
To set this value permanently, update the `vm.max_map_count` setting in
`/etc/sysctl.conf`. To verify after rebooting, run `sysctl vm.max_map_count`.
The RPM and Debian packages will configure this setting automatically. No
further configuration is required.
```
Remove another reference to 64-bit systems. | ```asciidoc
[[vm-max-map-count]]
=== Virtual memory
Elasticsearch uses a <<default_fs,`mmapfs`>> directory by
default to store its indices. The default operating system limits on mmap
counts is likely to be too low, which may result in out of memory exceptions.
On Linux, you can increase the limits by running the following command as
`root`:
[source,sh]
-------------------------------------
sysctl -w vm.max_map_count=262144
-------------------------------------
To set this value permanently, update the `vm.max_map_count` setting in
`/etc/sysctl.conf`. To verify after rebooting, run `sysctl vm.max_map_count`.
The RPM and Debian packages will configure this setting automatically. No
further configuration is required.
``` |
9e257f20-9b56-4a91-9a33-ddabf55eb724 | {
"language": "AsciiDoc"
} | ```asciidoc
[[vm-max-map-count]]
=== Virtual memory
Elasticsearch uses a <<default_fs,`mmapfs`>> directory by
default for 64bit systems to store its indices. The default operating system limits on mmap
counts is likely to be too low, which may result in out of memory exceptions.
On Linux, you can increase the limits by running the following command as
`root`:
[source,sh]
-------------------------------------
sysctl -w vm.max_map_count=262144
-------------------------------------
To set this value permanently, update the `vm.max_map_count` setting in
`/etc/sysctl.conf`. To verify after rebooting, run `sysctl vm.max_map_count`.
The RPM and Debian packages will configure this setting automatically. No
further configuration is required.
```
Remove another reference to 64-bit systems. | ```asciidoc
[[vm-max-map-count]]
=== Virtual memory
Elasticsearch uses a <<default_fs,`mmapfs`>> directory by
default to store its indices. The default operating system limits on mmap
counts is likely to be too low, which may result in out of memory exceptions.
On Linux, you can increase the limits by running the following command as
`root`:
[source,sh]
-------------------------------------
sysctl -w vm.max_map_count=262144
-------------------------------------
To set this value permanently, update the `vm.max_map_count` setting in
`/etc/sysctl.conf`. To verify after rebooting, run `sysctl vm.max_map_count`.
The RPM and Debian packages will configure this setting automatically. No
further configuration is required.
``` |
a619ea2b-266e-4b56-9cdb-d045402fbf37 | {
"language": "AsciiDoc"
} | ```asciidoc
===== Delete Amazon Load Balancer
====== Type
+deleteAmazonLoadBalancer+
====== Description
This stage provides orchestration for deleting an Amazon Elastic Load Balancer. This is a destructive process, which cannot be reversed. If the provided +loadBalancerName+ is not found for _all_ provided +regions+, the operation will fail validation.
CAUTION: This operation marks the end of a Load Balancer's life. The process cannot be undone, and the configuration cannot be reconstituted. A load balancer of the same configuration will need to be recreated from scratch.
====== Services Involved
_orca_, _kato_, _oort_
====== Steps
_deleteAmazonLoadBalancer_, _forceCacheRefresh_, _monitorDelete_, _sendNotification_
====== Example Request Body
[source,javascript]
----
{
"type": "deleteAmazonLoadBalancer",
"loadBalancerName": "kato-main-frontend",
"regions": ["us-east-1", "us-west-1", "us-west-2", "eu-west-1"],
"credentials": "test"
}
----
====== Description of inputs
[width="100%",frame="topbot",options="header,footer"]
|======================
|Key | Type | Required | Value
|loadBalancerName | string | true | The name of the load balancer.
|regions | array | true | An object that provides a named region to array of region names. For example, +["us-east-1", "us-west-1"]+ will inform the deployment engine to delete the ELB those specific regions.
|credentials | string | true | The named account credentials that are to be used for this operation.
|======================
```
Update and fix errors in delete ELB docs | ```asciidoc
===== Delete Amazon Load Balancer
====== Type
+deleteAmazonLoadBalancer+
====== Description
This stage provides orchestration for deleting an Amazon Elastic Load Balancer. This is a destructive process, which cannot be reversed.
CAUTION: This operation marks the end of a Load Balancer's life. The process cannot be undone, and the configuration cannot be reconstituted. A load balancer of the same configuration will need to be recreated from scratch.
====== Services Involved
_orca_, _kato_, _oort_
====== Steps
_deleteAmazonLoadBalancer_, _forceCacheRefresh_, _monitorDelete_
====== Example Request Body
[source,javascript]
----
{
"type": "deleteAmazonLoadBalancer",
"loadBalancerName": "kato-main-frontend",
"regions": ["us-east-1", "us-west-1", "us-west-2", "eu-west-1"],
"credentials": "test"
}
----
====== Description of inputs
[width="100%",frame="topbot",options="header,footer"]
|======================
|Key | Type | Required | Value
|loadBalancerName | string | true | The name of the load balancer.
|regions | array | true | An object that provides a named region to array of region names. For example, +["us-east-1", "us-west-1"]+ will inform the deployment engine to delete from those specific regions.
|credentials | string | true | The named account credentials that are to be used for this operation.
|======================
``` |
b3138ffb-9c50-4aa0-8b46-a74d80801707 | {
"language": "AsciiDoc"
} | ```asciidoc
[[breaking_70_plugins_changes]]
=== Plugins changes
==== Azure Repository plugin
* The legacy azure settings which where starting with `cloud.azure.storage.` prefix have been removed.
This includes `account`, `key`, `default` and `timeout`.
You need to use settings which are starting with `azure.client.` prefix instead.
* Global timeout setting `cloud.azure.storage.timeout` has been removed.
You must set it per azure client instead. Like `azure.client.default.timeout: 10s` for example.
See {plugins}/repository-azure-usage.html#repository-azure-repository-settings[Azure Repository settings].
==== Google Cloud Storage Repository plugin
* The repository settings `application_name`, `connect_timeout` and `read_timeout` have been removed and
must now be specified in the client settings instead.
See {plugins}/repository-gcs-client.html#repository-gcs-client[Google Cloud Storage Client Settings].
```
Fix broken cross link in documentation | ```asciidoc
[[breaking_70_plugins_changes]]
=== Plugins changes
==== Azure Repository plugin
* The legacy azure settings which where starting with `cloud.azure.storage.` prefix have been removed.
This includes `account`, `key`, `default` and `timeout`.
You need to use settings which are starting with `azure.client.` prefix instead.
* Global timeout setting `cloud.azure.storage.timeout` has been removed.
You must set it per azure client instead. Like `azure.client.default.timeout: 10s` for example.
See {plugins}/repository-azure-repository-settings.html#repository-azure-repository-settings[Azure Repository settings].
==== Google Cloud Storage Repository plugin
* The repository settings `application_name`, `connect_timeout` and `read_timeout` have been removed and
must now be specified in the client settings instead.
See {plugins}/repository-gcs-client.html#repository-gcs-client[Google Cloud Storage Client Settings].
``` |
b5e7c2eb-ef7b-430e-98d1-cf1a820c6949 | {
"language": "AsciiDoc"
} | ```asciidoc
= Spring Cloud Data Flow Reference Guide
Sabby Anandan; Marius Bogoevici; Eric Bottard; Mark Fisher; Ilayaperumal Gopinathan; Gunnar Hillert; Mark Pollack; Patrick Peralta; Glenn Renfro; Thomas Risberg; Dave Syer; David Turanski; Janne Valkealahti
:doctype: book
:toc:
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme:
:spring-cloud-dataflow-docs: http://docs.spring.io/spring-cloud-dataflow/docs/{project-version}/reference
:spring-cloud-dataflow-docs-current: http://docs.spring.io/spring-cloud-dataflow/docs/current-SNAPSHOT/reference/html/
:github-repo: spring-projects/spring-cloud-dataflow
:github-code: http://github.com/{github-repo}
:dataflow-asciidoc: https://raw.githubusercontent.com/spring-cloud/spring-cloud-dataflow/master/spring-cloud-dataflow-docs/src/main/asciidoc
// ======================================================================================
include::preface.adoc[]
include::spring-cloud-dataflow-overview.adoc[]
include::architecture.adoc[]
include::getting-started.adoc[]
include::streams.adoc[]
include::tasks.adoc[]
include::dashboard.adoc[]
include::howto.adoc[]
include::appendix.adoc[]
// ======================================================================================
```
Fix GitHub repo url in adoc files | ```asciidoc
= Spring Cloud Data Flow Reference Guide
Sabby Anandan; Marius Bogoevici; Eric Bottard; Mark Fisher; Ilayaperumal Gopinathan; Gunnar Hillert; Mark Pollack; Patrick Peralta; Glenn Renfro; Thomas Risberg; Dave Syer; David Turanski; Janne Valkealahti
:doctype: book
:toc:
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme:
:spring-cloud-dataflow-docs: http://docs.spring.io/spring-cloud-dataflow/docs/{project-version}/reference
:spring-cloud-dataflow-docs-current: http://docs.spring.io/spring-cloud-dataflow/docs/current-SNAPSHOT/reference/html/
:github-repo: spring-cloud/spring-cloud-dataflow
:github-code: http://github.com/{github-repo}
:dataflow-asciidoc: https://raw.githubusercontent.com/spring-cloud/spring-cloud-dataflow/master/spring-cloud-dataflow-docs/src/main/asciidoc
// ======================================================================================
include::preface.adoc[]
include::spring-cloud-dataflow-overview.adoc[]
include::architecture.adoc[]
include::getting-started.adoc[]
include::streams.adoc[]
include::tasks.adoc[]
include::dashboard.adoc[]
include::howto.adoc[]
include::appendix.adoc[]
// ======================================================================================
``` |
127503e6-99ad-4d9e-b637-e8e3ef9cd795 | {
"language": "AsciiDoc"
} | ```asciidoc
//
// Copyright (c) 2016-2017 Eclipse Microprofile Contributors:
// Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
= Interoperable JWT RBAC for Microprofile
:author: Scott Stark; Pedro Igor Silva
:email: [email protected]
:revnumber: 1.0
:revdate: 2017-09-14
:revremark: Proposed Final Draft
:version-label!:
:sectanchors:
:doctype: book
:license: Apache License v2.0
:source-highlighter: coderay
:toc: left
:toclevels: 4
:sectnumlevels: 4
ifdef::backend-pdf[]
:pagenums:
endif::[]
include::license-alv2.asciidoc[]
include::background.asciidoc[]
include::interoperability.asciidoc[]
include::future-directions.asciidoc[]
include::sample-impl.asciidoc[]
```
Update title and email. Add section numbers. | ```asciidoc
//
// Copyright (c) 2016-2017 Eclipse Microprofile Contributors:
// Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
= Eclipse MicroProfile Interoperable JWT RBAC
:author: Scott Stark; Pedro Igor Silva
:email: [email protected]
:revnumber: 1.0
:revdate: 2017-09-14
:revremark: Proposed Final Draft
:version-label!:
:sectanchors:
:doctype: book
:license: Apache License v2.0
:source-highlighter: coderay
:toc: left
:toclevels: 4
:sectnumlevels: 4
ifdef::backend-pdf[]
:pagenums:
:numbered:
endif::[]
include::license-alv2.asciidoc[]
include::background.asciidoc[]
include::interoperability.asciidoc[]
include::future-directions.asciidoc[]
include::sample-impl.asciidoc[]
``` |
c5430f02-4061-4036-abd0-ea71735f2d9f | {
"language": "AsciiDoc"
} | ```asciidoc
[[search-aggregations-metrics-geobounds-aggregation]]
=== Geo Bounds Aggregation
A metric aggregation that computes the bounding box containing all geo_point values for a field.
.Experimental!
[IMPORTANT]
=====
This feature is marked as experimental, and may be subject to change in the
future. If you use this feature, please let us know your experience with it!
=====
Example:
[source,js]
--------------------------------------------------
{
"query" : {
"match" : { "business_type" : "shop" }
},
"aggs" : {
"viewport" : {
"geo_bounds" : {
"field" : "location" <1>
"wrap_longitude" : "true" <2>
}
}
}
}
--------------------------------------------------
<1> The `geo_bounds` aggregation specifies the field to use to obtain the bounds
<2> `wrap_longitude` is an optional parameter which specifies whether the bounding box should be allowed to overlap the international date line. The default value is `true`
The above aggregation demonstrates how one would compute the bounding box of the location field for all documents with a business type of shop
The response for the above aggregation:
[source,js]
--------------------------------------------------
{
...
"aggregations": {
"viewport": {
"bounds": {
"top_left": {
"lat": 80.45,
"lon": -160.22
},
"bottom_right": {
"lat": 40.65,
"lon": 42.57
}
}
}
}
}
--------------------------------------------------
```
Fix missing comma and boolean true | ```asciidoc
[[search-aggregations-metrics-geobounds-aggregation]]
=== Geo Bounds Aggregation
A metric aggregation that computes the bounding box containing all geo_point values for a field.
.Experimental!
[IMPORTANT]
=====
This feature is marked as experimental, and may be subject to change in the
future. If you use this feature, please let us know your experience with it!
=====
Example:
[source,js]
--------------------------------------------------
{
"query" : {
"match" : { "business_type" : "shop" }
},
"aggs" : {
"viewport" : {
"geo_bounds" : {
"field" : "location", <1>
"wrap_longitude" : true <2>
}
}
}
}
--------------------------------------------------
<1> The `geo_bounds` aggregation specifies the field to use to obtain the bounds
<2> `wrap_longitude` is an optional parameter which specifies whether the bounding box should be allowed to overlap the international date line. The default value is `true`
The above aggregation demonstrates how one would compute the bounding box of the location field for all documents with a business type of shop
The response for the above aggregation:
[source,js]
--------------------------------------------------
{
...
"aggregations": {
"viewport": {
"bounds": {
"top_left": {
"lat": 80.45,
"lon": -160.22
},
"bottom_right": {
"lat": 40.65,
"lon": 42.57
}
}
}
}
}
--------------------------------------------------
``` |
2145e4ef-7406-4166-99ab-72fe815d7fe9 | {
"language": "AsciiDoc"
} | ```asciidoc
[[search-aggregations-metrics-geobounds-aggregation]]
=== Geo Bounds Aggregation
A metric aggregation that computes the bounding box containing all geo_point values for a field.
.Experimental!
[IMPORTANT]
=====
This feature is marked as experimental, and may be subject to change in the
future. If you use this feature, please let us know your experience with it!
=====
Example:
[source,js]
--------------------------------------------------
{
"query" : {
"match" : { "business_type" : "shop" }
},
"aggs" : {
"viewport" : {
"geo_bounds" : {
"field" : "location" <1>
"wrap_longitude" : "true" <2>
}
}
}
}
--------------------------------------------------
<1> The `geo_bounds` aggregation specifies the field to use to obtain the bounds
<2> `wrap_longitude` is an optional parameter which specifies whether the bounding box should be allowed to overlap the international date line. The default value is `true`
The above aggregation demonstrates how one would compute the bounding box of the location field for all documents with a business type of shop
The response for the above aggregation:
[source,js]
--------------------------------------------------
{
...
"aggregations": {
"viewport": {
"bounds": {
"top_left": {
"lat": 80.45,
"lon": -160.22
},
"bottom_right": {
"lat": 40.65,
"lon": 42.57
}
}
}
}
}
--------------------------------------------------
```
Fix missing comma and boolean true | ```asciidoc
[[search-aggregations-metrics-geobounds-aggregation]]
=== Geo Bounds Aggregation
A metric aggregation that computes the bounding box containing all geo_point values for a field.
.Experimental!
[IMPORTANT]
=====
This feature is marked as experimental, and may be subject to change in the
future. If you use this feature, please let us know your experience with it!
=====
Example:
[source,js]
--------------------------------------------------
{
"query" : {
"match" : { "business_type" : "shop" }
},
"aggs" : {
"viewport" : {
"geo_bounds" : {
"field" : "location", <1>
"wrap_longitude" : true <2>
}
}
}
}
--------------------------------------------------
<1> The `geo_bounds` aggregation specifies the field to use to obtain the bounds
<2> `wrap_longitude` is an optional parameter which specifies whether the bounding box should be allowed to overlap the international date line. The default value is `true`
The above aggregation demonstrates how one would compute the bounding box of the location field for all documents with a business type of shop
The response for the above aggregation:
[source,js]
--------------------------------------------------
{
...
"aggregations": {
"viewport": {
"bounds": {
"top_left": {
"lat": 80.45,
"lon": -160.22
},
"bottom_right": {
"lat": 40.65,
"lon": 42.57
}
}
}
}
}
--------------------------------------------------
``` |
cf3fab3b-3c94-41f9-96e3-143916447e64 | {
"language": "AsciiDoc"
} | ```asciidoc
:libVersion: 0.1.7
# ADAL
image:https://api.bintray.com/packages/jmspt/maven/adal/images/download.svg[Build Status,link=https://bintray.com/jmspt/maven/adal/_latestVersion]
Android Development Accelaration Library
Add the dependency in the form:
[source, groovy, subs='attributes']
dependencies {
/* Include all modules */
compile 'com.massivedisaster.adal:adal:{libVersion}'
/* Specific modules*/
compile 'com.massivedisaster.adal:adal-accounts:{libVersion}'
compile 'com.massivedisaster.adal:adal-adapters:{libVersion}'
compile 'com.massivedisaster.adal:adal-analytics:{libVersion}'
compile 'com.massivedisaster.adal:adal-bus:{libVersion}'
compile 'com.massivedisaster.adal:adal-fragments:{libVersion}'
compile 'com.massivedisaster.adal:adal-managers:{libVersion}'
compile 'com.massivedisaster.adal:adal-network:{libVersion}'
compile 'com.massivedisaster.adal:adal-utils:{libVersion}'
compile 'com.massivedisaster.adal:adal-location:{libVersion}'
}
```
Add readme reference to license. | ```asciidoc
:libVersion: 0.1.7
# ADAL
image:https://api.bintray.com/packages/jmspt/maven/adal/images/download.svg[Build Status,link=https://bintray.com/jmspt/maven/adal/_latestVersion]
Android Development Accelaration Library
Add the dependency in the form:
[source, groovy, subs='attributes']
dependencies {
/* Include all modules */
compile 'com.massivedisaster.adal:adal:{libVersion}'
/* Specific modules*/
compile 'com.massivedisaster.adal:adal-accounts:{libVersion}'
compile 'com.massivedisaster.adal:adal-adapters:{libVersion}'
compile 'com.massivedisaster.adal:adal-analytics:{libVersion}'
compile 'com.massivedisaster.adal:adal-bus:{libVersion}'
compile 'com.massivedisaster.adal:adal-fragments:{libVersion}'
compile 'com.massivedisaster.adal:adal-managers:{libVersion}'
compile 'com.massivedisaster.adal:adal-network:{libVersion}'
compile 'com.massivedisaster.adal:adal-utils:{libVersion}'
compile 'com.massivedisaster.adal:adal-location:{libVersion}'
}
### License
[GNU LESSER GENERAL PUBLIC LICENSE](LICENSE.md)
``` |
5bbddd7d-34ad-407e-b718-a4f83f6f79c6 | {
"language": "AsciiDoc"
} | ```asciidoc
= clojuTRE
clojuTRE
2017-09-02
:jbake-type: event
:jbake-edition: 2017
:jbake-link: http://clojutre.org/2017/
:jbake-location: Tampere, Finland
:jbake-start: 2017-09-92
:jbake-end: 2017-09-02
clojuTRE is a free Clojure conference organized by http://www.metosin.fi/[Metosin]. The event has single track, late start, short talks (20 minutes and 5 minutes Q&A) and a funky after party for networking, discussions and draft beer. We welcome both newbies and seasoned Clojurists.
```
Fix type on Clojutre start date | ```asciidoc
= clojuTRE
clojuTRE
2017-09-02
:jbake-type: event
:jbake-edition: 2017
:jbake-link: http://clojutre.org/2017/
:jbake-location: Tampere, Finland
:jbake-start: 2017-09-02
:jbake-end: 2017-09-02
clojuTRE is a Clojure conference organized by http://www.metosin.fi/[Metosin]. The event has single track, late start, short talks (20 minutes and 5 minutes Q&A) and a funky after party for networking, discussions and draft beer. We welcome both newbies and seasoned Clojurists.
``` |
f9871d74-6019-4339-9240-533639eb6202 | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" AutoEventWireup="false" EnableViewState="false" Inherits="R7.Epsilon.AdminPageInfo" %>
<%@ Import Namespace="DotNetNuke.Security" %>
<% if (PortalSecurity.IsInRole ("Administrators")) { %>
<div class="skin-admin-page-info alert alert-warning">
<a class="skin-page-permalink" href="<%= PagePermalink %>" title="<%: Localizer.GetString ("PagePermalink.Tooltip") %>"><%= Localizer.GetString ("PagePermalink.Text") %></a>
</div>
<% } %>```
Make admin page info panel dismissible | ```asp
<%@ Control Language="C#" AutoEventWireup="false" EnableViewState="false" Inherits="R7.Epsilon.AdminPageInfo" %>
<%@ Import Namespace="DotNetNuke.Security" %>
<% if (PortalSecurity.IsInRole ("Administrators")) { %>
<div class="skin-admin-page-info alert alert-info alert-dismissible">
<button type="button" class="close" data-dismiss="alert"><span>×</span></button>
<a class="skin-page-permalink" href="<%= PagePermalink %>" title="<%: Localizer.GetString ("PagePermalink.Tooltip") %>"><%= Localizer.GetString ("PagePermalink.Text") %></a>
</div>
<% } %>``` |
3f89ac62-a763-4e57-b77a-5d5759e005da | {
"language": "ASP"
} | ```asp
<%@ Application Inherits="DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication" Language="C#" %>
<%@ Import Namespace="DotNetNuke.Entities.Portals" %>
<%@ Import Namespace="DotNetNuke.Entities.Users" %>
<%@ Import Namespace="R7.Epsilon.Components" %>
<script runat="server">
public override string GetVaryByCustomString (HttpContext context, string arg)
{
var result = string.Empty;
foreach (var part in arg.Split (';'))
{
if (part == "PortalId") {
result += "portalid=" + PortalSettings.Current.PortalId;
}
else if (part == "UserRoles") {
if (Request.IsAuthenticated) {
var user = UserController.GetCurrentUserInfo ();
if (user != null)
result += "userroles=" + Utils.FormatList (",", (Array)user.Roles);
}
}
else {
result += base.GetVaryByCustomString (context, arg);
}
}
return result;
}
</script>```
Use UserController.Instance, rename formal parameter | ```asp
<%@ Application Inherits="DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication" Language="C#" %>
<%@ Import Namespace="DotNetNuke.Entities.Portals" %>
<%@ Import Namespace="DotNetNuke.Entities.Users" %>
<%@ Import Namespace="R7.Epsilon.Components" %>
<script runat="server">
public override string GetVaryByCustomString (HttpContext context, string custom)
{
var result = string.Empty;
foreach (var part in custom.Split (';'))
{
if (part == "PortalId") {
result += "portalid=" + PortalSettings.Current.PortalId;
}
else if (part == "UserRoles") {
if (Request.IsAuthenticated) {
var user = UserController.Instance.GetCurrentUserInfo ();
if (user != null) {
result += "userroles=" + Utils.FormatList (",", (Array) user.Roles);
}
}
}
else {
result += base.GetVaryByCustomString (context, custom);
}
}
return result;
}
</script>``` |
ea797680-cef0-4de1-bd90-8dfd87161e95 | {
"language": "ASP"
} | ```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Refresh" content="60" />
<title>TeamTracker</title>
<link rel="icon" href="team.png">
</head>
<body>
<b>Support Team Availability Matrix</b>
<form id="Body" runat="server">
<asp:table id="StatusTable" runat="server" CellPadding="5" />
</form>
v1.0
</body>
</html>
```
Add logo option, header font type, size, color | ```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Refresh" content="60" />
<title>TeamTracker</title>
<link rel="icon" href="team.png">
</head>
<body>
<img src="Logo.png" style="width:24px;height:24px;">
<font face="Arial" size="5" color="black">
<b>Support Team Availability Matrix</b>
</font>
<form id="Body" runat="server">
<asp:table id="StatusTable" runat="server" CellPadding="5" />
</form>
v1.0
</body>
</html>
``` |
aa2b4622-2537-47bd-ae59-5d26ec48f94f | {
"language": "ASP"
} | ```asp
<%@ Page Language="c#" CodeBehind="editLanguage.aspx.cs" AutoEventWireup="True" MasterPageFile="../masterpages/umbracoPage.Master"
Inherits="umbraco.settings.editLanguage" %>
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<asp:Content ContentPlaceHolderID="body" runat="server">
<cc1:UmbracoPanel ID="Panel1" runat="server" Width="608px" Height="336px" hasMenu="true"
Style="text-align: center">
<cc1:Pane ID="Pane7" runat="server">
<cc1:PropertyPanel runat="server" ID="pp_language">
<asp:DropDownList ID="Cultures" runat="server">
</asp:DropDownList>
</cc1:PropertyPanel>
</cc1:Pane>
</cc1:UmbracoPanel>
<script type="text/javascript">
jQuery(document).ready(function () {
UmbClientMgr.appActions().bindSaveShortCut();
});
</script>
</asp:Content>
```
Fix for U4-4026 Inline styling affect header text | ```asp
<%@ Page Language="c#" CodeBehind="editLanguage.aspx.cs" AutoEventWireup="True" MasterPageFile="../masterpages/umbracoPage.Master"
Inherits="umbraco.settings.editLanguage" %>
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<asp:Content ContentPlaceHolderID="body" runat="server">
<cc1:UmbracoPanel ID="Panel1" runat="server" Width="608px" Height="336px" hasMenu="true">
<cc1:Pane ID="Pane7" runat="server">
<cc1:PropertyPanel runat="server" ID="pp_language">
<asp:DropDownList ID="Cultures" runat="server">
</asp:DropDownList>
</cc1:PropertyPanel>
</cc1:Pane>
</cc1:UmbracoPanel>
<script type="text/javascript">
jQuery(document).ready(function () {
UmbClientMgr.appActions().bindSaveShortCut();
});
</script>
</asp:Content>
``` |
398ca357-6c5c-46c1-8b55-f2aa9142fee3 | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IQueryable<CRP.Core.Domain.Item>>" %>
<%@ Import Namespace="CRP.Core.Resources"%>
<%@ Import Namespace="CRP.Controllers"%>
<table class="itembrowsetable">
<thead>
</thead>
<tbody>
<% // for loop to go through all the items passed
foreach(var item in Model) { %>
<tr>
<td>
<a href='<%= Url.Action("Details", "Item", new {id = item.Id}) %>'>
<h1><%= Html.Encode(item.Name) %></h1>
<img src='<%= Url.Action("GetImage", "Item", new {id = item.Id}) %>' />
<h3>Last day to register online: <%= Html.Encode(item.Expiration.HasValue ? item.Expiration.Value.ToString("D") : string.Empty) %></h3>
<% Html.RenderPartial(StaticValues.Partial_TagView, item.Tags); %>
<p>
<%= Html.Encode(item.Summary) %>
<%--<%= item.Description.Length > 1000 ? Html.HtmlEncode(item.Description.Substring(0, 1000)) : Html.HtmlEncode(item.Description) %>--%>
</p>
</a>
</td>
</tr>
<% } %>
</tbody>
</table>```
Change the paragraph tag to an anchor tag linked to the item. Also added specific blue text "Click here to register." | ```asp
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IQueryable<CRP.Core.Domain.Item>>" %>
<%@ Import Namespace="CRP.Core.Resources"%>
<%@ Import Namespace="CRP.Controllers"%>
<table class="itembrowsetable">
<thead>
</thead>
<tbody>
<% // for loop to go through all the items passed
foreach(var item in Model) { %>
<tr>
<td>
<a href='<%= Url.Action("Details", "Item", new {id = item.Id}) %>'>
<h1><%= Html.Encode(item.Name) %></h1>
<img src='<%= Url.Action("GetImage", "Item", new {id = item.Id}) %>' />
<h3>Last day to register online: <%= Html.Encode(item.Expiration.HasValue ? item.Expiration.Value.ToString("D") : string.Empty) %></h3>
<% Html.RenderPartial(StaticValues.Partial_TagView, item.Tags); %>
<a href='<%= Url.Action("Details", "Item", new {id = item.Id}) %>'>
<%= Html.Encode(item.Summary) %>
<%--<%= item.Description.Length > 1000 ? Html.HtmlEncode(item.Description.Substring(0, 1000)) : Html.HtmlEncode(item.Description) %>--%>
</a>
<%Item item1 = item;%><%= Html.ActionLink<ItemController>(a => a.Details(item1.Id), "Click here to register.", new{style="color: rgb(0, 0, 255)"}) %>
</a>
</td>
</tr>
<% } %>
</tbody>
</table>``` |
4cd58a1b-ed60-4894-a45f-f07443c5ed32 | {
"language": "ASP"
} | ```asp
<div class="container">
<div class="row">
<div id="ContentTopPane" runat="server" class="col" />
</div>
<div class="row">
<main id="ContentPane" runat="server" class="col-md-9 col-sm-7 skin-autoexpand-pane" />
<aside id="AsidePane" runat="server" class="col-md-3 col-sm-5" containertype="G" containername="R7.Epsilon" containersrc="Default_H3.ascx" />
</div>
<div class="row">
<div id="ContentBottomPane" runat="server" class="col" />
</div>
</div>
```
Make aside panes wider GH-79 | ```asp
<div class="container">
<div class="row">
<div id="ContentTopPane" runat="server" class="col" />
</div>
<div class="row">
<main id="ContentPane" runat="server" class="col-md-8 col-sm-7 skin-autoexpand-pane" />
<aside id="AsidePane" runat="server" class="col-md-4 col-sm-5" containertype="G" containername="R7.Epsilon" containersrc="Default_H3.ascx" />
</div>
<div class="row">
<div id="ContentBottomPane" runat="server" class="col" />
</div>
</div>
``` |
9e0fc1c5-3171-4741-ac98-65a9d3c3cfc4 | {
"language": "ASP"
} | ```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Form</title>
<link rel="icon" href="favicon.ico"/>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
<asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" />
<br />
<input id="Submit1" type="submit" value="Submit" /><hr />
</div>
<div>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<br />
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</div>
<img alt="" src="" style="height: 250px" /><input id="Text1" type="text" /></form>
<p>
</p>
<p>
</p>
<div>
</div>
</body>
</html>
```
Revert "Added a very special div" | ```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Form</title>
<link rel="icon" href="favicon.ico"/>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
<asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" />
<br />
<input id="Submit1" type="submit" value="Submit" /><hr />
</div>
<div>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<br />
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</div>
<img alt="" src="" style="height: 250px" /><input id="Text1" type="text" /></form>
<p>
</p>
<p>
</p>
</body>
</html>
``` |
39087920-be87-4788-a319-b466df906f81 | {
"language": "ASP"
} | ```asp
<div>
<ui-select ng-model="ctrl.documentLibrary.selected" theme="bootstrap">
<ui-select-match placeholder="Select or search for a document library...">
<div ng-if="$select.selected">
<img ng-src="{{ctrl.siteUrl + $select.selected.ImageUrl}}" style="vertical-align: baseline"/>
<span style="padding-left: 5px;">{{$select.selected.Title}} <small>({{$select.selected.RootFolder.ServerRelativeUrl}})</small></span>
</div>
</ui-select-match>
<ui-select-choices repeat="item in ctrl.documentLibraries | filter: $select.search">
<div>
<img ng-src="{{ctrl.siteUrl + item.ImageUrl}}"/>
<span style="padding-left: 5px;">{{item.Title | highlight: $select.search}} <small>({{item.RootFolder.ServerRelativeUrl}})</small></span>
</div>
<small>
<span data-ng-if="item.Description" ng-bind="item.Description"></span>
<span data-ng-if="!item.Description"><i>No Description</i></span>
</small>
</ui-select-choices>
</ui-select>
</div>```
Document Library Picker - Fix Search Highlighting | ```asp
<div>
<ui-select ng-model="ctrl.documentLibrary.selected" theme="bootstrap">
<ui-select-match placeholder="Select or search for a document library...">
<div ng-if="$select.selected">
<img ng-src="{{ctrl.siteUrl + $select.selected.ImageUrl}}" style="vertical-align: baseline"/>
<span style="padding-left: 5px;">{{$select.selected.Title}} <small>({{$select.selected.RootFolder.ServerRelativeUrl}})</small></span>
</div>
</ui-select-match>
<ui-select-choices repeat="item in ctrl.documentLibraries | filter: $select.search">
<div>
<img ng-src="{{ctrl.siteUrl + item.ImageUrl}}"/>
<span style="padding-left: 5px;" ng-bind-html="item.Title | highlight: $select.search"></span> <small>({{item.RootFolder.ServerRelativeUrl}})</small>
</div>
<small>
<span data-ng-if="item.Description" ng-bind="item.Description"></span>
<span data-ng-if="!item.Description"><i>No Description</i></span>
</small>
</ui-select-choices>
</ui-select>
</div>``` |
5db00523-b818-401c-ab95-07904a594d8a | {
"language": "ASP"
} | ```asp
<% Response.Redirect("https://raw.githubusercontent.com/cake-build/example/master/tools/packages.config") %>```
Adjust so packages.config points to resources repo | ```asp
<% Response.Redirect("https://raw.githubusercontent.com/cake-build/resources/master/packages.config") %>``` |
07e12459-8ca0-42c5-a16d-6032017e65e6 | {
"language": "ASP"
} | ```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Settings.aspx.cs" Inherits="Settings" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Settings</title>
</head>
<body>
<a href="Default.aspx">Back</a>
<form id="SettingsForm" runat="server">
<div>
<asp:SqlDataSource
ID="dataSource"
Runat="server"
SelectCommand="SELECT * FROM Setting"
UpdateCommand="UPDATE Setting SET [key]=@key, value=@value WHERE id=@id"
DataSourceMode="DataSet">
</asp:SqlDataSource>
<asp:GridView
ID="settingsView"
Runat="server"
DataSourceID="dataSource"
AutoGenerateColumns="false"
DataKeyNames="id"
ShowHeader="true"
ShowFooter="false">
<AlternatingRowStyle BackColor="LightBlue" />
<Columns>
<asp:CommandField
ShowEditButton="true"
ShowDeleteButton="false" />
<asp:BoundField
HeaderText="Key"
ReadOnly="true"
DataField="key" />
<asp:BoundField
HeaderText="Value"
ReadOnly="false"
DataField="value" />
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
```
Fix for setting value update after key was made read-only. | ```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Settings.aspx.cs" Inherits="Settings" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Settings</title>
</head>
<body>
<a href="Default.aspx">Back</a>
<form id="SettingsForm" runat="server">
<div>
<asp:SqlDataSource
ID="dataSource"
Runat="server"
SelectCommand="SELECT * FROM Setting"
UpdateCommand="UPDATE Setting SET value=@value WHERE id=@id"
DataSourceMode="DataSet">
</asp:SqlDataSource>
<asp:GridView
ID="settingsView"
Runat="server"
DataSourceID="dataSource"
AutoGenerateColumns="false"
DataKeyNames="id"
ShowHeader="true"
ShowFooter="false">
<AlternatingRowStyle BackColor="LightBlue" />
<Columns>
<asp:CommandField
ShowEditButton="true"
ShowDeleteButton="false" />
<asp:BoundField
HeaderText="Key"
ReadOnly="true"
DataField="key" />
<asp:BoundField
HeaderText="Value"
ReadOnly="false"
DataField="value" />
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
``` |
2ee839cd-c0d8-4b5f-be1a-83d69f965e72 | {
"language": "ASP"
} | ```asp
<div class="container">
<div class="row">
<div id="ContentPane" runat="server" class="col-12" />
</div>
</div>
```
Use MAIN tag for content pane | ```asp
<div class="container">
<div class="row">
<main id="ContentPane" runat="server" class="col-12" />
</div>
</div>
``` |
c5558204-737e-4777-b15a-ae86c36389b2 | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewAgent.ascx.cs" Inherits="R7.News.Agent.ViewAgent" %>
<%@ Import Namespace="System.Web" %>
<asp:ListView id="listAgent" DataKeyNames="EntryId" runat="server" OnItemDataBound="listAgent_ItemDataBound">
<LayoutTemplate>
<div runat="server">
<div runat="server" id="itemPlaceholder"></div>
</div>
</LayoutTemplate>
<ItemTemplate>
<div>
<asp:HyperLink id="linkEdit" runat="server">
<asp:Image id="imageEdit" runat="server" IconKey="Edit" resourcekey="Edit" />
</asp:HyperLink>
EntryId: <%# Eval ("EntryId") %><br />
Title: <%# Eval ("Title") %><br />
CreatedOnDate: <%# Eval ("ContentItem.CreatedOnDate") %><br />
LastModifiedOnDate: <%# Eval ("ContentItem.LastModifiedOnDate") %><br />
CreatedByUserID: <%# Eval ("ContentItem.CreatedByUserID") %><br />
LastModifiedByUserID: <%# Eval ("ContentItem.LastModifiedByUserID") %><br />
Description: <%# HttpUtility.HtmlDecode ((string) Eval ("Description")) %><br />
Visibility: <%# Eval ("Visibility") %>
</div>
</ItemTemplate>
<ItemSeparatorTemplate>
<hr />
</ItemSeparatorTemplate>
</asp:ListView>
```
Fix agent module shouldn't use news entry visibility | ```asp
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewAgent.ascx.cs" Inherits="R7.News.Agent.ViewAgent" %>
<%@ Import Namespace="System.Web" %>
<asp:ListView id="listAgent" DataKeyNames="EntryId" runat="server" OnItemDataBound="listAgent_ItemDataBound">
<LayoutTemplate>
<div runat="server">
<div runat="server" id="itemPlaceholder"></div>
</div>
</LayoutTemplate>
<ItemTemplate>
<div>
<asp:HyperLink id="linkEdit" runat="server">
<asp:Image id="imageEdit" runat="server" IconKey="Edit" resourcekey="Edit" />
</asp:HyperLink>
EntryId: <%# Eval ("EntryId") %><br />
Title: <%# Eval ("Title") %><br />
CreatedOnDate: <%# Eval ("ContentItem.CreatedOnDate") %><br />
LastModifiedOnDate: <%# Eval ("ContentItem.LastModifiedOnDate") %><br />
CreatedByUserID: <%# Eval ("ContentItem.CreatedByUserID") %><br />
LastModifiedByUserID: <%# Eval ("ContentItem.LastModifiedByUserID") %><br />
Description: <%# HttpUtility.HtmlDecode ((string) Eval ("Description")) %><br />
</div>
</ItemTemplate>
<ItemSeparatorTemplate>
<hr />
</ItemSeparatorTemplate>
</asp:ListView>
``` |
6d6aa2fc-bb5e-4914-8f0e-e8dd212d5525 | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<LogOnViewModel>" %>
<%@ Import Namespace="Orchard.Users.ViewModels"%>
<h1 class="page-title"><%=Html.TitleForPage(Model.Title)%></h1>
<p><%=_Encoded("Please enter your username and password.")%> <%= Html.ActionLink("Register", "Register")%><%=_Encoded(" if you don't have an account.")%></p>
<%= Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%>
<%
using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { %>
<fieldset class="login-form">
<legend><%=_Encoded("Account Information")%></legend>
<div class="group">
<label for="username"><%=_Encoded("Username:")%></label>
<%= Html.TextBox("userNameOfEmail", "", new { autofocus = "autofocus" })%>
<%= Html.ValidationMessage("userNameOrEmail")%>
</div>
<div class="group">
<label for="password"><%=_Encoded("Password:")%></label>
<%= Html.Password("password")%>
<%= Html.ValidationMessage("password")%>
</div>
<div class="group">
<%= Html.CheckBox("rememberMe")%><label class="forcheckbox" for="rememberMe"><%=_Encoded("Remember me?")%></label>
</div>
<input type="submit" value="<%=_Encoded("Log On") %>" />
</fieldset><%
} %>```
Fix typo from previous merge | ```asp
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<LogOnViewModel>" %>
<%@ Import Namespace="Orchard.Users.ViewModels"%>
<h1 class="page-title"><%=Html.TitleForPage(Model.Title)%></h1>
<p><%=_Encoded("Please enter your username and password.")%> <%= Html.ActionLink("Register", "Register")%><%=_Encoded(" if you don't have an account.")%></p>
<%= Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())%>
<%
using (Html.BeginFormAntiForgeryPost(Url.Action("LogOn", new {ReturnUrl = Request.QueryString["ReturnUrl"]}))) { %>
<fieldset class="login-form">
<legend><%=_Encoded("Account Information")%></legend>
<div class="group">
<label for="username"><%=_Encoded("Username:")%></label>
<%= Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })%>
<%= Html.ValidationMessage("userNameOrEmail")%>
</div>
<div class="group">
<label for="password"><%=_Encoded("Password:")%></label>
<%= Html.Password("password")%>
<%= Html.ValidationMessage("password")%>
</div>
<div class="group">
<%= Html.CheckBox("rememberMe")%><label class="forcheckbox" for="rememberMe"><%=_Encoded("Remember me?")%></label>
</div>
<input type="submit" value="<%=_Encoded("Log On") %>" />
</fieldset><%
} %>``` |
bfd00a15-ba32-499a-b26b-a9754922e479 | {
"language": "ASP"
} | ```asp
<div class="container">
<div class="row">
<div id="BottomPane1" runat="server" class="col-md-6" />
<div id="BottomPane2" runat="server" class="col-md-6" />
<div id="BottomPane3" runat="server" class="col-md-6" />
<div id="BottomPane4" runat="server" class="col-md-6" />
<div id="BottomPane5" runat="server" class="col-md-6" />
<div id="BottomPane6" runat="server" class="col-md-6" />
<div id="BottomPane7" runat="server" class="col-md-6" />
<div id="BottomPane8" runat="server" class="col-md-6" />
<div id="BottomPane9" runat="server" class="col-md-6" />
<div id="BottomPane10" runat="server" class="col-md-6" />
<div id="BottomPane11" runat="server" class="col-md-6" />
<div id="BottomPane12" runat="server" class="col-md-6" />
</div>
</div>
```
Fix BottomPane is missing in 2cols layout | ```asp
<div class="container">
<div class="row">
<div id="BottomPane1" runat="server" class="col-md-6" />
<div id="BottomPane2" runat="server" class="col-md-6" />
<div id="BottomPane3" runat="server" class="col-md-6" />
<div id="BottomPane4" runat="server" class="col-md-6" />
<div id="BottomPane5" runat="server" class="col-md-6" />
<div id="BottomPane6" runat="server" class="col-md-6" />
<div id="BottomPane7" runat="server" class="col-md-6" />
<div id="BottomPane8" runat="server" class="col-md-6" />
<div id="BottomPane9" runat="server" class="col-md-6" />
<div id="BottomPane10" runat="server" class="col-md-6" />
<div id="BottomPane11" runat="server" class="col-md-6" />
<div id="BottomPane12" runat="server" class="col-md-6" />
</div>
<div class="row">
<div id="BottomPane" runat="server" class="col" />
</div>
</div>
``` |
88670fd7-0051-4e16-a58a-ae223e885a54 | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Core.Localization.ViewModels.ContentLocalizationsViewModel>" %>
<%
Html.RegisterStyle("base.css"); %>
<div class="content-localization"><%
if (Model.Localizations.Count() > 0) { %>
<%--//todo: need this info in the view model--%>
<div class="content-localizations"><%:Html.UnorderedList(Model.Localizations, (c, i) => Html.ItemDisplayLink(c.Culture.Culture, c), "localizations") %></div><%
} %>
<div class="add-localization"><%:Html.ActionLink(T("+ New translation").Text, "translate", "admin", new { area = "Localization", id = Model.MasterId }, null)%></div>
</div>```
Remove "+New Translation" link on the front-end (keep in "Manage Content" though). | ```asp
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Core.Localization.ViewModels.ContentLocalizationsViewModel>" %>
``` |
962f740f-c2e9-4855-ae6b-ee7ae45e4f93 | {
"language": "ASP"
} | ```asp
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html>
```
Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated) | ```asp
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( YafContext.Current.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html>
``` |
1cc281fc-dfda-4aa8-ad3a-6423fd46872b | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="TermLinks.ascx.cs" Inherits="R7.News.Controls.TermLinks" %>
<asp:ListView id="listTermLinks" runat="server" DataKeyNames="TermId">
<LayoutTemplate>
<ul runat="server">
<li runat="server" id="itemPlaceholder"></li>
</ul>
</LayoutTemplate>
<ItemTemplate>
<a href="<%# Eval ("Url") %>"><%# Eval ("Name") %></a>
</ItemTemplate>
</asp:ListView>```
Add missing li to term list, adjust visual style | ```asp
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="TermLinks.ascx.cs" Inherits="R7.News.Controls.TermLinks" %>
<asp:ListView id="listTermLinks" runat="server" DataKeyNames="TermId">
<LayoutTemplate>
<ul runat="server" class="list-inline small" style="margin-left:inherit">
<li runat="server" id="itemPlaceholder"></li>
</ul>
</LayoutTemplate>
<ItemTemplate>
<li style="padding-left:inherit"><a href="<%# Eval ("Url") %>"><%# Eval ("Name") %></a></li>
</ItemTemplate>
</asp:ListView>``` |
31313509-d448-4fda-8294-799598d60aaa | {
"language": "ASP"
} | ```asp
<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>The website is restarting</title>
<META HTTP-EQUIV=REFRESH CONTENT="10; URL=<%=Request["url"] %>">
</head>
<body>
<h1>The website is restarting</h1>
<p>Please wait for 10s while we prepare to serve the page you have requested...</p>
<p style="border-top: 1px solid #ccc; padding-top: 10px;">
<small>You can modify the design of this page by editing /config/splashes/booting.aspx</small>
</p>
</body>
</html>
```
Update to U4-1485 for 4.11.4 | ```asp
<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %>
<%
// NH: Adds this inline check to avoid a simple codebehind file in the legacy project!
if (!umbraco.cms.helpers.url.ValidateProxyUrl(Request["url"], Request.Url.AbsoluteUri))
{
throw new ArgumentException("Can't redirect to the requested url - it's not local or an approved proxy url", "url");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The website is restarting</title>
<meta http-equiv="REFRESH" content="10; URL=<%=Request["url"] %>">
</head>
<body>
<h1>The website is restarting</h1>
<p>Please wait for 10s while we prepare to serve the page you have requested...</p>
<p style="border-top: 1px solid #ccc; padding-top: 10px;">
<small>You can modify the design of this page by editing /config/splashes/booting.aspx</small>
</p>
</body>
</html>
``` |
69a6314b-38f9-4901-a614-677bf264d2bb | {
"language": "ASP"
} | ```asp
```
Test MapPath on relative paths | ```asp
<%@ PAGE LANGUAGE = C# %>
<%--
-- Test calling map path on a relative path. This should print
-- the full path of map-path.aspx
--%>
<html>
<script runat=server>
void Page_Load()
{
Response.Write (Server.MapPath ("map-path.aspx"));
}
</script>
<body>
</body>
</html>
``` |
fbc2f4f0-069a-49b8-b6de-2ca9f11f25f4 | {
"language": "ASP"
} | ```asp
<%@ Page Language="c#" CodeFile="error.aspx.cs" AutoEventWireup="True" Inherits="YAF.error" %>
<html>
<head>
<title>Forum Error</title>
<link type="text/css" rel="stylesheet" href="resources/forum.css" />
<link type="text/css" rel="stylesheet" href="themes/yafpro/theme.css" />
</head>
<body>
<br />
<table class="content" width="100%" cellspacing="1" cellpadding="0">
<tr>
<td class="header1">
Forum Error</td>
</tr>
<tr>
<td class="post" align="center" style="font-size:9pt;color:#990000;">
<br />
<asp:Label ID="ErrorMsg" Enabled="true" runat="server" />
<br /><br />
</td>
</tr>
<tr>
<td class="footer1" align="center">
<a href="Default.aspx">Try Again</a>
</td>
</tr>
</table>
<br /><br />
</body>
</html>```
Fix for lack of formatting. | ```asp
<%@ Page Language="c#" CodeFile="error.aspx.cs" AutoEventWireup="True" Inherits="YAF.error" %>
<html>
<head>
<title>Forum Error</title>
<link type="text/css" rel="stylesheet" href="resources/forum.css" />
<link type="text/css" rel="stylesheet" href="themes/yafpro/theme.css" />
</head>
<body>
<div class="yafnet">
<table class="content" width="100%" cellspacing="1" cellpadding="0">
<tr>
<td class="header1">
Forum Error</td>
</tr>
<tr>
<td class="post" align="center" style="font-size:9pt;color:#990000;">
<br />
<asp:Label ID="ErrorMsg" Enabled="true" runat="server" />
<br /><br />
</td>
</tr>
<tr>
<td class="footer1" align="center">
<a href="Default.aspx">Try Again</a>
</td>
</tr>
</table>
</div>
</body>
</html>``` |
6aec5378-ea6a-4d1d-ab7d-ebde25c1cfe1 | {
"language": "ASP"
} | ```asp
```
Add test page for the CompareValidator control. | ```asp
<%@ Page Language="C#" %>
<html>
<script runat="server">
void Check_Click(Object src, EventArgs E) {
message.Text = "Entered data is " + (Page.IsValid ? "valid." : "invalid!");
}
</script>
<head>
<title>CompareValidator</title>
</head>
<body>
<form runat="server">
<asp:Label text="Enter twice the same string:" runat="server"/><br>
<asp:TextBox id="Text1" runat="server" /> ==
<asp:TextBox id="Text2" runat="server" />
<asp:CompareValidator runat="server"
EnableClientScript="true"
ControlToValidate="Text1" ControlToCompare="Text2" Operation="Equal"
ErrorMessage="Strings do not match!"/><br />
<br />
<asp:Button text="Check" onclick="Check_Click" runat="server"/><br/ >
<br />
<asp:Label id="message" runat="server"/>
</form>
</body>
</html>
``` |
70e54dfe-52b5-4c9a-98c9-bc96e1b3d78a | {
"language": "ASP"
} | ```asp
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" CodeFile="ForumSubForumList.ascx.cs"
Inherits="YAF.Controls.ForumSubForumList" %>
<asp:Repeater ID="SubforumList" runat="server" OnItemCreated="SubforumList_ItemCreated">
<HeaderTemplate>
<div class="subForumList"><span class="subForumTitle"><YAF:LocalizedLabel ID="SubForums" LocalizedTag="SUBFORUMS" runat="server" />:</span>
</div>
</HeaderTemplate>
<ItemTemplate>
<YAF:ThemeImage ID="ThemeSubforumIcon" runat="server" /> <%# GetForumLink((System.Data.DataRow)Container.DataItem) %></ItemTemplate>
<SeparatorTemplate>, </SeparatorTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:Repeater>
```
Fix for rendering bug... Div was no longer containing the subForums messing up theming. | ```asp
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" CodeFile="ForumSubForumList.ascx.cs"
Inherits="YAF.Controls.ForumSubForumList" %>
<asp:Repeater ID="SubforumList" runat="server" OnItemCreated="SubforumList_ItemCreated">
<HeaderTemplate>
<div class="subForumList"><span class="subForumTitle"><YAF:LocalizedLabel ID="SubForums" LocalizedTag="SUBFORUMS" runat="server" />:</span>
</HeaderTemplate>
<ItemTemplate>
<YAF:ThemeImage ID="ThemeSubforumIcon" runat="server" /> <%# GetForumLink((System.Data.DataRow)Container.DataItem) %></ItemTemplate>
<SeparatorTemplate>, </SeparatorTemplate>
<FooterTemplate>
</div>
</FooterTemplate>
</asp:Repeater>
``` |
46c5abf8-47d4-4f22-9f78-bb19c047a96c | {
"language": "AspectJ"
} | ```aspectj
package tlc2.tool.distributed;
public aspect RMIMethodMonitorAspect {
// catch all method calls to RMI methods
pointcut callToRemoteMethod() :
execution(* tlc2.tool.distributed.InternRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))
|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..))
before(): (callToRemoteMethod()) {
RMIMethodMonitor.entering(thisJoinPoint);
}
}
```
Fix syntax error due to missing semicolon | ```aspectj
package tlc2.tool.distributed;
public aspect RMIMethodMonitorAspect {
// catch all method calls to RMI methods
pointcut callToRemoteMethod() :
execution(* tlc2.tool.distributed.InternRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))
|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..));
before(): (callToRemoteMethod()) {
RMIMethodMonitor.entering(thisJoinPoint);
}
}
``` |
51489ab2-67d7-4ea3-a8b2-aad880550552 | {
"language": "AspectJ"
} | ```aspectj
package scala.tools.eclipse.contribution.weaving.jdt.core;
import org.eclipse.jdt.internal.core.util.Util;
/**
* We override the behaviour of isValidCompilationUnitName() for .scala files.
* The standard implementation applies Java identifier rules on the prefix of
* the file name, so that, for example, "package.scala" would not be judged
* valid. See Issue #3266.
*/
@SuppressWarnings("restriction")
public aspect CompilationUnitNameAspect {
pointcut isValidCompilationUnitName(String name, String sourceLevel, String complianceLevel):
args(name, sourceLevel, complianceLevel) &&
execution(boolean Util.isValidCompilationUnitName(String, String, String));
boolean around(String name, String sourceLevel, String complianceLevel):
isValidCompilationUnitName(name, sourceLevel, complianceLevel) {
if (name != null && name.endsWith(".scala"))
return true;
else
return proceed(name, sourceLevel, complianceLevel);
}
}
```
Add a 2nd pointcut to handle files named "package.scala". | ```aspectj
package scala.tools.eclipse.contribution.weaving.jdt.core;
import org.eclipse.jdt.internal.core.util.Util;
import org.eclipse.jdt.core.JavaConventions;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jdt.internal.core.JavaModelStatus;
/**
* We override the behaviour of isValidCompilationUnitName() for .scala files.
* The standard implementation applies Java identifier rules on the prefix of
* the file name, so that, for example, "package.scala" would not be judged
* valid. See Issues #3266, #1000859.
*/
@SuppressWarnings("restriction")
public aspect CompilationUnitNameAspect {
private static boolean isScalaFileName(String name) {
return name != null && name.length() > 6 && name.endsWith(".scala");
}
pointcut isValidCompilationUnitName(String name, String sourceLevel, String complianceLevel):
args(name, sourceLevel, complianceLevel) &&
execution(boolean Util.isValidCompilationUnitName(String, String, String));
boolean around(String name, String sourceLevel, String complianceLevel):
isValidCompilationUnitName(name, sourceLevel, complianceLevel) {
if (isScalaFileName(name))
return true;
else
return proceed(name, sourceLevel, complianceLevel);
}
pointcut validateCompilationUnitName(String name, String sourceLevel, String complianceLevel):
args(name, sourceLevel, complianceLevel) &&
execution(IStatus JavaConventions.validateCompilationUnitName(String, String, String));
IStatus around(String name, String sourceLevel, String complianceLevel):
validateCompilationUnitName(name, sourceLevel, complianceLevel) {
if (isScalaFileName(name))
return JavaModelStatus.VERIFIED_OK;
else
return proceed(name, sourceLevel, complianceLevel);
}
}
``` |
16fb1503-4c5b-4757-92c2-c3521a49c360 | {
"language": "AspectJ"
} | ```aspectj
package tlc2.tool.distributed;
public aspect RMIMethodMonitorAspect {
// catch all method calls to RMI methods
pointcut callToRemoteMethod() :
execution(* tlc2.tool.distributed.InternRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))
|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..))
before(): (callToRemoteMethod()) {
RMIMethodMonitor.entering(thisJoinPoint);
}
}
```
Fix syntax error due to missing semicolon | ```aspectj
package tlc2.tool.distributed;
public aspect RMIMethodMonitorAspect {
// catch all method calls to RMI methods
pointcut callToRemoteMethod() :
execution(* tlc2.tool.distributed.InternRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))
|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..));
before(): (callToRemoteMethod()) {
RMIMethodMonitor.entering(thisJoinPoint);
}
}
``` |
fbc39c16-0053-4754-9b3b-2bc77df5c69e | {
"language": "AspectJ"
} | ```aspectj
package edu.brown.cs.systems.retro.aspects.cpu;
import edu.brown.cs.systems.baggage.Baggage;
import edu.brown.cs.systems.baggage.DetachedBaggage;
import edu.brown.cs.systems.retro.resources.CPUTracking;
import edu.brown.cs.systems.retro.resources.Execution;
import edu.brown.cs.systems.retro.throttling.ThrottlingPoint;
/** Intercepts X-Trace API calls in user code. Don't apply these pointcuts to the X-Trace library itself!
*
* @author jon */
public aspect XTraceAPICalls {
before(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) {
Execution.CPU.finished(thisJoinPointStaticPart);
}
after(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) || call(* Baggage.join(..)) {
Execution.CPU.starting(thisJoinPointStaticPart);
}
/** Whenever the XTraceContext is cleared, log an event to indicate the end of CPU processing bounds */
before(): call(* Baggage.stop(..)) || call(* Baggage.discard(..)) {
Execution.CPU.finished(thisJoinPointStaticPart);
}
before(): call(void ThrottlingPoint+.throttle()) {
CPUTracking.finishTracking(); // finish and log current cycles
}
after(): call(void ThrottlingPoint+.throttle()) {
CPUTracking.startTracking(); // start tracking cycles
}
}
```
Tweak X-Trace API call logging | ```aspectj
package edu.brown.cs.systems.retro.aspects.cpu;
import edu.brown.cs.systems.baggage.Baggage;
import edu.brown.cs.systems.baggage.DetachedBaggage;
import edu.brown.cs.systems.retro.resources.CPUTracking;
import edu.brown.cs.systems.retro.resources.Execution;
import edu.brown.cs.systems.retro.throttling.ThrottlingPoint;
/** Intercepts X-Trace API calls in user code. Don't apply these pointcuts to the X-Trace library itself!
*
* @author jon */
public aspect XTraceAPICalls {
before(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) {
Execution.CPU.finished(thisJoinPointStaticPart);
}
after(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) {
Execution.CPU.starting(thisJoinPointStaticPart);
}
/** Whenever the XTraceContext is cleared, log an event to indicate the end of CPU processing bounds */
before(): call(* Baggage.stop(..)) || call(* Baggage.discard(..)) {
Execution.CPU.finished(thisJoinPointStaticPart);
}
before(): call(void ThrottlingPoint+.throttle()) {
CPUTracking.finishTracking(); // finish and log current cycles
}
after(): call(void ThrottlingPoint+.throttle()) {
CPUTracking.startTracking(); // start tracking cycles
}
}
``` |
c4ea5deb-bb5d-4dcf-82d0-07004d10fbbc | {
"language": "AspectJ"
} | ```aspectj
import java.util.ArrayList;
import java.util.List;
import mirah.lang.ast.Node;
import mirah.lang.ast.NodeScanner;
import mirah.lang.ast.NodeImpl;
class ChildCollector extends NodeScanner {
private ArrayList<Node> children = new ArrayList<Node>();
@Override
public boolean enterDefault(Node node, Object arg) {
if (node == arg) {
return true;
} else {
children.add(node);
return false;
}
}
@Override
public Object enterNullChild(Object arg){
children.add(null);
return null;
}
public ArrayList<Node> children() {
return children;
}
}
aspect DubyBootsrap {
declare parents: Node extends duby.lang.compiler.Node;
public List<Node> NodeImpl.child_nodes() {
ChildCollector c = new ChildCollector();
c.scan(this, this);
return c.children();
}
}```
Add compilation instructions for mirah-parser_with_duby.jar | ```aspectj
import java.util.ArrayList;
import java.util.List;
import mirah.lang.ast.Node;
import mirah.lang.ast.NodeScanner;
import mirah.lang.ast.NodeImpl;
/* To compile the new AST with duby extensions:
* ajc -1.5 -inpath dist/mirah-parser.jar \
* -outjar dist/mirah-parser_with_duby.jar \
* -classpath ../mirah/javalib/mirah-bootstrap.jar:/Developer/aspectj1.6/lib/aspectjrt.jar \
* src/DubyBootstrap.aj
*/
class ChildCollector extends NodeScanner {
private ArrayList<Node> children = new ArrayList<Node>();
@Override
public boolean enterDefault(Node node, Object arg) {
if (node == arg) {
return true;
} else {
children.add(node);
return false;
}
}
@Override
public Object enterNullChild(Object arg){
children.add(null);
return null;
}
public ArrayList<Node> children() {
return children;
}
}
aspect DubyBootsrap {
declare parents: Node extends duby.lang.compiler.Node;
public List<Node> NodeImpl.child_nodes() {
ChildCollector c = new ChildCollector();
c.scan(this, this);
return c.children();
}
}``` |
a348362b-bc3b-4c09-9cd3-9aea1e55e623 | {
"language": "AspectJ"
} | ```aspectj
package tlc2.tool.distributed;
public aspect RMIMethodMonitorAspect {
// catch all method calls to RMI methods
pointcut callToRemoteMethod() :
execution(* tlc2.tool.distributed.InternRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))
|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..))
before(): (callToRemoteMethod()) {
RMIMethodMonitor.entering(thisJoinPoint);
}
}
```
Fix syntax error due to missing semicolon | ```aspectj
package tlc2.tool.distributed;
public aspect RMIMethodMonitorAspect {
// catch all method calls to RMI methods
pointcut callToRemoteMethod() :
execution(* tlc2.tool.distributed.InternRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))
|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))
|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..));
before(): (callToRemoteMethod()) {
RMIMethodMonitor.entering(thisJoinPoint);
}
}
``` |
a7f2b364-c6a5-4c0b-9e8b-b32e05d7ec6d | {
"language": "AspectJ"
} | ```aspectj
package org.lamport.tla.toolbox.test.threading;
import org.aspectj.lang.annotation.SuppressAjWarnings;
/**
* The purpose of this advice is to intercept method execution in the backend
* code - namely all code in the packages tlc2, tla2sany, tla2tex, pcal and util.
*
* It notifies the {@link MonitorAdaptor} about the method execution.
*/
public aspect MonitorAspect {
public MonitorAspect() {
MonitorAdaptor.setAspect(this);
}
// known places where backend call within UI thread are acceptable
pointcut inFilter() :
withincode(public boolean org.lamport.tla.toolbox.util.ResourceHelper.isValidSpecName(String));
// catch all method calls (static and object ones)
pointcut callToBackend() :
execution(* tlc2..*.*(..))
|| execution(* tla2sany..*.*(..))
|| execution(* tla2tex..*.*(..))
|| execution(* pcal..*.*(..))
|| execution(* util..*.*(..));
// capture calls to backend, but not within ourself or in filter
@SuppressAjWarnings
before(): (callToBackend()
&& !cflowbelow(callToBackend()) && !cflowbelow(inFilter())) {
MonitorAdaptor.enter(thisJoinPoint);
}
}
```
Remove annotation to remove java5 dependency | ```aspectj
package org.lamport.tla.toolbox.test.threading;
import org.aspectj.lang.annotation.SuppressAjWarnings;
/**
* The purpose of this advice is to intercept method execution in the backend
* code - namely all code in the packages tlc2, tla2sany, tla2tex, pcal and util.
*
* It notifies the {@link MonitorAdaptor} about the method execution.
*/
public aspect MonitorAspect {
public MonitorAspect() {
MonitorAdaptor.setAspect(this);
}
// known places where backend call within UI thread are acceptable
pointcut inFilter() :
withincode(public boolean org.lamport.tla.toolbox.util.ResourceHelper.isValidSpecName(String));
// catch all method calls (static and object ones)
pointcut callToBackend() :
execution(* tlc2..*.*(..))
|| execution(* tla2sany..*.*(..))
|| execution(* tla2tex..*.*(..))
|| execution(* pcal..*.*(..))
|| execution(* util..*.*(..));
// capture calls to backend, but not within ourself or in filter
before(): (callToBackend()
&& !cflowbelow(callToBackend()) && !cflowbelow(inFilter())) {
MonitorAdaptor.enter(thisJoinPoint);
}
}
``` |
57efe0e2-5989-4e68-bb4c-588f9baa63c4 | {
"language": "AspectJ"
} | ```aspectj
```
Add aspect to check environment variables for Baggage from main method | ```aspectj
package edu.brown.cs.systems.tracing.aspects;
import edu.brown.cs.systems.baggage.BaggageUtils;
/**
* Instruments all main methods
*/
public aspect TracingPlaneInit {
declare precedence: TracingPlaneInit, *;
before(): execution(public static void main(String[])) {
BaggageUtils.checkEnvironment(System.getenv());
}
}
``` |
96cc3d4e-b340-4cd7-b97b-8888a5a9173a | {
"language": "Assembly"
} | ```assembly
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; Module Name:
;
; FlushCacheLine.Asm
;
; Abstract:
;
; AsmFlushCacheLine function
;
; Notes:
;
;------------------------------------------------------------------------------
.code
;------------------------------------------------------------------------------
; VOID
; EFIAPI
; AsmFlushCacheLine (
; IN VOID *LinearAddress
; );
;------------------------------------------------------------------------------
AsmFlushCacheLine PROC
clflush [rcx]
mov rax, rcx
ret
AsmFlushCacheLine ENDP
END
```
Change VOID into VOID * in function header | ```assembly
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; Module Name:
;
; FlushCacheLine.Asm
;
; Abstract:
;
; AsmFlushCacheLine function
;
; Notes:
;
;------------------------------------------------------------------------------
.code
;------------------------------------------------------------------------------
; VOID *
; EFIAPI
; AsmFlushCacheLine (
; IN VOID *LinearAddress
; );
;------------------------------------------------------------------------------
AsmFlushCacheLine PROC
clflush [rcx]
mov rax, rcx
ret
AsmFlushCacheLine ENDP
END
``` |
2923ab1a-b76d-4d66-825d-02e22ed22d67 | {
"language": "Assembly"
} | ```assembly
```
Add linear search in x86 assembly lang | ```assembly
TITLE Linear/Sequential search implemented in x86 assembly (MASM)
; Search for a value in an array of bytes by comparing each value with a key
; return the position of the key
; O(n) time complexity
; the address of the first element in the array must be in the edx
; and the arrays length in the ecx register
; the index of the key is returned in the eax register
.386 ; minimum CPU required to run the program
.model flat, stdcall ; identifies the memory model for the program,
; in this case its protected mode. It also tells which
; calling convention to use for procedures
.stack 4096
.data
data db 42, 40, 70, 90, 62, 70, 40 ; our array of data
.code
; implementation of sequential search
SequentialSearch PROC
xor eax, eax ; clear eax register just in case
BEGIN_LOOP:
cmp BYTE PTR[edx], bl ; if [edx] == bl
je FOUND ; then goto FOUND
inc eax ; else increment eax
inc edx ; increment edx
loop BEGIN_LOOP ; automatically decrements ecx register
FOUND:
ret
SequentialSearch ENDP
; entry point
main PROC
mov bl, 90 ; search for 92 in array
mov edx, OFFSET data
mov ecx, LENGTHOF data
call SequentialSearch
main ENDP
END main
``` |
70a90566-d23e-48f0-a88c-cd4589fe030c | {
"language": "Assembly"
} | ```assembly
```
Add patch to display popup when attempting to enter forest portrait | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; This patch adds a text popup if the player tries to enter the Forest of Doom portrait before it's unlocked.
; This is necessary for portrait randomizer when the Forest of Doom portrait isn't in the normal location, since the normal event only works in that sector.
@Overlay119Start equ 0x023C0000
@FreeSpace equ 0x023C0000
.open "ftc/arm9.bin", 02000000h
.org 0x02079350 ; Location of code normally run when the Forest of Doom portrait is locked. (todo test if it affects other locked portraits)
beq @FreeSpace
.close
.open "ftc/overlay9_119", @Overlay119Start
.org @FreeSpace
ldr r2,=20FC48Eh ; Bitfield of buttons pressed this frame.
ldrh r2,[r2]
ands r2,r2,40h ; Up.
beq 20793FCh ; If up was not just pressed, continue on with the normal code without showing the message.
ldr r0,=4BEh ; Load text index 4BE. Originally this is just an unused string ("The Lost Village") but this should be changed in the text editor to say:
; "You must beat Stella and talk to Wind\nto unlock the Forest of Doom."
bl 2050544h ; Call ShowTextPopup.
b 20793FCh ; Then continue on with the rest of the code.
.pool
.close
``` |
dda9cc0b-3511-480b-a5be-48b44e11949b | {
"language": "Assembly"
} | ```assembly
.regalias count s1
.regalias source s2
.regalias dest s3
.regalias temp s4
_start temp = 0xf
cr30 = temp ; start all strands
count = mem_l[length]
source = &dataStart
dest = source + count
count = count >> 2 ; divide by 4
temp = cr0 ; get strand ID
temp = temp * count ; compute offset
source = source + temp ; compute source offset for this strand
dest = dest + temp ; compute dest offset for this strand
loop temp = mem_b[source]
mem_b[dest] = temp
source = source + 1
dest = dest + 1
count = count - 1
if count goto loop
cr31 = s0 ; halt simulation
length .word 2048
dataStart .word 0
```
Add synchronization at the end of the copy test. | ```assembly
.regalias count s1
.regalias source s2
.regalias dest s3
.regalias temp s4
_start temp = 0xf
cr30 = temp ; start all strands
count = mem_l[length]
source = &dataStart
dest = source + count
count = count >> 2 ; divide by 4
temp = cr0 ; get strand ID
temp = temp * count ; compute offset
source = source + temp ; compute source offset for this strand
dest = dest + temp ; compute dest offset for this strand
loop temp = mem_b[source]
mem_b[dest] = temp
source = source + 1
dest = dest + 1
count = count - 1
if count goto loop
; Update number of finished strands
s0 = &running_strands
retry s1 = mem_sync[s0]
s1 = s1 - 1
s2 = s1
mem_sync[s0] = s1
if !s1 goto retry
wait_done if s2 goto wait_done ; Will fall through on last ref (s2 = 1)
cr31 = s0 ; halt
running_strands .word 4
length .word 2048
dataStart .word 0
``` |
50c89b65-ae83-4870-89ad-fd45199f157a | {
"language": "Assembly"
} | ```assembly
```
Add experiment showing use of string as immediate value in source operand. | ```assembly
; Sandbox asm file template to start experimenting from
SECTION .data
SECTION .text
global _start
_start:
nop
mov eax,'WXYZ' ; You can use a string as an immediate value
; in a soure operand. Debugger will show 0x5A595857
; which is the binary ascii equivalent.
mov eax,1 ; Code for Exit Syscall
mov ebx,0 ; Return a code of zero
int 80H ; Make kernel call
SECTION .bss
``` |
25e794ac-f557-4841-be48-a957d586e1d7 | {
"language": "Assembly"
} | ```assembly
;;----------------------------------------------------------------------------;;
;; Move images in rupe (zoom) menu.
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
; Familiar brand image
.thumb
.org 0x0215A810
MOV r1, #0x52 ; X pos, originally 0x52
MOV r2, #0x4C ; Y pos, originally 0x4C
```
Move familiar type image in zoom menu | ```assembly
;;----------------------------------------------------------------------------;;
;; Move images in rupe (zoom) menu.
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
; Familiar brand image
.thumb
.org 0x0215A810
MOV r1, #0x40 ; X pos, originally 0x52
MOV r2, #0x4C ; Y pos, originally 0x4C
; Familiar type image
.org 0x0215A87C
MOV r1, #0x5C ; X pos, originally 0x70
MOV r2, #0x4B ; Y pos, originally 0x4B
``` |
576f5299-7d8b-437c-8af5-02e2a45ab945 | {
"language": "Assembly"
} | ```assembly
```
Add patch to fix infinite quest rewards bug in PoR | ```assembly
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
; Disables the start button exiting the quests menu.
; The B button can be used to exit the quest menu instead.
; This prevents taking quest rewards over and over by exiting before the quest is marked as complete.
; Changes how the quest menu handles button presses.
; Normally the value at [r13,14h] being 2 means B was pressed, and 3 means start was pressed.
; When B is pressed on the quest list, it changes the value to 3 to simulate the player exiting with start.
; Instead we change it so 4 is the value needed to exit the menu, and make B pressed on the quest list set the value to 4 instead of 3.
; Start still just sets it to 3, which is now ignored.
.org 0x02040848
cmp r0, 4h ; This is the value it must be to exit the quest menu.
.org 0x0204041C
moveq r0, 4h ; This is the value set when pressing B on the quest list.
.org 0x0204083C
movle r0, 4h ; This is the value set when the quest list is empty in some cases.
.org 0x0204052C
mov r0, 4h ; This is the value set when the quest list is empty in other cases.
.close
``` |
4ff5535f-cb93-42c4-af7c-bad5f5a52e78 | {
"language": "Assembly"
} | ```assembly
```
Convert a string from uppercase to lowercase. | ```assembly
; Sandbox asm file template to start experimenting from
; converts the Snippet string in memory to lowercase by looping and
; adding 32 to each byte in the string
SECTION .data
Snippet db "KANGAROO"
SECTION .text
global _start
_start:
nop
mov ebx,Snippet
mov eax,8
DoMore: add byte [ebx],32
inc ebx
dec eax
jnz DoMore
mov eax,1 ; Code for Exit Syscall
mov ebx,0 ; Return a code of zero
int 80H ; Make kernel call
SECTION .bss
``` |
9f1f86cb-dd4b-4a18-ae5f-ed957576fc6a | {
"language": "Assembly"
} | ```assembly
```
Add example asm files for testing | ```assembly
; Test program to bit-bang a single character out SOD as serial async data
org 00000H
BITTIME equ 0113h ; Time delay for a single bit
OUTBITS equ 00Bh
START:
mvi c,'T' ; Send a test character
COUT:
di
mvi b,OUTBITS ; Number of output bits
xra a ; Clear carry for start bit
CO1:
mvi a,080H ; Set the SDE flag
rar ; Shift carry into SOD flag
cmc ; and invert carry. Why? (serial is inverted?)
sim ; Output data bit
lxi h,BITTIME ; Load the time delay for one bit width
CO2:
dcr l ; Wait for bit time
jnz CO2
dcr h
jnz CO2
stc ; Shift in stop bit(s)
mov a,c ; Get char to send
rar ; LSB into carry
mov c,a ; Store rotated data
dcr b
jnz CO1 ; Send next bit
ei
lxi h,03fffH ; Wait a while before sending the character again
CHILL:
dcr l
jnz CHILL
dcr h
jnz CHILL
jmp START
``` |
b0a02212-f8c4-4723-87d7-5943a6d8ecba | {
"language": "Assembly"
} | ```assembly
; Sandbox asm file template to start experimenting from
SECTION .data
SECTION .text
global _start
_start:
nop
mov eax,1 ; Code for Exit Syscall
mov ebx,0 ; Return a code of zero
int 80H ; Make kernel call
SECTION .bss
```
Add tabs to sandbox template. | ```assembly
; Sandbox asm file template to start experimenting from
SECTION .data
SECTION .text
global _start
_start:
nop
mov eax,1 ; Code for Exit Syscall
mov ebx,0 ; Return a code of zero
int 80H ; Make kernel call
SECTION .bss
``` |
5fb2e474-7c73-47d1-88bf-1d812c2f56c2 | {
"language": "Assembly"
} | ```assembly
```
Add patch to change number of map tiles in DoS | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; This patch slightly changes the code that calculates what percentage of the map you have explored so that the total number of tiles can be easily changed, allowing the percentage to be correct with modded maps.
.open "ftc/arm9.bin", 02000000h
.org 0x02026B54
mul r0, r0, r1 ; Multiplies the number of explored map tiles (in r0) by 0d1000 (in r1) (for 100.0%, 4 digits including the decimal point).
ldr r1, =401h ; The total number of map tiles. (The base game has 0x400 tiles, but we put 401 instead because the assembler would optimize 400 into a shifted immediate and then the randomizer couldn't easily change this later on.)
bl 02075B28h ; Divide
add r13, r13, 4h
pop r15
.pool
.close
``` |
6e5c484e-4755-4728-9af5-a90ec682dc79 | {
"language": "Assembly"
} | ```assembly
; Copyright 2015 Philipp Oppermann
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
global long_mode_start
extern main
section .text
bits 64
long_mode_start:
; call rust main
call main
; print `OKAY` to screen
mov rax, 0x2f592f412f4b2f4f
mov qword [0xb8000], rax
hlt
```
Add an 64-bit error function | ```assembly
; Copyright 2015 Philipp Oppermann
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
global long_mode_start
extern main
section .text
bits 64
long_mode_start:
; call rust main
call main
; print `OKAY` to screen
mov rax, 0x2f592f412f4b2f4f
mov qword [0xb8000], rax
hlt
; Prints `ERROR: ` and the given error code to screen and hangs.
; parameter: error code (in ascii) in al
error:
mov rbx, 0x4f4f4f524f524f45
mov [0xb8000], rbx
mov rbx, 0x4f204f204f3a4f52
mov [0xb8008], rbx
mov byte [0xb800e], al
hlt
``` |
3f36f2d4-fd52-43ab-a7c2-5d3cc97099c4 | {
"language": "Assembly"
} | ```assembly
```
Add patch to make PoR enemy resistances behave like DoS and OoE | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; This patch makes resistances in PoR act like resistances in DoS and OoE.
; In vanilla PoR, if an enemy resists even one element of an attack, it will resist the attack.
; This changes it so the enemy must resist all elements of the attack to resist the attack.
.open "ftc/overlay9_0", 021CDF60h
.org 0x021DA1F8
mvn r0, r5 ; Negate the bitfield of resistances.
and r0, r0, r7 ; AND the attack's damage types with the negated resistances to find what elements were not resisted.
ands r0, r0, 0FFh ; Only consider the first 8 resistances. Others have no effect.
bne 021DA224h ; If any elements were not resisted, do not resist the attack.
mov r0, r1, asr 1h ; Resisted, so halve the damage. (This was originally a float multiply by 0.5x, but we used up too much space so simplify it to a shift instead.)
nop
nop
nop
.close
``` |
0ea96453-faf4-4b71-bbd3-c040e7854f3d | {
"language": "Assembly"
} | ```assembly
;;----------------------------------------------------------------------------;;
;; Align the position of the numbers in blackjack minigame of casino.
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; Number of rounds played
.org 0x02095FC0
ADD r1, r6, #0x00 + 0x1C ; X position
```
Fix position of blackjack player plays | ```assembly
;;----------------------------------------------------------------------------;;
;; Align the position of the numbers in blackjack minigame of casino.
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
;; Number of rounds played
.org 0x02095FC0
ADD r1, r6, #0x00 + 0x12 ; X position
``` |
d5f78642-c856-40d3-ba65-23fc7cac3dbf | {
"language": "Assembly"
} | ```assembly
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
.org 0x02051F90 ; Where the original game's code for loading area/sector/room indexes is.
b 020BFC00h ; Jump to some free space, where we will put our own code for loading the area/sector/room indexes.
.org 0x020BFC00 ; Free space.
mov r5,0h ; Load the area index into r5.
strb r5,[r0,515] ; Store the area index to the ram address where r0 will read it later.
mov r5,0h ; Load the sector index into r5.
mov r4,0h ; Load the room index into r4.
b 02051F94h ; Return to where we came from.
.close
```
Fix bug when changing PoR starting area | ```assembly
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
.org 0x02051F90 ; Where the original game's code for loading area/sector/room indexes is.
b 020BFC00h ; Jump to some free space, where we will put our own code for loading the area/sector/room indexes.
.org 0x020BFC00 ; Free space.
mov r5,0h ; Load the area index into r5.
strb r5,[r0,515h] ; Store the area index to the ram address where r0 will read it later. (0x02111785)
mov r5,0h ; Load the sector index into r5.
mov r4,0h ; Load the room index into r4.
b 02051F94h ; Return to where we came from.
.close
``` |
60fcb25d-4863-48bd-8ed4-ed2032fc2c16 | {
"language": "Assembly"
} | ```assembly
; Volume Label
db 'BOOTDISK' ; File Name
db ' ' ; File Extension
db 0x08 ; Attribute
db 0x00 ; Reserved for NT
db 0x01 ; Creation
dw 0x0000 ; Creation Time
dw 0x0000 ; Creation Date
dw 0x0000 ; Last Access Data
dw 0x0000 ; FAT32 Upper Half
dw 0x8000 ; Last Write Time
dw 0x475F ; Last Write Date
dw 0x0000 ; Starting Cluster
dd 0x00000000 ; File Size
; Second-Stage File
db 'STAGE2 ' ; File Name
db 'BIN' ; File Extension
db 0x05 ; Attribute (Read-only: 1; System: 4)
db 0x00 ; Reserved for NT
db 0x01 ; Creation
dw 0x0000 ; Creation Time
dw 0x0000 ; Creation Date
dw 0x0000 ; Last Access Data
dw 0x0000 ; FAT32 Upper Half
dw 0x8000 ; Last Write Time
dw 0x475F ; Last Write Date
dw 0x0000 ; Starting Cluster
dd 0x00000200 ; File Size
pad: times (14*512)-($-$$) db 0
```
Fix error with root directory entry for STAGE2.BIN | ```assembly
; Volume Label
db 'BOOTDISK' ; File Name
db ' ' ; File Extension
db 0x08 ; Attribute
db 0x00 ; Reserved for NT
db 0x01 ; Creation
dw 0x0000 ; Creation Time
dw 0x0000 ; Creation Date
dw 0x0000 ; Last Access Data
dw 0x0000 ; FAT32 Upper Half
dw 0x8000 ; Last Write Time
dw 0x475F ; Last Write Date
dw 0x0000 ; Starting Cluster
dd 0x00000000 ; File Size
; Second-Stage File
db 'STAGE2 ' ; File Name
db 'BIN' ; File Extension
db 0x05 ; Attribute (Read-only: 1; System: 4)
db 0x00 ; Reserved for NT
db 0x01 ; Creation
dw 0x0000 ; Creation Time
dw 0x0000 ; Creation Date
dw 0x0000 ; Last Access Data
dw 0x0000 ; FAT32 Upper Half
dw 0x8000 ; Last Write Time
dw 0x475F ; Last Write Date
dw 0x0002 ; Starting Cluster
dd 0x00000200 ; File Size
pad: times (14*512)-($-$$) db 0
``` |
e4d94250-64f0-4afd-8a92-28bbd93be0f6 | {
"language": "Assembly"
} | ```assembly
```
Add patch to enable skipping AoS cutscenes on first playthrough | ```assembly
.gba
.relativeinclude on
.erroronwarning on
.open "ftc/rom.gba", 08000000h
; Allow skipping events with start, even if you haven't beaten the game once yet.
.org 0x0805B56C
mov r0, 3h
.close
``` |
77255f7a-4a47-4702-8cd4-ab34149cbcd5 | {
"language": "Assembly"
} | ```assembly
```
Add flash on Z cancel demo | ```assembly
// Super Smash Bros. flash on Z cancel demonstration
arch n64.cpu
endian msb
//output "", create
include "LIB\N64.inc"
include "LIB\macros.inc"
origin 0x0
insert "LIB\Super Smash Bros. (U) [!].z64"
origin 0x0CB528
base 0x80150AE8 // Z cancel
jal Flash
origin 0x33204
base 0x80032604
scope Flash: {
addiu sp, -0x18
sw ra, 0x14 (sp)
jal 0x80142D9C // Original instruction
sw v1, 0x10 (sp) // Save v1
lw v1, 0x10 (sp) // Restore v1
lw t0, 0x0160 (v1)
slti t1, t0, 0x000B
beqz t1, End // If within frame window
nop
Flash:
lw a0, 0x04 (v1) // Pointer
//lli a1, 0x08 // Sparkle
lli a1, 0x2B // Yellow
jal 0x800E9814 // Flash
or a2, r0, r0
End:
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x18
}
``` |
6fd909d7-75b3-4ce2-b0af-0da87ef33163 | {
"language": "Assembly"
} | ```assembly
```
Add patch to fix bug where common enemy creature sets boss death flag | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; This patch fixes the bug where the common enemy version of The Creature sets his boss death flag.
.open "ftc/overlay9_60", 022D7900h
.org 0x022D7D14
; Check if Var A is 0 (common enemy/boss rush version) and skip setting the boss death flag if so.
; This code already existed around here in vanilla, we're just moving it up a few lines to before setting the boss death flag instead of after.
ldrh r1, [r1, 3Ch]
cmp r1, 0h
beq 0x022D7D30
; Then set the boss death flag.
ldr r2, [r0, 76Ch]
orr r2, r2, 200h
str r2, [r0, 76Ch]
.close
``` |
16dbf24a-549e-4548-8166-aacfa32d0e32 | {
"language": "Assembly"
} | ```assembly
```
Add routine for 32bit print. | ```assembly
; =============================================================================
; Copyright (C) 2015 Manolis Fragkiskos Ragkousis -- see LICENSE.TXT
; =============================================================================
;;; Print routine
;;; ebx contains a null terminated string
%ifndef PRINT_STRING_PM
%define PRINT_STRING_PM
[bits 32]
VIDEO_MEMORY equ 0xb8000
WHITE_ON_BLACK equ 0x0f
print_string_pm:
pusha
mov edx, VIDEO_MEMORY
print_string_pm_loop:
mov al, [ebx]
mov ah, WHITE_ON_BLACK
cmp al, 0
je print_string_pm_done
mov [edx], ax
add ebx, 1
add edx, 2
jmp print_string_pm_loop
print_string_pm_done:
popa
ret
%endif
``` |
b0326755-91ba-4664-8300-d7b4671bc9e8 | {
"language": "Assembly"
} | ```assembly
```
Add patch to make Balore face left if player enters from left | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; This patch makes Balore detect which side of the room the player enters from, and if it's from the left, he moves himself to face left.
.open "ftc/overlay9_23", 022FF9C0h
@Overlay41Start equ 0x02308920
@FreeSpace equ @Overlay41Start + 0x140
.org 0x022FFD44
b @BaloreFacePlayer
.close
.open "ftc/overlay9_41", @Overlay41Start
.org @FreeSpace
@BaloreFacePlayer:
mov r0, r5
bl 021C3278h ; GetPlayerXPos
cmp r0, 80000h ; X pos 0x80, halfway through the leftmost screen
bge @BaloreFaceRight
@BaloreFaceLeft:
mov r0, 0h ; Var A
mov r1, 0F0000h ; X pos
str r1, [r5, 2Ch]
b @BaloreFacePlayerEnd
@BaloreFaceRight:
mov r0, 1h ; Var A
; We don't set X pos here because we assume Balore's X pos was already properly set for facing right.
@BaloreFacePlayerEnd:
; Go back to Balore's normal code to set the direction he faces
; We make sure r0 has Var A in it - but not Balore's real Var A, just the one to check for the purposes of deciding the direction he faces.
b 0x022FFD48
.close
``` |
344fef59-9fcd-48a1-a956-4d568b08e8b7 | {
"language": "Assembly"
} | ```assembly
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in equip menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
;; Item name
.arm
.org 0x020821B8
MOV r1, #0x83 ; X pos, originally 0x84
;; Item quantity
.arm
.org 0x02082228
MOV r1, #0xDB ; X pos, originally 0xDD
```
Move level number in equip menu | ```assembly
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in equip menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
;; Item name
.arm
.org 0x020821B8
MOV r1, #0x83 ; X pos, originally 0x84
;; Item quantity
.arm
.org 0x02082228
MOV r1, #0xDB ; X pos, originally 0xDD
;; Level
.arm
.org 0x2080544
MOV r1, #0x79 + 2 ; X poss
``` |
fafedfb9-f7ed-4c2e-8858-2e55ebcec8a7 | {
"language": "Assembly"
} | ```assembly
; 0x0000
; RST 0x00
jp boot
; Magic Number
; 0x0003
.db "KK"
; 0x0008
; RST 0x08
.fill 0x08-$
rkcall:
jp kcall
.fill 0x10-$
; 0x0010
; RST 0x10
rlcall:
jp lcall
.fill 0x18-$
; 0x0018
; RST 0x18
jp reboot
.fill 0x20-$
; 0x0020
; RST 0x20
jp pcall
.fill 0x28-$
; 0x0028
; RST 0x28
jp bcall
.fill 0x30-$
; 0x0030
; RST 0x30
ret
.fill 0x38-$
; 0x0038
; RST 0x38
; SYSTEM INTERRUPT
jp sysInterrupt
; 0x003B
.fill 0x53-$
; 0x0053
jp boot
; 0x0056
.db 0xFF, 0xA5, 0xFF
.fill 0x64-$
.exec git describe --dirty ; Version string
.db 0
```
Modify version string to be more concise | ```assembly
; 0x0000
; RST 0x00
jp boot
; Magic Number
; 0x0003
.db "KK"
; 0x0008
; RST 0x08
.fill 0x08-$
rkcall:
jp kcall
.fill 0x10-$
; 0x0010
; RST 0x10
rlcall:
jp lcall
.fill 0x18-$
; 0x0018
; RST 0x18
jp reboot
.fill 0x20-$
; 0x0020
; RST 0x20
jp pcall
.fill 0x28-$
; 0x0028
; RST 0x28
jp bcall
.fill 0x30-$
; 0x0030
; RST 0x30
ret
.fill 0x38-$
; 0x0038
; RST 0x38
; SYSTEM INTERRUPT
jp sysInterrupt
; 0x003B
.fill 0x53-$
; 0x0053
jp boot
; 0x0056
.db 0xFF, 0xA5, 0xFF
.fill 0x64-$
.exec git describe --dirty=+ ; Version string
.db 0
``` |
d917a832-5c55-43b9-a2e8-f27ce768ccf8 | {
"language": "Assembly"
} | ```assembly
```
Add patch to skip emblem drawing screen in PoR | ```assembly
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_25", 022D7900h
; Skip the screen where the player has to draw an emblem and press OK when starting a new game.
.org 0x022DAAB0 ; Code in the name entry menu after you finished typing in your name that would normally take you to the emblem drawing screen next.
mov r11, 19h ; We set the return value to 0x19, which is the state for the scrolling prologue introduction.
nop
nop
nop
nop
nop
nop
.close
``` |
044c63ba-faf6-4bab-9e09-98dae8cca9f6 | {
"language": "Assembly"
} | ```assembly
```
Add patch to fix Gravedorcus from left entrance | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; This patch makes Gravedorcus not immediately damage the player if they enter from the left door.
.open "ftc/overlay9_33", 022B73A0h
.org 0x022BA230
; Remove branch that would make Gravedorcus's intro cutscene play if you enter the room from the right.
nop
.org 0x022BA250
.area 0x20 ; Lines 022BA258-022BA26C were for the cutscene we skipped over, so we get 0x18 extra bytes to work with from that.
; Set Gravedorcus's state to 5 instead of 1.
; This causes Gravedorcus to start at X position 0x100 and shooting projectiles to the left, which is dodgeable, while spawning right on top of the player and moving to the right is not dodgeable.
mov r0, 5h
strb r0, [r5, 0Dh]
; Replace the two lines we overwrote at the start (return)
add r13, r13, 10h
pop r3-r5,r15
.endarea
.close
``` |
996dd1a3-d1fa-4519-95fa-58d7b062a709 | {
"language": "Assembly"
} | ```assembly
;;----------------------------------------------------------------------------;;
;; Align the position of the numbers in military minigame of casino.
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
.org 0x0207E900
MOV r1, #0xB+19 ; X pos
MOV R2, #3 ; Y pos
```
Move up the number of military games | ```assembly
;;----------------------------------------------------------------------------;;
;; Align the position of the numbers in military minigame of casino.
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.arm
.org 0x0207E900
MOV r1, #0xB+19 ; X pos
MOV R2, #2 ; Y pos
``` |
37deef0f-13d8-40ed-bd9e-d804a1795513 | {
"language": "Assembly"
} | ```assembly
```
Add patch to always enable dowsing hat effect | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; Always have the Dowsing Hat effect of beeping when there's a hidden blue chest, even if you don't have Dowsing Hat equipped.
.open "ftc/overlay9_19", 021FFFC0h
.org 0x0221AE30 ; Where the blue chest loads your currently equipped head armor.
mov r0, 7h ; Dowsing Hat
.close
``` |
21fdcef0-2102-431c-885e-834eacc96a6d | {
"language": "Assembly"
} | ```assembly
```
Add asm patch to implement magical tickets in DoS | ```assembly
.nds
.relativeinclude on
.erroronwarning on
@Overlay41Start equ 0x023E0100
@FreeSpace equ 0x023E0100
.open "ftc/overlay9_0", 0219E3E0h
.org 0x021EEF00
b @FreeSpace
.close
.open "ftc/overlay9_41", @Overlay41Start
.org @FreeSpace
; TODO: Don't allow using during boss fights.
mov r0, 0h ; Sector index
mov r1, 1h ; Room index
mov r2, 80h ; X pos
mov r3, 60h ; Y pos
bl 02026AD0h ; SetDestinationRoomSectorAndRoomIndexes
ldr r1, =020F6DF4h
mov r0, 6h
strb r0, [r1] ; We set the current type of transition mode (020F6DF4) to 6, meaning a warp of some kind.
mov r0, 0h
strb r0, [r1,1h]
; Enable control of the player, in case they were using the slide puzzle and controls were disabled.
bl 021F64BCh
; Below is copy pasted, it triggers the game to unpause.
mov r0,44h
bl 2029BF0h
mov r0,0h
mvn r1,0Fh
mov r2,8h
bl 20080DCh
mov r2,3h
ldr r0,=208AC20h
strb r2,[r9,0Dh]
ldr r1,[r0]
ldrb r0,[r1,8h]
cmp r0,17h
strneb r2,[r1,0Ah]
; Above is copy pasted, it triggers the game to unpause
mov r4, 42h ; This tells the rest of the consumable code to use one of the consumable, and play the consumable-used SFX.
b 0x021EF0F8 ; Return to the consumable code.
; Alternate code to not use one of the tickets up:
; mov r0, 42h ; This is the SFX that will be played.
; b 0x021EF264 ; Return to the consumable code.
.pool
.close
``` |
177cd217-bfa1-458a-8ec2-df8d8acb8802 | {
"language": "Assembly"
} | ```assembly
```
Add patch to fix some PoR bosses not playing music in boss rando | ```assembly
.nds
.relativeinclude on
.erroronwarning on
; Fixes the boss rush versions of certain bosses so they play the boss music when they're created.
; This is for the boss randomizer.
@Overlay119Start equ 0x02308EC0
@FreeSpace equ @Overlay119Start + 0x4C0
.open "ftc/overlay9_119", @Overlay119Start
.org @FreeSpace
@InitializeEnemyAndOverridePlayBossMusic:
push r14
push r1 ; Preserve the music ID
bl 021D9184h ; InitializeEnemyFromDNA (replaces the line we overwrote to call this custom function)
pop r0 ; Get the music ID out of the stack
bl 0204D374h ; PlaySongWithVariableUpdatesExceptInBossRush
; Set bit to make the song that was set override the BGM.
ldr r0, =0211174Ch
ldr r1, [r0]
orr r1, r1, 00040000h
str r1, [r0]
pop r15
@InitializeEnemyAndOverridePlayBossMusicForLegion:
push r14
mov r1, 12h ; Music ID for Destroyer
bl @InitializeEnemyAndOverridePlayBossMusic
pop r15
.pool
.close
.open "ftc/overlay9_52", 022D7900h
; Legion
.org 0x022D7A24
bl @InitializeEnemyAndOverridePlayBossMusicForLegion
.close
.open "ftc/overlay9_64", 022D7900h
; Death
.org 0x022D7BD0
; This line usually prevented the code for starting the boss music from running in Jonathan mode.
; Just remove it.
nop
.close
.open "ftc/overlay9_63", 022D7900h
; Stella
.org 0x022D7A4C
; This line usually prevented the code for starting the boss music from running in Jonathan mode.
; Just remove it.
nop
.close
``` |
Subsets and Splits