Folders are creates as root

Bug description
I have followed this recipe: https://docs.lost-pixel.com/user-docs/recipes/lost-pixel-oss/automatic-baseline-update-pr
However, folders are create as root and I'm running into this issue: https://github.com/peter-evans/create-pull-request/issues/783
This fixes the problem: sudo chown -R $USER:$USER .lostpixel, just make sure to run it on failure as well
Run ls -alrth .lostpixel
total 2[4](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:10:5)K
-rw-r--r--  1 runner docker   19 Dec 26 08:34 .gitignore
drwxr-xr-x 1[5](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:10:6) runner docker 4.0K Dec 2[6](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:10:7) 0[8](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:10:9):35 ..
drwxr-xr-x  2 root   root   4.0K Dec 26 08:35 difference
drwxr-xr-x  5 runner docker 4.0K Dec 26 08:35 .
drwxr-xr-x  3 root   root   4.0K Dec 26 08:35 current
drwxr-xr-x  3 root   root   4.0K Dec 26 08:35 baseline
0s
Run sudo chown -R $USER:$USER .lostpixel
0s
Run ls -alrth .lostpixel
total 24K
-rw-r--r--  1 runner runner   1[9](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:10:10) Dec 26 08:34 .gitignore
drwxr-xr-x [1](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:11:1)5 runner docker [4](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:12:5).0K Dec 26 08:3[5](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:12:6) ..
drwxr-xr-x  2 runner runner 4.0K Dec 2[6](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:12:7) 0[8](https://github.com/Maxim-Mazurok/maxim.mazurok.com/actions/runs/7328008717/job/19955652396#step:12:9):35 difference
drwxr-xr-x  5 runner runner 4.0K Dec 26 08:35 .
drwxr-xr-x  3 runner runner 4.0K Dec 26 08:35 current
drwxr-xr-x  3 runner runner 4.0K Dec 26 08:35 baseline

How to reproduce
on: workflow_dispatch

jobs:
  lost-pixel-update:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Use Node.js
        uses: actions/setup-node@v3
        with:
          node-version-file: '.nvmrc'
          cache: 'npm'

      - name: Install NPM dependencies
        run: npm ci

      - name: Build
        run: npm run compile

      - name: Serve
        run: npm run start-dev &

      - name: Wait for server to start
        run: sleep 5

      - name: Lost Pixel
        id: lp
        uses<EMAIL_ADDRESS>        env:
          LOST_PIXEL_MODE: update

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v5
        if: ${{ failure() && steps.lp.conclusion == 'failure' }}
        with:
          token: ${{ secrets.GH_TOKEN }}
          commit-message: update lost-pixel baselines
          delete-branch: true
          branch: 'lost-pixel-update/${{ github.ref_name }}'
          title: 'Lost Pixel update - ${{ github.ref_name }}'
          body: Automated baseline update PR created by Lost Pixel

Using this on a repo with no .lostpixel folder
Expected behavior
No response
Lost Pixel information

lost-pixel logs from CI
No response

Alternative you can now also update the images locally while running lost-pixel on docker.
npx lost-pixel docker update
it's a fresh feature so it does not have full page mode support so you might need to tinker your pagesUrl with host.docker.internal to make sure your app is accessible by lost pixel outside of it docker container

I don't think this will help as I'm running into this issue in GHA, not locally

Just found this issue since I'm facing the same problem, all generated images belong to the root user. In other Docker related projects I'm using
ENV PUID=1000
ENV PGID=1000

in the Dockerfile to use another user. However this is probably not the correct way to do it, since 1000 is just the user id of the default user on linux and multiple users would have different ids.
I guess a solution would be to add this parameters to executeDockerRun
--user $(id -u):$(id -g)

Just found this issue since I'm facing the same problem, all generated images belong to the root user. In other Docker related projects I'm using
ENV PUID=1000
ENV PGID=1000

in the Dockerfile to use another user. However this is probably not the correct way to do it, since 1000 is just the user id of the default user on linux and multiple users would have different ids.
I guess a solution would be to add this parameters to executeDockerRun
--user $(id -u):$(id -g)

nice find @thomasaull! happy to accept a PR on this if you have time!

@d-ivashchuk I could certainly give it a shot yeah. I haven't found any documentation about contributing to the project, did I miss it or is there none?

we have the contributing guide here - https://github.com/lost-pixel/lost-pixel/blob/main/CONTRIBUTING.md
Try it out and if there are any questions - I am more than happy to help and improve the guide as well in the meantime!

Just to add for anyone else facing this issue, the following workaround works (while we wait for a fix)
    - name: Create .lostpixel directory if it doesn't exist
      # This is a workaround for https://github.com/lost-pixel/lost-pixel/issues/344
      run: mkdir -p .lostpixel/baseline

    - name: Lost Pixel
      id: lp
      uses<EMAIL_ADDRESS>      env:
        LOST_PIXEL_MODE: update


Demo application or template

Hello, this seems like a very promising library.
Does there exist any reference implentation for cordova in github somewhere ?
Or a published app in google play/itunes just to test the features ?

Maybe combined with OCR https://github.com/NeutrinosPlatform/cordova-plugin-mobile-ocr..

Nothing made by us, But you are welcome to create one and I can add a backlink to the readme of these plugins.
Also both plugins have code snippets in the readme which you can directly copy paste onto a very basic project to get an understanding on how the plugins work.
Cheers,
Chris
Neutrinos


Add actionable message in the error

This PR  adds a small help message when helm install fails. This does not help if/when the user has entered the wrong chart name, but does help when charts under stable/* fails to install when everything else seems to be correct and should be working.
See #3697

Signed CNCF agreement


Migrate Yarn to Bun

I have been evaluating Bun in other projects, and it is starting to stabilize into a very convenient package. It can be used as a drop-in replacement for package management, runtime, testing (I still have frequent issues with this, however), automatic CJS/ESM resolution, and other DX benefits.

How is the exploration going so far ? we tried bun in early stages, was suuuper nice for simple projects, not mature enough for anything more advanced than just simple couple  files :)


F3 ScreenGameplay restart crashes (overflow?)

!m_pSoundMusic->IsMusicPlaying() failed assertion occupies the crash reason when using the F3 gameplay restart. Squirrel tells me it’s trying to play a null sound, but now it’s seeming strangely likely to be more than that.
Sent with GitHawk

Confirmed, this doesn't seem to have a fully completed codepath, however, we can utilise the options from the pause menu with some checks to do this properly in the future.
The sound and thread overflow and cause a race condition in the current code, and this behaviour just needs to be programmed into that path.
Another rabbit hole worthy bug :)

I'm not sure what we're going to do on this one.
Talking to some of the older developers, it seems the code was never written to reset gameplay using the operator menu. I mean why would you ever need to when we have pause?
I'm going to talk with the team on a solution, it is a bug due to the crash, but we need to decide to disable it, or to maybe write a new codepath for it.

Figured out what happened here. Audio was getting into a position where it would be impossible to play anymore, so that's dealt with.


Label filtering not working with pytorch

I switched over from doods1 to doods2 using the Home Assistant plugin. I also decided to check out pytorch.
I noticed after scanning the image though that it detected a "bench" in the image, when that isn't list of labels configured in the doods image processing configuration.

Can you share you hass config for doods?

Can you share you hass config for doods?

image_processing:
  - platform: doods
    scan_interval: 10000
    url: http://x.x.x.x
    timeout: 60
    detector: pytorch
    source:
      - entity_id: camera.uvc_driveway
    file_out:
      - "/local/{{ camera_entity.split('.')[1] }}_latest.jpg"
    labels:
      - name: person
        confidence: 55
      - car
      - truck
      - bus
      - motorcycle
      - bicycle
      - cat
      - dog

This issue is actually with the hass addon and not doods. Can you try setting a global confidence for everything but person? I would say 30-40 probably makes sense. That might be the issue.

By global confidence do you mean this:
image_processing:
  - platform: doods
    scan_interval: 10000
    url: http://doods.service.consul.nv.io:8421
    timeout: 60
    detector: pytorch
    source:
      - entity_id: camera.uvc_driveway
    file_out:
      - "/local/{{ camera_entity.split('.')[1] }}_latest.jpg"
    confidence: 40
    labels:
      - name: person
        confidence: 55
      - car
      - truck
      - bus
      - motorcycle
      - bicycle
      - cat
      - dog

If so note that didn't work. Of note the confidence for bench is actually 82% so above that threshold. The issue is of course that what it's identifying as a bench is actually a set of wooden pailings used for partial privacy and shade. I can see why it's making that mistake, but yeah there's no value in it identifying benches in this context hence trying to disable it.

I've also given this a shot too but no dice:
image_processing:
  - platform: doods
    scan_interval: 10000
    url: http://x.x.x.x
    timeout: 60
    detector: pytorch
    source:
      - entity_id: camera.uvc_driveway
    file_out:
      - "/local/{{ camera_entity.split('.')[1] }}_latest.jpg"
    labels:
      - name: person
        confidence: 55
      - name: car
        confidence: 30
      - name: truck
        confidence: 30
      - name: bus
        confidence: 30
      - name: motorcycle
        confidence: 30
      - name: bicycle
        confidence: 30
      - name: cat
        confidence: 30
      - name: dog
        confidence: 30

I'd have to look at the hass addon. It's woefully out of date. A quick fix would be to add the bench label and give it a confidence of like 99.

I just checked the source, It uses the global confidence if it doesn't find a label. It's always been that way and it's a pain to submit a PR to the home assistant people. I would just set the global confidence to 99 and set lower for things you want to detect.

Closing this, open a ticket in home assistant if it's killing you. That fix should take care of it though.


Detect and activate virtual environment on startup

PyCharm detects and activates project's virtual environment on startup.
It shouldn't be hard to implement it in vscode-python too.

We do support automatic activation of virtual environment. This could be a bug, but unfortunately we need some more information from you in order to triage this issue appropriately. Please create a new bug by providing a filled-in copy of our issue template.


Datadog CDK Construct Integration tests

What does this PR do?

This PR adds a base integration test for the aws-lambda construct
Motivation

https://datadoghq.atlassian.net/browse/SLS-1186
Additional Notes

Running the script run_integration_tests.sh will run cdk and synthesize the example stack under integration_tests/lambda/ to create an AWS CloudFormation template.
Types of Changes

[ ] Bug fix
[ ] New feature
[ ] Breaking change
[x] Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

[ ] This PR's description is comprehensive
[ ] This PR contains breaking changes that are documented in the description
[ ] This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
[ ] This PR impacts documentation, and it has been updated (or a ticket has been logged)
[ ] This PR's changes are covered by the automated tests
[ ] This PR collects user input/sensitive content into Datadog

Can we get these integration tests running in GitHub, so they run every time we push a branch?

I noticed in the test output (in GitHub but I assume locally as well) that we log the entire CloudFormation stack when running the test, even if it's successful. This isn't going to break anything but it could be annoying, especially if we start to add lots of different snapshot tests. Is it possible to make it so that we don't log the full stack?

Can we move the snapshots to a separate directory called snapshots within the integration tests directory? I know the Serverless plugin tests don't do that, but some of our other integration tests do, and it's nice to keep the snapshots separated from the rest of the tests.

I noticed in the test output (in GitHub but I assume locally as well) that we log the entire CloudFormation stack when running the test, even if it's successful. This isn't going to break anything but it could be annoying, especially if we start to add lots of different snapshot tests. Is it possible to make it so that we don't log the full stack?

Yes, there is the flag --quiet that suppresses the output to stdout https://www.npmjs.com/package/aws-cdk#user-content-commands. I added that in!


Stellar federated address in profile

mobile and desktop. Need some help on the toast popup on copy though.

Also, how do you make a divider in the floating menu on mobile?

These should show only on users with wallets

oh I just made a fake one show up in the DEV case for now, since the federated address is supposed to come from the service and isn't done yet: https://keybase.atlassian.net/browse/CORE-9435

I'll review this, sorry for the delay

thanks @akalin , did those things


How to use with .net 4.7

I searched a lot, but I didn't find how to use this package with .net 4.7 (not Core).
The documentation guides you to use IApplicationBuilder that does not exist in this framework.
Is there any place I can read how to do this setup?
Thanks

I'm afraid isn't designed to work with .NET 4.7, it's a .NET Core only middleware. I suppose if you were using Owin then it wouldn't take much to get it working with the full framework?

I'm going to close this awaiting your reply.


TBB not an option when setting default browser

Running  Ubuntu 14.04 and Torbrowser-launcher <IP_ADDRESS>-1.
Has the option to set TBB as a default browser been removed?  When I go to system settings -> details -> default applications  in ubuntu, for browser I do not see TBB listed, just the other browsers installed on the system

The following worked for me as a quick fix.
Open the following file in your text-editor of choice
~/.local/share/applications/torbrowser.desktop

Add the following text.
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=browser
Name[en_US]=Tor Browser
Exec=/path/to/tor/browser
Name=Tor Browser
Icon=browser

Then run this command in the command-line.
xdg-settings set default-web-browser torbrowser.desktop

Changing the default browser on Linux isn't trivia. Therefore, setting up Tor Browser as default browser isn't trivial. To implement this... Perhaps...
The tb-default-browser package configures torbrowser (ex: /usr/bin/torbrowser) as default browser. (tb-default-browser is related to tb-starter and tb-updater)
I could modify the tb-default-browser package to start either torbrowser or torbrowser-launcher. Could you upload the package to Debian? Alternativly, you could re-implement its functionality into torbrowser-launcher.

Yes, this feature has been reviewed. You can see #157 for more details. But basically, Tor Browser removed support for passing -no-remote, which means that you can't pass external URLs into it, which sort of defeats the purpose of using it as your default browser (e.g. you click a link and Tor Browser will open, but not load your link). Also, there was a bug that was never solved where if Firefox is open in the background, the link would open in that instead of Tor Browser.

Micah Lee:

Yes, this feature has been reviewed. You can see #157 for more
details. But basically, Tor Browser removed support for passing
-no-remote, which means that you can't pass external URLs into it,
which sort of defeats the purpose of using it as your default browser
(e.g. you click a link and Tor Browser will open, but not load your
link). Also, there was a bug that was never solved where if Firefox
is open in the background, the link would open in that instead of Tor
Browser.

I think there is no blocker here.

opening links in Tor Browser as default browser works [tested in Whonix]

you can pass arbitrary command line options including -no-remote from
start-tor-browser.desktop to Tor Browser / Firefox.


Not working

PowerToys version: 0.81.0
Plugin version: 0.81.0
I have tried a complete reinstall of the plugin but I can't get it to work. It doesn't ask for a login, I think that is the issue.
Screenshot:

Any fixes?
Thanks

What's the issue? Your screenshot shows normal behavior.
Perhaps with searching for songs?

Spotify Premium is required. It won't work otherwise.
You can do the following if you do have Premium:

check that the Client ID set in the PowerToys Run section is the right one
prompt the login again by going to %localAppData%\PowerToys-Run-Spotify and deleting the credentials.json file
check the logs (%LocalAppData%\Microsoft\PowerToys\PowerToys Run\Logs) for further info on what's going wrong


Remove GOOGLE_CONSUMER_KEY from .env

Description
It has being pointed out that there is a Google consumer key inside the .env file that shouldn't be tracked by the version control.
Steps to Reproduce
Steps to reproduce the behavior:

Go to this file: https://github.com/clay/clay-starter/blob/master/app/.env
Check which keys should excluded

Expected Behavior
The .env file should be untracked and we can set a .env.sample file with sample key/values to maintain the standard
Screenshots

N/A

Additional Context

N/A

This might come in handy: Removing sensitive data from a repository

 [BUG] Secret key posted in clay-starter repo

Closed because of #42


Should namespaces should be case perserving/Case-Insensitive?

Discuss. (I don't know what the right answer is)

case-insensitive.  I should be able to designate when I need case-sensitive.

As stated in #3573, right now Remove-Module is case-insensitive, and Import-Module is case-sensitive.
I still think my original principles apply to this scenario.

Long discussion about case sensitivity in general by @PowerShell/powershell-committee today.
Some starting principles:

C# (and by extension, .NET) is fully case sensitive (types, variables, methods, etc.)
Internally, PowerShell is case-insensitive (PS variables, functions, cmdlets)

There are exceptions (#region or comment-based help, for instance), but for the sake of this disucssion, I think that's irrelevant.

For most cases, filesystems are case-sensisitive (even on Windows, it's tricky, but NTFS can have two files with the same case).
On non-Windows platforms, environment variables are case-sensitive. PowerShell already respects the platform behavior here.
Tab completion is interactive where we allow all kinds of things that aren't possible with scripted behavior (which has to be deterministic)

As I linked above, there's 4 different cases that have to be solved for (I'm going to use "Namespace" as the stand-in term for all the things being discussed in this thread)

One option which is an exact match

Namespace: Apple; Input: Apple

One match which doesn't match the given case

Namespace: Apple; Input: apple

Multiple matches where one matches the given case

Namespaces: Apple, apple; Input: Apple

Multiple matches where none match the given case

Namespaces: Apple, apple; Input: aPPLE

Everyone in the room agreed that 1 and 3 should always match the exact match. From there, we agreed that 2 and 4 shouldn't "do something random" by calling the incorrect match.
However, we also agreed that tab-completing in a case-insensitive way is highly desirable so as to correct typing errors. We already do this for .NET namepsaces (e.g. [environme<tab> completes to [System.Environment]). (It should probably go without saying, but this would be implemented as a PSReadline feature and should be exposed as a configurable option.)
Bug to file that could make this all annoying: Move-Item and Rename-Item can't change a file's case in place

Clarifying question to @PowerShell/powershell-committee based on #1621. The statement "internally, PowerShell is case-insensitive" breaks down when you look at modules. I've elaborated in that issue.

Is there really namespaces differing only by case? In C#?

@PowerShell/powershell-committee reviewed this and modules paths and names should be case-insensitive


Relative URLs, fetch and SSR

Using a readable store...
// src/stores.ts
import { readable } from 'svelte/store'

const getArray = async (url) => {
  const response: Response = await fetch(url)
  if (!response.ok) throw new Error(`Bad response trying to retrieve from ${url}.`)
  return await response.json()
}

export const locations = readable([], set => {
  getArray('/api/location/public.json')
    .then(set)
    .catch(err => console.error('Failed API call:', err))
  return () => {}
})

A component uses $locations to display an array.
When I run npm run dev -- --open, I initially get this error...

Failed API call: TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:363:5)
at onParseError (node:internal/url:537:9)
at new URL (node:internal/url:613:5)
at new Request (file:///Users/nates/dev/shy-svelte/node_modules/@sveltejs/kit/dist/install-fetch.js:1239:16)
at file:///Users/nates/dev/shy-svelte/node_modules/@sveltejs/kit/dist/install-fetch.js:1448:19
at new Promise ()
at fetch (file:///Users/nates/dev/shy-svelte/node_modules/@sveltejs/kit/dist/install-fetch.js:1446:9)
at getArray (/src/stores.ts:6:26)
at eval (/src/stores.ts:17:3)
at Object.subscribe (/Users/nates/dev/shy-svelte/node_modules/svelte/store/index.js:52:20) {
input: '/api/location/public.json',
code: 'ERR_INVALID_URL'
}

But... the locations are displayed correctly.
If I change
  getArray('/api/location/public.json')

to
  getArray('http://localhost:3000/api/location/public.json')

the error goes away (but no change to what the user sees).
Guessing this is related to client vs. server-side rendering where the relative URL works for one but not the other.
There's a reference in the Migration section of the docs but I'm not sure what the recommendation is for this situation.

You can construct a full url by using import { page } from "$app/stores" in a component or in endpoints path parameter, and then use like const url = "http://" + $page.host + $page.path + "/api/location/public.json".
This works, but I feel like we should support relative fetch wherever possible.

Thank you @c-bandy and @Conduitry for clarifying this. I'm new to SvelteKit so apologies for what is probably a rookie mistake.

Think I answered you on Stack Overflow already, adding this though:
Be careful when using page : https://github.com/sveltejs/kit/issues/848
First use getStores, then use page.subscribe when outside a component.

Thanks - I think I'm part of the way there. I updated my StackOverflow question to make it clearer what I'm trying to do. I modified it per #848 but am still getting

Error: Function called outside component initialization


server works well as local host but fails to 'start proxy'

Can you help me diagnose, this was working initially, but broke once i had some issues trying to get docker spawner working. now it is not working with its default configuration.

[I 2015-07-10 21:53:18.643 JupyterHub app:619] Not using whitelist. Any authenticated user will be allowed.
[I 2015-07-10 21:53:18.664 JupyterHub app:997] Hub API listening on http://localhost:8081/hub/
[I 2015-07-10 21:53:18.670 JupyterHub app:754] Starting proxy @ http://*:8000/
21:53:18.834 - info: [ConfigProxy] Proxying http://*:8000 to http://localhost:8081
21:53:18.838 - info: [ConfigProxy] Proxy API at http://localhost:8001/api/routes

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: getaddrinfo ENOTFOUND
    at errnoException (dns.js:37:11)
    at Object.onanswer [as oncomplete] (dns.js:124:16)
[C 2015-07-10 21:53:19.686 JupyterHub app:1003] Failed to start proxy
    Traceback (most recent call last):
      File "/home/gpillemer/jupyterhub/dockerspawner/src/jupyterhub/jupyterhub/app.py", line 1001, in start
        yield self.start_proxy()
      File "/home/gpillemer/jupyterhub/dockerspawner/src/jupyterhub/jupyterhub/app.py", line 775, in start_proxy
        _check()
      File "/home/gpillemer/jupyterhub/dockerspawner/src/jupyterhub/jupyterhub/app.py", line 771, in _check
        raise e
    RuntimeError: Proxy failed to start with exit code 8

[gpillemer@cloud-server-16 jupyterhub]$

Can you share your jupyter config? It loots like it's trying to bind to an invalid address.

thanks - i was actually trying to start the server with --ip='*', which i use with the ipython noteboiok
starting it and specifying the ip, i.e ip=xx.xx.xxx.xx works perfectly. thanks

I am getting a similar error - works well on locally, but with proxy. Any pointers on what might be going on?
[I 2015-10-02 08:08:45.461 JupyterHub app:1031] Hub API listening on http://localhost:8081/hub/
[C 2015-10-02 08:10:52.627 JupyterHub app:1037] Failed to start proxy
Traceback (most recent call last):
File "/home/ubuntu/pkgs/jupyterhub/jupyterhub/app.py", line 1035, in start
yield self.start_proxy()
File "/home/ubuntu/pkgs/jupyterhub/jupyterhub/app.py", line 755, in start_proxy
if self.proxy.public_server.is_up() or self.proxy.api_server.is_up():
File "/home/ubuntu/pkgs/jupyterhub/jupyterhub/orm.py", line 118, in is_up
socket.create_connection((self.ip or 'localhost', self.port))
File "/usr/lib/python3.4/socket.py", line 512, in create_connection
raise err
File "/usr/lib/python3.4/socket.py", line 503, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

I have the same / similar issue. Did you ever figure it out?
[I 2015-12-11 22:53:37.322 JupyterHub app:1031] Hub API listening on http://abc.com:8081/hub/
[C 2015-12-11 22:53:37.324 JupyterHub app:1037] Failed to start proxy
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/jupyterhub/app.py", line 1035, in start
yield self.start_proxy()
File "/usr/lib/python3.5/site-packages/jupyterhub/app.py", line 755, in start_proxy
if self.proxy.public_server.is_up() or self.proxy.api_server.is_up():
File "/usr/lib/python3.5/site-packages/jupyterhub/orm.py", line 118, in is_up
socket.create_connection((self.ip or 'localhost', self.port))
File "/usr/lib64/python3.5/socket.py", line 707, in create_connection
raise err
File "/usr/lib64/python3.5/socket.py", line 698, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable

Are you using a DNS name for the proxy or an IP address?

DNS name.
On Mon, Dec 14, 2015, 5:57 AM Min RK<EMAIL_ADDRESS>wrote:

Are you using a DNS name for the proxy or an IP address?
—
Reply to this email directly or view it on GitHub
https://github.com/jupyter/jupyterhub/issues/271#issuecomment-164408871.

It looks like the DNS name isn't getting handled properly. Can you curl anything from that URL from where the Hub is running?

It is all running on one server. I did run a python http server on it with
no problem.
But anyhow I will also try it with ip and report back in 2 hours.
On Mon, Dec 14, 2015, 7:40 AM Min RK<EMAIL_ADDRESS>wrote:

It looks like the DNS name isn't getting handled properly. Can you curl
anything from that URL from where the Hub is running?
—
Reply to this email directly or view it on GitHub
https://github.com/jupyter/jupyterhub/issues/271#issuecomment-164427177.

I have switched to IP, but unfortunately the issue is the exact same.
I do code a lot in Python and I have a feeling that this is the usual Python proxy issue - namely that when you have proxy settings in the user profile in unix to access the internet then Python's socket library automatically picks that up and tries to send all traffic to that proxy, even the local ones.
I will test and make changes to the code to verify, but if it turns out to be this, then that will likely require some code change to correct.
[I 2015-12-14 14:34:39.763 JupyterHub app:1031] Hub API listening on http://10.xx.xx.xx:8081/hub/
[C 2015-12-14 14:34:39.766 JupyterHub app:1037] Failed to start proxy
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/jupyterhub/app.py", line 1035, in start
yield self.start_proxy()
File "/usr/lib/python3.5/site-packages/jupyterhub/app.py", line 755, in start_proxy
if self.proxy.public_server.is_up() or self.proxy.api_server.is_up():
File "/usr/lib/python3.5/site-packages/jupyterhub/orm.py", line 118, in is_up
socket.create_connection((self.ip or 'localhost', self.port))
File "/usr/lib64/python3.5/socket.py", line 707, in create_connection
raise err
File "/usr/lib64/python3.5/socket.py", line 698, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable

I have managed to resolve this.
I had created the jupyterhub_config.py file (instead of supplying server ip / server name as command line parameter) and set the proxy_api_ip, ip, and hub_ip to the same ip address, the ip of the server and now it starts fine.
[I 2015-12-14 16:18:35.002 JupyterHub app:1031] Hub API listening on http://10.xx.xx.xx:8081/hub/
[I 2015-12-14 16:18:35.006 JupyterHub app:788] Starting proxy @ http://10.xx.xx.xx:8000/
16:18:35.116 - info: [ConfigProxy] Proxying http://10.xx.xx.xx:8000 to http://10.xx.xx.xx:8081
16:18:35.118 - info: [ConfigProxy] Proxy API at http://10.xx.xx.xx:8001/api/routes
[I 2015-12-14 16:18:35.211 JupyterHub app:1054] JupyterHub is now running at http://10.xx.xx.xx:8000/

Now it has another problem - when connecting tot he spawned instance. I guess because it is spawing with "--ip=localhost" instead of "--ip=[IP]".
Any idea where to change this in the config. I have already set he proxy_api_ip, ip and hub_ip in the config to the actual server ip.
[I 2015-12-14 16:24:06.545 JupyterHub log:100] 200 GET /hub/login (@10.xx.xx.45) 21.80ms
[I 2015-12-14 16:24:13.138 JupyterHub spawner:363] Spawning jupyterhub-singleuser --user=zoltan.fedor --port=38020 --cookie-name=jupyter-hub-token-zoltan.fedor --base-url=/user/zoltan.fedor --hub-prefix=/hub/ --hub-api-url=http://10.xx.xx.xx.9:80/hub/api --ip=localhost
[W 2015-12-14 16:24:13.188 JupyterHub utils:76] Failed to connect to http://localhost:38020/user/zoltan.fedor ([Errno 101] Network is unreachable)

Found it, c.Spawner.ip

@zoltan-fedor so it looks like localhost is broken on your machine. Any idea as to what might be the cause of that? We've seen it reported intermittently, but I haven't been able to work out the cause. It seems like a pretty significant problem in the local system configuration.

@zoltan-fedor can you run this code:
#!/usr/bin/env python3
import socket
import warnings
from threading import Thread

def localhost():
    """Return localhost or <IP_ADDRESS>"""
    if hasattr(localhost, '_localhost'):
        return localhost._localhost
    binder = connector = None
    try:
        binder = socket.socket()
        binder.bind(('localhost', 0))
        binder.listen(1)
        port = binder.getsockname()[1]
        def accept():
            try:
                conn, addr = binder.accept()
            except ConnectionAbortedError:
                pass
            else:
                conn.close()
        t = Thread(target=accept)
        t.start()
        connector = socket.create_connection(('localhost', port), timeout=10)
        t.join(timeout=10)
    except (socket.error, socket.gaierror) as e:
        warnings.warn("localhost doesn't appear to work, using <IP_ADDRESS>\n%s" % e, RuntimeWarning)
        localhost._localhost = '<IP_ADDRESS>'
    else:
        localhost._localhost = 'localhost'
    finally:
        if binder:
            binder.close()
        if connector:
            connector.close()
    return localhost._localhost
print(localhost())

and tell me what you get?

This seemed to have worked, because when running this code I got back "localhost".

Found the issue.
It is the hosts file. I am using Oracle Linux 7, but also checked on Oracle Linux 6, CentOS 6, etc and it seems all of them has the following in the hosts file (/etc/hosts):
<IP_ADDRESS>   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
The line start with ::1 is causing the issue with the socket library of Python not being able to connect to 'localhost' but throwing the Network is unreachable error.
So if your /etc/hosts is:
<IP_ADDRESS>   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain
Then the following code:
import socket
socket.create_connection(('localhost', 12121))
Will throw:
  File "test2.py", line 2, in <module>
    socket.create_connection(('localhost', 12121))
  File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error: [Errno 101] Network is unreachable```

If you change `localhost` to `<IP_ADDRESS>` in your code, then obviously it works.
Also if you remove that line starting with `::1` from your /etc/hosts file, then the code works with `localhost`

As such my suggestion is to change the code in /jupyterhub/orm.py line 117 from:
`socket.create_connection((self.ip or 'localhost', self.port))`
to
`socket.create_connection((self.ip or '<IP_ADDRESS>', self.port))`

Obviously it is still a question why the socket library throws this error...


Is it possible to return decrypt??

Hi
I want to use it to generate access key which is publicly shared to my client when my client request using that key i can return decrypt that key and get actual result.is it possible in this ?? or any suggestion or idea to tackle this situation.

I’m not a 100 % sure what you want to do, but I can’t really see how this issue is related to object-hash specifically. If you’re seeking a way to serialize and deserialize objects again, then no, that is unfortunately not something that’s supported by this library.

@addaleax thanks for reply you are totally right.sorry for not using technical language.

No problem, I was just not sure what exactly you were asking. Let me know if there’s anything else I can help with!

Hello sir,
Actually i am developing Project Management tool for our client in that Admin can create unlimited project.I want to generate Personal Access Tokens for every project with their scope so Admin gives Personal Access Tokens to user and user uses it to write their API detail for their project only.if token has only reading scope then user can not write API detail.simple and straightforward.Simply i can say Github Personal Access token.:smile:


feat: Edit Form page in Endatix Hub

Edit Form page in Endatix Hub
Description
Includes the page Edit Form page in Endatix Hub with hackathon level quality. The design follows the wireframes
Related Issues
closes #119
Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

Checklist

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

I've made changes connected with two of the comments (mentioned this in them).
For the others I generally agree and we can proceed with the changes when we go through the code resulting from this and the other initial Endatix Hub pages PRs - to achieve same approach for the different components and pages.


Queue all PGP data for re-processing using bulk_tasks script

I used the bulk_tasks tool to queue all of the PGP data for re-processing.


Draggable mask to adaptively reveal underlying image?

I am using PanResponder, MaskedView, and Animated.View in React-Native to try to create a dynamic mask that changes as the user drags their finger across the screen. The goal is to keep the majority of the image concealed and only show parts of the image where the finger is touching the screen. Gestures will be recorded (i.e., screen coordinates where the person has "searched" the image, "dwell time", etc.) for data analysis.
For example, a user may be presented with the below screen:

The user may drag the circle to different locations on the screen explore the underlying image, like below:

I have coded the mask based on tutorials for PanResponder and MaskedView, but the screen is not responsive. In other words, I am unable to drag the circle around the screen. I believe I have possibly ordered operations incorrectly or mistakenly hard coded the mask in its position?
Can anyone spot what might be wrong from my code?
import React, { useRef } from 'react';
import { Animated, View, Image, useWindowDimensions, PanResponder, StyleSheet } from 'react-native';
import MaskedView from '@react-native-masked-view/masked-view';

const App = () => {
  const { width, height } = useWindowDimensions();
  const fromCoords = { x: 175, y: 350 };
  const pan = useRef(new Animated.ValueXY(fromCoords)).current;

  const panResponder = useRef(
    PanResponder.create({
      onMoveShouldSetPanResponder: () => true,
      onPanResponderGrant: () => {
        pan.setOffset({
          x: pan.x._value,
          y: pan.y._value
        });
      },
      onPanResponderMove: Animated.event(
        [
          null,
          { dx: pan.x, dy: pan.y }
        ]
      ),
      onPanResponderRelease: () => {
        Animated.spring(
          pan,
          { toValue: { x: 100, y: 0 } }
        ).start();

      }
    })
  ).current;

  return (
    <View style={styles.container}>
    <MaskedView
      style={{ flex: 1, flexDirection: 'row', height: '100%' }}
      maskElement={
        <Animated.View
          style={{
            transform: [{ translateX: pan.x }, { translateY: pan.y }],
            width: 100,
            height: 100,
            borderRadius: 50,
            backgroundColor: 'black'
          }}
          {...panResponder.panHandlers}>
        </Animated.View>
      }
    >
      <Image
        style={{
          width: width,
          height: height,
        }}
        source={require('./image.jpg')}
      />
    </MaskedView>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
    backgroundColor: '#F5FCFF',
  },
});

export default App;

I got it working by speading {...panResponder.panHandlers} in <MaskedView> instead of <Animated.View>

Very insightful, @lucy-tran, thanks!


[turborepo] Next.js13 and tailwind do not have proper loader

What version of Turborepo are you using?
1.8
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
I have a turborepo project and upgraded to next.js13. I do have tailwind as my CSS library. After creating app directory and adding the tailwind CSS import in the root layout.tsx I am getting this error:
web:dev: error - ./styles/tailwind.scss web:dev: Module parse failed: Unexpected character '@' (1:0) web:dev: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders web:dev: > @tailwind base; web:dev: | @tailwind components; web:dev: | @tailwind utilities;
Expected Behavior
application compiles and run without loader error compiles
To Reproduce
simply add tailwind css to nextjs 13 and turborepo in app directory
Reproduction Repo
No response

Hi @hamidre13, the error you linked could be due to a Turbo configuration problem, but it's hard to debug without the exact configuration. Could you provide a repo with a reproduction?

facing the same loader issue when starting a new project with
npx degit vercel/turbo/examples/with-yarn with-yarn
and simply cannot run the project with yarn dev
i reported the issue cannot start new project
4316

Thanks @chris-olszewski ,
Here is my web tsconfig web file:
  "extends": "tsconfig/nextjs.json",
  "include": [
    "next-env.d.ts",
    "**/*.ts",
    "**/*.tsx",
    ".next/types/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ],
  "compilerOptions": {
    "baseUrl": ".",
    "plugins": [
      {
        "name": "next"
      }
    ]
  }
}

