Skip to content

Instantly share code, notes, and snippets.

Traceback (most recent call last):
File "/home/keks/.local/share/openmedialibrary/platform_linux64/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1073, in _execute_context
context = constructor(dialect, self, conn, *args)
File "/home/keks/.local/share/openmedialibrary/platform_linux64/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 584, in _init_compiled
param.append(processors[key](compiled_params[key]))
File "/home/keks/.local/share/openmedialibrary/platform_linux64/lib/python3.4/site-packages/sqlalchemy/sql/sqltypes.py", line 1236, in process
value = dumps(value, protocol)
File "oml/json_pickler.py", line 12, in dumps
return json.dumps(*args, **kwargs).encode()
TypeError: dumps() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given
@keks
keks / request
Last active October 23, 2017 13:05
POST /api/v0/bootstrap/add?arg=this%2FIs%2FSo%2FInvalid%2F&stream-channels=true HTTP/1.1
User-Agent: /node-ipfs-api/14.3.5/
Host: 127.0.0.1:33765
Connection: close
Content-Length: 0
@keks
keks / main.go
Created November 27, 2017 13:12
simulator for finding usable parameters
package main
import (
"fmt"
"github.com/agoussia/godes"
"os"
"strconv"
)
// the arrival and service are two random number generators for the uniform distribution
package errch
import (
"sync"
)
func New() (<-chan error, func() chan<- error) {
var (
src = make(chan error)
wg sync.WaitGroup