Can't build Python wrapper from source due to missing VERSION file

When trying to build the Python package (as downloaded from PyPi, as package managers do), I get the following error (both via pip and uv):
Obtaining file:///Users/hobofan/Downloads/regopy-0.4.5
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... error
  error: subprocess-exited-with-error

  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "/Users/hobofan/.asdf/installs/python/3.10.14/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/hobofan/.asdf/installs/python/3.10.14/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/hobofan/.asdf/installs/python/3.10.14/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable
          return hook(config_settings)
        File "/private/var/folders/8v/4hslx9cd01g3h9cxxdr3njpm0000gn/T/pip-build-env-91m6pnx2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 482, in get_requires_for_build_editable
          return self.get_requires_for_build_wheel(config_settings)
        File "/private/var/folders/8v/4hslx9cd01g3h9cxxdr3njpm0000gn/T/pip-build-env-91m6pnx2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/private/var/folders/8v/4hslx9cd01g3h9cxxdr3njpm0000gn/T/pip-build-env-91m6pnx2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/8v/4hslx9cd01g3h9cxxdr3njpm0000gn/T/pip-build-env-91m6pnx2/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 319, in run_setup
          exec(code, locals())
        File "<string>", line 32, in <module>
      FileNotFoundError: [Errno 2] No such file or directory: '../../VERSION'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

The relevant part is:
      FileNotFoundError: [Errno 2] No such file or directory: '../../VERSION'

Which makes sense, as it is looking for the VERSION at the root of the repository (two directories up), which doesn't exist when the Python wrapper directory is individually packages.
I guess that is only rarely encountered, as there are built wheels for most platforms, but for some reason my Docker build wants to build it from source and runs into this 🤷

Thanks for bringing this to my attention! I will make the needed changes.


Can I use this package for production?

If possible , could you guide me to use this in production environment? I tried to use celery periodic task to delete expired sessions. But celery production env setup is not easy way to do. So I planned to use django-background-tasks. Could you say the possiblities?

@silviyaranirepo we use this in production in various projects. The main benefits of django-background-tasks are the small footprint and its simplicity.
We use daemontools and then do a exec setuidgid www-data python manage.py process_tasks in the run-file to keep it up and running.

@philippeowagner are there any drawbacks to this approach in the long term, or have you by any chance discovered a better approach to this yet? I was wondering how this would behave as in "how often we will be spawning a process calling manage.py" and if it has any side-affect to the system?

@keremgocen we are happy with this solution for years now. You start the background tasks process once and let it running beside the regular Django process. No drawbacks or side-affect to the system. He have servers where dozens of background tasks are running side by side.

@philippeowagner I am getting -bash: exec: setuidgid: not found
can you please guide.


BadDeserialize error

I am running this example code with version 0.1.0:
use std::fs;
use hues::prelude::*;

#[tokio::main]
async fn main() -> Result<(), HueAPIError> {
    // Construct a Bridge when IP and App Key are known
    let key = fs::read_to_string("hue_key").expect("Missing key file");
    let bridge = Bridge::new([10, 0, 10, 3], key);
    // Refresh it to fetch the current state of all resources
    bridge.refresh().await?;

    // Toggle the power state of a Room named "office", if it exists
    if let Some(office) = bridge.rooms().iter().find(|r| r.name() == "office") {
        office.toggle().await?;
    }
    Ok(())
}

and I am getting this error:
Err E reqwest::Error { kind: Decode, source: Error("unknown variant `living_room`, expected one of `attic`, `balcony`, `barbecue`, `bathroom`, `bedroom`, `carport`, `closet`, `computer`, `dining`, `downstairs`, `driveway`, `front_door`, `garage`, `garden`, `guest_zone`, `gym`, `hallway`, `home`, `kids_bedroom`, `kitchen`, `laundry_zone`, `living_zone`, `lounge`, `man_cave`, `music`, `nursery`, `office`, `other`, `pool`, `porch`, `reading`, `recreation`, `staircase`, `storage`, `studio`, `terrace`, `toilet`, `top_floor`, `tv`, `upstairs`", line: 1, column: 11345) }
error decoding response body: unknown variant `living_room`, expected one of `attic`, `balcony`, `barbecue`, `bathroom`, `bedroom`, `carport`, `closet`, `computer`, `dining`, `downstairs`, `driveway`, `front_door`, `garage`, `garden`, `guest_zone`, `gym`, `hallway`, `home`, `kids_bedroom`, `kitchen`, `laundry_zone`, `living_zone`, `lounge`, `man_cave`, `music`, `nursery`, `office`, `other`, `pool`, `porch`, `reading`, `recreation`, `staircase`, `storage`, `studio`, `terrace`, `toilet`, `top_floor`, `tv`, `upstairs` at line 1 column 11345
Error: BadDeserialize

can you advice if my setup or version of Hue bridge is incompatible or how to fix? Thanks

Hi, thanks for the report! This lib is very much alpha, and the official documentation is not always accurate. I'll add living_room as a possible room variant, and also improve serialization of unknown values here.
For my reference, can you let me know your bridge version, and the version of the firmware it is running?

Should be fixed in 0.1.2. LMK if it works for you.

yes, its fixed and works Thanks


getex() method has a error when verify parameters