Here is the next tsconfig:
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Next.js",
  "extends": "./base.json",
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "incremental": true,
    "esModuleInterop": true,
    "module": "esnext",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve"
  },
  "include": ["src", "next-env.d.ts"],
  "exclude": ["node_modules"]
}

here is my base tsconfig:
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Default",
  "compilerOptions": {
    "composite": false,
    "declaration": true,
    "declarationMap": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "inlineSources": false,
    "isolatedModules": true,
    "moduleResolution": "node",
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "preserveWatchOutput": true,
    "skipLibCheck": true,
    "strict": true
  },
  "exclude": ["node_modules"]
}

Here is a turbo confing:
{
  "$schema": "https://turbo.build/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": [
        "^build"
      ],
      "outputs": [
        "dist/**",
        ".next/**"
      ]
    },
    "lint": {
      "outputs": []
    },
    "dev": {
      "cache": false
    }
  },
  "globalEnv": [
    "ALGOLIA_APPLICATION_ID",
    "ALGOLIA_ADMIN_KEY",
    "SENDGRID_API_KEY",
    "NEXT_PUBLIC_ALGOLIA_API_KEY",
    "NEXT_PUBLIC_ALGOLIA_APP_ID"
  ],
  "globalDependencies": [
    ".env"
  ]
}

