Error when entering the Admin config path

Hi, I found a strange message error when entering the /admin/config path. Instead of returning the config dump, after the last update it returns:

template: admin/config:105:50: executing "admin/config" at <.Webhook.QueueLength>: QueueLength is not a field of struct type interface {}

version is Version: <IP_ADDRESS>9 Beta
Go version is 1.4.2
Is is a bug?

It looks like you updated Gogs but didn't recompile it...

What you mean? I rebuild it from the source code after a git clone...

The missing field in your error are newly added, so if your template files are up-to-date but Gogs program didn't recompile or you didn't notice you are executing the old/wrong file, this type of errors could occur.

Again. I deleted the complete folder. I git-cloned again from github. I compiled from scratch. Again, the error is there.
It is physically impossible there is a mistake like "old binaries"

What is the version shows at the bottom of the page in other pages?

© 2015 Gogs · Version: <IP_ADDRESS>9 Beta ·
You can see it at boseburo.ddns.net , just ignore the certificate error, it is selfsigned by me.

Again. I deleted the complete folder. I git-cloned again from github. I compiled from scratch.

Would you mind to provide some step infos(commands)?

of course.
I did a
git clone https://github.com/gogits/gogs.git
which created the folder gogs
then I enter gogs
go clean all
go get
go build
and then i get a brand new executable.
Then I copy the custom config folder I have saved before, and
./gogs web
please notice it works. It only has several issues. Btw, the SSH problem happens only for the account which used to have a ssh key saved. I created a new one, and this doesn't happens.
Where exactly gogs stores the keys?

Very strange, I just checked out and tested that everything works fine. :sweat:

Where exactly gogs stores the keys?

Currently, same file as other SSH keys ~/.ssh/authorize_keys

I check, and the old key is there. Also I asked gogs to rewrite the file with keys, which has worked, and still the keys are there.
So I have no idea what's happening. I can confirm this is only affecting old accounts, new accounts are working fine. So the problem is: where data are stored exactly?

So I have no idea what's happening. I can confirm this is only affecting old accounts, new accounts are working fine. So the problem is: where data are stored exactly?

Hmm.. I don't think I understand your problem very well.
There is a public_key table to store SSH keys, but in order to make SSH clone/push work, Gogs write those keys into ~/.ssh/authorize_keys.
Also, rewrite operation is based on public_key table.

Is there any other folder/fle I need to copy if I want to upgrade gogs with a brand new version?

custom/
Your custom preferences

data/
Uploaded avatars and maybe nothing else as everything else should be in the database. Not sure if something more finishes in this folder.

log/
I copy this one too. Though I suppose not mandatory. Should be possible to just create a brand new log folder.

If the used database is an SQLite database I don't know where it is stored. For this last one maybe @Unknwon can explain better. But if almost everything is working then not finding the database is the problem. Unless the new installatio is using a totally new database.

If the used database is an SQLite database I don't know where it is stored. For this last one maybe @Unknwon can explain better. But if almost everything is working then not finding the database is not the problem. Unless the new installation is using a totally new database.

It's in data/gogs.db

No, the new installation uses the same database.
I started the server and reproduced the error, but in console I see:
[Macaron] Started GET /img/favicon.png for <IP_ADDRESS>
[Macaron] Completed /img/favicon.png 304 Not Modified in 434.626µs
[Macaron] Started GET /img/favicon.png for <IP_ADDRESS>
[Macaron] Completed /img/favicon.png 200 OK in 832.096µs
[Macaron] Started GET /user/settings/ssh for <IP_ADDRESS>
[Macaron] Completed /user/settings/ssh 500 Internal Server Error in 12.362636ms
[Macaron] Started GET /favicon.ico for <IP_ADDRESS>
[Macaron] Completed /favicon.ico 302 Found in 6.44361ms
[Macaron] Started GET /img/favicon.png for <IP_ADDRESS>
[Macaron] Completed /img/favicon.png 200 OK in 658.539µs
is there any way to start it in some "debug", so we can have more details?

Hi guys, found the problem!

diff sshkeys.tmpl ~/gogs.working/templates/user/settings/sshkeys.tmpl
31c31
<
---
>

I just edited the file sshkeys.tmpl and changed .ID with .Id , and now it works back.
Seems somebody has uppercase/lowercase sensitivity, and somebody has not?

Also I did a diff with the old template:
diff ~/gogs/templates/admin/config.tmpl  ~/gogs.working/templates/admin/config.tmpl
104,105c104,105
<                                     {{.i18n.Tr "admin.config.queue_length"}}
<                                     {{.Webhook.QueueLength}}

{{.i18n.Tr "admin.config.task_interval"}}

{{.Webhook.TaskInterval}} {{.i18n.Tr "tool.raw_minutes"}}

124,125d123
<                                     {{.i18n.Tr "admin.config.mailer_disable_helo"}}
<
If I put the old one there, it works again....

Thanks your info!
But based on how you did fix the problem, I still think you Gogs didn't compile right...

I check the file you suggested , and they are the same. Also the md5 is the same. I have the same code of you, at least the file you mentioned in the other thread.

Then I copy the custom config folder I have saved before

Would you mind to dump your custom app.ini here?

Sure
(lalalalala) is for credentials.
==================8X============================
RUN_USER = git
RUN_MODE = prod
APP_NAME = WolfStep Git Repo
[database]
DB_TYPE = mysql
HOST = <IP_ADDRESS>:3306
NAME = lalalala
USER = lalalala
PASSWD = lalalala
SSL_MODE = disable
PATH = data/gogs.db
[repository]
ROOT = /home/git/gogs-repositories
SCRIPT_TYPE = bash
[server]
DOMAIN = www.wolfstep.cc
HTTP_PORT = 8080
ROOT_URL = https://www.wolfstep.cc/
LANDING_PAGE = explore
OFFLINE_MODE = false
PROTOCOL = http
DISABLE_SSH = false
[mailer]
ENABLED = true
SEND_BUFFER_LEN = 10
SUBJECT = %(APP_NAME) Message
HOST = lalalala
DISABLE_HELO =
HELO_HOSTNAME = lalalala
SKIP_VERIFY = true
USE_CERTIFICATE = false
FROM = lalalala
USER = lalalala
PASSWD = lalalala
[service]
REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = true
SHOW_REGISTRATION_BUTTON = false
ENABLE_CACHE_AVATAR = true
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Info
[security]
INSTALL_LOCK = true
SECRET_KEY = lalalalala
[picture]
DISABLE_GRAVATAR = false
[oauth]
ENABLED = true
[oauth.github]
ENABLED = true
CLIENT_ID = lalalala
CLIENT_SECRET = lalalala
SCOPES = https://api.github.com/user
AUTH_URL = https://github.com/login/oauth/authorize
TOKEN_URL = https://github.com/login/oauth/access_token
[attachment]
ENABLE = true
PATH = /gogs/data/attachments
ALLOWED_TYPES = image/jpeg|image/png
MAX_SIZE = 32
MAX_FILES = 10
[git.fsck]
ENABLE = true
INTERVAL = 6

Well... one last shot, are you using 64 bit system? If yes, try one of zip file: https://github.com/gogits/gogs/releases/tag/v0.6.3 and see if it works.

Yes, I am using a 64bit system.
I downloaded and compiled the tarfile , and I have to say:

The ssh problem is NOT there. (yuppy!).
Still the error template: admin/config:105:50: executing "admin/config" at <.Webhook.QueueLength>: QueueLength is not a field of struct type interface {}
When clicking on "View comparison for these 2 commits " I get a 404.

About 2), I didn't configured the webhook parameter in the app.ini, so I am gonna try to do it.
I put the server on "Trace", so I will check a little better.

Sorry, even configuring the Webhook section the error is still this:
admin/config:105:50: executing "admin/config" at <.Webhook.QueueLength>: QueueLength is not a field of struct type interface {}

Fine... I'm lost...:sob:

Well, actually One problem (ssh) went away, the other is not blocking to use the system... it is 1-1 :)

@uriel-fanelli sorry about it :joy: maybe at some point, suddenly I know what's going on.

Well, I understood why the 404 when comparing files:
In the logs I see that:
[Macaron] Started GET /https://www.wolfstep.cc/boseburo/anzeigen/compare/bde2bd1ab6bf5ad317d35d2eedc3e37b39b59359...56fb8dba9da88ad682cf8f76669cfd93a3fff9fd for <IP_ADDRESS>
[Macaron] Completed /https://www.wolfstep.cc/boseburo/anzeigen/compare/bde2bd1ab6bf5ad317d35d2eedc3e37b39b59359...56fb8dba9da88ad682cf8f76669cfd93a3fff9fd 404 Not Found in 12.442326ms
and the url shown on the browser is this:
https://www.wolfstep.cc/https://www.wolfstep.cc/boseburo/anzeigen/compare/bde2bd1ab6bf5ad317d35d2eedc3e37b39b59359...56fb8dba9da88ad682cf8f76669cfd93a3fff9fd
seems the server is somehow attaching the whole URL to the base URL, so that https://www.wolfstep.cc/ is appearing twice.....

seems the server is somehow attaching the whole URL to the base URL, so that https://www.wolfstep.cc/ is appearing twice..... as I see in the page, this comes from the html which is generated.

I really have no idea about Gogs on your machine, you was running somewhat v0.6.4 but it didn't do auto-migration for your database, and now it somehow append prefix of the commit compare URL which is newly added after v0.6.3...

The problem appears in this moment:
templates/user/dashboard/feeds.tmpl:                {{if $push.CompareUrl}}{{$.i18n.Tr "action.compare_2_commits"}} »{{end}}
I just fixed it on my machine like:
{{if $push.CompareUrl}}{{$.i18n.Tr "action.compare_2_commits"}} \xc2\xbb{{end}}
and now it works.

Well, if you like I can check into the database, but please don't ask me to wipe it out, I don't want to configure the site from scratch...  :disappointed:

but please don't ask me to wipe it out, I don't want to configure the site from scratch...

That's not an option, of course.
The problem we face right now is your Gogs code doesn't match template files.
So, in order to get us on the same page, would you like to do following commands to build Gogs from develop branch.
$ git clone git@github.com:gogits/gogs.git
$ git checkout develop
$ go build -v
$ ./gogs web

And please dump everything from console here.