when i read code in getex() method, i found that use set to check mutually exclusive between options may not be right：
https://github.com/valkey-io/valkey-py/blob/c490780a1d7b629317e5c0d976ec13dd64de8e55/valkey/commands/core.py#L1862-L1867
if ex and px has the same value, this condition will be False：
>>> from valkey import Valkey
>>> v = Valkey(host='<IP_ADDRESS>', port=6888, password='xxxx')
>>> v.getex("hello", 10, 10)
Traceback (most recent call last):
  File "<python-input-3>", line 1, in <module>
    v.getex("hello", 10, 10)
    ~~~~~~~^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/commands/core.py", line 1895, in getex
    return self.execute_command("GETEX", name, *pieces)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/client.py", line 570, in execute_command
    response = conn.retry.call_with_retry(
        lambda: self._send_command_parse_response(
    ...<2 lines>...
        lambda error: self._disconnect_raise(conn, error),
    )
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/retry.py", line 62, in call_with_retry
    return do()
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/client.py", line 571, in <lambda>
    lambda: self._send_command_parse_response(
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        conn, command_name, *args, **options
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ),
    ^
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/client.py", line 543, in _send_command_parse_response
    return self.parse_response(conn, command_name, **options)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/client.py", line 590, in parse_response
    response = connection.read_response()
  File "/root/.pyenv/versions/env-3.13/lib/python3.13/site-packages/valkey/connection.py", line 570, in read_response
    raise response
valkey.exceptions.ResponseError: syntax error
>>>

so i think use list instead of set will be more accurate, although it's not simple enough：
        opvset = [1 for op in [ex, px, exat, pxat] if op is not None]
        if sum(opvset) > 1 or (sum(opvset) and persist):
            raise DataError(
                "``ex``, ``px``, ``exat``, ``pxat``, "
                "and ``persist`` are mutually exclusive."
            )

Nice find! Thank you very much!
I think would like the fix to look more like:
        opvset = sum(op is not None for op in [ex, px, exat, pxat])
        if opvset > 1 or (opvset and persist):
            raise DataError(
                "``ex``, ``px``, ``exat``, ``pxat``, "
                "and ``persist`` are mutually exclusive."
            )

Nice find! Thank you very much!
I think I would like the fix to look more like:
        opvset = sum(op is not None for op in [ex, px, exat, pxat])
        if opvset > 1 or (opvset and persist):
            raise DataError(
                "``ex``, ``px``, ``exat``, ``pxat``, "
                "and ``persist`` are mutually exclusive."
            )

that's look simpler than my code，can i      make a pr for this issue and does this fix need a test case or not? Now i have no expirence in writing test case and i need some time to read test code in valkey-py.

first run the tests, if something breaks, you have a lead

first run the tests, if something breaks, you have a lead

thanks, i will try it later

Also it's worth adding your scenario as a new test case for getex to verify it will raise DataError and not ResponseError

You can also take advantage of GitHub CI: enable actions in your own fork and create a pr there before you create it here. So you can easily run all tests on your own (if you find it difficult to run tests locally, especially since some things can only run as GH actions).

You just need to add a few lines to this test case, something along the lines of this.


Incorrect rendering

Attach (recommended) or Link to PDF file here:
https://s3.eu-west-1.amazonaws.com/scai-dev.website.com/tmp/8ab8b56a-fa91-11eb-8d74-0242ac110004.pdf
Hi,
Please see an incorrect canvas rendering for the following document - page 9 specifically. It reproduces on https://mozilla.github.io/pdf.js/web/viewer.html (tried with Chrome). Other pages in this document look pretty much the same but the problem is on page 9 only.
Original screenshot:

PDF JS:

Looks like another instance of us losing the current clipping path when we enable smasks. Similar to https://github.com/mozilla/pdf.js/issues/9017#issuecomment-339104565


Benchmark or example on realtime camera application

Hello! Thank you for your great repo!
Have you applied this code to build a realtime processing pipeline, where a camera stream is fed into the app and the processing output from OpenCV is shown to the screen?
I'm not sure about the performance of ffi and need a suggestion on how to build a realtime app with OpenCV.
Thank you!

Hello! Thank you for your great repo!
Have you applied this code to build a realtime processing pipeline, where a camera stream is fed into the app and the processing output from OpenCV is shown to the screen? I'm not sure about the performance of ffi and need a suggestion on how to build a realtime app with OpenCV.
Thank you!

Hello!
Were you able to test the performance?  What can you say about the performance of Opencv and ffi ?
Thank you.


Guide overhaul by splitting into several documents + more

I am finishing off reviewing Chase's guide for ease of discussion/use.

(you should retarget this to guide)

This PR is ready to be merged.

Some thoughts:
This is a good start, but if we split this further (recursively) it would make linking more straightforward. For eg.,

docs/TYPECLASSES/PlutusType.md
docs/TYPES/PList.md

I also think it would make future PRs easier to review, since we don't have to scroll a long document to locate the diff deep inside it ... or multiple (disparate) thunks spread across the same .md file.
2-3 levels of directory hierarchy would be reasonable I think? And we can generate the website like: https://input-output-hk.github.io/adrestia/ or https://input-output-hk.github.io/cardano-wallet/ - with sidebar for free (from directory hierarchy).  You can preview this on our docs, using:
$ cachix use srid # optional
$ nix run github:srid/emanote -- run --port 8081 -L ./docs/

At the moment the sidebar looks flat:

I have to be honest, I'm not in favor of preferring TermCont in the guide. It's a suboptimal solution because of the need for all the extra syntax (or extra definitions), and GHC 8.10 support isn't really very relevant anymore. It is only important for legacy projects that haven't bothered to switch to GHC 9.2 because of the associated work necessary for decoupling the off-chain and on-chain code bases (which should be done anyway!).

In the future we will have to drop GHC 8.10 support anyway.

Marking this as draft for the time being as I want to merge #310 first. I'm also going to split this further afterwards as @srid suggests.

@L-as I really do think TermCont is more expressive, flexible, and familiar - if solely due to it being a real monad. Maybe QualifiedDo is slightly more terse but I personally think TermCont is easier to grasp and extend.
I was especially delighted by some of the examples @srid showed me-
-- | Terminate with given value on empty list, otherwise continue.
nonEmpty :: Term s r -> PList a s -> TermCont @r s (Term s a, Term s (PList a))
nonEmpty x0 list = TermCont $ \k ->
  case list of
    PSCons x xs -> k (x, xs)
    PSNil -> x0

Example usage within do syntax-
(x, xs) <- nonEmpty r =<< tcon (pmatch l)

I'm sure there are many more really cool things you could do with TermCont, while it being also easier to grasp due to the guarantees of a monad.
I really believe that TermCont should be the way going forward, but I'm going to modify the guide according to what you and others actually want. Perhaps we should ask users what they prefer?
(for users and others to judge) In summary:
QualifiedDo with Plutarch.Monadic

It has more convenient syntax (discussed in the guide) in the simple and common cases.
Whereas you write x <- tcont $ pmatch ... for TermCont, you merely write x <- pmatch for this. (subject to change due to #262).
Whereas you have to unTermCont to obtain the Term out of a TermCont computation, you don't have do any such thing here.
Whereas you have to use pure on regular terms to create and yield a TermCont within monadic bindings - you don't have do any such thing here. Just pconstant ... is enough. No need for pure $ pconstant ..., for example.

It is not a monad at all. It just leverages do syntax. Extending it with other monadic combinators may not be as familiar/ergonomic.

It requires GHC 9. This will be the future for Plutarch anyway (that is, Plutarch 2.0).

Example snippet:
{-# LANGUAGE QualifiedDo #-}

import Plutarch.Api.V1.Contexts
import qualified Plutarch.Monadic as P
import Plutarch.Prelude

f :: Term s (PScriptPurpose :--> PUnit)
f = plam $ \x -> P.do
  PSpending _ <- pmatch x
  ptrace "matched spending script purpose"
  pconstant ()

TermCont

This is a real monad that follows the expected laws. It """composes""" the way you would expect other monads and is extensible in the same way. See nonEmpty example above.
Relevant section in the guide (note: this one is on the guide branch).

Arguably less convenient since you need to write the unTermCont, pure and similar things you might be accustomed to when using other monads.

Does not require GHC 9, whether or not that's relevant.

Example snippet:
import Plutarch.Api.V1.Contexts
import Plutarch.Prelude

pmatchC :: PlutusType a => Term s a -> TermCont s (a s)
pmatchC = tcont . pmatch

ptraceC :: Term s PString -> TermCont s ()
ptraceC s = tcont $ \f -> ptrace s (f ())

test :: Term s (PScriptPurpose :--> PUnit)
test = plam $ \x -> unTermCont $ do
  PSpending _ <- pmatchC x
  ptraceC "matched spending script purpose"
  pure $ pconstant ()

Notice how you need to define pmatchC and ptraceC currently. Subject to change with #262

Feel free to extend this with further points as you please.

Having to define your own functions for pmatch, etc. is simply not acceptable IMO. I agree that TermCont has the potential to be a more useful abstraction, but see #262.
It is possible that we can have something that is almost strictly more ergonomic, but if we are to use it in the guide, then we should fix #262 first. There is also the issue of linearity that might possibly mess with this.

Having to define your own functions for pmatch, etc. is simply not acceptable IMO.

That makes complete sense; I had failed to realize that. But perhaps we can overcome this by simply using tcont inline? Like we have in our examples/tests? I can also use regular ptrace instead of ptraceC and perhaps have a note somewhere about ptraceC definition - indicating how users can build useful TermCont utilities.

You could explain the concept using TermCont, then show the QualifiedDo syntax


Provisioning fixes

This fixes a couple of provisioning issues and improves documentation somewhat. With the provided fixes provisioning a buildmaster worked fine on Ubuntu 20.04, 22.04 and 23.10 even without acccess to t_client keys or authenticode certificates.

@flichtenheld the requested changes have been applied. I believe this is now ready to be merged.


I think the default terminal size is historically 80x24.
A configurable value would be very nice, but I'm not sure how to deal with backend specific configuration. The easiest way could be to try to read a hardcoded filename, but that's not very flexible. Maybe compile-time environment variables?...
Is like to avoid having backend-specific user code, but maybe it can't cleanly be done without.

Making the window resizeable would already be a boost in user control actually.


Change Color and Font of standard Keys

How can I change the Font and Color of standard keys at runtime?

Hi. To be honest, I created this component 3 years ago, I remember less than nothing about it. May be somebody of the visitors of this page could help you, because I don't remember this details and all code is presented and you can dig into it.
I'll put the according tag on it, it might be that somebody can help you. If you find the solution you can provide it here.

I found a solution:
   <ControlTemplate x:Key="SimpleBtn" TargetType="Button">
                    <Button CommandParameter="{Binding Content}" Command="{Binding Path=DataContext.ButtonClickCommand,ElementName=MainGrid}"
                            keyImageProperty:KeyPressed.Image="{DynamicResource ResourceKey=gbutton70x70}" keyImageProperty:KeyNotPressed.Image="{DynamicResource ResourceKey=button70x70}"
                            Template="{DynamicResource ResourceKey=KeyboardButton}" Content="{TemplateBinding Content}"
                            FontSize="{TemplateBinding FontSize}" FontWeight="600" Foreground="{TemplateBinding Foreground}" FontFamily="{TemplateBinding FontFamily}"  />
                </ControlTemplate>


Too many follow-up requests: 21

Source information
baozi manhua 1.4.22
Source language
chinese
Steps to reproduce
1.安装好包子漫画扩展
2.在包子漫画上进入一个漫画的阅读界面
3.之后会自动回退上一个页面并弹出toast"Too many follow-up requests: 21"
Expected behavior
在第3.应该进入漫画阅读界面
Actual behavior
回退上一个界面并弹出toast"Too many follow-up requests: 21"
Mihon/Tachiyomi version
0.17.1
Android version
Android14
Other details
mihon_crash_logs.txt
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.3.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Add a :+1: reaction to issues you find important.

I have the Baozi Manhua 1.4.23 (Chinese) extension installed on Mihon 0.17.1 on Android 14.
Whenever I tried to download chapters, the download arrow would circle for a while before changing to a red exclamation mark.
I've noticed that the "Too many follow-up requests: 21" message pops up in-app and in my notification drawer not only when you try to open the chapters, but also when you try to download them.


Creating a refactor preview editor

Creating a new refactor preview editor.

Closing this PR since it was decided not to go forth with this work


Docs improvements

Description
This is a follow-up for #154 and #147 removing remaining REPL marks from all examples and removing easy_install references.
There are also a few tiny unrelated fixes for example code.

In the last commit I also removed easy_install references started by #147 which make this PR a more general doc improvement.

Merged, thanks~


[catnap] Enhancement: preliminary epoll support

This PR is a proposal for basic epoll support. I'm not sure if we will want to use a single yielder as I did in this PR but it seemed like the easiest to have one per CatnapQueue/socket. I just created this so we would have something to discuss.

This PR is superseded by #1029


env(synthesis_results)no such variable

Description
my design is very huge (above 200k+ cells), so i used synth_no_flat:1 in config.json.and as i dont want lint check to happen i commented first 4 steps in classic.py.
as i set it run,during synthesis (after abc exeuting pass).i got the error pasted below.
how can i fix it.

Expected Behavior
expected behavior is as usual when we run smoke test or any other design ,without error
Environment report
as shown in image.
there are no other warning.

Reproduction material

Relevant log output
-

For future reference; we would appreciate it if you would fill out the issue template accurately. Had this error not been extremely simple, I would have had to ask you to re-file it.

This is a matter of SYNTH_NO_FLAT using an environment variable that was available in OpenLane 1, but not 2, which is a mistake on my part. It should be fixed by #258 which will be part of beta 16.

Also- you don't need to comment anything out. You can just add --from yosys.jsonheader while invoking openlane

thanks for the help and fix .but issue still persits in this way mentioned below.(it moved on forward but error occured during flattening)

yosys-synthesis.log
curently errors.log and warning.log is empty.
can you kindly help!!


How to pull YouTube playlist/channel total duration and file size information

Checklist

[x] I'm asking a question
[x] I've looked through the README and FAQ for similar questions
[x] I've searched the bugtracker for similar questions including closed ones

Question

Hi. I wish to know the total duration and total filesize of a given large YouTube channel or channel playlist. I'm wondering how this can be done using youtube-dl, and what is the easiest method to do this?

Total duration and total filesize are too ambiguous notions. Extract playlist metadata as JSON and do whatever analytics you need.


Update PR

Test

Accident

Yeah the code base has changed quite a bit :)

I'm unable to sign in now even though it's the same url, root user and password. Any idea?

@tyrellshawn be sure to remove any trailing /sql or /rpc paths on the url. This is now done automatically.
You can also press F12 and look in the network tab under Fetch/XHR to see details about the failed request.

Thanks @rvdende  it is working now after I reduced the trailing /rpc path on the url


Edward Newgate

Issue no: #4

Please sync to fetch upstream to resolve the conflict. Then Open the Pull Request

Thank you for contributing to AnimePedia!


No Docker console logs

After spinning up the container, I do not get any output in docker logs.

  # CrowdSec Bouncer - Traefik
  traefik-bouncer:
    image: fbonalair/traefik-crowdsec-bouncer
    container_name: Crowdsec-Traefik-Bouncer
    networks:
      pihole:
        ipv4_address: '<IP_ADDRESS>'
    environment:
      - GIN_MODE=release # default is debug (more logs)
      - CROWDSEC_BOUNCER_API_KEY=$CROWDSEC_BOUNCER_TRAEFIK_API_KEY # sudo docker exec crowdsec cscli bouncers add traefik-bouncer
      - CROWDSEC_AGENT_HOST=crowdsec:8080 # CrowdSec host and port
      - CROWDSEC_BOUNCER_LOG_LEVEL=2 # 1 INFO 2 WARN https://pkg.go.dev/github.com/rs/zerolog#readme-leveled-logging
    security_opt:
      - no-new-privileges:true
    logging:
      driver: "local"
      options:
        max-size: 10m
        max-file: "3"
    restart: always
    mem_limit: 200m
    mem_reservation: 50m
    depends_on:
      - crowdsec

If I set the GIN_MODE to debug, I get logs, but not in release.

This is probably already solved but just for documenation:
If you set the log level to 2 or higher, the Bouncer will only log, when the bouncer blocks an ip or an error occurred.


restapi stop fails if ?t=int not present

Signed-off-by: Srini Brahmaroutu<EMAIL_ADDRESS>

Pretty sure it closes some issue. ping @runcom

@LK4D4 actually this suffer the same problem as #12679 and this one relates to #12306

and btw once address what's pointed out by @duglin I think this is the correct way of handling timeout (with strconv returning err here). Seems ok to me

ParseInt on anything returned from Form.Get is dangerous, not all errors require you to return. The code is addressing missing param t. Test is fixed to use top.

@brahmaroutu needs rebase

@runcom I believe that I addressed all your comments, please review.

@runcom changed as per your suggestion.

LGTM if tests ok

ping @calavera

cool, LGTM :godmode:


Bluetooth: controller: HCI stubs for BIG commands

Adds initial HCI stubs for the BIG commands to be used for
broadcast isochronous channels.
Signed-off-by: Emil Gydesen<EMAIL_ADDRESS>

@Thalley needs rebase.


Empty path (not default 'reveal-demo') passed to install

When I try to install without a directory given:
$ reveal -i
path.js:28
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received true
    at assertPath (path.js:28:11)
    at Object.join (path.js:1236:7)
    at init (/Users/dwelc/.nvm/versions/node/v8.11.4/lib/node_modules/node-reveal/src/handler.js:29:25)
    at module.exports (/Users/dwelc/.nvm/versions/node/v8.11.4/lib/node_modules/node-reveal/src/handler.js:65:3)
    at Object.<anonymous> (/Users/dwelc/.nvm/versions/node/v8.11.4/lib/node_modules/node-reveal/index.js:30:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

Hi, sorry for this, i made a mistake during previous publish, i republished, please run npm i node-reveal -g and try again.


Please show an example with an event hub trigger function

In the very 1st paragraph it lists function apps are supported, but all the samples show how to instantiate the connection.  Can you show an example of how to use this in the bindings on a function app, or is this not supported as yet?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1742768f-59ab-a00c-7dbd-be3d4d6d9497
Version Independent ID: bc599d6d-1522-8df2-43ea-0681320f77c9
Content: Authentication a managed identity with Azure Active Directory
Content Source: articles/event-hubs/authenticate-managed-identity.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

@gjmoyer
Thanks for the feedback and bringing this to our notice. At this time we are reviewing the feedback and will provide an update as appropriate.

We have assigned the issue to the content author . They will evaluate & update the document as appropriate

@gjmoyer This article  "Azure Functions supports trigger and output bindings for Event Hubs" explains how to work with Azure Event Hubs trigger for Azure Functions.
We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.

At the time I clicked, the link above does not show anything related to my inquiry of how to use role based security in trigger functions.  The answer is to add "Authentication=Managed Identity" to the connection string which is currently only available in the premium tier, but I am told is planned for the standard tier.


Difficulty of estimating velocity at future time t

Currently there are behavior and motion planning modules.  Each modules publishes it's own planed velocity (eg. slow down or stop velocity). But this velocity planing is done sequentially from behavior to motion so behavior planning modules doesn't know how motion planing modules plan velocity.

@taikitanaka3 Now we calculate the vehicle velocity with motion_velocity_smoother as a library in behavior_velocity_planner. Did this solve this issue?

no, but there is no approach with current architecture so i will close this issue.


feat(caret/words): add TILDE

Signed-off-by: keita1523<EMAIL_ADDRESS>TILDE is described in CARET_analyze.
https://github.com/keita1523/CARET_analyze/blob/81af77e543cd2f2deee0f40c45a6425e9db9036f/src/caret_analyze/infra/lttng/records_provider_lttng.py#L1301
Spell check errors occurred in following PR.
https://github.com/tier4/CARET_analyze/pull/204

@kenji-miyake
I would like you to check this PR.


nlog wcf contacting

Hi everybody,
I am trying to develop a nlog plateform and it s impossible for me to contact a wcf service...
I already have 2 targets working perfectly (console and file) but I tried to configure nlog to contact the wcf but there is no frame leaving my computer. (I checked under fiddler).
Can somebody help me with my problem?
Thank you
Type

Question

NLog version: 4.3.1
Platform: Net 4.5
Current NLog config
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
      autoReload="true"
      throwExceptions="true"
      internalLogLevel="Debug" internalLogFile="c:\temp\nlog-internal.log" >
  <targets>
    <target name="logfile" xsi:type="File" fileName="file.txt"/>
    <target name="console" xsi:type="Console" />
    <target xsi:type="LogReceiverService"
            name="NlogService"
            endpointConfigurationName="LogReceiverClient"
  endpointAddress="http://localhost:8751/WebServices/Madam.Cloud.Services.LogReceiverService"
      includeEventProperties="true">
    </target>
  </targets>
  <rules>
    <logger name="*" minlevel="Trace" writeTo="console" />
    <logger name="*" minlevel="Trace" writeTo="logfile" />
    <logger name="*" minlevel="Trace" writeTo="NlogService" />
  </rules>
</nlog>

Current loging Program
class Program
{
    private static Logger logger;

    static void Main(string[] args)
    {
        AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

        logger = LogManager.GetCurrentClassLogger();

        try
        {
            LogManager.ThrowExceptions = true;
            logger.Debug("test");
            logger.Error(new Exception(), "première erreur : test2");
        }

        Console.ReadKey();
    }

    private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    {
    }
}

Current App Config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
  <system.serviceModel>
    <client>
      <endpoint address="http://localhost:8751/WebServices/Madam.Cloud.Services.LogReceiverService"
                binding="basicHttpBinding"
                contract="NLog.LogReceiverService.ILogReceiverClient"
                name="LogReceiverClient">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
    </client>
    </system.serviceModel>
</configuration>

Thank you for your help!

I think you're missing needed WCF attributes
See examples in unit tests: https://github.com/NLog/NLog/blob/master/tests/NLog.UnitTests/LogReceiverService/LogReceiverServiceTests.cs

indeed, I added
 useOneWayContract="false"
  useBinaryEncoding="false"

but it looks like it's not enough, there are still no frames on my network...
do you have an idea?

Glad it has been solved!


[WIP] Add before insert event

Add new before insert event to be able to add loading indicators in apps that uses the gem

We want to move displaying the loading indicator into this gem, too, but for now we're going to point to this branch (so please don't merge it yet).

I really like the idea about indicator!

Y U DO DIS PETER

El OL.


⚠ RPC server - Conflux has degraded performance

In d4a58dd, RPC server - Conflux ($CONFLUX_RPC_URL) experienced degraded performance:

HTTP code: 200
Response time: 7444 ms

Resolved: RPC server - Conflux performance has improved in ddb9912 after 5 minutes.


Added a nullary constructor to AdvancedMachineInput

On line 587 of https://github.com/aidancbrady/Mekanism/blob/development/src/main/java/mekanism/common/recipe/RecipeHandler.java
Class.newInstance() can only be called by classes that contain an accessible constructor that takes no arguments, throwing an exception otherwise.

Fixed :)

Thank you:3
I've re-written the mekanism support in AOBD to use the new IMC you implemented.
It's working like a charm now!


Severe lag in Web Hook

I have a Web Hook set up to trigger on Work Item Update. I noticed it is severely lagging. For example, update to work item made on Friday does not show up in the Web Hook History until Tuesday. When it does show up, it shows Success, not Fail, but the 5-day delay is too long. What troubleshooting steps should I take?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 96287641-3e4f-b038-148f-08e8471bd573
Version Independent ID: b0034cd1-4f29-2e2d-c2bb-49004552dae8
Content: Troubleshoot your service hooks integrations - Azure DevOps
Content Source: docs/service-hooks/troubleshoot.md
Product: devops
Technology: devops-collab
GitHub Login: @chasewilson
Microsoft Alias: phwilson

@taiyee  Thank you for the question, we're sorry you're experiencing issues.
Unfortunately, support options are limited since this is a documentation forum, please see here for additional options.
@chasewilson

Closing the issue now, please comment below if there are any questions.


Traffic Controller seems to not be resilient to doppler failures

Using loggregator release v91 in a cf-deployment.
Running 2 dopplers, then disabling access to one of them with the following script:
for port in $(ss -lnp | grep LISTEN | grep -v "bosh-agent\|rpcbind\|rpc.statd\|sshd" | egrep '\*:[0-9]+' | awk '{ print $5 }' | cut -d ":" -f2); do
  echo iptables -D INPUT -p tcp --destination-port $port -j DROP
done | bash

After doing that we expect the system to recover but we see that the trafficcontrollers aren't ever giving up on the bad doppler:
2017/07/24 21:01:08 error from doppler (<IP_ADDRESS>:8082) while fetching container metrics: rpc error: code = DeadlineExceeded desc = context deadline exceeded
2017/07/24 21:01:18 error from doppler (<IP_ADDRESS>:8082) while fetching container metrics: rpc error: code = DeadlineExceeded desc = context deadline exceeded
2017/07/24 21:01:43 error from doppler (<IP_ADDRESS>:8082) while fetching container metrics: rpc error: code = DeadlineExceeded desc = context deadline exceeded
2017/07/24 21:03:02 error from doppler (<IP_ADDRESS>:8082) while fetching container metrics: rpc error: code = DeadlineExceeded desc = context deadline exceeded

We're also running cf smoketests in a loop, and we see that it isn't able to get stats or logs for apps:
Could not fetch instance count: Server error, status code: 503, error code: 200002, message: Stats unavailable: Stats server temporarily unavailable.
Could not fetch instance count: Server error, status code: 503, error code: 200002, message: Stats unavailable: Stats server temporarily unavailable.
Could not fetch instance count: Server error, status code: 503, error code: 200002, message: Stats unavailable: Stats server temporarily unavailable.
1 of 1 instances running

App started

OK

App SMOKES-1-APP-3481ddef-ba39-4877-42a4-cc9dfd906164 was started using this command `bundle exec rackup config.ru -p $PORT`

Showing health and status for app SMOKES-1-APP-3481ddef-ba39-4877-42a4-cc9dfd906164 in org CF-SMOKE-ORG / space CF-SMOKE-SPACE as admin...
FAILED
Server error, status code: 503, error code: 200002, message: Stats unavailable: Stats server temporarily unavailable.

[2017-07-24 21:02:57.36 (UTC)]> cf app SMOKES-1-APP-3481ddef-ba39-4877-42a4-cc9dfd906164 --guid
e9a26c35-f6cb-41d3-955d-d49113695c42

[2017-07-24 21:02:57.59 (UTC)]> cf logs SMOKES-1-APP-3481ddef-ba39-4877-42a4-cc9dfd906164 --recent
Connected, dumping recent logs for app SMOKES-1-APP-3481ddef-ba39-4877-42a4-cc9dfd906164 in org CF-SMOKE-ORG / space CF-SMOKE-SPACE as admin...

FAILED
Error dialing trafficcontroller server: Get https://doppler.inconsulable.cf-app.com:443/apps/e9a26c35-f6cb-41d3-955d-d49113695c42/recentlogs: net/http: request canceled (Client.Timeout exceeded while awaiting headers).
Please ask your Cloud Foundry Operator to check the platform configuration (trafficcontroller endpoint is wss://doppler.inconsulable.cf-app.com:443).

Hey @luan,
We have a fix going through the pipeline right now for this issue. The issue causing the Client.Timeout error is that our timeout in trafficcontroler was at 15 seconds while the CLI using noaa timed out in 10 seconds.
Our fix will remove the Client.Timeout error and could expose another issue.
If your deployment with 2 dopplers is deploying the dopplers to 2 different AZs, and you are setting up the iptables rules on the doppler in the same AZ as the diego cell that is hosting your application, then you will not see any logs when you do cf logs or cf logs --recent.
The reason for this is because the consul agent on that dopplers job is still reporting that doppler is healthy, and since metron tries to write to a doppler in the same AZ and uses consul for DNS it will attempt to write to the doppler and fail to do so due to the iptables rule.
We are going to discuss how we want handle and have a future story to address it.

@bradylove that makes sense. I don't particularly care about logs going missing in these circumstances, I'd say that's expected. My problem was more with the whole thing not working at all. It seems like you have something that can help with it now.
What I'm still concerned with is that we don't give up on bad servers, so every user request will invariably take 5s now when you're in this situation? I'd say that's less then ideal but then again, if you have VMs down you're already in a less then ideal world anyway.
But do you think there may be a way to remedy that?

@luan I agree that this is less then ideal, and is even a condition that could occur if you are scaling down dopplers and TCs have not yet been updated to remove those dopplers.
We do have some ideas on how we can resolve this, however they are not at the top of the list in priority at the moment.

This has been accepted and will be in the next Loggregator release.


Add Prawn 2.3 to the build matrix

Suggested-by: Dan Allen<EMAIL_ADDRESS>Signed-off-by: Petr Vorel<EMAIL_ADDRESS>

The build failure is not related to this change. However, it made me realize that we're already testing against the master branch of Prawn (which is 2.3.0 with some additional changes). I had fixed these changes on master, but now I see those fixes need to go into the v1.5.x branch too.

Yes, I wondered, if you really wanted to test both prawn master and 2.3 (yes, the difference on both are currently small). Feel free to close this.
I' more concerned about adding 2.3 support in asciidoctor-pdf.gemspec (and releasing this change).
And thanks for backporting prawn master fixes to v1.5.x.

I don't really have anything against testing 2.3 exactly. I just wanted you to know that technically we have already verified it (as it has been well tested throughout the Prawn 2.3 release cycle).
I noticed while applying the patch that the version of pdf-core we've been testing is not correct, so I'm working on fixing that now.

Right, I rebased the branch then.

Thanks!


Bridge String class overloads inconsistent with C# String class

The following sample generates a C# compiler error:
https://dotnetfiddle.net/NuFS5Y
However in Bridge there is an overload of String that takes a single character with no additional arguments, although it produces unexpected results:
http://deck.net/6c2a18f0d1279e150ba61dc9b1210673
This just seems to present problems when attempting to render single characters. The first line in the sample above outputs '60', which is the character decimal value of the specified unicode code point. The second line is similar, except I use the constructor overload that allows the count parameter. In this case it renders as its plain text glyph representation.
Not a critical issue but I thought it was worth raising due to it being inconsistent.

Hi @Porl91 - Thanks for pointing out this error in the API. We will review and fix.
I believe the whole String class needs a good review. Related to #72.

Removed not standard C# string constructors

public String(object thing);
public String(char c);


PathGen-1.6M compared with CONCH and UNI

Hi, thank you for your contributions to ACMIL and PathGEN-1.6 M!
Are there any results of PathGEN-1.6 M compared with CONCH and UNI?
I didn't find it in the PathGEN-1.6 M paper.
Thanks!

Although we applied for usage permissions for the CONCH and UNI checkpoints on Hugging Face, we have not yet been granted access to use them. As a result, we are currently unable to make comparisons with CONCH and UNI.

If we are granted access to use CONCH and UNI checkpoints, we would be happy to update our results accordingly.

Thank you for getting back to me. When will you release the PathGen-1.6M model and dataset? Any timeline please?

We plan to publicly release the PathGen-1.6M model and dataset in the middle of next month. Currently, the data is undergoing an internal approval process, so the exact release date will be finalized once this approval is completed.

thanks for your updates


[5.4] Migrations run to target

Laravel Version: 5.4.2
PHP Version:
Database Driver & Version:

Description:
Hello,
i would like to have to option to run migrations to a single point. the only option i have now is to run all migrations with:
php artisan migrate --step=1
this runs all migrations, just with another batch number.
If i could run to a single point, i could test the migration until that one  correct, make corrections, and run the migrations further.
i do not want to skip a migration.
why not have an option like phinx ?
phinx migrate -e development -t<PHONE_NUMBER>1132
or .net
(update-database -t {version})
add an option in
Illuminate\Database\Migrations\Migrator.php
method runPending();
$target = Arr::get($options, 'target', false);
if($target) -> remove all the migrations from $migrations after this target

Please ask on the forums, this repo is for bug reporting only. Appreciate your understanding :)


Fix partition spec and transforms in python

This PR fixed a few bugs/issues in partition spec and transforms classes

In partition spec source_column.types should be source_column.type
type_id is missed or is mistakenly used as type_id() in multiple classes
In dates class, __str__ will cause RecursionError as it calls itself.
Fixed returning TruncateLong instead of TruncateInteger for TypeID.LONG.
Fixed truncate static method to use the right input parameter type_var.
added unit tests in python, similar to Java partition spec base test.

Thanks, @jun-he! Looks good to me.


sd-jwt-python 2024 Annual Review

With this being a small and very focussed project, the annual review is brief, but I'm happy to report that the project is alive and well, and a great support to the development of the SD-JWT IETF specification.

Thanks for the submission @danielfett. We plan to discuss this (and the entire annual review process) at tomorrow's TAC meeting (June 12 @ 7:00 AM US/Pacific). It would be great if you could attend to answer any questions that folks might have.


Source map parsing error when used with create-react-app

In last version of react-scripts, warnings are now being shown for problems with parsing source maps in dependencies. As a result, with every run of react-scripts, there is a warning:
WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from<EMAIL_ADDRESS>file: Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>
There is a MR in react-scripts about disabling these warnings:
https://github.com/facebook/create-react-app/pull/11752
Still I thought it may be worth reporting.

Thanks for submitting the issue.
We will look into this after the holidays in January.

Hey, so we checked this out and the warning is totally correct. Since we didn't include our sources in the package the source map referenced a file that does not exist in the package.
After some research we decided we include the source files in the package as you can see in #24 .
I have tested this locally already with CRA and didn't get any warnings for yup-ast :+1:


Support x86 for Avisynth

Can you support it for Avisynth x86??

To be honest, I have no intention to officially support 32-bit, but here's a build:
avisynth-descale-r8-win32.zip
I have not tested it, so no idea if it works.
For reference here is the cross file I used it to compile with:
[binaries]
c = 'i686-w64-mingw32-gcc'
cpp = 'i686-w64-mingw32-g++'
ar = 'i686-w64-mingw32-ar'
strip = 'i686-w64-mingw32-strip'
pkgconfig = 'i686-w64-mingw32-pkg-config'

[host_machine]
system = 'windows'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'

[properties]
c_args = ['-march=i686', '-mtune=generic', '-O2']
c_link_args = ['-s']

Out of interest, what is the reason you are still on a 32-bit operating system?

Cause it's Avisynth. Many people still use 32bit ver in 64bit operating system cause many 32bit plugins don't have 64bit ver (Vapoursynth use 64bit ver plugins cause it's newer than Avisynth). I think if you port your plugin to Avisynth you need support both x86 and x64 ver. Sorry for inconvenient in Avisynth and thanks for x86 binary ver😂😂😂


Update AppHost nuget package

Don't merge - doesn't build yet

OK well there were a load of probs on the build system.
This is now fixed I think so this may work. I have fixed the problems by hacking the nuget package
so it;s less invasive and I don't believe that it needs too much testing...

So I'll let you decide what you want to do with this branch

I think this branch is now redundant


Error: forwarding ports: error upgrading connection: error dialing backend: - Azure Kubernetes Service

Hi Team,
We have upgraded our Kubernates Service cluster on Azure to latest version 1.12.4. After that we suddenly  recognize that pods and nodes cannot communicate between anymore by private ip :
kubectl get pods -o wide -n kube-system -l component=kube-proxy
NAME               READY     STATUS    RESTARTS   AGE       IP           NODE
kube-proxy-bfhbw   1/1       Running   2          16h       <IP_ADDRESS>     aks-agentpool-16086733-1
kube-proxy-d7fj9   1/1       Running   2          16h       <IP_ADDRESS>    aks-agentpool-16086733-0
kube-proxy-j24th   1/1       Running   2          16h       <IP_ADDRESS>    aks-agentpool-16086733-3
kube-proxy-x7ffx   1/1       Running   2          16h       <IP_ADDRESS>   aks-agentpool-16086733-4

As you see the node aks-agentpool-16086733-0 has private IP <IP_ADDRESS> . When we try to check logs on pods which are on this node we got such error:
Get https://aks-agentpool-16086733-0:10250/containerLogs/emw-sit/nginx-sit-deploy-864b7d7588-bw966/nginx-sit?tailLines=5000&timestamps=true: dial tcp <IP_ADDRESS>:10250: i/o timeout
We got the Tiller ( Helm) on this node as well, and if try to connect to tiller we got such error from Client PC:
shmits-imac:~ andris.shmits01$ helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Error: forwarding ports: error upgrading connection: error dialing backend: dial tcp <IP_ADDRESS>:10250: i/o timeout

Does anybody have any idea why the pods and nodes lost connectivity by private IP ?

I am getting similar error too, did you get any resolution to this issue? Thank you.

+1

Same issue here, any solutions?

Same issue on Oracle Cloud with K8s v1.12.6!

Same issue, running on AWS EKS v1.11, deployed using terraform.

I have just encountered this issue myself. I take it nobody has any clue how to resolve?
Using AKS.

sounds like a cloud-provider issue, try contact for support?

I think it had something to do with outgoing denied access by NSG, in my case in Azure. To test it try to allow all outbound connections.

same on aws eks . kubernetes version 1.12, deployed with terraform

@jwenz723 I am having the same issue, did you mange to find a solution. I have provisioned the resources using terraform

@jwenz723 I am having the same issue, did you mange to find a solution. I have provisioned the resources using terraform

I am having a hard time remembering how I got past this issue, but I believe the issue ended up being with my AWS security groups creation. I had originally followed the guide here to get my eks cluster built using terraform. After I completed the steps in that guide I started refactoring some of the names to not include the word demo and when I did this I accidentally clobbered the security groups to only use 1 rather than 2 in this code (notice the value is supposed to be different for security_group_id and source_security_group_id):
resource "aws_security_group_rule" "eks-cluster-ingress-node-https" {
  description              = "Allow pods to communicate with the cluster API Server"
  from_port                = 443
  protocol                 = "tcp"
  security_group_id        = "${aws_security_group.eks-cluster.id}"
  source_security_group_id = "${aws_security_group.worker-nodes.id}"
  to_port                  = 443
  type                     = "ingress"
}

Maybe this will help you.

bump

We are experiencing similar symptoms with all clusters created within the past week or so. I thought that it might have something to do with this: https://github.com/Azure/AKS/blob/master/CHANGELOG.md#release-2019-06-18
Except that our clusters use the Azure networking plugin, not Kubenet.

It looks like a networking issue, except that there is no clarify on what exactly the port forwarding means. Our Kubernetes setup is protected by a firewall and we had to allow access to gcr.io and storage.gooleapi's just to install helm.
kubectl and helm are installed on my WSL2 Ubuntu 18. Local firewall is disabled.
tiller is successfuly deployed on the cluster.
The port forwarding is it from a K8 node to pod? or is it from machine running the console to pod?

I am using AKS 1.14.5, helm version v2.14.32
Using Azure CNI networking.
Most likely this is failing for me because my laptop is currently not joined to corp network and hence has no connectivity to pods.
I can deploy stuff using kubectl though.

Had same issue, stopped firewall & its working.

I am getting similar error too, did you get any resolution to this issue? Thank you.

Was able to resolve this by opening port 10250 on the node in which it's trying to reach.

this issue randomly occur on microk8s dahboard-proxy , restarting the server may solve it

I met the same problem after a PC boot with rke2 v1.22.5+rke2r1 on Ubuntu 21.10 x86_64.
By the doc, https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/, port 10250 is used by kubelet. It suggests me to restart my rke2 k8s. After running sudo systemctl start rke2-server, the port-forward problem is fixed.

I had this problem when my local kubectl version was too old, comparing to the Kubernetes version on the server/cluster
Just do kubectl version and compare the versions


Unable to embed the same file to two targets

Hello,
I'm trying to use your awesome stuff, however I also need to attach the same file for my unit tests, and while doing so I'm getting an error:
b_embed(fermd sql/v1.sql)
b_embed(tests_fermd sql/v1.sql)

Error:
CMake Error at _deps/battery-embed-src/CMakeLists.txt:324 (message):
  embed: Identifier already in use: 'sql_v1_sql'
Call Stack (most recent call first):
  fermd/CMakeLists.txt:19 (b_embed)

I think this is a legitimate usecase. How should we be doing this?

Thank you, when I get a bit of time to work on this, I will recheck this.


Removed inactive repo from PYTHON.md, added imgclsmob

@lk-geimfari
In reference to #345 I have started by removing inactive repos in PYTHON.md.
I have removed nupic, which was last updated on on Oct 24, 2019. However, there are 2 more repos which are close to the 1.5 year mark: maya(May 2020) and pyrebox(July 2020). Please let me know if you want to remove these two as well.
Also added osmr/imgclsmob in PYTHON.md. It has been useful to me to quickly get some pretrained models in the past.

@lk-geimfari Thanks!


server.conf path is not right after upgrading system

Hi,
I have upgrade my OS from Ubuntu 16.04 to 18.04. But the server.conf path not changed and the new script will always ask me to install new openvpn.
new script config path: /etc/openvpn/server/server.conf
my script config path: /etc/openvpn/server.conf

The older version should always be used until you decide to reinstall. If you no longer have that version, it can be downloaded again from GitHub, check the commit history of this repository.


high battery draining issue

reported by @kaiyou:tedomum.net
https://github.com/matrix-org/riot-android-rageshakes/issues/841
Vert high battery usage (around 80% un Android stats)

it seems that the sync requests ignored the delay between them.
According to the code, it should only happen if the sync request contains new e2e devices.

the user does not reproduce this issue anymore this issue with version > 0.7.


user defined struct with private struct support

Is your feature request related to a problem? Please describe.
I have many of fiber.Handler as below and I do not want to export request/response types. It would be very good to generate swagger docs for this kind of methods.
func GetExchangeCodeForTokenHandler(idmSvc idm.Idm) fiber.Handler {
	type request struct {
		Code        string `json:"code"`
		RedirectURL string `json:"redirectURL"`
	}

	type response struct {
		AccessToken  string `json:"accessToken"`
		RefreshToken string `json:"refreshToken"`
	}

	return func(c *fiber.Ctx) error {
		var req request
		if err := c.BodyParser(&req); err != nil {
			return err
		}

		accessToken, refreshToken, err := idmSvc.ExchangeCodeForToken(req.Code, req.RedirectURL)
		if err != nil {
			return err
		}

		return c.JSON(&response{AccessToken: accessToken, RefreshToken: refreshToken})
	}
}

Describe the solution you'd like
If can we somehow reference the request/response fields residing in the same file/method as the private field, it can parse that fields too.

Unfortunately, this is not possible because swag doesn't parse function body.

Unfortunately, this is not possible because swag doesn't parse function body.

I would like to add that functionality

This is an open-source project, and all contributions are welcome until they try to break things.
Just a question before you jump into writing code, How do intend to handle model conflicts?
This is a code example where request and response models carry the same name inside the function body.
func Handler1 () fiber.Handler {
	type request struct {
		Code        string `json:"code"`
		RedirectURL string `json:"redirectURL"`
	}

	type response struct {
		AccessToken  string `json:"accessToken"`
		RefreshToken string `json:"refreshToken"`
	}
       // code goes here.
}

func Handler2 () fiber.Handler {
	type request struct {
		Code        string `json:"code"`
		OtherString string `json:"otherString"`
	}

	type response struct {
		SomeData  string `json:"someData"`
	}
       // code goes here.
}

If swag stores all parsed data globally, then may be uniquify by replacing the model name on conflicts with the  +  + . Or it can be done for all private models as default.
Would not that be a solution?

All private function definitions should have a naming convention for consistency. Naming models using the packageName + functionName + modelName pattern sounds like a plan.
I am looking forward to seeing your code implementation.

I created a PR for this. I would like to get a review from you in your free time @ubogdan 🙏

Resolved in: https://github.com/swaggo/swag/pull/1283


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.16.11",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9e956a2596ae276124ef0d96829c013dd0faf861"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "9e956a2596ae276124ef0d96829c013dd0faf861",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "nvme: fix a possible use-after-free in controller reset during load\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.16.11 by commit 9e956a2596ae276124ef0d96829c013dd0faf861. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000540


[QUERY] How to migrate WindowsAzure.ServiceBus to Azure.Messaging.ServiceBus in given condition?

Library name and version
Azure.Messaging.ServiceBus (7.15.0); WindowsAzure.ServiceBus (4.1.1)
Query/Question
Hi, this is maomaomqiu!
I am now working on deprecating codes of WindowsAzure.ServiceBus to Azure.Messaging.ServiceBus of existing codebase.
for WindowsAzure.ServiceBus (4.1.1), we have below operation before
that parts' logic is to handle received msg
class WrappedMessage
{
  private BrokeredMessage msg;

  ...
  // if we have it, return it
  if (msg != null)
  {
      // TimeStamp should be scheduled time i.e. when this
      // message should become visible in service bus queue
       msg.ScheduledEnqueueTimeUtc = (t0.HasValue) ? t0.Value : CreationTime;

      return  msg;
  }

  // otherwsie create it
   msg = new BrokeredMessage(SerializeToJsonString())
  {
      ContentType = typeof(string).FullName,
      ScheduledEnqueueTimeUtc = (t0.HasValue) ? t0.Value : CreationTime,
      CorrelationId = CorrelationIdValue
  };

  // Add Type information to Properties
  Type type = this.GetType();
   msg.Properties[MessageTypeName] = type.FullName + TypeSeparator + type.Assembly.FullName.Split(TypeSeparator)[0];

  if (!string.IsNullOrEmpty(SessionId))
  {
       msg.SessionId = SessionId;
       msg.MessageId = Id;
  }

  return msg;
  ...
  /// <summary>
  /// Serialized JSON string of WrappedMessage
  /// </summary>
  public string SerializeToJsonString()
  {
      return JsonConvert.SerializeObject(this, this.GetType(), DefaultJsonSerializerSettings);
  }

  private static JsonSerializerSettings DefaultJsonSerializerSettings { get; } = new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.None };

I notice, in  Azure.Messaging.ServiceBus, the ServiceBusReceivedMessage should be proper migration candidate for BrokeredMessage,
but for  ServiceBusReceivedMessage, it has ScheduledEnqueueTime for ScheduledEnqueueTimeUtc (WindowsAzure.ServiceBus (4.1.1)), but can not set directly, so I think up this way to migrate
var propertyInfo = typeof(ServiceBusReceivedMessage).GetProperty("ScheduledEnqueueTime");
propertyInfo.SetValue(msg, (t0.HasValue) ? t0 : CreationTime);

Do you have any suggestions on migrating this part (all in WrappedMessage) code? Greatly thanks in advance : )
Environment
No response

Hi @maomaomqiu.   It would be helpful to understand what you're trying to accomplish.   I believe the root question is "how do I schedule a message for delivery in the future", which is done using the ServiceBusSender's ScheduleMessageAsync method.  An example can be found here.
The ScheduledEnqueueTimeUtc  field on the message is broker-owned and should not be set by the client.  The same concept applies to ServiceBusReceivedMessage, which is intended to represent data sent by the broker.  The client will only allow you to send messages of type ServiceBusMessage.


Tests

For the JOSS review- The journal requires the following:
"Automated tests: Are there automated tests or manual steps described so that the functionality of the software can be verified?"
I didn't see discussion in the docs of how to run the tests. Consider adding a Github Actions workflow to run the tests automatically?

Good catch. I just now pushed an automatic testing workflow (plus manual testing instructions) to the main branch


Add more flexible fork choice scoring

What was wrong?
Fixes #782.
How was it fixed?
Introduces an opaque "score" type so that different forks of the protocol can specify their own format for scoring a block tree when computing the fork choice.
Cute Animal Picture

CI failures seem unrelated to this PR

yep, good point about comparing scores across forks -- this seems like a case where we can just extend the scoring metrics for each class to account for any special rules required at the fork!
thanks for the review!!


Fix vote count

Bug report<EMAIL_ADDRESS>Mobile app fix: https://github.com/ecency/ecency-mobile/pull/2768

State is updating properly after vote is done.
https://github.com/ecency/ecency-vision/assets/106739598/a4b75702-37c7-4dc0-a62c-0c91f81bdfa5


[updater] v2 - updater fails to install an update on macos

MacOS
Download works fine, but fails on install
When updater tries to install update, it iterates through entries in archive and skip every where it can't get path. But, since archive is compressed, updater skips all entries
It doesn't return any error or something and corrupts .app

@pashokitsme It seems that you're working on fixing this issue. Are you going to create a PR to proceed it?

@Binlogo yep, i fixed it for me. And i already created PR #592 but seems everyone (including me) forgot about it

@Binlogo yep, i fixed it for me. And i already created PR #592 but seems everyone (including me) forgot about it

Great work, I tested your fix, and it worked for me. Let's merge pull request #592 to fix this issue. Just wanted to notify @amrbashir @lucasfernog 😉


run hashcat as different user

Note that resourced will, if you used a package, run as cracklord-user
Depending on the drivers, hashcat sometimes needs to run as a specific user
how do i tell cracklord to run oclhashcat as root instead of cracklord-user?

or better put how do i make cracklord-resourced run as root?

ok so i found a temporary fix
first stop the cracklord-resourced service
"service cracklord-resourced stop"
then start it from root account
"cracklord-resourced"
and leave the terminal window open (DONT CLOSE IT THAT WILL SHUT THE RESOURCED SERVER DOWN)

So if you edit /etc/init/cracklord-resourced.conf (link here for the version on github https://github.com/jmmcatee/cracklord/blob/master/build/resourced/cracklord-resourced.conf) you should see a line that says setuid.  If you change that to whatever user you want, it will run as that user.  Just be aware of the risk of running things as root.

Hashcat should work without any special permissions. Maybe you meant nmap? nmap -sS works only on root!

thx works and no i mean oclhashcat due to drivers i need to run as root or sudo or hashcat will crash


ModuleWheel related error with the Rover Contracts

I get a ModuleWheel related error with the Rover Contracts on KSP1.2.2. Changing ModuleWheel to ModuleWheelMotor in iteratorRover.cfg fixes it, however I am not sure if thats the intended solution.

fixed in 0.1.7


How to add a layout.js and edit markdown styling?

Hi,
To customize markdown styling, I followed this doc and added a layout.js. Yet, it seems like the layout.js at src/components/layout.js is not loaded. I also tried src/@reflexjs/gatsby-theme-core without any luck. Any hints?
Thanks,
Ben

For Reflex, you create<EMAIL_ADDRESS>See https://github.com/reflexjs/reflex/blob/master/packages/gatsby-theme-core/src/mdx-components.js

Thanks! Adding<EMAIL_ADDRESS>makes any content from pages disappear and only content of posts is visible. What am I doing wrong?

Ah I see. So the base starter is already shadowing this file and adding some additional components to it. This is probably why the error when you're shadowing it again.
Can you instead shadow<EMAIL_ADDRESS>See https://github.com/reflexjs/reflex/blob/master/packages/gatsby-theme-base/src/%40reflexjs/gatsby-theme-core/mdx-components.js
or keep<EMAIL_ADDRESS>and add the code from<EMAIL_ADDRESS>to it.
//<EMAIL_ADDRESS>import { MDXComponents as CoreMDXComponents } from "@reflexjs/gatsby-theme-core/src/mdx-components"
import { Block } from "@reflexjs/gatsby-theme-block"
import { Image } from "@reflexjs/gatsby-plugin-image"
import { NavMenu } from "@reflexjs/gatsby-theme-nav"

export const MDXComponents = {
  ...CoreMDXComponents,
  Block,
  Image,
  NavMenu,
  img: Image,

 // Add or overwrite components here
}

Thanks! I shadowed<EMAIL_ADDRESS>as suggested and it works like a charm!


3D rotating/spinning RigidBody bumpy collisions with Trimesh Static Body

Godot version
3.3.2 stable official
System information
Windows 10, GLES 3 NVIDIA GeForce RTX 2060
Issue description
In 3D, when a RigidBody like a sphere or a cyllinder is rotating fast, it bumps and jumps at the triangle edges of a ConcavePolygonShape (generated from a 3D mesh), with Create Trimesh Static Body option. Even on a flat plane this behaviour can be observed.
With Bullet, even with CollisionShape margin set to 0.001, origin at 0,0,0 and Smooth Trimesh Collision activated, it happens.
With Gogot Physics, it also happens, but it's almost imperceptible (look at the ball shadow to see it in the video below).
I know there is #46596 already open, but the author of that issue describes sliding RigidBody.
Also, in #21341, it looks like when Smooth Trimesh Collision was implemented, it targeted sliding bodies.
May be related to #36729?
Steps to reproduce

Import a large plane (example 1 km x 1 km) mesh, from an external 3D modelling software, with subdivisions.
Create Trimesh Static Body from this plane.
Make a RigidBody like a sphere or cyllinder, and make it rotate very fast over the plane.

Minimal reproduction project
The first video show behaviour both on Bullet and Godot Physics (Godot 3.3.2).
The second video is an update (26/01/2022) with Godot 4.0 Alpha 1. In my opinion, this issue got worse in Godot 4 (considering the Godot Physics results in 3.3).
TrimeshCollision.zip
https://user-images.githubusercontent.com/22160489/125684791-dffe41e9-69cf-4e2d-b275-f6f3c972460b.mp4
https://user-images.githubusercontent.com/22160489/151185617-9e44a32a-8387-45c7-a995-827c4d3696b5.mp4

@Saitodepaula Can you reproduce this if you increase the number of physics solver iterations in 3.4 thanks to https://github.com/godotengine/godot/pull/50255 ? (Keep Physics Fps at its default value, 60.)

I've tested the minimal reproduction project on 3.4 using the new method from #50257, but with no success. The result is a bit different from the original video I've posted, but the problem persists.

@pouleyKetchoupp Do you know what causes this to occur? We're using a custom build of the engine to solve a couple other issues and may try to fix this one. Hoping to find a starting point.

@mustangchavez I haven't investigated, but it looks like rigid bodies are wrongly detecting collision with triangle edges at high speed, maybe because of slight overlaps.
In Bullet, I'm not sure why it fails even when Smooth Trimesh Collision is enabled. Maybe @AndreaCatania knows more about possible limitations.
In Godot Physics, Smooth Trimesh Collision is not implemented at all. So if there's any deeper overlap with the ground you can end up with colliding with triangle edges. I don't know exactly how it works in Bullet, but I imagine it could be implemented by marking triangle edges with a specific normal based on the average between the two neighboring triangles, and take it into account when generating contact points.
Apart from that, when it comes to Godot Physics there's also a general issue with rigid bodies overlapping too much with each other, and I wonder if they also overlap more than they should with static bodies. I'm going to check this issue in the coming weeks, so it would be worth checking again this kind of triangle mesh issue afterwards to see if there's any improvement.
Hope it helps you get a starting point :)
Your help would be very welcome, please share anything you find out!

Yes, this issue is really annoying and should be fully solved with Smooth Trimesh Collision on Bullet. However, notice that Smooth Trimesh Collision works only if the TrimeshBody shape isn't rotated/transformed/scaled relative to the body and must be the only shape under the object.
@Saitodepaula Is your Trimesh Body respecting that?

@AndreaCatania , the 3 elements (mesh instance, static body and collision shape) are not rotated/transformed/scaled. And Collision Shape margin is at 0.001.

@AndreaCatania and @pouleyKetchoupp
Hey guys, I am yet another person who would like to see this issue resolved. I have only a surface level understanding of the Godot BulletPhysics implementation, but I wanted to help however I could. I put together another Godot 3.4 test project that might be useful in diagnosing the issue.
https://github.com/broag/godot-bumpy-sphere
I stuck with Bullet + Smooth Trimesh Collision to test because Godot Physics and just Bullet did not look promising, even though there were circumstances where Godot Physics caused less bumpy behavior. It looks to me like the Smooth Trimesh Collision is only providing stabilization for RigidBodys with physics object primitives that do not rotate or ones that rotate very slowly. Rotating spheres and cylinders don't seem to benefit from the Smooth Trimesh Collision.
Here is a video showing bumpy behavior with some sane defaults I chose (with friction enabled):
https://user-images.githubusercontent.com/6625903/150038528-f5640487-7de2-4e07-8c62-c95e47b282a8.mp4
Here is a video showing no bumpy behavior with the same defaults however friction is 0.0:
https://user-images.githubusercontent.com/6625903/150038572-cc877790-d0e0-47e7-8738-aaa05d233139.mp4
It seems like something about the rotation is causing the problem, could it be a changing contact point thing (I have no clue...)?
I'd love to help solve this issue! I've looked through the commits for the implementation of Smooth Trimesh Collision, but its pretty far beyond my understanding at this point. Any suggestions for a better starting off point or things that can be done to help someone get to a resolution on this?
Thanks!

I've just tested this same minimal project on Godot 4.0 Alpha 1, and in the ball script, I've had the error
Invalid call. Nonexistent function 'add_torque' in base 'RigidDynamicBody3D ()'.
The entire script is just this:
extends RigidDynamicBody3D

func _ready():
	pass # Replace with function body.

func _physics_process(delta):
	self.add_torque(Vector3(-1000,0,0))

Invalid call. Nonexistent function 'add_torque' in base 'RigidDynamicBody3D ()'.

My first thought is that add_torque got deprecated in Godot 4.0, but I haven't verified. Either way, you can use add_central_force to achieve the same rolling effect if friction is non-zero.

My first thought is that add_torque got deprecated in Godot 4.0, but I haven't verified. Either way, you can use add_central_force to achieve the same rolling effect if friction is non-zero.

It may be. The documentation is being updated. For example, add_central_force is now add_constant_central_force, but in the docs, it's still add_central_force.
For this example, the result is the same, but for a wheel of a vehicle it's not the same. So I hope add_torque has not been removed.
Anyway, I've updated the first post with a video using Godot 4, using add_constant_central_force, and in my opinion the result is now worse (the ball jumps even higher).

I noticed that there were definitely differences between Godot Physics and Bullet Physics as well. The default physics engine switched from Bullet to Godot Physics in Godot 4.0. It would be helpful to verify with physics engine you are using for the videos. Bullet w/ Trimesh? or Godot Physics by default?

I noticed that there were definitely differences between Godot Physics and Bullet Physics as well. The default physics engine switched from Bullet to Godot Physics in Godot 4.0. It would be helpful to verify with physics engine you are using for the videos. Bullet w/ Trimesh? or Godot Physics by default?

Godot 3.3: both engines, in the first video you can see I tested both.
Godot 4: there is not even an option to change it, so, it's Godot Physics.

I just read that Bullet Physics will be supported by an official plugin for Godot 4.0 (no idea what the current status is), but honestly I'm happy to use any engine that fixes this problem.

I just read that Bullet Physics will be supported by an official plugin for Godot 4.0 (no idea what the current status is), but honestly I'm happy to use any engine that fixes this problem.

I doubt this will be done in time for 4.0.

Has anyone found a workaround for this problem? I was starting to make more complicated test models for my map, and ran into the same problem. I've been working on this game for about two months, and feel like I've run into a dead end. The player character is a Rigid Body sphere which uses add_torque for movement. I'm running into this problem with both Bullet and Godot physics.
Also, some folks have been talking about enabling Smooth Trimesh Collision, and I can't it. I'm using Godot 3.4.2 for Linux. Is it hiding somewhere else?

I suspect I might be running into this bug re this q&a post I made: https://godotengine.org/qa/137705/rigidbody-get_contact_local_normal-jumps-passing-collision

I enabled "Smooth Trimesh Collision" and switched to "GodotPhysics" for my project. The collision normals seem to be more stable now:
https://user-images.githubusercontent.com/3323504/186556564-3a5a2466-b6ce-408b-8b38-8cd23afb549b.mp4
Graph of the normal's Z axis from that video:

I suspect I might be running into this bug re this q&a post I made: https://godotengine.org/qa/137705/rigidbody-get_contact_local_normal-jumps-passing-collision

I have opened an issue very similar to your problem (I did test almost the same test you did): #36729.

As mentioned in Shifty's Godot Character Movement Manifesto, the current workaround is to merge the several colliders into a single convex collider shape.

@Calinou This should be documented in Godot docs themselves, not in 3rd party site

This issue is still occurring on Godot 4.2 using a RigidBody3D with a sphere CollisionShape3D. Merging colliders is not a relevant workaround, because this also occurs on the internal edges of a single convex collision shape.
I'd also like to add that it also happens on 'sliding', with linear velocity.

Default Godot Physics Engine
https://github.com/godotengine/godot/assets/17234812/6adec456-d013-48fd-8037-4a1da6115a1d

Also occurs in Jolt (spinning):
https://github.com/godotengine/godot/assets/17234812/d6aa1daa-1793-4db9-a24e-b6b8cd248e95

I wanna add to this discussion what I ended up doing in the Godot Rapier plugin ghost collisions:

The idea is from http://briansemrau.github.io/dealing-with-ghost-collisions/. If the movement direction interacts with something that completely opposes it and the intersection distance is small enough, I disregard that contact point and eliminate it.
Right now this is tested just for 2D, but it's also for 3D, just need to test it.


Add Stratum 1 snapshot and use Galaxy API to reload toolbox

We've had an issue on usegalaxy.org of the toolbox not reloading after tool installs. It appears to be a case of the mtime on the shed_tool_conf.xml updating before the actual contents do, presumably due to it all being on CVMFS. Assuming we don't figure out why that's happening, a workaround would be to disable file watching, run the Stratum 1 snapshot from here, and just hit /api/configuration/toolbox after we can verify that the update has actually occurred. what about job handlers?
Until then you unfortunately have to manually restart Galaxy after tools are installed.

This should work for reloading on web processes:
curl -X PUT https://usegalaxy.org/api/configuration/toolbox -H "x-api-key: $GALAXY_API_KEY"


Question about supporting projects which contain of multiple stack components

I was looking for a way to use ghcid as a way get faster feedback in the IntelliJ-Haskell plugin (especially for larger projects which contain of multiple components).
The plugin starts per component a REPL which makes life hard to get them all in sync especially in larger projects (even when only doing rebuilds for lib components). Because when a lib component is changed, it has to be rebuild and the dependent REPL has to be restarted to notice the changes).
I experienced that ghcid was much faster in reloading (rebuilding) but it loads all components at once.
My question is: does that not give conflicts because of the possible different ghc options and default language extension per component?