I did not change any cofigs, so I am pretty sure any fresh install will have this issue, but I will be happy to create a repo if necessary.

@chris-olszewski  Please let me know if you need any help with this. I will be happy to help

Is there a fix for this yet? I am running into the same issue and I have a demo to due incorporating a design system with Tailwind.

Hey, folks, looks to be a stale here! There's been a lot of work put into the examples so this should be fixed. Please open a new issue if you're still seeing problems.


Update URL of help window

Currently the help window loads https://github.com/se-edu/addressbook-level4/blob/master/docs/UserGuide.md
We can update the help window to point to https://se-edu.github.io/addressbook-level4/docs/UserGuide.html so that the user guide looks more like a user guide rather than a Github repo :-)

On a related note, I've tried a few different themes and none of them seem to render the pages as intended (or as clean as the default markdown rendering). :-p
e.g.

@damithc I think Github uses a different markdown rendering engine for github.io vs github.com, so some syntax that parses correctly on github.com may not parse on github.io
E.g., I could fix up some of the rendering with the following patch:
diff --git a/docs/UserGuide.md b/docs/UserGuide.md
index 507ba15..05b4cdc 100644
--- a/docs/UserGuide.md
+++ b/docs/UserGuide.md
@@ -7,9 +7,11 @@

 ## Quick Start

