text:
layout: page
title: Moran Foundation Trade Fair
date: 2016-05-24
author: Roy Malone
tags: weekly links, java
status: published
summary: Duis cursus facilisis nunc, id elementum sapien consequat in. Quisque.
banner: images/banner/office-01.jpg
booking:
  startDate: 07/04/2017
  endDate: 07/09/2017
  ctyhocn: SAVNOHX
  groupCode: MFTF
published: true
---
Nunc et lorem sit amet nulla vulputate convallis sed convallis felis. Nulla porttitor rhoncus porta. Aenean porta, quam eget sodales tincidunt, tellus magna feugiat augue, ac facilisis justo leo et tortor. Suspendisse tincidunt pulvinar lorem ut faucibus. Fusce et bibendum felis, vel commodo purus. Donec consectetur vulputate diam ac tempor. Donec ut odio eu orci iaculis eleifend. Sed iaculis, elit id tincidunt auctor, justo odio pharetra purus, at aliquam enim quam sed dolor. Nunc ut est tempor, efficitur nunc sed, mattis odio.

1 Phasellus id turpis id erat egestas ullamcorper
1 Vestibulum id lectus vestibulum, vulputate purus ac, tincidunt arcu
1 Praesent nec purus sit amet libero commodo cursus
1 Sed pulvinar nisl eget mi mollis aliquam.

Quisque blandit euismod erat, eget finibus elit hendrerit et. Pellentesque dapibus porttitor volutpat. Mauris vulputate semper libero quis fringilla. Aliquam accumsan tellus diam, vel fringilla enim lobortis at. Maecenas a mattis lectus, cursus fringilla neque. Aenean mattis ante eget ligula porttitor, et lobortis leo molestie. Etiam tristique ac elit non ultricies. Duis tristique tristique suscipit. Praesent bibendum commodo mauris, id porta purus sollicitudin quis. Proin efficitur placerat augue tempor accumsan. Ut vitae dui sit amet arcu tempor accumsan in vitae risus. Nullam vel nibh a enim vulputate pellentesque. Aenean sed blandit nibh, non malesuada urna. Donec maximus varius turpis nec posuere. Suspendisse potenti. Vivamus facilisis vitae dui id pretium.


text:
package com.sagasu.playground;

import java.applet.Applet;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.File;
import java.io.FileFilter;

public class MyFileFilter {
    public static void main(String[] args){
        // typical impelentation of interface by using anonymous class
        FileFilter ff = new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.getName().endsWith(".java");
            }
        };

        // Implementing interface by using lambda.
        FileFilter ff2 = (File file) -> file.getName().endsWith(".java");

        //A functional interface is an interface that has just one abstract method, and thus represents a single function contract.
        //If an interface has more than one method (it is not a funcitonal interface) and can not be implemented thru lambda.

        // Methods from Object don't count if they exist in implemented interface.
        StillFunctionalInterface sfi = () -> System.out.println("Still funcitonal interface");

        // Using a helper interface when interface has multiple methods, but it is passed in a method, so the statement above still holds.
        Component c = new Applet();
        c.addMouseListener((ClickedListener)(e)->System.out.println("Clicked !"));

    }
}

interface StillFunctionalInterface {
    void someMethod();
    boolean equals(Object o);
}

interface ClickedListener extends MouseListener
{
    @Override
    public default void mouseEntered(MouseEvent e) {}

    @Override
    public default void mouseExited(MouseEvent e) {}

    @Override
    public default void mousePressed(MouseEvent e) {}

    @Override
    public default void mouseReleased(MouseEvent e) {}
}

redpajama_set_name: RedPajamaGithub


text:
exports.processContent = function(content, context){
	context.response.contentType = 'text/html';
	context.response.write(content);
	context.response.end();
};

exports.processRequest = require('./dynatichandler').processRequest;


text:
#include <map>
#include <string>
#include <vector>

#include "ServerFixture.hh"
#include "gazebo/physics/physics.hh"
#include "SimplePendulumIntegrator.hh"
#include "gazebo/msgs/msgs.hh"
#include "helper_physics_generator.hh"

#define PHYSICS_TOL 1e-2
using namespace gazebo;

class RoadTextureTest : public ServerFixture
{
  public: void TexturedWorld();
};

void RoadTextureTest::TexturedWorld()
{
  // Load the sample world
  Load("worlds/road_textures.world");
  physics::WorldPtr world = physics::get_world("default");
  ASSERT_TRUE(world != NULL);

  // simulate 1 step
  world->Step(1);
  double t = world->GetSimTime().Double();
  // verify that time moves forward
  EXPECT_GT(t, 0);

  // simulate a few steps
  int steps = 20;
  world->Step(steps);
  double dt = world->GetPhysicsEngine()->GetMaxStepSize();
  EXPECT_GT(dt, 0);
  t = world->GetSimTime().Double();
  EXPECT_GT(t, 0.99*dt*static_cast<double>(steps+1));
}

TEST_F(RoadTextureTest, TexturedWorld)
{
  TexturedWorld();
}

int main(int argc, char **argv)
{
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}


text:
package main

import (
	"flag"
	"fmt"
	"log"
	"time"

	pb "github.com/hnakamur/hello_grpc_go/helloworld"
	"golang.org/x/net/context"
	"google.golang.org/grpc"
)

const (
	address     = "localhost:50051"
	defaultName = "world"
)

func main() {
	addr := flag.String("addr", "localhost:50051", "server address")
	name := flag.String("name", defaultName, "name")
	loop := flag.Bool("loop", false, "enable loop")
	sleep := flag.Duration("sleep", 10*time.Millisecond, "sleep time in loop")
	flag.Parse()

	log.SetFlags(log.LstdFlags | log.Lmicroseconds)

	if *loop {
		for {
			err := sayHello(*addr, *name)
			if err != nil {
				log.Print(err)
			}
			time.Sleep(*sleep)
		}
	} else {
		err := sayHello(*addr, *name)
		if err != nil {
			log.Fatal(err)
		}
	}
}

func sayHello(address, name string) error {
	// Set up a connection to the server.
	conn, err := grpc.Dial(address, grpc.WithInsecure())
	if err != nil {
		return err
	}
	defer conn.Close()
	c := pb.NewGreeterClient(conn)

	r, err := c.SayHello(context.Background(), &pb.HelloRequest{Name: name})
	if err != nil {
		return fmt.Errorf("could not greet: %v", err)
	}
	log.Printf("Greeting: %s", r.Message)
	return nil
}


text:
/**
 *
 */
package eu.scape_project.watch.rest.resource;

import java.util.Collection;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.GenericEntity;
import javax.ws.rs.core.Response;

import org.apache.log4j.Logger;

import com.wordnik.swagger.annotations.ApiError;
import com.wordnik.swagger.annotations.ApiErrors;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;

import eu.scape_project.watch.dao.DAO;
import eu.scape_project.watch.domain.EntityType;
import eu.scape_project.watch.utils.exception.NotFoundException;

/**
 *
 * REST API for {@link EntityType} operations.
 *
 * @author Luis Faria <lfaria@keep.pt>
 *
 */
public class EntityTypeResource {

  /**
   * Logger.
   */
  private static final Logger LOG = Logger.getLogger(EntityTypeResource.class);

  /**
   * Get an existing {@link EntityType}.
   *
   * @param name
   *          The entity type name.
   * @return The entity type or throws {@link NotFoundException} if not found.
   */
  @GET
  @Path("/{name}")
  @ApiOperation(value = "Find Entity Type by name", notes = "")
  @ApiErrors(value = {@ApiError(code = NotFoundException.CODE, reason = "Entity Type not found")})
  public Response getEntityTypeByName(
    @ApiParam(value = "Name of the Entity Type", required = true) @PathParam("name") final String name) {
    final EntityType entitytype = DAO.ENTITY_TYPE.findById(name);

    if (entitytype != null) {
      return Response.ok().entity(entitytype).build();
    } else {
      throw new NotFoundException("Entity Type id not found: " + name);
    }
  }