Yes, it sometimes gives conflicts because of different options, libraries, overlapping module names, extensions - pretty much everything. Although, in practice, often the only conflicting module name is Main, and within a set of related components, most other things seem to be mostly compatible. It's definitely not ideal!
Note that Ghcide has a multi-component approach, where it loads all components together, but carefully enables/disables different bits on a per file basis. That is likely to offer a better long-term solution.

Thanks for your reply!
Because goal of the plugin is that it should be easy to install and to use, i try to prevent dependencies, especially large ones as Ghcide, but who knows in the future 😄
ghcid is a small library and easy to build.
First want to try to put all Lib components in one REPL. Same for Exe, Test and Benchmark components. As you said that's not an ideal solution but if that works in most cases then that's the most pragmatic solution on the short term.


Why crossorigin is set to "anonymous"?

In embed.js, adaptive-player.js, sphere-renderer.js
I noticed that the crossorigin property is set to be anonymous
which means
there will be no exchange of user credentials via cookies, client-side SSL certificates or HTTP authentication as described in the Terminology section of the CORS specification.
What's the purpose of making this to be anonymous?
Current I am using vrview js to load the url of a video where the url is protected by the Basic Auth.
E.g the page is www.example.com/page then the video is www.example.com/assets/video.mp4.
Then when I hit the www.example.com/page in the browser, it asks for basic auth, then I input the user name and password, then the page will load while the video is not loading.
When I check the request in the network tab of the browser, I can see the request returns a 401 Unauthorized and it's saying no authorization information is passed in.
So I am guessing when the vrview lib is making request to retrieve the video content, somehow it's not passing the basic auth information, basically the header  Authorization : Basic 2dsjdslkfsahgasldjflaksjdflasnv .

