ResourceList Component

Are there any plans to migrate the ResourceList Component?
Are you open to contributions?

Hey there,
We almost finished the ResourceList component, we're writing the documentation. It will be available in the next version.
Demo screenshot:

And we're open to contribute, you're welcome!

@juzser Thanks for the info and keep up the good work!

Released at v0.8.2


Builder activated banner always shows up in profile pages

Steps to Reproduce

With an account created before 11/11/2016 (you can edit the created_at date in the DB)
Go to dashboard
Close the builder activated banner
Refresh: the banner is gone
Go to the account settings section

Current Result
The banner shows up
Expected result
No banner
Additional info
The DB correctly contains that the banner should be hidden, and it is written in the account settings HTML. It appears to be a problem with the JS that decides whether to show this or not.
cc @xavijam

Dupe of https://github.com/CartoDB/cartodb/issues/13691


Issues with the readme

The readme is poorly written.
What this token.json file is for? Where do I put it?
Where do I get this id string from?
The instruction literally tells just "create a file", put something I don't know where it is in there, and then proceeds showing the demo.
I'd be better if the creator will clarify.

The README.md has been updated.


List getters in Vuex tab

Hello,
This PR allows to list all getters defined in the application, just next to the state.

I have a huge application with complex getters, because my state needs to be manipulate (flatten, transformed, ...). Sometimes, it's very difficult to guess the result of the getter according to the state.
In the dev exemple I added a simple getter isPositive that returns true if count is upper or equal than zero.
Implementation:

The action vuex/importState doesn't exist anymore. When the user import a state, I send an event through the bridge in order to get updated getters. The bridge will send back the vuex:init event to initialize the state and getters (here).
^ This also fix a bug: the UI was not updated when the state was imported.
In the internal store, base and initial  have now state and getters as attributes
On each mutations, the new value of getters is send (here)

@AnthonySendra thanks for this PR - looking great at the moment, I just need to pull it locally to try it out. Will probably have to do that after shipping Vue core 2.2 though.

#262 can be closed if this is merged.


tf.contrib.rnn.static_rnn not found

I am using tensorflow version 0.12.1 and trying to implement simple RNN using static_rnn.
lstm_layer=tf.contrib.rnn.LayerNormBasicLSTMCell(n_hidden,forget_bias=1)
outputs, states = tf.contrib.rnn.static_rnn(lstm_cell, x, dtype=tf.float32)

The IDE is not able to resolve static_rnn.
In tensorflow documentation tf.contrib.rnn.static_rnn is listed here.But on clicking on it it redirects to 404 page.Is there a change in static_rnn in tensorflow?If yes then whats the new alternative/implementation?

You seem to be using an older version of tensorflow. 'contrib' module was introduced after TF1.0, I guess. You can either upgrade to a newer version of TF or use the tf.nn module which has what you need.
Any reason why you didn't fill the form?

Thanks for the response.My mistake.Pycharm and console show different version of tensorflow.I've resolved it.I was pretty sure it was version problem but pycharm indicated otherwise.


Split out matchers

Introduce a trait MatchItem for various needs of getting the matching
text from the origin line.