  /**
   * List all entity types in the KB.
   *
   * @return The complete list of {@link EntityType}.
   */
  @GET
  @Path("/list")
  @ApiOperation(value = "List all entity types", notes = "")
  public Response listEntityType(
    @ApiParam(value = "Index of first item to retrieve", required = true) @QueryParam("start") final int start,
    @ApiParam(value = "Maximum number of items to retrieve", required = true) @QueryParam("max") final int max) {
    final Collection<EntityType> list = DAO.ENTITY_TYPE.query("", start, max);
    return Response.ok().entity(new GenericEntity<Collection<EntityType>>(list) {
    }).build();
  }

  /**
   * Create a new {@link EntityType}.
   *
   * @param name
   *          The entity type unique name
   * @param description
   *          A descriptive information about the entity type.
   * @return The created entity type.
   */
  @POST
  @Path("/new")
  @ApiOperation(value = "Create Entity Type", notes = "This can only be done by an admin user (TODO)")
  public Response createEntityType(
    @ApiParam(value = "Entity type", required = true) final EntityType entityType) {
    final EntityType commitedEntityType = DAO.ENTITY_TYPE.save(entityType);
    return Response.ok().entity(commitedEntityType).build();

  }

  /**
   * Update an existing {@link EntityType}.
   *
   * @param name
   *          The existing {@link EntityType} name.
   * @param entitytype
   *          The new entity type that should replace the existing one
   * @return The new entity type merged into the KB
   */
  @PUT
  @Path("/{name}")
  @ApiOperation(value = "Update Entity Type", notes = "This can only be done by an admin user (TODO)")
  @ApiErrors(value = {@ApiError(code = NotFoundException.CODE, reason = "Entity Type not found")})
  public Response updateEntityType(
    @ApiParam(value = "Name that need to be deleted", required = true) @PathParam("name") final String name,
    @ApiParam(value = "Updated Entity Type object", required = true) final EntityType entitytype) {
    final EntityType original = DAO.ENTITY_TYPE.findById(name);
    if (original != null) {
      DAO.save(entitytype);
      return Response.ok().entity(entitytype).build();
    } else {
      throw new NotFoundException("Entity type not found: " + name);
    }
  }

  /**
   * Delete an existing entity type.
   *
   * @param name
   *          The name of the {@link EntityType} to delete.
   * @return The deleted {@link EntityType} or throws {@link NotFoundException}
   *         if not found
   */
  @DELETE
  @Path("/{name}")
  @ApiOperation(value = "Delete Entity Type", notes = "This can only be done by an admin user (TODO)")
  @ApiErrors(value = {@ApiError(code = NotFoundException.CODE, reason = "Entity Type not found")})
  public Response deleteEntityType(
    @ApiParam(value = "The name of the Entity Type to be deleted", required = true) @PathParam("name") final String name) {
    LOG.info("deleting entity type name: " + name);

    final EntityType entitytype = DAO.ENTITY_TYPE.findById(name);
    if (entitytype != null) {
      DAO.delete(entitytype);
      return Response.ok().entity(entitytype).build();
    } else {
      throw new NotFoundException("Entity type not found: " + name);
    }
  }

}


text:
layout: post
microblog: true
audio:
photo:
date: 2014-02-02 20:13:17 -0600
guid: http://craigmcclellan.micro.blog/2014/02/03/t430162043917074434.html
---
"@fillindablank: @craigmcclellan They had 8 points at the end of the 3rd…" Yeah yeah. I should have said close to the end of the 3rd.


text:
using System.Text.RegularExpressions;

namespace Hikipuro.Text.Tokenizer {
	/// <summary>
	/// A token matching pattern.
	/// </summary>
	/// <typeparam name="TokenType">Token type.</typeparam>
	public class TokenPattern<TokenType> where TokenType : struct {
		/// <summary>
		/// Token type.
		/// </summary>
		public TokenType Type;

		/// <summary>
		/// Regex pattern for matching.
		/// </summary>
		public string Pattern;

		/// <summary>
		/// Regex object for matching.
		/// </summary>
		public Regex Regex;

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="type">Token type.</param>
		/// <param name="pattern">Regex patern text for matching.</param>
		public TokenPattern(TokenType type, string pattern) {
			this.Type = type;
			this.Pattern = pattern;
			#if UNITY_5 || UNITY_5_3_OR_NEWER
			CompileRegex(RegexOptions.None);
			#else
			CompileRegex(RegexOptions.Compiled);
			#endif
		}

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="type">Token type.</param>
		/// <param name="pattern">Regex patern text for matching.</param>
		/// <param name="options">Regex options.</param>
		public TokenPattern(TokenType type, string pattern, RegexOptions options) {
			this.Type = type;
			this.Pattern = pattern;
			CompileRegex(options);
		}

		/// <summary>
		/// Convet pattern text to Regex object.
		/// </summary>
		/// <param name="options">Regex options.</param>
		private void CompileRegex(RegexOptions options) {
			Regex regex = new Regex(Pattern, options);
			this.Regex = regex;
		}
	}
}


text:
class CreateClubhouseOrganizations < ActiveRecord::Migration
  def change
    create_table :clubhouse_organizations, id: :uuid do |t|
      t.string :name, null: false, limit: 30
      t.string :email, null: false

      t.timestamps null: false
    end

    add_index :clubhouse_organizations, :name, unique: true
  end
end


text:
#ifndef HTMLCanvasElement_h
#define HTMLCanvasElement_h

#include "core/dom/Document.h"
#include "core/html/HTMLElement.h"
#include "core/html/canvas/CanvasImageSource.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/Canvas2DLayerBridge.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/graphics/ImageBufferClient.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebThread.h"
#include "wtf/Forward.h"

#define CanvasDefaultInterpolationQuality InterpolationLow

namespace blink {

class AffineTransform;
class CanvasContextAttributes;
class CanvasRenderingContext;
class GraphicsContext;
class GraphicsContextStateSaver;
class HTMLCanvasElement;
class Image;
class ImageData;
class ImageBuffer;
class ImageBufferSurface;
class IntSize;

class CanvasObserver : public WillBeGarbageCollectedMixin {
    DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CanvasObserver);
public:
    virtual void canvasChanged(HTMLCanvasElement*, const FloatRect& changedRect) = 0;
    virtual void canvasResized(HTMLCanvasElement*) = 0;
#if !ENABLE(OILPAN)
    virtual void canvasDestroyed(HTMLCanvasElement*) = 0;
#endif

    virtual void trace(Visitor*) { }
};

class HTMLCanvasElement FINAL : public HTMLElement, public DocumentVisibilityObserver, public CanvasImageSource, public ImageBufferClient, public blink::WebThread::TaskObserver {
    WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLCanvasElement);
