text:
namespace content {

class RenderFrameImpl;

class NavigationClient : mojom::NavigationClient {
 public:
  explicit NavigationClient(RenderFrameImpl* render_frame);
  ~NavigationClient() override;

  // mojom::NavigationClient implementation:
  void CommitNavigation(
      mojom::CommonNavigationParamsPtr common_params,
      mojom::CommitNavigationParamsPtr commit_params,
      network::mojom::URLResponseHeadPtr response_head,
      mojo::ScopedDataPipeConsumerHandle response_body,
      network::mojom::URLLoaderClientEndpointsPtr url_loader_client_endpoints,
      std::unique_ptr<blink::PendingURLLoaderFactoryBundle> subresource_loaders,
      base::Optional<std::vector<::content::mojom::TransferrableURLLoaderPtr>>
          subresource_overrides,
      blink::mojom::ControllerServiceWorkerInfoPtr
          controller_service_worker_info,
      blink::mojom::ServiceWorkerProviderInfoForClientPtr provider_info,
      mojo::PendingRemote<network::mojom::URLLoaderFactory>
          prefetch_loader_factory,
      const base::UnguessableToken& devtools_navigation_token,
      CommitNavigationCallback callback) override;
  void CommitFailedNavigation(
      mojom::CommonNavigationParamsPtr common_params,
      mojom::CommitNavigationParamsPtr commit_params,
      bool has_stale_copy_in_cache,
      int error_code,
      const net::ResolveErrorInfo& resolve_error_info,
      const base::Optional<std::string>& error_page_content,
      std::unique_ptr<blink::PendingURLLoaderFactoryBundle> subresource_loaders,
      CommitFailedNavigationCallback callback) override;

  void Bind(mojo::PendingAssociatedReceiver<mojom::NavigationClient> receiver);

  // See NavigationState::was_initiated_in_this_frame for details.
  void MarkWasInitiatedInThisFrame();
  bool was_initiated_in_this_frame() const {
    return was_initiated_in_this_frame_;
  }

 private:
  // OnDroppedNavigation is bound from BeginNavigation till CommitNavigation.
  // During this period, it is called when the interface pipe is closed from the
  // browser side, leading to the ongoing navigation cancelation.
  void OnDroppedNavigation();
  void SetDisconnectionHandler();
  void ResetDisconnectionHandler();

  mojo::AssociatedReceiver<mojom::NavigationClient> navigation_client_receiver_{
      this};
  RenderFrameImpl* render_frame_;
  bool was_initiated_in_this_frame_ = false;
};

}  // namespace content

#endif  // CONTENT_RENDERER_NAVIGATION_CLIENT_H_


text:
Simplest possible auth sample using apollo and ts-node

# Known Issues
The GraphQL layer works, however, the apollo-express server in apollo-angular-auth-server
needs some <3

# Prerequisite (for now)
https://www.rethinkdb.com/

# Clone
```
git clone --recursive git@github.com:murpyslaw/apollo-angular-auth.git
git submodule foreach git checkout master
```

# Run
```
npm i && npm start
```

# Tips
- Do: `git config --global status.submoduleSummary true` to see a summary of the submodule changes you have created, and to have these changes in the git commit of the *superproject*

redpajama_set_name: RedPajamaGithub


text:
"""A Future interface.

Python doesn't have a Future interface in its standard library. In the absence
of such a standard, three separate, incompatible implementations
(concurrent.futures.Future, ndb.Future, and asyncio.Future) have appeared. This
interface attempts to be as compatible as possible with
concurrent.futures.Future. From ndb.Future it adopts a traceback-object accessor
method.

Unlike the concrete and implemented Future classes listed above, the Future
class defined in this module is an entirely abstract interface that anyone may
implement and use.

The one known incompatibility between this interface and the interface of
concurrent.futures.Future is that this interface defines its own CancelledError
and TimeoutError exceptions rather than raising the implementation-private
concurrent.futures._base.CancelledError and the
built-in-but-only-in-3.3-and-later TimeoutError.
"""

import abc

import six

class TimeoutError(Exception):
  """Indicates that a particular call timed out."""

class CancelledError(Exception):
  """Indicates that the computation underlying a Future was cancelled."""

class Future(six.with_metaclass(abc.ABCMeta)):
  """A representation of a computation in another control flow.

  Computations represented by a Future may be yet to be begun, may be ongoing,
  or may have already completed.
  """

  # NOTE(nathaniel): This isn't the return type that I would want to have if it
  # were up to me. Were this interface being written from scratch, the return
  # type of this method would probably be a sum type like:
  #
  # NOT_COMMENCED
  # COMMENCED_AND_NOT_COMPLETED
  # PARTIAL_RESULT<Partial_Result_Type>
  # COMPLETED<Result_Type>
  # UNCANCELLABLE
  # NOT_IMMEDIATELY_DETERMINABLE
  @abc.abstractmethod
  def cancel(self):
    """Attempts to cancel the computation.

    This method does not block.

    Returns:
      True if the computation has not yet begun, will not be allowed to take
        place, and determination of both was possible without blocking. False
        under all other circumstances including but not limited to the
        computation's already having begun, the computation's already having
        finished, and the computation's having been scheduled for execution on a
        remote system for which a determination of whether or not it commenced
        before being cancelled cannot be made without blocking.
    """
    raise NotImplementedError()

  # NOTE(nathaniel): Here too this isn't the return type that I'd want this
  # method to have if it were up to me. I think I'd go with another sum type
  # like:
  #
  # NOT_CANCELLED (this object's cancel method hasn't been called)
  # NOT_COMMENCED
  # COMMENCED_AND_NOT_COMPLETED
  # PARTIAL_RESULT<Partial_Result_Type>
  # COMPLETED<Result_Type>
  # UNCANCELLABLE
  # NOT_IMMEDIATELY_DETERMINABLE
  #
  # Notice how giving the cancel method the right semantics obviates most
  # reasons for this method to exist.
  @abc.abstractmethod
  def cancelled(self):
    """Describes whether the computation was cancelled.

    This method does not block.

    Returns:
      True if the computation was cancelled any time before its result became
        immediately available. False under all other circumstances including but
        not limited to this object's cancel method not having been called and
        the computation's result having become immediately available.
    """
    raise NotImplementedError()

  @abc.abstractmethod
  def running(self):
    """Describes whether the computation is taking place.

    This method does not block.

    Returns:
      True if the computation is scheduled to take place in the future or is
        taking place now, or False if the computation took place in the past or
        was cancelled.
    """
    raise NotImplementedError()

  # NOTE(nathaniel): These aren't quite the semantics I'd like here either. I
  # would rather this only returned True in cases in which the underlying
  # computation completed successfully. A computation's having been cancelled
  # conflicts with considering that computation "done".
  @abc.abstractmethod
  def done(self):
    """Describes whether the computation has taken place.

    This method does not block.

    Returns:
      True if the computation is known to have either completed or have been
        unscheduled or interrupted. False if the computation may possibly be
        executing or scheduled to execute later.
    """
    raise NotImplementedError()

  @abc.abstractmethod
  def result(self, timeout=None):
    """Accesses the outcome of the computation or raises its exception.

    This method may return immediately or may block.

    Args:
      timeout: The length of time in seconds to wait for the computation to
        finish or be cancelled, or None if this method should block until the
        computation has finished or is cancelled no matter how long that takes.

    Returns:
      The return value of the computation.

    Raises:
      TimeoutError: If a timeout value is passed and the computation does not
        terminate within the allotted time.
      CancelledError: If the computation was cancelled.
      Exception: If the computation raised an exception, this call will raise
        the same exception.
    """
    raise NotImplementedError()

  @abc.abstractmethod
  def exception(self, timeout=None):
    """Return the exception raised by the computation.

    This method may return immediately or may block.

    Args:
      timeout: The length of time in seconds to wait for the computation to
        terminate or be cancelled, or None if this method should block until
        the computation is terminated or is cancelled no matter how long that
        takes.

    Returns:
      The exception raised by the computation, or None if the computation did
        not raise an exception.

    Raises:
      TimeoutError: If a timeout value is passed and the computation does not
        terminate within the allotted time.
      CancelledError: If the computation was cancelled.
    """
    raise NotImplementedError()

  @abc.abstractmethod
  def traceback(self, timeout=None):
    """Access the traceback of the exception raised by the computation.

    This method may return immediately or may block.

    Args:
      timeout: The length of time in seconds to wait for the computation to
        terminate or be cancelled, or None if this method should block until
        the computation is terminated or is cancelled no matter how long that
        takes.

    Returns:
      The traceback of the exception raised by the computation, or None if the
        computation did not raise an exception.

    Raises:
      TimeoutError: If a timeout value is passed and the computation does not
        terminate within the allotted time.
      CancelledError: If the computation was cancelled.
    """
    raise NotImplementedError()

  @abc.abstractmethod
  def add_done_callback(self, fn):
    """Adds a function to be called at completion of the computation.

    The callback will be passed this Future object describing the outcome of
    the computation.

    If the computation has already completed, the callback will be called
    immediately.

    Args:
      fn: A callable taking a this Future object as its single parameter.
    """
    raise NotImplementedError()


text:
OCAMLFIND_IGNORE_DUPS_IN = $(shell ocamlfind query compiler-libs)
export OCAMLFIND_IGNORE_DUPS_IN

SETUP = ocaml setup.ml

build: setup.data
	$(SETUP) -build $(BUILDFLAGS)

doc: setup.data build
	$(SETUP) -doc $(DOCFLAGS)

test: setup.data build
	$(SETUP) -test $(TESTFLAGS)

all:
	$(SETUP) -all $(ALLFLAGS)

install: setup.data
	$(SETUP) -install $(INSTALLFLAGS)

uninstall: setup.data
	$(SETUP) -uninstall $(UNINSTALLFLAGS)

reinstall: setup.data
	$(SETUP) -reinstall $(REINSTALLFLAGS)

clean:
	$(SETUP) -clean $(CLEANFLAGS)

distclean:
	$(SETUP) -distclean $(DISTCLEANFLAGS)

setup.data:
	$(SETUP) -configure $(CONFIGUREFLAGS)

configure:
	$(SETUP) -configure $(CONFIGUREFLAGS)

.PHONY: build doc test all install uninstall reinstall clean distclean configure