(14:24:53)[~/mygo/src/gogs]
[loweel@AltPanzer]#  git checkout develop
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
(14:24:56)[~/mygo/src/gogs]
[loweel@AltPanzer]#  go build -v
gogs
(14:26:11)[~/mygo/src/gogs]
[root@AltPanzer]# ./gogs web
2015/08/11 14:26:33 [T] Custom path: /home/git/gogs/custom
2015/08/11 14:26:33 [T] Log path: /home/git/gogs/log
2015/08/11 14:26:33 [I] WolfStep Git Repo <IP_ADDRESS>0 Beta
2015/08/11 14:26:33 [I] Log Mode: File(Info)
2015/08/11 14:26:33 [I] Cache Service Enabled
2015/08/11 14:26:33 [I] Session Service Enabled
2015/08/11 14:26:33 [I] Mail Service Enabled
2015/08/11 14:26:33 [I] Register Mail Service Enabled
2015/08/11 14:26:33 [I] Oauth Service Enabled [GitHub]
2015/08/11 14:26:34 [I] Run Mode: Production
panic: template: repo/pulls/fork:50: function "Safe" not defined
goroutine 1 [running]:
html/template.Must(0x0, 0x8010ed440, 0xc20844d130, 0x0)
/home/loweel/go/src/html/template/template.go:304 +0x50
github.com/Unknwon/macaron.compile(0xc2082312c0, 0x18, 0x0, 0x0, 0xc2082312e0, 0x2, 0x2, 0xc20802d558, 0x1, 0x1, ...)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:275 +0x400
github.com/Unknwon/macaron.(*templateSet).Set(0xc20823fd40, 0xc938e0, 0x7, 0xc20815a000, 0x0)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:300 +0x51
github.com/Unknwon/macaron.renderHandler(0xc2082312c0, 0x18, 0x0, 0x0, 0xc2082312e0, 0x2, 0x2, 0xc20802d558, 0x1, 0x1, ...)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:367 +0x248
github.com/Unknwon/macaron.Renderer(0xc2083dd240, 0x1, 0x1, 0x0, 0x0)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:404 +0xea
github.com/gogits/gogs/cmd.newMacaron(0xc20815a2a0)
/home/loweel/golib/src/github.com/gogits/gogs/cmd/web.go:126 +0x6a2
github.com/gogits/gogs/cmd.runWeb(0xc20815a2a0)
/home/loweel/golib/src/github.com/gogits/gogs/cmd/web.go:185 +0xbe
github.com/codegangsta/cli.Command.Run(0xcbd7e0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd1d390, 0x15, 0xdf20d0, ...)
/home/loweel/golib/src/github.com/codegangsta/cli/command.go:118 +0x104b
github.com/codegangsta/cli.(*App).Run(0xc208186000, 0xc20800a000, 0x2, 0x2, 0x0, 0x0)
/home/loweel/golib/src/github.com/codegangsta/cli/app.go:154 +0xd04
main.main()
/home/loweel/mygo/src/gogs/gogs.go:40 +0x367
goroutine 5 [select]:
github.com/gogits/gogs/modules/log.(*Logger).StartLogger(0xc2080415c0)
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:231 +0x369
created by github.com/gogits/gogs/modules/log.newLogger
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:161 +0x13a
goroutine 23 [chan receive]:
database/sql.(*DB).connectionOpener(0xc2081e4780)
/home/loweel/go/src/database/sql/sql.go:589 +0x4c
created by database/sql.Open
/home/loweel/go/src/database/sql/sql.go:452 +0x31c
goroutine 7 [chan receive]:
github.com/gogits/gogs/modules/mailer.processMailQueue()
/home/loweel/golib/src/github.com/gogits/gogs/modules/mailer/mailer.go:53 +0x69
created by github.com/gogits/gogs/modules/mailer.NewMailerContext
/home/loweel/golib/src/github.com/gogits/gogs/modules/mailer/mailer.go:47 +0xea
goroutine 8 [select]:
github.com/gogits/gogs/modules/log.(*Logger).StartLogger(0xc208167b40)
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:231 +0x369
created by github.com/gogits/gogs/modules/log.newLogger
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:161 +0x13a
goroutine 24 [select]:
github.com/gogits/gogs/modules/cron.(*Cron).run(0xc20816b540)
/home/loweel/golib/src/github.com/gogits/gogs/modules/cron/cron.go:162 +0xa65
created by github.com/gogits/gogs/modules/cron.(*Cron).Start
/home/loweel/golib/src/github.com/gogits/gogs/modules/cron/cron.go:137 +0x3d
goroutine 25 [select]:
github.com/gogits/gogs/modules/log.(*Logger).StartLogger(0xc208041e40)
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:231 +0x369
created by github.com/gogits/gogs/modules/log.newLogger
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:161 +0x13a
goroutine 105 [chan send]:
text/template/parse.lexRightDelim(0xc208377680, 0xe56710)
/home/loweel/go/src/text/template/parse/lex.go:263 +0xb7
text/template/parse.(*lexer).run(0xc208377680)
/home/loweel/go/src/text/template/parse/lex.go:198 +0x5d
created by text/template/parse.lex
/home/loweel/go/src/text/template/parse/lex.go:191 +0x1ac

........... what the heck: https://github.com/gogits/gogs/blob/develop/modules/base/template.go#L135

[loweel@AltPanzer]# go build -v
gogs

(14:26:11)[~/mygo/src/gogs]
[root@AltPanzer]# ./gogs web

Why user are different here? root/loweel

I have the same in the source code:
=================8X======================
  "LoadTimes": func(startTime time.Time) string {
            return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
    },
    "AvatarLink": AvatarLink,
    "Safe":       Safe,
    "Str2html":   Str2html,
    "TimeSince":  TimeSince,
    "FileSize":   FileSize,
    "Subtract":   Subtract,
    "Add": func(a, b int) int {
            return a + b

========================================
Then we are looking at the same code.
the md5 of the file is 70e0a0dbcdbb25f5478e16b66d72c743

Users are different because I don't compile as root.
Using the same user is exactly the same, anyhow.

Users are different because I don't compile as root.

Different users can certainly cause many hidden problems.

What happens if you clone but don't compile, does system complains that Gogs does not exist?

Ok, let's run it again with the same user, then.
(14:40:27)[~/mygo/src]
[loweel@AltPanzer]# ./gogs web
2015/08/11 14:40:53 [T] Custom path: /home/git/gogs/custom
2015/08/11 14:40:53 [T] Log path: /home/git/gogs/log
2015/08/11 14:40:53 [I] WolfStep Git Repo <IP_ADDRESS>0 Beta
2015/08/11 14:40:53 [I] Log Mode: File(Info)
2015/08/11 14:40:53 [I] Cache Service Enabled
2015/08/11 14:40:53 [I] Session Service Enabled
2015/08/11 14:40:53 [I] Mail Service Enabled
2015/08/11 14:40:53 [I] Register Mail Service Enabled
2015/08/11 14:40:53 [I] Oauth Service Enabled [GitHub]
2015/08/11 14:40:54 [I] Run Mode: Production
panic: template: repo/pulls/fork:50: function "Safe" not defined
goroutine 1 [running]:
html/template.Must(0x0, 0x8010ed440, 0xc2084328d0, 0x0)
/home/loweel/go/src/html/template/template.go:304 +0x50
github.com/Unknwon/macaron.compile(0xc20818de00, 0x28, 0x0, 0x0, 0xc208176ac0, 0x2, 0x2, 0xc20802c258, 0x1, 0x1, ...)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:275 +0x400
github.com/Unknwon/macaron.(*templateSet).Set(0xc20818de90, 0xc938e0, 0x7, 0xc20815a380, 0x0)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:300 +0x51
github.com/Unknwon/macaron.renderHandler(0xc20818de00, 0x28, 0x0, 0x0, 0xc208176ac0, 0x2, 0x2, 0xc20802c258, 0x1, 0x1, ...)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:367 +0x248
github.com/Unknwon/macaron.Renderer(0xc208399240, 0x1, 0x1, 0x0, 0x0)
/home/loweel/golib/src/github.com/Unknwon/macaron/render.go:404 +0xea
github.com/gogits/gogs/cmd.newMacaron(0xc20815a2a0)
/home/loweel/golib/src/github.com/gogits/gogs/cmd/web.go:126 +0x6a2
github.com/gogits/gogs/cmd.runWeb(0xc20815a2a0)
/home/loweel/golib/src/github.com/gogits/gogs/cmd/web.go:185 +0xbe
github.com/codegangsta/cli.Command.Run(0xcbd7e0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd1d390, 0x15, 0xdf20d0, ...)
/home/loweel/golib/src/github.com/codegangsta/cli/command.go:118 +0x104b
github.com/codegangsta/cli.(*App).Run(0xc208182000, 0xc20800a000, 0x2, 0x2, 0x0, 0x0)
/home/loweel/golib/src/github.com/codegangsta/cli/app.go:154 +0xd04
main.main()
/home/loweel/mygo/src/gogs/gogs.go:40 +0x367
goroutine 5 [select]:
github.com/gogits/gogs/modules/log.(*Logger).StartLogger(0xc2080435c0)
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:231 +0x369
created by github.com/gogits/gogs/modules/log.newLogger
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:161 +0x13a
goroutine 7 [chan receive]:
github.com/gogits/gogs/modules/mailer.processMailQueue()
/home/loweel/golib/src/github.com/gogits/gogs/modules/mailer/mailer.go:53 +0x69
created by github.com/gogits/gogs/modules/mailer.NewMailerContext
/home/loweel/golib/src/github.com/gogits/gogs/modules/mailer/mailer.go:47 +0xea
goroutine 8 [select]:
github.com/gogits/gogs/modules/log.(*Logger).StartLogger(0xc208154640)
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:231 +0x369
created by github.com/gogits/gogs/modules/log.newLogger
/home/loweel/golib/src/github.com/gogits/gogs/modules/log/log.go:161 +0x13a
goroutine 84 [chan send]:
text/template/parse.lexRightDelim(0xc2083e5a00, 0xe56710)
/home/loweel/go/src/text/template/parse/lex.go:263 +0xb7
text/template/parse.(*lexer).run(0xc2083e5a00)
/home/loweel/go/src/text/template/parse/lex.go:198 +0x5d
created by text/template/parse.lex
/home/loweel/go/src/text/template/parse/lex.go:191 +0x1ac

(14:47:32)[~/mygo/src/gogs]
[loweel@AltPanzer]#  go version
go version go1.4.2 linux/amd64

(14:48:22)[~/mygo/src/gogs]
[loweel@AltPanzer]#  set | grep GO
GOARCH=amd64
GOBIN=
GOCHAR=6
GOEXE=
GOHOSTARCH=amd64
GOHOSTOS=linux
GOOS=linux
GOPATH=/home/loweel/golib:/home/loweel/mygo
GORACE=
GOROOT=/home/loweel/go
GOTOOLDIR=/home/loweel/go/pkg/tool/linux_amd64

[loweel@AltPanzer]# git checkout develop
[loweel@AltPanzer]# go build -v

Are those commands executed in home dir or you hide the path?

No, I didn't hide: as you see above:
(14:24:53)[~/mygo/src/gogs]
[loweel@AltPanzer]# git checkout develop
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
(14:24:56)[~/mygo/src/gogs]
[loweel@AltPanzer]# go build -v
gogs
the path is always into the GOPATH folder, which is /home/loweel/mygo
where /home/loweel is represented by ~

Thanks! Understood!
Let's try remove gogs binary in [~/mygo/src/gogs] and do ./gogs web or gogs web

(15:10:16)[~/mygo/src/gogs]
[loweel@AltPanzer]#  rm gogs
(15:10:20)[~/mygo/src/gogs]
[loweel@AltPanzer]#  ./gogs web
-bash: ./gogs: No such file or directory
(15:11:34)[~/mygo/src/gogs]
[loweel@AltPanzer]#  gogs web
-bash: gogs: command not found
well, I have more than twenty years of experience as sysadmin and operations, and this is the most strange request I have seen.  Just in case:
(15:12:24)[~/mygo/src/gogs]
[loweel@AltPanzer]#  which gogs
(15:12:26)[~/mygo/src/gogs]
[loweel@AltPanzer]#  which bash
/bin/bash
maybe you wanted to check which binary I was running, in the path there is no other gogs. :smile:

well, I have more than twenty years of experience as sysadmin and operations, and this is the most strange request I have seen. Just in case:

Special case needs special OPs :stuck_out_tongue_closed_eyes:

Also I tried to strace it, but
lstat("/home/loweel/mygo/src/gogs/templates/repo/pulls/fork.tmpl",{ mode=-rw-r--r-- ,inode=81700,size=2685,blksize=4096 }) = 0 (0x0)
open("/home/loweel/mygo/src/gogs/templates/repo/pulls/fork.tmpl",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rw-r--r-- ,inode=81700,size=2685,blksize=4096 }) = 0 (0x0)
read(4,"{{template "base/head" .}}\n<div"...,3197) = **2685** (0xa7d)
read(4,0xc2081fe47d,512)                         = 0 (0x0)
close(4)                                         = 0 (0x0)

