Fix awscli v2 install

Contributor Comments
Fix the awscli v2 install.
Pull Request Checklist
Thank you for submitting a contribution to easy_infra!
In order to streamline the review of your contribution we ask that you review and comply with the below requirements:

[X] Rebase your branch against the latest commit of the target branch
[X] If you are adding a dependency, please explain how it was chosen
[X] If manual testing is needed in order to validate the changes, provide a testing plan and the expected results
[X] If there is an issue associated with your Pull Request, align your PR
title with this documentation

@derekseisollc this should now be working.


Disable Navigation History ?

Is there a way to disable the navigation history (Pages) in the wonderfull component ?

What template are you referring to? And what part do you need disabled?

Hi,
Thanks for your answer :) I would like to disable all navigation history in Spitview template. I prefer to manualy manage the navigation.

In a desktop app, you can hide the back button in the title bar by removing all invocations to UpdateBackButtonVisibility in App.xaml.cs of your project.
Furthermore, you can access (and modify) the back and forward navigation history of the root frame like so;
var shell = Window.Current.Content as Shell;
var backStack = shell.RootFrame.BackStack;
var forwardStack = shell.RootFrame.ForwardStack;

You could, for example, clear the backstack on every navigation to ensure the frame cannot be navigated backwards.
Does this help?

Thanks again :)
Where must i put your code ? I understand the principle. In fact i just want to disable history when the software run on Windows Mobile. I know how detect Windows Mobile devices and i just want to disable history in this case.

Use the App.xaml.cs code-behind file for this purpose.

Thanks for all and congratulation for your good work :)


program returns sucess on rake task failure

user@host$ heroku rake fail && echo THIS SHOULD NOT BE PRINTED
rake aborted!
Don't know how to build task 'fail'

(See full trace by running task with --trace)
(in /disk1/home/slugs/205683_04f506d_5914/mnt)
THIS SHOULD NOT BE PRINTED

Any progress on this?
Failing that, is there a reliable way to determine whether "heroku rake db:migrate" is successful?

@mdub Unfortunately no progress just yet, but I'm definitely keeping it in mind as I review and prepare to do some upcoming work.  For the time being I'm going to close this in order to consolidate into a single ticket this kind of issue (ie processes not returning codes).  So you can continue tracking our progress toward a fix on #186
Thanks!


Upgrade to Vite 6

This is a simple application, so I don't expect this version bump to be disruptive.

Had to revert #12


Kivy not leting me to use some python  library like smtp

here is code i wrote in python and then i use buildozer to make its apk...but it cracshes every time...
from kivy.app import App
from kivy.uix.button import Button
import webbrowser
from functools import partial
from kivy.lang import Builder
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.boxlayout import BoxLayout
import webbrowser
import urllib2
from functools import partial
from kivy.app import App
from kivy.uix.label import Label
import re
import urllib2
import time
import os
import sys
import re
import subprocess
import smtplib
fromaddr =<EMAIL_ADDRESS>toaddrs  =<EMAIL_ADDRESS>msg = 'Why,Oh why!'
username =<EMAIL_ADDRESS>password = 'password'
server = smtplib.SMTP('smtp.gmail.com:587')
def callback(instance):
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
class TestApp(App):
def build(self):
b=Button(text='press me')
b.bind(on_press=callback)
return b
if name == 'main':
TestApp().run()

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12089736-kivy-not-leting-me-to-use-some-python-library-like-smtp?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).

I've asked you twice before to not open issues unless you know that you're facing a kivy bug.
As for your crash, the first problem might be that subprocess does not work on android.


Mails not delivered to target inbox

Issue Description
My mails are not getting delivered to target inbox.
I tried to send a mail, everything looks fine, Mail is sent from Kingphisher. But mail is not getting delivered to the target inbox , what i am i missing here.
Reproduction Steps

Start King Phisher
Do something to trigger the crash

Environment Details

Host OS: Ubuntu 15.10 GNOME, Kali 2, etc.
Error Details / Stack Trace

If you are opening an issue regarding the client, copy text from the "Error
Details" of the error dialog in the client here. If you are opening an issue
regarding the server copy the relevant lines from the logs here.