public:
    DECLARE_NODE_FACTORY(HTMLCanvasElement);
    virtual ~HTMLCanvasElement();

    void addObserver(CanvasObserver*);
    void removeObserver(CanvasObserver*);

    // Attributes and functions exposed to script
    int width() const { return size().width(); }
    int height() const { return size().height(); }

    const IntSize& size() const { return m_size; }

    void setWidth(int);
    void setHeight(int);
    void setAccelerationDisabled(bool accelerationDisabled) { m_accelerationDisabled = accelerationDisabled; }
    bool accelerationDisabled() const { return m_accelerationDisabled; }

    void setSize(const IntSize& newSize)
    {
        if (newSize == size())
            return;
        m_ignoreReset = true;
        setWidth(newSize.width());
        setHeight(newSize.height());
        m_ignoreReset = false;
        reset();
    }

    CanvasRenderingContext* getContext(const String&, CanvasContextAttributes* attributes = 0);

    static String toEncodingMimeType(const String& mimeType);
    String toDataURL(const String& mimeType, const double* quality, ExceptionState&) const;
    String toDataURL(const String& mimeType, ExceptionState& exceptionState) const { return toDataURL(mimeType, 0, exceptionState); }

    // Used for rendering
    void didDraw(const FloatRect&);
    void notifyObserversCanvasChanged(const FloatRect&);

    void paint(GraphicsContext*, const LayoutRect&);

    GraphicsContext* drawingContext() const;
    GraphicsContext* existingDrawingContext() const;

    CanvasRenderingContext* renderingContext() const { return m_context.get(); }

    void ensureUnacceleratedImageBuffer();
    ImageBuffer* buffer() const;
    Image* copiedImage() const;
    void clearCopiedImage();
    PassRefPtrWillBeRawPtr<ImageData> getImageData() const;
    void makePresentationCopy();
    void clearPresentationCopy();

    SecurityOrigin* securityOrigin() const;
    bool originClean() const { return m_originClean; }
    void setOriginTainted() { m_originClean = false; }

    AffineTransform baseTransform() const;

    bool is3D() const;

    bool hasImageBuffer() const { return m_imageBuffer; }
    bool hasValidImageBuffer() const;
    void discardImageBuffer();

    bool shouldAccelerate(const IntSize&) const;

    virtual const AtomicString imageSourceURL() const OVERRIDE;

    virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;

    // DocumentVisibilityObserver implementation
    virtual void didChangeVisibilityState(PageVisibilityState) OVERRIDE;

    // CanvasImageSource implementation
    virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceImageStatus*) const OVERRIDE;
    virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE;
    virtual FloatSize sourceSize() const OVERRIDE;

    // ImageBufferClient implementation
    virtual void notifySurfaceInvalid() OVERRIDE;
    virtual bool isDirty() OVERRIDE { return !m_dirtyRect.isEmpty(); }
    virtual void didFinalizeFrame() OVERRIDE;

    // Implementation of WebThread::TaskObserver methods
    virtual void willProcessTask() OVERRIDE;
    virtual void didProcessTask() OVERRIDE;

    virtual void trace(Visitor*) OVERRIDE;

protected:
    virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;

private:
    explicit HTMLCanvasElement(Document&);

    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
    virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }

    void reset();

    PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& deviceSize, int* msaaSampleCount);
    void createImageBuffer();
    void createImageBufferInternal();
    void clearImageBuffer();

    void resetDirtyRect();

    void setSurfaceSize(const IntSize&);

    bool paintsIntoCanvasBuffer() const;

    void updateExternallyAllocatedMemory() const;

    String toDataURLInternal(const String& mimeType, const double* quality, bool isSaving = false) const;

    WillBeHeapHashSet<RawPtrWillBeWeakMember<CanvasObserver> > m_observers;

    IntSize m_size;

    OwnPtrWillBeMember<CanvasRenderingContext> m_context;

    bool m_ignoreReset;
    bool m_accelerationDisabled;
    FloatRect m_dirtyRect;

    mutable intptr_t m_externallyAllocatedMemory;

    bool m_originClean;

    // It prevents HTMLCanvasElement::buffer() from continuously re-attempting to allocate an imageBuffer
    // after the first attempt failed.
    mutable bool m_didFailToCreateImageBuffer;
    mutable bool m_didClearImageBuffer;
    OwnPtr<ImageBuffer> m_imageBuffer;
    mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver;

    mutable RefPtr<Image> m_presentedImage;
    mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platforms that have to copy the image buffer to render (and for CSSCanvasValue).
};

} //namespace

#endif