-0. Ensure you have Java version `1.8.0_60` or later installed in your Computer.

-   > Having any Java 8 version is not enough.

-   This app will not work with earlier versions of Java 8.
+0. Ensure you have Java version `1.8.0_60` or later installed in your Computer.
+
+    > Having any Java 8 version is not enough.
+    >
+    > This app will not work with earlier versions of Java 8.

 1. Download the latest `addressbook.jar` from the [releases](../../../releases) tab.
 2. Copy the file to the folder you want to use as the home folder for your Address Book.
@@ -30,6 +32,7 @@
 ## Features

 > **Command Format**
+>
 > * Words in `UPPER_CASE` are the parameters.
 > * Items in `SQUARE_BRACKETS` are optional.
 > * Items with `...` after them can have multiple instances.

Yes, github.io markdown parser seems to be stricter.

Upping the priority because it's good if this can be done before this semester's cohort reaches level 4


Write specs for new Ruby 2.5 features and changes

ruby/spec already contains many specs for 2.5, but we should aim to cover all new features and important changes.
This will improve the test coverage of these features (and maybe discover a few bugs along the way), allow other Ruby implementations to implement the changes faster with more confidence and document clearly the new behavior.
The new specs should be within a version guard block:
ruby_version_is "2.5" do
  # New specs
end

From https://github.com/ruby/ruby/blob/trunk/NEWS.
Only relevant items are kept for brevity.
NEWS for Ruby 2.5.0
Changes since the 2.4.0 release
Language changes

[x] rescue/else/ensure are allowed inside do/end blocks.  Feature #12906

[x] Top-level constant look-up is removed.  Feature #11547

[x] refinements take place in string interpolations.  Feature #13812

Core classes updates (outstanding ones only)
Array

[x] Array#append  Feature #12746
[x] Array#prepend  Feature #12746

Data

[ ] Is deprecated. It was a base class for C extensions, and it's not
necessary to expose in Ruby level. Feature #3072

Exception

New methods:

[ ] Exception#full_message to retrieve a String expression of an exception,
formatted in the same way in which Ruby prints out an uncaught exception.
Feature #14141 [experimental]

Dir

[x] Dir.glob provides new optional keyword argument, :base. Feature #13056

New methods:

[x] Dir.children  Feature #11302
[x] Dir.each_child  Feature #11302

Enumerable

[x] Enumerable#{any?,all?,none?,one?} accept a pattern argument Feature #11286

File

[ ] File.open accepts :newline option to imply text mode.  Bug #13350
[ ] File#path raises an IOError for files opened with
File::Constants::TMPFILE option. Feature #13568
[ ] File::Stat#{atime,mtime,ctime} support fractional second timestamps on
Windows 8 and later  Feature #13726
[ ] File::Stat#ino and File.indentical? support ReFS 128bit ino on Windows 8.1
and later  Feature #13731

New method:

[ ] File.lutime  Feature #4052

Hash

New methods:

[x] Hash#transform_keys  Feature #13583
[x] Hash#transform_keys!  Feature #13583
[x] Hash#slice  Feature #8499

IO

New methods:

[ ] IO#pread  Feature #4532
[ ] IO#pwrite  Feature #4532
[ ] IO#copy_stream tries copy offload with copy_file_range(2) Feature #13867
[ ] IO#write accepts multiple arguments  Feature #9323