I feel that it won't be efficient to implement it this way. For example, in the tagfiles thing the for-matching text (tag name) and the rendered line are computed before they are sent to the apply_on_x functions. With the changes here, we will run into the same problem that the TagNameMatcher needs to parse the rendered line. That's why it's necessary to pass as input more that just the rendered line, the input type of apply_on_x functions needs to change.
(Sorry in advance if you've already thought about that, just wanted to share this eventual problem I see)

For example, in the tagfiles thing the for-matching text (tag name) and the rendered line are computed before they are sent to the apply_on_x functions.

Hmm, I'm not sure about this. Currently we always run apply_on_x(origin_line, query) on the origin line, not the rendered line, and outputs (origin_line, match_score, matched_indices). Am I missing somthing?

Well if you check for example, tags.rs:
https://github.com/liuchengxu/vim-clap/blob/992c2d43318ba096eedac0592a0c2d6f90fed236/crates/maple_cli/src/cmd/tags.rs#L150-L157
formatted_tags_stream, which generates the stream of lines for Source::List and filter::dyn_run, provides a stream of rendered tag lines (line 90 at tag.format() is the line renderer for tags):
https://github.com/liuchengxu/vim-clap/blob/992c2d43318ba096eedac0592a0c2d6f90fed236/crates/maple_cli/src/cmd/tags.rs#L84-L97
Haven't looked for real at the other providers though, but for this one, as far as I understand, we're sending rendered lines down the pipeline.

Well, if you were saying tag.format(), that's what I meant the origin_line :). tags now only supports the JSON lines and does not need the extra parser, we have to build the normal line based on the JSON and then feed them into the filter::dyn_run.
For the tagfiles provider in #557, we need to run our own parser to parse the raw content to build the normal line, which can also be seen as the origin_line, but you're right if we can save some metadata then we don't have to parse again in the filter/display steps.

if we can save some metadata then we don't have to parse again in the filter/display steps

Indeed. IMHO it would be also way cleaner, because each source would be responsible of saying "here is my display line", and "here is my text to match on". The current architecture tries to give the responsability of finding the to-be-matched area downstream, but it doesn't transmit the necessary metadata to do so.
Putting the responsability of creating the metadata (filter line, match area, and any other thing we might want in the future) also simplifies considerably all the apply_on_xxx_algo(item, query), they simply become apply_algo(itemWithMetadata, query), and below simply needs one case per algorithm.
https://github.com/liuchengxu/vim-clap/blob/992c2d43318ba096eedac0592a0c2d6f90fed236/crates/matcher/src/lib.rs#L36-L55
I tell you my friend, I really feel it's a cleaner way to do it :smile:

Absolutely agree, let's see if we could find a nice solution for this situtation, but really busy these days, I can only find some scattered time for the open source projects 🙈

but really busy these days, I can only find some scattered time for the open source projects

Ya I get it. It's tiring to have a regular influx of issues. And people always expect you to solve their issues :/

let's see if we could find a nice solution for this situation

Well the tagfiles PR does go into the direction I described ^^ But I feel that you disagree with certain aspects of it. My first question would be are you ok with the idea of source producing iterators over SourceItem instead of String? I don't really see another way to implement what I described. Otherwise, how would you structure it? Let me know what you think, and don't hurry if you don't have time, anyway the PR is doing what I made it for on my machine so I'm happy for now.

would be are you ok with the idea of source producing iterators over SourceItem instead of String?

I'm ok with the direction, but not sure the form of SourceItem. I wonder if using generic SourceItem: From<String> + MatchItem is good for this task.
/// Source is anything that can produce an iterator of String.
#[derive(Debug)]
pub enum Source<SourceItem: From<String> + MatchItem, I: Iterator<Item = SourceItem>> {
    Stdin,
    #[cfg(feature = "enable_dyn")]
    Exec(Exec),
    File(PathBuf),
    List(I),
}

Each of Source can produce a stream of String at the very beginning, and then each item is transformed to some specific SourceItem which has its own filter/display text other than the initial String. But I haven't tried this way :(.

SourceItem: From<String> + MatchItem

You completely lost me on this one ^^ I'm not yet up to date on Rust types. What are the benefits brought from that form in terms of performance or extensibility, by opposition to using a simple struct? Meanwhile Ima do some googling on that type + type form...

What are the benefits brought from that form in terms of performance or extensibility, by opposition to using a simple struct?

Using a simple struct does work, but it's not flexible enough in my opinion as we might want to use different structs for the various cases, using the generic can do this job as long as the struct implements the bounded traits, just want to explore whether it's doable, but I can also accept a simple struct if we don't have enough time to dig into this :).

The generic seems not worth it compared to the much more complexity it adds after I simply tried

I trust you on that! Seems like a common problem in rust ^^ The good thing with the simple struct is that it's easily modifiable. It also fits all of our use-cases currently, I don't see what we could need other than the rendered line and the text to match.

Closed due to https://github.com/liuchengxu/vim-clap/pull/611

Closed due to https://github.com/liuchengxu/vim-clap/pull/611


Youtube VEVO Video not work

E:\work>youtube-dl.exe --verbose -g https://www.youtube.com/watch?v=Q33cuBXuY4s
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-g', u'https://www.youtube.com/watch?v=Q33cuBXuY4s']
[debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932
[debug] youtube-dl version 2015.11.23
[debug] Python version 2.7.10 - Windows-7-6.1.7600
[debug] exe versions: none
[debug] Proxy map: {}
ERROR: Signature extraction failed: Traceback (most recent call last):
File "youtube_dl\extractor\youtube.pyo", line 856, in _decrypt_signature
File "youtube_dl\extractor\youtube.pyo", line 783, in _extract_signature_function
File "youtube_dl\extractor\youtube.pyo", line 835, in
File "youtube_dl\jsinterp.pyo", line 254, in resf
File "youtube_dl\jsinterp.pyo", line 55, in interpret_statement
File "youtube_dl\jsinterp.pyo", line 135, in interpret_expression
File "youtube_dl\jsinterp.pyo", line 220, in extract_object
AttributeError: 'NoneType' object has no attribute 'group'
(caused by AttributeError("'NoneType' object has no attribute 'group'",)); please report this issue on https://yt-dl.org/bug . Make sure yo
u are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete
output.
Traceback (most recent call last):
File "youtube_dl\extractor\youtube.pyo", line 856, in _decrypt_signature
File "youtube_dl\extractor\youtube.pyo", line 783, in _extract_signature_function
File "youtube_dl\extractor\youtube.pyo", line 835, in
File "youtube_dl\jsinterp.pyo", line 254, in resf
File "youtube_dl\jsinterp.pyo", line 55, in interpret_statement
File "youtube_dl\jsinterp.pyo", line 135, in interpret_expression
File "youtube_dl\jsinterp.pyo", line 220, in extract_object
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 663, in extract_info
File "youtube_dl\extractor\common.pyo", line 290, in extract
File "youtube_dl\extractor\youtube.pyo", line 1410, in _real_extract
File "youtube_dl\extractor\youtube.pyo", line 866, in _decrypt_signature
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "youtube_dl\extractor\youtube.pyo", line 856, in _decrypt_signature
File "youtube_dl\extractor\youtube.pyo", line 783, in _extract_signature_function
File "youtube_dl\extractor\youtube.pyo", line 835, in
File "youtube_dl\jsinterp.pyo", line 254, in resf
File "youtube_dl\jsinterp.pyo", line 55, in interpret_statement
File "youtube_dl\jsinterp.pyo", line 135, in interpret_expression
File "youtube_dl\jsinterp.pyo", line 220, in extract_object
AttributeError: 'NoneType' object has no attribute 'group'
(caused by AttributeError("'NoneType' object has no attribute 'group'",)); please report this issue on https://yt-dl.org/bug . Make sure yo
u are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete
output.
E:\work>

Thank you for the report. I believe this issue to be fixed in youtube-dl 2015.11.24 and newer. See our FAQ if you need help updating.

Thank you.


Sub-URI nginx configuration wrong in documentation

I was trying to setup isso using the Sub-URI configuration together with nginx as described in the
documentation. The setup described leads to a redirect loop when visiting https//localhost/isso.
Setup
Dockerfile
# debian:buster @ 2020-03-03 17:24:58
FROM debian@sha256:a63d0b2ecbd723da612abf0a8bdb594ee78f18f691d7dc652ac305a490c9b71a

RUN apt-get update && apt-get install -y python3-pip
RUN pip3 install werkzeug==0.16.1 isso==0.12.1

CMD [ "/usr/local/bin/isso", "-c", "/etc/isso/isso.conf" ]

isso.conf
[general]
dbpath = /var/lib/isso/comments.db
host = https://test.domain.com

[server]
listen = http://<IP_ADDRESS>:1234/

[admin]
enabled = true
password = supersecret

nginx.conf
user  nginx;
worker_processes auto;
error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;
events {
    worker_connections  1024;
}
http {
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    gzip  on;
    include /etc/nginx/conf.d/*.conf;
}

conf.d/test.domain.com.conf
server {
    listen 80;
    server_name test.domain.com;
    location / {
        return 301 https://$host$request_uri;
    }
}
server {
    listen       443 ssl;
    server_name  test.domain.com;
    location /isso {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Script-Name /isso;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://isso:1234/;
    }
}

Issue

start isso + nginx docker container
curl --insecure https://localhost/isso/

Expected
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>

Bad Request

missing uri query

Actual

Browser error because of redirect loop

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>

Redirecting...

You should be redirected automatically to target URL: https://localhost/isso/.  If not click the link.

Fix / Workaround (?)
Replace the proxy_pass nginx directive proxy_pass http://isso:1234/; with proxy_pass http://isso:1234/isso;

This does probably not fix the underlying issue

I do not use nginx but with a dockerized Caddy the equivalent config worked for me:
example.com {

	handle /isso* {
		reverse_proxy isso:8080 {
			header_up X-Forwarded-Proto {scheme}
			header_up X-Forwarded-For {remote}
			header_up X-Real-IP {remote}
			header_up X-Script-Name "/isso"
		}
	}
	handle {
		reverse_proxy ghost:2368 {
			header_up X-Forwarded-Proto {scheme}
			header_up X-Forwarded-For {remote}
			header_up X-Real-IP {remote}
		}
	}
}

In your isso.conf try to add this in server block:
public-endpoint = https://test.domain.com/isso
In my case, it worked better with this extra param.

Hello, this is what is working for me:
Dockerfile
FROM python:3-buster

RUN pip install isso==0.12.2 Werkzeug==0.16.1 \
  && mkdir /var/lib/isso \
  && apt-get update \
  && apt-get install -y sqlite3 \
  && sed -i 's/cgi/html/g' /usr/local/lib/python3.8/site-packages/isso/views/comments.py

COPY ./isso.conf /etc

EXPOSE 8080

CMD isso -c /etc/isso.conf run

isso.conf
[general]
dbpath = /var/lib/isso/comments.db
host = https://domain.com/
notify = stdout
log-file = /var/log/isso.log

[server]
listen = http://<IP_ADDRESS>:8080/
reload = off

docker-compose
version: '3'
services:
  comments:
    build:
      context: .
      dockerfile: comments.dockerfile
    container_name: comments
    restart: always
    volumes:
      - ./comments-data:/var/lib/isso/
    ports:
      - "8000:8080"

I hope it turns useful and suggestions are welcome.

@bastidest did setting public-endpoint resolve the issue for you?

@bastidest could you kindly verify this is still an issue?

@ix5 It seems to work now with the original configuration I posted. I did not have to change anything.
However, using a trailing slash in the location and proxy_pass directive seems to be the "most correct". Source


add explorer new ui

Feature type

[x] UI
[ ] Implementation
[ ] Specification
[ ] CI/CD
[ ] Other

Feature description
Pull request checklist
Please check if your PR fulfills the following requirements:

[ ] Your code builds clean without any errors or warnings.
[ ] Tests for changes have been added (for bug fixes / features). If no, why?

Could you change the target branch to development pls


Blockers for dropping the unsupported LibreSSL 3.4

Describe the bug
LibreSSL 3.4 is no longer supported upstream. It became unsupported on October 14th 2022, one year after the corresponding OpenBSD release. At the time of writing, 3.5 and 3.6 are both supported. Both branches recently had a security update that fixes a serious vulnerability:

A malicious certificate revocation list or timestamp response token would allow an attacker to read arbitrary memory.

I suspect (but haven’t verified) that this vulnerability is present in LibreSSL 3.4. It is time to remove it from Nixpkgs. However, there are some packages that still depend on it.
FoundationDB
foundationdb{52,52,60,61} all depend on libressl_3_4. I tried building foundationdb61 against libressl_3_5 and libressl_3_6, but both fail. I don’t see any packages that depend on foundationdb, so I think we could remove the older versions, if we can first update FoundationDB to a version that is compatible with a more recent LibreSSL release. Maybe #215336 will be sufficient for this.
Alternatively, we might patch FoundationDB. The compilation errors are about an incomplete type for which only a forward declaration is known. I haven’t looked into it deeply but it may be easy to fix.
@thoughtpolice, @lostnet, as the maintainers of foundationdb, what are your thoughts on this?
ovftool
The other package that explicitly depends on LibreSSL 3.4 is ovftool. This is a proprietary package so I couldn’t test if it is compatible with a more recent LibreSSL release, it might actually be.
@numinit, @WolfangAukang, as the maintainers of ovftool, could you try and see if it is compatible with a newer LibreSSL release?

The x.400 issue that was patched recently is present in LibreSSL 3.4. The fix is very small and applies to all older versions that have it, so it might be an option patch it while you sort out the other issues.
If you could share build logs for the foundationdb I could take a look if you want.

You can drop this. #214663 uses their bundled OpenSSL and drops the dependency. It's about to merge.

all of darwin depends on 3_4 at the moment.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix
@ajs124 You've pinned to 3.4, do you know if by any chance we can upgrade to 3.5 ?
maybe @matthewbauer ?

I'm quite sure we can't. My history with that package is 49c51cdd516d51e3ebbb7930e5edb4174c25a0fa and f76d71f98f8b070f638a9ce8df3ec923deb7fd28. f76d71f98f8b070f638a9ce8df3ec923deb7fd28 happened, because someone did 36b5da498ce5634390eae97f43b09d942f6cb285.
iirc 36b5da498ce5634390eae97f43b09d942f6cb285 happened, because this package depends on ancient long unsupported openssl APIs that weren't part of openssl_1_1 anymore.

Small rectification, after a bit more testing, it doesn't appear to be all of darwin that is impacted by that change.
So perhaps we don't need to put too much effort into this.
I'm still trying to figure out the impact.

I’m working on a fix for #223977, which drops the dependency on libressl_3_4 from darwin.network_cmds by unconditionally dropping Unbound from the build (instead of only on aarch64-darwin). Apple doesn’t even include Unbound in macOS anymore, and it’s not present in newer source releases. That should remove darwin.network_cmds as a blocker for dropping LibreSSL 3.4.


[Bug] 'EditValLoop' object has no attribute 'dataloader'

Prerequisite

[X] I have searched Issues and Discussions but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version (master) or latest version (1.x).

Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
1.x branch https://github.com/open-mmlab/mmediting/tree/1.x
Environment
Cant not found mmedit/utils/collect_env.py
Reproduces the problem - code sample
custom_hooks = [
    dict(
        type='GenVisualizationHook',
        interval=100,
        fixed_input=True,
        vis_kwargs_list=[
            dict(type='Translation', name='trans'),
            dict(type='TranslationVal', name='trans_val')
        ])
]

Reproduces the problem - command or script
python tools/train.py configs/cyclegan/cyclegan_lsgan-resnet-in_1xb1-250kiters_summer2winter.py
Reproduces the problem - error message
Traceback (most recent call last):
  File "tools/train.py", line 111, in <module>
    main()
  File "tools/train.py", line 104, in main
    runner.train()
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1686, in train
    model = self.train_loop.run()  # type: ignore
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/mmengine/runner/loops.py", line 264, in run
    self.run_iter(data_batch)
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/mmengine/runner/loops.py", line 290, in run_iter
    self.runner.call_hook(
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1748, in call_hook
    getattr(hook, fn_name)(self, **kwargs)
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/mmengine/dist/utils.py", line 360, in wrapper
    return func(*args, **kwargs)
  File "/home/d0108/project/github/mmediting/mmedit/engine/hooks/visualization_hook.py", line 291, in after_train_iter
    self.vis_sample(runner, batch_idx, data_batch, outputs)
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/home/d0108/project/github/mmediting/mmedit/engine/hooks/visualization_hook.py", line 352, in vis_sample
    sampler = get_sampler(vis_kwargs_, runner)
  File "/home/d0108/project/github/mmediting/mmedit/utils/sampler.py", line 30, in get_sampler
    sampler = eval(f'{sampler_type}Sampler')(sampler_kwargs_, runner)
  File "/home/d0108/project/github/mmediting/mmedit/utils/sampler.py", line 137, in __init__
    dataset = runner.val_dataloader.dataset
  File "/home/d0108/miniconda3/envs/mmedit/lib/python3.8/site-packages/mmengine/runner/runner.py", line 589, in val_dataloader
    return self.val_loop.dataloader
AttributeError: 'EditValLoop' object has no attribute 'dataloader'

Additional information
I just run summer2winter and change nothing

Hey @angryhen, thanks for your interest.
What's your MMEngine and MMEditing version? I tried MMEditing-1.x (71af274a), and validation can run smoothly.

嘿@angryhen， 感谢您的关注。 您的 MMEngine 和 MMEditing 是什么版本？我尝试了 MMEditing-1.x ( 71af274 )，验证可以顺利运行。

Close this issue since PR #1691 has been merged. Please feel free to re-open if you still face this problem.


goimports no longer works after update

Just updated via go-plus, and still have goimports selected (and it's installed).
The rest of the stuff in go-plus that upgrade is awesome though thanks! seems a lot snappier as well

Hey @tj, are you open to a screenhero pairing session so I can observe the issue? If so, DM me on Slack (gophers.slack.com or atomio.slack.com) and we can exchange email addresses.

I also had this start failing at some point between yesterday and today (though I didn't have an update to this package in that time).
When looking at the IDE,  When looking at the console in the dev tools, the errors end up there.

Confoundingly, it works fine if I create a new file outside my project to try to reproduce with a simple scenario. I haven't yet had a chance to dig in further.

@joefitzgerald Having the same issue over here. Will ping you on slack.

hey sorry for the delay! I just completely removed the tools repo from my GOPATH and re-installed, appears to be working again sorry for the noise.
Thanks again for the great plugin!

For others wondering how to do this:

rm -rf $GOPATH/src/golang.org/x/tools
rm -rf $GOPATH/bin/goimports

Then quit and relaunch atom. gofmt will prompt you to go get goimports.

@joefitzgerald I just did an update and goimports stopped working in the editor on save. It works fine at the command line (with goimports -srcdir $PWD < file.go). I'm running the latest version of goimports, which is a2a5522. I followed your instructions to delete x/tools quit and relaunch atom with no luck. I've reinstalled it and relaunched and it still doesn't work. Any ideas?

Found the reason. I have broken symlinks in my path and goimports now reads symlinks, reporting the errors to stderr. gofmt appears to not format the output if stderr is present, even if the result is actually formatted. Nor does it indicate that there is a problem, it just fails to work.
I guess goimports reporting errors on the symlink is probably a goimports bug.

@pwaller can you please provide sample output from stdout/stderr when experiencing the issue? With that, I will try to repro locally and handle more gracefully.

It looks like this, but with hundreds of errors (errors not separated with a newline).
lstat /home/foo: no such file or directorylstat /home/foo: no such file or directory

Update: https://github.com/golang/tools/commit/e047ae774b027ae958a270598c5ac2591e457afc fixed the problem.


Update the up-spec with the table in the comments

As mentioned here, we should put the mapping table of register_listener to up-spec.
The issue is just for my reminder.

Close via https://github.com/eclipse-uprotocol/up-spec/pull/188


Make parentheses optional for function calls with single parameter string/table

Lua supports function calls without parentheses for specific kinds of literals:
-- equivalent to my_func("str")
local a = my_func "str"

-- equivalent to other_func({1, 2})
local b = other_func {1, 2}

Clue could support no-parentheses string calls just fine, and could probably make it work with special strings too (like raw). Although, the table param call will be problematic since code blocks also use { }.
On the other hand, method calls (class::method()) could support single table params as the call can't be confused with a expression + block combination. Slightly useful for class-related structures:
local p = Vec3::new { -4, 2.2, 0 }

calls without () for strings would be fine, but {} could easily get ambiguous so I'm not sure if it's even possible
even if methods wouldn't have this issue, I'd rather not have it work with just methods


Php 7.3 version compatibility

You are changed library for php 7.3 but it's not set new realease.
You latest version of package work with old library.
In code on github     "kub-at/php-simple-html-dom-parser": "^1.8"
in code of latest release  "sunra/php-simple-html-dom-parser": "^1.5" - not work with 7.3
when i update packages steel work with old version
please create release with 7.3 compatibility

@vencendor u can use dev-master for now to get the latest code change.


Layers don't render when the rotation is 0

I am trying to display a custom vector layer(MVT) with points. All others layers are displayed correctly when the map is not rotated, but this MVT layer is missing. If I rotate the map, my MVT layer is rendered.
I am not sure how I can reproduce this issue outside my app...

my layer disappears here: https://github.com/openlayers/openlayers/blob/master/src/ol/renderer/Composite.js#L118

This sounds like a bug, but we need a minimal example to reproduce the issue. Can you try create a codepen or codesandbox that shows the issue?

I can try... As far as I know it looks like the canvas of one of the vector layers is removed after another vector layer is rendered...

For some reason, I can't reproduce this issue outside my app... I think this issue is related to the fact that the container used by the CanvasLayerRenderer is reused. This makes the layers to render inside the same div, and then element.childElementCount === 2 is true.
I am not sure why you really remove the element if there are exactly 2 canvases there

I was able to hack it, by setting different opacity, for each layer

That's only a workaround though. Container reuse is something that could use more real-world tests, so I would really be eager to get a map configuration with a combination of layers that triggers the error.  Can you try to just resemble layer order and types of the layer stack of your app, e.g. a tile layer, a vector layer, an image layer, another tile layer...?

The element.childElementCount === 2 is for vector tile layers, which have 2 elements in their container. Could it be that you had a tile layer on top of a vector tile layer in your app?

I have 4 base layers (XYZ) which only one is visible, a Vector layer with one animated point that shows the user position and a protobuf vector tile with some points.
It's hard for me to resemble the exact setup, because I have to provide the api tokens for the pbf vector layer, which is not that easy to do right now.


chores: add clang format config

issue #15

Codecov Report
Patch coverage: 93.38% and project coverage change: -0.42% :warning:

Comparison is base (fdb119f) 93.79% compared to head (b0e57f2) 93.38%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   93.79%   93.38%   -0.42%
==========================================
  Files           1        1
  Lines         129      121       -8
  Branches       17       18       +1
==========================================
- Hits          121      113       -8
  Misses          3        3
  Partials        5        5

Files Changed
Coverage Δ

include/parsi/parsi.hpp
93.38% <93.38%> (-0.42%)
:arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


List of permutation to remap old indexes into new

Hi, first of all amazing library, super easy to compile and process obj! Well done!
The only thing that right now is preventing me in using it is the ability to know what vertices got moved and how.
It works perfectly for static objects that don't need any kind of processing, but for animated objects the problem appears, for example skincluster ,when I export from the modelling software (autodesk maya) I store skinning information based on the current vertex order, before it was exported. With the reordering of the vertices my data is no longer valid since what was vertex 1 now has become vertex 10 and so on, this mean that mesh vertices and bone indices no longer match.
Right now the only way I see it is brute forcing vertex matching afterwards but is going to be as slow process. Would it be possible to get a list of permutations out of the tool? In this way I would be able to quickly remap the needed data to the needed indexes.
I am also open to other suggestions in how to achieve the wanted mapping.
M.

Hi,
Thank you for the feedback.  We are glad that you find this library useful.
Are you looking for the vertex mapping that is stored in pnVertexRemapping (see https://github.com/GPUOpen-Tools/amd-tootle/blob/master/src/TootleSample/Tootle.cpp#L1185) used by the "TootleSample -p" option?

Is the pnVertexRemapping a flat buffer of indeces? something like of the form:
old new old new old new old new .....
Where old is the old index for the vertex and new the new one.
The way i worked around that is the following:
Since I was in maya I was using python, but i would have don't it in c++ aswell. What I did i grabbed the first obj class I found on the net: http://www.pygame.org/wiki/OBJFileLoader
Then I read back in both objs, the old and the tootle version.
And did a brute force scan to match vertices up to a tollerance and dumped a list of lists:
example : [[0,1],[2,40] ....]
I can provide you a sample exported data if needed, but here is the overall code I quickly put together
obj_exporter.zip
you can check the obj_remapping function is really simple.
That data get then saved to a json file and read back in in the skincluster export process where I use that data to remap the skin data structure to reflect the obj.
Since looks like the needed data is already present in the tootle code, would it be possible to add an option taking a path to where to dump the mapping? Data format is no really a big deal as long as can be parsed easily.
What are your thoughts on the matter?
:

Please try out the latest code in the master branch.
Tootle will now output the vertex remapping indices as part of the output obj.  The vertex remapping indices are output as comments (each line is prefixed with "#vertexRemap = " with a maximum of 50 indices per line).  Note that the vertex index is 0-based.
As an example the following output line
#vertexRemap = 3 7 0 10
means that
v3 from the input obj becomes v0 in the output obj
v7 from the input obj becomes v1 in the output obj
v0 from the input obj becomes v2 in the output obj
v10 from the input obj becomes v3 in the output obj
Let me know if this works for you.

Thanks a lot for the work! personally I would rather get an external filer, can have the same name of the output file and maybe extension tootle? can just be a comma separated value file, but would be more convenient for me due to the fact I am using an external library to parse the OBJ, I am not performing it myself, and as mentioned I need the extra data to perform data formatting for example skinning data.
Having an external file will facilitate the reading of the file without need to modify the obj parser.
Either way I can handle that now, my is just a personal preference.
What are your thoughts..

You can treat the output obj file as the extra external file.  You can read this file without an obj parser since an obj file is a text file.  Just ignore any lines that don't start with "#vertexRemap = ".
Would that work for you?

yeah that will do thanks
M.


Service "Not loaded" v4.0.38

The problem
I updated this morning to v4.0.38, and restarted HA as prompted. Now the Solcast integration appears as "not loaded"

I also get this log entry:
Log Details (ERROR)
Logger: homeassistant.setup
Source: setup.py:271
First occurred: 09:38:36 (1 occurrences)
Last logged: 09:38:36

Setup failed for custom integration 'solcast_solar': Requirements for solcast_solar not found: ['scipy>=1.0.0'].

I noticed the mention of "scipy", which also appears elsewhere in my logs:
Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 09:34:33 (3 occurrences)
Last logged: 09:38:36

Unable to install package scipy>=1.0.0: error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [34 lines of output] Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ewt7ypug/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 1020, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ewt7ypug/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 1073, in build_wheel with _project(config_settings) as project: File "/usr/local/lib/python3.12/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ewt7ypug/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 947, in _project yield Project(source_dir, build_dir, meson_args, editable_verbose) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ewt7ypug/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 662, in __init__ self._meson = _get_meson_command(pyproject_config.get('meson')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ewt7ypug/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 982, in _get_meson_command meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'meson' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Unable to install package scipy>=1.0.0: error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [34 lines of output] Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-trbe6431/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 1020, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-trbe6431/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 1073, in build_wheel with _project(config_settings) as project: File "/usr/local/lib/python3.12/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/tmp/pip-build-env-trbe6431/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 947, in _project yield Project(source_dir, build_dir, meson_args, editable_verbose) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-trbe6431/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 662, in __init__ self._meson = _get_meson_command(pyproject_config.get('meson')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-trbe6431/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 982, in _get_meson_command meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'meson' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Unable to install package scipy>=1.0.0: error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [34 lines of output] Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3cnmixjj/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 1020, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3cnmixjj/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 1073, in build_wheel with _project(config_settings) as project: File "/usr/local/lib/python3.12/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3cnmixjj/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 947, in _project yield Project(source_dir, build_dir, meson_args, editable_verbose) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3cnmixjj/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 662, in __init__ self._meson = _get_meson_command(pyproject_config.get('meson')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3cnmixjj/overlay/lib/python3.12/site-packages/mesonpy/__init__.py", line 982, in _get_meson_command meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'meson' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

What version of Solcast Integration has the issue?
v4.0.38
What version of Home Assistant are you using?
HA Core 2024.7.2
Diagnostics information
Not possible
Logs debug/info/error output
See above

Additional information
No response

Interesting, @rholligan.
Does your HA have Internet access? Probably.
Could I get you to please re-upgrade to 4.0.38 (assuming that you've downgraded by now), and change scipy in manifest.json to >=1.9.0.
There are 45 other downloads so far with no reported issue, so this surprises me.

Yes it does have internet access.
I will try the steps you mentioned and report back.

Further, try adding "numpy>=1.21.4" as well.

I am seeing the same error. Just confirming this is not a single system issue.

(You did completely restart HA @rholligan, yes? Just confirming...)
This is a serious problem if two people so far have reported hitting the issue, which is 5% of current downloads, and it doesn't sound easily solved by fiddling the manifest. I'm also on 2024.7.2, and nothing blew up here. @isorin ran the alpha too without complications, presumably @gcoan too.
Downgrade to 4.0.37 and I'll stare at it a bit more.

(You did completely restart HA @rholligan, yes? Just confirming...)
This is a serious problem if two people so far have reported hitting the issue, which is 5% of current downloads, and it doesn't sound easily solved by fiddling the manifest. I'm also on 2024.7.2, and nothing blew up here. @isorin ran the alpha too without complications, presumably @gcoan too.
Downgrade to 4.0.37 and I'll stare at it a bit more.

Yes I did. Will revert to 4.0.37 for now

Just here to add a "me too" to the issue (so you can monitor occurances)......running Core 2024.7.2 with HAOS on Pi5 and seeing the unable to install scipy error entries in the logs as mentioned above.

Thanks for that. I'm thinking of pulling down v4.0.38 unless I can come up with something reasonably quickly.
It's why we have betas...

Is everyone hitting this running on a RPi?

I am running a Home Assistant Green

I also have this issue - Running RPi

Hardkernel ODROID-N2+
Core 2024.7.2
Supervisor 2024.06.2
Operating System 12.4
Frontend 20240710.0

I'm on HAOS as a windows VM, 12.4, HA v2024.7.2, running fine

Same issue here and using the new HACS so downgrading isn't as easy any more :(

Same issue, also on RPI.  Went back to 4.0.37 and all OK.

In the next release (most likely) the use of scipy/numpy has been retired. The last thing I want to see is less reliability, so old school math for the win.
Some of the other changes that I am proposing for that release are very much worthy of an alpha test, as they add new configuration capabilities. This math change will also be in the payload of that alpha. If anyone would like to participate, round up the discussion topic that I will create in a little while, once my testing is done.

I have upgraded to v4.0.37 yesterday (had similar issue as other with scipy module on v4.0.38). However, I miss the dashed line, the prediction. Where should I check, troubleshoot? Does it work for others?

An alpha of v4.0.39 is up. See https://github.com/BJReplay/ha-solcast-solar/discussions/87.

However, I miss the dashed line, the prediction

Sounds like the integration isn't loading properly for you.
Got any logs for me @ladaan? Debug logs would be ace, but I'll take anything.

Noted on the 'similar scipy thing', but do feel free to open a separate issue @ladaan, including logs and the rest. Your issue may be distict.

Noted on the 'similar scipy thing', but do feel free to open a separate issue @ladaan, including logs and the rest. Your issue may be distinct.

Issue on my side. Once the solcast was removed and added again from this repo, the solcast was not enabled in Energy dashboard, Solar Panels section.

Good to hear, @ladaan.
You didn't need to remove the integration. Just switch repos and re-download, and all config would have carried over.

Hi,
I have the same problem. No data coming. I've already tried the alpha, but it doesn't receive data either. I just reinstalled v4.0.38.

I'm blind from that info, @Godzillahu. I can't tell you much.
But what I can definitely tell you is that it is not the same issue as this one if you installed the alpha v4.0.39. That code does not carry a dependency on scipi, so it cannot be the same issue... The alpha as designed to solve this issue, and nearly made my math brain explode in the process of building it.
Please open a new issue, and with debug logging enabled so you can include that detail so I can see what's really going on in your case.

Do I have any more takers to try v4.0.39-alpha1? There are five downloads (including myself, @gcoan and @Godzillahu) that have not encountered anything untoward.
It is looking like a winner, but I'd really like more experience with it.
The scipy/math stuff from v4.0.38 is solved, with forecast remaining today values solid for me, and tracking lovely spline interpolations, and I'm loving the new options to suppress sensor attributes that I don't need.
Yes, it's a bit of a palaver to switch repos to @autoSteve to download, but quite straightforward and low risk really. All revealed in https://github.com/BJReplay/ha-solcast-solar/discussions/87.
After the alpha is declared a success switching back is equally a "palaver", but again not hard, and no data loss.
Any takers?
Do make yourselves known in the discussion at https://github.com/BJReplay/ha-solcast-solar/discussions/87 so you'll know when the alpha ends and it transitions to beta.
I honestly should have sent this as v4.0.39-alpha1 to BJReplay in retrospect, given its stability, but did not want to potentially pollute that code given the payload.

I have followed instructions and the v4.0.39-alpha1 broke it.
Below is what I can see in the log.
Logger: homeassistant.config_entries
Source: config_entries.py:586
First occurred: 16:46:37 (1 occurrences)
Last logged: 16:46:37
Error setting up entry Solcast Solar for solcast_solar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solcast_solar/init.py", line 135, in async_setup_entry
entry.options[BRK_ESTIMATE],
~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'attr_brk_estimate'

Brilliant @ladaan. Do you have a debug log to also share from that happening? less /config/homeassistant.log, keyboard: `/solcast', hunt for a line that is upgrading the config version?

I think I see what is going on. Expect v4.0.39-alpha2...

Actually, there is no more info in the log than I shared.

v4.0.39-alpha2 published at autoSteve, @ladaan.

(Go to HACS, find 'Solcast', three-dots menu, update information, redownload with reveal alpha2.

Now it works. Thank you.

Alpha 2 works for me also (RPI).  Alpha1 did not work.
Thanks!
On Wed, 17 Jul 2024 at 16:27, ladaan @.***> wrote:

Now it works. Thank you.
—
Reply to this email directly, view it on GitHub
https://github.com/BJReplay/ha-solcast-solar/issues/85#issuecomment-2233595584,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAPVGIRTAGY3LK35A536J4TZM2ENNAVCNFSM6AAAAABK4C5BRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGU4TKNJYGQ
.
You are receiving this because you commented.Message ID:
@.***>

Do I have any more takers to try v4.0.39-alpha1? There are five downloads (including myself, @gcoan and @Godzillahu) that have not encountered anything untoward.
It is looking like a winner, but I'd really like more experience with it.
The scipy/math stuff from v4.0.38 is solved, with forecast remaining today values solid for me, and tracking lovely spline interpolations, and I'm loving the new options to suppress sensor attributes that I don't need.
Yes, it's a bit of a palaver to switch repos to @autoSteve to download, but quite straightforward and low risk really. All revealed in #87.
After the alpha is declared a success switching back is equally a "palaver", but again not hard, and no data loss.
Any takers?
Do make yourselves known in the discussion at #87 so you'll know when the alpha ends and it transitions to beta.
I honestly should have sent this as v4.0.39-alpha1 to BJReplay in retrospect, given its stability, but did not want to potentially pollute that code given the payload.

I'm going to give it a try today - will let you know

Great work, GitHub.
What I said over in #87 is...
FYI, v4.0.39 draft release is primed and ready, which will end the alpha, and switch back to the @BJReplay repo. More to come.
Unless anyone has grievances to report...
Given the whole CrowdStrike thing you'll forgive me for delaying for about ten hours while I sleep and then double check all work with fresh eyes... You Europeans will be tucked up in bed by that time, so it'll probably be there when you wake up much later...
Reverting to the BJReplay repo in HACS is straightforward, as noted in the original post #87, except that will download v4.0.31. Choose to re-download, and select v4.0.39 after I pull the trigger. Then restart HA.
Lemme know if there are any issues doing so.
I'll advise here when v4.0.39 is up at BJReplay.
BTW, I will be "out-of-office" for a week come tomorrow. I'm heading to Tokyo to rubberneck at stuff, and hang out in odd bars, so responses may be delayed depending on how good the rubbernecking is. I'm tipping the rubbernecking will be epic. (Did someone say MARIO CARTS through the streets of Tokyo??? SEND IT!!!)
#84, #85, and more.

All, v4.0.39 is up.
To switch from @autoSteve, in HACS:

Add the custom repo https://github.com/BJReplay/ha-solcast-solar
Remove custom repo `https://github.com/autoSteve/dev-solcast-solar'
Search for solcast, open it, download button at bottom right, which will get you back on v4.0.31
Restart HA
Back in hacs, re-download Solcast integration, turn on Show beta versions, select v4.0.39, download
Restart HA
Verify in logs that v4.0.39 is running

It may be possible to do this with one HA restart. I had some minor HACS weirdness, ending up on v4.0.38, so upgraded in the HA settings and restarted HA again.


Lost my info. How to retrieve?

What I did was adding a volume to my Database Container (I'm using Teslamate in Docker on my Synology) so I had a link between /var/lib/postgresql/data and a local directory on my NAS (under docker) that would allow me to backup my data. Unfortunately after restarting the database container and the main Teslamate container it asked me to login to my account and now all my data is gone. I still do have all the info under /var/lib/postgresql/data stored in a folder on my NAS, but I don't know how to import this in the database container or move it into this container.
Is there any hope in retrieving the info and putting it back in the database container or do I have to start all over again?
Thanks,
Vipercat

I was able to fix the issue by running docker-compose up and recreating the database container.

I was able to fix the issue by running docker-compose up and recreating the database container.


CUU and CUD commands should be constrained by the scrolling margins

Your Windows build number:

Microsoft Windows [Version 10.0.16299.371]

What you're doing and what's happening:

I'm setting the top and bottom scrolling margins with the DECSTBM escape sequence, then using the CUU and CUD sequences to move about within that range. According to the VT100 documentation for CUU: "If an attempt is made to move the cursor above the top margin, the cursor stops at the top margin." Similarly for the CUD command: "If an attempt is made to move the cursor below the bottom margin, the cursor stops at the bottom margin.
But that's not the behaviour I'm seeing in the Windows console. In the test case below, I've set the top margin to 8, the bottom margin to 16. Then starting from the centre of that range, I move down 99 lines and output some text to mark the bottom of the range, then up 99 lines to mark the top of the range.
printf "\ec\e[8;16r\e[12H\e[99BBOTTOM\r\e[99ATOP\n"

If everything is working correctly, I'd expect the TOP and BOTTOM markers to be on line 8 and 16 respectively, but in the Windows console they appear at the very top and bottom of the screen. The screenshots below compares the output on XTerm, Konsole, Gnome Terminal, and the Windows console (left to right).

What's wrong / what should be happening instead:

The vertical cursor movement commands CUU and CUD should not be able to move outside the scrolling margins - they should be constrained within those boundaries, the same way the various Linux terminal emulators behave.

I should probably also mention that the VT52 movement commands (ESC A and ESC B) have the same problem. They're a little more difficult to test, since you can only move one line at a time, but the script below demonstrates the issue in a similar way.
#! /usr/bin/env bash
printf "\ec\e[8;16r\e[12H\e[?2l"
for i in {1..99}; do printf "\eB"; done
printf "BOTTOM\r"
for i in {1..99}; do printf "\eA"; done
printf "TOP\n\e<"

Note the \e[?2l sequence is necessary to enable VT52 mode on most terminals, and the \e< sequence is to switch back to VT100 mode.
The results are much the same as before, except that Gnome Terminal doesn't support the VT52 commands at all.

Looks like it's fixed in the 2018 October Update.


Suggest answers below or vote for an answer.

Suggest answers below or vote for an answer.
Originally posted by @metrox-eth in https://github.com/snapshot-labs/snapshot/discussions/767

Please create a ticket with more details at https://help.snapshot.org/en/


Logic for handling typdef enum declarations

Prior to this commit a specific type of C typedef declaration broke
this tool's functionality.
enum tux {
    aa,
    bb,
    cc
};

typedef enum tux tux;

Running autopxd on a file contaning this code resulted in an
'AttributeError: 'NoneType' object has no attribute 'enumerators''
error and failure to write the pxd file. After these changes the
tool does not generate a ctypedef in this scenario. Initially
only changes to the visitEnum function were incorporated which
resulted in a ctypedef tux tux declaration but that caused an
incomplete / ambiguous struct error when compiling the associated
pyx file. After these changes this tool will generate the following
in a pxd file associated with the above code snippet.
cdef enum tux:
    aa
    bb
    cc

👍 thanks


Some Calliope blocks produce server errors in simulation

Describe the bug

The blocks "set LED Bar", "clear 4 Digit Display" and "set 4 Digit Display" (maybe more, will test) produce a server error when opening the simulation.

To Reproduce
Steps to reproduce the behavior:

Add one of the mentioned blocks
Open simulation
See error

Expected behavior

No errors, a warning on the block that it cannot be used in simulation.

Additional context

Should be covered by workflows integration tests.

In this context I will create Calliope integration tests with all action and sensor blocks.

There already are fractured integration tests for the blocks, but the robot specific ones do not have the workflow tests. I'll add the workflow tests to the robot specific tests and combine the fractured tests into one with all blocks.

Workflow and simulation tests will be tracked in #364.

Now warning signs are shown, but no server error.


Use file spacing preferences by default

I prefer tabs with everything I edit, but Beautify converts these to spaces when I beautify my file.  Most of the time I am editing loose files around my filesystem, so I can't create a .jsbeautifyrc.
Is there a way/can there be a feature to use the spacing preferences set up within VS Code?

Either this, or a way to have default preferences set up in settings.json?

Nice call @ScottKaye. I have run into the same issue and I should have addressed this earlier. Will hopefully get to take a look this weekend.

v0.1.2 published. Default is to use workspace/user settings for space/tab indentation.

Great work, thank you!


Colorize the output

license-checker colorizes the name and version of the dependencies when printing the output to the terminal, which makes it slightly better readable. So I thought that it would maybe be a good idea to do the same here :)

Thank you very much for your contribution! Colorized output is definitely an improvement if it is display console. However, as some users may redirect the output, the output may contain disturbing control codes in the case. I am not sure whether chalk auto-detection can cover all cases. I'll need to have a look at this. Apart from this, the "--no-color" option should be documented as some user may not be aware of this

Thank you for your feedback! I have added and documented the noColor option. As for the redirection, it really seems that it doesn't work in all cases  with the colors, I will look again into this too.

Excellent. Note, however, the chalk has a built-in handling for 'no-color' as far as I know. Well, I need to test this myself. Let me sort this out for and I keep you posted here.

Ah okay, thanks, I hadn't seen this! I've now removed the additional option.

Excellent. Thanks again for your contribution. Much appreciated!


Add slash command for invalid issue

Adds a "/invalid" command that when typed in an issue will let users know the purpose of GitHub issues and close the issue.
This can be used when a user opens an issue seeking help, rather than to report a bug or request a feature. Simply typing /invalid will reply to the issue with the below comment and automatically close the issue:
Thank you for opening this issue.

GitHub Issues is a tool for tracking bugs, feature requests, and work in general that
relates directly to the Fabric codebase. It is not for general help requests. Please
use one of the following forums to request help for your issue:

- RocketChat: https://chat.hyperledger.org
- Fabric Mailing List<EMAIL_ADDRESS>
Signed-off-by: Brett Logan<EMAIL_ADDRESS>

/azp run

/ci-run

/ci-run

/ci-run

@lindluni any idea why /ci-run isn't working?
I've re-triggered the failing test in Azure Pipelines (BTW, the orderer unit tests flakes are next to be improved... I think we've solved the orderer integration test flakes now... don't give up hope!)

I've tested the invalid function with https://github.com/hyperledger/fabric/issues/2831 and it works, thanks @lindluni !
Now to figure out why ci-run doesn't work.

@denyeart
My Azure DevOps token expired :(
I tried to generate a new one but my credentials are screwed up because of my Microsoft account. If you generate a new token in AZP and then replace the existing AZP_TOKEN in the Settings -> Secrets here in the repo that should fix it


feat(backend): semaphore to lock transaction table

🍰 Pullrequest

semaphore to lock transaction table
Issues

None

Todo

[x] build test cases to prove its working

Please restore the error log

Done

good work! In the ContributionResolver i'am not sure if we need to set the lock even before getting and validating the users creations... but if it works, it's fine

I think this is a valid argument - the way its implemented there could be two concurrent confirm actions. But since this is an admin thing, I rather move this problem into the future ;)


HttpResponseException: Not Found (createJob)

Hi there,
I've been having issues with JenkinsServer.createJob(String jobName, String jobXml). When performing the action I get an http error from the validator (partial stack trace):
org.apache.http.client.HttpResponseException: Not Found 	at com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse(HttpResponseValidator.java:11) 	at com.offbytwo.jenkins.client.JenkinsHttpClient.get(JenkinsHttpClient.java:157) 	at com.offbytwo.jenkins.client.JenkinsHttpClient.getQuietly(JenkinsHttpClient.java:203) 	at com.offbytwo.jenkins.client.JenkinsHttpClient.post_xml(JenkinsHttpClient.java:361) 	at com.offbytwo.jenkins.JenkinsServer.createJob(JenkinsServer.java:334) 	at com.offbytwo.jenkins.JenkinsServer.createJob(JenkinsServer.java:298)
Source of the issue:

The strange thing is the jobs are created.
Jenkins Client API Version: 0.3.5
Jenkins Server Version: 1.642

Can you just try using the following method in your code:
createJob(String jobName, String jobXml, Boolean crumbFlag);

like this:
createJob(job.getjobName(), job.getXML(), false);

Thanks Karl, adding the false crumbFlag has stopped the error. Just curious as to you know why this stops the error?

That's what I assumed, cause there is a bug in the code which calls with crumbFlag=true which is your case wrong...


error: Table 'STATISTIC_TO_COUNT' does not exist

After upgrading from 0.4.2 to 0.5.0, the ord "wallet outputs" command on my system fails with the following output:
error: Table 'STATISTIC_TO_COUNT' does not exist
Note that this command did work properly prior to the upgrade
Details
Today I pulled the latest ord 0.5.0, to upgrade from version 0.4.2 (which I had also originally built from source).  For reference, the process I followed to perform the update was:
git fetch
git checkout 0.5.0
cargo clean
cargo build --release

Additional Environment Details
Versions:
ord             0.5.0   (compiled from source, tag 0.5.0)
Rust            1.67.1
Bitcoin Core    24.0.1  (snap install)

System:
Hardware       Raspberry Pi 4B        (2GB RAM model)
OS             Raspbian 11 "Bullseye" (Linux, Debian-like)
Architecture   armv7l                 (32 bit)

--UPDATE--
I see also that I get the same error for the "wallet balance" and "wallet inscribe" commands, so it isn't specific to wallet outputs.

I figured out the problem.  I hadn't paid attention to the 0.5.0 changelog, where I should have seen that there was a breaking change redb update.
Deleting ~/.local/share/ord/index.redb appears to have fixed the problem.  Closing this issue.

Things like this should go to GitHub discussions or discord.gg/ordinals 🙏

Issues are for bug reports and specific feature requests only

Thanks, will keep that in mind.  Note that I originally thought it was a bug with 0.5.0, and so I opened this issue to report it ;)


Child context

Enables to use the frontmatter of child pages in a template.
I used this to first use a template to summarize my notes:
type: Settlement
sum:
  - Located in the south of the Silent River
  - Mostly composed of artisans
  - Constructed on a cliff with a castle on top of it
  - Relatively Wealthy citizens and good economy
  - Neutral stance in war and no strategic point of interest
  - Ruled by Lord Ander, who is supportive of the arts
  - Majority human population with some other races also present
  - Militia to defend the city and its inhabitants
---

And then use a template that only uses the Summary for guiding GPT-3 on Context:
---
PromptInfo:
 id: expand_description
 name: 🧙 expand the lore
 description:
 author: Philip
---

Additional information for Context
(DONT INCLUDE INTO PROMPT! THIS IS JUST CONTEXT!):
{{title}} ({{type}}):
{{#each sum}}
-  {{this}}
{{/each}}
{{#each children}}
{{this.basename}}:
{{#each frontmatter.sum}}
-  {{this}}
{{/each}}

{{/each}}
The above text is just lore information, use it for context on how characters behave or facts about citys to build uppon, but dont reitterate the bullet points.

prompt:
Write new Lore in the style of J. R. R. Tolkien:
{{selection}}

This leads to much better Prompts, since you can efficiently give more compact Information about your subject.

Thank you so much for your pull request!
 This feature will undoubtedly lead to more efficient and informative prompts, making it easier for users to obtain compact information about their subjects.


Add fluid tags

Add fluid tags to be compatible with other mods.

Thanks for this! I will merge it for the next release!

Nice! :D


How to classify video?

Hello. I have a video uploader.
I want to classify more than first video frame. Is it possible?
Thanks.

Hey @Vista1nik, just throwing some idea in the air, might it be possible to convert the video to a gif and then use the module? This might take a long time though (converting + classifying).
Another idea might be taking some of the frames (every second?) and checking them. Clearly not perfect

Take a look at the code I started in ticket #39 .  I'm still hoping someone will take this on:
https://github.com/infinitered/nsfwjs/issues/39

Or can it be like first convert video to image, then image to Gif? Because direct Video to Gif maybe a little tough than the image to Gif

you can cover video to image. like ffmpeg4 or canvas


[Feature Request] Mini Player Pop-up

Once upon a time, a long time ago, there lived a beautiful extension named Enhancer for YouTube.
It had a magical power that no other extension had called the Mini Player.  When the people of the village scrolled down to read comments, the Mini Player would magically appear allowing people to watch the video and read the comments at the same time.  There was much rejoicing.
Then, one dark day, corruption came to the land of Firefox and destroyed the power of the beloved Enhancer for YouTube.  There was much wailing and rending of garments.
However, there arose another extension whose power was quietly growing and the villagers whispered among themselves, "Is this who was written of to replace what we have lost?  Will we be able to once again read comments and watch the video at the same time?"
The villagers watch, wait, and hope.

@vbmark thanks for your issue, not a direct duplicate of this issue but it's fine.

I'm terribly sorry I didn't see that other one.  I understand if you close this.

I'm terribly sorry I didn't see that other one. I understand if you close this.

no problem


Returning a Collection of key, location and distance

I want to wrap your library in a google cloud function and return an array with the results to the client.
I do the following setup.
    const geoQuery = geofire.query({
        center: [parseFloat(req.query.lat), parseFloat(req.query.lon)],
        radius: parseFloat(req.query.radius)
    })

Is there any way to get the result, instead of waiting for all onKeyEnteredRegistration Events?
I need to do a response.send(results), but I Do not know which is the last item of the result set.
I had tried to put the response.send() inside the onReadyRegistration, but it happens sometimes before receiving all events in onKeyEnteredRegistration;
Any guidance appreciated.

Unfortunately the answer would be no. The library is based off of the official firebase geofire library and makes multiple queries around the area you selected as well as validates that it is really within the radius you provided. However the turn around time is fairly quick. What I would suggest is to wrap the response.send(result) in a setTimeout after maybe 4 seconds? (Maybe more??)
Then as the onKeyEnteredRegistration is fired push the results into the results array.

I create a promise with a timer that cancels the query and resolves in 10000ms.
Every time key_entered is fired, I reset the timer to 500ms.
When ready fires, I reset the timer to 1000ms.
It needs work, but it my most reliable solution so far, and my function currently returns data for a location with 21 documents in about 1600ms (3700ms on a cold start), and for a location with 0 documents in about 1100ms.
return new Promise(resolve => {
    const geoQuery = geoFirestore.query({
      center: geoPoint,
      radius: 30
    });

    let geoQueryTimer = setTimeout(() => {
      geoQuery.cancel();
      resolve()
    }, 10000 );

    const onKeyEnteredRegistration = geoQuery.on(
      'key_entered',
      (key, doc, distance) => {
        clearTimeout(geoQueryTimer);
	// do stuff with doc
	// push to array, etc
        geoQueryTimer = setTimeout(() => {
          geoQuery.cancel();
          resolve()
        }, 500 );
      }
    );

    const onReadyRegistration = geoQuery.on(
      'ready',
      () => {
        clearTimeout(geoQueryTimer);
        geoQueryTimer = setTimeout(() => {
          geoQuery.cancel();
          resolve()
        }, 1000 );
      }
    )

  }).then(() => {
    // return data
  });

What if you need to do another Firestore database call within the key_entred event? How do u suggest we do this.


[Proposal] Add functionality to generic types

When we have generic type in a method currently there is only one possibility to use it, which is a helpful feature with auto static check for the correct return type.
Type name
In one implementation I tried to get a bucket of events by generic type name, similar to EventAggregator in .NET .
public GetEvent<TEvent>():TEvent{
     // typeof only works with instances

     // any attempt to use TEvent shows as 'TEvent is undefined',
    //  so cannot even check some variable instance by 'bool isMyType = varable instanceof TEvent'
}

TEvent becomes untouchable in this situation. No doubt that there are a lot of limitations in transpiling TS to ES5 and currently the result will be pure JS  function GetEvent(){}, but perhaps there is a solution to this problem, e.g. put private string variable in the function with actual TEvent type, or something else.
This is apparently a more general problem of ES as there is no notion of a class/function as a type except [type Object] and some primitive types.
Activator
One more handy feature might be creating a new instance by use of a generic type.
Now possible
public NewInstance<TEventType>(eventClass: { new (): TEventType }): TEventType{
   let newEvent = new TEventType();
}
// also possible if eventClass argument will have an interface type with a static constructor declaration

Desired behaviour(currently not possible)
public NewInstance<TEventType>(): TEventType{
   return new TEventType();
}

Related: #[Covariance / Contravariance Annotations] https://github.com/Microsoft/TypeScript/issues/1394

TypeScript's type system is one that is fully erasable (please see design goals for more information). this means that types do not exist at runtime; what does exist are values. so a function that takes a constructor function as an argument can new it, but not one that does not.
Moreover, types in TypeScript are compared structurally. so knowing the shape of a type does not mean you can construct it at runtime.
Having said this, this suggestion is currently out of scope for the TS project.
I would recommend reading some of the FAQ's about how the TypeScript type system works.

Thank you Mohamed for the clarification.


Move epsilon outside of exponential

@matthiasplappert thanks for the great library! I'm pretty sure the transform in the cdqn is supposed to be e^(x)+epsilon instead of e^(x+epsilon). This constrains the values to be >0 instead of >=0.
before
diag = K.exp(T.diag(x_) + K.epsilon())
...
x_ = K.exp(x + K.epsilon())

after
diag = K.exp(T.diag(x_)) + K.epsilon()
...
x_ = K.exp(x) + K.epsilon()

Cheers!

@matthiasplappert this is only a two line change. Just need to rebase on https://github.com/matthiasplappert/keras-rl/pull/90 so the build will pass.
I'm toying with some other updates to the cdqn that I may PR later.

I think you are probably right. I also wanted to guard against an underflowing exp (for x -> -inf) but that's probably not all that likely to happen to begin with. Merging this since it seems to be cleaner.


sourceLinkTemplate option is not supported

What package is the bug related to?
typedoc-plugin-markdown
Describe the issue
I use this plugin with typedoc in a monorepo with 50 packages to generate API reference docs for them. The API reference is generated in PRs, and deployed on each push to the main branch.
For each symbol in the generated docs, this plugin emits source links for them pointing to Github. The link includes the commit hash, which changes with each commit. This causes PRs to have massive diffs, just because the commit hash changed.
I want to work around this behaviour with the sourceLinkTemplate option. I want to use a template that points to the main branch instead of the latest commit hash (e.g. https://github.com/<org>/<repo>/blob/main/{path}#line={line}).
The plugin does not seem to respect this option. Can we please fix this behaviour?
TypeDoc configuration
{
  "$schema": "https://typedoc-plugin-markdown.org/schema.json",
  "entryPoints": ["packages/*"],
  "entryPointStrategy": "packages",
  "includeVersion": false,
  "cleanOutputDir": true,
  "out": "./apps/docs/src/pages/api-reference",
  "plugin": ["typedoc-plugin-markdown"],
  "hideBreadcrumbs": true,
  "hidePageHeader": true,
  "entryFileName": "index",
  "sourceLinkTemplate": "https://github.com/<org-name>/<repo-name>/blob/main/{path}#line={line}"
}

Expected behavior
The generated source link should respect the supplied template.

Hello. This is more of a TypeDoc question that a plugin question, however this is supported but the config needs to be set in the config file for each package. TypeDoc 0.26 will be introducing a packageOptions option to address this very issue. https://github.com/TypeStrong/typedoc/issues/2523

Thanks! Adding config at the package level fixed my issue.


OpenVPN Client Export doesn't work

Dear OPNSense team,
I'm trying to use OpenVPN Client Export but I can't choose the server for which I want to generate the client.
The drop-down list is empty.

Happy new year !

You are sure server type is remote access and you have choosen an authentication backend?

The development version has a new (and simplified) module for this, which will be released with 19.1 later this month.

You are sure server type is remote access and you have choosen an authentication backend?

You are right, I was using Peer To Peer (SSL/TLS) mode...
Now it works, thank you.
What changes between Peer To Peer and Remote Access modes in OPNSense's backend exept you can use an authentication backend ?


getPosts Helper: sortBy not working

Summary
I want to link the last created post to a logo at the homepage. So i try to get this very last post with the following lines of code at the end of blog.dust:
{@getPosts count="1" sortBy="createdAt" sortOrder="desc" }
  {#posts}
     the newest post...
  {:else}
    no posts yet!
  {/posts}
{/getPosts}

This returns nothing! Not even the text "no posts yet!" is displayed. So i changed the sortBy Parameter back to "title" and got the expected result: one post with a leading "Z" in title is shown.
Then i tried the other sortBy-Values as described in {@getPosts} and figured out, that none of them is working as expected. Only "title" and any value, not defined in theme_helpers.js:442 will work.
What am I doing wrong? Or is it a bug?
Steps to Reproduce

switch .env to development-mode
restart node
Add above code to blog.dust - just before {/body}
reload browser

Additional feature request
It would be cool if sorting would be possible for publishedAt, also. And a filter for isPublished would be nice. Saying that... what about an {@getLastPost} helper ;)

This should work as expected, since createdAt is a valid option. If not it's likely a bug.
A couple things to check:

Are your createdAt dates all the same?
Are you seeing any errors in the Node console?
If you log the result,
are you seeing an empty array or something else?

Thanks for helping troubleshoot this.

This returns nothing! Not even the text "no posts yet!" is displayed.

It looks like this helper doesn't support the {:else} block as documented. That would explain why you're not seeing "no posts yet!". I've discovered a few more helpers that this affects and opened a new issue (see #105).

At first I have to say, that I'm completely new to Javascript, Node and Postleaf.

No. I've checked the database and all dates are different

Are you seeing any errors in the Node console?

No errors.

If you log the result, are you seeing an empty array or something else?

I figured out, that if i use a sort order other then "title", i will end up in the catch-block. I've put a debug message there. If i use "title" the then-block is processed. Knowing this, i removed the catch and got the following, database-releated error in the console:
Unhandled rejection SequelizeDatabaseError: SQLITE_ERROR: ambiguous column name: createdAt
    at Query.formatError (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/dialects/sqlite/query.js:348:14)
    at afterExecute (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/dialects/sqlite/query.js:112:29)
    at replacement (/var/web/ohnemotor.de/dev/postleaf/node_modules/sqlite3/lib/trace.js:19:31)
    at Statement.errBack (/var/web/ohnemotor.de/dev/postleaf/node_modules/sqlite3/lib/sqlite3.js:16:21)
From previous event:
    at executeSql (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/dialects/sqlite/query.js:103:19)
    at runCallback (timers.js:794:20)
    at tryOnImmediate (timers.js:752:5)
    at processImmediate [as _immediateCallback] (timers.js:729:5)
From previous event:
    at Promise.then (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/promise.js:21:17)
    at Database.<anonymous> (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/dialects/sqlite/query.js:278:14)
    at /var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/dialects/sqlite/query.js:98:19
From previous event:
    at Query.run (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/dialects/sqlite/query.js:96:13)
    at /var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/sequelize.js:849:20
    at /var/web/ohnemotor.de/dev/postleaf/node_modules/retry-as-promised/index.js:39:21
From previous event:
    at retryAsPromised (/var/web/ohnemotor.de/dev/postleaf/node_modules/retry-as-promised/index.js:29:10)
    at /var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/sequelize.js:848:12
From previous event:
    at Promise.then (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/promise.js:21:17)
    at Model.findAll (/var/web/ohnemotor.de/dev/postleaf/node_modules/sequelize/lib/model.js:1395:6)
    at chunk.map (/var/web/ohnemotor.de/dev/postleaf/source/modules/helpers/theme_helpers.js:451:10)
    at Chunk.map (/var/web/ohnemotor.de/dev/postleaf/node_modules/dustjs-linkedin/lib/dust.js:722:7)
    at Object.dust.helpers.getPosts (/var/web/ohnemotor.de/dev/postleaf/source/modules/helpers/theme_helpers.js:421:18)
    at Chunk.helper (/var/web/ohnemotor.de/dev/postleaf/node_modules/dustjs-linkedin/lib/dust.js:928:33)
    at body_1 (evalmachine.<anonymous>:1:1301)
    at Chunk.block (/var/web/ohnemotor.de/dev/postleaf/node_modules/dustjs-linkedin/lib/dust.js:881:14)
    at body_0 (evalmachine.<anonymous>:1:1291)
    at done (/var/web/ohnemotor.de/dev/postleaf/node_modules/dustjs-linkedin/lib/dust.js:176:13)
    at Fs.readFile (/var/web/ohnemotor.de/dev/postleaf/source/modules/dust_engine.js:62:7)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

Maybe there is something wrong with my database? I will try it with a clean one...

Maybe there is something wrong with my database? I will try it with a clean one...

The error also occurs with a newly generated databse.

I think, i've got it. I enabled logging in database.js, took the error causing SQL-Statement and put it into my SQLite Debugger. That shows, that there was a missing table identifier in the second ORDER BY. So i changed it to
ORDER BY lower(`post`.`createdAt`) DESC;
and the result was like expected. But I have no idea how to fix this in postleaf...
 Thanks for narrowing this down.
Try swapping this with this:
[sequelize.fn('lower', sequelize.literal('post.createdAt'), sortOrder]

If that works as intended, we can rework the logic to account for it.

Cory, that works fine! I tried your modification and after successfully testing ist, i changed this line to this
sortBy = 'post.' + ((sortBy || '').match(/^(id|slug|title|createdAt)$/) ? sortBy : 'title');
to address this issue. Is this the right way to do this? I could check all other helpers add the missing table identifier?!

I don't believe it affects the other helpers. This happens because we're including the user and that join creates two createdAt fields. It looks like getPosts is the only helper that does this.
Feel free to submit a PR for the fix you suggested.

Fixed in #106


Dockerfile

This is a feature request for a dockerfile as this is way simpler to have the correct dependencies.

FROM pytorch/pytorch
RUN pip -q install big-sleep

Seems to do it for me. Make sure you use the --gpus docker flag or runtime: nvidia if using docker-compose.


Created generic handler for routes with one or more parameters

Created a generic handler for one or more parameters to avoid need to create each method a route in the application. Need to check for security (special characters).

Thank you for the pull request @WKnak - I'll look into it. At the moment though I'm working on a major update that will change the way the framework works, so I'll take a look at your code but I don't want to update this version of the framework at the moment. Thanks!

Ooooo I look forward to this major update. Any idea when it's gonna be available/if it is available somewhere else to see? Thanks :)

@jackttcoms sorry no idea at the moment when it'll be available (current situation affecting things a bit!) - as soon as I can though!

can't we add a generic route like this?
# /public/index.php
- - - - - - - - - -
/**
 * Routing
 */
$router = new Core\Router();
// ...
// generic route -> "example.com/item" routes to "App\Item\indexAction"
$router->add('{controller}', ['action' => 'index']);
// ...
$router->dispatch($_SERVER['QUERY_STRING']);

Passing through arguments to the controller functions like this is a nice idea though.
Twig escapes them when it echos them into/onto your page so I don't see a problem there


Ellipse shading artifacts in CZML Circles and Ellipses sandcastle

CZML Circles and Ellipses - make sure to view from below the ellipse.
This problem goes at least as far back as CesiumJS 1.50.

Duplicate of #2399?  (From 5 years ago) or is this different?

https://github.com/CesiumGS/cesium/issues/2399 seems a bit different

Sandcastle


Usage with existing storyboard based layout?

Hi, great work, I'm new to swift and wondering if you could provide a little insight as to how to set this up without instantiating the viewControllers from the storyboard, and integrating it with an already in process app?

Hi, Thank you for your comment.
The pattern set this up without instantiating the viewControllers from the storyboard If what?  Is xib?
I felt that if you provide the sample code might be resolved.

Thanks for the reply, I didn't however have the identifier set in the storyboard, among other issues, I've figured it out, thanks!


⚠ Samsung has degraded performance

In de49a7c, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2110 ms

Resolved: Samsung performance has improved in 7688282.


Fixed build warnings in Xcode 7.3 beta 2 for Swift 2.2

Nothing major changed here really, and mostly ran with the suggestions from Xcode.
I'm not sure if this needs to go on a swift-2.2 branch for now, but I though I'd make this for now to try and help out.

Thanks for putting this together @Baza207! I cherry picked the commit into the new swift_2.2 branch in 3cf3614c. We'll maintain this separate branch until Xcode 7.3 is officially released.
Thanks again! 🍻


GH4574 - Extending SparqlQueryEvaluator defaultGraphUri -> Array

GitHub issue resolved: #4574
Briefly describe the changes proposed in this PR:
The Parameter defaultGraphUri in SparqlQueryEvaluator.evaluate is now a array. So it's possible to pass more than one  defaultGraphUri.

PR Author Checklist (see the contributor guidelines for more details):

[x] my pull request is self-contained
[x] I've added tests for the changes I made
[x] I've applied code formatting (you can use mvn process-resources to format from the command line)
[x] I've squashed my commits where necessary
[x] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

Well spotted @naturzukunft I had no idea it would be legal to have more than one  default-graph-uri parameter! But it makes sense as this is an override of the FROM concept and that allows multiple ones.
I think this is fine to go into 5 without further ado, as it is on a method with a limited scope for overriding.

Well spotted @naturzukunft I had no idea it would be legal to have more than one default-graph-uri parameter! But it makes sense as this is an override of the FROM concept and that allows multiple ones.
I think this is fine to go into 5 without further ado, as it is on a method with a limited scope for overriding.

That fine by me too!
At the moment the PR is targeted at the main branch, but if we target it at the develop branch then it will end up in RDF4J 5.0.0.

Well spotted @naturzukunft I had no idea it would be legal to have more than one default-graph-uri parameter! But it makes sense as this is an override of the FROM concept and that allows multiple ones.
I think this is fine to go into 5 without further ado, as it is on a method with a limited scope for overriding.

That's fine by me too!
At the moment the PR is targeted at the main branch, but if we target it at the develop branch then it will end up in RDF4J 5.0.0.

i would prefere to have it in an earlier version!

What are the next steps here ?

I'm planning a milestone build of RDF4J 5.0 and I think it would be good to include this PR in that build.

I'm planning a milestone build of RDF4J 5.0 and I think it would be good to include this PR in that build.

@hmottestad  when will the milestone build be ready ?

Hopefully within the next week or two.


Not working in Jupyter notebook

This is probably an extremely simple issue but I seem to be stuck.
I've run GetOldTweets in my command line and it works fine, however when I run it in a Jupyter notebook I encounter this error:
name 'got' is not defined
I clearly need to import something however I'm not sure exactly what... any help would be much appreciated, thank you!

Hi, I have the same problem. When I try to import the files I get an error saying:
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
----> 1 from Documents import got
ModuleNotFoundError: No module named 'Documents'
Any help would be great (I am just a beginner and want to use historical tweets for my thesis, however this code is a bit advanced for me)
Thanks in advance!

I see @vdnhu other query so I prefer to answer both comments here.
First Jupyter notebook works different than Python console. each notebook has its own Kernel that imports all libraries and files.
You need to import entire getoldtwees folder to Jupyter. Then open Exporter.py and run it.
Since Exporter.py is a python file, Jupyter will not let you run it as is. You need to create a new notebook file (.ipynb), copy Exporter.py code there and then run it.
If you have latest Anaconda, you are likely to have Python 3.x so you can skip got folder and just use got3.


How to use UI from another file

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
I am trying to use UI from another file imported in the Fastfile using require_relative "globals.rb", but it throws the error:

uninitialized constant UI

I tried using require "fastlane_core/ui/ui" to no avail.
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

Captured Output
Command Used: deploy apps:ES,ZZ
Output/Log

Successfully loaded Appfile at path '<redacted>/fastlane/Appfile'
- team_id: '<redacted>'
- itc_team_id: '<redacted>'
-------
Successfully loaded Appfile at path '<redacted>/fastlane/Appfile'
- team_id: '<redacted>'
- itc_team_id: '<redacted>'
-------
DEBUG [2017-10-11 12:20:01.65]: Checking if there are any plugins that should be loaded...
DEBUG [2017-10-11 12:20:02.00]: Using apps: ES,ZZ
INFO [2017-10-11 12:20:02.00]: -------------------------------------------------
INFO [2017-10-11 12:20:02.00]: --- Step: Verifying required fastlane version ---
INFO [2017-10-11 12:20:02.00]: -------------------------------------------------
INFO [2017-10-11 12:20:02.00]: Your fastlane version 2.61.0 matches the minimum requirement of 1.109.0  ✅
INFO [2017-10-11 12:20:02.01]: ------------------------------
INFO [2017-10-11 12:20:02.01]: --- Step: default_platform ---
INFO [2017-10-11 12:20:02.01]: ------------------------------
INFO [2017-10-11 12:20:02.01]: Driving the lane 'ios deploy' 🚀
WARN [2017-10-11 12:20:02.01]: Lane Context:
INFO [2017-10-11 12:20:02.01]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios deploy"}
ERROR [2017-10-11 12:20:02.02]: uninitialized constant UI
INFO [2017-10-11 12:20:02.02]: Successfully generated documentation at path '<redacted>/fastlane/README.md'

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
+------+-------------------------------------+-------------+

ERROR [2017-10-11 12:20:02.03]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: uninitialized constant UI

URL: https://api.github.com/search/issues?q=uninitialized%20constant%20UI+repo:fastlane/fastlane
➡  uninitialized constant Gym::CodeSigningMapping
    https://github.com/fastlane/fastlane/issues/10098 [closed] 4 💬
    7 weeks ago

➡  fix uninitialized constant Spaceship::Client::ITunesConnectError
    https://github.com/fastlane/fastlane/pull/9308 [closed] 3 💬
    3 weeks ago

➡  uninitialized constant CredentialsManager::PasswordManager
    https://github.com/fastlane/fastlane/issues/8025 [closed] 3 💬
    27 Apr 2017

and 30 more at: https://github.com/fastlane/fastlane/search?q=uninitialized%20constant%20UI&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.

✅ fastlane environment ✅
Stack

Key
Value

OS
10.13

Ruby
2.3.3

Bundler?
true

Git
git version 2.14.2

Installation Source
~/.gems/bin/fastlane

Host
Mac OS X 10.13 (17A365)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

OpenSSL Version
LibreSSL 2.2.7

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
9.0

System Locale

Variable
Value

LANG

LC_ALL
en_US.UTF-8
✅

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# The latest default template can be found here:
# https://github.com/fastlane/fastlane/blob/master/fastlane/lib/assets/DefaultFastfileTemplate
fastlane_version "1.109.0"

require_relative "globals.rb"

default_platform :ios

platform :ios do
	desc "Builds and archives target schemes"
	lane :deploy do |options|
		arg_apps = get_arg_apps(options)

		if arg_apps.nil?
			next
		end

		UI.important arg_apps
	end
end

`./fastlane/Appfile`
team_id "<redacted>"  # Developer Portal Team ID
itc_team_id "<redacted>"

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem
Version
Update-Status

fastlane
2.61.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

bundler
1.15.4

io-console
0.4.5

CFPropertyList
2.3.5

public_suffix
2.0.5

addressable
2.5.2

babosa
1.0.2

claide
1.0.2

colored
1.2

colored2
3.1.2

highline
1.7.8

commander-fastlane
4.4.5

declarative
0.0.10

declarative-option
0.1.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20170404

dotenv
2.2.1

excon
0.59.0

multipart-post
2.0.0

faraday
0.13.1

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.12.2

fastimage
2.1.0

gh_inspector
1.0.3

jwt
1.5.6

little-plugger
1.1.4

multi_json
1.12.2

logging
2.2.2

memoist
0.16.0

os
0.9.6

signet
0.7.3

googleauth
0.5.3

httpclient
2.8.3

mime-types-data
3.2016.0521

mime-types
3.1

uber
0.1.0

representable
3.0.4

retriable
3.1.1

google-api-client
0.13.6

json
2.1.0

mini_magick
4.5.1

multi_xml
0.6.0

plist
3.3.0

rubyzip
1.2.1

security
0.1.3

slack-notifier
1.5.1

terminal-notifier
1.8.0

unicode-display_width
1.3.0

terminal-table
1.8.0

tty-screen
0.5.0

word_wrap
1.0.0

nanaimo
0.2.3

xcodeproj
1.5.2

rouge
2.0.7

xcpretty
0.2.8

xcpretty-travis-formatter
0.0.4

generated on: 2017-10-11

Where is this bot's source code? It might be tweaked a little bit as this isn't at all related to code signing.

Try using `import 'global.rb' instead of require.  Import reads the file as a fastlane asset and enables the classes like UI.
Otherwise i believe you need to prefix it with core. FastlaneCore::UI

import did the job, thank you a lot!


Compatibility with webpack

The UMD template from here https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js is not consumed properly in webpack 2.
See my S/O question here: https://stackoverflow.com/questions/45929231/how-to-consume-an-umd-module-with-webpack
I suggested an improvement to the UMD template. What do you think?

Thank

did maybe #125 fix this issue as well? (It uses self if it exists and this else)
Your work around simply skips defining the global object if the root object does not exist.
So maybe you could use the UMD template https://github.com/umdjs/umd/blob/master/templates/returnExports.js which only defines the global when used in the browser.

Wow thanks for the answer!
However it was in 2017 and webpack 2 is long gone.
I'll close this issue, anyone experiencing a similar problem is welcome to open a new one.