This is the commit that introduced the anonymous crossorigin: https://github.com/googlevr/vrview/commit/0fec8102354fb0b6b936bd7c5d7097125aa42e19
I tried setting it to 'use-credentials' instead and everything seems to work. Someone just needs to test it in iOS: https://github.com/googlevr/vrview/pull/193

@lincolnfrog  wow  cool  I can try to test this in iOS.

Thanks! Let me know how it goes. Again, here is the PR: https://github.com/googlevr/vrview/pull/193

Hmm I found it's still not working on Mac Chrome.
I saw iframe created by the lib is
<iframe allowfullscreen="true" scrolling="no" width="100%" height="100%" src="/bula/bula/bula/embedded-content.html?is_stereo=false&is_vr_off=true&is_autopan_off=false&video=/somepath/360testvideo.mp4" style="border: 0px;"></iframe>

I saw the request to /bula/bula/bula/embedded-content.html is still not with Authorization header.


When changing GlossaryTerm displayName in the UI, name changes as well.

Affected module
UI ==> Govern ==> Glossary
Describe the bug
When changing GlossaryTerm displayName in the UI, name changes as well.
To Reproduce
I have loaded (via Bulk Upload) this

As expected, UI shows:

However, if I now change the display name, to Partner Display v2, I get

and if I now download the Glossary, I have that both Display Name and Name changed