IOError

[ ] IO#close might raise an error with message "stream closed",
but it is refined to "stream closed in another thread". The new message
is more clear for user.
Bug #13405

Integer

[x] Integer#step no longer hides errors from coerce method when
given a step value which cannot be compared with #> to 0.
Feature #7688
[x] Integer#{round,floor,ceil,truncate} always return an Integer.
Bug #13420
[x] #573 Integer#pow accepts modulo argument for calculating modular
exponentiation.  Feature #12508 Feature #11003

New methods:

[x] Integer#allbits?, Integer#anybits?, Integer#nobits? Feature #12753
[x] Integer.sqrt  Feature #13219

Kernel

[x] Kernel#yield_self   Feature #6721
[ ] Kernel#pp  Feature #14123
[ ] Kernel#warn(..., uplevel:n)  Feature #12882

Method

New methods:

[x] Method#=== that invokes Method#call, as same as Proc#=== Feature #14142

Module

[x] Module#{attr,attr_accessor,attr_reader,attr_writer} become public Feature #14132
[x] Module#{define_method,alias_method,undef_method,remove_method} become public Feature #14133

Numeric

[x] Numerical comparison operators (<,<=,>=,>) no longer hide exceptions
from #coerce method internally. Return nil in #coerce if the coercion is
impossible.  Feature #7688

Process

[ ] Precision of Process.times is improved if getrusage(2) exists. Feature #11952

New method:

[ ] Process.last_status as an alias of $? Feature #14043

Range

[x] Range#initialize no longer hides exceptions when comparing begin and
end with #<=> and raise a "bad value for range" ArgumentError
but instead lets the exception from the #<=> call go through.
Feature #7688

Regexp

Update to Onigmo 6.1.3-669ac9997619954c298da971fcfacccf36909d05.

[ ] Support absent operator https://github.com/k-takata/Onigmo/issues/82

[ ] Support new 5 emoji-related Unicode character properties

String

[ ] String#-@ deduplicates unfrozen strings.  Already-frozen
strings remain unchanged for compatibility.  Feature #13077
[ ] -"literal" (String#-@) optimized to return the same object
(same as "literal".freeze in Ruby 2.1+) Feature #13295
[x] String#{casecmp,casecmp?} return nil for non-string arguments
instead of raising a TypeError. Bug #13312
[ ] #551 String#start_with? accepts a regexp Feature #13712

New methods:

[x] String#delete_prefix, String#delete_prefix! Feature #12694
[x] String#delete_suffix, String#delete_suffix! Feature #13665
[ ] String#each_grapheme_cluster and String#grapheme_clusters to
enumerate grapheme clusters Feature #13780
[ ] String#undump to unescape String#dump'ed string Feature #12275

Struct

[x] Struct.new takes keyword_init: true option to initialize members
with keyword arguments. Feature #11925

Regexp/String: Update Unicode version from 9.0.0 to 10.0.0 Feature #13685

Thread

New method:

[ ] Thread#fetch  Feature #13009

[x] The default of Thread.report_on_exception is now true,
showing unhandled exceptions terminating threads on $stderr.
Feature #14143

Time

[x] Time#at receives 3rd argument which specifies the unit of 2nd argument.
Feature #13919

KeyError

New methods:

[ ] KeyError#receiver Feature #12063
[ ] KeyError#key      Feature #12063

FrozenError

[ ] New exception class. Feature #13224

Stdlib updates
Only stdlib which do not have tests are listed.
Many stdlib live in their own projects with their own tests.

RbConfig

[ ] RbConfig::LIMITS is added to provide the limits of C types.
This is available when rbconfig/sizeof is loaded.

Compatibility issues (excluding feature bug fixes)

Socket

[ ] BasicSocket#read_nonblock and BasicSocket#write_nonblock no
longer set the O_NONBLOCK file description flag as side effect
(on Linux only) Feature #13362

Random

[ ] Random.raw_seed renamed to become Random.urandom.  It is now
applicable to non-seeding purposes due to Bug #9569.

Socket

[ ] Socket::Ifaddr#vhid is added Feature #13803

Stdlib compatibility issues (excluding feature bug fixes)

mathn.rb

[x] 49cdeadf451a54151d25ad5db11b234d87accf90 82145c5b8430e3a1b57b05ec3334e9b4c4f1106d Removed from stdlib. Feature #10169

Miscellaneous changes

Print backtrace and error message in reverse order if STDERR is unchanged and a tty.
Feature #8661 [experimental]

Print error message in bold/underlined text if STDERR is unchanged and a tty.
Feature #14140 [experimental]

@marcandre @andrykonchin Could you tick the checkboxes of features you added specs for?
Unfortunately clicking on the checkbox is not enough, you need to edit the issue and add x inside the [ ].
Please also do the same when adding new specs, first tick it to avoid conflicts :)
For contributors without commit access, please write here the when you start working on a spec, to avoid having multiple people working on the same specs.

Just a heads-up, but it appears you fixed Integer#floor/truncate/ceil/round in October, but it hasn't been checked off yet. :)

@cadwallion Thanks, I checked it now :)

Working on FrozenError, PR should be up shortly.

For ruby/spec committers: I made the checkboxes all top-level, which allows to tick them.

@cadwallion I think FrozenError is already done in #568.

Why yes, yes it is. And much more thoroughly than mine. Thanks for the heads up!

Process.last_status as an alias of $?, Thread#fetch and KeyError should all be mostly straightforward and afaik not yet done.

I'll start in on both KeyError features.

Pathname.glob with base: and Pathname#glob are missing?

@eregon Unless I'm missing something I guess the Regexp/Support absent operator part is done already (was apparently part of 2.4 already): https://github.com/ruby/spec/blob/master/language/regexp/modifiers_spec.rb#L42

Hello everyone, I'm working on Kernel#pp Feature #14123

@Efesto Right, Kernel#pp already has specs, I marked it as done.

I wrote the specs for the final missing pieces, thank you everyone!


Scheme is missing for bitbucket-pipelines.yml

