Skip to content

Instantly share code, notes, and snippets.

To get this, $ elm-make frontend/Debugger.elm in this code tree.

The type annotation for `start` does not match its definition.

92|>        App model error action
93|>     -> Signal action
94|>     -> (Signal Html, Signal (T.Task error ()))

Could not unify user provided type variable `error`. The most likely cases are:
@vilterp
vilterp / Elmification.md
Created June 23, 2015 02:13
Plan for moving Reactor logic to Elm

Converting the Reactor frontend to Elm

As summarized in the reactor issue "WIP: convert JS to Elm", moving as much of the frontend of elm-reactor from JS to Elm as possible would have significant code quality benefits.

Step 1: Move View Code to Elm

As listed in the issue:

  • Use sliders from elm-html, not a custom native library
  • Move logic for toggling the sidebar and event blocker into Elm
[2015-02-23 22:22:57] INFO lt-chitcpd chitcpd running. UNIX socket: /tmp/chitcpd.socket.vilterp. TCP socket: 8745
[2015-02-23 22:22:57] DEBUG lt-chitcpd Waiting for chiTCP daemon to stop.
[2015-02-23 22:22:59] TRACE handler-0 Received request (code=SOCKET)
[2015-02-23 22:22:59] TRACE handler-1 Received request (code=SOCKET)
[2015-02-23 22:22:59] TRACE handler-0 >>> Entering handler for CHITCPD_MSG_CODE__SOCKET
[2015-02-23 22:22:59] TRACE handler-1 >>> Entering handler for CHITCPD_MSG_CODE__SOCKET
[2015-02-23 22:22:59] DEBUG handler-0 Assigned socket 0
[2015-02-23 22:22:59] DEBUG handler-1 Assigned socket 1
[2015-02-23 22:22:59] TRACE handler-0 <<< Exiting handler for CHITCPD_MSG_CODE__SOCKET
[2015-02-23 22:22:59] TRACE handler-1 <<< Exiting handler for CHITCPD_MSG_CODE__SOCKET
module Sierpinski where
import Diagrams.Core exposing (..)
import Diagrams.Align exposing (..)
import Diagrams.FillStroke exposing (..)
import Diagrams.FullWindow exposing (..)
import Color
sierpinski n sl = case n of
0 -> eqTriangle sl (justSolidFill Color.blue)
import netCDF4 as nc
def ncdump(path):
ds = nc.Dataset(path)
def dim_repr(dim):
return ['\t{0} = {1} ; {2}'.format(dim._name, 'UNLIMITED' if dim.isunlimited() else len(dim),
'// {0} currently'.format(len(dim)) if dim.isunlimited() else '')]
def var_repr(var):
header = '\t{0} {1}({2}) ;'.format(var.dtype, var._name, ', '.join(var.dimensions))
attrs = ['\t\t{0}:{1} = "{2}" ;'.format(var._name, attr, var.getncattr(attr)) for attr in var.ncattrs()]
@vilterp
vilterp / Vagrantfile
Created September 3, 2014 18:32
vagrantfile for galaxy-es
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# the dream
web:
build: .
links:
- db
volumes:
- /external/galaxy_data:/galaxy/galaxy-python/database
- /external/compiled_tool_dependencies:/galaxy/compiled_tool_dependencies
- /external/tools:/galaxy/shed_tools
ports:
docker run -d --name db -v /external/pg_data:/var/lib/postgresql/data postgres
docker run -d -p 80:8080 --name galaxy --link db:db_1 -v /external/tool_deps:/galaxy/compiled_tool_dependencies -v /external/galaxy_database:/galaxy/galaxy-python/database -v /external/shed_tools:/galaxy/shed_tools vilterp/galaxy-es-postgres
URL: http://localdocker:8080/workflow/run?id=f2db41e1fa331b3e
File '/galaxy/galaxy-python/eggs/WebError-0.8a-py2.7.egg/weberror/evalexception/middleware.py', line 364 in respond
app_iter = self.application(environ, detect_start_response)
File '/galaxy/galaxy-python/eggs/Paste-1.6-py2.7.egg/paste/debug/prints.py', line 98 in __call__
environ, self.app)
File '/galaxy/galaxy-python/eggs/Paste-1.6-py2.7.egg/paste/wsgilib.py', line 539 in intercept_output
app_iter = application(environ, replacement_start_response)
File '/galaxy/galaxy-python/eggs/Paste-1.6-py2.7.egg/paste/recursive.py', line 80 in __call__
return self.application(environ, start_response)
File '/galaxy/galaxy-python/eggs/Paste-1.6-py2.7.egg/paste/httpexceptions.py', line 632 in __call__
Traceback (most recent call last):
File "/nfs/software/galaxy-es/galaxy/lib/galaxy/jobs/runners/condor.py", line 108, in queue_job
job_wrapper.prepare()
File "/nfs/software/galaxy-es/galaxy/lib/galaxy/jobs/__init__.py", line 187, in prepare
config_filenames = self.tool.build_config_files( param_dict, self.working_directory )
File "/nfs/software/galaxy-es/galaxy/lib/galaxy/tools/__init__.py", line 2443, in build_config_files
f.write( fill_template( template_text, context=param_dict ) )
File "/nfs/software/galaxy-es/galaxy/lib/galaxy/util/template.py", line 9, in fill_template
return str( Template( source=template_text, searchList=[context] ) )
File "/nfs/software/galaxy-es/galaxy/eggs/Cheetah-2.2.2-py2.7-linux-x86_64-ucs4.egg/Cheetah/Template.py", line 1004, in __str__