Expected behavior
My understanding is that Name should not change if we change just the Display Name.
Version:

OpenMetadata version: [e.g. 13.2]

Additional context
Add any other context about the problem here.

please check if it's related to UI cc: @open-metadata/ui

@chirag-madlani this should be solved in the new Glossary Implementation right?

Yes we have separate fields now so this is fixed


Staging Continuous Deployment

When creating a release we should update our running task definition to use these most recent containers.
This will probably be achieved best with a deploy.js that leverages the aws-sdk to describe the currently running task, and apply updates to the container version of task defs.

Requires upstream services Docker image CD (in progress)

Moved to backlog


How to help with translation (German)

I want help translating to German, what shall I do?
Which files and location, priority etc.?
Is translation with Transifex an option for you?

hi @Bullnados
Please, contact<EMAIL_ADDRESS>and we will discuss it.


Probably inconsistent rules

Whenever I try to run xo via my terminal or via the one from VS Code I get the following error:
Error: /path/to/my/repo/node_modules/eslint-config-xo-react/index.js:
	Configuration for rule "react/jsx-sort-props" is invalid:
	Value "data["0"].noSortAlphabetically" has additional properties.
	Value "data["0"].reservedFirst" has additional properties.

as you can see here:

and here:

I'm still not sure if this is a problem with this package: it seems to be something with eslint-plugin-react itself–but the only issue I found (https://github.com/yannickcr/eslint-plugin-react/issues/1267) sound a bit inconclusive for me.
My setup is:
{
  ...
  "devDependencies": {
    ...
    "eslint": "^4.1.1",
    "eslint-config-xo": "^0.18.2",
    "eslint-config-xo-react": "^0.13.0",
    "eslint-plugin-react": "^3.16.1",
    "xo": "^0.18.2",
    "xo-loader": "^0.8.0"
  },
  ...
  "xo": {
    "extends": "xo-react"
  }
}