the file is read correctly, (2685 Bytes)
and stripping the binary had no result. :sad:

The funny think is the previous version (the one before you paused developing) was working perfectly on the same machine, so this is why I doubt the problem is the compilation or the environment.

Yeah, it does not make sense that you download compiled zip file and still has same errors.

Uhm... well, I didn't downloaded a compiled file, I downloaded the tar zipped file and I created from scratch, as you requested...

I downloaded it on a FreeBSD machine also, and it is doing the same.

Well......... what did I mean is this file: https://github.com/gogits/gogs/releases/download/v0.6.3/linux_amd64.zip

This one works, but it is not the same size of the file I get compiling the code. Which go compiler are you using?

GCC I believe?

I meant, which version of go compiler.

Go version? 1.4.2

Well, I've tried on several machines. The binary you sent me works, the source I compile is not. I will try to compile this very tag this evening...

So weird...

Well, it is not the first time I see something to compile properly only on the developer's machine.
:smiley:
I will get rid of this problem, too.
:smiley:

Haha, actually that's not compiled from my develop machine, I installed a Debian distro for better support of Linux system, which I only power it when release...

In the config file.
[database]
...
PATH = data/gogs.db

that line can be deleted because is for SQLite configuration. Thouth it is not harm being there as it is ignored and unrelated to the problem.
[server]
...
ROOT_URL = https://www.wolfstep.cc/
...
PROTOCOL = http
...

something looking strange to me there. But don't know if it is related to the problem.

Manfer the URL  this is normal. This is because there is a haproxy in front of the gogs itself, taking care of doing the https. But this has never created issues, I used gogs for months before of unknwon leaving and it was ok.
I asked on the go-nuts mailing list about this issue, because of caching or tmp file. I will wait their answers.

So at the end I found the problem.
Just  take a vanilla machine and do a
 git clone https://github.com/gogits/gogs.git

then you enter the folder gogs and type :
  go get -u -v

then it will end like that:
../../../golib/src/github.com/gogits/gogs/models/issue.go:202: undefined: setting.IssuePagingNum
../../../golib/src/github.com/gogits/gogs/models/issue.go:253: undefined: setting.IssuePagingNum
../../../golib/src/github.com/gogits/gogs/models/issue.go:717: undefined: setting.IssuePagingNum
../../../golib/src/github.com/gogits/gogs/models/issue.go:720: undefined: setting.IssuePagingNum
../../../golib/src/github.com/gogits/gogs/models/repo.go:252: undefined: setting.SSHDomain
../../../golib/src/github.com/gogits/gogs/models/repo.go:254: undefined: setting.SSHDomain
../../../golib/src/github.com/gogits/gogs/models/webhook.go:404: setting.Webhook.QueueLength undefined (type struct { TaskInterval int; DeliverTimeout int; SkipTLSVerify bool } has no field or method QueueLength)

which means, it only compiles on some machines which are having the proper dependencies, for any reason. But you can't get them from the internet.
Sorry, I am giving up. Please close the issue.

It is really... :joy: Anyway, good to know the ending story.


App Stuck on 'try Realm()' when upgrading from previous version

So, we've an iOS app that was using the Objective C version of Realm and we recently migrated our whole app to Swift, including Realm. We're now on RealmSwift 2.7.0
When the users freshly install the app, it works fine without any issues. When trying to upgrade from a previous version of the app, the app is stuck on launch screen and goes into a limbo until when the OS decides to shut it down.
Goals
Trying to get users to run our app and use Realm when upgrading from a previous version of the app
Expected Results
App should run fine without any issues
Actual Results
There is no real crash, the app is just stuck. We narowed down the problem to any calls of the following code :-
let realm = try Realm()
It seems the app is unable to find Realm?
Steps to Reproduce
For reference, here are a few code samples called via our AppDelegate where we are using this (and all reproducing the crash)
In our realm configuration code (We thought there may be a schema/data problem so we deleted all data from older versions):
if oldSchemaVersion < 5 {
                let realm = try! Realm()
                try! realm.write {
                    realm.deleteAll()
                }
}

This is a general use case where we fetch all active reminders on app launch:-
do {
            let realm = try Realm()
            let reminders = realm.objects(DMReminder.self).filter("isActive==1")
            return reminders
        }
        catch let error as NSError{
            print(error)
            return nil
        }

Version of Realm and Tooling
Xcode version: 8.3.2
iOS/OSX version: Tested on iOS 8,9, and 10.
Dependency manager + version: Cocoapods 1.2.1

@PuneetKohli You cannot open the Realm during migration. The Realm is already opened by migration. The Realm file holds the lock because the migration has started the write transaction. So if you try to open the Realm it will wait forever for the lock.
if oldSchemaVersion < 5 {
    let realm = try! Realm()
    try! realm.write {
        realm.deleteAll()
    }
}

^ Instead of that, you can use migration.deleteData(forType:) to delete a class. Also, you can use create(_:value:) to create new object.

@PuneetKohli do you need any further help or can we close this issue?

This is good to close, thanks.
as a side-note: We ended up just using .deleteRealmIfMigrationNeeded() in our migration logic, as we figured it's better than deal with all the previous versions as we had a lot of schema changes.

Awesome, thanks!


[WIP] v1.0.0 styling

This inlines the icons in our default stylesheet.

TODO

[x] Allow different selectors than .share-button

This allows multiple instances of share-button and moves the creation of a button to use the tag <share-button></share-button>

Ready to be reviewed before rebase & merge @tmilewski


Do not show current user in mention autocomplete

It would be better if the @ mentions did not suggest the user typing in the list, or at least last, since it is very unlikely that the user will poke himself.
Thanks for the great app by the way !

Hah. Good catch.


Fix method definition warning

Fixes https://github.com/SciML/Integrals.jl/issues/152

I don't see how this solves anything :confused: .
With master of package:
┌ Integrals [de52edbc-65ea-441a-8357-d3a637375a31]
│  WARNING: Method definition solve(SciMLBase.IntegralProblem{isinplace, P, F, L, U, K} where K where U where L where F where P where isinplace) in module Integrals at /home/kc/JuliaPkgs/Integrals.jl/src/Integrals.jl:60 overwritten at /home/kc/JuliaPkgs/Integrals.jl/src/Integrals.jl:111.
│    ** incremental compilation may be fatally broken for this module **
│
│  WARNING: Method definition kwcall(Any, typeof(CommonSolve.solve), SciMLBase.IntegralProblem{isinplace, P, F, L, U, K} where K where U where L where F where P where isinplace) in module Integrals at /home/kc/JuliaPkgs/Integrals.jl/src/Integrals.jl:60 overwritten at /home/kc/JuliaPkgs/Integrals.jl/src/Integrals.jl:111.
│    ** incremental compilation may be fatally broken for this module **

wait where's the other definition? Both are pointing to the same line of code?


OpenComputers Support

Would it be possible to prevent inserting items into the Assembler block from OpenComputers?

thats already possible via the OpenComputers config file

Oo my bad


sql: introduce SET ROLE

https://github.com/cockroachdb/cockroach/pull/68973 --- Release note (sql change): This commit introduces SET ROLE, which allows users with certain permissions to assume the identity of another user. It is worth noting that due to cross-version compatibility, session_user will always return the same as current_user until v22.1. Instead, use session_user() if you require this information.

Duplicate of https://github.com/cockroachdb/docs/issues/11447


[bug] ignores is_mobile False from device

In admin interface:

Create a device with a location, set the marker, check is_mobile & save.
Open it again, uncheck is_mobile, save
Open the device again and notice is_mobile is checked.

I would work on this once https://github.com/openwisp/django-loci/pull/73 is merged.

Sure! :smile:

@Purhan #73 is merged! :tada:

Thanks, I just created a pull request. This was extremely similar to #65 :smile:


Error on make run

I'm using RPi2 running on Jessie. I can compile both OF and Footfall. Also tested that the camera works for video. Encountered the following the error. Couldn't get much help through Googling.

[notice ] ofAppEGLWindow: setupPeripherals(): native event setup complete
[verbose] ofxCvPiCam()
Loading Settings
Not Loaded Settings: Program will not run!
OpenCV Error: Assertion failed (npoints >= 0 && (depth == CV_32S || depth == CV_32F)) in approxPolyDP, file /build/opencv-ISmtkH/opencv-<IP_ADDRESS>+dfsg/modules/imgproc/src/contours.cpp, line 1871
terminate called after throwing an instance of 'cv::Exception'
what():  /build/opencv-ISmtkH/opencv-<IP_ADDRESS>+dfsg/modules/imgproc/src/contours.cpp:1871: error: (-215) npoints >= 0 && (depth == CV_32S || depth == CV_32F) in function approxPolyDP
Aborted
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:168: recipe for target 'run' failed
make: *** [run] Error 134

Hi @cw-l
Ok that sounds like you dont have the xml file in the data folder
Best

I reinstalled OF for ARM v7 and Footfall for RPi2 and it's working now.


Improve dataframe handling performance

During implementation of simplex in #167 , it was noticed that a significant xopt overhead slows down optimization. On a random number generator, Xopt runs 400 (!) times slower than the generator on its own. Profiling traced this to issues with DataFrame manipulation, which is unfortunately easy to trigger due to how pandas internal block management works.
This PR addresses some of the biggest hot spots, reducing overhead by about a factor of 5 (3ms in local testing). A test is added to ensure this overhead remains low going forward.

Yes, looking into it now. I think this is because the new fast behavior treats pd.Series same as list/np.ndarray, and explodes them, whereas before they were kept as is, and used by that example for debug storage. Namely:
 outcome_dict = {'f': f_val, 'p_opt': pd.Series(p_opt_i)}