text:
(function() {
	// This is the query that sorts the table. Note that we define the query
	// just once but use it many times, whenever the user clicks one of the
	// column headers. Also note the two placeholders, $0 holds the contents
	// of the table while $1 indicates the column that will be sorted.
	var query = new jsinq.Query('\
		from tr in $0 \
		orderby tr.childNodes[$1].firstChild.nodeValue \
		select tr \
	');

	// Because the contents of the table do not change at runtime we can
	// simply select the table rows we wish to sort once and then pass them
	// to the query using the setValue method.
	var tableBody = document.getElementById('table-body');
	var trs = tableBody.getElementsByTagName('tr');
	query.setValue(0, new jsinq.Enumerable(trs));

	// This function is invoked whenever one of the column headers is clicked.
	function sortTable(index) {
		// The index parameter contains the index of the column that the user
		// wishes to sort. We pass this into the query and then execute it.
		query.setValue(1, index);
		var result = query.execute();

		// Take the rows which are not sorted and put the back into the table
		// body.
		result.each(function(element) {
			tableBody.appendChild(element);
		});
	}

	// Create onclick handlers for all the table headers. This is boilerplate
	// code that your JavaScript framework can usually help you with.
	var tableHeaders = document.getElementById('table-head').
		getElementsByTagName('td');

	for (var i = 0; i < tableHeaders.length; i++) {
		tableHeaders[i].onclick = (function(index) {
			return function() { sortTable.call(this, index); };
		})(i);
	}
})();


text:
/* ###
 * IP: GHIDRA
 *
 * 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.
 */
package ghidra.app.plugin.assembler.sleigh.expr;

import java.util.Map;
import java.util.Set;

import ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution;
import ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolvedPatterns;
import ghidra.app.plugin.processors.sleigh.expression.RightShiftExpression;
import ghidra.util.Msg;

/**
 * Solves expressions of the form {@code A >> B}
 */
public class RightShiftExpressionSolver
		extends AbstractBinaryExpressionSolver<RightShiftExpression> {

	public RightShiftExpressionSolver() {
		super(RightShiftExpression.class);
	}

	@Override
	public MaskedLong compute(MaskedLong lval, MaskedLong rval) {
		return lval.shiftRight(rval);
	}

	@Override
	public MaskedLong computeLeft(MaskedLong rval, MaskedLong goal) throws SolverException {
		return goal.invShiftRight(rval);
	}

	@Override
	public MaskedLong computeRight(MaskedLong lval, MaskedLong goal) throws SolverException {
		long acc = 0;
		long bit = 1;
		for (int i = 0; i < 64; i++) {
			if (lval.shiftRight(i).agrees(goal)) {
				acc |= bit;
			}
			bit <<= 1;
		}
		if (Long.bitCount(acc) == 1) {
			return MaskedLong.fromLong(Long.numberOfTrailingZeros(acc));
		}
		throw new SolverException(
			"Cannot solve for the right shift amount: " + goal + " = " + lval + " >> R");
	}

	@Override
	protected AssemblyResolution solveTwoSided(RightShiftExpression exp, MaskedLong goal,
			Map<String, Long> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints,
			String description) throws NeedsBackfillException, SolverException {
		// Do the similar thing as in {@link LeftShiftExpressionSolver}

		// Do not guess the same parameter recursively
		if (hints.contains(DefaultSolverHint.GUESSING_RIGHT_SHIFT_AMOUNT)) {
			// NOTE: Nested right shifts ought to be written as a right shift by a sum
			return super.solveTwoSided(exp, goal, vals, cur, hints, description);
		}

		int maxShift = Long.numberOfLeadingZeros(goal.val);
		Set<SolverHint> hintsWithRShift =
			SolverHint.with(hints, DefaultSolverHint.GUESSING_RIGHT_SHIFT_AMOUNT);
		for (int shift = 0; shift <= maxShift; shift++) {
			try {
				MaskedLong reqr = MaskedLong.fromLong(shift);
				MaskedLong reql = computeLeft(reqr, goal);

				AssemblyResolution lres =
					solver.solve(exp.getLeft(), reql, vals, cur, hintsWithRShift, description);
				if (lres.isError()) {
					throw new SolverException("Solving left failed");
				}
				AssemblyResolution rres =
					solver.solve(exp.getRight(), reqr, vals, cur, hints, description);
				if (rres.isError()) {
					throw new SolverException("Solving right failed");
				}
				AssemblyResolvedPatterns lsol = (AssemblyResolvedPatterns) lres;
				AssemblyResolvedPatterns rsol = (AssemblyResolvedPatterns) rres;
				AssemblyResolvedPatterns sol = lsol.combine(rsol);
				if (sol == null) {
					throw new SolverException(
						"Left and right solutions conflict for shift=" + shift);
				}
				return sol;
			}
			catch (SolverException | UnsupportedOperationException e) {
				Msg.trace(this, "Shift of " + shift + " resulted in " + e);
				// try the next
			}
		}
		return super.solveTwoSided(exp, goal, vals, cur, hints, description);
	}
}


text:
SELECT * FROM ITEM WHERE  SID = 1 ;
SELECT * FROM ITEM WHERE  SID = 2 ;

SELECT COUNT(*) AS TEAM_COUNTS_ITEM_ALL FROM EVENT WHERE DIFFUSION_ID = 1 AND EVENT_TYPE_ID = 1 ;
SELECT COUNT(*) AS ADMIN_COUNTS_ITEM_ALL FROM EVENT WHERE DIFFUSION_ID <> 1 AND EVENT_TYPE_ID = 1;

SELECT COUNT(*) AS ADMIN_COUNT_ITEM_WEB FROM EVENT WHERE DIFFUSION_ID <> 1 AND EVENT_TYPE_ID = 1 AND ITEM_SID = 1;
SELECT COUNT(*) AS ADMIN_COUNT_ITEM_WAP FROM EVENT WHERE DIFFUSION_ID <> 1 AND EVENT_TYPE_ID = 1 AND ITEM_SID = 2;

SELECT COUNT(*) AS TEAM_COUNT_ITEM_WEB FROM EVENT WHERE DIFFUSION_ID = 1 AND EVENT_TYPE_ID = 1 AND ITEM_SID = 1;
SELECT COUNT(*) AS TEAM_COUNT_ITEM_WAP FROM EVENT WHERE DIFFUSION_ID = 1 AND EVENT_TYPE_ID = 1 AND ITEM_SID = 2;


text:
cask "qbittorrent" do
  version "4.3.3"
  sha256 "0ac246975e494768dc327bd99706c23503cc4e219e311901c58d65d5506510f3"

  url "https://downloads.sourceforge.net/qbittorrent/qbittorrent-mac/qbittorrent-#{version}/qbittorrent-#{version}.dmg",
      verified: "sourceforge.net/qbittorrent/"
  appcast "https://sourceforge.net/projects/qbittorrent/rss?path=/qbittorrent-mac"
  name "qBittorrent"
  desc "Peer to peer Bitorrent client"
  homepage "https://www.qbittorrent.org/"

  depends_on macos: ">= :high_sierra"

  # Renamed for consistency: app name is different in the Finder and in a shell.
  app "qbittorrent.app", target: "qBittorrent.app"

  zap trash: [
    "~/.config/qBittorrent",
    "~/Library/Application Support/qBittorrent",
    "~/Library/Caches/qBittorrent",
    "~/Library/Preferences/org.qbittorrent.qBittorrent.plist",
    "~/Library/Preferences/qBittorrent",
    "~/Library/Saved Application State/org.qbittorrent.qBittorrent.savedState",
  ]
end


text:
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
class Version20170103155507 extends AbstractMigration
{
    /**
     * @param Schema $schema
     */
    public function up(Schema $schema)
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

        $this->addSql('ALTER TABLE user DROP token');
        $this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D6495E237E06 ON user (name)');
    }

    /**
     * @param Schema $schema
     */
    public function down(Schema $schema)
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');

        $this->addSql('DROP INDEX UNIQ_8D93D6495E237E06 ON user');
        $this->addSql('ALTER TABLE user ADD token VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci');
    }
}


text:
using std::cout;
using std::string;
using std::vector;
using boost::ptr_vector;
using boost::filesystem::path;
using boost::filesystem::directory_iterator;
using boost::filesystem::ifstream;
using boost::filesystem::ofstream;

inline bool starts_with(const string& str, const string& start)
{
	const size_t start_size = start.size();
	if (str.size() < start_size) return false;
	for (size_t i = 0; i < start_size; ++i)
	{
		if (str[i] != start[i]) return false;
	}
	return true;
}

inline bool ends_with(const string& str, const string& end)
{
	const size_t str_size = str.size();
	const size_t end_size = end.size();
	if (str_size < end_size) return false;
	for (size_t i = 1; i <= end_size; ++i)
	{
		if (str[str_size - i] != end[end_size - i]) return false;
	}
	return true;
}

int main(int argc, char* argv[])
{
	const directory_iterator end_dir_iter;

	vector<path> slices;
	for (directory_iterator dir_iter("pdbqt"); dir_iter != end_dir_iter; ++dir_iter)
	{
		if (!is_directory(dir_iter->status())) continue;
		slices.push_back(dir_iter->path());
	}
	cout << "Found " << slices.size() << " slices\n";

	path prop;
	for (directory_iterator dir_iter("."); dir_iter != end_dir_iter; ++dir_iter)
	{
		if (!is_regular_file(dir_iter->status())) continue;
		const path p = dir_iter->path();
		if (ends_with(p.string(), "_prop.xls"))
		{
			prop = p;
			break;
		}
	}
	const auto prop_str = prop.string();
	const path idcsv = prop_str.substr(0, prop_str.size() - 4) + "ha.csv";

	cout << "Reading " << prop << '\n';
	string line;
	ifstream in(prop);
	getline(in, line); // Filter out header line.
	ofstream out(idcsv);
	out << line.substr(0, 7) << "\tHA" << line.substr(7) << '\n';
	while (getline(in, line))
	{
		const string id = line.substr(0, 12);
		size_t hac = 0;
		for (const auto& s : slices)
		{
			const path p = s / (id + ".pdbqt");
			if (!exists(p)) continue;
			string l;
			ifstream pdbqt(p);
			while (getline(pdbqt, l))
			{
				if ((starts_with(l, "ATOM  ") || starts_with(l, "HETATM")) && (!((l[77] == 'H') && ((l[78] == ' ') || (l[78] == 'D'))))) ++hac;
			}
			break;
		}
		out << line.substr(0, 12) << '\t' << hac << line.substr(12) << '\n';
	}

	return 0;
}


text:
package io.fintrospect.renderers

import java.net.URL

import com.twitter.finagle.Service
import com.twitter.finagle.http.Method._
import com.twitter.finagle.http.Status.{BadRequest, NotFound, Ok}
import com.twitter.finagle.http.path.Root
import com.twitter.finagle.http.{Method, Request, Response}
import com.twitter.util.Future
import io.fintrospect.util.HttpRequestResponseUtil.statusAndContentFrom
import io.fintrospect.{NoSecurity, RouteSpec, ServerRoute}
import org.scalatest.{FunSpec, Matchers}

class SiteMapModuleRendererTest extends FunSpec with Matchers {

  it("renders 400") {
    new SiteMapModuleRenderer(new URL("http://fintrospect.io")).badRequest(Nil).status shouldBe BadRequest
  }