text:
[![build status](https://secure.travis-ci.org/Turfjs/turf-filter.png)](http://travis-ci.org/Turfjs/turf-filter)

turf filter module

### `turf.filter(features, key, value)`

Takes a FeatureCollection and filters it by a given property and value

### Parameters

| parameter  | type              | description                                   |
| ---------- | ----------------- | --------------------------------------------- |
| `features` | FeatureCollection | input FeatureCollection of any type           |
| `key`      | String            | the property on which to filter               |
| `value`    | String            | the value of that property on which to filter |

### Example

```js
var features = turf.featurecollection([
 turf.point([-72.581777, 44.260875], {species: 'oak'}),
 turf.point([-72.570018, 44.260691], {species: 'birch'}),
 turf.point([-72.576284, 44.257925], {species: 'oak'}),
 turf.point([-72.56916, 44.254605], {species: 'redwood'}),
 turf.point([-72.581691, 44.24858], {species: 'maple'}),
 turf.point([-72.583837, 44.255773], {species: 'oak'})
]);

var key = 'species';
var value = 'oak';

var filtered = turf.filter(features, key, value);

//=features

//=filtered
```

## Installation

Requires [nodejs](http://nodejs.org/).

```sh
$ npm install turf-filter
```

## Tests

```sh
$ npm test
```


text:
        <title>Angular2 - Express starter</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <base href=".">

        <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">

        <link rel="stylesheet" href="assets/css/animate.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/font-awesome.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/nexus.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/responsive.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/custom.css" rel="stylesheet">

        <link href="http://fonts.googleapis.com/css?family=Roboto+Condensed:400,300" rel="stylesheet" type="text/css">

        <app>

        </app>


text:
class AddPreviousTasktoTask < ActiveRecord::Migration
  def change
    add_column :tasks, :previous_task_id, :integer
  end
end


text:
package net.alloyggp.griddle.validator.check;

import net.alloyggp.griddle.validator.AnalyzedGame;

/**
 * A Check is an aspect of game validation that usually produces a single
 * type of error. These are used in a ValidatorConfiguration and run by
 * the ConfigurableValidator.
 */
public interface Check {

    void findProblems(AnalyzedGame game, ProblemReporter reporter);

}


text:
package org.kuali.coeus.propdev.impl.location;

import org.apache.commons.lang3.StringUtils;
import org.kuali.coeus.propdev.impl.core.DevelopmentProposal;
import org.kuali.kra.infrastructure.KeyConstants;
import org.kuali.coeus.propdev.impl.core.ProposalDevelopmentDocument;
import org.kuali.coeus.sys.framework.rule.KcTransactionalDocumentRuleBase;

import java.util.List;

public class ProposalDevelopmentProposalLocationRule extends KcTransactionalDocumentRuleBase implements AddProposalSiteRule, SaveProposalSitesRule {
    private static final String LOCATION_NAME_PROPERTY = "locationName";
    private static final String ADDRESS_NAME_PROPERTY = "address";

    /**
     * This method validates location names + organizations when a Proposal Site is added.
     * @see org.kuali.coeus.propdev.impl.location.AddProposalSiteRule#processAddProposalSiteBusinessRules(org.kuali.coeus.propdev.impl.location.AddProposalSiteEvent)
     * @param addProposalSiteEvent
     * @return
     */
    public boolean processAddProposalSiteBusinessRules(AddProposalSiteEvent addProposalSiteEvent) {
        ProposalSite proposalSite = addProposalSiteEvent.getProposalSite();

        boolean rulePassed = checkLocationName(proposalSite, LOCATION_NAME_PROPERTY);

        // an address is required for all location types except performance sites
        boolean isPerformanceSite = proposalSite.getLocationTypeCode()==ProposalSite.PROPOSAL_SITE_PERFORMANCE_SITE;
        if (proposalSite.getOrganization()==null && proposalSite.getRolodex()==null && !isPerformanceSite) {
            rulePassed = false;
            reportError(ADDRESS_NAME_PROPERTY, KeyConstants.ERROR_PROPOSAL_SITES_ADDRESS_REQUIRED);
        }

        return rulePassed;
    }

    /**
     * This method validates editable location names.
     * @param saveProposalSiteEvent
     * @return
     */
    public boolean processSaveProposalSiteBusinessRules(SaveProposalSitesEvent saveProposalSiteEvent) {
        ProposalDevelopmentDocument document = (ProposalDevelopmentDocument)saveProposalSiteEvent.getDocument();
        DevelopmentProposal developmentProposal = document.getDevelopmentProposal();
        boolean isValid = true;

        List<ProposalSite> performanceSites = developmentProposal.getPerformanceSites();
        for (int i=0; i<performanceSites.size(); i++) {
            isValid &= checkLocationName(performanceSites.get(i), "performanceSites[" + i + "].locationName");
        }

        List<ProposalSite> otherOrganizations = developmentProposal.getOtherOrganizations();
        for (int i=0; i<otherOrganizations.size(); i++) {
            isValid &= checkLocationName(otherOrganizations.get(i), "otherOrganizations[" + i + "].locationName");
        }

        return isValid;
    }

    // check that the location name is not blank
    private boolean checkLocationName(ProposalSite proposalSite, String propertyName) {
        boolean isValid = true;

        if (StringUtils.isBlank(proposalSite.getLocationName())) {
            isValid = false;
            reportError(propertyName, KeyConstants.ERROR_PROPOSAL_SITES_LOCATION_NAME_REQUIRED);
        }

        return isValid;
    }
}


text:
title: Configuration Validation Problems
description: Describes how to resolve configuration validation problems.
force_inline_toc: true
weight: 50
aliases:
    - /help/ops/setup/validation
    - /help/ops/troubleshooting/validation
    - /docs/ops/troubleshooting/validation
owner: istio/wg-user-experience-maintainers
test: no
---

## Seemingly valid configuration is rejected

Use [istioctl validate -f](/docs/reference/commands/istioctl/#istioctl-validate) and [istioctl analyze](/docs/reference/commands/istioctl/#istioctl-analyze) for more insight into why the configuration is rejected.  Use an _istioctl_ CLI with a similar version to the control plane version.

The most commonly reported problems with configuration are YAML indentation and array notation (`-`) mistakes.

Manually verify your configuration is correct, cross-referencing
[Istio API reference](/docs/reference/config) when
necessary.

## Invalid configuration is accepted

Verify that a `validatingwebhookconfiguration` named `istio-validator-` followed by
`<revision>-`, if not the default revision, followed by the Istio system namespace
(e.g., `istio-validator-myrev-istio-system`) exists and is correct.
The `apiVersion`, `apiGroup`, and `resource` of the
invalid configuration should be listed in the `webhooks` section of the `validatingwebhookconfiguration`.

{{< text bash yaml >}}
$ kubectl get validatingwebhookconfiguration istio-validator-istio-system -o yaml
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  labels:
    app: istiod
    install.operator.istio.io/owning-resource-namespace: istio-system
    istio: istiod
    istio.io/rev: default
    operator.istio.io/component: Pilot
    operator.istio.io/managed: Reconcile
    operator.istio.io/version: unknown
    release: istio
  name: istio-validator-istio-system
  resourceVersion: "615569"
  uid: 112fed62-93e7-41c9-8cb1-b2665f392dd7
webhooks:
- admissionReviewVersions:
  - v1beta1
  - v1
  clientConfig:
    # caBundle should be non-empty. This is periodically (re)patched
    # every second by the webhook service using the ca-cert
    # from the mounted service account secret.
    caBundle: LS0t...
    # service corresponds to the Kubernetes service that implements the webhook
    service:
      name: istiod
      namespace: istio-system
      path: /validate
      port: 443
  failurePolicy: Fail
  matchPolicy: Equivalent
  name: rev.validation.istio.io
  namespaceSelector: {}
  objectSelector:
    matchExpressions:
    - key: istio.io/rev
      operator: In
      values:
      - default
  rules:
  - apiGroups:
    - security.istio.io
    - networking.istio.io
    - telemetry.istio.io
    - extensions.istio.io
    apiVersions:
    - '*'
    operations:
    - CREATE
    - UPDATE
    resources:
    - '*'
    scope: '*'
  sideEffects: None
  timeoutSeconds: 10
{{< /text >}}

If the `istio-validator-` webhook does not exist, verify
the `global.configValidation` installation option is
set to `true`.

The validation configuration is fail-close. If
configuration exists and is scoped properly, the webhook will be
invoked. A missing `caBundle`, bad certificate, or network connectivity
problem will produce an error message when the resource is
created/updated. If you don't see any error message and the webhook
wasn't invoked and the webhook configuration is valid, your cluster is
misconfigured.

## Creating configuration fails with x509 certificate errors

`x509: certificate signed by unknown authority` related errors are
typically caused by an empty `caBundle` in the webhook
configuration. Verify that it is not empty (see [verify webhook
configuration](#invalid-configuration-is-accepted)). Istio consciously reconciles webhook configuration
used the `istio-validation` `configmap` and root certificate.

1. Verify the `istiod` pod(s) are running:

    {{< text bash >}}
    $  kubectl -n istio-system get pod -lapp=istiod
    NAME                            READY     STATUS    RESTARTS   AGE
    istiod-5dbbbdb746-d676g   1/1       Running   0          2d
    {{< /text >}}

1. Check the pod logs for errors. Failing to patch the
       `caBundle` should print an error.

    {{< text bash >}}
    $ for pod in $(kubectl -n istio-system get pod -lapp=istiod -o jsonpath='{.items[*].metadata.name}'); do \
        kubectl -n istio-system logs ${pod} \
    done
    {{< /text >}}

1. If the patching failed, verify the RBAC configuration for Istiod:

    {{< text bash yaml >}}
    $ kubectl get clusterrole istiod-istio-system -o yaml
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
      name: istiod-istio-system
    rules:
    - apiGroups:
      - admissionregistration.k8s.io
      resources:
      - validatingwebhookconfigurations
      verbs:
      - '*'
    {{< /text >}}

    Istio needs `validatingwebhookconfigurations` write access to
    create and update the `validatingwebhookconfiguration`.

## Creating configuration fails with `no such hosts` or `no endpoints available` errors

Validation is fail-close. If the `istiod` pod is not ready,
configuration cannot be created and updated.  In such cases you'll see
an error about `no endpoints available`.

Verify the `istiod` pod(s) are running and endpoints are ready.

{{< text bash >}}
$  kubectl -n istio-system get pod -lapp=istiod
NAME                            READY     STATUS    RESTARTS   AGE
istiod-5dbbbdb746-d676g   1/1       Running   0          2d
{{< /text >}}

{{< text bash >}}
$ kubectl -n istio-system get endpoints istiod
NAME           ENDPOINTS                          AGE
istiod         10.48.6.108:15014,10.48.6.108:443   3d
{{< /text >}}

If the pods or endpoints aren't ready, check the pod logs and
status for any indication about why the webhook pod is failing to start
and serve traffic.

{{< text bash >}}
$ for pod in $(kubectl -n istio-system get pod -lapp=istiod -o jsonpath='{.items[*].metadata.name}'); do \
    kubectl -n istio-system logs ${pod} \
done
{{< /text >}}

{{< text bash >}}
$ for pod in $(kubectl -n istio-system get pod -lapp=istiod -o name); do \
    kubectl -n istio-system describe ${pod} \
done
{{< /text >}}


text:
module SimpleForm
  module Components
    # Needs to be enabled in order to do automatic lookups.
    module Hints
      def hint
        @hint ||= begin
          hint = options[:hint]
          hint_content = hint.is_a?(String) ? hint : translate(:hints)
          hint_content.html_safe if hint_content
        end
      end

      def has_hint?
        hint.present?
      end
    end
  end
end


text: Contact to: victor.gzarco@gmail.com


text:
module BasicJRPC
  class Server

    def initialize queue, injected_class, host="redis"
      if host.is_a?(Array)
        @redis = Redis.new(cluster: host.map { |n| "redis://#{n}:6381" }, driver: :hiredis)
      elsif host.is_a?(String)
        @redis = Redis.new(host: host, port: 6381)
      end
      @injected_class = injected_class
      @queue = queue
      @host = host
    end

    def listen(trigger=nil, error_handler=nil)
      puts "Listening..."

      while true
        begin
          redis_response = @redis.blpop(@queue)
        rescue Redis::TimeoutError
          puts "ERROR: Redis Read timed out. Retrying"
          retry
        end

        next if redis_response.nil?
        message = redis_response[1]

        payload = BasicJRPC::Data::RequestPayload.from_client(message)
        injected_class_response = @injected_class.send(payload.method_name, payload.args_data) if payload.method_argument_type == "hash"
        response_payload = BasicJRPC::Data::ResponsePayload.to_client(payload.message_id, injected_class_response)

        @redis.rpush(response_payload.message_id, response_payload.to_json)
      end
    rescue Exception => e
      @redis.rpush(payload.message_id, JSON.dump(error_handler.handle(e))) if error_handler
      raise e
    end

  end
end


text:
package com.ivstuart.tmud.world;

import com.ivstuart.tmud.server.LaunchMud;
import com.ivstuart.tmud.utils.MudIO;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.IOException;
import java.io.Serializable;

/**
 * Created by Ivan on 12/09/2016.
 */
public class MudStats implements Serializable {

    private static final Logger LOGGER = LogManager.getLogger();
    private static String fileName = "stats.sav";
    private transient int newPlayers;
    private transient int deletions;
    private transient int levelsGained;
    private transient int playerDeaths;
    private transient int mobDeaths;
    private transient int numberOfLogins;
    private transient int mostOnline;
    private transient int notesPosted;
    private transient int numberOfAuctions;
    private transient int numberOfRemorts;
    private int newPlayersTotal;
    private int deletionsTotal;
    private int levelsGainedTotal;
    private int playerDeathsTotal;
    private long mobDeathsTotal;
    private long numberOfLoginsTotal;
    private int mostOnlineTotal;
    private int notesPostedTotal;
    private int numberOfAuctionsTotal;
    private int numberOfRemortsTotal;

    public static MudStats init() {
        // Load the data from MudIO

        MudIO mudIO = new MudIO();
        MudStats mudStats = null;
        try {
            mudStats = (MudStats) mudIO.load(getSaveDirectory(), fileName, true);
        } catch (Exception e) {
            LOGGER.warn("Problem loading the mud stats", e);
        }
        return mudStats;
    }

    public static void shutdown() {
        // Save the data to MudIO.

        MudIO mudIO = new MudIO();

        try {
            mudIO.save(World.getMudStats(), getSaveDirectory(), fileName, true);
        } catch (IOException e) {
            LOGGER.error("Problem saving the mus stats", e);
        }

    }

    public static String getSaveDirectory() {
        return LaunchMud.mudServerProperties.getProperty("stats.save.dir");
    }

    public int getNewPlayers() {
        return newPlayers;
    }

    public void addNewPlayers() {
        this.newPlayers++;
        this.newPlayersTotal++;
    }

    public int getDeletions() {
        return deletions;
    }

    public void addDeletions() {
        this.deletions++;
        this.deletionsTotal++;
    }

    public int getLevelsGained() {
        return levelsGained;
    }

    public void addLevelsGained() {
        this.levelsGained++;
        this.levelsGainedTotal++;
    }

    public int getPlayerDeaths() {
        return playerDeaths;
    }

    public void addPlayerDeaths() {
        this.playerDeaths++;
        this.playerDeathsTotal++;
    }

    public int getMobDeaths() {
        return mobDeaths;
    }

    public void addMobDeaths() {
        this.mobDeaths++;
        this.mobDeathsTotal++;
    }

    public int getNumberOfLogins() {
        return numberOfLogins;
    }

    public void addNumberOfLogins() {
        this.numberOfLogins++;
        this.numberOfLoginsTotal++;
    }

    public int getMostOnline() {
        return mostOnline;
    }

    public int getNotesPosted() {
        return notesPosted;
    }

    public void addNotesPosted() {
        this.notesPosted++;
        this.notesPostedTotal++;
    }

    public int getNumberOfAuctions() {
        return numberOfAuctions;
    }

    public void addNumberOfAuctions() {
        this.numberOfAuctions++;
        this.numberOfAuctionsTotal++;
    }

    public int getNumberOfRemorts() {
        return numberOfRemorts;
    }

    public void addNumberOfRemorts() {
        this.numberOfRemorts++;
        this.numberOfRemortsTotal++;
    }

    public void checkMostOnline() {
        int playersOnline = World.getPlayers().size();
        if (playersOnline > mostOnline) {
            mostOnline = playersOnline;
        }
        if (playersOnline > mostOnlineTotal) {
            mostOnlineTotal = playersOnline;
        }
    }

    @Override
    public String toString() {
        return "MudStats{" +
                "newPlayers=" + newPlayers +
                ", deletions=" + deletions +
                ", levelsGained=" + levelsGained +
                ", playerDeaths=" + playerDeaths +
                ", mobDeaths=" + mobDeaths +
                ", numberOfLogins=" + numberOfLogins +
                ", mostOnline=" + mostOnline +
                ", notesPosted=" + notesPosted +
                ", numberOfAuctions=" + numberOfAuctions +
                ", numberOfRemorts=" + numberOfRemorts +
                ", newPlayersTotal=" + newPlayersTotal +
                ", deletionsTotal=" + deletionsTotal +
                ", levelsGainedTotal=" + levelsGainedTotal +
                ", playerDeathsTotal=" + playerDeathsTotal +
                ", mobDeathsTotal=" + mobDeathsTotal +
                ", numberOfLoginsTotal=" + numberOfLoginsTotal +
                ", mostOnlineTotal=" + mostOnlineTotal +
                ", notesPostedTotal=" + notesPostedTotal +
                ", numberOfAuctionsTotal=" + numberOfAuctionsTotal +
                ", numberOfRemortsTotal=" + numberOfRemortsTotal +
                '}';
    }
}


text:
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))

min_bp_ver = (2,0,9)
min_serial_ver = (2,7)

import sys
if sys.version_info[:3] < (2, 7):
    sys.exit('PixelWeb requires Python 2.7 or higher.')

try:
    import pip
except:
    sys.exit("Please install pip: https://bootstrap.pypa.io/get-pip.py")

import os
from subprocess import Popen, PIPE

def runCommand(cmd):
    cmd_list = cmd.split(' ')
    process = Popen(cmd_list, stdout=PIPE)
    output, err = process.communicate()
    exit_code = process.wait()
    return (err, exit_code, output)

_bootstrap_installs = {
    "BiblioPixel": 'pip install bibliopixel<3.0 --upgrade',
    "BiblioPixelAnimations": "pip install BiblioPixelAnimations==3.20170531.153148 --upgrade",
    "pyserial": "pip install pyserial --upgrade",
    "cherrypy": "pip install cherrypy --upgrade"
}

def doInstall(mod):
    if not mod in _bootstrap_installs: sys.exit("Invalid package name: " + mod)
    print "Installing " + mod
    err, code, output = runCommand(_bootstrap_installs[mod])
    print output
    if code != 0:
        sys.exit("Fatal error installing " + mod)

def checkBPVersion(ver):
    ver = tuple([int(i) for i in ver.split('.')])
    return ver >= min_bp_ver

def checkSerialVersion(ver):
    ver = tuple([int(i) for i in ver.split('.')])
    return ver >= min_serial_ver

def runBootstrap(upgrade = False):
    upgrade = ("--update-depends" in sys.argv)
    up_bpa = ("--update-bpa" in sys.argv)
    if upgrade:
        doInstall("BiblioPixel")
        doInstall("BiblioPixelAnimations")
        doInstall("pyserial")
    elif up_bpa:
        doInstall("BiblioPixelAnimations")
    else:
        try:
            import bibliopixel
            if not checkBPVersion(bibliopixel.VERSION):
                doInstall("BiblioPixel")
                reload(bibliopixel)
        except:
            doInstall("BiblioPixel")

        try:
            import BiblioPixelAnimations
        except:
            doInstall("BiblioPixelAnimations")

        try:
            import serial
            if not checkSerialVersion(serial.VERSION):
                doInstall("pyserial")
                reload(serial)
        except:
            doInstall("pyserial")

        # try:
        #     import cherrypy
        # except:
        #     doInstall("cherrypy")

    try:
        import bibliopixel
        import BiblioPixelAnimations
        import serial
    except ImportError, e:
        sys.exit("Fatal Error in Install/Import process: " + str(e))

if __name__ == '__main__':
    upgrade = (len(sys.argv) > 1 and sys.argv[1] == "--upgrade")
    runBootstrap(upgrade)


text:
set -eu

cd "$(dirname "$0")"

mkdir -p bin

VERSION_CB="2.21.3"
VERSION_SC="stable"

echo λλλ checkbashisms
if [ ! -x bin/checkbashisms ]; then
    wget -qO- "https://deb.debian.org/debian/pool/main/d/devscripts/devscripts_${VERSION_CB}.tar.xz" \
        | tar -xJv -O devscripts-${VERSION_CB}/scripts/checkbashisms.pl \
        > bin/checkbashisms
    chmod u+x bin/checkbashisms
fi
bin/checkbashisms --version

echo λλλ shellcheck
if [ ! -x bin/shellcheck ]; then
    wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${VERSION_SC}/shellcheck-${VERSION_SC}.linux.x86_64.tar.xz" \
        | tar -xJv -O shellcheck-${VERSION_SC}/shellcheck \
        > bin/shellcheck
    chmod u+x bin/shellcheck
fi
bin/shellcheck --version

echo λλλ composer packages
composer update -v
composer info -D | sort


text:
ActiveRecord::Schema.define(version: 20140530001952) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "managers", force: true do |t|
    t.string   "provider",   null: false
    t.string   "nickname",   null: false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "managers", ["provider", "nickname"], name: "index_managers_on_provider_and_nickname", unique: true, using: :btree

  create_table "photo_suggestions", force: true do |t|
    t.integer  "user_id",     null: false
    t.integer  "photo_id",    null: false
    t.string   "title"
    t.text     "description"
    t.string   "year"
    t.string   "place"
    t.text     "people"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "photo_suggestions", ["photo_id"], name: "index_photo_suggestions_on_photo_id", using: :btree
  add_index "photo_suggestions", ["user_id"], name: "index_photo_suggestions_on_user_id", using: :btree

  create_table "photos", force: true do |t|
    t.string   "title",                   null: false
    t.string   "image"
    t.text     "description"
    t.integer  "position",    default: 0
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "status",      default: 0
    t.string   "year"
    t.string   "place"
    t.text     "people"
  end

  add_index "photos", ["position"], name: "index_photos_on_position", using: :btree
  add_index "photos", ["status"], name: "index_photos_on_status", using: :btree

  create_table "profiles", force: true do |t|
    t.integer  "user_id",      null: false
    t.string   "uid",          null: false
    t.string   "provider",     null: false
    t.string   "name"
    t.string   "nickname"
    t.string   "email"
    t.string   "image"
    t.string   "location"
    t.string   "description"
    t.string   "token_access"
    t.string   "token_secret"
    t.text     "raw_info"
    t.text     "urls"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "profiles", ["uid", "provider"], name: "index_profiles_on_uid_and_provider", using: :btree
  add_index "profiles", ["user_id"], name: "index_profiles_on_user_id", using: :btree

  create_table "shares", force: true do |t|
    t.string   "provider",   null: false
    t.integer  "photo_id",   null: false
    t.text     "obj",        null: false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "shares", ["provider", "photo_id"], name: "index_shares_on_provider_and_photo_id", using: :btree
  add_index "shares", ["provider"], name: "index_shares_on_provider", using: :btree

  create_table "users", force: true do |t|
    t.string   "nombres",                    null: false
    t.string   "email"
    t.string   "imagen_url"
    t.boolean  "admin",      default: false
    t.boolean  "banned",     default: false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end


text:
package org.apache.easyant.man;

import java.util.List;

import org.apache.easyant.core.report.ExtensionPointReport;
import org.apache.easyant.core.report.ImportedModuleReport;

/**
 * ManCommand implementation to list all extension points associated with specified build module.
 *
 * Supports the -listExtensionPoints switch.
 */
public class ListExtensionPoints extends EasyantOption {

    private static final long serialVersionUID = 1L;

    public ListExtensionPoints() throws IllegalArgumentException {
        super("listExtensionPoints", true, "List all extension-points available");
        setOptionalArg(true);
        setStopBuild(true);
    }

    public void execute() {
        getProject().log(
                LINE_SEP + "--- Available ExtensionPoints for current project: " + getProject().getName() + " ---"
                        + LINE_SEP);
        String container = getValue();
        if (container == null || container.trim().isEmpty()) {
            getProject().log(LINE_SEP + "No plugin specified. Listing all extension points available in the project.");

            List<ExtensionPointReport> extensionPoints = getEareport().getExtensionPointReports();
            printExtensionPoints(extensionPoints);
        } else {
            ImportedModuleReport importedModuleReport = getEareport().getImportedModuleReport(container);
            if (importedModuleReport != null) {
                getProject().log(LINE_SEP + "Extension-points for Module: " + container);
                printExtensionPoints(importedModuleReport.getEasyantReport().getExtensionPointReports());
            } else {
                getProject().log(LINE_SEP + "\tNo Module / Plugin found by name: " + container);
            }
        }
        getProject().log(
                LINE_SEP + LINE_SEP + "For more information on an ExtensionPoint, run:" + LINE_SEP
                        + "\t easyant -describe <EXTENSION POINT>");
        getProject().log(LINE_SEP + "--- End Of (ExtensionPoints Listing) ---");
    }

    private void printExtensionPoints(List<ExtensionPointReport> extensionPoints) {
        for (ExtensionPointReport extensionPointReport : extensionPoints) {
            getProject().log("\tExtension-Point : " + extensionPointReport.getName());
            getProject().log("\t\tDescription : " + extensionPointReport.getDescription());
            getProject().log("\t\tDepends : " + extensionPointReport.getDepends());
        }
    }

}


text:
[![Start Video](https://github.com/Phlow/feeling-responsive/blob/gh-pages/images/video-feeling-responsive-1280x720.jpg)](https://www.youtube.com/embed/3b5zCFSmVvU)

## A Responsive Jekyll Theme: *Feeling Responsive*

Do you want to get to know *Feeling Responsive*? Than check it out first and have a look on its home at  <http://phlow.github.io/feeling-responsive/>.

To get to know *Feeling Responsive* check out all the features explained in the [documentation][1].

And what license is *Feeling Responsive* released under? [This one][2].

## Why use this theme?

Feeling Responsive is heavily customizable.

1. Language-Support :)
2. Optimized for speed and it's responsive.
3. Built on Foundation Framework.
4. Six different Headers.
5. Customizable navigation, footer,...

**[More ›][3]**

## Changelog

*Feeling Responsive* is in active development. Thank you to everyone who contributed, especially [Róbert Papp][5], [Alexandra von Criegern](https://github.com/plutonik-a) and [Juan Jose Amor Iglesias](https://github.com/jjamor).

**[Read Changelog ›][6]**

## Video Tutorial

Click the image to [watch the YouTube-Video-Tutorial][4].

[![Start Video](https://github.com/Phlow/feeling-responsive/blob/gh-pages/images/video-feeling-responsive-tutorial-frontpage.jpg)](https://www.youtube.com/watch?v=rLS-BEvlEyY)

 [1]: http://phlow.github.io/feeling-responsive/documentation/
 [2]: https://github.com/Phlow/feeling-responsive/blob/gh-pages/LICENSE
 [3]: http://phlow.github.io/feeling-responsive/info/
 [4]: https://www.youtube.com/watch?v=rLS-BEvlEyY
 [5]: https://github.com/TWiStErRob
 [6]: https://phlow.github.io/feeling-responsive/changelog/
 [7]: #
 [8]: #
 [9]: #
 [10]: #
# responsive-blog


text:
package org.woehlke.twitterwall.backend.service.persist;

import org.woehlke.twitterwall.oodm.model.Tweet;
import org.woehlke.twitterwall.oodm.model.Task;

/**
 * Created by tw on 09.07.17.
 */
public interface StoreOneTweet {

    Tweet storeOneTweet(org.springframework.social.twitter.api.Tweet tweet, Task task);
}


text:
    App.Collections.Results = Backbone.Collection.extend({
        model: App.Models.Result
    });


text:
<?php

namespace Settings\ConfigBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class SalesrepType extends AbstractType
{
        /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
            $builder
            ->add('name', null, array(
                "label" => "Sales Rep.Name",
            ))
            ->add('isActive', null, array(
                "required" => false,
                "label" => "Approved",
            ))
        ;
    }

    /**
     * @param OptionsResolverInterface $resolver
     */
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Settings\ConfigBundle\Entity\Salesrep'
        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'settings_configbundle_salesrep';
    }
}


text:
% st-util(1) Open Source STMicroelectronics Stlink Tools  | stlink
%
% Feb 2018

# NAME

st-util - Run GDB server to interact with STM32 device

# SYNOPSIS

*st-util* \[\<ARGS>...]

# DESCRIPTION
Start a GDB server to interact with a STM32 device
Run the main binary of the local package (src/main.rs).

If a port number is not specified using the **--listen_port** option, the
default **4242** port will be used.

The STLink device to use can be specified using the --serial parameter, or via
the environment variable STLINK_DEVICE on the format <USB_BUS>:<USB_ADDR>.

# OPTIONS

-h, \--help
:   Print this message.

\--version
:   Print version information

-v *XX*, \--verbose=*XX*
:   Specify a specific verbosity level (0..99)

-v, \--verbose
:   Specify generally verbose logging

-p *4242*, \--listen_port=1234
:   Set the gdb server listen port. (default port: 4242)

-m, \--multi
:   Set gdb server to extended mode. st-util will continue listening for connections after disconnect.

-n, \--no-reset
:   Do not reset board on connection.

\--semihosting
:   Enable ARM Semihosting output on stdout

# EXAMPLES

Run GDB server on port 4500 and connect to it

    $ st-util -p 4500
    $ gdb
    (gdb) target extended-remote localhost:4500

# SEE ALSO

st-flash(1), st-info(1)

# COPYRIGHT

This work is copyrighted. Stlink contributors.
See *LICENSE* file in the stlink source distribution.


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
org.apache.cxf.configuration.spring (Apache CXF API 2.7.5 API)
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

org.apache.cxf.configuration.spring

Interfaces

MapProvider

Classes

AbstractBeanDefinitionParser

AbstractFactoryBeanDefinitionParser

BeanConstants

ConfigurerImpl

JAXBBeanFactory

SimpleBeanDefinitionParser

SpringBeanMap

SpringBeanQNameMap

StringBeanDefinitionParser

Enums

BusWiringType


text:
package com.microf.backend.service;

import org.junit.Test;
import org.junit.Before;
import org.junit.After;

public class UKAddressServiceTest {

@Before
public void before() throws Exception {
}

@After
public void after() throws Exception {
}

/**
*
* Method: getAddressByCode(String search_param)
*
*/
@Test
public void testGetAddressByCode() throws Exception {
//TODO: Test goes here...
}

/**
*
* Method: getAddressGeoByCode(String search_param)
*
*/
@Test
public void testGetAddressGeoByCode() throws Exception {
//TODO: Test goes here...
}

/**
*
* Method: getAddressByCodeAndWhat3Words(String search_param)
*
*/
@Test
public void testGetAddressByCodeAndWhat3Words() throws Exception {
//TODO: Test goes here...
}

/**
*
* Method: getAddressPositionByCode(String search_param)
*
*/
@Test
public void testGetAddressPositionByCode() throws Exception {
//TODO: Test goes here...
}

/**
*
* Method: getAddressByPosition(String latitude, String longitude, String range)
*
*/
@Test
public void testGetAddressByPosition() throws Exception {
//TODO: Test goes here...
}

/**
*
* Method: init()
*
*/
@Test
public void testInit() throws Exception {
//TODO: Test goes here...
/*
try {
   Method method = UKAddressServiceImpl.getClass().getMethod("init");
   method.setAccessible(true);
   method.invoke(<Object>, <Parameters>);
} catch(NoSuchMethodException e) {
} catch(IllegalAccessException e) {
} catch(InvocationTargetException e) {
}
*/
}

/**
*
* Method: fillCollections(final ResponseEntity<UKAddress[]> ukAddressJSON, final IMap<String,UKAddress> map, final List<Address> listAddress)
*
*/
@Test
public void testFillCollections() throws Exception {
//TODO: Test goes here...
/*
try {
   Method method = UKAddressServiceImpl.getClass().getMethod("fillCollections", final.class, final.class, final.class);
   method.setAccessible(true);
   method.invoke(<Object>, <Parameters>);
} catch(NoSuchMethodException e) {
} catch(IllegalAccessException e) {
} catch(InvocationTargetException e) {
}
*/
}

}


text:
<?xml version="1.0"?>
<project name="Run SysCaller" default="sysCaller" basedir=".">
	<!-- load system environment variables -->
	<property environment="env" />
	<import file="${env.IGRID_HOME}/bin/common-run.xml" />
	<echo message="IGRID_HOME: ${iGrid.home}" />

	<!-- set property values -->
	<property name="provider.name" value="sysCaller" />

	<!-- start service provider -->
	<target name="sysCaller">
		<java jar="${lib}/sorcer-boot.jar" fork="yes">
			<arg value="../configs/start-logger.config" />
			<sysproperty key="java.util.logging.config.file" value="${iGrid.home}/configs/sorcer.logging" />
			<sysproperty key="java.security.policy" value="../policy/${provider.name}-prv.policy" />
			<sysproperty key="iGrid.home" value="${iGrid.home}" />
			<sysproperty key="sorcer.provider.config" value="${iGrid.home}/bin/sorcer/logger/configs/${provider.name}-prv.config" />
			<sysproperty key="sorcer.env.file" value="${iGrid.home}/configs/sorcer.env" />
		</java>
	</target>

</project>


text:
package java.applet;

/**
 * This interface provides a simple mechanism for playing audio clips.
 * If multiple clips are played at once, the browser combines them into a
 * composite clip.
 *
 * @author Aaron M. Renn (arenn@urbanophile.com)
 * @since 1.0
 * @status updated to 1.4
 */
public interface AudioClip
{
  /**
   * Plays the audio clip starting from the beginning.
   */
  void play();

  /**
   * Stops playing this audio clip.  There is no mechanism for restarting
   * at the point where the clip is stopped.
   */
  void stop();

  /**
   * Plays this audio clip in a continuous loop.
   */
  void loop();
} // interface AudioClip


text:
<!DOCTYPE html>

	<title>Rowspan in Grid</title>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>

Rowspan in Grid

There is an opportunity to set a rowspan in a grid.
 You can set it in the xml and by the script (using setRowspan method).

	setRowspan method has 3 parameters:

row id

column index

rowspan

		<input type="button" name="a1" value="row span (1)" onclick="if(mygrid.getSelectedId()){mygrid.setRowspan(mygrid.getSelectedId(),mygrid.getSelectedCellIndex(),1)} else alert('Cell is not selected !')">
<input type="button" name="a1" value="row span (2)" onclick="if(mygrid.getSelectedId()){mygrid.setRowspan(mygrid.getSelectedId(),mygrid.getSelectedCellIndex(),2)} else alert('Cell is not selected !')">
<input type="button" name="a1" value="row span (3)" onclick="if(mygrid.getSelectedId()){mygrid.setRowspan(mygrid.getSelectedId(),mygrid.getSelectedCellIndex(),3)} else alert('Cell is not selected !') ">


text:
<!DOCTYPE html>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noarchive">
<meta name="description" content="The editorial board members for JFFHMT Journal.">
<meta name="keywords" content="avestia, publishing, journals, papers, science, renewable energy">
<title>JFFHMT - Editorial Board</title>

<meta name="handheldfriendly" content="true">
<meta name="mobileoptimized" content="240">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="../css/avestia.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic|Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="../img/icon.ico" type="image/x-icon">

Avestia Publishing

About Us

Ethics in Publishing

Open Access

Become a Reviewer or an Editor

Your Publishing Needs

Conference Proceedings

Latest News

Author Guidelines

Journals

Submission

Copyright

Contact Us

				Home
				Submission
				Journals
				Ethics in Publishing
				Author Guidelines

MENU

			<gcse:searchbox-only resultsUrl="../results"></gcse:searchbox-only>

				Home
				Submission
				Journals
				Ethics in Publishing
				Author Guidelines

        <gcse:searchbox-only resultsUrl="../results"></gcse:searchbox-only>

Journal of Fluid Flow, Heat and Mass Transfer (JFFHMT)

ISSN: 2368-6111

Journal of Fluid Flow, Heat and Mass Transfer (JFFHMT)

ISSN: 2368-6111

Journal Home

Aims & Scopes

Publishing Fee

Editorial Board

<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">Volumes</button>

Contact Us

Volume 1

Current Volume

Editorial Board

The Editorial Board Members for JFFHMT are as followed:

Editor-in-Chief:

Dr. Boguslaw Kruczek
University of Ottawa, Canada

Associate Editors:

Dr. Jalel Azaiez
University of Calgary, Canada

Dr. Shian Gao
University of Leicester, United Kingdom

Dr. Alexander Gorin
Swinburne University of Technology, Malaysia

Dr. Louis Gosselin
Université Laval, Canada

Dr. Junjie Gu
Carleton University, Canada

Dr. Darren L. Hitt
University of Vermont, USA

Dr. Mina Hoorfar
University of British Columbia, Canada

Dr. Iqbal Husain
University of Regina, Canada

Dr. Jaikrishnan R. Kadambi
Case Western Reserved University, USA

Dr. Peixue Jiang
Tsinghua University, China

Dr. Tarik Kaya
Carleton University, Canada

Dr. Yang Liu
The Hong Kong Polytechnic University, Hong Kong

Dr. Miltiadis V. Papalexandris
Université catholique de Louvain, Belgium

Dr. Pierre Proulx
Université de Sherbrooke, Canada

Dr. Huihe Qiu
The Hong Kong University of Science & Technology, Hong Kong

Dr. Liqiu Wang
The University of Hong Kong, Hong Kong

Dr. Yufeng Yao
University of the West of England, United Kingdom

Dr. Simon C. M. Yu
Singapore Institute of Technology, Singapore

Avestia Publishing

Journals

Terms of Use

Sitemap

				Avestia Publishing,

				International ASET Inc.

				Unit 417, 1376 Bank St.

				Ottawa, ON, Canada, K1H 7Y3

				+1 613-695-3040

				info@avestia.com

		<form class="subscribe" action="../register.php" method="post">
           	<input name="email" type="text" id="email" value="Join our mailing list"
           		onblur="if (this.value == '') {this.value = 'Join our mailing list';}"
 				onfocus="if (this.value == 'Join our mailing list') {this.value = '';}" >
			<input type="submit" name="submit" value="Submit" class="form_button" />
        </form>

© Copyright 2015, International ASET Inc. – All Rights Reserved.


text:
(function() {
  'use strict';

  /**
   * @name  isAnonymousService
   * @description Factory
   */
  function isAnonymousService () {
    console.log('we are inside the isanonymous services');
    var isAnon = true;

    return isAnon;
  }
  angular.module('common.factories.isAnonymousService', [])
    .factory('isAnonymousService', isAnonymousService );
})();


text:
  Fresney-le-Puceux est
       un village
       géographiquement positionné dans le département des Calvados en Basse-Normandie. On dénombrait 612 habitants en 2008.

Le nombre de logements, à Fresney-le-Puceux, était réparti en 2011 en un appartements et 287 maisons soit
 un marché relativement équilibré.

À Fresney-le-Puceux, la valorisation moyenne à l'achat d'un appartement se situe à zero € du m² en vente. La valeur moyenne d'une maison à l'achat se situe à 1 520 € du m². À la location la valeur moyenne se situe à 1,84 € du m² par mois.

Si vous pensez venir habiter à Fresney-le-Puceux, vous pourrez facilement trouver une maison à vendre.

À coté de Fresney-le-Puceux sont situées les communes de
Bretteville-sur-Laize localisée à 3 km, 1 551 habitants,
Saint-Laurent-de-Condel localisée à 3 km, 507 habitants,
Amayé-sur-Orne localisée à 5 km, 945 habitants,
Les Moutiers-en-Cinglais à 5 km, 414 habitants,
Boulon localisée à 2 km, 578 habitants,
Clinchamps-sur-Orne située à 2 km, 1 010 habitants,
 entre autres. De plus, Fresney-le-Puceux est située à seulement treize km de Caen.

La ville propose quelques  équipements sportifs, elle propose entre autres un terrain de sport.


text:
//
//  Bus.h
//  Clock Signal
//
//  Created by Thomas Harte on 18/03/2017.
//  Copyright 2017 Thomas Harte. All rights reserved.
//

#ifndef Atari2600_Bus_hpp
#define Atari2600_Bus_hpp

#include "Atari2600.hpp"
#include "PIA.hpp"
#include "TIA.hpp"
#include "TIASound.hpp"

#include "../../../Analyser/Dynamic/ConfidenceCounter.hpp"
#include "../../../ClockReceiver/ClockReceiver.hpp"
#include "../../../Outputs/Speaker/Implementation/LowpassSpeaker.hpp"

namespace Atari2600 {

class Bus {
	public:
		Bus() :
			tia_sound_(audio_queue_),
			speaker_(tia_sound_) {}

		virtual ~Bus() {
			audio_queue_.flush();
		}

		virtual void run_for(const Cycles cycles) = 0;
		virtual void apply_confidence(Analyser::Dynamic::ConfidenceCounter &confidence_counter) = 0;
		virtual void set_reset_line(bool state) = 0;
		virtual void flush() = 0;

		// the RIOT, TIA and speaker
		PIA mos6532_;
		TIA tia_;

		Concurrency::AsyncTaskQueue<false> audio_queue_;
		TIASound tia_sound_;
		Outputs::Speaker::PullLowpass<TIASound> speaker_;

		// joystick state
		uint8_t tia_input_value_[2] = {0xff, 0xff};

	protected:
		// speaker backlog accumlation counter
		Cycles cycles_since_speaker_update_;
		inline void update_audio() {
			speaker_.run_for(audio_queue_, cycles_since_speaker_update_.divide(Cycles(CPUTicksPerAudioTick * 3)));
		}

		// video backlog accumulation counter
		Cycles cycles_since_video_update_;
		inline void update_video() {
			tia_.run_for(cycles_since_video_update_.flush<Cycles>());
		}

		// RIOT backlog accumulation counter
		Cycles cycles_since_6532_update_;
		inline void update_6532() {
			mos6532_.run_for(cycles_since_6532_update_.flush<Cycles>());
		}
};

}

#endif /* Atari2600_Bus_hpp */