Can you please include logs from postfix?
Sent from my T-Mobile 4G LTE Device
-------- Original message --------
From: shrirambharathkumar<EMAIL_ADDRESS>Date: 10/19/16 23:48 (GMT-08:00)
To: securestate/king-phisher<EMAIL_ADDRESS>Subject: [securestate/king-phisher] Mails not delivered to target inbox (#161)
Issue Description
My mails are not getting delivered to target inbox.
I tried to send a mail, everything looks fine, Mail is sent from Kingphisher. But mail is not getting delivered to the target inbox , what i am i missing here.
Reproduction Steps

Start King Phisher
Do something to trigger the crash

Environment Details
Host OS: Ubuntu 15.10 GNOME, Kali 2, etc.
Error Details / Stack Trace
If you are opening an issue regarding the client, copy text from the "Error
Details" of the error dialog in the client here. If you are opening an issue
regarding the server copy the relevant lines from the logs here.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/securestate/king-phisher/issues/161, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHYH4e3OpdSNpjeiGZakS0Yo8fgt_A1yks5q1w6ogaJpZM4Kbxqm.

Hi, i got the issue. My IP got blocked in Microsoft, due to spoofed mails from my ip.. once I whitelist it my mails are getting delivered, but mails are failing spf checks and going to target junk folder., what is way to pass spf checks,.? Thanks in advance

There are many ways to pass spf checks but not really a king phisher issue. Try a different domain.  There is a check built into king phisher that will warn you before sending.
Sent from my T-Mobile 4G LTE Device
-------- Original message --------
From: shrirambharathkumar<EMAIL_ADDRESS>Date: 10/20/16 05:17 (GMT-08:00)
To: securestate/king-phisher<EMAIL_ADDRESS>Cc: Jeremy<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [securestate/king-phisher] Mails not delivered to target inbox (#161)
Hi, i got the issue. My IP got blocked in Microsoft, due to spoofed mails from my ip.. once I whitelist it my mails are getting delivered, but mails are failing spf checks and going to target junk folder., what is way to pass spf checks,.? Thanks in advance

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/securestate/king-phisher/issues/161#issuecomment-255089612, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHYH4eWoui-gE13SJFGmL2F_W9Q9MB3Xks5q11vtgaJpZM4Kbxqm.

Yes.. Thanks a lot Jeremy.. i will check those out..


Init script incompatible with github user-based URLs

When using github fine-grained tokens instead of personal access tokens (now designated as "legacy" by github), you need to create a token for each account (personal and org), as these new token types cannot be scoped beyond a single account
Then, when cloning and working locally with git CLI, the CLI will only allow you to use one of these tokens as default. If your personal account is used by default and you want to work with a repo in an org, you need to use the org's name as your git username, e.g.
git clone<EMAIL_ADDRESS>When I use this style of repo URL with the init script, it seems to be converted by the init script into<EMAIL_ADDRESS>which will fail as git will attempt to connect to the repo using the default token, and not the token created for "myorg" - this will cause the initial setup script to fail at the git push step

Hey @mattfysh,
Is there a reason you can't update to non-legacy access tokens? I'm not sure I want to put effort into supporting something designated as legacy unless there's a very good reason.

Hey Kent, I'm talking about the new fine-grained tokens released in October of last year, apologies if that wasn't clear:
https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/
I mention the legacy PATs because I assume you may still be using them (or not using an org) if you haven't run into this issue yet

I'm not sure I understand. You're supposed to provide the GitHub URL to the CLI (like https://github.com/kentcdodds/solid-waffle for example). When that URL gets parsed, the command that gets executed is: git remote add origin git@github.com:kentcdodds/solid-waffle.git which is what GitHub recommends on their new repo page:

Did you perhaps provide a different URL to the CLI?

I'll note that githubParts.auth is null when you pass https://github.com/kentcdodds/solid-waffle so I don't think that would solve it. I'm guessing you're passing a different URL than what's expected.

I think perhaps this is not clicking for you because you may have not started using the fine-grained tokens yet?
You can visit this URL to check which type of tokens you are currently working with: https://github.com/settings/tokens?type=beta
The thing to understand about github's new token type is that you can no longer have a single token that works with all your personal and org accounts, you need to create a new token for each account, e.g.

one token for "kentcdodds" personal account; and
one token for "epicweb-dev" org account

When using the default git CLI that comes with macOS, your github username and access token are stored in OSX Keychain so that you don't need to type out your credentials each time you run git pull/push/etc.
How does the CLI know which token to use when using the new fine-grained tokens? It looks in Keychain and use the first token it finds - which may not be the one that works, e.g. if you do git clone github.com/epicweb-dev/epic-stack but the first token it finds is for the "kentcdodds" personal account, the command will fail on auth.
I've found the easiest way for the CLI to know which token to use from your keychain is to include the account name as the username in the git remote url, e.g. if you do git clone<EMAIL_ADDRESS>the full URL is used as the remote origin URL and it also now uses the correct token from your keychain. Note: pay close attention to the username preceding the @ symbol in the pull command.
I'd also point out that in your screenshot, just above the cropped view you'll see an HTTPS/SSH toggle. It looks like your UI is defaulting to the SSH selection, while Github recommends to use HTTPS: https://docs.github.com/en/get-started/quickstart/set-up-git#connecting-over-https-recommended

Thanks for your patience with me @mattfysh!
I'm guessing you're right on this. So it seems like the solution involves more than just knowing the owner and name of the repo but we also need the token name. Maybe it would be better if we have folks copy the code GitHub offers on that screen and run that?


Failed to Build Envoy on Mac OS

Failed to Build Envoy from the latest main on Mac OS
System Info:
Mac OS version: 14.6.1
bazelisk version: 7.4.0
Bazel version: 7.4.0
Clang version: clang-15<IP_ADDRESS>
% bazel build //source/exe:envoy-static
CC='/private/var/tmp/_bazel_pawandeep/a4ae3f21748e4a7ba7d3bf05d923eba8/sandbox/darwin-sandbox/1577/execroot/envoy/external/local_config_cc/cc_wrapper.sh'
AR='/usr/bin/libtool'
CFLAGS='-U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 -D_FORTIFY_SOURCE=1 -DNDEBUG -ffunction-sections -fdata-sections -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted '
CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H'
ARFLAGS='-static -s -o'
LDFLAGS='-rdynamic -Wl,-S -undefined dynamic_lookup -headerpad_max_install_names -lc++ -lm -undefined error'
ALLOCA=''
LOADLIBES='  '
REMOTE='stub'
OBJEXT='o'
EXEEXT=''
+ ./build.sh
config.status: creating ./lib/alloca.h__
config.status: creating ./lib/fnmatch.h__
config.status: creating ./lib/glob.h__
compiling lib/concat-filename.c...
compiling lib/findprog-in.c...
./lib/findprog-in.c:148:25: error: call to undeclared function 'eaccess'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                    if (eaccess (progpathname, X_OK) == 0)
                        ^
./lib/findprog-in.c:148:25: note: did you mean 'access'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:431:6: note: 'access' declared here
int      access(const char *, int);
         ^
./lib/findprog-in.c:300:21: error: call to undeclared function 'eaccess'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if (eaccess (progpathname, X_OK) == 0)
                    ^
2 errors generated.
Compilation failed.
_____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/private/make_tool_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/private/make_tool_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/private/make_tool_foreign_cc/BootstrapGNUMake.log

Target //source/exe:envoy-static failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 206.106s, Critical Path: 54.77s
INFO: 2904 processes: 1133 internal, 1769 darwin-sandbox, 1 local, 1 worker.
FAILED: Build did NOT complete successfully

I have also tried building with % bazel build -c opt envoy, but getting the same error.

hi @pawandeep2155 i think this is an issue with the llvm/clang version, libc++ version, or more likely with your Xcode install or setup (see eg https://github.com/bazel-contrib/rules_foreign_cc/issues/859)


Tests fail if a SvelteKit app is running somewhere else

Describe the bug
It should fail because the port is occupied, but it doesn't — instead it tries to run the test suite against the already-running app, which is confusing as hell
To Reproduce
Run a SvelteKit app, then inside packages/kit do pnpm test:integration and watch things fail in interesting ways
Expected behavior
It should report that the port is occupied and fail
Severity
Irksome, for those of us developing the framework. Inconsequential for everyone else

I also faced this issue yesterday.
Here are some things I observed.

The tests inside port-authority works perfectly.

If I have another server in 3000, the tests fail
Else, all tests pass

When running pnpm run dev the tests inside svelte kit tries to run on the background server and acts weird
When running pnpm run dev -- --host the test inside svelte kit fails instead of staring on 3001
When a background server is running

If I try to create a new server using this script, it works
The same command again in another terminal, it fails

But if this script is running in a shell

pnpm run dev fails as expected.
port-authority test fails as expected.

import * as net from 'net';
const server = net.createServer();
server.listen({ port: 3000 }, () => {
	console.log('Running');
});

Fix
Adding host: 'localhost' to server.listen in port-authority fixes the issue.


Issue #58: Feature: Custom controls in CloseBar (+ download button example)

#58

Looks good! Thanks @RobinTail
Could you please add the new option to the README.md and to the index.html?
Thanks,
Joss

@jossmac, sure. Done, b85bd83 :)


Add implements and inherits properties to type

As now we have a separation between implementing and inheriting types collections in generator we may as well add corresponding properties to Type model.
Then inheritedTypes (should be renamed to based probably?) becomes analogous to types.based, implements to types.implementing and inherits to types.inheriting.
With that instead of variable.type.inheritedTypes.MyProtocol it will be possible to do variable.type.implements.MyProtocol which just reads better. Also it will be more consistent with mentioned separation of inheriting and implementing types in generator.

I'll add it 👍

This will be needed for the following to work properly:
protocol AutoEquatable {}

struct AStruct: Equatable {
  public static func == (l: AStruct, r: AStruct) -> Bool {
    return true
  }
}

struct Book: AutoEquatable {
  let aStruct: AStruct
}

Given template like
{% for type in types.implementing.AutoEquatable %}
  {% for variable in type.storedVariables %}
    {% if variable.type.inheritedTypes.AutoEquatable %}
      {{ variable.type }}
    {% endif %}
  {% endfor %}
{% endfor %}

It should not generate code

Ah, so if inheritedTypes is just an array of strings we can not use it in if type.inheritedTypes.SomeType? Then looks like those collections should be "dummy" dictionaries like ["TypeName": "TypeName"]?

well right now we don't store real types in inheritedTypes, and we should as we want to be able to query they implement something so I'll add it

We may store them like [TypeName: Type], but I'm not sure we will get something from storing actual type references, because what we need is just to check if the type name is inside the implementing types collection and not to access the metadata of those types. At least I don't see it useful right now.

Implemneted in 0.4.1


Sysdump Utility

Ref https://github.com/kubearmor/KubeArmor/issues/110
Dump List:

[x] Nodes Info ( Contains System Information as well )
[x] k8s Version
[x] KubeArmor DaemonSet
[x] KubeArmor Pod Logs
[ ] Audit Log
[x] Policy Yamls
[ ] Meta Table ( kubectl get all -o wide -A ...)

[ ] kubectl describe
[ ] gzip /etc/apparmor.d
[ ] dmesg
[ ] copy /boot/config-$(uname -r)
[ ] uname -a
[ ] bpftool prog list
[ ] lsm file /sys/kernel/security/lsm


[WIP] Disable/enable constraints for required tables only

The idea is to speed up tests on mssql by disabling/enabling constraints only for those tables that have actually changed.
I believe this could give roughly two orders of magnitude better performance for constraint checking. The reason is that currently mssql checks every table for every disable/enable constraint checks call. This is around 1500 tables * 225 calls, that is roughly 330 000 disable/enable cycles. With the patch, the amount of disable/enable cycles is 473. (EDIT: Actually, currently there are roughly 750 calls to disable constraints, of which around 500 are from a loop in tests.serializers.test_data).
With this approach, it is possible that a constraint in some other table might fail if we delete a row from a referenced table, but I don't believe this is a problem for Django's test suite, and it can be a problem in fixture loading only in extreme cases (where one updates an already existing row's column pointed by a row in some other table). Of course, this could be fixed simply by adding the other table to the list of tables to disable/enable constraints for.
To get the speed benefit for mssql, the mssql backend should only disable/enable constraints for the tables required. That is, to see the full speed benefit of this change, the mssql backend needs to be updated.
This is an alternate to https://github.com/django/django/pull/5438.
I am not intending to continue work on this pull request in the immediate future - others are welcome to take over my work.

I've ran the test suite with django-mssql and this patch (mssql requires a couple of minor changes for the tests to run).
The results are very promising, I got a runtime of 1800 seconds (with profiling enabled). I'm currently running the test suite without this patch to compare the runtime, I'll report the results tomorrow.
The patch requires a bit more work, as there are some new failures. I don't believe those to be anything fundamental, instead they just show a couple of places where we need to be a bit more careful and make sure the tables passed to disable_constraints() actually exist.

On my laptop the runtime of master branch without the patch is "only" about an hour (with the patch it was around half an hour). So, a nice improvement, but nothing fundamental.

I'll try to write a conservative version for Django 1.8.

I think I know the real reason for the slowdown.
Django-mssql treats empty list in table_names argument of check_constraints() similarly to None. That is, when Django requests the backend to check constraints for no tables, django-mssql checks all tables. The check for empty list happens a lot in 1.8, so for that reason the tests are very slow.
I'll post a patch to django-mssql separately, and I'll open a separate PR for the work I've done on 1.8.

See https://github.com/django/django/pull/5894 for 1.8 version

We should likely include only the changes in the 1.8 version, but without the database feature (that is, all databases must support disable/enable constraints with tables argument).


Could calling  self._decoder.decompress after flush() has been called on the decompressobj instance cause some problems ?

Disclaimer : I don’t know much about python. I am calling, from Java (through jython), a python script that uses a 3rd party python API that makes use of urllib3 to call a REST api. This whole setup obviously makes it challenging to troubleshoot issues.
The 3rd party python API we’re using uses urllib3 version 1.12
While I know it would be very useful, I do not have a small sample to replicate the issue (I’d have to peel a lot of layers that I do not have a good understanding of at this point). I might need to work on it if nobody can help me without it.
The issue I am having is thrown by the zlib java implementation that is called by jython:
java.lang.NullPointerException: java.lang.NullPointerException: Inflater has been closed

File "C:\Users\laurentd\.gradle\caches\modules-2\files-2.1\org.python\jython-standalone\2.7.0\cdfb38bc6f8343bcf1d6accc2e1147e8e7b63b75\jython-standalone-2.7.0.jar\Lib\zlib.py", line 202, in _get_inflate_data
	at java.util.zip.Inflater.ensureOpen(Inflater.java:389)
	at java.util.zip.Inflater.inflate(Inflater.java:257)
	at java.util.zip.Inflater.inflate(Inflater.java:280)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)

The issue seems to be linked to the fact that the flush() method is called on a zlip.decompressobj object but that somehow, somewhere, we’re still trying to call the decompress method on that zlibdecompressobj object.
This is something that the zlib documentation mentions should not be done:
“After calling flush(), the decompress() method cannot be called again; the only realistic action is to delete the object.” (from https://docs.python.org/2/library/zlib.html)
Further debugging took me to the response.py file, in the read_chunked method, especially in the last line of this part:
            while True:
                self._update_chunk_length()
                if self.chunk_left == 0:
                    break
                chunk = self._handle_chunk(amt)
                yield self._decode(chunk, decode_content=decode_content,
                                   flush_decoder=True)

It looks like when self._decode is called, we always set flush_decoder to True.
Because of this, if I understand correctly, the self._decoder object (which is, in my case, a GzipDecoder, and a decompressobj?) is always flushed at the end of the call to self._decode (line 200).
However, the self._decoder seems to be initialized only once and seems to be reused (at least in my case) throughout the multiple calls to self._decode.
Though I am probably missing a few things, it could explain why decompressobj.decompress is called on a decompressobj object that has been flushed, and this could (?) have unpredictable results, including that NPE in the jython implementation of zlib (and ultimately in java).
Here is a deeper (and sanitized) portion of the call stack when the exception happens.
....\scripts\requests\sessions.py", line 608, in send
    r.content
....\scripts\requests\models.py", line 734, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
....\scripts\requests\models.py", line 734, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
....\scripts\requests\models.py", line 657, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
....\scripts\requests\models.py", line 657, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
....\scripts\requests\packages\urllib3\response.py", line 322, in stream
    for line in self.read_chunked(amt, decode_content=decode_content):
....\scripts\requests\packages\urllib3\response.py", line 471, in read_chunked
    yield self._decode(chunk, decode_content=decode_content,
....\scripts\requests\packages\urllib3\response.py", line 190, in _decode
    data = self._decoder.decompress(data)
....\scripts\requests\packages\urllib3\response.py", line 190, in _decode
    data = self._decoder.decompress(data)
....\scripts\requests\packages\urllib3\response.py", line 56, in decompress
    return self._obj.decompress(data)
  File "C:\Users\laurentd\.gradle\caches\modules-2\files-2.1\org.python\jython-standalone\2.7.0\cdfb38bc6f8343bcf1d6accc2e1147e8e7b63b75\jython-standalone-2.7.0.jar\Lib\zlib.py", line 155, in decompress
  File "C:\Users\laurentd\.gradle\caches\modules-2\files-2.1\org.python\jython-standalone\2.7.0\cdfb38bc6f8343bcf1d6accc2e1147e8e7b63b75\jython-standalone-2.7.0.jar\Lib\zlib.py", line 202, in _get_inflate_data
  File "C:\Users\laurentd\.gradle\caches\modules-2\files-2.1\org.python\jython-standalone\2.7.0\cdfb38bc6f8343bcf1d6accc2e1147e8e7b63b75\jython-standalone-2.7.0.jar\Lib\zlib.py", line 202, in _get_inflate_data

Is it possible that the _decode method is causing the problem by calling decompress on a decompressobj that has been flushed or am I going down the wrong track?
Note that the problem is gone if I reinitialize the decompressobj at the beginning of _decode by mimicking what _init_decoder does, which I can’t believe is a good fix (although self._decoder seems to be really used only in _decode):
        content_encoding = self.headers.get('content-encoding', '').lower()
        self._decoder = _get_decoder(content_encoding)

Thanks in advance.
Laurent.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28367602-could-calling-self-_decoder-decompress-after-flush-has-been-called-on-the-decompressobj-instance-cause-some-problems?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github).

Hmm, this is interesting. You're right that this is what happened. We're doing this to ensure that each gzipped chunk yields some data, and that appears to work in CPython and PyPy.
In this case, we should consider whether there is a solution built around one of the other mode constants in zlib.

So, in CPython zlib actually appears to totally allow flushing the decompressor between each call to decompress. No problem occurs there, everything works fine. Which explains why we didn't see this before: it really only affects Jython and chunked, gzipped content. Quite a small proportion of use cases!
I'll see if I can get hold of a Jython install and play around with it.

Ah, well, we can't use the other mode constants because Jython doesn't accept them as arguments to flush. That's somewhat limiting.
@shazow I think the only way we can get this to work is to not flush the decompressor as the chunks come in. This means that read_chunks will potentially return zero-length chunks, which means we'll need to update stream(), but that's probably fine. How does that solution sound to you?

@lukasa I think it's fine since it's a generator anyways (unlike read()).

Should there be a bug filed against Jython too? It makes sense to me that zlib's behaviour should be the same between CPython, PyPy, and Jython (Since they're kind of the big three, right?)

@sigmavirus24 I mean, I suppose? It's hard to see how useful that bug report would be for the Jython developers, really. The most that the bug could say is:

You haven't exported some constants that exist in the CPython zlib library.
You use zlib differently to CPython/PyPy, but totally within the bounds of what the docs say is allowed.

Point (1) is vaguely reasonable, point (2) is less clear. The docs certainly allow their current behaviour. That said, it can't hurt to at least tell them. =)

I'd be surprised if we're the only people using zlib like we are and if more people aren't going to stumble on this. That's my only line of thinking here. I'm all for fixing it here too, I just find it hard to believe we're a snowflake in this regard. =P

So, with regard to fixing this problem, we have two options.
First, we can switch to yielding everything from the decoder, and then once more from the flush. This means we'll always yield once for each chunk, and then once at the end. This is potentially a bit unexpected, and we'll also occasionally yield the empty string.
Second, we can do that but only yield if the string isn't empty: that is, if there's some decompressed data. This means we never yield the empty string, but also potentially means the number of yields is unrelated to the actual number of chunks.
Does anyone have a preference here?

we'll also occasionally yield the empty string

This makes me lean towards the second option. We've already had some friction over yielding empty strings from methods that intuitively shouldn't.

+1 to @sigmavirus24.
If someone wanted to do some meaty refactoring then I'd say that we should decouple the raw response reading (lower level, maybe some generic io interface implementation that can be swapped out) from the decoding-aware response reading (higher level, default, takes an io thing and does magic). If you really really want 1:1 read amount control, you'd fall back to the raw response reading and handle decoding with our helpers.

Agreed that there's some discussion to be had about the way our I/O looks long term. Right now I'm inclined to want to patch this, rather than bite the bullet on that big work.

Nothing like commenting on a closed issue, but for completeness about support on Jython:
I also ran the urllib3 test suite (using master) with nose. All tests now pass, excluding the tornado-derived tests, which rely on fcntl and may be problematic for being too tightly tied to posix (we will see with any work on #1943) and coverage tests (relies on #1638 and details of Python bytecode, which we need to emulate for Java bytecode).
See http://bugs.jython.org/issue2434

@jimbaker That's useful to know, thank you! :)


proc json - some code points did not transcode

ERROR: Some code points did not transcode.
MPRINT(MP_JSONOUT):   run;
ERROR: The JSON writer is in an error state at this point and no more items may be inserted.
ERROR: Due to the previous error, the JSON output file is incomplete and invalid, or in some cases, unable to be created. If created, the JSON output file is retained so that you can review it to help determine the cause of the error.

The above error is typically seen when proc json tries to export a non valid character.  We implemented proc json in the sasjs/adapter for speed however this instability is affecting data controller and so we must switch back to the trusty data step.

:tada: This issue has been resolved in version 2.16.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Problem, sending this by sugestion of spyder. Greetings

Description
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Please provide any additional information below
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 263, in
self.finished(ec, es))
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 328, in finished
self.show_data(justanalyzed=True)
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 349, in show_data
self.datatree.load_data(self.DATAPATH)
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 461, in load_data
stats_indi = [pstats.Stats(profdatafile),]
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\pstats.py", line 72, in init
self.init(arg)
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\pstats.py", line 86, in init
self.load_stats(arg)
File "C:\Users\boris.cabrera.baran1\AppData\Local\Continuum\anaconda3\lib\pstats.py", line 99, in load_stats
with open(arg, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\boris.cab

I think this is going to be fixed in our upcoming version (3.2.7), which is going to be released in one week. Please update to that version when ready and let us know if it fixes this problem for you.

Closed due to lack of response, as this is an assumed duplicate of #6220 fixed in Spyder 3.2.7.


changed default colors to empty object for IE.

checking userAgent and assigning empty object to default colors so it logs without any formatting in IE browser.

Thanks! 👍


How to use SoftMax through the C API

I would like to use the SoftMax implementation below through the C API. Is there a way to use it using only this API (i.e., through #include "xgboost/c_api.h)? Thanks
https://github.com/dmlc/xgboost/blob/3e7e426b36eb307dff64a2f81f8a5a225377891d/src/common/math.h#L49-L76

Hi fbrundu, do you mean using it for training xgboost model or using it independently?
For the former, you can call set param function, for the later it's not possible.

There's no way to do that at the moment.  You can obtain the untransformed output by specifying predict margin.  But after that, you will have to do the transform yourself.

Ok, thank you.


Toss out scroll bar from Project's UI

This PR fixes https://github.com/microsoft/azuredatastudio/issues/24868.
Create project from database- Before:

Create project from database- After:

Update project from database- Before:

Update project from database- After:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 41.571%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
30785

Relevant Lines:
69355

💛  - Coveralls


Statusfy GUI

Feature request

[ ] I confirm that this is a feature request rather than a question.

What problem does this feature solve?
What does the proposed API look like?
How should this be implemented in your opinion?
Are you willing to work on this yourself?**

comment to keep this open


Explicit references to the implementation requirem...

This issue has been extracted from the issue list on:https://ies-svn.jrc.ec.europa.eu/issues/2685
Comment
Explicit references to the implementation requirements are missing (although it can be derived from the name of the test case).
Proposed Change
Add a reference to the implementation requirement.

This issue will be addressed by cross cutting issue 6


Restrict URL scheme to https only for URL handling.

Even if handling external content, a PWA should only display https content because there is an implicit expectation that PWA content is https only.

Closing here. Ported to https://github.com/WICG/pwa-url-handler/issues/2 .


fix README badge links

Codecov Report
Patch and project coverage have no change.

Comparison is base (f2a7c40) 76.17% compared to head (1c1bf22) 76.17%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #355   +/-   ##
=======================================
  Coverage   76.17%   76.17%
=======================================
  Files          30       30
  Lines        3077     3077
=======================================
  Hits         2344     2344
  Misses        733      733

Flag
Coverage Δ

unittests
76.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


How to get the node coordinates

I'm trying to find the way to get the node coordinates or my graph. Say I do a basic graph:
$Graph = new Fhaculty\Graph\Graph;

$Vertex1 = $Graph->createVertex();
$Vertex2 = $Graph->createVertex();
$Vertex1->createEdge( $Vertex2 );

$GraphViz = new Graphp\GraphViz\GraphViz;
$data = $GraphViz->createImageData( $Graph );
$image = imagecreatefromstring( $data );
header( 'Content-Type: image/png' );
imagepng( $image );

According to the official Graphviz documentation there is a node attribute called 'pos' that should give me what I want. Also, I'm using dot, and according to this related question at StackOverflow the 'pos' attribute should work with dot. But I don't know the right way to get it. I've been trying things like:
$Vertex1->getAttribute( 'graphviz.pos' );

Because I know that things like the following work:
$Vertex1->getAttribute( 'graphviz.label' );

However I bet that 'label' and 'pos' work very different internally. I imagine that the 'pos' attribute should only be available after rendering the graph with createImageData. But even if I try to get 'pos' after createImageData, I get nothing. Anyone knows how can I get the coordinates of the nodes of the graph?

This is an excellent question, thanks for posting :+1:
I think this (again!) boils down to a lack of documentation (#2) :)
It's tempting to think that accessing the graphviz.pos attribute should return the position within the graph.
However, the attributes only contain those values that are actually set via your own code.
This is because this library only exports a Graph instance and all of its attributes into a format that the GraphViz tool can read in order to produce a resulting graph image. This means that it never actually knows the position of the individual elements.
I've just filed ticket #15 as a feature request so that we could eventually also have a dot importer. This would allow us to do the following:

Export the Graph instance into the dot format
Pass this intermediary dot script as input to GraphViz, asking for dot output
Read in (import / parse) the resulting dot output
Access all automatically generated attributes such as node position etc.


Support Vector Tiles

Vector Downloads
Currently map server supports Raster Tilesets only (through mbtiles files). To broaden the use case of map server, we want to be able to support Vector Tilesets, also through mbtiles files.
To Do:

[x] url endpoint for posting the link file path to mbtiles
[x] Need to read mbtiles, and a space for the user to name it if there is no name
[ ] Need code to read mbtile and metadata and determine if vector or raster
[ ] Internal API methods to create tileset from metadata and write the tiles
[ ] Just support reading all the data in the mbtiles
[ ] Update based on ID

@gmaclennan do you mind elaborating on things that need to be implemented to support this?

Support Vector Tiles (through mbtiles)
If we want to support an mbtiles file containing vector tiles, then we need a way to generate a style.json that defines how those tiles should be displayed. The mbtiles viewer does this by assigning random colours: https://github.com/mapbox/mbview/blob/master/views/layers.ejs We should be able to use the vector_layers metadata prop from the mbtiles spec to get the info we need about vector layers.
An aside: I stumbled across this old blog post which is perhaps a helpful intro to vector tiles? https://blog.mapbox.com/whats-in-a-mapbox-studio-style-d90ee7641154
I'm not sure the use-case for this (importing vector tiles from an mbtiles file) without an option to customize the styling. @rudokemper might have thoughts on this?
Support Vector Tiles (in general)
This is a slightly different question. For vector tiles to work we need:
(A) A Style.json that defines how to display the tiles
(B) (not always required) Font glyphs (SDFs) if the style includes labels
(C) (not always required) Sprites (PNG + JSON) if the style includes icons
If we want vector tiles to work while the user is online, then we just need to store the style.json and keep the URLs that point to tiles/sources, glyphs and sprites the same.
If we want vector tiles to work offline, then we need to download the tiles, glyphs and sprites (or possibly serve alternative glyphs that we have locally).
When the user adds a style.json, then we could:

Create the tileset (often needs internet to download the tilejson referenced in the style)
Download the sprite PNG + JSON

Downloading tiles + glyphs at creation seems like too much, since it will take a while.
If we cache tiles the user accesses, and replace glyphs with locally-available alternatives, then the user can have an offline map for areas they visit while online (e.g. areas the tiles are cached for).
For a fully offline vector map experience, then we need to either:
A. Offer a way for the user to download tiles within a bounding box and zoom range
B. Offer a way to import a file containing the Style, Tiles, Glyphs and Sprites

The use case that I can think of: a user has an unstyled mbtiles file that they want to use in Mapeo. There is precedent for this: ODK currently permits users to add an offline map using an mbtiles file without a style.json file. Instead, the app assigns a random color to distinguish the layers.
Another thought is that some of our own current users know how to generate a vector mbtiles file using QGIS. It's currently quite tricky to style an mbtiles file*, so allowing them to upload vector mbtiles and assigning random colors could be a good way to enable them to use their own data in Mapeo without much accompaniment.
*Maputnik is still the best option as far as I know?

Support Vector Tiles (in general)
This is a slightly different question. For vector tiles to work we need:
(A) A Style.json that defines how to display the tiles
(B) (not always required) Font glyphs (SDFs) if the style includes labels
(C) (not always required) Sprites (PNG + JSON) if the style includes icons

@gmaclennan seems like most of this will be in place once #54 is merged. from what i can tell, there isn't any special handling of what we provide to the client in terms of style, sprites, glyphs, etc. compared to a raster-based style right? The only difference is that the tilesets referenced by the style will be pointing to different tiles under the hood - whether it's getting the upstream pbf-formatted tile response or the locally stored pbf-formatted tile data

assigning random colors could be a good way to enable them to use their own data in Mapeo without much accompaniment.

@rudokemper i like the sound of that from a dev perspective - curious about potential visual issues and if we need to account for that (besides just choosing a safe palette)

@gmaclennan  Going to claim that this can be closed after merging the imports pr. Feel free to reopen if otherwise!


fix(#2029): callout add aria-live property

Before (the change)
After (the change)
The Callout component has aria-live property.
Make sure that you've checked the boxes below before you submit the PR

[x] I have read and followed the setup steps
[x] I have created necessary unit tests
[x] I have tested the functionality in both React and Angular.

Steps needed to test
Angular playground sample code

Dynamic Callouts

Emergency Callout

<goa-callout type="emergency" heading="Emergency Update" [arialive]="emergencyAriaLive">
  {{ emergencyContent }}
</goa-callout>

Important Callout

<goa-callout type="important" heading="Important Notice" [arialive]="importantAriaLive">
  {{ importantContent }}
</goa-callout>

Information Callout

<goa-callout type="information" heading="Information Update" [arialive]="infoAriaLive">
  {{ infoContent }}
</goa-callout>

Success Callout (Empty String aria-live)

<goa-callout type="success" heading="Success Message" [arialive]="successAriaLive">
  {{ successContent }}
</goa-callout>

import { Component, OnInit } from "@angular/core";

@Component({
  selector: "abgov-callout",
  templateUrl: "./callout.component.html",
})
export class CalloutComponent implements OnInit {
  emergencyContent = "Initial emergency content";
  importantContent = "Initial important content";
  infoContent = "Initial info content";
  successContent = "Initial success content";

  emergencyAriaLive: "off" | "polite" | "assertive" = "off";
  importantAriaLive: "off" | "polite" | "assertive" = "off";
  infoAriaLive: "off" | "polite" | "assertive" = "off";
  successAriaLive = "";

  constructor() {}

  ngOnInit() {
    // Simulate dynamic content updates
    setTimeout(() => this.updateEmergencyCallout(), 3000);
    setTimeout(() => this.updateImportantCallout(), 6000);
    setTimeout(() => this.updateInfoCallout(), 9000);
    setTimeout(() => this.updateSuccessCallout(), 12000);
  }

  updateEmergencyCallout() {
    this.emergencyContent = "Updated emergency content!";
    this.emergencyAriaLive = "assertive";
    setTimeout(() => this.emergencyAriaLive = "off", 5000);
  }

  updateImportantCallout() {
    this.importantContent = "Updated important content.";
    this.importantAriaLive = "polite";
    setTimeout(() => this.importantAriaLive = "off", 5000);
  }

  updateInfoCallout() {
    this.infoContent = "Updated info content.";
    this.infoAriaLive = "polite";
    setTimeout(() => this.infoAriaLive = "off", 5000);
  }

  updateSuccessCallout() {
    this.successContent = "Updated success content.";
  }

  manualUpdate(type: "emergency" | "important" | "info" | "success") {
    switch (type) {
      case "emergency":
        this.updateEmergencyCallout();
        break;
      case "important":
        this.updateImportantCallout();
        break;
      case "info":
        this.updateInfoCallout();
        break;
      case "success":
        this.updateSuccessCallout();
        break;
    }
  }
}

:tada: This PR is included in version 1.17.0-alpha.101 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.17.0-alpha.39 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.25.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.24.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.0.0-alpha.5 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


New version: TopazLabs.TopazPhotoAI version 1.2.3

Pull request has been created with komac v2.0.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run

/AzurePipelines run


Add option to ignore files matching regex

I just threw this together really quickly. It was useful in my situation. Just like @SantiMunin in #117 I wanted to not lint files generated by bnfc - and I don't find it very nice to have to add a pragma to the top of an auto-generated file.
There may still be issues with my implementation. Like I said, I just threw it together really quickly. Perhaps it is useful to someone.

Thanks for the patch. The idea looks sound, and the desire seems very sensible, my only concern is whether regular expressions are the right thing to use. I would rather use the standard Ant-style globs (e.g. **/*.hs). Looking around Hackage there is "Glob", but it doesn't quite match the standard everyone else has converged to. I have good and well tested globbing code in Shake, but I wouldn't want to copy it between projects - far better to extract it into a library - but that requires a lot of work. As a result, I suspect this issue depends on refactoring in Shake, which is going to take far longer...

You're probably right about regex not being the right choice for this. I
was actually thinking that myself when doing the implementation. What is
the problem with Glob in your view? Perhaps the easier route (and more
community-friendly approach) would be to patch that package.
On Sun, May 21, 2017 at 10:53 PM, Neil Mitchell<EMAIL_ADDRESS>wrote:

Thanks for the patch. The idea looks sound, and the desire seems very
sensible, my only concern is whether regular expressions are the right
thing to use. I would rather use the standard Ant-style globs (e.g.
**/*.hs). Looking around Hackage there is "Glob", but it doesn't quite
match the standard everyone else has converged to. I have good and well
tested globbing code in Shake, but I wouldn't want to copy it between
projects - far better to extract it into a library - but that requires a
lot of work. As a result, I suspect this issue depends on refactoring in
Shake, which is going to take far longer...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ndmitchell/hlint/pull/334#issuecomment-302962501, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEVklZEFncZXe3miy6u3HhM4ZG23QSGOks5r8KRHgaJpZM4NOvMc
.

--
Regards
Frederik Hanghøj Iversen

I've had the Glob code downloaded onto my laptop for the last week to take a thorough look at how it differs from Shake, and figure out if merging them is plausible, but not got into it yet. It definitely doesn't support a rich enough API to do the smart short-circuiting directory traversals that Shake does, but that might be possible to add. At the very least I'll be raising a ticket on the Glob repo before I start my library to see what is possible.

My implementation does not hinge on how Glob has implemented directory tree traversal. The globbing is a pure function on the filepath. So the "short-circuiting" that's going on is the stuff already present in CmdLine:getFile.

Yep, it doesn't really matter for HLint, but it does for Shake - and I really don't want two of my things having subtly different glob syntaxes based on entirely different code.

Fair enough :)

I'm leaving this PR open because while I don't want to merge exactly this, the filepattern library is being split out as we speak, so it's going to form the basis for the final code in the next month or so.

I said "month or so" but I meant "year or so". I've now released https://hackage.haskell.org/package/filepattern

Haha! Nice that you came back to it. :D

Wholly untested!

The current behaviour is rather counter intuitive. Say you run hlint on hlint in the root of the project like so:
 hlint . --ignore-glob 'src/*'

It still includes src. Why? Because the paths are interpreted as e.g.:
./src/CmdLine.hs:271:1

So you have to specify
 hlint . --ignore-glob './src/*'

To correctly exclude src.

Yeah, that's not great. My expectation is that we'd rewrite this code in terms of https://hackage.haskell.org/package/filepattern-0.1.1/docs/System-FilePattern-Directory.html#v:getDirectoryFilesIgnore - which probably takes care of all the details. I also figured that we would take a list of ignore patterns, and perhaps post-pend /** to them, so they cover everywhere - e.g. the pattern to ignore is either a file or a directory.

Has there been any further work done on this? A feature that I would love to see is very similar. Namely being able to specify globs inside the within part of rule definitions. In order to get rules that look like "ban this extension/import/compiler flag inside moduleAndAllSubmodules"

@telser no movement, alas. I haven't had much time on it.

Would be useful if we could sum up what's missing to get this in.

Sorry, it's taken way too long, and I think I made the mistake of making perfect the enemy of working. I've merged what you did, extended it to allow multiple --ignore flags, and done a quick hack to make ./foo still match. Can you test this still does what you want, and if so, let's just ship it.


(qa) f5 build 2 file and run 1

i have a class A.as,and B.as.
i want
f5
A.as --->a.swf
and B.as--->b.swf
and run a.swf
how do that in flashdevelop.thanks.

Create a batch script and do a custom build or create multiple project files next to each other.


Geo-partitioning pattern

Revision of the geo-partitioning pattern, from docs through to marketing.

Visuals with marketing driving back to the page.

Thinkmoja.

Dupe of #4574


Exclude methods using @access private from documentation

Coverage remained the same at 98.277% when pulling daa53b95dd3d988f3653dc20448efaa39cae8d8a on jdpedrie:exclude-access-private into 3fdbacbbe6d5603c44fb6700f1c37e2cb888983a on GoogleCloudPlatform:master.

Lgtm


[DEV-3207] display existing support tickets

DEV-3207 display existing support tickets

[ ] Await packages merge


compilation error on clang-8 + C++17

json.h:19799:62: error: no type named 'string_view' in namespace 'std'
                   && !std::is_same<ValueType, typename std::string_view>::value

I think an include of <string_view> is missing ? This only occurs on debian-8 + clang-8  + C++17 here.

Which version are you using? The filename seems odd.

The file is just renamed, its this version:
    __ _____ _____ _____
 __|  |   __|     |   | |  JSON for Modern C++
|  |  |__   |  |  | | | |  version 3.9.1
|_____|_____|_____|_|___|  https://github.com/nlohmann/json

Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2013-2019 Niels Lohmann <http://nlohmann.me>.

The reason why I got this problem it that I installed a binary distribution of clang-8 on debian-8, but apparently, if I do not explicitly specify -stdlib=libc++  it still uses the stock version of libstd++, which doesn't support C++17.
Long story short, I have a weird setup, but looking at the code, I didnt't see an include of <string_view>, I see that on head it is present (https://github.com/nlohmann/json/blob/develop/include/nlohmann/json.hpp#L77)


Show criteria progress in GoalListItem

We should add a field for Goal model which would show current criteria progress. Also it should be updated every time you update criteria or a goal if it is a criteria.


Is there any way to combine select! and join! macros?

I belive this is common scenario, when user wants to use select! and join! macros together.
The easiest example is a circuit breaker (like a timeout) for long running concurrect task.
For example:
use futures::{select, join};

async fn foo() {
    select! {
        (r1, r2) = join!(long_running_task_1, long_running_task_2) => { return result },
        _ = circuit_breaker => { report error },
    }
}

For now this wouldn't work, as join! and select! macros both awaits internally.
I found a few workarounds for this, but they aren't convinient nor elegant.

create async block, call join internally
use join, join2, join3 - does not allow any number of futures
join_all - required all futures to be returning the same type (or even to be the same type)

Is there any way to combine those two together?

create async block, call join internally

I think this is the only reasonable solution currently available (there are no additional costs or restrictions).
async fn foo() {
    let future = async { join!(long_running_task_1, long_running_task_2) }.fuse();
    select! {
        (r1, r2) = future => { return result },
        _ = circuit_breaker => { report error },
    }
}

Changing join!/select! to return futures is the best solution to this, but it's a breaking change.


Break out getIPFS into own package

I can see us (and others) wanting to detect native IPFS support, and fallback to js-ipfs otherwise. The code in getIpfs.js seems to work well. It may be a good idea to  break it into its own package and publish to NPM under the fission-suite org.

https://github.com/fission-suite/get-ipfs


Docs should be easier to find

Some people are having trouble finding the wiki docs, especially the Timeline Structure page:
https://github.com/PixarAnimationStudios/OpenTimelineIO/wiki/OTIO-Timeline-Structure
We should promote this on the main README with an image and a link.

That sounds great. Also, there are some API docs, but without much visibility they don't get much attention.

K. I did a rough branch with this this weekend, and hit an issue and decided to wait until I got a response before proceeding on it. I'll continue working on it and submit it something in the next few days, probably.


Added question on how to get started with buying the RI

Updated to clarify how the RI purchase process works.

@sabbour : Thanks for your contribution! The author, @tylermsft, has been notified to review your proposed change.

#sign-off

@sabbour: I'm sorry - only the author of this article, @tylermsft, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

Sigh. #Sign-off


Make it work again on macOS with latest nightly

Due to https://github.com/rust-lang/rust/issues/64872, building libtest fails on macOS.

Fixed in https://github.com/rust-lang/rust/pull/66018


New Working with Data (Video Data) Tutorial

This is an extract of the Object Detection Video Tutorial center around only focus on how to work with Frame and Video and then linking to the next tutorials

This change is


OAK-11248 : reapply changes of #1845 (which got reverted in #1853)

@rishabhdaim can you please review? thx!

@rishabhdaim , friendly reminder : could you please review this one? It was reverted before 1.72 unfortunately, and needs to be reapplied now for 1.74, thx!

there was a test failure
[INFO] Running org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollectorIT
Cancelling nested steps due to timeout
Sending interrupt signal to process

looks like the test takes too long and we should maybe improve that. but that's orthogonal to this PR. so going to merge next

but that's orthogonal to this PR

created https://issues.apache.org/jira/browse/OAK-11282


[Game Crash] Fatal: crash from within the crash signal handler

Describe the crash
Fresh install in Debian Bullseye x86_64
ran ./stepmania
No crashinfo file generated
info.txt
log.txt
How can you reproduce the error?
./stepmania
Screenshots/Videos
No response
Additional Information
No response

Try to run the game with the following command:
MESA_GL_VERSION_OVERRIDE=3.1COMPAT ./stepmania
There is currently an issue with Mesa reporting the wrong OpenGL version, which causes the game to crash attempting to access features from said version that aren't there.

Thanks for the fast support.  That indeed did resolve the issue and get me to the main screen.  I have other issue to resolve before I can actually try playing the game, so I can't test everything, but at least I can now enter the game.

Hiya PhracturedBlue!
The next alpha will force a lower GL context which will not require the MESA command.
Feel free to join the discord if you need help as well.
Will be closing this one, as it's fixed in 4.11.0 (this one comes out on the 14th)


EDU-887 drawing layer in waveform plugin

Closes https://educandu.atlassian.net/browse/EDU-887

Super nice!! 😍


Feature Request: Ability to specify type of secret

What kind of request is this (question/bug/enhancement/feature request):
Feature Request
Steps to reproduce (least amount of steps as possible):
When making a new secret, there is no way to specify a type. For example, when making a secret key for Ceph, you must create a secret of type kubernetes.io/rbd.

Create a secret in any namespace
Add a parameter for key = value
Add a parameter for type = kubernetes.io/rbd

Creating a secret with type in the parameter does not work. If you view the secret yaml after it has been created, the type is a random string. It should not be in the parameters section regardless. There should be a separate field for this in the GUI to specific the type. If not a specific GUI element for this, there should be a way to directly edit the yaml of the secret that is about to be created.
This is an example yaml that will correctly create a secret of the correct type:
kind: Secret
metadata:
  name: ceph-admin-secret
  namespace: kube-system
type: "kubernetes.io/rbd"
data:
  # ceph auth get-key client.admin | base64
  key: <your output from above>

but the yaml has to be applied via command line. There should be a way to do this from the GUI.
Other details that may be helpful:
Discussion from the Rancher Forums: https://forums.rancher.com/t/cant-make-a-secret-of-a-specific-type/15910
Environment information

Rancher 2.3.2

gzrancher/rancher#11092

This can be done is the new Dashboard UI in 2.5

This works from the Dashboard in master-head (08/24/2020) 8a60de75d
Using Create from YAML

The type is not populated in the UI which I think is expected right @maggieliu ? If that's the case we can close.

Reopening to get confirmation that there will not be support for this secret type in form view of Secrets.

@izaac @sangeethah Yes, as long as we can edit the type in Yaml edit that's enough. Don't need it in the form view of secrets.

Closing as validation was done here: https://github.com/rancher/rancher/issues/24240#issuecomment-679341226
And working as designed confirmed here: https://github.com/rancher/rancher/issues/24240#issuecomment-683070697


Update release notes to link to attribute description

@bot-gradle test and merge

The merge queue build has started. Click here to see all failures if any.


Ui/ UX design upto next level and smooth workflow

🚀 Feature Request
Is your feature request related to a problem? Please describe.

I know the UI is simple but now a days after the development of next gen websites the wenbsites should be developed in such a way that it should step out of every other tech

Describe the solution you'd like

We can redesign the websites Ui by using next jen technologies like tailwind css and media screen improvements for smooth display rendering.

Describe alternatives you've considered

Just some enhancements for the UI in some areas in simple frames

Closing this issue as we will be updating the UI very soon and open issues regarding that. sit tight.


Null bytes appended to AOF file during brutal VM shutdown

We recently encountered an issue where our NATS certificates expired and BOSH was not able to talk to its agents anymore. We resolved that issue by generating new NATS certs on the director and then running a bosh cck. Because the bosh director had no way to talk to the agents, it had no choice but to shoot the unresponsive VMs in the head and build new ones.
When the redis VM came back up, one of the redis instances on there failed to start up due to a corrupt AOF file. Examining the AOF file in an editor, it appeared that the every transaction had correctly been recorded in the AOF file, but there were 12 null 0x00 bytes appended to the file after the last transaction. Running the redis-check-aof --fix <file.aof> command quickly fixed the problem and the instance was then able to start.
The redis.conf already has the options enabled for loading truncated AOF file, but in this case the file was not truncated, but contained extra invalid bytes at the end.
A few days after we'd hit that problem, we were faced with the same situation again when the next set of NATS certs expired in a totally different CF deployment. Once again, when the vm was recreated by a bosh cck one of the redis AOF files had a few extra null bytes appended to the end and the instance was unable to start.... and once again, running the redis-check-aof file fixed things in a fraction of a second and got everything up and running again.
I've been contemplating raising a PR against cf-redis-release with a minor tweak to the prestart.erb template along the following lines...
fixtool=$(find /var/vcap/packages/redis/ -name redis-check-aof -print -quit)
find /var/vcap/store/cf-redis-broker/redis-data -name appendonly.aof | xargs -n 1 ${fixtool} --fix

Although it's a simple fix, it would ensure that all of the AOF files would be checked each time redis gets started.
I thought that rather than just raise the PR, I'd open an issue first to discuss the approach to the problem - I suspect that someone who knows Redis better than me might have a more elegant fix to offer than my shoddy bash script tweaks.

Hi @jimconner thanks for submitting the issue, and taking the time to describe steps to reproduce it, and include suggestions for a solution.
AFAIK I don't think we've seen this issue pop up on our fleets, so I'd like to give it a quick sanity check on our end. We've recently ran some interesting chaos engineering games and did not see this occur.
Could you give us some details of your deployment please?

Redis version you are running (current version should be 4.0.14 or 5.0.4).
Affected Redis instances were shared-vm or dedicated-vm, or both?
When you say [BOSH] had no choice but to shoot the unresponsive VMs in the head and build new ones. I'm assuming the affected service instances were dedicated and not shared? Or perhaps the whole broker vm was destroyed?
What snapshot strategy do you have in place, i.e aof only, or aof + rdb backups?
What is redis.snapshotting.rdb_checksum set to in your deployments.

Note that there there is a known issue when using both aof and rdb, and rdb_checksum option is set to NO. In Redis < 4.0.10, checksum bites will be added to the files regardless if option is set to NO or YES, but if the checksum is set to NO, redis does not know how to parse them on startup). This has been registered in Redis issue #4902, apparently fixed in 4.0.10 but I can't easily confirm.
I'm assuming, when the instances with the broken AOF files boot up, you are seeing something along the lines of:
[DATE] # Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check-aof --fix <filename>

My next step was to have a quick look to try and see if there might be any issues adding this check to the pre-start scripts:

The first thing that comes to mind is the necessity of user input when running the command https://github.com/antirez/redis/issues/5378.
The other thing is that according to a few issues on the Redis github page, the aof-load-truncated property should fix these exact situations. We currently hardcode that to YES on our releases. It will only fail if the data is corrupted in the middle. That makes sense compared to the results we had of a few of our own testing.
Maybe the solution would be to give ways to more gracefully shut down, within the drain scripts. Or document ways to ensure drain scripts are run for orphaned instances. The PCF-Redis docs include some information on how to manually backup/run errands and scripts, or how to deal with orphaned instances, but I'm aware these are not easily reachable from here, but that still feels like it could be potentially the best way to proceed.

Given these last two bits, I'm tempted to suggest that if such occurrence happens, I'd rather see the very specific Redis error message and leave up to the OP what kind of recovery I want to do: i.e. if I want to load from an alternate backup (e.g. rdb) or a prior backup, but would like to hear about the specifics of your setup so we can give this some thought.
I've made a few notes and will bring this to the rest of the team. Do let me know if you can give us more details about your current configuration.
Thank you!
Joao

Hi @jplebre - Thanks for coming back to me.
The issue shouldn't really have happened with our fleets either, but somehow or other we'd missed the bosh NATS certs in our array of SSL certificate expiry check, so we unexpectedly found that BOSH couldn't talk to anything one day.... Ah well.. lesson learned now :-)
Here's the extra information.

We're currently on cf-redis-release v343.0.16 which includes redis 4.0.11 (we will update real-soon-now)
It is a shared-redis VM - We don't have any dedicated instances. The shared-vm had around 45 redis instances running on it, and only one of them had a problem. One of the apps on our platform is heavily reliant on redis, and there's a fair chance that it had a transaction in progress when the vm was recreated.
When I said shoot the unresponsive VMs I was a little unclear - There is only a single shared redis vm which runs the broker and redis service. Bosh had to shoot all of the VMs it had deployed because they all used the same NATS cert - however, only a single one of them was for redis.
Snapshotting stragegy is aof+rdb backups (I think it is... we're not changing it from the default)
redis.snapshotting.rdb_checksum is set to yes (default value)

Your assumption about what we're seeing is 100% correct - It is that error message. We were only seeing it on a single redis instance each time it happened though.. the other 44 instances on the same shared-vm started up without any problems.

I didn't think about the possibility of user input required for the redis-check-aof command. It has been a few weeks since the problem occurred... We put a story into our kanban to investigate ways to prevent the same thing happening again, but due to a busy backlog, we're only just playing this story now. You make a fine point about it being smelly.
aof-load-truncated was the first thing I reached for when picking up this story, but checking in the redis.conf on the shared-vm, it appears that option is already enabled by default.
Graceful shut down would not have been possible in the case where this happened to us. Because NATS certs had expired, BOSH director was unable to communicate  with any of it's agents, so there wouldn't have been a way of triggering the drain scripts (I may be wrong, but I think the vsphere CAPI uses PowerOff operation rather then sending a shutdown signal to the OS on the VM)

Re-occurence is unlikely to happen now as we've now beefed up our ssl cert expiry checks with the ones that we'd overlooked before, so we definitely won't be caught out the same way again - however it is easy to generate an AOF file with the same null bytes appended to the end for testing purposes.
I wonder if actually this is a bugfix/feature-request required for the aof-load-truncated function in redis rather than something that should be fixed with bash script workarounds.

Hey @jimconner 👋
Thanks for the clarification.
RE: graceful shutdown, good point on the I may be wrong, but I think the vsphere CAPI uses PowerOff operation rather then sending a shutdown signal to the OS on the VM I'm not actually sure about vsphere details, and you are probably correct that this might not work across all platform offerings.
I'll see if the rest of the team has any ideas, but I'm leaning towards trying to replicate and see if can get enough info out of the box to get an issue to the redis core team. As you say, the best path may be a fix/request for the aof-load-truncated function.

Hey @jimconner
We've tried using some extreme bosh shutdowns (like bosh stop --hard and bosh delete-vm) and in all cases it seems that aof-load-truncated yes managed to recover the file.
In discussion with the team we are of the opinion that since the error message is so explicit and the failure to recover seems to be such an edge that the operator should make the manual intervention and decide wether to try and run redis-check-aof --fix or potentially try other methods of restore (eg. an older snapshot).
If you still have details of the incident and maybe the aof file in question it might be worth raising this as a aof-load-truncated bug in redis itself, as you've mentioned in your previous post.
Feel free to re-open if new information comes to light


i18n(fr): update recipes/i18n.mdx

Description (required)
Adds a new community resource in the French translation of recipes/i18n.mdx (see #9780)

Related issues & labels (optional)

Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note

fr/recipes/i18n.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Fix select element background on iOS 15

As mentioned in #fabric-private - we need to explicitly set this for iOS 15 or it turns the background gray

Yeah, this is a new default in iOS 15 that is no bueno since it makes our select field look very much like our idea of a disabled field


Question: Why StartToken is "$" and EndToken is "^"?

gomarkov is using "$" as StartToken and "^" as EndToken, but this seems odd for me. Because, in regular expression, "^" means start of line and "$" means end of line. Are there any reasons for this assignment?
https://github.com/mb-14/gomarkov/blob/044dd0dcb5e7875ec824df72259c523d03aa4f49/gomarkov.go#L14-L17
Note: I'm not familiar with Markov Chain's traditional or standard notation.

FWIW @PicoSushi I have fixed this issue in my fork.

And, @mb-14 has now fixed the issue on this repository. This issue can be closed.


Reflux mixin dependencies

Why does mixin order matter—Maybe I am missing something?
listenTo has a dependency on connect is this expected?

React.createClass({
    mixins: [
        Reflux.connect(Store, 'property'),
        Reflux.listenTo(Store, 'onStoreChange')
    ],

    onStoreChange() {
        console.log(this.state.property.items.length); // 50
    },

    render() {
        console.log(this.state.property.items.length); // 50
    }
});

Reflux.createStore({
    ...

    console.log(items.length); // 50

    this.trigger(items);
});

React.createClass({
    mixins: [
        Reflux.listenTo(Store, 'onStoreChange'),
        Reflux.connect(Store, 'property')
    ],

    onStoreChange() {
        console.log(this.state.property.items.length); // 0
    },

    render() {
        console.log(this.state.property.items.length); // 50
    }
});

Reflux.createStore({
    ...

    console.log(items.length); // 50

    this.trigger(items);
});

listenTo and connect mixins weren't designed to be used in tandem... So this is a bug in that regard.

Even if they weren't designed to use in tandem, is that a bad thing?
connect provides the getInitialState() and setState() features and sets up during first render.
listenTo provides for subsequent triggers and isn't called during initial mount.

Else do you recommend to reimplement getInitialState() for components? And manually call setState() from onStoreChange?

@chemoish connect also sets up listening and calling setState. If you use connect you don't need listenTo.
Note that mixins are becoming increasingly frowned upon. You should start writing the subscribe/unsubscribes directly into the lifecycle methods of componentDidMount and componentWillUnmount

Considering the move toward ES6 (making mixins lose some relevance) and the age of this issue in general, I'm gonna close it out.


Question: why are we showing warnings that do not make much sense?

The one that keeps popping up that I'm referring to is Use of protected class members is discouraged
If I apply the same code sniff standard to the latest Magento 2 core, we get a ton of them. Additionally, there is little sense in not using protected class properties.
Am I missing something?

@ronpeled please find more about this question here #27.


Corrected the "Routes can return a value" example

The code snippet is safe to copy and paste now.


Add support for CRaC for Config Server and Client

Hi,
I'm trying using Crac with Spring Cloud 2023 with all my microservices that use enviroment name (SPRING_PROFILES_ACTIVE) and Spring Cloud config to get all application settings.
When I try to get a dump passing parameter
spring.context.checkpoint=onRefresh
to jvm an error is reported describing that are open streams (point to Config Server) and dump is not possible.
I switched the Config server off in my application.yml with
spring.cloud.config.enabled=false
and the jvm get the dump with success but after restore all settings is not present and my applications does not start.
I tried to put in Jvm restore
-e SPRING_PROFILES_ACTIVE=prod -e JAVA_TOOL_OPTIONS="-Dspring.cloud.config.enabled=true" but it does not work
I search for an example using Spring Cloud Config Server but is not present at the moment.
I would like to do a dump with the settings taken from the config server in a non-production environment and be able to set that the production ones are taken during the restore. Is it possible ?
Thanks a lot

Hello @quartex this is not supported at this point; we'll be adding support later this year and will be documented as it does. So far in Spring Cloud we have support for SC Commons, with the ContextRefresh and LoadBalancer. Supported projects can be tracked by what gets added to the CRaC smoke tests repo.

Hi Olga,
no news about this support or any hints to do that ?
Thanks a lot

Hi @quartex, unfortunately, not yet, since other tasks had higher priority. Will post any updates on it here.

This ended up being the only thing stopping our spring apps from using CRAC.  Is there anything we can try?
I am going to have to think outside of the box... maybe a simple layer that will make an http call to the config server, set things, and end... should be more complicated than that right?

Hi jchesser-pci,I do not find any healthy solution for this problem and I do not understand how is possible that this problem appear to be uncommon yet.
Il martedì 19 novembre 2024 alle ore 21:09:05 CET, jchesser-pci<EMAIL_ADDRESS>ha scritto:

This ended up being the only thing stopping our spring apps from using CRAC. Is there anything we can try?
I am going to have to think outside of the box... maybe a simple layer that will make an http call to the config server, set things, and end... should be more complicated than that right?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


I found a error

Can you give me a sample configuration of dhcpd.lease?

Now I use your project, but the Statistics View module can't display the data, all the information related to the lease is missing, I need your help urgently.
Tks! 🙇🏼♂

Can you give me a sample configuration of dhcpd.lease?
Now I use your project, but the Statistics View module can't display the data, all the information related to the lease is missing, I need your help urgently.
Tks! 🙇🏼♂

you can email me!


The readme file description doesnt explain how to use the code

maybe if you leave a step by step description how to implement the notification module/code it would be very helpful

Hello @mannycolon, the readme has already mentioned how to run the sample code.
For tutorials building electron apps step-by-step, I recommend you to read https://github.com/feross/electron-workshop.


Throw Error If Subscriber Not Registered

@TheNightmareX The one thing I wish I could of done but couldn't see a path to implement was get the @SoftDeletable decorator to throw an error if the subscriber wasn't registered. If you're able to see a path forward/point me in the right direction, I could open a follow up PR.

Originally posted by @Tucker-Eric in https://github.com/TheNightmareX/mikro-orm-soft-delete/issues/6#issuecomment-1887552842

Hey @Tucker-Eric I see what you're trying to accomplish. However, it doesn't sound like a quite good practice to me.
Decorators are not supposed to do anything except of defining metadata to the target. The metadata they defined would be handled by other services.
In our case, applying a @SoftDeletable decorator to an entity class only means that the soft-delete behavior of that kind of entities has been defined, but doesn't mean that we have enabled soft-delete for it. Registering the subscriber is the way to enable the defined soft-delete behaviors.
For now I don't plan to add this feature. You could keep this issue open to see if others have some innovative opinions on this :)


Add Oracle VirtualBox 6.1.8

Microsoft Reviewers: Open in CodeFlow

@LightDestory I did test both the silent and interactive functionality. When installing certain packages, such as this one, no UAC prompt will appear. In order to install silently, winget itself must be run as administrator.


The downlaoder seems to be apending slash to download url

When dowloading cusotm url,  eg in  https://ci.adoptium.net/view/Test_grinder/job/Grinder/9743/console and set
CUSTOMIZED_SDK_URL to eg https://jvanek.fedorapeople.org/java-17-openjdk-<IP_ADDRESS>.7-1.portable.jdk.el.x86_64.tar.gz  the downlader attempts to download  https://jvanek.fedorapeople.org/java-17-openjdk-<IP_ADDRESS>.7-1.portable.jdk.el.x86_64.tar.gz/ whcich do not exits
It can be workaroudne dby something like https://jvanek.fedorapeople.org/java-17-openjdk-<IP_ADDRESS>.7-1.portable.jdk.el.x86_64.tar.gz#noSlash  but generally it seems like bug.

It seems to be latestBuildUrl="${CUSTOMIZED_SDK_URL}${max}/" in get.sh

Where are you seeing this happening? https://ci.adoptium.net/job/Grinder/9794/console with your URL looks to have downloaded it without problems:
 _ENCODE_FILE_NEW=UNTAGGED curl -OLJSks --user ****:**** https://jvanek.fedorapeople.org/java-17-openjdk-<IP_ADDRESS>.7-1.portable.jdk.el.x86_64.tar.gz
 Uncompressing file: java-17-openjdk-<IP_ADDRESS>.7-1.portable.jdk.el.x86_64.tar.gz ...
 Run /home/jenkins/workspace/Grinder/jdkbinary/j2sdk-image/bin/java -version
 =JAVA VERSION OUTPUT BEGIN=
 openjdk version "17.0.10" 2024-01-16 LTS
 OpenJDK Runtime Environment (Red_Hat-<IP_ADDRESS>.7-1.el7openjdkportable) (build 17.0.10+7-LTS)
 OpenJDK 64-Bit Server VM (Red_Hat-<IP_ADDRESS>.7-1.el7openjdkportable) (build 17.0.10+7-LTS, mixed mode, sharing)
 =JAVA VERSION OUTPUT END=

From the link in top: https://ci.adoptium.net/view/Test_grinder/job/Grinder/9743/console
10:47:24  downloading files from https://jvanek.fedorapeople.org/java-17-openjdk-<IP_ADDRESS>.7-1.portable.jdk.el.x86_64.tar.gz/
10:47:24    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
10:47:24                                   Dload  Upload   Total   Spent    Left  Speed
10:47:24
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   377  100   377    0     0   1081      0 --:--:-- --:--:-- --:--:--  1080
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
10:47:24  $ ssh-agent -k
10:47:24  unset SSH_AUTH_SOCK;
10:47:24  unset SSH_AGENT_PID;
10:47:24  echo Agent pid 140032 killed;
10:47:25  [ssh-agent] Stopped.

nothing downloaded, game over.
It is likely that I had differently (wrongly) set up grinder.  I have suspicion that it appears onl with nightly on. At last by reading the code somehow,  The latestBuildUrl="${CUSTOMIZED_SDK_URL}${max}/"  is the only suspicious part I found.

If you are trying to pull a binary from a CUSTOMIZED_SDK_URL, you should switch the SDK_RESOURCE to 'customized', not 'nightly'

Ok, my https://ci.adoptium.net/view/Test_grinder/job/Grinder/9795 failed, I'm failing to see cause, but download seems to be ok. And yours https://ci.adoptium.net/view/Test_grinder/job/Grinder/9796/ is ok. I need to comapre what you did. TY!

you had set JDK_VERSION to 21, but were pulling a JDK17 binary, so we do a check once the binary is unpacked, and that check returned "mismatch" and failed


Set working directory only when set in settings

We should not explicitly set a working directory if none have been specified in the settings. #1915

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Closing this due to inactivity.


Pagination

This is a minimal version that is implemented in the controller method.
Shared functionality can be extracted once a new endpoint makes use of
pagination.

Could we also update our OpenAPI spec please?


Make it optional for which google cloud agents we start

Summary:
Issue: None
Test plan:
yarn test

Ok! So this is the render-gateway portion of this, I assume there'll be another part for the webapp config of this. Looks good!

Exactly. Though we are on a much newer set of these libraries than the graphql-gateway; perhaps the issue is fixed in the new versions

perhaps the issue is fixed in the new versions

Doesn't seem like it. Saw comments on https://github.com/googleapis/cloud-debug-nodejs/issues/811 that indicate it's in 5.1.0 too.


new.target should be undefined in class field initializer

Describe the bug
per spec
Input code
class A {
    a = new.target
}

Config
No response
Playground link
https://play.swc.rs/?version=1.2.124&code=H4sIAAAAAAAAA0vOSSwuVnBUqOZSAIJEBVuFvNRyvZLEovTUEq5aLgB3eimPHwAAAA%3D%3D&config=H4sIAAAAAAAAA0WOSwrDMAxE76K1t9142X0PIVwlOPUPjwI1JnevXdJmJTF6b1CnDY5sp8IVUueGlpTfZElcZLjqi5IZ2IgWDhBDUFbv7iG7F8hq3eUwpFxX0anhNviQM%2BRvRJ%2F80ma7y7FUAa4TpzX8yGMUxfzcZ9BJWxlzKjGnDXRcRafs8Tjp7xcfCPSbEc4AAAA%3D
Expected behavior
Do as spec do
Actual behavior
return this.constructor because it's already transpiled by previous pass
Version
1.2.123
Additional context
No response

@kdy1 this is not fixed: by the time new.targer is applied, class_prop is alreay transformed into statements in constructor.


Advanced SystemCare Ultimate <IP_ADDRESS> Crack + Key [Latest]

Advanced SystemCare Ultimate <IP_ADDRESS> Crack + Key [Latest]
Advanced SystemCare Ultimate Crack is powerful and combines top-level anti-virus functions and proven comprehensive PC tuning functions. It has a one-click method to help protect, repair, clean and optimize your PC. Based on the top-ranked BitDefender anti-virus technology and IObit anti-malware engine, it is part of the IObit anti-virus project, dedicated to providing our users with more and better value-added services.
Download Now

It has a one-click method to help protect, repair, clean and optimize your PC. Based on the top-ranked BitDefender anti-virus technology and IObit anti-malware engine, it is part of the IObit anti-virus project, dedicated to providing our users with more and better value-added services.


Can you help me solve this error?

I'm really confused here, where exactly did it go wrong?
rank0]:   File "/root/VMamba/classification/models/vmamba.py", line 509, in forward_corev2
[rank0]:     assert selective_scan_backend in [None, "oflex", "mamba", "torch"]
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]: AssertionError
E0720 18:17:46.647000<PHONE_NUMBER>49984 torch/distributed/elastic/multiprocessing/api.py:826] failed (exitcode: 1) local_rank: 0 (pid: 7751) of binary: /root/miniconda3/bin/python3

    print("************************************************************************************")
    print(selective_scan_backend)
    print("************************************************************************************")
    assert selective_scan_backend in [None, "oflex", "mamba", "torch"]

output:

core

do u sove the problem?

That is because the 'core' version which equals to the 'oflex' version with input dtype float32, has been removed，and the mamba_ssm version can be used only when you have installed mamba-ssm.

That is because the 'core' version which equals to the 'oflex' version with input dtype float32, has been removed，and the mamba_ssm version can be used only when you have installed mamba-ssm.

thanks for your reply , i have solved this problem with your suggestions（install mamba-ssm and Replace all the "core" with "oflex" in the context.）

That is because the 'core' version which equals to the 'oflex' version with input dtype float32, has been removed，and the mamba_ssm version can be used only when you have installed mamba-ssm.

thanks for your reply , i have solved this problem with your suggestions（install mamba-ssm and Replace all the "core" with "oflex" in the context.）

When I installed mamba-ssm, the above issue still exists. Does mamba-ssm require a specific version? Or is there another solution?

That is because the 'core' version which equals to the 'oflex' version with input dtype float32, has been removed，and the mamba_ssm version can be used only when you have installed mamba-ssm.

thanks for your reply , i have solved this problem with your suggestions（install mamba-ssm and Replace all the "core" with "oflex" in the context.）

When I installed mamba-ssm, the above issue still exists. Does mamba-ssm require a specific version? Or is there another solution?

I just replace "core" to "oflex" in vmamba.py，and it be ok.

v2=partial(self.forward_corev2, force_fp32=(not self.disable_force32), selective_scan_backend="oflex"),##


Insert Material UI Popover

How to include material ui popover inside the griddle column ?
When I am trying to implement ui popover - even though value of anchor
<Popover
      open={true}
      anchorEl={anchorEl'}
      anchorOrigin={{horizontal: 'left', vertical: 'bottom'}}
      targetOrigin={{horizontal: 'right', vertical: 'top'}}
      onRequestClose={this.hideMemberEmails}
      >
      <Menu >
        <MenuItem primaryText="Refresh" />
        <MenuItem primaryText="Help & feedback" />
        <MenuItem primaryText="Settings" />
        <MenuItem primaryText="Sign out" />
      </Menu>
</Popover>

Value of anchorEl is a dom element = Show popover
But instead of showing here Popover is appearing at upper left corner of browser screen . Any suggestion ?

I'm sorry I'm not super familiar with Material UI. If I had to guess, it would be something with CSS positioning. You may have to make a custom column component that has position relative or something and the popover exist inside this custom component with positioning.
Thanks so much for your question and please let us know how you solve this! Closing this one for now :+1:

Have any example?


Good jobs! Some questions here.

Hello, I truly appreciate the work that has been done. Just wondering, have you conducted experiments on other LLMs, for example LLaMA, Qwen, etc. Or why you choose Pythia model?

In addition, I am also curious whether this way of checkpoint compression will consume more time?

Thanks for your interests of our work.

We choose Pythia model since it has different scales of models. Since running multiple training experiments is really expensive, we have to choose a small model like Pythia-410M. We also provide experimental results of PanGu-$\pi$ in our paper.
Take Pythia-410M as an example. All experiments are conducted on a server with Intel(R) Xeon(R) Platinum 8378A CPU and 8 GPUs. We use an independent process to deal with the compression process, which is running on the CPU only while the training process is running on the GPUs at the same time. Our method cost 16.3 seconds for compression and 8.1 seconds for reconstruction while the training process is undisturbed.

The compression time seems a little bit slow. If the model size is large, like 7B, 20B, does the time consumed will increase according to the size of the model?

Sure, the time consumed will increase. But we don't need to interrupt the training when we do compression, and the compression process doesn't affect the training speed. As long as our compression can be completed before the next save, there is no burden on the training process. In fact, the time consumed is much less than the interval between two checkpoint saving operations.