Not sure if supporting pd.Series return types is something that should be supported officially? We can limit the 'exploding' scan to only variables columns, and let others store anything.

is this ready to go, or still in draft phase?

Ready. The big change is lazy generator loading - it is likely that deap/cnsga is needed approximately never experimentally, and thus we shouldn't load it. I don't think anything relies on having a full generator list, but full load can be forced with a new function.
P.S. I have no idea what happened with torch failure in d78f4f1, it went away on next commit...

thanks for the work @nikitakuklev! What do you mean by "approximately never experimentally"?

So while we do use Xopt a lot for online tuning, there are also a number of people who use it for simulation optimization, so I would like to keep first-class support for both online and offline algorithms

Yes, the only change is that generators are not imported until get_generator(name) is called. No functionality is lost, except that generator list will not be fully populated on startup.


Do not run middleware if exception is thrown

Hi, me again...
I have a really simple middleware which runs on every request and adds a key value to the JSON response. But I do not want to run it if there is an exception thrown and dingo shows the error message.
Right now dingo generates the error message, then my middleware runs and adds my custom value after.
Is it possible to tell it somehow not to run middleware if exception is thrown? Or at least run middleware, but detect if exception is thrown so I can use an if statement and ommit the middleware code.

Is this in a Laravel or Lumen install?

Lumen.
Perhaps there is a simple variable to check "if exception true" ?

I'll take a look when I can. This might be how Lumen does it.

This is a very late reply so I'm sorry for that.
I'm curious, but how is the exception being generated? Can you supply some sample code. I'm mulling this over now and perhaps it's because you're returning an error response?
In this case you should use the status code of the response in your middleware to check if it's not a 4xx status code.
$statusCode = $response->getStatusCode();

if ($statusCode >= 200 && $statusCode < 300) {
    // apply custom key to response because we have an OK status code
}

Let me know if this needs further looking at.


feat: ini wagmi

Current dependencies on/for this PR:

main

PR #131   👈

This comment was auto-generated by Graphite.


update readme with packaging status

I create a package for homebrew.
So it would be need to see the repositories for various package manager for easier installation.
https://github.com/Homebrew/homebrew-core/pull/112877/

Cool, thanks!


Fix default routing behaviour with trailing slash

What kind of change does this PR introduce?
Bug fix
What is the current behaviour?

#22
routes with trailing slash like blog/5/ return "not found error"

What is the new behaviour?

/ and /index route to pages/index/ as expected.
routes with trailing slash like blog/5/ redirect to their counterpart without slash (blog/5)

Further routes with trailing slash
Does this PR introduce a breaking change?
Yes, if the tests involved the routes types covered by this PR.
Other information:
Please check if the PR fulfills these requirements:

[X] Tests for the changes have been added
[X] Docs have been added / updated

Coverage remained the same at 100.0% when pulling f6e9f868ed654aaccf019f39c6905a17dbd7454c on index-route into 881d6f3da8d7910fe1a9206dcc1fb21bfe9b37bf on master.


v- without directive name accidentally parsed as v-slot

Version
3.2.7
Reproduction link
vue-next-template-explorer.netlify.app
Steps to reproduce
Input code like   <template v->123</template> in template explorer or sfc playground.
What is expected?
Vue should report missing directive name error and treat v- as a plain attribute.
What is actually happening?
v- is parsed as v-slot.

It's probably an implementation specific behavior. When the regex v- matches nothing, vue fallbacks to slot
https://github.com/vuejs/vue-next/blob/master/packages/compiler-core/src/parse.ts#L779-L791

closed via #4495


Ionic 2 RC0: Some spinner components don’t work on Edge or Firefox

Dots, bubbles and circles. Ironically including the default WP spinner.

Hello! While we appreciate you opening an issue with us i am going to close this issue and ask that you open a new one that has the issue template filled out please. Thanks for using Ionic!

#8714


Sentry doesn't working without curl

Please add curl to composer.json requirements

We do (in getsentry/sentry-php), but I guess you already found that out?
https://github.com/getsentry/sentry-php/blob/master/composer.json#L21


remove the boulder summit, add a blog post explaining why

I have seen more good thoughts that would make fine concurring opinions in a personal space.  In the organization's space, I find that this says what needs to be said and no more. :+1:

I agree with @rossabaker

This whole thing is sad, but I agree it's what we should do.

Also :+:.


Issue with installation