When I try to open the file bitbucket-pipelines.yml throw error below
Error executing vim.schedule lua callback: ...l/Cellar/neovim/0.9.5/share/nvim/runtime/lua/vim/lsp.lua:1308: RPC[Error] code_name = InternalError, message = "Request initialize failed with me
ssage: [UriError]: Scheme is missing: {scheme: \"\", authority: \"\", path: \"null\", query: \"\", fragment: \"\"}"
stack traceback:
        [C]: in function 'assert'
        ...l/Cellar/neovim/0.9.5/share/nvim/runtime/lua/vim/lsp.lua:1308: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

I have tested the other yaml like docker-compose.yml and works well

There is a official scheme file for bitbucket pipeline as commented in this post https://community.atlassian.com/t5/Bitbucket-questions/Scheme-URL-of-bitbucket-pipelines-yml/qaq-p/834807
The scheme link is https://api.bitbucket.org/schemas/pipelines-configuration

Please see #40


Add some notes about URL patterns

Some old notes I found lying around; figured they're marginally more useful here than anywhere else.
Is there a good place for this sort of implementation note?

Any chance of adding context as to where these are from, and where they are used?

Happy to have you talk me through it and I can add it.

Just discovered this is already in the code comments on https://github.com/wellcometrust/catalogue/blob/0d5832c0466802e6ef1fc2c21aa31eb31b5cacee/pipeline/transformer/transformer_sierra/src/main/scala/uk/ac/wellcome/platform/transformer/sierra/transformers/parsers/WellcomeImagesURLParser.scala
Closing as not necessary.


Entering nothing as path and then pressing enter crashes the program

Describe the bug
Program closes when trying to go to a blank path
To Reproduce
Steps to reproduce the behavior:

Click on the URL / path bar
Delete whatever is there, so nothing is left
Press enter
See error

Expected behavior
Program either stays in current folder or defaults to C:/
Screenshots

Pressing enter here crashes it ^^
Desktop (please complete the following information):

OS Version: Windows 10 20H2 19042.685
App version: v<IP_ADDRESS>

Additional context
Problem is stable to reproduce every time
Log file
debug.txt
^^ Has some german stuff in it, no clue how, I reinstalled my entire PC fully in english, anyway

@ToothyDev Thank you for reporting this issue, it should be resolved with #3007.

@ToothyDev Thank you for reporting this issue, it should be resolved with #3007.


Github actions for automatic website deployment

Crowd sourced knowledge about these topics and throwing it into a simple site is a cool idea, thanks for making the project. I actually started my own little blog/personal site thanks to your videos.
This is just a suggestion and may be too soydevy for your taste, but you could implement a Github action that automatically uploads your site to the server whenever you push to/merge with the master branch. It would help you keep the site automatically up to date with the latest "stable" version on Github. I detail how I did it for my static site here. It's not perfect but perhaps if you are not totally opposed to the idea you could adapt some ideas from it.

I do this for based.cooking, but I'm not sure if it will be as necessary here since I don't even plan to use a static site generator. based.cooking is recompiled on the web server each push. Maybe though depending on how things evolve I will do something like that here.


Mac M2 via Rosetta possible?

I installed the addon on Mac M2 and it does not work. Is this the case even today? Can I run it via Rosetta?
The addon I downloaded from this Github does not give error message, but the one comes with installation give the error:
Traceback (most recent call last):
  File "/Applications/Blender 36 LTS/Blender.app/Contents/Resources/3.6/scripts/modules/addon_utils.py", line 369, in enable
    mod.register()
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/__init__.py", line 86, in register
    load_addon()
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/__init__.py", line 55, in load_addon
    from . import rman_presets
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/rman_presets/__init__.py", line 29, in <module>
    from . import ui
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/rman_presets/ui.py", line 29, in <module>
    from ..rman_ui import rfb_qt
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/rman_ui/__init__.py", line 2, in <module>
    from . import rman_ui_txmanager
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/rman_ui/rman_ui_txmanager.py", line 6, in <module>
    from ..rfb_utils import texture_utils
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.6/scripts/addons/RenderManForBlender/rfb_utils/texture_utils.py", line 10, in <module>
    from rman_utils.txmanager import core as txcore
  File "/Applications/Pixar/RenderManProServer-25.2/bin/rman_utils/txmanager/core.py", line 73, in <module>
    from rman_utils.txmanager.txfile import TxFile, _reset_rule_filecache
  File "/Applications/Pixar/RenderManProServer-25.2/bin/rman_utils/txmanager/txfile.py", line 22, in <module>
    import ice  # pylint: disable=import-error
  File "/Applications/Pixar/RenderManProServer-25.2/lib/python3.10/site-packages/ice/__init__.py", line 35, in <module>
    from ice._ice import *
ImportError: dlopen(/Applications/Pixar/RenderManProServer-25.2/lib/python3.10/site-packages/ice/_ice.so, 0x0002): tried: '/Applications/Pixar/RenderManProServer-25.2/lib/python3.10/site-packages/ice/_ice.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Pixar/RenderManProServer-25.2/lib/python3.10/site-packages/ice/_ice.so' (no such file), '/Applications/Pixar/RenderManProServer-25.2/lib/python3.10/site-packages/ice/_ice.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

UPDATE:
You can use the Renderman addon using Blender Intel version (it will run via Rosetta in macOS automatically)! Thanks to Pixar guy Dylan.


index-related selector ?

Hi,
It seems that index-related selectors does not work ?
I need to have a selector to get the second matched item, like
$node = $html->find('a:eq(1)')

I can't use
$nodes = $html->find('a');
$node = $nodes[1];

in my script, I need to get it using a selector.
Any way to achieve this ?
Thanks.

Try:
$node = $html->find('a')[1]

That will give you the 2nd a element (zero based index).


How can I get the history by using only the API instead of the UI?

How to judge whether to save if there are changes or not when clicking download?

@liudid
There is no way to know if there are any changes to the image yet.


ES6 Support

Hi Folks,
Do you have plans to bring ES6 support in the future?
Thanks.

Hi what ES6 features are you trying to use that NuclearJS doesn't currently support?

Arrow functions


Godot does not rename files in such a way that Git is aware of the change

Tested versions
v4.2.stable.official [46dc27791]
System information
Windows 10 Mobile
Issue description
If you have your Godot project as part of a Git repository and you rename or move a file within the Godot editor, this is not tracked by Git.
Steps to reproduce
Create a new Git repository.  Create a new Godot project within the repository.  Add a file to the project.  Add the file to git and commit the change.  Now rename and/or move the file in the Godot editor.  Now commit again.  The old file path will be indicated as missing, and the new file path will be indicated as not added.
Git is unaware of the file's new name/location.  Because of this, my Git history is not keeping track of the times I rename or move a file.
Minimal reproduction project (MRP)
N/A

So this will happen automatically if you move the file in the operating system? That's not how I've had things work, this is something you need to manually do in my experience

Yeah, if moved in the filesystem Git will pick up on the existence of the new file (usually)

Yes the existence, marking the old one as deleted and the new one as added, until you use git add or git mv, at least that's how it works for me

it might also not apply without git mv if the file doesn't match enough

hence the 'usually' in my comment above

But git doesn't automatically do things like this by design, and it did pick up on it according to the issue? It just didn't automatically add it to the commit, from the wording:

Now rename and/or move the file in the Godot editor. Now commit again.

There's no automatic management of this in the editor, as per the previous sentence the adding was not implied here

As far as I know in other systems there would be a git addon that would let the developer add files to the stage.

Just to be clear - I am moving the files by dragging and dropping them in the File System area of the Godot editor and renaming them in the save area.  I would expect Godot to check to see if the files are hosted in a Git repository, and if so provide something similar to a git mv command instead of just using the OS's native renaming system.

I would expect Godot to check to see if the files are hosted in a Git repository, and if so provide something similar to a git mv command instead of just using the OS's native renaming system.

That's only true of IDEs that have a Git plugin. Godot does not have such a plugin yet AFAIK.

So this isn't a bug, Godot itself without plugins doesn't interact with VCS in any way, and arguably you are expecting behavior that goes right against what VCS workflow is normally supposed to be, as I said above if Godot did do this without being told to it would be a bug, as VCS is supposed to be done with direct intentionality
So I'd suggest investigating the Godot git plugin for some functionality, otherwise this is not a bug but the area for a proposal, but I don't think this is something that's going to be popular, even as an optional setting
Closing this as there's no bug here, and the proper place for this is a proposal
Thank you


CI badges link to the wrong url

Badges should be of the form  i.e. [![sel-badge]][sel-ci] where
[sel-badge]: https://github.com/haskell-cryptography/libsodium-bindings/actions/workflows/sel.yml/badge.svg
[sel-ci]: https://github.com/haskell-cryptography/libsodium-bindings/actions/workflows/sel.yml?query=branch%3Amain

closed via  #92


Renaming all remaining connection.py modules as _http.py.

DERP I didn't remove docs RST reference to the modules. Just pushed a fix. Will merge (now) once Travis goes green.


PR flow: add codeowners-action

I would like to add this GitHub action
What do you think @shairez @gilf @nnelgxorz ?

I think is not necessary right now


Keystore Fails to be Loaded at the Path Listed in orientdb-server-config.xml

When a Keystore is created and referenced in the orient-server-config.xml file in 2.1-rc5, it fails to be loaded.  I downloaded the source code and debugged this issue.  The problem occurs in OSystemVariableResolver:
public static String resolveVariable(final String variable) {
    if( variable == null )
      return null;
    String resolved = System.getProperty(variable);
    if (resolved == null)
      // TRY TO FIND THE VARIABLE BETWEEN SYSTEM'S ENVIRONMENT PROPERTIES
      resolved = System.getenv(variable);
    return resolved;
}

System.getProperty(variable) with variable = "ORIENTDB_HOME" returns "%ORIENTDB_HOME%" on the Windows OS.  In the chain of calls at startup, this returns to the SSLSocketFactory and which attempts to load the keystore from:
"%ORIENTDB_HOME%\config\certs\orientdb.ks"
as set in the orientdb-server-config.xml, which clearly doesn't exist.  The condition should be changed to:
if (resolved != null)

@compensator Could you elaborate better the problem?

I was attempting to load a keystore in 2.0.12 and was receiving the terse error of "invalid or corrupt" keystore despite the fact that the keystore could be loaded via the keytool with the identical values that were in the orientdb-server-config.xml file.  After trying a variety of solution paths I decided to pull down the source code of the latest code (since I need to analyze other items anyway).  I traced through the code and found that an Exception was being thrown in the below OServerSSLSocketFactory.getSSLContext() when it attempts keyStore.load(..).  When I traced through the code the problem was occurring in the following code snippet within OServerSSLSocketFactory where the keyStore path is completed with ORIENTDB_HOME.  What was being returned by OSystemVariableResolver.resolveVariables(${ORIENTDB_HOME}) was "%ORIENTDB_HOME%" rather than, e.g., "D:\orientdb-community-2.0.12" :
		keyStoreFile = new File(keyStorePath);
		if (!keyStoreFile.isAbsolute()) {
			keyStoreFile = new File(
					OSystemVariableResolver
							.resolveSystemVariables("${ORIENTDB_HOME}"),
					keyStorePath);
		}

		if (trustStorePath != null) {
			trustStoreFile = new File(trustStorePath);
			if (!trustStoreFile.isAbsolute()) {
				trustStoreFile = new File(
						OSystemVariableResolver
								.resolveSystemVariables("${ORIENTDB_HOME}"),
						trustStorePath);
			}
		}

	protected SSLContext getSSLContext() {

		try {
			SSLContext context = SSLContext.getInstance("TLS");

			KeyManagerFactory kmf = KeyManagerFactory
					.getInstance(KeyManagerFactory.getDefaultAlgorithm());

			KeyStore keyStore = KeyStore.getInstance(keyStoreType);
			char[] keyStorePass = keyStorePassword.toCharArray();
			keyStore.load(new FileInputStream(keyStoreFile), keyStorePass);

			kmf.init(keyStore, keyStorePass);

			TrustManagerFactory tmf = null;
			if (trustStoreFile != null) {
				tmf = TrustManagerFactory.getInstance(TrustManagerFactory
						.getDefaultAlgorithm());
				KeyStore trustStore = KeyStore.getInstance(trustStoreType);
				char[] trustStorePass = trustStorePassword.toCharArray();
				trustStore.load(new FileInputStream(trustStoreFile),
						trustStorePass);
				tmf.init(trustStore);
			}

			context.init(kmf.getKeyManagers(),
					(tmf == null ? null : tmf.getTrustManagers()), null);

			return context;
		} catch (Exception e) {
			throw new OConfigurationException("Failed to create SSL context", e);
		}
	}

I found that the section of code in the original post was returning "%ORIENTDB_HOME%".  I changed the condition to "!= null" to allow the proper value to return and it worked correctly.

Meanwhile, I copied the orientdb-system-config.xml from the downloaded zip and re-entered the keystore values and it began to load the keystore.  I thus am unsure what the problem was in 2.0.12 vs 2.1-rc5.  I haven't had a change to check the code in 2.0.12 yet.

@lvca I'll test this again from scratch and if the error doesn't occur, I'll close it.

I finally had a little time yesterday to test out some scenarios on this issue.  It fails to load the key within the keystore if that password differs from the keystore's password.

@compensator Please could you send us a PR with the fix?

After I reviewed the issue back then in IntelliJ, I blew away the project.  As long as it works, then I don't see the point in pulling down the code and entering that modification.  I am concerned that there will be unintended consequences because other execution paths flow through that section of code.  I also only tested this on Windows.  It may be the case that it works as intended on Linux/Unix.

Ok, so I'm closing the issue. In case this problem is reproducible, please reopen/comment.

Sounds good.


Make download directory configurable

My reasoning: I have Arch Linux it has /tmp dir mounted as tmpfs in RAM. I have only 4G of RAM installed so I can only d/l torrents below 2G limit with go-peerlix (half of my RAM size)

Thank you!


Changes type of chainId to String

Fixes #15

Thanks for the PR @josh-burton
Do you have an idea which blockchain uses a string as chainId?
The official monorepo uses a number:   private _chainId = 0;

@RootSoft this was the Elrond chain using the Maiar wallet.

@ChikinDeveloper @josh-burton would dynamic be preferred over String?

Can you guys try out this branch:
https://github.com/RootSoft/walletconnect-dart-sdk/tree/feature/dynamic-chainid
walletconnect_dart:
  git:
    url: git://github.com/RootSoft/walletconnect-dart-sdk.git
    ref: feature/dynamic-chainid

A solana integration provider would be helpful as well:
https://github.com/RootSoft/walletconnect-dart-sdk/blob/master/lib/src/providers/ethereum_walletconnect_provider.dart


Some symbols from the K standard library are just symbols, not hooked one

Hi everyone!
After running kompile imp-lib.k (See imp-lib.zip), the symbols freshInt and dividesInt are generated from the K standard library, but there aren't hooked-symbol (just symbol).

This is also not a bug. Neither of these functions are hooks.

Why these symbols aren't?
For my understanding, the K standard library is an interface that each backend needs to implement.
There are just syntax sugar?

@amelieled freshInt is defined in domains.md. So it's a regular function symbol, with the implementation given by the rule beneath it.
I'm not sure why you think this should be hooked.
By the way, https://github.com/runtimeverification/k is the right repository for reporting bugs regarding the way the Kore definition is generated. Since the Kore language is very stable, there's a small chance of finding such bugs. It would be best to ask on our K Slack channel. Let me know (in a DM on Slack) if you don't have access to it.

Thanks @ana-pantilie .
I don't understand something about hooked thing, so I will ask on the K Slack channel.
(Another example: SortBool is hooked, but not SortId.)


BUG - md-input (change) is not called

Bug, feature request, or proposal:
BUG
What is the expected behavior?
call output change every time the input changes
What is the current behavior?
Calls (change) when press "enter", or unfocused the input
What are the steps to reproduce?
http://plnkr.co/edit/Ew5eVXrxcedTbYHvF81x?p=preview
write something, then press enter
What is the use-case or motivation for changing an existing behavior?
Input changes tracking, validation
Which versions of Angular, Material, OS, browsers are affected?
2.2.0, beta 10, ALL

This isn't a bug specific to Material; add a regular  with the same bindings and the same result occurs. Reading up on the change event  shows that its behavior varies between browsers and controls.
Sounds like you need one of the key events, such as keypress, keydown, or keyup, or perhaps the input event.

It's currently working as intended.
Note, though, that md-input is currently being factored. In an upcoming release it will be<input md-input> and simply use the native (change) event.


CSV Verification / Empty File when "Report is still working."

Using the downloader from the Dev branch, when a report writes "Info: Report is still working."  The report gives a CSV Verification Error.  If you bypass the error, you get a completely blank file.  It's happened on multiple reports, first time I've tried it with my more complex ones.  Error Transcript below:
Authenticating and switching to ___________... Success.
Attempting to retrieve report details for Data-Horizon-Rpt... Success.
Retrieving possible formats... Success. - Data-Horizon-Rpt (i0D1D5BD27C3D4E1E87ABB371AF304583) can be exported in the following formats: CSV,PDF,spreadsheetML,XLWA,xlsxData,XML,MHT
Deleting old Data-Horizon-Rpt...Success.
Renaming old Data-Horizon-Rpt... Success.
Downloading Report to "C:\Users\ssmin\Scripted-Imports\CognosReports\Data-Horizon-Rpt.csv"...
Info: Report is still working.
Success.
Get-Member: C:\Users\ssmin\Scripted-Imports\CognosDownload.ps1:717:45
Line |
717 |              $headercount = ($fileContents | Get-Member | Where-Object …
|                                              ~~~~~~~~~~
| You must specify an object for the Get-Member cmdlet.
Failed CSV header check with only 0 headers...
Deleting old Data-Horizon-Rpt...Success.
Reversing old Data-Horizon-Rpt.

The dev branch is currently broken.  I've given up on making a single script work for both Powershell 5 and 7.
I'm working on some new code that hopefully I will be pushing out soon that will address the differences.


Stop the searching of find in files in folders that have .gdignore

Fixes https://github.com/godotengine/godot/issues/85935
When a .gdignore is detected. It cleans everything that was in the queue to be scanned (in the current dir) and stops the scan.
This is very helpful when you are developing for Android. The Find in files enters the res://android/build, and you get many unwanted results.
Test project:
MinimalSearchInFiles.zip
Tree files of the test project:

Before (with the bug):

After (fixed):

@AThousandShips i would prefer to remove the 'discussion' tag.
It's a bug.

I'd say it's important to discuss, the fact that the code existed might be evaluated, I'll keep it until we decide what path to take

Thanks!


Could you state the purpose of this library more clearly?

Is this an alternative to Intel TBB, firing multiple threads with different priorities for different tasks?
What problems does it solve?
P.S. For me the only reason for using some custom scheduling system is to reduce latency for very small tasks (because yield tends to switch off the thread for 5-60ms under heavy load from other threads).

This is a lightweight tasking library, like TBB it tackles the issue of multithreaded programming via the task model. Intel's TBB has a decent overview of why tasks are often preferred over just using threads.

I'm closing this issue as hopefully being resolved for you.


Timings should use the plugin id

Currently, timings are currently using the plugin name in many places (here, here, here, here, here, and here - though I may have missed one). To be consistent, we should be returning the plugin id instead - we can provide the plugin name here to provide a friendly name that can be used, if necessary.

@kashike
Either @simon816 or myself will fix this up.

@Zidane If possible, it might be good to change this to be of debug type.


Add example response

Would like to ask/suggest if it would be possible to add an example response for the Microsoft Graph API requests?
Like you have on this article: https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-discovery#example-response-for-a-multi-geo-tenant
This helps in understanding what we should expect as an output of the API request.
Thanks!

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

ID: 273329da-9823-06ca-75b5-535a459954d9
Version Independent ID: 5fbeb9f9-3b06-bd09-5603-d0780cc21a0d
Content: Access OneDrive for Business in a Multi-Geo tenant
Content Source: docs/solution-guidance/multigeo-onedrive.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Hi! I highly recommend checking out the Microsoft Graph Explorer.  This will allow you to test out requests and see responses coming from Microsoft Graph. This is the best place for testing and viewing responses from the API.
https://developer.microsoft.com/en-us/graph/graph-explorer

Hi! Thank you for getting back on this.
Yes, I understood that the tool to use is Microsoft Graph Explorer. But my suggestion was to actually include an example output in the article - like it is included on the other article, as example (https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-discovery#example-response-for-a-multi-geo-tenant) - as that can easily help the reader understand if that output provides the information they are searching for.

@RitaRomana I had submitted a PR for this. Thanks!


MM-27208 MM-T1685/MM-T1686 Add E2E test for leaving archived channels

Both of these tests are almost identical, so I included them in the same PR.
Also, I skipped the step to switch to the channel from the channel switcher because you stay viewing the archived channel after archiving it as long as you have the archived channels setting turned on.
Ticket Link
https://mattermost.atlassian.net/browse/MM-27208
https://mattermost.atlassian.net/projects/MM?selectedItem=com.atlassian.plugins.atlassian-connect-plugin%3Acom.kanoah.test-manager__main-project-page#!/testCase/MM-T1685
https://mattermost.atlassian.net/projects/MM?selectedItem=com.atlassian.plugins.atlassian-connect-plugin%3Acom.kanoah.test-manager__main-project-page#!/testCase/MM-T1686

Cherry pick is scheduled.


Emotion 11

Summary
Upgraded Emotion Packages to v11
@emotion/core and @emotion-theming → @emotion/react
jest-emotion → @emotion/jest
babel-plugin-emotion → @emotion/babel-plugin
Tests
Aside from some of the snapshots failing due to emotion changing classnames, there is a strange error in @emotion/cache that I'm trying to resolve with the emotion team.

The PR is now outdated, please reopen it when Emotion 11 will be live.


Can I train a model so that it recognize better cities, (and only cities)

Hi,
I am making a weather web app. I thought to bring web speech API will make the app more accessible, and I am already amazed by the confidence transcribing voice and very easily.
However, I know where there is a ML model there is a always a room for optimization. I would like to restrict it's transcription to only cities. It would be more focus, and hopefully more accurate. Is it possible to use a Tensorflow.js model for example ? has anyone done that ?
thanks !

Hey @bacloud22! For general questions like this, we would recommend using a site such as StackOverflow. Also, note that we are combining some of our repositories to enable us to triage pull requests and issues more effectively. Therefore, this specific repository will be merged into the more prominent dom-examples repository. Thank you.


Replace backend domain and path in location header

For https://github.com/18F/api.data.gov/issues/197, this looks for a redirect and, if present, replaces the backend domain name with the frontend value.

@cmc333333: Sorry for the delay following up! Overall, I think this looks good, there was only one edge-case I was thinking of that might theoretically trip this up. Currently you have the Location header host being rewritten by a search/replace:
response.setHeader('location', original.replace(backend, frontend));

Since this replace call will only replace the first instance found of the backend string, I think in most sane cases this would properly replace the host properly. But in a theoretical world where my API backend decides to do non-sane things, I can think of a couple icky edge-cases:

If my API returns the proper host, but then shoves the backend host somewhere in the query string, the current approach would end up changing the query string, which I'm not sure we want (we could possibly argue for doing that, but I think that also opens a world of more painful edge-cases, so I'd probably prefer to stick to just modifying the known host).

Here's a test case that I don't think think should change the redirect at all: http://other_url.com/hello?foo=example.com

If my API returns a redirect where the hostname is different, but happens to contain original backend host, the current approach would change the redirect, but again for simplicity sake, I think I'd prefer to stick to absolute host name matching.

Here's a test case that I don't think should change the redirect at all: http://eeeeeexample.com/hello

So to solve these edge-cases, I might use the url.parse method to extract the hostname from the Location URL, and then only replace it if it equals the original backend string.
Does all that make sense? Again, overall, this looks great, I'm just nitpicking edge-cases that are likely very rare. :)

Updated to also take into account for the backend path bleeding through.

Thanks, all this looks good!
And just to confirm, after thinking about it some more, I think it would be a good idea to also append api_key to the redirect URL if an API key was passed on the original request. It should be added to the URL regardless of how the API key was originally passed, so even if the X-Api-Key header was originally used, the redirect should append the api_key parameter as a GET query string instead (since we can't redirect with headers). It's a little funky, but I think with that one extra addition, then this redirect rewriting logic will handle masking the underlying URLs quite well for most redirects we see.
So I'll hold off on merging all this until we get that last little feature in, but then I think we're good to go!

Updated to append api key to redirects.
One thing that this does not do is affect relative redirects. Should we run the same path rewriting checks in that situation?

Ah, good catch. Yeah, I think rewriting the path of relative redirects is probably a good idea. I think that should be safe, since I can't really think of a scenario where rewriting the relative redirect would be incorrect if it does start with the URL prefix we originally matched. Did you want to tackle that one last bit (hopefully for real this time)? And then I think we're good to go! :rocket:

Updated to rewrite appropriate paths in a relative redirect.

Awesomeness. Thanks again!


Updated serpextract to use newer yaml file.

Related to this issue:
https://github.com/Parsely/web/issues/4975
Changes:

Using a YAML list of engines instead of parsing one out from PHP file.
Some additions to engine detection with no keyword (ported from piwik).

I ran serpextract from master and from this branch on a subset of ~7k referrers. Results are in this repo:
https://github.com/j-bennet/serpextract-runner
(files are too large for a gist).
New version detected 10 more search engine URLs, all related to recent updates for Yahoo and Google. Differences look legitimate to me.
@msukmanowsky Please review.

This looks good to me, so I'm going to merge it.


license

any plans to add a license to this?

Hi,
Didn't think this would become popular enough to need it.
I've added the MIT license

cheers


Zooming in on Android

Hey,
How can we zoom in on a map instance on Android? I tried this but it didn't work:
var cuf = new com.google.android.gms.maps.CameraUpdateFactory();
gMap.animateCamera(cuf.zoomTo(14),1000,null);

Figured out the correct way to do it:
var cuf = new com.google.android.gms.maps.CameraUpdateFactory.newLatLngZoom(latLng,14);
gMap.animateCamera(cuf,1000,null);


Skip tests

We need more work on all our workflows for this repo. I think we need to undo some of what was added during this PR: https://github.com/equinix-labs/fabric-java/pull/45/files


Merge pull request #1 from vuejs/master

pull

1

Do not abuse pull requests please... =(

sorry...
------------------ 原始邮件 ------------------
发件人: "Vlad<EMAIL_ADDRESS>发送时间: 2019年10月23日(星期三) 下午5:26
收件人<EMAIL_ADDRESS>抄送: "lgn"<792841450<EMAIL_ADDRESS>主题: Re: [vuejs/vue-next] Merge pull request #1 from vuejs/master (#365)
Do not abuse pull requests please... =(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Seems there is nothing to be done. I think you could close it?


setCurrentItem not working with infinite loop

Hi, after setting of adapter to UltraViewPager i call setCurrentItem but it doesn't work, any idea?

the problem is related to setInfiniteLoop, when i remove infinite loop the setInfiniteLoop method working well, any solution?

any solution？


Flow types used in explicit type arguments in function calls are reported as not being used

Given the following code:
type Type = string;

function identity<T>(val: T): T {
  return val;
}

const foo = identity<Type>('foo');

Type is being reported as not being used by ESLint. Identifiers used inside explicit type arguments in function calls should be visited and not reported as unused.

This is not fixed yet. We still have to wait for the Babel release and merge #645.

Sorry, it's because one of my transitive dependency wasn't updated. Reinstall helped.


backup

Describe your suggested feature
If i make a backup files for my tachiyomi library i should be able to use it on mihon since it's the same system.
Other details
No response
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] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version 0.16.0.
[X] I will fill out all of the requested information in this form.

Yes, it's compatible between Tachiyomi and Mihon because it's based on the last version of the app and the only changes right now is only the name and logo

Are you facing problem?
I restored my last backup from tachiyomi without any problem.

unless you have a really old version, backups should restore fine.


[Registry] Make 'Content-Version' optional for archive and manifest download API

Motivation:
The 'Content-Version' header is required in all registry server responses to indicate API version. However, it shouldn't be required for responses that don't/can't change, such as the download archive and fetch package manifest endpoints. This may also cause problems for registry that have these files hosted elsewhere, because they may not have full control over response headers.
Modifications:

Modify registry API spec to make 'Content-Version' optional for the said endpoints
Adjust RegistryClient

rdar://105415468

@swift-ci please test

@swift-ci please smoke test

@swift-ci please smoke test Windows

@swift-ci please smoke test macOS

@swift-ci please smoke test

@swift-ci please smoke test Windows

@swift-ci please smoke test

@swift-ci please smoke test Windows


Adding Valmieras tehnikums

official website - https://valmierastehnikums.lv/en
IT related course - https://valmierastehnikums.lv/en/node/1672
showing that the university recognizes the domain - At the bottom of any page on the official website is the schools email

@BearTaffy First stage of verification passed, official domain is valmierastehnikums.lv as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@BearTaffy Thank you for your patience while waiting for a review and processing your request. Pull request merged.


[BUG] Property 'calcFitHeight' does not exist on type 'CupertinoPane'

Describe the bug
I updated cupertino-pane from 1.2.82 to 1.3.1 and I can't access the calcFitHeight method anymore. Has it been removed ?
Additional context
I'm using this project in an Ionic 6 / Angular app.

@modvd does this property on place fitHeight: true ?
Since 1.3.0, calcFitHeight() method assigned to instance under fitHeight module.  It is required fitHeight, as you can see.
If you don't using fitHeight, than you must use await this.setBreakpoints(); which is public and accessible without modules.

Yes my pane has fitHeight: true. Do I need to import something new since 1.3.0 ?

@modvd thank you. Typos was not picked to main instance. Fixed in 1.3.12 and calcFitHeight method also.


🐛♻ Replacing ul>li with div>button fixes keyboard enter-as-click

resolves #1702
In the menu, we want keyboard 'enter' to behave the same as clicking an item with the mouse. By replacing the li element with a button element we get this onClick behaviour with keyboard for free

Did you check a11y semantic rules for changing ul>li to div>button (all I could find was that roles menu, menuitem, aria-expanded etc needed to be assigned)?

The roles menu and menuitem are already assigned so I don't think there is anything else needed. I can try with screenreader on the new and old solution later to see if there is a difference


Compatibility with VS 2012

Hi, I have VS 2012 Express for Windows Applications but when I try and open the project it says it's not compatible. Do you have a new version of the files please?

This was created with VS2012 ... I dont know what you mean by a newer copy of the project files.  The only file that changes between VS2008 and VS2012 was the solution file if Im not mistaken.

That's fine I managed to get to to work. Thanks so much

Glad you got it working.  Shouldnt have been too hard even if you needed to manually modify the sln file.  Hope you find it useful!!

@takwirira I recommend switching to VS Community Edition and updating to the latest release (2015) if possible. Staying outdated only causes pain ;-).

will look into this


zib compliance QA tooling: improve conceptually cardinality check

The zib has declared its cardinalities as conceptual: https://zibs.nl/wiki/Zib_kardinaliteiten. The QA tooling keeps this into account. It does so however by subtracting 1 on the min cardinality. In zib-MultidisciplinaryTeamMeeting, the concept Participant (NL-CM:15.2.13) has a conceptual cardinality of 2..* which should be translated in the profile to 0..* . The QA tooling now incorrectly expects 1..* .
An improvement for the zib documentation would be to also highlight this example (having a min higher than 1) to the documentation...

This is fixed, closing this topic.


[Docs]: Add image to clarify cross-origin communication

Is there an existing issue for this?

[X] I have searched the existing issues

Release Number or Date
na
Documentation Link
https://docs.appsmith.com/reference/appsmith-framework/widget-actions/post-message
Discord/slack/intercom Link
No response
Describe the problem and improvement.
na

PR: https://github.com/appsmithorg/appsmith-docs/pull/807


Move, Rotate, Scale on selections

Are there plans to make the manipulations tools work on selections? ive been playing around with trying to implement it myself but i couldnt get it done. changing xyz coordinates in splatData seems not the way to go 😆
Creating a new asset from a selection and loading it along side the root asset seems like a huge hassle and has some issues with rendering where from some angles things can become invisble or rendered on the wrong plane when assets overlap.

Fixed by https://github.com/playcanvas/supersplat/pull/217


"Frumușani" is listed in the drop-down menu

Description:
"Frumușani" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Frumușani" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Frumușani, CĂLĂRAȘI".


feat: Add the 'enumNameExample' configuration, default 'true'

When 'enumNameExample' is configured to true, the enumeration example value is always the enumeration field name.
When 'enumNameExample' is configured to false, the system determines the value based on the data dictionary, '@JsonValue', and enumeration field parameters

enumNameExample should default to true. This setting aligns with the most common use case for the majority of users and ensures compatibility with older users. Setting it to false would negatively impact the upgrade experience for most users.

@jasonkung22 enumNameExample should default to true. This setting aligns with the most common use case for the majority of users and ensures compatibility with older users. Setting it to false would negatively impact the upgrade experience for most users.

@jasonkung22 enumNameExample should default to true. This setting aligns with the most common use case for the majority of users and ensures compatibility with older users. Setting it to false would negatively impact the upgrade experience for most users.

ok, from the feedback on Issue and previous experience, I mistakenly assume that most users would prefer to display enumValue, so the default value is set to false. However, if configured to true, there may be some interference for users who wish to display Enumvalues. There is no perfect solution. so I will change the default value to true

Because it is not sure what the next version number will be, if the next version number is not '3.1.0', it may need to be changed

Because it is not sure what the next version number will be, if the next version number is not '3.1.0', it may need to be changed

next version is 3.1.0


DISABLE_MIGRATIONS

Altough I have configured DISABLE_MIGRATIONS=true in the app.ini file, users still can see the link for create a new migration

@dvgoyeneche which version?

Last version
El 5 abr. 2021 17:12, a1012112796 @.***> escribió:
⚠ This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
@dvgoyenechehttps://github.com/dvgoyeneche which version?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/go-gitea/gitea/issues/15288#issuecomment-813445922, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL4ZAAS3D65CUD6EDWU7UNTTHHHOLANCNFSM42MNTKTA.

Solved in prerelease 1.14


[enhancement] Add missing bower.json.

Hey, maintainer(s) of padolsey/sonic.js!
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306  existing packages and  1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library padolsey/sonic.js is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json and  change attributes.
{
  "name": "padolsey/sonic.js",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email<EMAIL_ADDRESS>VersionEye - no more legacy software!

Thanks! (added, finally)


Add section in Docs for external React/Redux tutorials

We should add a section to the docs to highlight external React and Redux tutorials, like the EggHead video series Dan Abramov put together.  Should also link to the React and Redux docs themselves for more detailed learning about what Lore is abstracting over.  Especially since the more you want to modify Lore's behavior, the more you'll need to understand how Redux works.

Closing as new website includes tutorial links for each core technology:
http://www.lorejs.org/react/
http://www.lorejs.org/redux/
http://www.lorejs.org/webpack/
http://www.lorejs.org/react-router/


⚠ Bofrost.at has degraded performance

In 08c79cb, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1735 ms

Resolved: Bofrost.at performance has improved in 7a741d1 after 8 minutes.