  it("renders 404") {
    new SiteMapModuleRenderer(new URL("http://fintrospect.io")).notFound(Request()).status shouldBe NotFound
  }

  it("should describe only GET endpoints of module as a sitemap") {
    val rsp = new SiteMapModuleRenderer(new URL("http://fintrospect.io")).description(Root / "bob", NoSecurity, Seq(
      endpointFor(Get),
      endpointFor(Post),
      endpointFor(Delete),
      endpointFor(Put),
      endpointFor(Options),
      endpointFor(Connect),
      endpointFor(Head),
      endpointFor(Trace)
    ))

    val (status, content) = statusAndContentFrom(rsp)
    status shouldBe Ok
    content shouldBe <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
      <url>
        <loc>
          http://fintrospect.io/bob/GET
        </loc>
      </url>
    </urlset>.toString()
  }

  private def endpointFor(method: Method): ServerRoute[Request, Response] = {
    RouteSpec().at(method) / method.toString() bindTo Service.mk[Request, Response]((r) => Future(Response()))
  }
}


text:
<?php
/*
 * LMT/Backstage/Database/Backup.php
 * LHS Math Club Website
 *
 * Produces a database backup every 15 minutes
 */

require_once '../../../.lib/lmt-functions.php';
backstage_access();

if (isSet($_GET['Download']))
	do_download();
else
	show_page();

function show_page() {
	global $meta_refresh;
	$meta_refresh = '900; URL=Backup';
	lmt_page_header('Backup');

	echo <<<HEREDOC

Backup

        This page will generate a database backup and refresh every 15 minutes.

HEREDOC;
}

function do_download() {
	$backup_name = 'LMT Backup ' . time() . '.sql';
	header('Content-Description: File Transfer');
	header('Content-Type: application/octet-stream');
	header('Content-Disposition: attachment; filename="' . $backup_name . '"');
	header('Content-Transfer-Encoding: binary');
	header('Expires: 0');
	header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
	cancel_templateify();
	ob_clean();
	flush();

	echo 'CREATE DATABASE `lmt-bak` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;' . "\n" .  'USE `lmt-bak`;' . "\n\n\n";
	$tables = array();
	$result = DB::queryRaw('SHOW TABLES');
	while($row = mysqli_fetch_row($result))
		$tables[] = $row[0];

	foreach($tables as $table) {
		$result = DB::queryRaw('SELECT * FROM '.$table);
		$num_fields = mysqli_field_count($result);

		echo 'DROP TABLE IF EXISTS '.$table.';';
		$row2 = mysqli_fetch_row(DB::queryRaw('SHOW CREATE TABLE '.$table));
		echo "\n\n".$row2[1].";\n\n";

		for ($i = 0; $i < $num_fields; $i++)
		{
			while($row = mysqli_fetch_row($result))
			{
				echo 'INSERT INTO '.$table.' VALUES(';
				for($j=0; $j<$num_fields; $j++)
				{
					if (!isset($row[$j]) || is_null($row[$j]))
						echo 'NULL';
					else {
						$row[$j] = addslashes($row[$j]);
						$row[$j] = preg_replace("\n","\\n",$row[$j]);
						echo '"'.$row[$j].'"' ;
					}
					if ($j<($num_fields-1)) { echo ','; }
				}
				echo ");\n";
			}
		}
		echo "\n\n\n";
	}
}

?>


text:
title: "Pink sweater"
excerpt: "PaperFaces portrait of @imuggle drawn with Paper by 53 on an iPad."
image:
  feature: paperfaces-imuggle-twitter-lg.jpg
  thumb: paperfaces-imuggle-twitter-150.jpg
tags: [portrait, illustration, Paper by 53]
---

