data-vv-id not updated on properly on redraw.

Versions:

VueJs: 2.3.3
Vee-Validate: 2.0.0-rc.17 && 2.0.0-rc.23

Description:
data-vv-id does not change when a field is re-arraged on the screen.
Inside of a table I use a sort function and all the values for the input field are changed except for the data-vv-id.
Steps To Reproduce:
Please message me with @ if more info or a demo is required. Will need to put something together to demonstrate it that isn't my original code.

@Dahje data-vv-id is always static for the same field, it will never change. The plugin uses it to identify the element/component against the in memory field. What are you trying to use the data-vv-id for?

Hope this explains what is happening well enough. As you can see, the name and value move, but the data-vv-id stays and does not move with the rest of the values associated with the input box.

If you are using v-for try to add key attribute on each field and bind it to some unique value for each input like an ID. This is not related to vee-validate but rather to how Vue reuses the inputs.

You were 100% correct on this! I was using a v-for in my table row construction, and did have v-bind:key set. However I found a bug in my table settings where the default settings and props (passed in) settings were not being combined properly and my v-bind:key was being set to undefined. Thanks for the help!


Nginx 111: Connection refused errors.

I'm running ASP.NET Core Application behind Nginx. Sometimes, nginx will be given an error:
5181277 connect() failed (111: Connection refused) while connecting to upstream, client: x.x.x.x, server: , request: "GET /xxx/xxx?key=value HTTP/1.1", upstream: "http://xxxxx:1234/xxx/xxx?key=value", host: "xx.xxxxx.com"
The nginx configuration like this:
user  nginx;
worker_processes  1;
error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

#    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                      '$status $body_bytes_sent "$http_referer" '
#                      '"$http_user_agent"' '$http_x_forwarded_for' '"$proxy_add_x_forwarded_for"';

log_format main '{ "@timestamp": "$time_local", '
                         '"@fields": { '
                         '"remote_addr": "$remote_addr", '
                         '"remote_user": "$remote_user", '
                         '"upstream_addr": "$upstream_addr", '
                         '"upstream_response_time": "$upstream_response_time", '
                         '"body_bytes_sent": "$body_bytes_sent", '
                         '"request_time": "$request_time", '
                         '"status": "$status", '
                         '"request": "$request", '
                         '"request_method": "$request_method", '
                         '"request_uri": "$request_uri", '
                         '"http_referer": "$http_referer", '
                         '"body_bytes_sent":"$body_bytes_sent", '
                         '"http_x_forwarded_for": "$http_x_forwarded_for", '
                         '"proxy_add_x_forwarded_for": "$proxy_add_x_forwarded_for", '
                         '"http_user_agent": "$http_user_agent" } }';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    gzip  on;
    gzip_comp_level    5;
    gzip_min_length    256;
    gzip_proxied       any;
    gzip_vary          on;
    gzip_types
      application/atom+xml
      application/javascript
      application/json
      application/ld+json
      application/manifest+json
      application/rss+xml
      application/vnd.geo+json
      application/vnd.ms-fontobject
      application/x-font-ttf
      application/x-web-app-manifest+json
      application/xhtml+xml
      application/xml
      font/opentype
      image/bmp
      image/svg+xml
      image/x-icon
      text/cache-manifest
      text/css
      text/plain
      text/vcard
      text/vnd.rim.location.xloc
      text/vtt
      text/x-component
      text/x-cross-domain-policy;

    #
# Wide-open CORS config for nginx
#

    include /etc/nginx/conf.d/*.conf;
}

upstream visitor {
#        server <IP_ADDRESS>:5005;
        server <IP_ADDRESS>:5005;
    }

location ^~ /visitor/ {
        proxy_pass http://visitor/;

        proxy_buffer_size  128k;

        proxy_buffers   32 32k;

        proxy_busy_buffers_size 128k;
        proxy_http_version 1.1;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header REMOTE-HOST $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection keep-alive;
        proxy_set_header Host $host:$server_port;
        proxy_cache_bypass $http_upgrade;
    }

I'm sure my ASP.NET Core WebAPI is working well, but the client received 502 error. How can I resolve this problem?

The 502 is coming from nginx since it cannot connect to <IP_ADDRESS>:5005. Have you verified that you can connect to <IP_ADDRESS>:5005 from the machine running nginx?
Do you have ASP.NET Core's Logging enabled? This might not help if the dotnet process crashed or for some reason isn't running, but in that case using a watchdog process and capturing the dotnet processes's stdout/stderr to a file could help.

Have you verified that you can connect to <IP_ADDRESS>:5005 from the machine running nginx?
Yes, I can connect to <IP_ADDRESS>:5005 from the machine running nginx.
This error occurs only when there are too many requests, so I'm wondering what will Kestrel do when requests are more than Kestrel's processing capability? Does Kestrel will immediately refuse to connect?

@Jamesxql Can you connect directly to Kestrel using curl or something at the time you are seeing the 502 errors? Is the CPU close to 100% when this happens. Do you need to do anything to stop the 502 responses, or does it eventually start working again when the load dies down? As mentioned before, logs might be helpful.
Kestrel does have a ListenBacklog of 128 pending unaccepted connections, but I have not seen connections get refused before as a result of that backlog filling up. This is because Kestrel accepts connections immediately when the listen callback is fired, and no application or HTTP parsing code runs on the IO threads. I'm wondering if it's a crash or a deadlock causing the connection refused errors.

Do you need to do anything to stop the 502 responses, or does it eventually start working again when the load dies down
No, I don't need do anything to stop the 502 responses, it start working again when the load dies down.
And I found some information in the log file:
Jun 26 17:33:32 ip-172-31-5-38 component.westeros.visitor[15817]: Hosting environment: Production
Jun 26 17:33:32 ip-172-31-5-38 component.westeros.visitor[15817]: Content root path: /opt/feiniu/Component/Westeros/visitor
Jun 26 17:33:32 ip-172-31-5-38 component.westeros.visitor[15817]: Now listening on: http://<IP_ADDRESS>:5005
Jun 26 17:33:32 ip-172-31-5-38 component.westeros.visitor[15817]: Application started. Press Ctrl+C to shut down.
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at MySql.Data.MySqlClient.Results.Row.GetValue(Int32 ordinal)
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at MySql.Data.MySqlClient.MySqlDataReader.GetString(Int32 ordinal)
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at Westeros.Controllers.PassengerController.<>c__DisplayClass9_0.<<PassengerList>b__0>d.MoveNext()
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]: --- End of stack trace from previous location where exception was thrown ---
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
Jun 26 17:33:38 ip-172-31-5-38 component.westeros.visitor[15817]:    at System.Threading.ThreadPoolWorkQueue.Dispatch()
Jun 26 17:33:38 ip-172-31-5-38 systemd[1]: feiniu.component.westeros.visitor.service: Main process exited, code=killed, status=6/ABRT
Jun 26 17:33:38 ip-172-31-5-38 systemd[1]: feiniu.component.westeros.visitor.service: Unit entered failed state.
Jun 26 17:33:38 ip-172-31-5-38 systemd[1]: feiniu.component.westeros.visitor.service: Failed with result 'signal'.
Jun 26 17:33:48 ip-172-31-5-38 systemd[1]: feiniu.component.westeros.visitor.service: Service hold-off time over, scheduling restart.
Jun 26 17:33:48 ip-172-31-5-38 systemd[1]: Stopped Feiniubus API Visitor.
Jun 26 17:33:48 ip-172-31-5-38 systemd[1]: Started Feiniubus API Visitor.
Jun 26 17:33:49 ip-172-31-5-38 component.westeros.visitor[15856]: Hosting environment: Production
Jun 26 17:33:49 ip-172-31-5-38 component.westeros.visitor[15856]: Content root path: /opt/feiniu/Component/Westeros/visitor
Jun 26 17:33:49 ip-172-31-5-38 component.westeros.visitor[15856]: Now listening on: http://<IP_ADDRESS>:5005
Jun 26 17:33:49 ip-172-31-5-38 component.westeros.visitor[15856]: Application started. Press Ctrl+C to shut down.

But, why the program exception will cause Kestrel to restart?

The exceptions seems to be coming from MySql through a ThreadPool thread.  Most likely a bug in PassengerController.
If you're still having issues, please file another bug with details.  Thanks.


Question: Is there an easy way to dismiss panel when user taps on main content?

First off, I absolutely love this package, it was super simple to implement and really added a nice professional touch to my app.
Now for my question: I have a panel that is not the full height the screen, so it stops about halfway up with all the content showing, and the main content is still visible towards the top of the screen underneath the tint/shadow. Additionally, if using an anchor point I imagine you might have the same question. To me it seems intuitive to tap on the main content aboce the panel to dismiss it. Is there a simple way to implement this using the package? I wasn't able to see anything obvious on a cursory glance through the source code.

Silly me, totally missed the SlidingUpPanelLayout.setFadeOnClickListener method! Unfortunately this event does not capture a click on part of my UI but I can just register the same listener against that elements onclick too.


[CS2103T-T09-4] iBook

iBook is an inventory recording system for stockkeepers to manage incoming and outgoing products in a store.

Codecov Report

Merging #35 (6cdd857) into master (4f7660a) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #35   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

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


yaffshiv: init at 0-unstable-2024-08-30

Things done

Adds yaffshiv at 0-unstable-2024-08-30
https://github.com/devttys0/yaffshiv

Add yaffshiv to binwalk for YAFFS support

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage

[ ] Tested basic functionality of all binary files (usually in ./result/bin/)

24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@natsukium Thx!


Add some missing | undefined in parser.ts

@andy-ms Note that | undefined has zero effect unless you're compiling with --strictNullChecks. There are undoubtedly many (many!) more places where we'd need to add these, so I'm not sure it makes a lot of sense to add only a few random ones.

@ahejlsberg That's a fair point, but I'm skeptical of whether we will be willing to make an all-at-once refactoring to operate in strictNullChecks. If we don't intend on ever migrating to strictNullChecks, then I'd tend to agree more, but incrementally annotating doesn't seem like a huge problem.
I acknowledge that it can be misleading to add these annotations for external users, but internally we are aware that we're not strictNullCheck-compliant.

My issue with these unchecked | undefined annotations is that they lure you into thinking that functions without the annotations will not accept or produce undefined values--which isn't the case. The fact is that until we switch to --strictNullChecks you can't tell from the annotations whether undefined is a permitted value or not, so I'd rather not pretend that you can.

I've been adding T | undefineds in some places just to help myself keep track of which functions do/don't return undefined. It's better than a comment and once we do move to SNC (which I hope is inevitable) it'll be less work.


Adding documentation on specifying pixel type as part of reading.

resolves #1835

I don't think we should change the current examples.
The explicit specification of the output pixel type is the exception and not the rule. Don't want to teach folks to do this when they start learning SimpleITK. For less experienced users will likely result in bugs, unexpected mismatch between actual and read pixel values.


DigitalOcean

`DigitalOcean`
`#2481B7`
Github does not support .svg, so we are just going to link to a public google drive folder for now - https://drive.google.com/open?id=0B9EgKynIClM7LXBLQWY3X2xFeVU
Let us know if this is sufficient until we figure out a build process and can submit PRs.

@cmcky I’ve added a rough build process to the README.
DigitalOcean was a particularly interesting one, since the vector assets they provide were faulty (there were portions of the left-hand curve of the cloud that had intersecting strokes). I’ve fixed it and added it. The colour used on the site’s logo SVG is #3190E7.


[CLEANUP] Update jquery version for repositories

@ddiroma

@bmorrise,
The common-ui version disappeared from the CE assembly because the marketplace no longer depends on it. It is a good choice to also update jquery in this plugin, but it reveals the pom.xml dependencies aren't correct and other assembly changes due to unrelated projects can lead to future problems.
Also noticed the pom.xml has a reference to the unsafe angular-sanitize 1.2.15 (http://jira.pentaho.com/browse/PPP-3559). It has no effect, as https://github.com/bmorrise/pentaho-kettle/commit/22ffa257b338bab63c08d3ebb83baefbc419816a updated the META-INF/js/require.json referece, but it would be recommended to update it.
FYI @pamval

@nantunes Originally the decision was made to piggyback on what marketplace had in terms of libraries, but as you point out, this was a poor decision. I'm going to update this project in the next couple of days so we won't have potential problems going forward. In addition to angular-sanitize having no effect, I discovered that other dependencies in this pom are also not necessary. I have a commit that will do some of this clean up as well.


[feature] Allow passing GraphQLSchema directly

This allows passing an already instantiated GraphQLSchema in addition to an introspection fetcher or an actual introspection result. Use case is I've got somewhere where I already have the instantiated schema but not access to the introspection result (and not the endpoint to get it either).
Please let me know if there are any questions or anything I can clarify further.

@zth Thanks for PR 👍
After thinking about this, the ideal long term solution would be to copy the interface of GraphiQL and add separate schema and fetcher properties.
Do you have time to work on such PR?
If not you can use introspectionFromSchema function as temporary solution, see here:
https://github.com/APIs-guru/graphql-voyager/blob/02ce607e49ad9169c5af58413b35e9b81300e80c/demo/IntrospectionModal.tsx#L77

@IvanGoncharov thanks for having a look! Sounds like a good approach. I pushed some more changes, is that more in line with what you had in mind?

I pushed some more changes, is that more in line with what you had in mind?

@zth Thanks a lot for the changes 👍
Since we currently in the RC phase we can do breaking changes so we can literally copy the GraphiQL interface:

rename introspection to fetcher and restrict it to accept only functions with the same signature as in GraphiQL
first we should use schema and only if it absent use fetcher to fetch introspection

Ok, great! I'll work on this as soon as I have a chance. Talk to you in a while!

@IvanGoncharov there, I've pushed some new changes. Please have a look and get back to me.

Just a quick status update: I've been sidetracked and currently won't have time to continue this, but I'll ping you again as soon as I do! Thanks for reviewing :+1: :smile:

Implemented in #340


Vercel: Trying to install "turbo-linux-64" using npm EACCES: permission denied

What version of Turborepo are you using?
1.0.19
Describe the Bug
I'm following this guide https://vercel.com/docs/concepts/git/monorepos#turborepo
Trying to deploy an app on vercel, the app is inside a monorepo that is generated with turbo cli.
I have changed the BUILD COMMAND to:
cd ../.. && npx turbo run build --scope=@scope/app --includeDependencies --no-deps

And I get the following output:

Expected Behavior
The expected behavior is of course that following this guide should simply work.
To Reproduce

Include source files outside of the Root Directory in the Build Step is checked:

packae.json in the root directory:

{
    "version": "0.0.0",
    "private": true,
    "workspaces": [
      "apps/*",
      "packages/*"
    ],
    "scripts": {
      "build": "turbo run build",
      "dev": "turbo run dev --parallel",
      "lint": "turbo run lint",
      "format": "prettier --write \"**/*.{ts,tsx,md}\""
    },
    "devDependencies": {
      "prettier": "^2.5.1",
      "turbo": "latest"
    },
    "turbo": {
      "baseBranch": "origin/main",
      "npmClient": "npm",
      "pipeline": {
        "build": {
          "dependsOn": [
            "^build"
          ],
          "outputs": [
            "dist/**",
            ".next/**"
          ]
        },
        "lint": {
          "outputs": []
        },
        "dev": {
          "cache": false
        }
      }
    },
    "engines": {
      "npm": ">=7.0.0",
      "node": ">=14.0.0"
    }
  }

