How can I deploy a Leiningen template to Clojars?

I have created a Leiningen project on my local machine which I then turn into a template by doing: lein create-template webdb : Then I install the template: cd webdb lein install : which...

How do I make a dynamic body in Box2D move only horizontally without using joints?

I have a dynamic body in my game (which is 2D sidescrolling platformer) and I want it to move back and forth along a platform, but not be affected by any vertical forces. I can't make it a...

ClojureScript no such namespace

I am new to Clojure and I am trying to implement some ClojureScript functions in my project. I added [org.clojure/clojurescript "0.0-2138"] to my dependencies in project.clj. I tried for...

Polymorphic schema validation in Clojure

I want to use a schema to validate a request object. One of the values in the map determines which other fields are valid. For example, these would all be valid: { :name "jane" :type :dog :barking...

Prismatic schema: removing unanticipated keys

My API is receiving some JSON data from the client. I would like to use Schema to perform validation and coercion on the data I receive, but with one additional requirement: if there is any map...

How does one clearly structure dependencies between core.async channels?

Let's say I have a corpus of computations that I want to run asynchronously using core.async, but unfortunately a few of the functions depend on the output of other functions. How do I go about...

How to do a "prismatic"/linear/slider constraint in cannon js?

I'm probably missing something obvious but how do I do a constraint for something like a piston? FWIW Really enjoying playing with this code. Thanks Sam

Polymorphic Schemas in Clojure

I want to create polymorphic schemas/types, and I'm curious of best practices. The following 2 examples allow me to create a Frequency schema which can repeat an event monthly by day of month, or...

validation of clojure schema

i have a problem in validation of clojure prismatic schema. Here is the code. :Some_Var1 {:Some_Var2 s/Str :Some_Var3 ( s/conditional #(= "mytype1"...

Differences between prismatics schema and clojure.spec

I have just recently started to learn some clojure and in order to make something like types (more like contracts) for validations etc, the go-to solution is a library named schema. Recently I...

Use Prismatic Joint in libgdx

I trying to create a elevator. I use PrismaticJointDef but body A has same position of body B. How can define distance between two body? I also used DistanceJointDef but get same result. I want...

Can you give me sources where to find examples of clojure development stacks?

Can someone give me examples where to find any information about clojure development stack? I have hard time finding information what is a good development stack for clojure and where to find...

Unable to create Clojure project or namespace in fresh CCW standalone install

When I first open a fresh install of Counterclockwise standalone and attempt to create a Clojure project I get an error dialog with the following message: The selected wizard could not be...

XML To SQL Converter c#

I coded an XML library however i couldn't figure out why i couldn't read the XML files located on my PC. i have around 1.5M XML files to parse and convert to SQL. Here's my code : class...

How to use schema.core/enum in clojure?

Given an enum made from prismatic schema.core/enum, let's say: (def myenumtype (schema.core/enum "a" "b" "c")) How can I set another def to a specific enum item? Here I would like to set e to...

lein-doo not running the tests, what's going on?

When I try running the tests with lein-doo I get this error: ERROR: doo was not loaded from the compiled script. Make sure you start your tests using doo-tests or doo-all-tests and that you...

BigQuery returns null for REGEXP_MATCH or _EXTRACT

I'm using the following the following query to return a subset of a string in a column: SELECT REGEXP_EXTRACT(content, r'/\ :dependencies\ \[(.*?)\]]\ /g') AS deps FROM...

AngularJS Uploading images and pushing into array

var app = angular.module('gemStore', []); app.controller('StoreController', function($scope){ $scope.gems = [ { "name": "Orthoclase Feldspar", "description": "First synthesized...

Why some namespaces can not be loaded by clojurescript browser repl?

I wrote some tests, I found that: Only namespaces which is a dependency of my compiled clojurescript can be required in repl. Namespaces which not refered by any compiled clojurescript can NOT...

Non-axis aligned prismatic joint in Unity3d?

I know how to make an axis-aligned prismatic joint using the ConfigurableJoint. For a prismatic joint along the x axis, I can do the following: ConfigurableJoint joint; joint.angularXMotion =...

Gazebo model does not stand

Apologies for a very long post. I created the following xacro file, when I load in gazebo using the following launch file, the robot does not stand straight and falls down. I tried with different...

cloverage FileNotFoundException

I would like to use cloverage so I can check how much of my code base is tested by speclj. However after installing cloverage as a lein plugin and running: lein cloverage I see the following...

Cursive/Intellij - undefined step_definitions warning

I am using lein-cucumber to write cucumber tests. My test suit executes without any errors, but my IDE flags these warnings: Given cannot be resolved. Then cannot be resolved. Undefined step...

Unable to build standalone jar using boot

EDIT: Added more information at the end. Also, got war to run with jetty-runner.jar (not with tomcat however) I am using boot as the build tool for my clojure application. This is the first...

Connecting to Repl from Clojure project Light Table

I am trying to connect to Repl in Clojure project in Light Table. I went to connections, chose project.clj I wanted to connect to but unfortunately without success. I created project with "lein...

Error compiling fortran77 code with gfortran

I have a fortran77 code (public domain) when compile with gfortran on Cygwin generated the following error. How can I fix this problem? gfortran -o GR3DSTR GR3DSTR.f77...

is there a way to send data to prismic.io?

I need to push an object to prismic.io. For example, I want to send a simple object like a string to the CMS. I don't see any hints in the documentation that can help me achieve this. I'm using...

WebAR using model viewer does not work on Android

I am trying to build a demo of model-viewer using a simple box object. It works fine on iOS/Safari, but I am unable to get this to work on Android. On Android, it will not activate the camera,...

lein ring uberjar : PKIX path building failed?

I am not able to run "lein ring uberjar" from my local machine. I get the following errors: Could not find artifact ring-server:ring-server:jar:0.5.0 in central...

Getting contact Jacobian through multibody plant

In using a multibody plant (MBP) for estabilishing dynamics constraints for multibody system with contact, we look at the dynamics equation M(q) q_ddot + C(q, q_dot) = G(q) + B(q) u + J'(q)...