PaperFaces portrait of [@iMuggle](http://twitter.com/iMuggle).

{% include boilerplate/paperfaces-2.html %}

Work in progress screenshots (Paper by 53).


text:
// ------------------------------------------------------------------------------
//  <auto-generated>
//      This code was generated by SpecFlow (http://www.specflow.org/).
//      SpecFlow Version:2.2.0.0
//      SpecFlow Generator Version:2.2.0.0
//
//      Changes to this file may cause incorrect behavior and will be lost if
//      the code is regenerated.
//  </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
#pragma warning disable
namespace YellowJacket.Core.Test.Data.Features
{
    using TechTalk.SpecFlow;

    [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "2.2.0.0")]
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [NUnit.Framework.TestFixtureAttribute()]
    [NUnit.Framework.DescriptionAttribute("Register")]
    public partial class RegisterFeature
    {

        private TechTalk.SpecFlow.ITestRunner testRunner;

#line 1 "Register.feature"
#line hidden

        [NUnit.Framework.OneTimeSetUpAttribute()]
        public virtual void FeatureSetup()
        {
            testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
            TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Register", "\tTest the Register functionnality", ProgrammingLanguage.CSharp, ((string[])(null)));
            testRunner.OnFeatureStart(featureInfo);
        }

        [NUnit.Framework.OneTimeTearDownAttribute()]
        public virtual void FeatureTearDown()
        {
            testRunner.OnFeatureEnd();
            testRunner = null;
        }

        [NUnit.Framework.SetUpAttribute()]
        public virtual void TestInitialize()
        {
        }

        [NUnit.Framework.TearDownAttribute()]
        public virtual void ScenarioTearDown()
        {
            testRunner.OnScenarioEnd();
        }

        public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
        {
            testRunner.OnScenarioStart(scenarioInfo);
        }

        public virtual void ScenarioCleanup()
        {
            testRunner.CollectScenarioErrors();
        }

        [NUnit.Framework.TestAttribute()]
        [NUnit.Framework.DescriptionAttribute("Register Success")]
        public virtual void RegisterSuccess()
        {
            TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Register Success", ((string[])(null)));
#line 4
this.ScenarioSetup(scenarioInfo);
#line 5
 testRunner.Given("I enter \'myusername\' in \'username\' textbox", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 6
 testRunner.And("I enter \'myemailaddress\' in \'EmailAddress\' textbox", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 7
 testRunner.When("I click \'Register\' button", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 8
 testRunner.Then("I see register success message", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
            this.ScenarioCleanup();
        }
    }
}
#pragma warning restore
#endregion


text:
"""
Basic convenience and internal-support functions.

Treatment of IS_NONSTRING_ITERABLE is not Python 3 compatible (basestring)
"""
import functools
import collections

NOT_IMPLEMENTED = lambda self, *args, **kwargs: NotImplemented

IS_NONSTRING_ITERABLE = lambda obj: (
    isinstance(obj, collections.Iterable)
    and not isinstance(obj, basestring)
)

def to_set(value):
    """
    @type: value: Any
    @rtype: set
    """
    if isinstance(value, set):
        return value
    elif IS_NONSTRING_ITERABLE(value):
        return set(value)
    else:
        return set([value])

def Union(*terms):  # pylint: disable=invalid-name
    """
    @type: terms: Sequence[Any]
    @rtype: set[Any]
    """
    accumulator = set()
    for term in terms:
        accumulator = accumulator.union(to_set(term))
    return accumulator

def Intersection(*terms):  # pylint: disable=invalid-name
    """
    @type: terms: Sequence[Any]
    @rtype: set[Any]
    """
    accumulator = set()
    for term in terms:
        accumulator = accumulator.intersection(to_set(term))
    return accumulator

def Difference(left, right):  # pylint: disable=invalid-name
    """
    @type: left: Iterable[Any]
    @rtype: set[Any]
    """
    return to_set(left).difference(to_set(right))


text:
[![CI Status](http://img.shields.io/travis/MoralAlberto/ExpandableTextView.svg?style=flat)](https://travis-ci.org/Alberto Moral/ExpandableTextView)
[![Version](https://img.shields.io/cocoapods/v/ExpandableTextView.svg?style=flat)](http://cocoapods.org/pods/ExpandableTextView)
[![License](https://img.shields.io/cocoapods/l/ExpandableTextView.svg?style=flat)](http://cocoapods.org/pods/ExpandableTextView)
[![Platform](https://img.shields.io/cocoapods/p/ExpandableTextView.svg?style=flat)](http://cocoapods.org/pods/ExpandableTextView)

ExpandableTextView is a library written in Swift to adapt our UIToolbar depending on the content size of our UITextView. Stay tuned for new features!

![demo](https://raw.githubusercontent.com/MoralAlberto/ExpandableTextView/master/DemoImages/demo.gif)

## Features

- [x] Expand UITextView and UIToolbar
- [x] Add right button
- [ ] Add a custom left button
- [ ] Show all the images within our Camera Roll

## Usage

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

- iOS 9.0+
- Xcode 7.2

## Installation

ExpandableTextView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```bash
pod "ExpandableTextView"
```

## Author

Alberto Moral, alberto.moral.g@gmail.com

## License

ExpandableTextView is available under the MIT license. See the LICENSE file for more info.


text:
import Fraction from './Fraction'

describe('fractions', () => {

    describe("Fraction constructor", () => {

        it("should construct a simple fraction", () => {
            const f = new Fraction(1, 2)
            expect(f.isNaN()).toBe(false)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("should construct a top heavy fraction", () => {
            const f = new Fraction(4, 3)
            expect(f.isNaN()).toBe(false)
            expect(f.numerator).toBe(4)
            expect(f.denominator).toBe(3)
        })

        it("should construct and simplify a fraction", () => {
            const f = new Fraction(2, 4)
            expect(f.isNaN()).toBe(false)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("should construct a fraction where the numerator is negative", () => {
            const f = new Fraction(-1, 2)
            expect(f.isNaN()).toBe(false)
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(2)
        })

        it("should construct a fraction where the denominator is negative", () => {
            const f = new Fraction(1, -2)
            expect(f.isNaN()).toBe(false)
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(2)
        })

        it('should construct a positive fraction if bothe the numerator and denominator are negative', () => {
            const f1 = new Fraction(-1, -2)
            expect(f1.numerator).toBe(1)
            expect(f1.denominator).toBe(2)
        })

        it("should fail to construct a fraction beacause the denominator is zero.", () => {
            const f = new Fraction(1, 0)
            expect(f.isNaN()).toBe(true)
        })

        it("should fail to construct a fraction because neither argument is an integer", () => {
            var f = null

            f = new Fraction(1.2, 3.4)
            expect(f.isNaN())
                .toBe(true)

        })

        it("should fail to construct a fraction because the first argument is not an integer", () => {
            var f = null

            f = new Fraction(1.2, 3)
            expect(f.isNaN())
                .toBe(true)

            f = new Fraction(1, 3.4)
            expect(f.isNaN())
                .toBe(true)

            f = new Fraction(null, null)
            expect(f.isNaN())
                .toBe(true)

        })

        it("should fail to construct a fraction because the second argument is not an integer", () => {
            var f = null

            f = new Fraction(1, 3.4)
            expect(f.isNaN())
                .toBe(true)

        })

        it("should fail to construct a fraction with no args", () => {
            var f = null

            f = new Fraction()
            expect(f.isNaN())
                .toBe(true)

        })

    })

    describe("Fraction absolute", function () {

        it("should leave a positive fraction unchanged", function () {
            const a = new Fraction(1, 2)
            const f = a.abs()
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("should make a negative fraction positive", function () {
            const a = new Fraction(-1, 2)
            const f = a.abs()
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

    })

    describe("Fraction equals", function () {

        it("should compare fractions to be equal", function () {
            const a = new Fraction(1, 2)
            const b = new Fraction(1, 2)
            expect(a.eq(b)).toBe(true)
        })

        it("should compare fractions to be unequal", function () {
            const a = new Fraction(1, 2)
            const b = new Fraction(1, 4)
            expect(a.eq(b)).toBe(false)
        })

        it("should compare negative fractions to be equal", function () {
            const a = new Fraction(-1, 2)
            const b = new Fraction(-1, 2)
            expect(a.eq(b)).toBe(true)
        })

        it("should compare a fraction and an integer to be equal", function () {
            const a = new Fraction(2, 1)
            expect(a.eq(2)).toBe(true)
        })

        it("should compare a fraction and a float to be equal", function () {
            const a = new Fraction(1, 2)
            expect(a.eq(0.5)).toBe(true)
        })

    })

    describe("Fraction not equals", function () {

        it("should compare same fractions to be equal", function () {
            const a = new Fraction(1, 2)
            const b = new Fraction(1, 2)
            expect(a.ne(b)).toBe(false)
        })

        it("should compare different fractions to be not equal", function () {
            const a = new Fraction(1, 2)
            const b = new Fraction(1, 4)
            expect(a.ne(b)).toBe(true)
        })

        it("should compare same negative fractions to be equal", function () {
            const a = new Fraction(-1, 2)
            const b = new Fraction(-1, 2)
            expect(a.ne(b)).toBe(false)
        })

        it("should compare different negative fractions to be not equal", function () {
            const a = new Fraction(-1, 2)
            const b = new Fraction(-1, 4)
            expect(a.ne(b)).toBe(true)
        })

        it("should compare a fraction and an integer to be equal", function () {
            const a = new Fraction(2, 1)
            expect(a.ne(2)).toBe(false)
        })

        it("should compare a fraction and an integer to be equal", function () {
            const a = new Fraction(2, 1)
            expect(a.ne(3)).toBe(true)
        })

        it("should compare a fraction and a float to be equal", function () {
            const a = new Fraction(1, 2)
            expect(a.ne(0.5)).toBe(false)
        })

        it("should compare a fraction and a float to be equal", function () {
            const a = new Fraction(1, 2)
            expect(a.ne(0.75)).toBe(true)
        })

    })

    describe("Fraction less than", function () {

        it("should compare two fractions", function () {
            const a = new Fraction(1, 4)
            const b = new Fraction(1, 2)
            expect(a.lt(b)).toBe(true)
            expect(b.lt(a)).toBe(false)
        })

        it("should compare a fraction to an integer", function () {
            const a = new Fraction(1, 4)
            expect(a.lt(1)).toBe(true)
            expect(a.lt(0)).toBe(false)
        })

        it("should compare a fraction to an float", function () {
            const a = new Fraction(1, 4)
            expect(a.lt(0.5)).toBe(true)
            expect(a.lt(0.1)).toBe(false)
        })

    })

    describe("Fraction add", function () {
        it("should add two fractions", function () {
            const a = new Fraction(1, 4)
            const b = new Fraction(1, 2)
            const f = a.add(b)
            expect(f.numerator)
                .toBe(3)
            expect(f.denominator)
                .toBe(4)
        })

        it("should add a fraction to an integer", function () {
            const a = new Fraction(1, 4)
            const f = a.add(2)
            expect(f.numerator).toBe(9)
            expect(f.denominator).toBe(4)
        })

        it("should add a fraction to a float", function () {
            const a = new Fraction(1, 4)
            const f = a.add(0.5)
            expect(f).toBe(0.75)
        })

        it("should add a fraction to a string", function () {
            const a = new Fraction(1, 4)
            const f = a.add(" hello")
            expect(f).toBe("0.25 hello")
        })

        it("should fail to add a fraction to NaN", function () {
            const a = new Fraction(1, 4)
            const f = a.add(Number.NaN)
            expect(Number.isNaN(f.valueOf())).toBeTruthy()
        })
    })

    describe("Fraction subtract", function () {

        it("should subtract two fractions", function () {
            const a = new Fraction(1, 4)
            const b = new Fraction(1, 2)
            const f = a.sub(b)
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(4)
        })

        it("should subtract a fraction from an integer", function () {
            const a = new Fraction(1, 4)
            const f = a.sub(2)
            expect(f.numerator).toBe(-7)
            expect(f.denominator).toBe(4)
        })

        it("should subtract a fraction from a float", function () {
            const a = new Fraction(1, 4)
            const f = a.sub(0.5)
            expect(f).toBe(-0.25)
        })

        it("should subtract a fraction to a string returning NaN", function () {
            const a = new Fraction(1, 4)
            const f = a.sub(" hello")
            expect(Number.isNaN(f)).toBe(true)
        })

        it("should fail to subtract a fraction from NaN", function () {
            const a = new Fraction(1, 4)
            const f = a.sub(Number.NaN)
            expect(Number.isNaN(f)).toBe(true)
        })

    })

    describe("Fraction multiply", function () {

        it("should multiply two fractions", function () {
            const a = new Fraction(1, 4)
            const b = new Fraction(1, 2)
            const f = a.mul(b)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(8)
        })

        it("should multiply a fraction by an integer", function () {
            const a = new Fraction(1, 4)
            const f = a.mul(2)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("should multiply a fraction by a float", function () {
            const a = new Fraction(1, 4)
            const f = a.mul(0.5)
            expect(f).toEqual(0.125)
        })

        it("should fail to multiply a fraction by a string", function () {
            const a = new Fraction(1, 4)
            const f = a.mul(" hello")
            expect(Number.isNaN(f)).toBe(true)
        })

        it("should fail to multiply a fraction by NaN", function () {
            const a = new Fraction(1, 4)
            const f = a.mul(Number.NaN)
            expect(Number.isNaN(f)).toBe(true)
        })

    })

    describe("Fraction divide", function () {

        it("should divide two fractions", function () {
            const a = new Fraction(1, 4)
            const b = new Fraction(1, 2)
            const f = a.div(b)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("should divide a fraction by an integer", function () {
            const a = new Fraction(1, 4)
            const f = a.div(2)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(8)
        })

        it("should divide a fraction by a float", function () {
            const a = new Fraction(1, 4)
            const f = a.div(0.5)
            expect(f).toBe(0.5)
        })

        it("should divide a fraction by a string", function () {
            const a = new Fraction(1, 4)
            const f = a.div(" hello")
            expect(Number.isNaN(f)).toBe(true)
        })

        it("should fail to divide a fraction by NaN", function () {
            const a = new Fraction(1, 4)
            const f = a.div(Number.NaN)
            expect(Number.isNaN(f)).toBe(true)
        })

    })

    describe("Fraction negate", function () {

        it("should make a positive fraction negative", function () {
            const a = new Fraction(1, 2)
            const f = a.neg()
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(2)
        })

        it("should make a negative fraction positive", function () {
            const a = new Fraction(-1, 2)
            const f = a.neg()
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

    })

    describe("Fraction inverse", function () {

        it("should invert fraction", function () {
            const a = new Fraction(3, 4)
            const f = a.inv()
            expect(f.numerator).toBe(4)
            expect(f.denominator).toBe(3)
        })

        it("should invert a negative fraction", function () {
            const a = new Fraction(-3, 4)
            const f = a.inv()
            expect(f.numerator).toBe(-4)
            expect(f.denominator).toBe(3)
        })

    })

    describe("Fraciton Parse", function () {

        it("Should parse a simple fraction.", function () {
            const f = Fraction.parse("1/2")
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("Should parse a top heavy fraction.", function () {
            const f = Fraction.parse("1 1/2")
            expect(f.numerator).toBe(3)
            expect(f.denominator).toBe(2)
        })

        it("Should parse a whole number.", function () {
            const f = Fraction.parse("2")
            expect(f.numerator).toBe(2)
            expect(f.denominator).toBe(1)
        })

        it("Should parse a simple negative fraction.", function () {
            const f = Fraction.parse("-1/2")
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(2)
        })

        it("Should parse a negative top heavy fraction.", function () {
            const f = Fraction.parse("-1 1/2")
            expect(f.numerator).toBe(-3)
            expect(f.denominator).toBe(2)
        })

        it("Should parse a whole negative number.", function () {
            const f = Fraction.parse("-2")
            expect(f.numerator).toBe(-2)
            expect(f.denominator).toBe(1)
        })

        it("Should parse a simple positive fraction.", function () {
            const f = Fraction.parse("+1/2")
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it("Should parse a positive top heavy fraction.", function () {
            const f = Fraction.parse("+1 1/2")
            expect(f.numerator).toBe(3)
            expect(f.denominator).toBe(2)
        })

        it("Should parse a whole positive number.", function () {
            const f = Fraction.parse("+2")
            expect(f.numerator).toBe(2)
            expect(f.denominator).toBe(1)
        })

    })

    describe("Fraction toString", function () {

        it("should display a simple fraction", function () {
            const f = new Fraction(1, 2).toString()
            expect(f).toBe("1/2")
        })

        it("should display a top heavy fraction", function () {
            const  f = new Fraction(3, 2).toString()
            expect(f).toBe("1 1/2")
        })

        it("should display a whole number", function () {
            const f = new Fraction(1, 1).toString()
            expect(f).toBe("1")
        })

        it("should display a negative simple fraction", function () {
            const f = new Fraction(-1, 2).toString()
            expect(f).toBe("-1/2")
        })

        it("should display a negative top heavy fraction", function () {
            const f = new Fraction(-3, 2).toString()
            expect(f).toBe("-1 1/2")
        })

        it("should display a negative whole number", function () {
            const f = new Fraction(-1, 1).toString()
            expect(f).toBe("-1")
        })

        it("should display NaN", function () {
            const  f = new Fraction().toString()
            expect(f).toBe(Number.NaN.toString())
        })

        it("should display 0", function () {
            const  f = new Fraction(0, 1).toString()
            expect(f).toBe("0")
        })

    })

    it('Should round fraction to denominator', function () {

        let f1, f2, adj = new Fraction(1, 100)

        f1 = new Fraction(1, 5)
        f2 = f1.add(adj).roundTo([2, 3, 4, 5])
        expect(f2.eq(f1)).toBeTruthy()

        f1 = new Fraction(1, 4)
        f2 = f1.add(adj).roundTo([2, 3, 4, 5])
        expect(f2.eq(f1)).toBeTruthy()

        f1 = new Fraction(1, 3)
        f2 = f1.add(adj).roundTo([2, 3, 4, 5])
        expect(f2.eq(f1)).toBeTruthy()

        f1 = new Fraction(1, 2)
        f2 = f1.add(adj).roundTo([2, 3, 4, 5])
        expect(f2.eq(f1)).toBeTruthy()

        f1 = new Fraction(1, 4)
        f2 = f1.add(adj).roundTo([2, 3, 4, 5])
        expect(f2.eq(f1)).toBeTruthy()

        f1 = new Fraction(473176473, 9092180000)
        f2 = f1.roundTo([2, 3, 4, 8])
        expect(f2.eq(new Fraction(1, 8))).toBeTruthy()

    })

    it('should rationalise a fraction', () => {
        const f1 = new Fraction(473176473, 9092180000)
        const f2 = f1.rationalise(0.01)
        expect(f2.eq(new Fraction(1, 17))).toBeTruthy()
    })

    describe("Fraction fromFloat", function () {

        it('should convert simple float', function () {
            const f = Fraction.fromFloat(0.5)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(2)
        })

        it('should convert complex float', function () {
            const f = Fraction.fromFloat(1.0 / 3.0)
            expect(f.numerator).toBe(1)
            expect(f.denominator).toBe(3)
        })

        it('should convert simple negative float', function () {
            const f = Fraction.fromFloat(-0.5)
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(2)
        })

        it('should convert negative complex float', function () {
            const f = Fraction.fromFloat(-1.0 / 3.0)
            expect(f.numerator).toBe(-1)
            expect(f.denominator).toBe(3)
        })

        it('should convert NaN', function () {
            const f = Fraction.fromFloat(Number.NaN)
            expect(f.isNaN()).toBe(true)
        })

    })
})


text:
package com.twitter.finagle.liveness;

/**
 * A Java adaptation of the {@link com.twitter.finagle.liveness.FailureDetector} companion object.
 */
public final class FailureDetectors {
  private FailureDetectors() { }

  /**
   * Default config type for {FailureDetector}
   *
   * @see FailureDetector$#globalFlagConfig
   */
  public static final FailureDetector.Config GLOBAL_FLAG_CONFIG =
    FailureDetector.GlobalFlagConfig$.MODULE$;

  /**
   * Null config type for {FailureDetector}
   *
   * @see FailureDetector$#nullConfig
   */
  public static final FailureDetector.Config NULL_CONFIG =
    FailureDetector.NullConfig$.MODULE$;
}


text:
package uk.ac.ebi.pride.cluster.search.service.repository;

import org.springframework.data.solr.core.SolrTemplate;
import org.springframework.data.solr.repository.support.SolrRepositoryFactory;

/**
 * @author Jose A. Dianes <jadianes@gmail.com>
 *
 */
public class SolrClusterRepositoryFactory {
    private SolrTemplate solrTemplate;

    public SolrClusterRepositoryFactory(SolrTemplate solrTemplate) {
        this.solrTemplate = solrTemplate;
    }

    public SolrClusterRepository create() {
        return new SolrRepositoryFactory(this.solrTemplate).getRepository(
                SolrClusterRepository.class,
                new SolrClusterRepositoryImpl(this.solrTemplate));
    }
}


text:
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>
    Makers @ UVA -

      MILTON-AIRFIELD-HANGAR

  </title>

  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

  <link type="text/css" rel="stylesheet" href="/css/materialize.min.css"  media="screen,projection"/>

  <link rel="stylesheet" href="/css/makergrounds.css" type="text/css">

        menu

 About

 Map

 Locations

 People

 Newsletters

 About

 Map

 Locations

 People

 Newsletters

Milton Airfield Hangar

            The airport hangar at Milton Airfield has a fully equipped woodshop and space for full scale prototyping and design/build projects. In the past, projects at Milton have included ecoMOD, reCOVER, and the Elizabeth River Learning Barge. Studios and courses building at this large scale can coordinate space and schedule through Melissa on a semester basis.

http://www.arch.virginia.edu/fabrication

Location:

Milton Airfield, 2300 Milton Road

Access:

After an initial project submittal and a training, groups can gain access to the space.  The Landscape Lab uses the buddy system.  Any shop use in the hangar uses a three buddy system.  (Engineering has a different system.)  All projects must be on the radar of Fritz Franke (frf1z@virginia.edu) who is the larger site coordinator.

Hours:

Contact:

goldman@virginia.edu

434.924.6443

Send questions, corrections and comments about the website to

            makergroundwebsite@virginia.edu
            mail

© 2020 by the Rector and Visitors of the University of Virginia

      Copyright & Privacy


text:
// Copyright (c) 2014 Daniel Paul Searles
//
// See the file LICENSE in the root of this project for copying permission.
//
// AppDelegate.h
// objective-octocat-notifications
//

#import <Cocoa/Cocoa.h>
#import "OonStatusBarController.h"

@interface AppDelegate : NSObject <NSApplicationDelegate, NSUserNotificationCenterDelegate>
{
    IBOutlet NSMenu *statusMenu;
}

/**
 * The key used to store in user defaults whether or not we've asked the user if we should add the app to the user login items.
 */
@property NSString *haveAskedIfWeShouldAddToLoginItemsDefaultsKey;

/**
 * The controller for the status bar menu.
 */
@property OonStatusBarController *statusItemController;

/**
 * This is a handler for url events such as the OAuth callback.
 */
 - (void)handleGetURLEvent: (NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent;

/**
 * Checks user defaults to know whether or not to ask if we should add the app to user login items. Then it will ask the user if we haven't already done so.
 *
 * @return User's answer or false if we've already asked the user.
 */
- (BOOL)shouldAddToLoginItems;

/**
 * Add this app to the user login items if shouldAddToLoginItems returns true.
 */
- (void)addToLoginItems;

@end


text:
#ifndef __DynLibManager_H__
#define __DynLibManager_H__

#include "OgrePrerequisites.h"
#include "OgreSingleton.h"

namespace Ogre {
	/** \addtogroup Core
	*  @{
	*/
	/** \addtogroup General
	*  @{
	*/
	/** Manager for Dynamic-loading Libraries.
        @remarks
            This manager keeps a track of all the open dynamic-loading
            libraries, opens them and returns references to already-open
            libraries.
    */
    class _OgreExport DynLibManager: public Singleton<DynLibManager>, public DynLibAlloc
    {
	protected:
		typedef map<String, DynLib*>::type DynLibList;
		DynLibList mLibList;
    public:
        /** Default constructor.
            @note
                <br>Should never be called as the singleton is automatically
                created during the creation of the Root object.
            @see
                Root::Root
        */
        DynLibManager();

        /** Default destructor.
            @see
                Root::~Root
        */
        virtual ~DynLibManager();

        /** Loads the passed library.
            @param
                filename The name of the library. The extension can be omitted
        */
        DynLib* load(const String& filename);

		/** Unloads the passed library.
		@param
		filename The name of the library. The extension can be omitted
		*/
		void unload(DynLib* lib);

		/** Override standard Singleton retrieval.
        @remarks
        Why do we do this? Well, it's because the Singleton
        implementation is in a .h file, which means it gets compiled
        into anybody who includes it. This is needed for the
        Singleton template to work, but we actually only want it
        compiled into the implementation of the class based on the
        Singleton, not all of them. If we don't change this, we get
        link errors when trying to use the Singleton-based class from
        an outside dll.
        @par
        This method just delegates to the template version anyway,
        but the implementation stays in this single compilation unit,
        preventing link errors.
        */
        static DynLibManager& getSingleton(void);
        /** Override standard Singleton retrieval.
        @remarks
        Why do we do this? Well, it's because the Singleton
        implementation is in a .h file, which means it gets compiled
        into anybody who includes it. This is needed for the
        Singleton template to work, but we actually only want it
        compiled into the implementation of the class based on the
        Singleton, not all of them. If we don't change this, we get
        link errors when trying to use the Singleton-based class from
        an outside dll.
        @par
        This method just delegates to the template version anyway,
        but the implementation stays in this single compilation unit,
        preventing link errors.
        */
        static DynLibManager* getSingletonPtr(void);
    };
	/** @} */
	/** @} */
}

#endif


text:
ludwig train \
	--dataset train_example_imbdb.csv \
 	--config_file imdb_model_definition_2.yaml


text: __author__ = 'vkostenko'


text:
module Forem
  module Admin
    class ForumsController < BaseController
      before_filter :find_forum, :only => [:edit, :update, :destroy]

      def index
        @forums = Forum.all
      end

      def new
        @forum = Forem::Forum.new
      end

      def create
        @forum = Forem::Forum.new(params[:forum])
        if @forum.save
          flash[:notice] = t("forem.admin.forum.created")
          redirect_to admin_forums_path
        else
          flash.now.alert = t("forem.admin.forum.not_created")
          render :action => "new"
        end
      end

      def update
        if @forum.update_attributes(params[:forum])
          flash[:notice] = t("forem.admin.forum.updated")
          redirect_to admin_forums_path
        else
          flash.now.alert = t("forem.admin.forum.not_updated")
          render :action => "edit"
        end
      end

      def destroy
        @forum.destroy
        flash[:notice] = t("forem.admin.forum.deleted")
        redirect_to admin_forums_path
      end

      private

        def find_forum
          @forum = Forem::Forum.find(params[:id])
        end

    end
  end
end


text:
import sys
import os
import __builtin__

from ctypes import *
from cStringIO import StringIO
from termcolor import cprint

import colorama
global here
global test_functions

here = os.getcwd()
test_functions = set([])

# Constant format output strings
success_string  = '[OK] {}'
fail_string     = '[KO] {}'
problem_string  = '[KO] {}: Process exited with error code {}'
success_color   = 'green'
fail_color      = 'red'
print_args      = []
print_success = lambda *args: cprint(success_string.format(*args),
                                     success_color)
print_fail    = lambda *args: cprint(fail_string.format(*args),
                                     fail_color)
print_problem = lambda *args: cprint(problem_string.format(*args),
                                     fail_color)

# Init rift with lib name
def init(lib_name):
    """lib_name -- name of the .so to load
    """
    colorama.init()
    __builtin__.lib = cdll.LoadLibrary(here + "/" +  lib_name)

# Decorator for functions attempting to be tested
def Test(func):
    """Decorator registering test functions.
    Test function have to return a boolean and can modify the output by
    changing rift.success_string, rift.fail_string, rift.print_args values.
    """
    test_functions.add(func)

# Stdout catching
class _Capturing(list):
    """Capturing capture printed content and add it in itself.
    Use guide:
    with Capturing() as stdout, stderr:
        do_something(my_object)
    """
    def __enter__(self):
        self._stdout = sys.stdout
        self._stderr = sys.stderr
        sys.stdout = self._stdoutio = StringIO()
        sys.stderr = self._stderrio = StringIO()
        return self
    def __exit__(self, *args):
        self.extend((self._stdoutio.getvalue().splitlines(),
                      self._stderrio.getvalue().splitlines()))
        sys.stdout = self._stdout
        sys.stderr = self._stderr

# Call method that capture return value, stdout and stderr
def call(func, ret_type, *args):
    """call(func, ret_type, *args) -> (ret_value, stdout, stderr)
    Call a fucntion and return it value cast with ret_type and also stdout
    and stderr.
    func     -- function ptr accessible through `lib` global variable.
    ret_type -- return type of the c function (ctypes type)
    """
    ret = None
    stdout = None
    stderr = None
    func.restype = ret_type
    with _Capturing() as streams:
        ret = func(*args)
    return (ret, streams[0], streams[1])

def run_tests(handle_fail=False):
    """Run all tests."""
    for test in test_functions:
        print_args = [test.__name__]
        if handle_fail:
            child_pid = os.fork()
            if child_pid == 0:
                if test():
                    print_success(*print_args)
                else:
                    print_fail(*print_args)
            else:
                _, ret_code = os.waitpid(child_pid, 0)
                if ret_code != 0:
                    print_args.append(ret_code)
                    print_problem(*print_args)
        else:
          if test():
              print_success(*print_args)
          else:
              print_fail(*print_args)


text:
import { paths, getEntry, getOutput, getSVGRules, loaders, plugins, combine } from 'kiwiai';

const { styleLoader, cssLoader, postcssLoader, lessLoader, urlLoader,
  babelLoader, jsonLoader, getDefaultLoaderOptions } = loaders;

const cssOptions = {
  importLoaders: 1
};

const babelOptions = getDefaultLoaderOptions( 'babel' );
babelOptions.plugins.push( 'transform-class-properties' );
babelOptions.plugins.push( 'transform-decorators-legacy' );
babelOptions.plugins.push([ 'transform-es2015-modules-commonjs', { loose: true }]);
babelOptions.plugins.push( 'transform-es3-member-expression-literals' );
babelOptions.plugins.push( 'transform-es3-property-literals' );

const srcInclude = [
  paths.appSrc,
  paths.resolveApp( 'examples' )
];

export default {
  devtool: 'cheap-module-source-map',
  entry: getEntry(['./examples/index.js']),
  output: getOutput(),
  resolve: {
    modules: [
      paths.ownNodeModules,
      paths.appNodeModules
    ],
    extensions: [ '.js', '.json' ]
  },
  module: {
    rules: [{
      exclude: [
        /\.html$/,
        /\.js$/,
        /\.(css|less)$/,
        /\.json$/,
        /\.svg$/
      ],
      use: [urlLoader()]
    }, {
      test: /\.js$/,
      include: srcInclude,
      use: [babelLoader( babelOptions )]
    }, {
      test: /\.css$/,
      include: srcInclude,
      use: [
        styleLoader(),
        cssLoader( cssOptions ),
        postcssLoader()
      ]
    }, {
      test: /\.less$/,
      include: srcInclude,
      use: [
        styleLoader(),
        cssLoader( cssOptions ),
        postcssLoader(),
        lessLoader()
      ]
    }, {
      test: /\.css$/,
      include: paths.appNodeModules,
      use: [
        styleLoader(),
        cssLoader( cssOptions ),
        postcssLoader()
      ]
    }, {
      test: /\.less$/,
      include: paths.appNodeModules,
      use: [
        styleLoader(),
        cssLoader( cssOptions ),
        postcssLoader(),
        lessLoader()
      ]
    }, {
      test: /\.json$/,
      use: [jsonLoader()]
    }]
  },
  plugins: combine(
    plugins.Define(),
    plugins.HotModuleReplacement(),
    plugins.CaseSensitivePaths(),
    plugins.WatchMissingNodeModules(),
    plugins.SystemBellWebpack(),
    plugins.CopyPublic(),
    plugins.CommonsChunk(),
    plugins.HtmlWebpack({
      favicon: ''
    })
  ),
  node: {
    fs: 'empty',
    net: 'empty',
    tls: 'empty'
  }
};


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><meta name=keywords content=Concord JFK></meta>
<link rel=stylesheet type=text/css href=styles.css></link>

Posts about: "JFK" [Posts: 82 Pages: 5]

Page Links: First
 Previous
 1
 2
 3
 4

 5
 Next
 Last
 Index Page

EXWOK
22nd Dec 2010, 21:43
permalink
 Post: 953

   HLI

  For spfoster:

  You've pretty much worked HLI out. No particular special requirements, it was normally associated with 54% CG departures, since that was the norm with high fuel loads.

  Contacts were bridged which allowed some of the tanks to operate at a higher level before shut-off. Sounds simple, doesn't it? But it was a pain in the a***.

  The tanks were first filled to normal level (this got tank 11 filled) then a metered amount was uplifted with the bridges in place to those tanks with HLI (M2dude will remind me which they were.....I'm guessing 5,6,7,8 and maybe 9&10?????). It could take ages.

  It was invariably followed by a taxy with a Pre Take Off Burn Off to get the CG to its correct position, so you now had the problem that you had to burn enough fuel from tanks 1-4 to allow them to be topped up by tanks 5 & 7 to the extent that 5 & 7 could accept fuel from tank 11 to bring the CG fwd to 54%. Because they were so full it could take ages to get 5 & 7 to accept fuel and then any bump or turn would shut them off. So overall you've filled the tanks, presumably because you need the fuel, but because you've done this you have to burn loads of fuel taxying while you get the CG sorted out.

  As you guess, it was mainly a LHR-BGI thing, or a JFK with weather problems, and more often than not you gained very little.

ChristiaanJ
1st Jan 2011, 20:51
permalink
 Post: 1058

    Quote:

       Originally Posted by

        DavvaP

       Only mention that I found on the internet about this, was on the bbc website from a comment from "

          Paul Goes, Luxembourg"

       http://news.bbc.co.uk/1/hi/talking_point/3207836.stm

       I'm sure there will be more informed people to comment on this though ;-)

    Quote:

      My most vivid memory of Concorde dates back to that fantastic day back in 1985, July 13th. Live Aid in Wembley, when Phil Collins flew across the Atlantic to play JFK stadium in Philadelphia after playing Wembley. The Concorde he was travelling on made a salute flyover Wembley before speeding away across the Atlantic. The crowd roar was phenomenal!

      Paul Goes, Luxembourg

  That was obviously a personal memory... so it did happen!

  CJ

  PS I was just reading all the other comments from that BBC link.... Sad.

M2dude
15th Jan 2011, 10:59
permalink
 Post: 1100

   A Journey Back In Time !!

  OK, here is a photo that I took at Fairford in November 1976. I'd just had my very first Concorde flight on a brand new G-BOAD, and took this flight deck photo in the hangar later that afternoon (the doors are open hence the late afternoon Cotswold sky. The point of this rather poor (sorry guys, I was young for goodness sake) photo is to look at just how subtly different the 1976 flight deck WAS.

  The first thing I know EXWOK and BELLEROPHON will (maybe) notice is that originally OAD had a 'normal colour' electroluminescent light plate on the visor indication panel. (If I remember rightly (it was a million years ago chaps) when this one 'stopped lighting' we could not get a replacement and had to rob 202 (G-BBDG) at Filton; this one being the same black development aircraft colour that OAD has to this day.

  The OTHER first thing that you may notice is the Triple Temperature Indicator on the captains dash panel. (The first officer had his in in similar position). These got moved around (twice in the end) when TCAS was installed in the mid-90's. It was amazing just how much equipment got moved around over the years, in order to 'shoe-horn in' various bits of extra equimpent.

  The cabin altimeter here fitted just above the #1 INS CDU also got moved (to the centre consul) when the FAA 'Branniff' modifications were embodied later in the 70's. It's spot got occupied by a standy altimeter mandated by the FAA but this was removed after Branniff ceased flying Concorde; the cabin altimeter returning to it's former home. The REALLY observant will notice that there is neither an Autoland Ca3/Cat2 identifier on the AFCS panel (glued on by BA at LHR) or the famous and precision built 'Reheat Capabilty Indicator' flip down plate fitted to the centre dash panel a few years later by BA.

  Also not shown here, as they were buyer furnished equipment also fitted at on delivery LHR, are the two ADEUs (Automatic Data Entry Units, or INS Card readers). These were located immediatel aft of the CDU's and were used for bulk waypoint loading ('bulk' being 9, the most that the poor old Delco INU memory could handle). These were removed in the mid 90's when the Navigation Database was fitted to Concorde INUs, and bulk loading then was achieved by simply tapping in a 2 digit code. (Hardly the elegence of FMS, but still very elegent in comparison with the ADEU's, and worked superbly). A little note about these ADEU things; You inserted this rather large optically read paper data card into the thing and the motor would suck the unsuspecting card in. As often as not the ADEU would chew the card up and spit the remnants out, without reading any data, or not even bother spitting out the remnants at all. Removing these things FINALLY when the INUs were modified was absolute joy!!

  ps. When G-BOAG (then G-BFKW) was delivered in 1980 it had neither any of the Branniff mods or ADEUs fitted. (Also the INS was not wired for DME updating). This meant that obviously she could not fly IAD-DFW with Branniff but also she could not do LHR-BAH either, because of the lack ADEUs. (You could not manually insert waypoints quick enough over the 'Med', or so the guys told me. So for the first few years good old FKW/OAG just used to plod between LHR and JFK. And plod she did, superbly. She never did get the ADEUs (not necessary thank goodness when the INUs got modified) but we wired in DME updating and so she could navigate around with the best of them.

  My gosh I do prattle on, sorry guys.

  Best regards

  Dude

  PS Welcome back Landlady, hope you've recovered from your fall XXXX

   Last edited by M2dude; 15th Jan 2011 at

    11:29

   .

M2dude
26th Jan 2011, 12:18
permalink
 Post: 1137

   So many vivid memories from so many people.

   I suppose personally I'll always remember the first time that I ever saw Concorde flying as well as the

    LAST

   time

    :

   The very first, as I posted here many months ago, was in 1970 when I, as a young grotty little RAF erk, was in Swindon and heard this loud roar in the sky over what was then Bon March\xe9 (Now Debenhams). Looking up I saw this amazing sight of 002 complete with her attending Canberra chase plane flying over. (And trailing a sizable black exhaust plume to boot).

   The very

    LAST

   time I saw her flying was in November 2003 at the side of LHR 27R as G-BOAF, the last Concorde ever built and the last one ever to fly, made her final departure out of a very dismal Heathrow bound for Filton. For me, the weather at LHR that day perfectly matched to gloom of the occasion I'm afraid.

   A really lasting memory I wil always treasure is while my now VERY grown up children were still young, they were (almost) as big Concorde 'nuts' as their dad. Concorde would fly over our house daily and they would run to the window every time they heard the sound of an aeroplane. The general disappointed chant they would come out with was

    'it's not Concorde dad, it's just a plane'. For the life of me I don't know why they would develop THAT kind of prejudice and from whom they would get it from

     . (I used this particular ditty in a 2003 Concorde BBC TV documentary we did, but my cover is blown here anyway, so what the hell

     .

    EXWOK

    Quote:

      And I still have to stare wistfully at OAB whenever I drive past the engineering base en-route to Cranebank.

  I went over base for a meeting last week and saw OAB parked at the side of the apron. I had several lumps in my throat as I drove past too I have to admit. To think that the last time OAB flew was in August 2000. when Les and the boys brought her back empty from JFK after the CAA pulled the Concorde C of A.

  Hopefully she will get a fitting 'home' soon so that more people can marvel at our absolutely beautiful and truly timeless aviation icon

   Best regards

   Dude

   Last edited by M2dude; 26th Jan 2011 at

    13:49

   .

artee
27th Jan 2011, 00:22
permalink
 Post: 1143

   SLFConcordeBore

  Please please please let me be a SLFConcordeBore - 1 post, then I\x92ll shut up.

  2 items that I had on my \x93Do before I die\x94 list were \x93Sail into New York on QE2\x94 (sadly, didn\x92t happen, now obviously won\x92t), and \x93Fly on Concorde\x94.

  Part of the enthusiasm for Concorde came from a friend in the Middle East, who worked for Airwork, who did contract maintenance for your air force. He was based in Saudi Arabia IIRC, working on Lightnings. As an expat in Saudi (good pay + no tax = high disposable), when he had some leave available at one point he took Concorde from Bahrein - London - Bahrein. Loved every moment.

  He told the lovely story of his first day back after his hols, when a Lightning pilot came in in his G-suit, saying \x93I\x92ve just done Mach 2\x94 (you know where this is going...) to which Slim was able to reply \x93I did that yesterday - and I was drinking champagne at the time\x94. What an astonishing aeroplane Concorde was.

  I got to fly Concorde courtesy of BA - they called one day and asked if I\x92d like to fly Concorde LHR - JFK - LHR, out one day, back the next, put up overnight at the Waldorf Astoria - all courtesy of BA. After the \x93is this a practical joke?\x94, and \x93what\x92s the catch?\x94, it transpired that they did invite people from time to time for this type of trip, and somehow my name came out of the hat.

  A truly memorable trip - the acceleration, the hot windows, the fantastic service (and excellent food & wine), trip to cockpit, and the \x93Concorde grin\x94. Memorable guests on the way out were Paul & Linda McCartney, with children and minder. I seem to recall that the takeoff from JFK was even more spectacular than the one from LHR. It just seemed to jump out of the blocks and keep going.

  Also notable were how much of a private club it was - the crew were welcoming passengers to New York, and saying to various passengers things like \x93I didn\x92t see you last week\x94, with the passenger replying \x91Oh no, I couldn\x92t make it last week, but I\x92ll see you again next week\x94 etc.

  Thanks to everyone, ChristiaanJ, M2dude, Bellerophon, EXWOK, Brit123, landlady and stilton and all the others for a wonderful thread about a wonderful plane.

Coffin Dodger
16th Feb 2011, 15:30
permalink
 Post: 1189

  Gentlemen (and ladies) on this superb thread. I hope this question isn't too "spotterish" but I'm sure it can be answered here. I've learned sooooo much about this gorgeous aircraft reading these pages.

  I was listening to this radio dialogue between the last Concorde to leave JFK on Youtube here:

   YouTube - Last concorde communication with JFK.wmv

  It's actually a very lovely (well to me it is) almost 7 minutes, with the very final sentences spoken each way - such a nice touch. Just being humble SLF though, I can't work out what "Mike" means in the dialogue i.e.

   For the last time, Speedbird Concorde 2 IFR London Heathrow with

    Mike

   requesting a Canarsie climb.

  Also

   ... expect FL290 10 minutes after, Squawk 1136 and

     Mike

   is the

    ####

  What's Mike and also the #### term?

  Thanks. CD

twochai
17th Feb 2011, 02:44
permalink
 Post: 1194

    Quote:

      Given how much approbation she collected the first time she went to New York, it seems New Yorkers eventually found a place in their hearts for her.

  Let's be clear folks, Concorde would have never operated to JFK without a very generous interpretation of the applicable noise abatement rules by the FAA/PoNYA guys who signed it off. Who else has ever approved a 30 degree banked turn initiated at 100' on departure as an SOP on a heavy aircraft??

  Concorde had that 'je ne sais quoi' that encouraged airplane people everywhere to think big and ask themselves 'what can be done?'.

  Correct me if I'm wrong, but I do not remember anybody ever whining (at least in print) about the significant premium revenue traffic diverted from the competing US airlines!

  Of course, if the Yanks had actually produced an SST, things might have been very different.

   Last edited by twochai; 17th Feb 2011 at

    03:17

   .

NW1
24th Jun 2011, 00:15
permalink
 Post: 1399

  <<

   I'm guessing you mean rate of climb rather than IAS?

  >>

  <<No, I meant the airspeed you'd be flying at while climbing (post takeoff)>>

   OK, then the answer to your Q's:

  Also what was the typical climb speed

  - At lift-off?

   About 200kts

  - Once 240 kts is achieved?

   240kts

  - At minimum maneuvering speed at typical takeoff weight?

   Vla after takeoff was V2 until 15,000'. I.E. about 220kts

  - At MTOGW?

   V2 didn't vary much by weight

   Out of JFK we flew at Vmo once further than 12nms from the coast. Vmo=400kts IAS at low level.

   Out of LHR overland the IAS restriction was 300kts until past the speed limit point early in the SID - much less draggy than 250kts and hence better climb rates. But you'd quickly be released to get to 400kts (barder's pole) where it was designed to be flown.

  <<Why higher speed? That have to do with shockwaves and the resulting pressure distribution differences?>>

   The flight envelope was bigger and more complex than subsonic types: it was developed in flight test and probably had many considerations involved. I think someone posted it earlier in this thread in graphical form (from the flight manual) if you want to see it. In practice, you had to be aware of three basic parameters - IAS, Mach and CG position (the CG "corridor"). Once understood, it wasn't that difficult to keep up with it...and the IAS and Machmeters had barber's poles handily programmed to show the limiting values (including, cleverly, max temp on the nose Tmo=127 degrees celcius).

   Regarding climb rates - best ROC was at 400kts (MTOW) or 380kts (MLW). As speed reduced below that, drag increased and ROC reduced. At MTOW and 400kts you'd get about 4000fpm max dry power. At 250kts it was all noise and very few feet per minute - after noise abate procedures you had to lower the nose, just barely climb, and get IAS up toward min drag as soon as possible. With an engine failed go for 300kts minimum - Vmo as soon as you can.

  <<shockwaves and the resulting pressure distribution differences>>

   You had to avoid the "transonic" region due to these effects: maximum subsonic cruise was 0.95M due to the auto-stabilised flying controls become over-active as shockwaves started to "dance" around the airframe (usually asymmetrically). This calmed down by about 1.3M in the acceleration (when the intake ramps started to do their thing). To accelerate to 2.0M you needed reheat until 1.7M so you didn't hang around between 0.95M and 1.7M. FL260 was best for subsonic cruise because at that level 400kts IAS = 0.95M...

   Last edited by NW1; 24th Jun 2011 at

    09:09

   .

Mr Hoppy
13th Dec 2011, 00:13
permalink
 Post: 1524

   Performance Question

     Could I ask a performance question of you folks?

     I was watching the ITVV Concorde program the other day and a couple of things really stood out. The noise abatement take off from JFK looked pretty alarming from a climb rate point of view, looked like the aircraft tottered over the coastline with a pretty low rate of climb compared to the subsonic stuff. That being said she was supersonic 12 minutes after the thrust levers were advanced so she could certainly pick up her heels.

     So the question is, if you were operating the aircraft out of somewhere with no climb or noise abatement restrictions (BGI?) on an average day with make take off weight what would be the typical time to M1? Course the 7 year old in me also want to know what the fastest time was that you saw on a revenue trip.

green bean
17th Dec 2011, 23:03
permalink
 Post: 1535

   A catering question if I may...

  Time for a foodie slot..

  way way back in the T3 days, catering ex JFK.. does the term "Hero Roll" ring bells with anyone here?

  GB.

gordonroxburgh
17th Dec 2011, 23:35
permalink
 Post: 1536

  Re : 9min to mach 2.

  Not sure you can get CG back that quickly.

  In the (restored) Sim with a lightweight fuel load that will not get you anywhere and not bothering about the CG, the absolute minimum time to Mach 2 at 50,000ft on a pretty constant VMO chase is just over 15mins, so really unlikely that this was possible in real life....but will stand corrected if someone says other wise.

  The A/C had diverted to cardiff as they had suffered a engine surge due to a double intake lane failure and had to slow to subsonic early. That coupled with additional time with engines running at JFK meant they were just not comfortable about coming to London and possibly declaring a fuel emergency.

TomTTom
22nd Apr 2012, 07:09
permalink
 Post: 1592

   RE: Debow

  In the ITVV documentary, the SFE Roger Bricknell mentioned the selection of debow of #3 engine upon startup on the JFK to LHR leg, due to the downtime of the engine. This essentially delays the heat-up of the turbine shaft in favor of a more evenly temperature distribution.

  Why wasn't the debow selected for all the other engine? (Roger explicitly mentioned to not needing to select the other engines for debow)

  Forgive me, I'm probably missing something that was mentioned earlier in this great thread.

phil@LFPG
16th Jul 2012, 08:08
permalink
 Post: 1658

  the best thread ever on the net and so polite.

  all those technicals and in deep infos.

  i never flown myself the Concorde but my dad made one CDG DKR RIO and one CDG JFK and as others mention he was smiling back from those flights even the flights were for work.

  i had the chance to see the Concorde at night in the AF maintenance at CDG it was called Airbus-Concorde division and despite i was more on the other side : the 747 division i loved to stay around and just watching that wonderful Bird waiting to fly the next morning.

  alas when moving to Canada we lost all the pictures and souvenirs of those days but they re back with you.

  thank you Lady and Gentlemen.

  and Bravo, merci.

   Last edited by phil@LFPG; 16th Jul 2012 at

    08:09

   .

booforty
24th Jul 2012, 15:11
permalink
 Post: 1659

  Wow, what an amazing thread which I have only recently found.

  Congratulations to all for a fascinating read

  Although I never got the opportunity to fly on Concorde, I will never forget seeing her fly some charters from Filton in the late 1990's. On one occasion I was stood at the wire fence at the end of runway 27 and watched Concorde taxi directly towards me, do a 360 degree turn and line up for takeoff. Concorde was only around 100ft-150ft away from me when the throttles were opened. Luckily I was holding tightly onto the fence and got a face full of dust as the reheats kicked in!

  The noise, power and heat I felt from those Olympus engines was phenomenal. She looked stunning as she rotated amongst the heat haze and the slender delta climbed steeply away towards the Bristol Channel. What an aircraft!

  My grandfather worked on the Olympus 593 engines at Rolls Royce in Filton, so I will always hold Concorde close to my heart. I have been onboard Foxy at Filton when she was open to the public and I have visited 002 at Yeovilton and 101 at Duxford. I live quite close to Delta Golf at Brooklands and have been onboard her about 4 times now (including a sit in the cockpit) and recently flew the fantastic Concorde simulator with Captain John Eames and First Officer Ian Smith which is a day I will treasure. Opening up the throttles for take-off on 31L at JFK and tackling the checkerboard landing at Kai Tak were experiences I will never forget.

  Keep up the great postings everyone!

blind pew
6th Sep 2012, 11:54
permalink
 Post: 1687

  Green bean

  Remember the Heros well, one of the pleasures of JFK especially having grown up on spam.....

  Sonic booms

  Experienced the trials in the sixties over East Anglia, one rogue one over Berkshire in the 70s, three or four from the French concorde whilst sailing across the channel and latterly annual ones from the French airforce.

  The Concorde ones seemed much louder and frightening - first time I thought we had hit a mine (wouldn't be the first time although fortunately it didn't explode).

  And contrary to a previous opinion they did do damage - odd window and a vase.

   Last edited by blind pew; 6th Sep 2012 at

    11:55

   .

tdracer
18th Oct 2013, 05:16
permalink
 Post: 1729

  Many years ago, I'd flown into Heathrow (after a horrible flight - a 6+ hour delay after pushback at JFK due to weather). I was in line to pick up my rental car when suddenly there was this horrendous noise - a "can't hear yourself think" noise. The strange part was no one else even seemed to notice

  . I turned and looked outside, and there was a Concord on it's takeoff run in full afterburner

  . It was the only time I was able to see a Concord moving under it's own power

  .

  No idea what tail number it is, but there is a Concord at the Seattle Museum of Flight. First time I walked inside I was stunned at how small it was. The windows are tiny, and the seats would not appear out-of-place in economy on todays international flights. The cockpit is blocked off with clear Plexiglas, but looked decidedly primitive by todays (or even 1980's) standards. No doubt the cabin service was top notch, and there is definitely a luxury in making a six hour flight in two hours. But it's also not hard to understand why it wasn't a commercial success

  .

  But I sure wish I'd had the opportunity to fly on one

ksjc
18th Oct 2013, 06:01
permalink
 Post: 1730

  G-BOAG lives in Seattle now. And so you know it's Concorde with an " e". Very important.

  I flew on G-BOAG, BA 2 JFK- LHR, 6 months before the program was shut down in 2003. The experience is hard to describe and only a Concorde fan would appreciate it anyway.

Bull at a Gate
26th Jul 2014, 06:35
permalink
 Post: 1829

   Concorde simulator at Brooklands

  Nice to see this thread still active!

  I wonder is there is a Concorde expert who could help me with a question please. I have booked some time in the Concorde simulator at brooklands in September and was wondering how I should best use the time I have (30 mins). What do you think would be the most interesting and enjoyable use of my time? I have read most of this thread, and gather that the JFK departures were spectacular. Is that what you think I should try?

  I have spent a bit of time in other simulators (purely for fun), so what I am hoping to try in the Concorde simulator is something unique to Concorde.

Amadis of Gaul
27th Jul 2014, 18:18
permalink
 Post: 1831

    Quote:

       Originally Posted by

        bull at the gate

       I wonder is there is a Concorde expert who could help me with a question please. I have booked some time in the Concorde simulator at brooklands in September and was wondering how I should best use the time I have (30 mins). What do you think would be the most interesting and enjoyable use of my time? I have read most of this thread, and gather that the JFK departures were spectacular. Is that what you think I should try?

  I think you should try an outside loop, I'm sure Kennedy One departure, CRI climb will pale in comparison.

EXWOK
14th Jun 2015, 11:34
permalink
 Post: 1895

  NineEighteen -

  9mins brake release to M1.0 sounds about right from SNN; out of JFK we consistently achieved M1.0 10mins after brake release and that was with a noise-abatement departure which added a little time.

Page Links: First
 Previous
 1
 2
 3
 4

 5
 Next
 Last
 Index Page


text:
package com.deltabase.everphase.api.event;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface SubscribeEvent {

}


text:
import {isFirefox} from '../utils/platform';
import type {ExtensionData, FilterConfig, TabInfo, Message, UserSettings} from '../definitions';
import {MessageType} from '../utils/message';

export interface ExtensionAdapter {
    collect: () => Promise<ExtensionData>;
    changeSettings: (settings: Partial<UserSettings>) => void;
    setTheme: (theme: Partial<FilterConfig>) => void;
    setShortcut: ({command, shortcut}: {command: string; shortcut: string}) => void;
    markNewsAsRead: (ids: string[]) => Promise<void>;
    toggleActiveTab: () => void;
    onPopupOpen: () => void;
    loadConfig: (options: {local: boolean}) => Promise<void>;
    applyDevDynamicThemeFixes: (json: string) => Error;
    resetDevDynamicThemeFixes: () => void;
    applyDevInversionFixes: (json: string) => Error;
    resetDevInversionFixes: () => void;
    applyDevStaticThemes: (text: string) => Error;
    resetDevStaticThemes: () => void;
}

export default class Messenger {
    private adapter: ExtensionAdapter;
    private changeListenerCount: number;

    constructor(adapter: ExtensionAdapter) {
        this.adapter = adapter;
        this.changeListenerCount = 0;
        const allowedSenderURL = [chrome.runtime.getURL('/ui/popup/index.html'), chrome.runtime.getURL('/ui/devtools/index.html'), chrome.runtime.getURL('/ui/stylesheet-editor/index.html')];
        chrome.runtime.onMessage.addListener((message: Message, sender: chrome.runtime.MessageSender, sendResponse: (response: {data?: ExtensionData | TabInfo; error?: string}) => void) => {
            if (allowedSenderURL.includes(sender.url)) {
                this.onUIMessage(message, sendResponse);
                this.adapter.onPopupOpen();
                return ([
                    MessageType.UI_GET_DATA,
                ].includes(message.type));
            }
        });

        // This is a work-around for Firefox bug which does not let to responding to onMessage handler above.
        if (isFirefox) {
            chrome.runtime.onConnect.addListener((port) => {
                let promise: Promise<ExtensionData | TabInfo>;
                switch (port.name) {
                    case MessageType.UI_GET_DATA:
                        promise = this.adapter.collect();
                        break;
                    // These types require data, so we need to add a listener to the port.
                    case MessageType.UI_APPLY_DEV_DYNAMIC_THEME_FIXES:
                    case MessageType.UI_APPLY_DEV_INVERSION_FIXES:
                    case MessageType.UI_APPLY_DEV_STATIC_THEMES:
                        promise = new Promise((resolve, reject) => {
                            port.onMessage.addListener((message: Message) => {
                                const {data} = message;
                                let error: Error;
                                switch (port.name) {
                                    case MessageType.UI_APPLY_DEV_DYNAMIC_THEME_FIXES:
                                        error = this.adapter.applyDevDynamicThemeFixes(data);
                                        break;
                                    case MessageType.UI_APPLY_DEV_INVERSION_FIXES:
                                        error = this.adapter.applyDevInversionFixes(data);
                                        break;
                                    case MessageType.UI_APPLY_DEV_STATIC_THEMES:
                                        error = this.adapter.applyDevStaticThemes(data);
                                        break;
                                    default:
                                        throw new Error(`Unknown port name: ${port.name}`);
                                }
                                if (error) {
                                    reject(error);
                                } else {
                                    resolve(null);
                                }
                            });
                        });
                        break;
                    default:
                        return;
                }
                promise.then((data) => port.postMessage({data}))
                    .catch((error) => port.postMessage({error}));
            });
        }
    }

    private onUIMessage({type, data}: Message, sendResponse: (response: {data?: ExtensionData | TabInfo; error?: string}) => void) {
        switch (type) {
            case MessageType.UI_GET_DATA: {
                this.adapter.collect().then((data) => sendResponse({data}));
                break;
            }
            case MessageType.UI_SUBSCRIBE_TO_CHANGES: {
                this.changeListenerCount++;
                break;
            }
            case MessageType.UI_UNSUBSCRIBE_FROM_CHANGES: {
                this.changeListenerCount--;
                break;
            }
            case MessageType.UI_CHANGE_SETTINGS: {
                this.adapter.changeSettings(data);
                break;
            }
            case MessageType.UI_SET_THEME: {
                this.adapter.setTheme(data);
                break;
            }
            case MessageType.UI_SET_SHORTCUT: {
                this.adapter.setShortcut(data);
                break;
            }
            case MessageType.UI_TOGGLE_ACTIVE_TAB: {
                this.adapter.toggleActiveTab();
                break;
            }
            case MessageType.UI_MARK_NEWS_AS_READ: {
                this.adapter.markNewsAsRead(data);
                break;
            }
            case MessageType.UI_LOAD_CONFIG: {
                this.adapter.loadConfig(data);
                break;
            }
            case MessageType.UI_APPLY_DEV_DYNAMIC_THEME_FIXES: {
                const error = this.adapter.applyDevDynamicThemeFixes(data);
                sendResponse({error: (error ? error.message : null)});
                break;
            }
            case MessageType.UI_RESET_DEV_DYNAMIC_THEME_FIXES: {
                this.adapter.resetDevDynamicThemeFixes();
                break;
            }
            case MessageType.UI_APPLY_DEV_INVERSION_FIXES: {
                const error = this.adapter.applyDevInversionFixes(data);
                sendResponse({error: (error ? error.message : null)});
                break;
            }
            case MessageType.UI_RESET_DEV_INVERSION_FIXES: {
                this.adapter.resetDevInversionFixes();
                break;
            }
            case MessageType.UI_APPLY_DEV_STATIC_THEMES: {
                const error = this.adapter.applyDevStaticThemes(data);
                sendResponse({error: error ? error.message : null});
                break;
            }
            case MessageType.UI_RESET_DEV_STATIC_THEMES: {
                this.adapter.resetDevStaticThemes();
                break;
            }
        }
    }

    reportChanges(data: ExtensionData) {
        if (this.changeListenerCount > 0) {
            chrome.runtime.sendMessage<Message>({
                type: MessageType.BG_CHANGES,
                data
            });
        }
    }
}