same issue here since today, no idea how to fix this one or if it is on Vercel side to fix.

Also experiencing this issue as of today. Not sure how to fix this either.

I’m also experiencing the same issue.
I can get past it  with the following install command
npm install turbo@latest && npm install

But then I run into the next issue:
web:build: error TS6053: File 'tsconfig/nextjs.json' not found.

i solved by removing all package-lock.json files. now it builds with yarn instead of npm and it works again

I confirm that using yarn instead of npm fixed the issue

Also confirmed. Removed the package-lock.json and changed the build command to:
cd ../.. && yarn turbo run build --scope=web --includeDependencies --no-deps

yarn turbo run build etc... is giving me error Command "turbo" not found when deploying to Vercel, but working locally. Am I making a silly mistake here?

@joshsny In your turborepo project root, make sure you've run yarn install. That fixed that error for me.

This is fixed in turbo@canary

This is now released in turbo@latest.
SORRRY for the headaches!

Same here ...
Cloning completed: 1.406s
--
19:48:03.644 | Analyzing source code...
19:48:04.214 | Installing build runtime...
19:48:07.506 | Build runtime installed: 3.292s
19:48:09.718 | No Build Cache available
19:48:10.432 | Installing dependencies...
19:48:10.435 | Detected `package-lock.json` generated by npm 7...
19:48:25.704 |
19:48:25.704 | added 402 packages in 15s
19:48:25.705 |
19:48:25.705 | 65 packages are looking for funding
19:48:25.705 | run `npm fund` for details
19:48:25.728 | Detected Next.js version: 12.0.3
19:48:25.924 | Running "cd ../.. && npx turbo run build --scope=docs --includeDependencies --no-deps"
19:48:29.260 | • Packages in scope: docs
19:48:29.260 | • Remote computation caching enabled (experimental)
19:48:29.260 | • Running build in 1 packages
19:48:29.742 | docs:build: cache miss, executing f29a2c64e148c9c9
19:48:29.966 |
19:48:29.966 | docs:build: ><EMAIL_ADDRESS>build /vercel/path0/apps/docs
19:48:29.966 | docs:build: > next build
19:48:29.966 |
19:48:30.694 | docs:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
19:48:30.694 | docs:build: This information is used to shape Next.js' roadmap and prioritize features.
19:48:30.695 | docs:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
19:48:30.695 | docs:build: https://nextjs.org/telemetry
19:48:30.695 |
19:48:30.739 | docs:build: info  - Checking validity of types...
19:48:30.997 | docs:build: error TS6053: File 'tsconfig/nextjs.json' not found.
19:48:30.997 |
19:48:30.997 | docs:build: npm ERR! code ELIFECYCLE
19:48:30.997 | docs:build: npm ERR! errno 1
19:48:30.998 | docs:build: npm ERR<EMAIL_ADDRESS>build: `next build`
19:48:30.998 | docs:build: npm ERR! Exit status 1
19:48:30.998 | docs:build: npm ERR!
19:48:30.998 | docs:build: npm ERR! Failed at the<EMAIL_ADDRESS>build script.
19:48:30.998 | docs:build: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
19:48:30.998 |
19:48:30.998 | docs:build: npm ERR! A complete log of this run can be found in:
19:48:30.998 | docs:build: npm ERR!     /vercel/.npm/_logs/2021-12-23T16_48_30_987Z-debug.log
19:48:30.998 | docs:build: Error: command finished with error: exit status 1
19:48:31.000 | Command failed: /vercel/.npm/_npx/401/lib/node_modules/turbo/node_modules/turbo-linux-64/bin/turbo run build --scope=docs --includeDependencies --no-deps
19:48:31.012 | Error: Command "cd ../.. && npx turbo run build --scope=docs --includeDependencies --no-deps" exited with 1


Unable to install atom-beautify

Installing<EMAIL_ADDRESS>failed.Hide output…

npm ERR! tar.unpack error reading /tmp/d-118227-19898-1f254hm.itwy4lsor/package.tgz
npm ERR! addLocal Could not install /tmp/d-118227-19898-1f254hm.itwy4lsor/package.tgz
npm ERR! Linux 4.13.0-37-generic
npm ERR! argv "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/gabriel/.atom/.apm/.apmrc" "--userconfig" "/home/gabriel/.atom/.apmrc" "install" "/tmp/d-118227-19898-1f254hm.itwy4lsor/package.tgz" "--runtime=electron" "--target=1.6.16" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10

npm ERR! 0-byte tarball
npm ERR! Please run `npm cache clean`
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-118227-19898-58l9i9.faorctbj4i/npm-debug.log

That's the error I've been having for the past day trying to install atom-beautify