just like recommended on the docs.

Could you try downgrading to eslint@3 and see if the error is gone?

Just triad doing what you suggested @vadimdemedes but I couldn't get any different result 😢

In case your repo is public, could you link to it, so that we can try to reproduce it?

I also missed the fact that you have both xo and eslint, wondering if that could have something to do with this error. Unlikely though.

Could you try updating eslint-plugin-react to 7.1.0? 3.16.1 is really, really outdated.

I bet @kevva is right, I just assumed that deps were near-latest.

Thanks for the attention and fast feedback from both of you, @vadimdemedes and @kevva 😄  –and sorry for the delay on answering 😭
It turns out that @kevva was right and I hadn't payed enough attention to npm-check alert about eslint-plugin-react–sorry, such a quite dumb mistake of mine.
Everything's ok now.


Auto add classifiers

Motivation and Context
Currently when creating a new survey, classifiers need to be manually added separately. This is variously been achieved with manual database inserts (bad) or using the /surveys/{surveyId}/classifiers [POST] endpoint (better, but still manual).
The classifiers for a survey are (currently) always the same, so it makes sense to just generate them when the survey is created.
What has changed
The /surveys [POST] has been updated to create the classifiers as well as creating the core survey.
The /surveys/{surveyId}/classifiers [POST] endpoint still exists and functionality is unchanged.
Additionally the /vendor folder has been removed and the service upgraded to use go modules instead (dependencies now pinned using go.mod and go.sum). This means a change to the build/release job in concourse to call go get
Build step in concourse becomes simply:
  cd survey-service-pre-release-source
  go get ./...
  make