Hi ,
I am using python 3.6.3 and installed snaptools and i am getting the following error
Traceback (most recent call last):   File "/home/sasim/my_python-3.6.3/bin/snaptools", line 7, in <module>     exec(compile(f.read(), __file__, 'exec'))   File "/home/sasim/tools/snaptools/bin/snaptools", line 36, in <module>     from snaptools.parser import parse_args   File "/home/sasim/tools/snaptools/snaptools/parser.py", line 31, in <module>     from snaptools.utilities import str2bool   File "/home/sasim/tools/snaptools/snaptools/utilities.py", line 7, in <module>     import pybedtools   File "/home/sasim/my_python-3.6.3/lib/python3.6/site-packages/pybedtools/__init__.py", line 17, in <module>     from .bedtool import BedTool   File "/home/sasim/my_python-3.6.3/lib/python3.6/site-packages/pybedtools/bedtool.py", line 388, in <module>     class BedTool(object):   File "/home/sasim/my_python-3.6.3/lib/python3.6/site-packages/pybedtools/bedtool.py", line 1637, in BedTool     @_wraps(prog='bed12ToBed6', implicit='i', bam=None, other=None)   File "/home/sasim/my_python-3.6.3/lib/python3.6/site-packages/pybedtools/bedtool.py", line 167, in _wraps     p = subprocess.Popen(helpers._version_2_15_plus_names(prog) + ['-h'],   File "/home/sasim/my_python-3.6.3/lib/python3.6/site-packages/pybedtools/helpers.py", line 287, in _version_2_15_plus_names     _check_for_bedtools()   File "/home/sasim/my_python-3.6.3/lib/python3.6/site-packages/pybedtools/helpers.py", line 87, in _check_for_bedtools     vv = v.decode().split('v')[1] IndexError: list index out of range
Can you help me in troubleshooting what may be causing this error?
Thank you
Sasi

hi Sasi,
This is an error caused by failure of installing pybedtools. Can you try to pre-install pybedtools? and let me know if this is not working
Best,
-R

Sure i will reinstall pybedtools and see how it goes.
Thank you

Following this solution here https://github.com/r3fang/SnapATAC/issues/2 worked!
Thanks again!


Clean as

[ ] #217
[ ] Fix CI
[ ] Fix package.json (contributos, licence, description,...)
[ ] #219
[ ] Improve issue template (ture also for massa-as-sdk I think)

type:

[x] #206
[ ] #211
[ ] don't lose time on args
[ ] #215
[x] #208

For SafeMath: see also comments here https://github.com/massalabs/as/pull/101
transfromer:

[ ] document https://github.com/massalabs/as/blob/main/packages/as-transformer/src/**/*

proba:

[ ] #213
[ ] find a better strategy than drawing an histogram and if not possible, find a way to deactivate it and explain when to test it https://github.com/massalabs/as/blob/main/packages/as-proba/assembly/tests/binomial.spec.ts#L30

cc @Ben-Rey

remove fromArgs, addArgs and to toArgs on all objects (@Thykof can you confirm ?)

Yes, I confirm, because now we can add any Serializable object.

@Thykof so now instead of implementing random unsafe methods, we should inherit the classes from Serializable interface right ?

@gregLibert not sure what you refer to when talking about documenting transformer, you meant MassaExport transformer ?


The type or namespace name 'Controls' does not exist

Hi,
I don't know why I started getting the below message in 0.2.0-preview.2
Error CS0234: The type or namespace name 'Controls' does not exist in the namespace 'ZXing.Net.Maui' (are you missing an assembly reference?) (CS0234)
This is the line throwing the error:
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI"
Kindly help..
Thanks,
Jassim

https://github.com/Redth/ZXing.Net.Maui/issues/55
Please download ZXing.Net.Maui.Controls and change xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI" to xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.Maui.Controls"

I'am facing the same issue when updating from 0.1.0-preview7.
The extension .UseBarcodeReader(); for the MauiAppBuilder is not included as well.
Have the dependencies been moved to another package?
And if so, wouldn't it be better to have them as a dependency of Zxing.Net.Maui,
so that they are installed automatically?


fix: cairo's language server expect this file to be present else it crashes

to reproduce the issue:

open this project in vscode with cairo-lang-language-server setup as mentioned here
open any cairo file
see the extension crashing:

Ideally extension shouldn't crash even if Scarb.toml file is not present but because this is a cairo 1.0 project having a Scarb.toml in root of the repository make sense.

Is your extension crashing every single time? Mine doesn't. Perhaps you have one exercise causing the extension to crash because of a bad syntax?

yes it was crashing for any file that i opened, after futher debugging issue was that path to the scarb binary was not configured in vscode cairo extension.
i didn't set it because its not mentioned in the extension install process.
server is still panicing when i create a new file and try to write something but i think its an issue in language server.

yes its panicing every time, even for syntactically valid files. i am using server build from the HEAD of main branch in cairo repo. and scarb installed using instructions mentioned here

Aah, you might be using scarb-cairo-language-server with the Cairo vscode extension. Is that so?

yup confirmed from extension logs that if scarb is installed and even when scarb path is not set, it will auto detect and use its language server.

Hi @lambda-0x,
Can you open the PR again. I think I'd like to merge it.


[Feature Request] Search the map feature (quick address lookup)

As the title says. Hopefully not too much work to implement and it would save a lot of context switching
https://i.imgur.com/qDzMlqC.png

It's already implemented.


v0.64.0 Fancy Zone Bug

Microsoft PowerToys version
0.64.0
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
FancyZones
Steps to reproduce
All zone layouts put space between zones even with the toggle turned off. Cannot get space between zones removed.
PowerToysReport_2022-11-03-10-46-51.zip
✔ Expected Behavior
The spacing between zones to be disabled per the layout customization
❌ Actual Behavior
Cannot remove spacing between zones. Layout toggle does not seem to be working
Other Software
No response

Technically you can remove the space if you enable the space and move the slider to 0. This is very frustrating but does have a workaround.

I'm having the same issue. Reverting to v63.

@daniel-s-larsen You can't, it doesn't respect the setting anymore either. Forced 15px spaces around all zones no matter what.  Oh and it wiped my previous settings too which was annoying.
The only reason I use PowerToys is for FancyZones and it's so annoying to have those spaces it's unusable for me. I had to uninstall and I just picked a version from January 2022 because I wasn't sure when it broke. I am never updating this app again LOL It works fine, there's no reason to take a chance and break it and have to set everything up again.

Apparently this workaround may not work universally for everyone, but it did work for me and was easier than reverting to an old version.

I am noticing the same issue

/dup #21630


Add log statements

@vezenovm doesn't #622 only solve the addition of basic strings?

Yes I forgot that putting this issue in that PR description would automatically close the issue. Reopening it until https://github.com/noir-lang/acvm/pull/61 and #630 are merged into master.


Release EXE

Hi, please put the EXE file on the releases page.

There are now binaries for Linux and macOS (Windows isn't supported) on the release page.


Add multi tenancy support

Closes #126
Generated tests example:

@dissto LGTM (Besides the conflict)

@dissto Why does it check the records of other tenants (assertCanNotSee) and not just the second page of the current tenant.


AOP now shows based on cad setting (tow page)

AOP Would show no matter what on tow page even if cad said not to.

Fixed a small typo in language.json

Closing, check review


Cant Scroll Long Pop Up Lists

Godot version
4.02 Stable
System information
Windows 11, Vulkan Forward +, RTX2080S, Nvidia Game Ready 531.41
Issue description
When Object selection menu from the inspector opens scrolling using the mouse wheel or the scroll bar is not possible. This may happen with other pop up lists as well.
Steps to reproduce

Create a new Godot project
Create a new 3D scene
Create a new script and attach it to the root node
In the script add

@export
var test_array: Array = []

In the inspector create a new array element and select Object as the type by clicking the pencil button
Open the Object selection menu by pressing where it says empty
Try to scroll in the pop up

Result: Scrolling using the mouse wheel or the scroll bar is not possible
Expected Result: Scrolling using the mouse wheel or the scroll bar is possible
Minimal reproduction project
ScrollIssue.zip

Can't reproduce.
Does this bug occur every time? The popups can sometimes become unresponsive, but it happens randomly and is uncommon.

Unfortunately yes it does happen every time for me.

I can confirm it happens in other areas as well. For example, I was trying to switch animations on a Animation Player, where I have a lot of animations and I could not scroll. I did notice when I was trying to scroll the 3d viewport was zooming in and out or if I switched to the Script editor it would scroll the script. So, it seems the the popups do not fully capture the input.

It only can be reproduced only in multi window mode, as shown in the video below.
https://user-images.githubusercontent.com/45038185/233383455-64ea51eb-cba6-46b1-9772-1f8d2ba871a9.mp4
But there is another issue with using the arrow keys to select up and down: the scroll bar will flash up and down, which can be replicated in two window modes.

Just saw this issue in v4.1.stable.official [970459615]
In a SystemFont resource in the inspector, the popup for adding an element to the font names list does the same thing.


fix(client-app): global style updates

this pr favor scalar-app parent class over layer following #2135.
⚠ current @scalar/themes tailwind preset config is breaking the usage of responsive modifiers + some utilities, this pr is not to be merge before including an update on the color utility namings.

Ready for review, I didn't fix the popups and menus and what not since we aren't using them on the modal. Can deal with those later. But everything else should be good to go. The font-size for xxs has grown 11px -> 12px so there is a  slight difference there


Add Scrutinizer badge to readme

Codecov Report

Merging #12 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             master    #12   +/-   ##
=======================================
  Coverage       100%   100%
  Complexity        7      7
=======================================
  Files             1      1
  Lines            24     24
=======================================
  Hits             24     24

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc802bd...9e9c2fb. Read the comment docs.

Moved to 1 badge per line as @amneale requested (but his comment disappeared, probably because of my changed commit).


Change vault page name to inventory

Fixes #541

Hi @maheshchandra10, thanks for your contribution but we want to keep the name "Vault" :pray:


Relation between AbstractBuilding and AbstractBuildingSubdivision

The relation is now modelled as a decomposition, which is not the case in the INSPIRE model. I think the decomposition is to strict. In the Dutch case, the BAG (Buildings and Adresses Registration) allows a BuildingUnit to be in more than one Building / BuildingPart. See https://bagviewer.kadaster.nl/lvbag/bag-viewer/#?searchQuery=0202010000423721&geometry.x=190780.861&geometry.y=443841.456&zoomlevel=6&objectId=0202010000423721&detailsObjectId=0202010000423721 . I know it is in Dutch, but you see a case in which one 'Verblijfsobject' (INSPIRE BuildingUnit) is part of three 'Panden' (BuildingParts). In this case, it looks like old buildings that have been internally connected by doors in walls in order to create one large store.
The question is whether you want an administrative subdivision (BuildingUnit) to be defined equally strict as a physical subdivision (BuildingPart). I do understand the decomposition in the latter case, not in the former case. A m:n assocation might fit better with real life applications.

Good point! I agree, that it should be possible to relate a BuildingUnit to more than one BuildingPart. Therefore, we should replace the composition relationship to AbstractBuildingSubdivision by an aggregation relationship with a multiplicity of *. This should not cause bigger implementation efforts, because also the relationships to other building entities like BuildingInstallation and BuildingRoom are already modeled in that way.


feat: react-hook-form 적용 (#97)

feat: Create UrlInput with react-hook-form

refactor: Create EditorComponentInput type

각 input component editor(URL, Content, Title, Tgas...)들의 component type 정의

feat: Create TagInput which uses react-hook-form

feat(editor): Rewrite ContentEditor

rewrite new content editor which uses react-hook-form - deprecate original content editor

chore: Create editor scope of conventional commit

chore: Change test coverage files

feat(editor): Create SourceInput and InputWrapper

refactor(editor): :art: Change eidotor directory names

ArticleEditor -> inputs
Change directory name to lowercase

refactor(editor): :art: 이것저것

디렉토리 구조 변경
필요없는 파일 삭제
react-hook-form 사용
renderer 수정

feat(editor): Set default value in TagInptu if given

feat(editor): :triangular_flag_on_post: Set default zettel to small editor

Install @testing-library/user-event for convenient testing
Display "New" when creating new zettel.

feat(editor): :triangular_flag_on_post: Remove BigZettelEditor

Remove BigZettelEditor and use SmallZettelEditor instead

docs: 스토리북 정리

refactor: :art: Renderer 폴더 구조 정리

test: :white_check_mark: Create ContentRenderer test

chore: Ignore story book and service worker files in coverage statistics

feat(editor): 수정시 meta.url 있을 때삭제

mutation query를 보낼 때 url: null로 설정

style(editor): ZettelView에서 "수정"/"취소" 표시하자

수정모드에서 "수정"을 "취소"로 바꾼다.

feat: Display book source info

feat(editor): Note에 출처 추가 가능하게 하자

설명
관련 이슈

resolved #이슈넘버

기타(스크린샷 등)

Codecov Report

Merging #98 (772b3c9) into master (b319bbc) will decrease coverage by 4.27%.
The diff coverage is 88.09%.

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage   64.90%   60.62%   -4.28%
==========================================
  Files          46      104      +58
  Lines         815     1242     +427
  Branches      130      190      +60
==========================================
+ Hits          529      753     +224
- Misses        199      354     +155
- Partials       87      135      +48

Flag
Coverage Δ

client
52.45% <88.09%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../src/components/editor/inputs/ContentTypeInput.tsx
75.00% <ø> (ø)

client/src/components/renderer/ZettelCard.tsx
72.72% <ø> (ø)

...ts/renderer/renderer-component/ContentRenderer.tsx
80.00% <ø> (ø)

...s/renderer/renderer-component/MarkdownRenderer.tsx
100.00% <ø> (ø)

...ents/renderer/renderer-component/PlainRenderer.tsx
100.00% <ø> (ø)

client/src/components/zettel-grid/ZettelGrid.tsx
0.00% <ø> (ø)

...ient/src/components/zettel-page/ZettelListItem.tsx
66.66% <ø> (ø)

client/src/components/zettel-page/ZettelViewer.tsx
0.00% <0.00%> (ø)

client/src/pages/MainPage.tsx
0.00% <0.00%> (ø)

...ient/src/components/editor/inputs/ContentInput.tsx
66.66% <66.66%> (ø)

... and 65 more


Scala support

I added scala as an output format.

@JannikArndt That's amazing!  Thank you.
Do you have plans to support union types eventually?

There are a few compile errors:
src/language/Scala.ts(132,26): error TS6138: Property '_packageName' is declared but its value is never read.
src/language/Scala.ts(133,26): error TS6138: Property '_justTypes' is declared but its value is never read.
 ```

Also, would you mind adding Scala to the test suite?  See `languages.ts` in `test`, and the very bottom of `fixtures.ts`.  Basically you'll have to write a little driver program (in `test/fixtures/scala`) that deserializes JSON and then serializes it back again, and you'll have to tell the test suite how to build and run it.  The `Dockerfile` will also have to install Scala, I guess.  Or maybe Maven does that automatically?

Union Types
There is no obvious and universal way to represent union types in Scala (that's the beauty of the language 😉). A colleague of mine suggested nested Either (okay for two types, ugly for more) or shapeless' hlist, which would add another dependency.
So to answer your question, if I plan to support union types eventually: If I find an adequate solution, I will definitely add it, but I'd rather not support them then add a somewhat broken support. And I am still tinkering with possible solutions.
Tests
Yeah, I did see that one coming when I looked at #838 😉 It's on my list.
Compile warnings
Fixed that 👍

I thought cases classes is how you represent unions in Scala?  Isn't that the equivalent to discriminated unions in ML-like languages?
We'll wait for the test suite before merging.

@JannikArndt What's the status on this?  Can we help?

Hey there, sorry, I didn't have the time to write the tests, yet :(

@JannikArndt is there anything wrong with just having a sealed trait of one argument case classes to represent union types? I suppose it would play weird with singleton types like None or something so I suppose that partially answers the question.
Dotty won't become Scala 3 until 2020 as far as I've heard, so I feel like there are precious limited options in the short term.

@JannikArndt any opposition to handling this like https://scalapb.github.io/generated-code.html
specifically the section on oneOf?

@hderms Sounds good, I personally like the ScalaPB style. I still didn't find the time to implement anything further, though :(

@JannikArndt @hderms I'd really like to get this closed.  I'm happy to take over the work if you can give a short summary of what still needs to be done, from your point of view.  If you could write a test driver (see test/fixtures/* for other language's drivers) I'd be much obliged, but I can figure it out myself if you don't have the time at all.

@schani I'm not sure what needs to be done still but I felt like imitating the way ScalaPB does union types would be a reasonable way to do oneOf

Doesn't look like this is moving forward, so I'm closing it for now.  Please revive when/if there is new work.

@schani I'm working on this now. Can you point me in the direction of a json schema or whatever that we would be expected to produce unions from? I tried test/inputs/schema/direct-union.1.json and test/inputs/schema/union.json and neither seem to produce unions in either Kotlin or Rust. Maybe those languages don't implement unions properly or am i incorrect in thinking these files should produce union'd types?

@schani maybe I'm misinterpreting it but I don't get how this output is a union?
npm start -- "--lang csharp test/inputs/schema/union.schema"
><EMAIL_ADDRESS>start /Users/dermothaughey/projects/quicktype
> script/watch "--lang csharp test/inputs/schema/union.schema"

> Watching src/
// <auto-generated />
//
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
//
//    using QuickType;
//
//    var union = Union.FromJson(jsonString);

namespace QuickType
{
    using System;
    using System.Collections.Generic;

    using System.Globalization;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Converters;

    public partial class Union
    {
        [JsonProperty("$schema")]
        public Uri Schema { get; set; }

        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("items")]
        public Items Items { get; set; }
    }

    public partial class Items
    {
        [JsonProperty("oneOf")]
        public OneOf[] OneOf { get; set; }
    }

    public partial class OneOf
    {
        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("properties")]
        public Properties Properties { get; set; }

        [JsonProperty("required")]
        public string[] OneOfRequired { get; set; }
    }

    public partial class Properties
    {
        [JsonProperty("one", NullValueHandling = NullValueHandling.Ignore)]
        public One One { get; set; }

        [JsonProperty("two")]
        public One Two { get; set; }

        [JsonProperty("three", NullValueHandling = NullValueHandling.Ignore)]
        public One Three { get; set; }
    }

    public partial class One
    {
        [JsonProperty("type")]
        public string Type { get; set; }
    }

    public partial class Union
    {
        public static Union FromJson(string json) => JsonConvert.DeserializeObject<Union>(json, QuickType.Converter.Settings);
    }

    public static class Serialize
    {
        public static string ToJson(this Union self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings);
    }

    internal static class Converter
    {
        public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
        {
            MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
            DateParseHandling = DateParseHandling.None,
            Converters =
            {
                new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
            },
        };
    }
}

or this:
package main

import "encoding/json"

func UnmarshalUnion(data []byte) (Union, error) {
	var r Union
	err := json.Unmarshal(data, &r)
	return r, err
}

func (r *Union) Marshal() ([]byte, error) {
	return json.Marshal(r)
}

type Union struct {
	Schema string `json:"$schema"`
	Type   string `json:"type"`
	Items  Items  `json:"items"`
}

type Items struct {
	OneOf []OneOf `json:"oneOf"`
}

type OneOf struct {
	Type       string     `json:"type"`
	Properties Properties `json:"properties"`
	Required   []string   `json:"required"`
}

type Properties struct {
	One   *One `json:"one,omitempty"`
	Two   One  `json:"two"`
	Three *One `json:"three,omitempty"`
}

type One struct {
	Type string `json:"type"`
}

is union.schema expected to output an actual union type?

Sorry, you'll have to pass --src-lang schema

@schani my bad. That's what I get for trying to work on a project I barely understand :)


Private repos

This fixes #11
These changes provide support for private repos via https basic auth and/or ssh public keys.
This also removes the reliance on github and allows using other repos (github, bitbucket, etc)
@tmrts DO NOT MERGE THIS...
To get private repos / auth working requires upstream changes. They are as follows:

need support for hashed hostnames in crypto/ssh/knownhosts

A PR has been submitted to golang.org/x/crypto: https://go-review.googlesource.com/#/c/40532/
A matching PR has been made to src-d's fork of crypto: https://github.com/src-d/crypto/pull/2

need support for providing credentials to BasicAuth in go-git

A PR has been made here: https://github.com/src-d/go-git/pull/353

need gopkg.in/src-d/go-git.v4 rebased with master once these changes are pulled in

Once all of the above is complete, this PR can be merged.
In the meantime, I've vendored the dependencies in the bolir project and made the above changes to get it working. Attached is a zip file of the project with the vendored dependencies. You should be able to extract and run go install to test it out.
boilr.zip

Any updates?

Any progress?


Comparing properties with PagerSlidingTabStrip

Without me having to dig through two codebases, is there a quick and dirty comparison between the properties between PagerSlidingTabStrip and PagerTabIndicator?
I'm trying to sort out pstsTabBackgroundResIds for example, and I can't quite get my tab collection to go across the entire bottom of the view.
Basically, I'm seeing if I can switch from this layout fragment:
<com.astuetz.PagerSlidingTabStrip
        android:id="@+id/bottombar"
        android:layout_width="match_parent"
        android:layout_height="60dp"
        app:pstsDividerPadding="0dp"
        app:pstsIndicatorHeight="60dp"
        app:pstsIndicatorColor="@color/text_grey_500"
        app:pstsShouldExpand="true"
        app:pstsTabBackgroundResIds="@array/setting_tab_backgrounds"
        app:pstsTextAllCaps="false" />

This seems to be an error because I didnt add this.


Fix CameraFocus to work with all tables

Seems like the CameraFocus script is currently hardcoded for a specific table. Make it work for all tables.
Also make sure it works for width+height of table.

Fixed in #76


Introduce support of GCS encryption for both CMEK and CSEK

Closes #(Insert issue number closed by this PR)
Change Description
Background
Provide the support of GCS encryption for both CMEK and CSEK
New Feature
Issue link: https://github.com/treeverse/lakeFS/issues/7557

Configuration of CMEK supported
Configuration of CSEK supported
Throw an error for generating PreSignedURL of GCS with CSEK as the user must have the key in the configuration file

Frontend change is required
If user must have the key in configuration, then the CSEK make not much sense for PreSignedURL

Testing Details
How were the changes tested?

CMEK and CSEK cannot be configured at the same time, or the server will fail to start
server will failed to start if CSEK is not a valid AES256 32bytes value
CSEK encrypted object will fail to read when CSEK is not configured or wrong key
CMEK encrypted object will fail to read when CMEK is not configured or wrong key
Upload the file to a CMEK enabled bucket with CMEK configuration will be success
Check the content of the CMEK encrypted file with CMEK configured
Upload the file with CSEK will be success
Check the content of the CSEK encrypted file with CSEK configured
When the CSEK is configured and PreSignedURL is enabled, generating a PreSignedURL of a CSEK encrypted object is failed

Breaking Change?
Does this change break any existing functionality? (API, CLI, Clients)
No breaking change as there's no API changed, only the server configuration is required
Additional info
Logs, outputs, screenshots of changes if applicable (CLI / GUI changes)
Contact Details
By GitHub  account

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Victor Chen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey @emulatorchen , thank you for your contribution! I should of reviewed sooner, it took me a bit longer since I needed to ramp up my gcp/kms knowledge. @Jonathan-Rosenberg and myself were debating some CSEK/CMEK questions. As we're both not very familiar with gcp, I wonder if you could help us with answering the below:

What's the flow for key rotations for anyone of the 2 settings? We're obviously very worried about user's data that becomes inaccessible due to a rotation taking place, but it's not just data. lakeFS stores immutable committed metadata in the object store using the same gs adapter we're modifying, so a rotation that goes wrong could fail lakeFS completely.
Can the user set CSEK/CMEK after some time of using lakeFS? Will the previous saved objects be accessible.
Would you say it's a lakeFS-level setting? From what we understand, it's common for different gs buckets to have different encryption keys. A single lakeFS installation can manage multiple repositories across different buckets. What's the additional value lakeFS give to the user? It seems like we're forcing a single encryption key for all the repos. Isn't the user better off setting this in the bucket level and keep lakeFS unaware to encryption (again - not sure if that's possible).

Hey @emulatorchen , thank you for your contribution! I should of reviewed sooner, it took me a bit longer since I needed to ramp up my gcp/kms knowledge. @Jonathan-Rosenberg and myself were debating some CSEK/CMEK questions. As we're both not very familiar with gcp, I wonder if you could help us with answering the below:

What's the flow for key rotations for anyone of the 2 settings? We're obviously very worried about user's data that becomes inaccessible due to a rotation taking place, but it's not just data. lakeFS stores immutable committed metadata in the object store using the same gs adapter we're modifying, so a rotation that goes wrong could fail lakeFS completely.
Can the user set CSEK/CMEK after some time of using lakeFS? Will the previous saved objects be accessible.
Would you say it's a lakeFS-level setting? From what we understand, it's common for different gs buckets to have different encryption keys. A single lakeFS installation can manage multiple repositories across different buckets. What's the additional value lakeFS give to the user? It seems like we're forcing a single encryption key for all the repos. Isn't the user better off setting this in the bucket level and keep lakeFS unaware to encryption (again - not sure if that's possible).

Really appreciate the review! It's my honor to have those critical questions being addressed.

In short, rotating key in KMS does not effect existing objects, so
a.  CSMK (Available only in bucket level)

Using the version of the encrypted to decrypt
Updating the key to the latest version request a new copy of the object, to my understanding it seems the same as S3
b. CSEK (Available only in bucket level)
Similar to CSMK, updating a key requires you to make a new copy

As explained above, anything happened in KMS level will be fine but if the key path or the key value must be changed by copying to a object, then either it is not possible to be done with existing implementation. So for CMEK we can still have the auto and manual in KMS way, not possible for changing key path in CMEK or key value in CSEK, the old object will not be available any more.

Yes and we also had thought about this before. There can be at least two perspectives of the encryption: Internal solution and Multi-Tenant.

Internal service: All the users are internal and most like in the same team so the point will be to ensure the data is encrypted and only be granted for specific accounts
Multi-tenant: Users are mostly from external and would like to manage their own encryption
And TBH we are more like in a hybrid way. So ideally we would like to have different key setup for each repository.

The reason I am making it in lakeFS level is because there's already a S3 reference in the lakeFS level that I thought it will be easier for you to accept it so that we can meet the internal need first. Then I would like look for a possible solution as a multi-tenant proposal, and they should be able to exist in lakeFS just cannot be configured at the same time. But we all know that it will be more complicated, especially when we are providing an universal UI/API/CLI to the operation of different storage options, different keys will require not just the permission but also the key management in lakeFS itself or we may have issues in CSEK(ex. not able to preview in UI, similar reason I dropped the support of PreSignedURL when CSEK enabled) or the key of the bucket is not using the default key of the project.
And now I implementing CSEK is just providing an option, we will consider more on CMEK. The reason is that CMEK can actually be enabled almost without implementation in lakeFS as long as the key is the default key of the project and being proper authenticated. On the other hand, CSEK is more like a thing that user can have more control when there's risk happened. So the implementation is to consider the case we would like the CMEK being used as an internal protection for now, and I am happy to remove CSEK if you think it's risky.

@emulatorchen you would need to sign the CLA in order to contribute...

I think I just screwed up this PR when I tried to fix email on my commits, I will just create another PR for it.


Implement option to support hashbase

Hi there :D
I love your products - how about supporting the hashbase with my own homebase instance ;)

Could you elaborate on your use case? :D
Like, is this to help share bandwidth for hashbase?

Yes.

I think this is kinda like what @dariusk is working on.

Oh, thanks dear. Hope this is coming soon ^,^


Bug in SQL query in QueryWithSubdocuments sample?

I'm running the QueryWithSubdocuments method found here:
https://github.com/Azure/azure-documentdb-dotnet/blob/master/samples/code-samples/Queries/Program.cs
If I run the query in that sample using Query Explorer in the Azure portal I get this result:
Query: SELECT c FROM c in f.Children
Result:
[
{
"c": {
"FamilyName": null,
"FirstName": "Henriette Thaulow",
"Gender": "female",
"Grade": 5,
"Pets": [
{
"GivenName": "Fluffy"
}
]
}
},
{
"c": {
"FamilyName": "Merriam",
"FirstName": "Jesse",
"Gender": "female",
"Grade": 8,
"Pets": [
{
"GivenName": "Goofy"
},
{
"GivenName": "Shadow"
}
]
}
},
{
"c": {
"FamilyName": "Miller",
"FirstName": "Lisa",
"Gender": "female",
"Grade": 1,
"Pets": null
}
}
]
However, this code in the sample:
        var childrenSqlQuery = client.CreateDocumentQuery<Child>(collectionLink,
            "SELECT c " +
            "FROM c IN f.Children").ToList();

        foreach (var child in childrenSqlQuery)
        {
            Console.WriteLine(JsonConvert.SerializeObject(child));
        }

Generates this result:
{"FamilyName":null,"FirstName":null,"Gender":null,"Grade":0,"Pets":null}
{"FamilyName":null,"FirstName":null,"Gender":null,"Grade":0,"Pets":null}
{"FamilyName":null,"FirstName":null,"Gender":null,"Grade":0,"Pets":null}
In other words the code correctly returns three objects but all properties are NULL.
Note that the Linq query also found in QueryWithsubdocuments() does return the correct result.
Is this an SDK bug?

This is a bug in the samples (not SDK). The SQL query should've been SELECT VALUE c, which de-serializes to Child correctly. Fixed with https://github.com/Azure/azure-documentdb-dotnet/pull/162


Start session

POST /sessions/ - cretes new session endpoint
body: { "nickname": string }
response: { "session_id": string }
Assign ID to nicname and store in database
session_id is returned as hash


$$asyncCallback is dead code

The $$asyncCallback service is dead code, it's no longer used. It was used in ngAnimate before the rewrite.

shouldn't src/ng/asyncCallback.js be removed as well?


Gracefully handle lack of Pester 5.0

I've just synced my settings to computer without Pester 5.0 and error popped up.
c:\Users\przemyslaw\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.14\out\pesterTests.js:73
                        throw e;
                        ^

[SyntaxError: Unexpected end of JSON input
	at JSON.parse (<anonymous>)
	at ChildProcess.<anonymous> (c:\Users\przemyslaw\.vscode\extensions\tylerleonhardt.vscode-pester-test-adapter-0.0.14\out\pesterTests.js:69:46)
	at ChildProcess.emit (events.js:223:5)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)]

I can't repro this... but 0.0.15 is out and I get rid of every single throw in my code so this should be fixed


sensors::temperatures for Linux

MVP is at sensors-temperature branch.

Also it requires futures-rs as a git dependency, since this one commit was not published to the crates.io yet, so until the next futures release this branch can't be merged into master branch.


inline svg: base64 > ASCII85

ASCII significantly reduces size.
Preview - http://sassmeister.com/gist/031303db9b45b7ed1a24
| plain | gzip
----------------|-----------------|------------
base64 (original) | 4428 bytes | 1573 bytes
ASCII85 | 1656 bytes | 632 bytes

@cvrebert: so how about this? It sort of makes sense since those SVGs are small.

SGTM.
CC: @mdo

The SVGs need to be URL encoded to support IE 11 and below.
See: https://connect.microsoft.com/IE/feedbackdetail/view/969438/ie-11-support-non-encoded-data-uris

@slavanga Yup, that's why Oleg's code has %3C etc. in it.

@cvrebert ah right, I always thought the whole thing has to be encoded. Thank you for the hint.

Gotta balance this with #17222.

Punting for #17222.


feat: customize init method of snapshot

This PR implements a way to customize the init method. Not sure if it's the best naming convention though.
This is useful in this PR on the beet repo : https://github.com/mcbeet/beet/pull/446

Hmm I'd rather encourage users to define their own Fmt class. It's pretty easy to do and avoids having to clutter invocations of the snapshot fixture with arguments.
pytest-insta generally assumes that snapshot formats are context-insensitive. I would prefer to avoid letting users pass parameters and customize how the snapshot gets loaded dynamically.
In the rare case where you can't define a pre-configured snapshot format, you can make the load function return a proxy object that overrides __eq__ to defer loading the snapshot until you can inspect the value produced by the test.


feature: dev dependencies & LSP

Did you check the docs?

[X] I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.
dev dependencies are not available for LSP completion.
I have to add:
add "~/Projects/other/git-link.nvim"
add "~/Projects/other/coredor.nvim"

Because of this hack I receive diagnostic with code duplication warning.

Screenshot
This is the file.

Describe the solution you'd like
I'd like to have either of:

lazy.nvim to managing that.
lazy.nvim exposing API to listing available dependencies and filter local ones.

Maybe lazy.nvim already has an API to implement this. I didn't manage to find it.
Describe alternatives you've considered
I described the way I live with dev plugins at Is your feature request related to a problem?
Additional context
No response

You should really just use neodev. It's specifically built to solve things like this. And it comes included with proper hover docs for the Neovim api and a lot more.
Either way, not a lazy.nvim issue.
Alternatively, you can use the lazy api:
      for _, plugin in ipairs(require("lazy").plugins()) do
        add(plugin.dir)
      end


Update README.md

Oh, I accidentally made a mistake by pushing my edits before I was done. I started doing it because there was no documentation without video, but I'll wait until I'm done before I do it.


[BUG] A path bug in Loader

At MainForm.cs@572, I think it should be like
bool Result = WinAPI.CreateProcess(
                null,
                "\""+ExeLocation+"\"",
                IntPtr.Zero,
                IntPtr.Zero,
                false,
                ProcessCreationFlags.CREATE_SUSPENDED,
                IntPtr.Zero,
                ExeDirectory,
                ref StartupInfo,
                out ProcessInfo
            );

According to MSDN _https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa?redirectedfrom=MSDN_, any long path with space should be quoted, or the path would be ambiguous. I've seen a rare case that CreateProcess fails to open DS3.exe and returns Error 193 with the original code.

Sounds reasonable, feel free to put in a pull request with the change.


Use ';' instead of '&&' to execute two commands

Some shells, e.g. fish-shell, don't support use of '&&'.
So, an error is occured with such shells.

Sorry for forgetting this pr, i did it myself. Thank you all the same.


Bed output for motifs.py may be incorrect.

This might be affecting ChIP-seq peak checking as well, need to investigate.
In the bed output, motifs/scores are repeated for all peaks that are overlapping. Need to check how this is being done and fix. Also need to ensure it isn't impacting the VCF output.

Doesn't appear to affect VCF output. Merged into #31.


Better handling of http errors

Right now, we handle network errors on the PowerAuth layer (NETWORK_ERROR) but not the networking itself.
For android, handle IOException and other common exceptions that can be thrown during the HTTP communication.
On iOS, handle NSURLErrorDomain domain on HTTP errors with cherry-picked errors from https://github.com/apportable/Foundation/blob/master/System/CFNetwork/include/CFNetwork/CFNetworkErrors.h

Note that this issue will surface a lot as there are a lot of exceptions that can be thrown and are not handled by the layer right now as it's impossible to catch and translate everything to the JS layer

Fixed together with #55


Using with Angular - multiple frustrations

I am upgrading a legacy app from AngularJS to Angular; this uses resumablejs.
I have spent a lot of time trying to get it working, but as of yet I have been unable to find a 100% satisfactory solution.
I am hoping someone could help, otherwise I will have to look at a much bigger task of finding and using an alternative.

import { Resumable } from 'resumablejs';
-- Module '"resumablejs"' has no exported member 'Resumable'.
-- This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

I read loads of issues, conversations and pull request comments, talking about this, some even suggesting fixes have been written and PRs merged, but... npm is only updated to v1.1.0 and one post suggests that v.1.1.2 is what is required. So why is npm not being kept up to date?
So I tried DL, the latest code based from the master branch and this doesn't work either. I am told resumablejs is not a module.
I then found what looks like a fork of resumablejs, under @seafile/resumablejs on npm, this appears to have updated up to 1.1.15, but after removing all old versions and installing both v1.1.2 & v1.1.15, neither of those worked. Same issue complaining about not being a module.
What is most frustrating is that I got the damn thing working using a simple require(), but it won't build to production.
I have both these items in my tsconfig:
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
I have tried everything I can find that is documented.
So if nothing else, can someone please just tell me if they have successfully used this library with Angular 6 or similar?
If you are able to provide any help on implementing it, that would be great.
If not, can anyone recommend alternatives, that could be used with Angular ?

Problem is in the resumable.d.ts, almost the last line:
export = Resumable.Resumable;
have a look at the latest version: https://github.com/23/resumable.js/blob/master/resumable.d.ts
export = Resumable;
You can update the file under  \node_modules\resumablejs\resumable.d.ts
But probably this manual change will be overwritten when doing a "npm install"

i came across this this posting yesterday while upgrading my angularjs project to angular 8 and had the same issue. i ended up saving a ‘resumable.min.js’ inside of my assets folder and injecting it into the component via javascript..
ngOnInit() {
	this.injectScript('/assets/resumable.min.js')
		.then(() => { console.log('Script loaded!'); this.setupResumable(); })
		.catch(error => { console.log(error); });
}

setupResumable() {
	var r = new Resumable({
		target:'/api/photo/redeem-upload-token',
		query:{upload_token:'my_token'}
	});
	console.log(r); // IT WORKS!
}

injectScript(src) {
	return new Promise((resolve, reject) => {
		const script = document.createElement('script');
		script.async = true;
		script.src = src;
		script.addEventListener('load', resolve);
		script.addEventListener('error', () => reject('Error loading script.'));
		script.addEventListener('abort', () => reject('Script loading aborted.'));
		document.head.appendChild(script);
	});
}

additionally you'll need to declare the var in a new resumable-js.d.ts in your app folder:
declare var Resumable: any;
best regards!
tom


Unable to install pango on wsl arch

hi there folks
I recently installed arch on WSL
the terminal works fine and I have no issues working with the terminal. But I wanted to install KDE and run it just like other distros on WSL in GUI.
I tried installing plasma using Pacman -S plasma
all the dependencies were installed except one called Pango. It says it wasn't able to find it in the mirrors. I edited the mirror list and tried different mirrors but nothing works
here is the error
[root@ITLAPTOP153 ~]# pacman -S plasma
:: There are 45 members in group plasma:
:: Repository extra
   1) bluedevil  2) breeze  3) breeze-gtk  4) discover  5) drkonqi  6) kactivitymanagerd  7) kde-cli-tools
   8) kde-gtk-config  9) kdecoration  10) kdeplasma-addons  11) kgamma5  12) khotkeys  13) kinfocenter  14) kmenuedit
   15) kscreen  16) kscreenlocker  17) ksshaskpass  18) ksysguard  19) kwallet-pam  20) kwayland-integration

Enter a selection (default=all):
resolving dependencies...
:: There are 8 providers available for ttf-font:
:: Repository extra
   1) gnu-free-fonts  2) noto-fonts  3) ttf-bitstream-vera  4) ttf-croscore  5) ttf-dejavu
:: Repository community
   6) ttf-droid  7) ttf-ibm-plex  8) ttf-liberation

Enter a number (default=1):
:: There are 2 providers available for phonon-qt5-backend:
:: Repository extra
   1) phonon-qt5-gstreamer  2) phonon-qt5-vlc

Enter a number (default=1):
looking for conflicting packages...
warning: dependency cycle detected:
warning: usbmuxd will be installed before its libimobiledevice dependency
warning: dependency cycle detected:
warning: phonon-qt5-gstreamer will be installed before its phonon-qt5 dependency

Packages (341) accounts-qml-module-0.7-3  accountsservice-0.6.55-3
               adobe-source-code-pro-fonts-2.038ro+1.058it+1.018var-1  alsa-card-profiles-1:0.3.24-1  alsa-lib-1.2.4-3
               alsa-topology-conf-1.2.4-2  alsa-ucm-conf-1.2.4-2  aom-2.0.2-1  appstream-0.14.3-1
...... (many more dependencies)

Total Download Size:      0.35 MiB
Total Installed Size:  1677.13 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirrors.evowise.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.beccacervello.it : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirrors.daan.vodka : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.easylee.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.easylee.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.i3d.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.i3d.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from arch.jeweet.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.koddos.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.koddos.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from arch.mirrors.lavatech.top : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from arch.mirrors.lavatech.top : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.ams1.nl.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.mirror.liteserver.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.mirror.liteserver.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.lyrahosting.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.lyrahosting.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.mijn.host : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.mijn.host : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.neostrada.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.neostrada.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from ftp.nluug.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.mirror.pcextreme.nl : The requested URL returned error: 502
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.mirror.pcextreme.nl : The requested URL returned error: 502
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.serverion.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.serverion.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from ftp.snt.utwente.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.tarellia.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror.tarellia.net : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.mirror.wearetriple.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from archlinux.mirror.wearetriple.com : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror-archlinux.webruimtehosting.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirror-archlinux.webruimtehosting.nl : SSL: no alternative certificate subject name matches target host name 'mirror-archlinux.webruimtehosting.nl'
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirrors.xtom.nl : The requested URL returned error: 404
error: failed retrieving file 'pango-1:1.48.3-1-x86_64.pkg.tar.zst' from mirrors.xtom.nl : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

notice all the other dependencies have been installed already and only Pango 0.35 MiB is left.
Is there a way to fix this??
Also I recently asked help on the arch forum but those ppl are toxic out there so I decided to come here for help
https://bbs.archlinux.org/viewtopic.php?pid=1963656#p1963656

You can manually build + install pango just as you install AUR packages

I couldn't find the AUR repo for pango-1:1.48.3-1
I even tried yay -S pango but got the same result. Also recently there is a trend with arch maintainers being mad at ppl using arch in wsl. I found this on reddit.

If anyone can help me manually install Pango please consider sharing it down below

git clone url for pkg.git here
cd to pango directory
makepkg -si
Thats it i think
It might be a problem with ur mirrors as well so try swapping them as well

yes I know the procedure for installing manually but I couldn't find the git URL that's the issue. Please let me know if you have the URL for the pango repo

https://aur.archlinux.org/pango-git.git

thanks mate that worked


Time out occurs too frequent.

Time out occurs too frequent.
Is anyone experience same situation?

i did.. i need to refresh it...then.. i can get the result

I'm not seeing this issue, and this ticket is really old.


Error in documentation

Hi there,
there is a minor error in the docs here with prompt instead of help.
Instead of
@click.command()
@click.confirmation_option(help='Are you sure you want to drop the db?')
def dropdb():
    click.echo('Dropped all tables!')

It should be
@click.command()
@click.confirmation_option(prompt='Are you sure you want to drop the db?')
def dropdb():
    click.echo('Dropped all tables!')

Cheers!

This is already fixed in latest docs. 09583679ab7b235039ca712c9b044ac397c64322


Document order option in update_config

Proposed changes
Adding some documentation for the order option in update_config in the Docker Compose v3.4 format - new in Docker CE 17.09.
Related issues (optional)
Fixes #5088
Signed-off-by: Dave Henderson<EMAIL_ADDRESS>

Hi @hairyhenderson related to PR #5089, need to update the document for order option in update_config. As because the "start-first" order option is not working with global mode host networking. During service update it stuck and showing "host-mode port already in use on 1 node".


Changed from StringRes to String

It would be better if we could put strings instead of StringRes, because we can format HTML and hardcode strings for testing.
(I don't know if the annotations are working)

There is no @String annotation.
I won't merge this because it breaks old code. You can add support for String or CharSequence argument but don't remove support for @StringRes resource IDs. If you don't know how, please submit a GitHub issue.


Update README.md and create CONTRIBUTING.md

Move some topics from README to CONTRIBUTING.
Remove the 'Adding new analysis checks' section, as it is too
specific and already outdated.
Document requirement of GNU tar.
Update link to oc installation instructions.
Improve project description.

:+1: LGTM


Currently we dont care about ENS addresses when verifying donations

@mohammadranjbarz - is this issue still relevant?

@mohammadranjbarz - is this issue still relevant?

@divine-comedian I think we use wallet addresses in filling donation fromAddress and toAddress, so don't need it anymore, @MohammadPCh  @RamRamez Can you confirm it?

@mohammadranjbarz do you mean in createDonation and updateDonationStatus mutations? we don't send walletAddress in those two.

@mohammadranjbarz do you mean in createDonation and updateDonationStatus mutations? we don't send walletAddress in those two.

Oh you are right, we get it from the user access token, but we send toWalletAddress and we don't support ENS, am I right?


feat: improvements to square brackets, close #228

@ahku See the test cases, I think we can add more incrementally as we go.

Codecov Report

Merging #229 (840093d) into main (fbbaa9b) will decrease coverage by 0.10%.
The diff coverage is 97.56%.

@@            Coverage Diff             @@
##             main     #229      +/-   ##
==========================================
- Coverage   86.86%   86.75%   -0.11%
==========================================
  Files          45       45
  Lines        2611     2635      +24
  Branches      688      695       +7
==========================================
+ Hits         2268     2286      +18
- Misses        142      150       +8
+ Partials      201      199       -2

Impacted Files
Coverage Δ

src/plugin/filters/index.ts
100.00% <ø> (ø)

src/plugin/scroll-snap/index.ts
86.95% <ø> (ø)

src/utils/color.ts
78.57% <87.50%> (+4.57%)
:arrow_up:

src/lib/utilities/dynamic.ts
85.63% <100.00%> (+0.34%)
:arrow_up:

src/lib/utilities/handler.ts
81.00% <100.00%> (+2.56%)
:arrow_up:

src/utils/parser/class.ts
85.71% <100.00%> (-10.72%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fbbaa9b...840093d. Read the comment docs.

So awesome! I must learn how to create tests like this one of these days 😅
How about:
<!-- Complex grids -->
<div class="grid-cols-[1fr,700px,2fr]">
  <!-- ... -->
</div>

Have not been using grids due to IE11 but this sure will become useful this year.

Added


Automate sending surveys

See issue https://github.com/Azure/azure-sdk-tools/issues/4567 for more context

Requirements:

Automation should happen at the end of a calendar month
One email should be sent to all creators of a meeting that was scheduled during a given calendar month (not individual emails)
The email content should be handled as email template

Issue related for API Review: https://github.com/Azure/azure-sdk-tools/issues/3681

@maririos:

Requirements:

[x]  Automation should happen at the end of a calendar month

The trigger for this flow is a reccurence, scheduled to happen once every month.

[x]  One email should be sent to all creators of a meeting that was scheduled during a given calendar month (not individual emails)

It sends a single email, with all of the people on 'BCC' and the Azure SDK Experience Support as the main recipient. In this way, if anybody replies to all in the email, wi will also get the reply, but not all of the rest of the people.
Let me know if it is expected to add the people who use the scheduling tool in 'CC' or 'To' instead.

[x]  The email content should be handled as email template

It will look for a template called Monthly survey email.
Since this is a scheduled cloud flow, there are no parameters to add into the email template. The link to the survey and all the body of the email should be saved as it is in the templates table.

Btw, the name of the cloud flow is Monthly survey (Automatic). You can find it in our solution.

@maririos to provide the text of the email template

This flow is ready in Dev.

@JonathanCrd remember to turn the flow off


configparser readfp() deprecated in 3.2

/Users/macdj033/Library/Python/3.7/bin/gist:295: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
config.readfp(fp)
Likely should get bundled with: https://github.com/jdowner/gist/issues/24

Thanks for bringing this up John, and I agree that it should be bundled with #24. Something that is long overdue.

@jmacego I am running python3.6.5 and I do not see the deprecation warning. I have pushed a fix to the branch 'config'. Would you mind trying it out to see if that addressing the issue for you?

@jdowner at least for 3.7.2 your config branch looks ready to merge and distribute and so forth.
I have another bug to log, but probably won't get to it until Monday if you want any code/pull request along with it.

Hello gist,
not sure if my issue the exact same as jmacego but I could not find anything related to what I'm experiencing on the web. The below is what I'm experiencing when I run git list.
/usr/local/bin/gist:295: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  config.readfp(fp)
1553126730.763 ERROR[gist] string indices must be integers

I double checked that I had the proper dependencies as well and still getting this error. The DeprecationWarning I can live with but its the<PHONE_NUMBER>.763 ERROR[gist] string indices must be integers that is causing the problem of letting me use your gist module. Was this working before, yes. Did anything change on my system, no. I'm not aware of what is needed for me to troubleshoot this but any information would be helpful. I'm working to become a better engineer and solving problems just like this one is half the battle

Hi @engineertree5,
can you tell me what platform you are running on and what version of gist you are using? Also, to narrow down why this error could be happening, can you run,
curl  https://api.github.com/gists?access_token=<your-personal-token>

and make sure that you are getting a structure containing your gists.

Hey @jdowner,
.... So this is embarrassing. The issue was on my end (no surprise here). I tried the curl command you suggested.
curl  https://api.github.com/gists?access_token=<your-personal-token>
after executing this I kept getting:
{
  "message": "Bad credentials",
  "documentation_url": "https://developer.github.com/v3"
}

I went through my configuration and everything seemed to check out. Then I remembered I updated some .gitconfig credentials when I was doing some testing with git and some other editors. Long story short it ended up being my credentials.
I will say it is good to know how to troubleshoot issues like this. I now know python-gist uses the https://api.github.com/v3 and is authenticating using our PAT within the .gist file. I'm going to pick apart this application and see what else I can learn and understand. Thanks for the response. You have no idea how helpful that comment was to me

No problem @engineertree5! Pleased you were able to resolve the problem quickly :)

@jmacego sorry for the delay! I have push a fix for this issue so the warning should be gone now.


Python 3.4, Lazy mode, Bootstrap 4

Updated for use with Python 3.4.2
Lazy Mode (Phone remote control support with socketio)
Updated requirements.txt
Bootstrap 4
Removed gradient background (It caused slow browser performance issues)

Please include both of these if you can, the layout is still not the greatest but can always be changed later. Unfortunately with lazy mode, I really wanted to use a remote full screen button to automatically maximize the browser window but Chrome only allows the API to be used with an actual mouse click.