Close Atom completely and try running these commands from the terminal:
apm clean
npm cache verify
Then try again.

@szeck87 I'm still getting the same error

I've fixed the issue.
This was where I found my solution
https://github.com/atom/atom/issues/11798

In windows i have
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
npm WARN deprecated<EMAIL_ADDRESS>Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Users\iFranco\AppData\Local\atom\app-1.30.0\resources\app\apm\bin\node.exe" "C:\Users\iFranco\AppData\Local\atom\app-1.30.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\iFranco\.atom\.apm\.apmrc" "--userconfig" "C:\Users\iFranco\.atom\.apmrc" "install" "C:\Users\iFranco\AppData\Local\Temp\d-118731-7472-1rzyzv6.ry0uj714i\package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code EREADFILE
npm ERR! Error extracting C:\Users\iFranco.atom.apm\marko\4.13.3\package.tgz archive: ENOENT: no such file or directory, open 'C:\Users\iFranco.atom.apm\marko\4.13.3\package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\iFranco\AppData\Local\Temp\apm-install-dir-118731-7472-1n6hv2y.ak2xz5b3xr\npm-debug.log
Issue: Atom cannot install atom-beautify 2018/08/31 #2213

I have tried to install atom-beautify, but it is failed and I got this message:
Installing<EMAIL_ADDRESS>failed.Hide output…
npm ERR! Unexpected end of JSON input while parsing near '...s5R3faGZC94HXqk2w8how'
npm ERR!      C:\Users\Nova.atom.apm_logs\2020-02-01T07_12_32_929Z-debug.log
how can i solve this?

I'm almost frustrated
guys you only need to delete the .apm folder inside the .atom folder
Please try cz that's work for me:)))

I'm almost frustrated
guys you only need to delete the .apm folder inside the .atom folder
Please try cz that's work for me:)))

I have tried to install atom-beautify and i got this message:
Installing<EMAIL_ADDRESS>failed.Hide output…
undefined
How can i solve this?


Convert short CG names to full names

          Sure! The issue seems to be due to the names of commodity groups. The short names (e.g. `NRGO`) have to be converted to full names (e.g. `ProcessName_NRGO`)

Originally posted by @olejandro in https://github.com/samwebster/times-excel-reader/issues/73#issuecomment-1492254525

Fixed by #75


Handle GitHub repository names that contain '.'

It is possible for a GitHub repository to contain the "." character. For example:
git@github.com:username/example.com.git

Before, circleci-cli would parse this incorrectly, returning username/example as the repository name. This commit fixes this bug, such that username/example.com is returned as expected.
This fixes the following error when circleci-cli is run in a project that has a '.' in its GitHub repository name:
$ circleci-cli builds
Traceback (most recent call last):
  14: from bin/circleci-cli:23:in `<main>'
  13: from bin/circleci-cli:23:in `load'
  12: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/exe/circleci-cli:6:in `<top (required)>'
  11: from lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
  10: from lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
   9: from lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
   8: from lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
   7: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli.rb:33:in `builds'
   6: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/command/builds_command.rb:16:in `run'
   5: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/response/build.rb:11:in `all'
   4: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/response/build.rb:11:in `map'
   3: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/response/build.rb:11:in `each'
   2: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/response/build.rb:11:in `block in all'
   1: from lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/response/build.rb:11:in `new'