A separate pull request on https://github.com/ONSdigital/ras-deploy will be required.
How to test?

Spin up a local environment and create a new survey via the /create page of response-operations-ui.
Check the resultant records in the database to see the classifiers have been created and linked to the survey.

Links

Fixes #64 to move away from vendor to go modules
Associated PR: https://github.com/ONSdigital/ras-deploy/pull/110

When this PR goes in, the instructions on confluence for "how to create a new survey" should be updated to reflect the fact you no longer need to manually create the classifiers.

@ryangrundy7 Shouldn't have any issues with the Go version in the pipeline as it's using a binary buildpack to push to cloud foundry. The references to the go version and package in the old env vars would only be used if using the Go buildpack.
What errors are you seeing in the deploy job? (Which job/pipeline?)


add exec command to exec or run a command with a specific binary version

Would be pretty useful in the future to exec or run a command with a specific binary version. For example when I want to test an application with a newer nodejs version before locking the version to it.
Syntax could be:
bvm exec node@latest ./src/index.js
bvm exec node@lts npm@^13 run build

Chaining binaries may be hard to parse but since a version needs to be defined it should be easy to identify which is a binary through bin@version syntax.
Additionally, a --isolate flag could be added which removes all binaries from path requiring be explicit with all binary versions for the executed command.