lib/ruby/gems/2.6.0/gems/circleci-cli-2.1.0/lib/circleci/cli/response/build.rb:44:in `initialize': no implicit conversion of String into Integer (TypeError)

That's a nice catch! ⚾
And thanks a lot for simple and sufficient tests :pray:

@all-contributors please add @mattbrictson for code, test


Add -minimal option for webapi

Fixes #27768

@tdykstra this looks good for me. tagging @mkArtakMSFT and @captainsafia to review it as the change is related to ASP.NET templates.


binary is saved in root

when making the binary the unik binary is saved in /_build instead of <current folder>/_build

can you paste the output of the make or make binary command as a snippet in this thread?

tested myself on Ubuntu 14.04, 1956202ed9ad4be084c67000601e2b02bea6a130 fixed this issue for me. can you confirm if it works for you as well?

yes, the binary is now created in the correct folder


License Needed

Can you add a license so we know how we can use this code?

Sure, done.

thank you!


Add i18n system

Hey! Thank you for your great work 😄
I had some difficult with all english name for maps and items. So I adding a simple i18n system and my native language (french).
I not have translated gears for the moment as I don't want to take time to translate all if this work will not be useful 👍 But I can add it after if wanted!

Hey @Toinane, first of all, thank you for your effort with this!

I not have translated gears for the moment as I don't want to take time to translate all if this work will not be useful

Eventually, all map/gear name translations will be loaded automatically from SplatNet, so there's no need to do this manually. That's the next thing I plan on working on.
I need a little time to review this (and to check whether vue-i18n will handle all the internationalization needs of the site) but I really appreciate your help! I'll let you know if there are any issues 😄

thank you for your response! 😃 let me know if I need to change something!

Hey @Toinane, I just made a few tweaks to this and deployed it to production. You did a great job with this PR, and it really helped make things easier for me 😄
Thank you again for all your effort!

Hey @misenhower happy that help you :D Thank you too for the great job it's really useful!


Inconsistent or incorrect explanations for VNet Peering options

Hi there, there looks to be inconsistent or incorrect explanations for VNet Peering options between what is shown on this page versus what is displayed in the Azure Portal.  Please advise, thanks!
Created a VNet peering between SpokeVNEtUKSouth & HubVNetSEA in the Azure Regions UK South & South East Asia respectively.  In HubVNetSEA I deployed a VPN Gateway.
Below are the inconsistencies I found.
This is for the peering relationship from SpokeVNetUKSouth to HubVNetSEA
Allow traffic to remote virtual network

versus

Allow traffic forwarded from the remote virtual network (allow gateway transit)

versus

This is for peering relationship from HubVNetSEA to SpokeVNetUKSouth.
Allow traffic to current virtual network

versus

Allow traffic forwarded from current virtual network (allow gateway transit)

versus

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

  Just created the VNet peering again.  Below is the screenshot.

The above was attempted on 2nd Oct 2023.  Am not seeing my VNet's name being included as part of the portal interface.  Can this be due to a Blue/Green deployment of the updated interface?
As for the options in the doc, the version I read on the 29th September 2023 was dated 27th August 2023.  Here's the pdf printout.
VNet Peering Documentation dated 27th Aug 2023.pdf

@MSFT-mengchong , I believed the difference could be due to classic vs preview portal UI but this doesn't seem to be true as I checked a couple of subscriptions and in both of them, I was getting the same above view that I attached a screenshot of.
So, the only possibility is that the new Vnet peering view is getting deployed in a phased manner and hence not all subscriptions are updated yet. But let us get it confirmed.
@asudbring , could you please check why there is a difference in the Vnet peering options? And also, which is the latest GA option available?

@GitaraniSharma-MSFT.  Roger that.  Thanks for your verification efforts!

@MSFT-mengchong
Thanks for the feedback!
The peering experience in portal is going through some changes and only a subset of customers can see the changes with how they release portal changes.  We are aware of the changes and have work items to update our articles when the portal experience is fully rolled out and completed.
#please-close


Have the docker image for Raspberry Pi

Thank a lot for this image, this is so much simple to setup a personal VPN.
I have tried to launch it to check my connection, now I'd like to launch this vpn server permanently on a RaspberryPi. This would mean to build the image for ARM CPUs and not x86 ones.
This would be so much simple to setup Your Own Personal Jes... heu Vpn ;)

For now you can use my version (https://github.com/brummelte/docker-openvpn-arm) and build it yourself. Tested on raspberry pi 2.
Clone and then build with: docker build -f Dockerfile.arm .
Maybe @kylemanna merges my pull request and pushes another image to docker hub. Then we could use that version.

Nice PR, thanks a lot.


[Help Wanted]: please give a detail guid to develop locally

Before Reporting

[X] I have checked FAQ, and there is no solution to my issue
[X] I have searched the existing issues, and there is no existing issue for my issue

Describe your issue
I want help!
HI ,could you please give a detail guid about how to build and debug the app in a local machine. We maintained our own LLM, and we want to try the code copilot with this app. But we have no idea how to build and debug the app, so that we can re-develop it to connect to our own LLM service.
Thanks

If you need to change the chat provider to use your own LLM, you can simply make it conform to OpenAI API format, set the model name to one of the names known by the app (e.g. gpt-3.5-turbo), and change the base URL to point to your own server.
For development instructions, please read DEVELOPMENT.md.

hi，thanks for help!  We decide to follow your suggestion, provide owner own LLM.  However, we are not sure which API format we should conform. Could you please tell us, which OpenAI API you have used in this project? Or you can tell us the code about calling api, so we can list by ourselves. Thanks

The chat completion API is used in the app. https://platform.openai.com/docs/api-reference/chat
The settings have changed a lot since the last reply.
You can setup an OpenAI compatible chat model after setting up your own chat completion API. Be sure to turn off the function calling toggle if it's not supported by your model.

I checked your question again, if you want to use your LLM as a provider for the suggestion feature, it's not supported yet.
In the future we may support Tabby to allow using custom LLM to generate suggestion.
If you want it now, you will have to implement you own SuggestionProvide. Please use CodeiumSuggestionProvider as an example.

OK，thanks intitni. I did want to use the my LLM for suggestion feature instead of chat feature.  I will try your suggestion.


2.0.0rc

Currently testing HTML and JSON for the 2.0.0rc, available here as the v2 branch.
Fixed issue with improper session verification using Guardian plugs in most recent commit. Working through ensuring there are no other issues.
Given the way it looks to be performing we should have a 2.0.0 official release by next Monday.

New issue in the RC with the HTML password reset request form, working to resolve.

Wrapped up issue with password reset flow in latest commit, verifying the HTML flow for invitable and confirmable.

Verified HTML invitable flow and confirmable, including setting up a new email address.

Published 2.0.0 this morning in Hex.

Thank you!
I will be testing it this week in an app!

On 6 Feb 2017, at 14:28, Britton Broderick<EMAIL_ADDRESS>wrote:
Published 2.0.0 this morning in Hex.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@tierralibre if you run into any problems don't hesitate to submit to submit an issue.


Update setup.py to 3.0.0

Release 3.0.0

Codecov Report

Merging #717 (671c358) into main (97f554b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #717   +/-   ##
=======================================
  Coverage   92.18%   92.18%
=======================================
  Files          19       19
  Lines        1727     1727
=======================================
  Hits         1592     1592
  Misses        135      135

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


feat: add orlangure/gocovsh

orlangure/gocovsh: Go Coverage in your terminal: a tool for exploring Go Coverage reports from the command line 💻
$ aqua g -i orlangure/gocovsh

How to confirm if this package works well
Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.
Command and output
$ gocovsh --help
gocovsh: Go Coverage in your terminal

Usage: /Users/lars/.local/share/aqua/pkgs/github_release/github.com/orlangure/gocovsh/v0.6.1/gocovsh_0.6.1_darwin_amd64.tar.gz/gocovsh [options]

If provided, stdin is expected to be a list of files to be processed, for example:

        git diff --name-only | /Users/lars/.local/share/aqua/pkgs/github_release/github.com/orlangure/gocovsh/v0.6.1/gocovsh_0.6.1_darwin_amd64.tar.gz/gocovsh

Supported options:

  -profile string
        File name of coverage profile generated by go test -coverprofile coverage.out (default "coverage.out")
  -sort-by-coverage
        sort files by coverage instead of alphabetically
  -version
        show version

If files such as configuration file are needed, please share them.

6e128b7 style: remove an emoji
https://aquaproj.github.io/docs/reference/registry-style-guide#dont-use-emojis-as-much-as-possible

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.95.0


[IMGPROC] drawMarker with triangle-up marker type

The cv::drawMarker function draws the wrong shape for the cv::MARKER_TRIANGLE_UP marker.
Here is an example using OpenCV 3.1.0 Python bindings (of course the same happens from C++):
import numpy as np
import cv2

markers = [
    cv2.MARKER_CROSS,
    cv2.MARKER_TILTED_CROSS,
    cv2.MARKER_STAR,
    cv2.MARKER_DIAMOND,
    cv2.MARKER_SQUARE,
    cv2.MARKER_TRIANGLE_UP,
    cv2.MARKER_TRIANGLE_DOWN
]

img = np.zeros((100,400,3), dtype=np.uint8)
x = 50
for mt in markers:
    img = cv2.drawMarker(img, (x,50), (0,0,255),
        markerType=mt, markerSize=30, thickness=2, line_type=cv2.LINE_AA)
    x += 50

cv2.imshow('Draw Marker', img)
cv2.waitKey(0)
cv2.destroyAllWindows()

(notice the next-to-last shape, which should be a triangle pointing upward △).

Thanks for reporting! A typo on my side it seems!


fix deprecated method

CFURLCreateStringByAddingPercentEscapes() are inadequate in ios 9 later。

Should also probably check for the presence of the selector, rather than using macros to compare to a specific iOS version.

See f50d314bfb904c65be39ee703b188b52a26a5679.
I ended up not checking for the stringByAddingPercentEncodingWithAllowedCharacters: selector because it seems to me that it's important to have consistent behavior between different versions of iOS. As such, it goes with the newest option which is supported across all deployment versions.


Add Microsoft Image Composite Editor

May you remove of Microsoft Corporation from the description? (it is obvious sice we are on killed by microsoft.)  Also I think you should try to resync with master branch. Thanks for the contribution!

@fabianoriccardi Done & done.

Done, thanks again!


Website For The Project

Website for the Project with HTML, CSS, JS and with Firebase

Sir, what do you want to store into the DB? name of the users or something else like issues or PR's

I can try the frontend !

I can work on the Frontend using React or simple HTML, CSS and JS if you say!


Python_tool

Python version of work by Luca Modenese in the parameterisation of muscle tendon properties.
Building on Python 3.7 and OpenSim 4.2.
The algorithm was evaluated running models included in folder Example_case.

Hi @eravera, thank you for the contribution!
I see that the code is well contained in its own folder so I will merge it and we can work directly on the main repository (much easier faster to debug). I will add a note to the repository readme to make clear that the tool is still under development. I am sure you have done a good job but I want to check it properly. Once everything is setup properly I will remove the note of course.


SQLx-cli v0.5.6 not released

It seems that SQLx (not cli) v0.5.6 is released, but the CLI hasn't. Since v0.5.5 broke our CI is there a timeline for this release?
Also could v0.5.5 maybe be yanked considering it's broken? That would fix our CI as well.

Have you tried installing an older version? It shouldn't work either. It's not sqlx-cli that is broken, it's clap's beta version dependencies. You can install with --locked and it will still work.

sqlx-cli 0.5.6 is published now.


Indexing README.md

Just a indexing in the phrase "You can define your your rules.".
The correct would be "You can define your own rules."
BTW, thanks for the awesome gem :gem: !

Thanks!


Fix security based TOML configurations

This addresses part of issue 282
Update TOML configuration files to use the correct path and protocol
when obtaining secrets from Vault.
Update export-distro and sys-mgmt-agent to not use
secret.BootstrapHandler as they do not need to obtain secrets even when
security is enabled.
Update security-secretstore-setup to include core-command as part of the
secret generation process by updating the associated TOML.
Signed-off-by: Anthony M. Bonafide<EMAIL_ADDRESS>

https://github.com/edgexfoundry/blackbox-testing/issues/282

Codecov Report

Merging #1983 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1983      +/-   ##
==========================================
+ Coverage   44.06%   44.07%   +<.01%
==========================================
  Files         186      186
  Lines       11657    11655       -2
==========================================
  Hits         5137     5137
+ Misses       6224     6222       -2
  Partials      296      296

Impacted Files
Coverage Δ

cmd/export-distro/main.go
0% <ø> (ø)
:arrow_up:

cmd/sys-mgmt-agent/main.go
0% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


RuntimeError when using torchaudio 0.12.0 to load MP3 audio file

Current version of torchaudio (0.12.0) raises a RuntimeError when trying to use sox_io backend but non-Python dependency sox is not installed:
https://github.com/pytorch/audio/blob/2e1388401c434011e9f044b40bc8374f2ddfc414/torchaudio/backend/sox_io_backend.py#L21-L29
def _fail_load(
    filepath: str,
    frame_offset: int = 0,
    num_frames: int = -1,
    normalize: bool = True,
    channels_first: bool = True,
    format: Optional[str] = None,
) -> Tuple[torch.Tensor, int]:
    raise RuntimeError("Failed to load audio from {}".format(filepath))

Maybe we should raise a more actionable error message so that the user knows how to fix it.
UPDATE:

this is an incompatibility of latest torchaudio (0.12.0) and the sox backend

TODO:

[x] as a temporary solution, we should recommend installing torchaudio<0.12.0

#4777
#4785

[ ] however, a stable solution must be found for torchaudio>=0.12.0

Related to:

https://github.com/huggingface/transformers/issues/18379

Requiring torchaudio<0.12.0 isn't really a viable solution because that implies torch<0.12.0 which means no sm_86 CUDA support which means no RTX 3090 support.
But in my case, the error only occurs if _fallback_load resolves to _fail_load inside torchaudio 0.12.0 which is only the case if FFMPEG initialization failed:  https://github.com/pytorch/audio/blob/b1f510fa5681e92ee82bdc6b2d1ed896799fc32c/torchaudio/backend/sox_io_backend.py#L36-L47
That means the proper solution for torchaudio>=0.12.0 is to check torchaudio._extension._FFMPEG_INITIALIZED and if it is False, then we need to remind the user to install a dynamically linked ffmpeg 4.1.8 and then maybe call torchaudio._extension._init_ffmpeg() to force a user-visible exception showing the missing ffmpeg dynamic library name.
On my system, installing

libavcodec.so.58
libavdevice.so.58
libavfilter.so.7
libavformat.so.58
libavutil.so.56
libswresample.so.3
libswscale.so.5
from ffmpeg 4.1.8 made HF datasets 2.3.2 work just fine with  torchaudio 0.12.1+cu116:

import sox, torchaudio, datasets
print('torchaudio', torchaudio.__version__)
print('datasets', datasets.__version__)
torchaudio._extension._init_ffmpeg()
print(torchaudio._extension._FFMPEG_INITIALIZED)
waveform, sample_rate = torchaudio.load('/workspace/.cache/huggingface/datasets/downloads/extracted/8e5aa88585efa2a4c74c6664b576550d32b7ff9c3d1d17cc04f44f11338c3dc6/cv-corpus-8.0-2022-01-19/en/clips/common_voice_en_100038.mp3', format='mp3')
print(waveform.shape)

torchaudio 0.12.1+cu116
datasets 2.3.2
True
torch.Size([1, 369792])

Related: https://github.com/huggingface/datasets/issues/4889

Closing as we no longer use torchaudio for decoding MP3 files.


Require a token for all API endpoints

Overview
Adds an authentication requirement to all API endpoints.

Required for accurately reporting on API usage.
Allows for disabling accounts that accidentally or maliciously overuse the APIs.

Maintains the ability for the web application to make API requests on behalf of unauthenticated users.
Connects #636
Demo

Notes
I have added an OAR_CLIENT_KEY to the staging tfvars file. There is a checklist item on this PR to make sure the next release issue includes updating the production tfvars file.
Testing Instructions
Setup

./scripts/manage resetdb
./scripts/manage loadfixtures
./scripts/manage processfixtures

Enable Rollbar in development

Set the ROLLBAR_SERVER_SIDE_ACCESS_TOKEN value in .env.backend
Enable Rollbar in settings.py

diff --git a/src/django/oar/settings.py b/src/django/oar/settings.py
index 10c2f02..bb0a11e 100644
--- a/src/django/oar/settings.py
+++ b/src/django/oar/settings.py
@@ -338,7 +338,7 @@ if GOOGLE_SERVER_SIDE_API_KEY is None:
     raise ImproperlyConfigured(
         'Invalid GOOGLE_SERVER_SIDE_API_KEY provided, must be set')

-if not DEBUG:
+if True:
     ROLLBAR = {
         'access_token': os.getenv('ROLLBAR_SERVER_SIDE_ACCESS_TOKEN'),
         'environment': ENVIRONMENT.lower(),

Test

Start ./scripts/server.
Ensure that you are not logged in to the application
Verify that you can use the application as normal.
Verify that curl http://localhost:6543/api/countries/ returns a response.
Set an OAR_CLIENT_KEY env var in docker-compose.yml and restart ./scripts/server

diff --git a/docker-compose.yml b/docker-compose.yml
index a769732..1f477a4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -25,7 +25,7 @@ services:
         - DJANGO_SECRET_KEY=secret
         - DJANGO_LOG_LEVEL=INFO
         - AWS_PROFILE=${AWS_PROFILE:-open-apparel-registry}
-        - OAR_CLIENT_KEY=
+        - OAR_CLIENT_KEY=clientkey
     build:
       context: ./src/django
       dockerfile: Dockerfile

Verify that you can still use the application as normal.
Verify that curl http://localhost:6543/api/countries/ now returns an error message and that an "Incorrect client key submitted with API request" occurrence is logged to Rollbar

{"detail":"Authentication credentials were not provided."}

Make a request with a client key header

curl \
  -H "X-OAR-Client-Key: clientkey" \
  http://localhost:6543/api/countries/

Verify that the same authentication error is returned, but an "Unallowed referring host passed with API request" warning is logged in Rollbar.
Make a request with a client key and a referrer

curl \
  -H "X-OAR-Client-Key: clientkey" \
  -H "Referer: http://localhost:6543" \
  http://localhost:6543/api/countries/

Verify that it is sucessful
Log in to the web app as<EMAIL_ADDRESS>Browse http://localhost:6543/profile/2 and generate an API token
Make an authenticated request with the token and verify that it succeeds.

curl \
  -H "Authorization: Token {{API-TOKEN}}" \
  http://localhost:6543/api/countries/

Checklist

[ ] fixup! commits have been squashed
[ ] CI passes after rebase
[ ] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines
[ ] Add a checklist item to the next release issue for adding an OAR_CLIENT_KEY to  the tfvars.

Temporarily closed to trigger a build and deploy of the test branch to staging.

Taking a look now

This broke AWS Batch jobs on staging because the new OAR_CLIENT_KEY environment variable is not set correctly. I'll be pushing a fix, but it will likely just be a fix to the provisioning.

Temporarily closing to trigger a new build and deploy.

Rollbar logs warnings for "incorrect client key" and "unallowed referring host", but not for "invalid token"

This is by design. This new client key system is wholly separate from token-based authentication. Passing the wrong token is just like entering the wrong password, and we are currently not doing any special logging for failed authentication.
RE: The Rollbar re-init warning thanks for mentioning it. It was worth doing a little reading to understand what is going on. This PR sums up our situation and why it is expected.
https://github.com/rollbar/pyrollbar/pull/198

This is annoying in configurations where init() is expected
to be called twice. One such configuration is a Django project where the
rollbar middleware is installed (which calls rollbar.init() internally),
but the project also needs to be able to run without the middleware (from
headless scripts, etc.)

I will take advantage of the feature added in that PR and suppress the innocuous warning.

Thanks for the thoughtful review.


feat: Added MSSQL

First pass at MSSQL support
Outstanding Issues

[ ] Fix CI
[ ] MSSQL Unique constraints do not allow duplicate nulls. This causes a lot of unrelated tests to fail
[ ] MSSQL Is more strict about cascading deletes

Ok time for some more detailed notes.
So a MSSQL driver is mostly implementable with the current interfaces so thats good. Most of the issues stem from differences in MSSQL.
Cascading Deletes
Example 1
CREATE TABLE [nodes]
(
    [id]        bigint IDENTITY (1,1) NOT NULL,
    [value]     bigint                NULL,
    [node_next] bigint UNIQUE         NULL,
    CONSTRAINT [nodes_id_pk] PRIMARY KEY ([id])
)

ALTER TABLE [nodes]
    ADD CONSTRAINT [nodes_nodes_next] FOREIGN KEY ([node_next]) REFERENCES [nodes] ([id]) ON DELETE SET NULL;

Error:
[2020-05-08 14:06:45] [S0000][1785] Introducing FOREIGN KEY constraint 'nodes_nodes_next' on table 'nodes' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.

Resolution:
Change the constraint to
ALTER TABLE [nodes]
    ADD CONSTRAINT [nodes_nodes_next] FOREIGN KEY ([node_next]) REFERENCES [nodes] ([id]) ON DELETE NO ACTION ;

This requires  overriding the cascade rule for Edges
Example 2
CREATE TABLE [users]
(
    [id]            bigint IDENTITY (1,1) NOT NULL,
    [optional_int]  bigint                NULL,
    [age]           bigint                NOT NULL,
    [name]          varchar(255)          NOT NULL,
    [last]          varchar(255)          NOT NULL DEFAULT 'unknown',
    [nickname]      varchar(255) UNIQUE   NULL,
    [phone]         varchar(255) UNIQUE   NULL,
    [password]      varchar(255)          NULL,
    [role]          varchar(255)          NOT NULL,
    [sso_cert]      varchar(255)          NULL,
    [group_blocked] bigint                NULL,
    [user_spouse]   bigint UNIQUE         NULL,
    [user_parent]   bigint                NULL,
    CONSTRAINT [users_id_pk] PRIMARY KEY ([id])
)

CREATE TABLE [pets]
(
    [id]        bigint IDENTITY (1,1) NOT NULL,
    [name]      varchar(255)          NOT NULL,
    [user_pets] bigint                NULL,
    [user_team] bigint UNIQUE         NULL,
    CONSTRAINT [pets_id_pk] PRIMARY KEY ([id])
)

ALTER TABLE [pets]
    ADD CONSTRAINT [pets_users_pets] FOREIGN KEY ([user_pets]) REFERENCES [users] ([id]) ON DELETE SET NULL
ALTER TABLE [pets]
    ADD CONSTRAINT [pets_users_team] FOREIGN KEY ([user_team]) REFERENCES [users] ([id]) ON DELETE SET NULL

Error
[2020-05-08 14:22:13] [S0000][1785] Introducing FOREIGN KEY constraint 'pets_users_team' on table 'pets' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.

Here the first constraint passes but the second constraint fails
Nulls are not Unique
Example
INSERT INTO [users] ([age], [name], [last], [nickname], [role]) OUTPUT INSERTED.[id]  VALUES (@p1, @p2, @p3, @p4, @p5)
args=[1 foo unknown baz user]

INSERT INTO [users] ([age], [name], [last], [nickname], [role]) OUTPUT INSERTED.[id]  VALUES (@p1, @p2, @p3, @p4, @p5)
args=[1 bar unknown baz user]

Error:
insert node to table "users": mssql: Violation of UNIQUE KEY constraint 'UQ__users__AFA785105E5B2240'. Cannot insert duplicate key in object 'dbo.users'. The duplicate key value is (<NULL>). [recovered]

This actually fails with the wrong error.
Here the insert is failing because phone number is null.
This is quite problematic because lots of the test cases have nulls in them that do not cause issues on the other RDBMS
Resolution
Option 1
Implement filtered indexes
Eg
Instead of
CREATE TABLE [users]
(
    [id]            bigint IDENTITY (1,1) NOT NULL,
    [optional_int]  bigint                NULL,
    [age]           bigint                NOT NULL,
    [name]          varchar(255)          NOT NULL,
    [last]          varchar(255)          NOT NULL DEFAULT 'unknown',
    [nickname]      varchar(255) UNIQUE   NULL,
    [phone]         varchar(255) UNIQUE   NULL,
    [password]      varchar(255)          NULL,
    [role]          varchar(255)          NOT NULL,
    [sso_cert]      varchar(255)          NULL,
    [group_blocked] bigint                NULL,
    [user_spouse]   bigint UNIQUE         NULL,
    [user_parent]   bigint                NULL,
    CONSTRAINT [users_id_pk] PRIMARY KEY ([id])
)

do
CREATE TABLE [users]
(
    [id]            bigint IDENTITY (1,1) NOT NULL,
    [optional_int]  bigint                NULL,
    [age]           bigint                NOT NULL,
    [name]          varchar(255)          NOT NULL,
    [last]          varchar(255)          NOT NULL DEFAULT 'unknown',
    [nickname]      varchar(255) UNIQUE   NULL,
    [phone]         varchar(255) UNIQUE   NULL,
    [password]      varchar(255)          NULL,
    [role]          varchar(255)          NOT NULL,
    [sso_cert]      varchar(255)          NULL,
    [group_blocked] bigint                NULL,
    [user_spouse]   bigint UNIQUE         NULL,
    [user_parent]   bigint                NULL,
    CONSTRAINT [users_id_pk] PRIMARY KEY ([id])
)
create unique index [users_nickname] on [users] ([nickname]) where [nickname] is not null
create unique index [users_phone] on [users] ([nickname]) where [phone] is not null

This will allow nulls to not cause duplicate errors.
Pagination requires Order By
Example
SELECT DISTINCT [users].[id],
                [users].[optional_int],
                [users].[age],
                [users].[name],
                [users].[last],
                [users].[nickname],
                [users].[phone],
                [users].[password],
                [users].[role],
                [users].[sso_cert]
FROM [users] OFFSET @p1 ROWS
FETCH NEXT @p2 ROWS ONLY

Error:
Invalid usage of the option NEXT in the FETCH statement.

Resolution:
Only use pagination with order by
Can't drop circular references
Example Error
he DELETE statement conflicted with the REFERENCE constraint "user_friends_user_id". The conflict occurred in database "master", table "dbo.user_friends", column 'user_id'. [recovered]

This requires deleting the parent at the same time as the child.

@cliedeman ✋ Do you plan to continue to develop this? May I help you somehow? 🙂

Hi @ProximaB
I don't plan on continuing this PR but I am an interested in some of the features. Like filtered indexes which also applies to Postgres


add cmake support and .gitignore file

I tried to add cmake file for this project. The test and example are not built by default.
I didn't add install option because I don't know exactly how to.
And the new .gitignore file is used to ignore some generated files and directories.

Sorry there are some problems. I will check and later open a pull request again.

Now things should be OK.
Sorry for my careless.

I have modify the name and other things in CMakeLists.txt. Thanks for your advice!

Things are ok now. Thanks for your comment!

Thanks a lot!


BUG Input string with spaces in command "game"

Description: I input string with spaces in command game and it causes this problem.
Screenshot:

Program Version: v2.0.0_beta.3_all
Operating System Version: windows 6.1.7601

Note that Windows 7 is no longer supported with WCH.


Activity Json Title field and special chars

Hi ... i discovered that  problems are caused if you have a backslash in a title it has strange results when you use the activity.
if you have:
"title": "Black\White List IP Checker",
When you add the activity to a flow, the default name for the tile is "Black\WhiteListIPChecker" at runtime.
if you run the flow with the default name you will see that the system doesn't interpret the activties correctly.

Renaming the tile, fixes the problem.   Setting the title in the activity.json to not include the special char also fixes the problem by not adding the title with an invalid name.

Thanks for sharing Andy! I'll make sure that we update the documentation with the correct information.

In the latest update of the code we've added some validation guidelines as well. Please see https://tibcosoftware.github.io/tci-webintegrator/extensions/organizing-code/activity-json/


Print a helpful message when Ember server is slow to shut down

This is a common gotcha users experience, so we try to make it better by at least logging a helpful message and a suggestion on how to reduce the shutdown timeout

To summarise the chat we're having on Discord:
I can't produce the log message with sbt-revolver, which is the only reasonable usecase where people would want to see this message.


The same Quill CSS file is being added into the build 3 times

There are 3 versions of the same Quill CSS being added to the development and production build.
In development, there are 3 <styles> all containing the same CSS code in the header and in production there is 3 version of the same CSS being processed.
Here is a copy of my CSS after npm run build:
https://static.vibecast.com/example/app.4cd576690c08b1fe0d6bbacf8e905ec0.css - Scroll from the bottom up.

Yes, this is within the expected, any middleware plug-in, if you want to use when you need to facilitate the style of the package, so three different styles are necessary, otherwise the need for developers to manually introduce the style, but this and Not applicable to this project.

Cool. Fair enough, I've completely customised the styling so don't need to include the snow theme. I'll see if I can remove it manually.

@jackbarham Were you able to find a way around this? I don't quite understand why the same styles need to be included three times.

I didn't. Because of this, I used a different editor.


implement API set/getFlashMode

Thanks, but I respectfully decline your requested change. As far as I can tell, a large chunk of the compatibility problems with this library come from changing Camera.Parameters while the camera is in use. I am completely rewriting this library, in part to get away from doing that. This adds another place where Camera.Parameters is being changed on the fly, and so it makes my problems worse.


[BugFix] Fix thread running out for avro import

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #21152
Problem Summary(Required) ：

When the confluent schema registry server is not started, the consuming thread returns an error, but then the consuming thread blocks on the destructor of rdkafka consumer, see https://github.com/confluentinc/librdkafka/issues/3143. This PR fixes the problem.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

@Mergifyio backport branch-3.0


css not working after running after running npm install node-sass

Hi all. After changing the environment, I run into the expected error: ERROR in ./src/app/components/../../.component.scss
Module build failed: Error: Missing binding ..\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x
Found bindings for the following environments:

OS X 64-bit with Node.js 8.x

So as usual, i run npm install and/or npm update, then npm install node-sass
It compiled well, but when i check the website, this time the css is all broken.
project cli version: 1.7.1
my current version 1.7.3
anybody got an idea why this is the case? thank you very much.

npm rebuild node-sass
On Fri., 1 Jun. 2018, 3:20 pm alexantosh<EMAIL_ADDRESS>wrote:

Hi all. After changing the environment, I run into the expected error:
ERROR in ./src/app/components/../../.component.scss
Module build failed: Error: Missing binding
..\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows
64-bit with Node.js 6.x
Found bindings for the following environments:

OS X 64-bit with Node.js 8.x

So as usual, i run npm install and/or npm update, then npm install
node-sass
It compiled well, but when i check the website, this time the css is all
broken.
project cli version: 1.7.1
my current version 1.7.3
anybody got an idea why this is the case? thank you very much.

NPM version (npm -v):
Node version (node -v):
Node Process (node -p process.versions):
Node Platform (node -p process.platform):
Node architecture (node -p process.arch):
node-sass version (node -p "require('node-sass').info"):
npm node-sass versions (npm ls node-sass):

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/2403, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWGfP0uAVPW5cZQN3AicPn0azNL9sks5t4T-0gaJpZM4UWsF7
.

I tried that too. still broken.


[JOSS review] v1.1.0

This PR includes adjustments to the paper, documentation, and EspressoDB itself in response to the JOSS review.
This PR closes the issues #41, #43, #44, #45, #46
Updates to EspressoDB

Implementation of pre-save hooks in the Base class which allows dynamically setting custom information not captured by column default values
EspressoDB can now be installed without pre-installing Django
Added functionality to run cross-checks of EspressoDB on import. For now, cross-checks are model, migration and table checks. For this to work, the export ESPRESSODB_INIT_CHECKS=1 environment variable needs to be set. Projects which have been created with prior EspressoDB version need to update the init script to make use of this functionality (see also the PR #47)

Updates to the paper
See also the corresponding issue for doc and paper updates.
Updates to the documentation

Inclusion of community guidelines
Section on code revision control and pre-save hooks
Added FAQ
Minor adjustments summarized in the issue for doc and paper updates

Misc

Included arXiv files
Moved tests from example to tests folder

https://github.com/openjournals/joss-reviews/issues/2007

Thanks for getting this over the finish line. :-)

Reopen for merging.


Validate full cron command (with time and command itself)

Hello,
is it possible to provide, for example, full cron command like:
*       15-23   *       *       *       wget http://example.com

and later, for example I ->getMinutes(); ->getMonth(), ->getCommand() ?
because going threw source I did not find such functionality..
Thank you!

This library does not do this sort of thing. This library is only about parsing and checking cron expressions against a given date. There is no crontab handling.


Added - Support for bttv chat, and other stylers

Fixed missing emote class
Now responsive inside the right panel
Added some classes that allow for stylers to apply correct css
Fixed random spelling error

Thank you! I love PRs that remove more code than they add while maintaining functionality.
Some minor things I noticed:

The left border of the right column is missing:
Before:
After:

Please use camelCase for variable names (containerTab instead of container_tab etc.)

I just noticed that the actual chat doesn't have that border so it say it's ok to not add it.

I am fine with leaving the border out, up to you.

Converted things to camelCase
Changed the chat padding

Before

After

Looks good! I'll do some more testing this week and then go ahead and merge it.

When you click on a username, this pops up:

I think some data-attributes are probably missing.

How are you getting that to popup, I can't seem to get it to show for the
life of me.
On Sat, Jul 25, 2015 at 12:58 PM, Nils Caspar<EMAIL_ADDRESS>wrote:

When you click on a username, this pops up:
[image: image]
https://cloud.githubusercontent.com/assets/812086/8890378/96d2adb2-32b3-11e5-9a0e-47515b95975f.png
I think some data-attributes are probably missing.
—
Reply to this email directly or view it on GitHub
https://github.com/pencil/rechat/pull/18#issuecomment-124862066.

I added some data attributes, but I still can't get that popup to come up, not sure why that doesn't work on my system.

That seems to fix it:

The odd thing is, that this feature does only work, when you access a VOD via the profile page (http://www.twitch.tv/<username>/profile). If you access the VOD URL directly (http://www.twitch.tv//v/), clicking on the username does nothing. Maybe you quickly want to look into this, but maybe it's a BTTV problem that we can't address.

I still can't get it to popup, but I found that I missed the styling on system messages.
Just committed a fix.

System messages are currently broken anyways. Twitch deprecated the TWITCHCLIENT command that I used to record these messages.

I check if the message is sent from the user twitchnotify.
But I have to send a raw TWITCHCLIENT 3 to get it to give me all the
information I need.
On Sat, Aug 8, 2015 at 1:04 PM, Nils Caspar<EMAIL_ADDRESS>wrote:

System messages are currently broken anyways. Twitch deprecated the
TWITCHCLIENT command that I used to record these messages.
—
Reply to this email directly or view it on GitHub
https://github.com/pencil/rechat/pull/18#issuecomment-129041894.

twitchnotify messages should still work, that's true. Just the jtv messges are gone (Timeouts, Slow mode notifications etc.)

So here is what I have found.
For notifications on room status: link
CAP REQ :twitch.tv/commands
1439090824451 @msg-id=slow_on :tmi.twitch.tv NOTICE #goldbattle :This room is now in slow mode. You may send messages every 10 seconds.

For getting user emote set, sub, turbo, etc status: link
CAP REQ :twitch.tv/tags
1439090974296 @color=#008000;display-name=goldbattle;emotes=;subscriber=0;turbo=0;user-type=<EMAIL_ADDRESS>PRIVMSG #goldbattle :message_here

For getting timeouts/ban: link
1439091248147 :tmi.twitch.tv CLEARCHAT #goldbattle :other_user

It seems that the bans are not broadcasts, and the only thing is the clear message notice which supplies the user that should have their messages cleared, and is the closest thing to having the ban notice. The first line is the raw message you must send in order to subscribe to those notices.

Cool, thanks!

Updated to match the 0.15.0 release. The only change is that the dynamic resizing code isn't needed any more since the chat now sites inside the correct right panel container.


Incorrect disabled state on nz-radio-button

Reproduction link
https://codesandbox.io/s/keen-wave-j3fexk
Steps to reproduce
we need a radio-group with a formControl, we disabled one radio ( the second radio in example).
What is expected?
the second radio button must be disabled.
What is actually happening?
With a FormControl, the radio button is not disabled, but without the FormControl, the radio button is disabled.

Environment
Info

ng-zorro-antd
15.0.2

Browser
Google Chrome Version 109.0.5414.74

Hi, this will be fix when this PR should be me merged

fix with the release 15.0.3


About GPU and training time

Hi，I'd like to ask you a question.
What GPU does this program run on and how long it takes to train?
Best wishes！

The GPU we used is GeForce GTX TITAN X, 12G. In one server, we have 4 such GPUs.
We do not remember how long time we train. However, you can easily approximate the training time by checking the time of one iteration or one epoch.

I only have one TITANX.  Can I make the program work by reducing batchsize?Or is there any way to get it to run?


Draft: feat(TermsOfUse): Add Terms of Use modal

Docs: https://chatbot-pr-chatbot-349.surge.sh/patternfly-ai/chatbot/ui/#terms-of-use
Example: https://chatbot-pr-chatbot-349.surge.sh/patternfly-ai/chatbot/ui/react/terms-of-use/

Preview: https://chatbot-pr-chatbot-349.surge.sh

Changes are all set!


[SPARK-24685][build] Restore support for building old Hadoop versions of 2.1.

Update the release scripts to build binary packages for older versions
of Hadoop when building Spark 2.1. Also did some minor refactoring of that
part of the script so that changing these later is easier.
This was used to build the missing packages from 2.1.3-rc2.

Test build #92439 has started for PR 21661 at commit 1db4ab8.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/555/
Test PASSed.

Test build #92439 has finished for PR 21661 at commit 1db4ab8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/92439/
Test PASSed.

retest this please

Merged build finished. Test PASSed.

Test build #93860 has started for PR 21661 at commit 1db4ab8.

Test build #93860 has finished for PR 21661 at commit 1db4ab8.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93860/
Test FAILed.

retest this please

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1554/
Test PASSed.

Merged build finished. Test PASSed.

Test build #93873 has started for PR 21661 at commit 1db4ab8.

Test build #93873 has finished for PR 21661 at commit 1db4ab8.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93873/
Test FAILed.

Test build #94766 has started for PR 21661 at commit 34ca4ef.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2189/
Test PASSed.

Test build #94766 has finished for PR 21661 at commit 34ca4ef.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/94766/
Test FAILed.

Merged build finished. Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2202/
Test PASSed.

Test build #94784 has started for PR 21661 at commit 34ca4ef.

Test build #94784 has finished for PR 21661 at commit 34ca4ef.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/94784/
Test FAILed.

retest this please

Test build #94792 has started for PR 21661 at commit 34ca4ef.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2206/
Test PASSed.

Test build #94792 has finished for PR 21661 at commit 34ca4ef.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/94792/
Test PASSed.

Even though there's talk of EOLing 2.1, I think this can still be helpful later since there's also talk of removing the hadoop-2.6 build from 2.4, and the code here makes it easy to make those adjustments.
Merging to master.


Shashi-Pena syndrome

I am not sure if this is the right issue classification but I wanted to point out that it is not flagged as rare in MONDO (it is a rare disease). Thank you, Gioconda

This will be done automatically via the NORD-rare pipeline.


Data processor train() and eval() more explicit

DefaultDataProcessor currently has behavior involving self.train (which is currently a bound method of DataProcessor inherited from nn.Module). This fixes that and also sets data procesor train and eval by default within the Trainer.

Looks good, merging! Thanks @dhpitt !


Request new module: Create SSH Key Module in AWS

Related user story
Provide the issue number for the user story related to this request : Create SSH Key Module in AWS #569
Type of module
terraform
If requesting a terraform module, what is the target cloud platform?
aws
What is the purpose of the module?
Create SSH Key Module in AWS hence EC2 instances can leverage this keys for user access
What is the category of the module?
iam,infrastructure, util

/name ssh-key

/displayName AWS SSH Key


feat: add support for the RaspberryPi CM4

Description of changes
With this, you can boot NixOS on the CM4 via SD, eMMC, USB, or NVMe using u-boot
and the mainline kernel. Wi-Fi and Bluetooth are also working.
The main caution is you must use the sd-image with a new kernel, 5.17 or later.
Huge thanks to @cleverca22, @ElvishJerricco, and @samueldr who helped me hack on
this in the last couple of days.
Things done

Built on platform(s)

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

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

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 170528 run on aarch64-linux 1

1 package marked as broken and skipped:

odroid-xu3-bootloader

1 package blacklisted:

nixos-install-tools

20 packages built:

raspberrypiWirelessFirmware
ubootBananaPim64
ubootNanoPCT4
ubootOdroidC2
ubootOlimexA64Olinuxino
ubootOrangePiZero2
ubootOrangePiZeroPlus2H5
ubootPine64
ubootPine64LTS
ubootPinebook
ubootPinebookPro
ubootQemuAarch64
ubootROCPCRK3399
ubootRaspberryPi3_64bit
ubootRaspberryPi4_64bit
ubootRock64
ubootRockPi4
ubootRockPro64
ubootSopine
ubootTools

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

1 package blacklisted:

nixos-install-tools

4 packages built:

diffoscope
raspberrypiWirelessFirmware
ubootQemuX86
ubootTools

This actually fixes wifi on the rpizero (and likely others) that had been broken. Found out when my own version of it didn't rebase when I went to send it... -_-. thanks @lovesegfault !


Ways to speed up jTextArea in java swing when loading a lot of text

I'm using JavaSwing for UI. I'm having to put a lot of text inside of a jTextArea; loading anywhere from 500KB to 5MB of text file into the jTextArea
BufferedReader br = new BufferedReader (new FileReader("filename.txt"));
txtarea.read(br,null);
br.close;
txtarea.requestFocus();

but when read filename.txt then append to txtarea is verry slow.
Thanks for any attention in advance!

Hi @chimco89,  you've unfortunately posted to the wrong project.
RichTextFx is a JavaFx component and not the JTextArea Swing component.


Fix failure in setter for NSURLComponents.port

Once you've created a NSURLComponents object, setting the port value has no effect. This is caused by why looks like a copy/paste issue in _CFURLComponentsSetPort where the code is calling _passwordComponentValid rather than _portComponentValid
I've fixed this, and added a test for the setter. Note that the test case sets the expected string explicitly rather than concatenating the urlString and the port value. This is because of the issue that PR #296 fixes - when converting the port to a string it currently localises it into 8,080.

Thanks!


Provide an API to install Python into an empty conda env

Based on discussions with @brettcannon
Such an API will be provided that allows Jupyter ext to install Python into an empty conda env

Added to the iteration plan.

As part of this API call please can we ensure the Conda environment is updated
I.e. ensure the change event is triggered to update the conda env information, such as updating the Pytohn version, Uri (path to the executable etc)
Today I have a PR that installs Python into the conda environment from within the Jupyter extension (via custom code), however refreshing the Conda env takes more than 1 minute, hence that approach is not the best
i.e. i will need the Python Extension api to

Provide a way to install Python into a conda env
As well as update the conda env properties after the installation (so that environments contains the right information for this conda env)

ensure the change event is triggered to update the conda env information, such as updating the Pytohn version, Uri (path to the executable etc)
Today I have a PR that installs Python into the conda environment from within the Jupyter extension (via custom code), however refreshing the Conda env takes more than 1 minute, hence that approach is not the best

We can trigger an update immediately after the install, but I don't know if it will necessarily lead to a faster outcome since conda chooses what Python version to install.

faster outcome since conda chooses what Python version to install.

sorry, what I meant was the update of the environment information (environment info in api) would be faster if python extension updated the information for that specific conda env immediately
As opposed to Jupyter extension calling the refresh api (which takes more than a minute for me on my Mac)

sorry, what I meant was the update of the environment information (environment info in api) would be faster if python extension updated the information for that specific conda env immediately

Ah, so you're asking to just make sure that a changed event fires with the updated information once conda can provide that info to us instead of you having to to a manual trigger?

Yes thats correct, thanks

We were talking about this API in stand-up today, and we were wondering if you are calling conda install ipykernel? If you are then does conda itself not automatically trigger the Python installation as a dependency for ipykernel since conda supports multiple programming languages? If that's the case then would it be better to let conda handle the installation of Python implicitly as part of your installation call so it can make sure that a version of Python that's compatible with ipykernel gets installed?
If conda doesn't trigger an installation of Python then we should file a bug on conda to fix this. And if you're not running any installation command then this idea doesn't work. 😅

Will try that out and let you know

Yes that works, there is no need of an API to install Python into a conda env from the Python extension.
However I would would like a quick way to get the conda information updated.
Right now running the refresh api and waiting for the env change event to get fired takes around 60s, and that is way too slow. Thats after installing python into conda.
I can hack this as I know Python is installed, but that's just going around the issue and implementing a hack.
Can we have the Python extension refresh the conda info, if i request the env details for the conda env (either the same API or a new parameter on the same API).
I'm referring to the following
        /**
         * Returns details for the given environment, or `undefined` if the env is invalid.
         * @param environment : Full path to environment folder or python executable for the environment. Can also pass
         * the environment itself.
         */
        resolveEnvironment(
            environment: Environment | EnvironmentPath | string
        ): Promise<ResolvedEnvironment | undefined>;

Yes that works, there is no need of an API to install Python into a conda env from the Python extension.

Great!

Can we have the Python extension refresh the conda info, if i request the env details for the conda env (either the same API or a new parameter on the same API).

Seems reasonable. I have updated the title of the issue to reflect what I think your ask is.

resolveEnvironment should return the latest details for the conda env, is that not the case?

Ah, that was when IDs of conda envs after install were different, nevermind.

One thing to consider here is that our telemetry says there're only 10k/5M users in last 28 days which selected such an env. If we're going specific for Jupyter, it should be even less.

resolveEnvironment should return the latest details for the conda env, is that not the case? If it does return updated details, I suggest you use in to update the env list quickly.

No resolveEnvironment does not return the latest details.
thats a bug.

If it does return updated details, I suggest you use in to update the env list quickly.

Shouldn't we fix the underlying bug instead of a work around.
We have a similar issue where the removed event gets fired and the resolve env returns details of the env. meaning somthing is off with this method.
I would prefer to get this fixed or get a specific api instead of a work around.
Also as mentioned here, a work around doesn't provide the best UX https://github.com/microsoft/vscode-python/issues/20634#issuecomment-1419848161
I think we should either close this issue and create a new one to indicate the fact that resolveEnvionrment does not return the latest details, or just update the title of this issue. Again as mentioned earlier a full refresh is too slow.

@karrtikr should we just create a new issue? Or just hide the other comments and just leave the first issue comment and the last two comments open.

should we just create a new issue? Or just hide the other comments and just leave the first issue comment and the last two comments open.
Else it might get a little confusing going forward, e.g. for someone like Brett or anyone looking at this issue (even you or me)

Did either of these things happen?

I was waiting for @karrtikr to reply
Since he didn't reply, I assumed this was fine as is

Thanks for the reminder, created https://github.com/microsoft/vscode-python/issues/20765.


feat(audit log): add audit log event stream

Description
Please explain the changes you made here.
Which issue(s) does this PR fix

Fixes #?

PR acceptance criteria
Please make sure that the following steps are complete:

[ ] GitHub Actions are completed and successful
[ ] Unit Tests are updated and passing
[ ] E2E Tests are updated and passing
[ ] Documentation is updated if necessary (requirement for new features)
[ ] Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

@davidfestal can you help me debug why getPackages isn't working properly?
backend:start: Loading config from MergedConfigSource{FileConfigSource{path="C:\Programming\Work\backstage-showcase\app-config.yaml"}, FileConfigSource{path="C:\Programming\Work\backstage-showcase\app-config.local.yaml"}, EnvConfigSource{count=0}}
backend:start: C:\Programming\Work\backstage-showcase\node_modules\@manypkg\tools\dist\manypkg-tools.cjs.dev.js:540
backend:start:       const packageGlobs = Array.isArray(pkgJson.workspaces) ? pkgJson.workspaces : pkgJson.workspaces.packages;
backend:start:
                         ^
backend:start:
backend:start: TypeError: Cannot read properties of undefined (reading 'packages')
backend:start:     at Object.getPackages (C:\Programming\Work\backstage-showcase\node_modules\@manypkg\tools\dist\manypkg-tools.cjs.dev.js:540:104)
backend:start:     at async getPackages (C:\Programming\Work\backstage-showcase\packages\backend\node_modules\@manypkg\get-packages\dist\manypkg-get-packages.cjs.dev.js:34:20)
backend:start:     at Object.factory (c:\Programming\Work\backstage-showcase\packages\backend\src\logger\customLogger.ts:111:22)
backend:start:     at async Promise.all (index 1)
backend:start:     at async Promise.all (index 1)
backend:start:     at BackendInitializer.doStart_fn (C:\Programming\Work\backstage-showcase\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:159:30)
backend:start:     at BackendInitializer.start (C:\Programming\Work\backstage-showcase\node_modules\@backstage\backend-app-api\src\wiring\BackendInitializer.ts:149:5)
backend:start:     at BackstageBackend.start (C:\Programming\Work\backstage-showcase\node_modules\@backstage\backend-app-api\src\wiring\BackstageBackend.ts:42:11)
backend:start:
backend:start: Node.js v18.19.0


Optimize Base#relevant_file?

I identified the problem, fixed and then discovered https://github.com/rubocop-hq/rubocop-rspec/pull/967. So this is another implementation, with possibly the smallest change possible.
So, I profiled rubocops memory usage while running on itself:
bundle exec bin/rubocop-profile --memory lib/rubocop/cop

And get the following:
Before
Total allocated: 1.14 GB (16969980 objects)
Total retained:  7.35 MB (54861 objects)

allocated memory by gem
-----------------------------------
 408.41 MB  rubocop/lib
 297.48 MB  parser-<IP_ADDRESS>
 195.80 MB  rubocop-ast-1.0.1
 112.66 MB  rubocop-rspec-1.43.2
.....
allocated memory by file
-----------------------------------
 125.46 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/parser-<IP_ADDRESS>/lib/parser/source/tree_rewriter.rb
 110.64 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rubocop-rspec-1.43.2/lib/rubocop/cop/rspec/base.rb
....

After
Total allocated: 1.01 GB (15940558 objects)
Total retained:  6.92 MB (49414 objects)

allocated memory by gem
-----------------------------------
 409.73 MB  rubocop/lib
 300.32 MB  parser-<IP_ADDRESS>
 197.03 MB  rubocop-ast-1.0.1
  29.16 MB  other
  23.92 MB  rubocop-performance-1.8.1
  20.42 MB  set
   6.15 MB  ast-2.4.1
   5.84 MB  regexp_parser-1.8.2
   5.22 MB  unicode-display_width-1.7.0
   4.11 MB  psych
   2.24 MB  rubocop-rspec/lib
   2.17 MB  erb
....
allocated memory by file
-----------------------------------
 125.46 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/parser-<IP_ADDRESS>/lib/parser/source/tree_rewriter.rb
  60.59 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rubocop-ast-1.0.1/lib/rubocop/ast/node.rb
....
 204.78 kB  /Users/fatkodima/Desktop/oss/rubocop-rspec/lib/rubocop/cop/rspec/base.rb
....

And measured the impact of just rubocop-rspec.
bundle exec bin/rubocop-profile --memory --only RSpec lib/rubocop/cop

Before
Total allocated: 354.84 MB (4610105 objects)
Total retained:  5.84 MB (42878 objects)
....
allocated memory by file
-----------------------------------
 101.90 MB  /Users/fatkodima/Desktop/oss/rubocop-rspec/lib/rubocop/cop/rspec/base.rb
  40.35 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/parser-<IP_ADDRESS>/lib/parser/lexer.rb
....

After
Total allocated: 253.12 MB (3946086 objects)
Total retained:  5.86 MB (43001 objects)
....
allocated memory by file
-----------------------------------
  40.35 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/parser-<IP_ADDRESS>/lib/parser/lexer.rb
  29.81 MB  /Users/fatkodima/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rubocop-ast-1.0.1/lib/rubocop/ast/node.rb
....
 43.97 kB  /Users/fatkodima/Desktop/oss/rubocop-rspec/lib/rubocop/cop/rspec/base.rb
....

So, ~30% reducing in memory.

Thanks a lot!
We've been looking to improve #967, so probably will just merge your solution instead.
There's a semi-related https://github.com/rubocop-hq/rubocop-rspec/issues/1044, but the problem there is that cops from the same department should have different Patterns

Fixed in #1063.


feat: add external link property to header and footer

This pull request updates the Header and Footer components to ensure that specified links now point to external URLs instead of internal routes.

do we want to implement the same logic in the macros library ? to ensure we have consistency between them ?


cuda tensor

when i run mdoels/resnet.py , 我运行test（）函数，then i meet a bug
"
output = scc_cuda.forward(input, weights, output, overlap)[0]
RuntimeError: input must be a CUDA tensor
"
这个是什么原因呢？我也将全部计算放在gpu上了

my env is python 3.8 and nvcc is 11.1

my env is python 3.8 and nvcc is 11.1

sorry 应该是这个问题：
“
output = scc_cuda.forward(input, weights, output, overlap)[0]
RuntimeError: weights must be a CUDA tensor
”

sorry 应该是这个问题：
“
output = scc_cuda.forward(input, weights, output, overlap)[0]
RuntimeError: weights must be a CUDA tensor
”

Hi,
I just fix the problem you mentioned in the test() function in resnet.py and now it becomes like this.
I would also like to recommend to run python main.py as the entry point.

Hi,
I just fix the problem you mentioned in the test() function in resnet.py and now it becomes like this.
I would also like to recommend to run python main.py as the entry point.

sorry 应该是这个问题：
“
output = scc_cuda.forward(input, weights, output, overlap)[0]
RuntimeError: weights must be a CUDA tensor
”

Hi,
I just fix the problem you mentioned in the test() function in resnet.py and now it becomes like this.
I would also like to recommend to run python main.py as the entry point.

sorry 应该是这个问题：
“
output = scc_cuda.forward(input, weights, output, overlap)[0]
RuntimeError: weights must be a CUDA tensor
”

Hi,
I just fix the problem you mentioned in the test() function in resnet.py and now it becomes like this.
I would also like to recommend to run python main.py as the entry point.

ok，thank you

ok，thank you


Remove extra conditional.

Not super necessary, but more clean.
Signed-off-by: David Calavera<EMAIL_ADDRESS>

LGTM

LGTM


chore: remove indirect dependencies from Instructor embedders

Related Issues
I realized that several dependencies come with sentence-transformers, so there is no need to specify them.
Additionally, FOSSA reported some problems with torch license (a dependency of sentence-transformers).
Proposed Changes:
Remove dependencies of sentence-transformers.
How did you test it?
CI
Checklist

I have read the contributors guidelines and the code of conduct
I have updated the related issue with new insights and changes
I added unit tests and updated the docstrings
I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test:.

It seems harder than expected.
I close it for the time being.


Emoji Reaction - Some emojis are displayed as broken

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Issue found when executing PR https://github.com/Expensify/App/pull/15210
Action Performed:

Go to URL https://staging.new.expensify.com/
Login with any account
Go to any chat
Send a message
Right-click to open the context menu
Press the icon button with the emoji to open the emoji picker
Selecе an emoji

Expected Result:
An emoji added to the message as reaction
Actual Result:
Some emojis are displayed as broken
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/224147955-22d5f515-e49c-435d-9fab-55a3782a2276.mp4
https://user-images.githubusercontent.com/93399543/224148019-b0a57920-8480-47b2-85ce-585f8ace11dc.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

This is a dupe of https://github.com/Expensify/App/issues/15786. Closing!


"Seek an Destroy" code works, but no pass

Challenge Seek and Destroy has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function seeker (value){
  return value !== this;
}

function destroyer(arr) {
  var filtered = arguments[0];
  for (var i = 1;i < arr.length;i++){
    filtered = filtered.filter(seeker,arguments[i]);
    }
  return filtered;
  }

destroyer(["tree", "hamburger", 53], "tree", 53);

@parisclinkscales Please see #9851, there is quite an in depth explanation from @systimotic as to why this is a (hard to detect) code issue.
Happy coding!