@muuvmuuv yes, I've wanted to add this and now it's easier to do than before. I like the syntax you're proposing for executing specific versions as it's familiar in npm.
Most likely this would be a little verbose:
bvm exec [owner-name/binary-name@version] [command-name] [args]
bvm exec [owner-name/binary-name] [command-name] [args]
bvm exec [binary-name@version] [command-name] [args]
bvm exec [binary-name] [command-name] [args]

# Examples
bvm exec<EMAIL_ADDRESS>node -v
bvm exec<EMAIL_ADDRESS>node -v # or excluding owner when no other binaries are installed with that name
bvm exec<EMAIL_ADDRESS>npm -v
bvm exec node npm -v # or without version
bvm exec node node -v

I need a better word than "binary-name"... don't want to go with "package-name", but basically node has multiple commands defined (ex. node, npm, npx)
I'm not sure about the utility of the node@lts npm@^13 example though. If someone wanted to use a specific version of npm, then they could install and add an alias for it via npm then execute like:
bvm exec<EMAIL_ADDRESS>npm install -g npm_6_14_8<EMAIL_ADDRESS>bvm exec<EMAIL_ADDRESS>npm_6_14_8 -v

Do you have an example of where else it might be used? I think though that parsing the version out beyond the third parameter probably shouldn't be done as other binaries use that syntax (such as npm above).
I've made note of the --isolate flag 🙂

Oh yes, I haven't seen the exec list item. Another word would be executable(s) or binaries.
With ^13 you can say that exec on version 13.x.x. Without knowing the exact minor and patch version number. Just aliasing npm wouldn't be useful because most times you execute an app through node which cannot be aliased. But because bvm is not only node and npm I guess for rust users this is also usefull?

This is implemented now and looks like:
bvm exec node ~14.2
bvm exec node 14.2-16.2 test.js
bvm exec node 14.9.0 npm -v

Ended up using a space because that's what's done with other commands, slightly easier to type, and easy to work with internally.

With ^13 you can say that exec on version 13.x.x. Without knowing the exact minor and patch version number. Just aliasing npm wouldn't be useful because most times you execute an app through node which cannot be aliased. But because bvm is not only node and npm I guess for rust users this is also usefull?

I see what you mean, but in the case of which version of npm is installed, that's handled all handled via npm install -g npm. I don't think there would be an easy way to integrate that into bvm without creating distributions of each npm version for bvm separately. Then I think that could work. It would probably look like bvm exec node 14 $(bvm resolve npm ^13) run build. I've opened https://github.com/bvm/bvm/issues/24

Good idea! I will test it today. Looking forward to use bvm in favor of nvm. I have my personal issues with nvm since it terribly slows down the terminal when sourcing the command...

Works great @dsherret !!
~/Downloads took 571ms
at [$time]($style) ❯ node --version
v14.12.0

~/Downloads
at [$time]($style) ❯ npm --version
6.14.8

~/Downloads took 280ms
at [$time]($style) ❯ bvm exec node 12 -v
v12.18.4

~/Downloads took 1s250ms
at [$time]($style) ❯ bvm exec node 12 npm -v
6.14.6

@muuvmuuv just a heads up that I completely changed the way a lot of stuff works and it should be completely seamless on linux and mac. If you upgrade you should first delete your ~/.bvm directory, remove any changes made to .zshrc profile for bvm, and run npm config rm profile.
Sorry about the instability, but yeah, it's not even 0.1 yet. I doubt there will be as big of a change in the future as this was.

No problem! It's still a work in progress. Now I get "No such file or directory (os error 2)" following the steps you described and running the installation sh script afterwards. Any idea? It seems it comes from bvm-bin hidden unix-install.

@muuvmuuv thanks for letting me know about that! I didn't know removing a directory in rust would throw when it didn't exist. It worked fine on my machine because it did exist. This is fixed in 0.0.38 and I opened #41. Also, I reduced the binary size a decent amount.


output issues with the proc_by_module and proc_ace_complete functions

Error code:
Error in out$proc[[1]] : subscript out of bounds
In addition: Warning message:
In proc_by_module(., app_type = app_type, output = "wide", verbose = verbose) :
Unsupported modules found. They will not be processed.

Hi! What do the data look like by the time they are going into proc_by_module() here? If the user can run load_ace_bulk() on their raw data, and then print the resulting dataframe output to console, that may help diagnose whether this is a user-side or code-side issue.
I wonder if every single module is getting tagged as "unknown" in this data? If so, this error may occur because proc_by_module() is failing to extract the expected demographic column names when there are no recognized modules.


Set "proxy_pass_header Server;"

Follow-up to #545 -- nginx doesn't allow passing the Server header through from the application.

@abh new setting added in 787 to allow this feature.

Thanks! :-)  (I think it'd reasonably be the default; nginx really is doing the wrong non-RFC compliant thing here -- though I guess that's the nginx way ...).


Add parser instance for Uri - alleviates #764

Needs more connectors.

[x] Argonaut
[x] Circe
[ ] Json4s
[ ] scala-xml

Seems like if we provide a codec for Uri, we should provide one for the other JSON libraries.

Not sure how to write the other two.

I don't think scala-xml is relevant, as it's not typeclass based.  #769 adds the missing ones.

Included in #769.


curlie: 1.6.2 -> 1.6.7

Motivation for this change
ChangeLog:

https://github.com/rs/curlie/releases/tag/v1.6.5
https://github.com/rs/curlie/releases/tag/v1.6.6
https://github.com/rs/curlie/releases/tag/v1.6.7

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 145570 run on x86_64-linux 1

1 package built:

curlie

Tested locally, works fine.


Delete all rviz markers

On the tutorial ( http://wiki.ros.org/rviz/Tutorials/Ma... ) and docs for the visualisation markers, there's supposed to be an option for action "DELETEALL" which would remove all markers. I've tried this and it has not deleted any markers. Is this function actually in effect? Is there anything else I need to specify apart from marker.action?

Can you tryout the pull request here: https://github.com/ros-visualization/rviz/pull/866
Or give me a set of instructions (example script, bag files, or whatever) to reproduce the problem.

I didn't do a source install and the use case is simply that I have a bunch of markers, I try to clear them by adding another one with action = DELETEALL and it doesn't do anything.
I ended up using rviz_visual_tools::RvizVisualTools and calling deleteAllMarkers() - did the trick for me.

Ok, well in that case it's probably not a bug in rviz, since that mechanism is how rviz_visual_tools works. I still think the change in #866 is worth while. I'll close this for now.

Btw, just so someone is aware of it, the DELETE action doesn't work either. We "hacked" it by changing the alpha to 0 if we only want a specific marker gone.

@JessChL I don't understand, you said that DELETEALL works with rviz_visual_tools right?

the use case is simply that I have a bunch of markers, I try to clear them by adding another one with action = DELETEALL and it doesn't do anything.

Can you provide a simple C++ or Python example of this?

Sorry, I should have made it clearer.
This works:
rviz_visual_tools::RvizVisualTools rviz_interface("dummy_wall","/visualization_marker")
rviz_interface.deleteAllMarkers();
This DOESN'T work:
ros::Publisher marker_pub;
marker_pub = n.advertise<visualization_msgs::Marker>("visualization_marker", 1);
visualization_msgs::Marker text_marker;
text_marker.header.frame_id = "wall";
text_marker.ns = "points";
text_marker.type = text_marker.TEXT_VIEW_FACING;
text_marker.action = text_marker.DELETE; // this doesn't work, neither does .DELETEALL
text_marker.color.a = 0.0; // this is a hack to make marker invisible
text_marker.lifetime = ros::Duration();
marker_pub.publish(text_marker);

Ok, well it should work, I'm going to reopen this until we can figure out why you're not able to get it to work. AFAICT, the rviz_visual_tools isn't doing anything special.

FYI, this may be reading too much details into your example code, but did you try publishing the delete / deleteall in a loop?  I had a problem where I published a DELETEALL at the start of my program in an attempt to "reset existing clients", but the first message never got through (in fact, I often couldn't even echo it on the topic).  I fixed it by adding a loop beforehand to wait for the num_connections > 0 (or timeout).  Something like (in python):
    while not marker_pub.get_num_connections():
        rospy.sleep(1.0)
    marker_pub.publish(text_marker)

I added a timeout and a is_shutdown() check, but you get the idea.  I also added on a SubscriberListener to my Publisher for new client connections, so that I could send a DELETEALL message as the first message to all clients.
One other issue I ran into is that it seems rviz's MarkerArray requires a valid tf2 transform in your msg's Header - i.e. if the frame_id in your DELETEALL message is empty or the transforms aren't currently being published for it, the message is dropped without the DELETEALL taking effect.  I would get warnings in my terminal like this:
[ WARN] [1427379027.945965162]: MessageFilter [target=world ]: Discarding message from [unknown] due to empty frame_id.  This message will only print once.
[ WARN] [1427379027.946080497]: Invalid argument passed to canTransform argument source_frame in tf2 frame_ids cannot be empty

The frame_id is definitely set and the messages are definitely published and received because setting alpha to 0.0 make it completely transparent but the DELETE or DELETEALL is not in effect because the marker is still in rviz's list.