Canvas not used with trunk?

Thank you for this awesome template!  I migrated my toy bevy game project to it and it is just great to have all the deployment targets set up!
I notice that trunk adds a canvas element to index.html and does not use <canvas id="bevy">.
$ trunk --version
trunk 0.17.5
$ wasm-bindgen --version
wasm-bindgen 0.2.87
$ cargo --version
cargo 1.72.0 (103a7ff2e 2023-08-15)

I worked myself around it by removing this canvas element as well as the surrounding div container.

Do I understand correctly that there were two canvas elements for you? Running trunk build in the root of the template creates a build in dist including an index.html with a single canvas element for me. I tested with trunk 0.16.0 and the latest 0.17.5.
The div is in the template as a starting point for styling and custom pages to embed the canvas in.

It was my fault - I simply copied everything except the src where I have put my existing code.  I missed to add these lines to the setup of the WindowPlugin:
                    resolution: (800., 600.).into(),
                    // Bind to canvas included in `index.html`
                    canvas: Some("#bevy".to_owned()),

now it works as expected.  If I ommit the canvas directive, a new canvas object is inserted when calling trunk serve.

The resolution is specified twice, both in the styles.css and in the resolution setting for the WindowPlugin, so they have to be kept in sync.  If I use fit_canvas_to_parent: true instead of resolution and change the styles.css to this:
body, html {
    height: 100%;
}

body {
    background: repeating-linear-gradient(
        135deg,
        #8b0000 0,
        #8b0000 2px,
        white 2px,
        white 20px
    );
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 800px;
    height: 600px;
}

#bevy {
    background-color: white;
}

I have the same effect, but specify the size only in the .css file.

The resolution is specified twice, both in the styles.css and in the resolution setting for the WindowPlugin, so they have to be kept in sync.  If I use fit_canvas_to_parent: true instead of resolution and change the styles.css to this:
body, html {
    height: 100%;
}

body {
    background: repeating-linear-gradient(
        135deg,
        #8b0000 0,
        #8b0000 2px,
        white 2px,
        white 20px
    );
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 800px;
    height: 600px;
}

#bevy {
    background-color: white;
}

I have the same effect, but specify the size only in the .css file.


flutter problem access server

I bought a multi vendor fluxstore application 1.6.5. if you have heard.
first I tried using the defauld fluxstore server and it worked.
The problem arises when I change the defauld server connection with the server that I have. I think there is someone who gives input on what I will do next

Questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community


error handling for null active language.

In https://github.com/ryandrewjohnson/react-localize-redux/blob/master/src/Localize.js#L17 where state is mapped to props you are retrieving the active language and immediately accessing the code property.
I'm encountering a race condition in which the locale has not finished initializing before Localize.js maps it's state. This is because I'm loading about 30 translation files and doing some extra processing to support falling back to the closest matching locale. Therefore, the active language is undefined and the maptStateToProps throws an error Cannot read property 'code' of undefined.
Example:
// Parent component
class Main extends React.Component {
  componentWillMount() {
    this.props.loadLocalization() // this is a thunk
  }
  render() {
    return <Child/> // thunk above has not finished by the time this renders.
  }
}

// child component
class Child extends React.Component {

}
Child = localize(Child, 'locale')

Solution
I resolved this by connecting getActiveLangauge on the parent class and rendering a loading screen while the active language was null. However, I think the documentation/logging for this could be clearer.
One solution would be to simply provide some placeholder values in https://github.com/ryandrewjohnson/react-localize-redux/blob/master/src/Localize.js#L17 if the active language was null. This probably isn't the best solution because it encourages developers to be lazy.
The other option would be to intentionally throw an error with a message indicating that they probably didn't finish initializing the locale. Then add a small section to the documentation regarding these asynchronous situations.

Thanks for the update - I understand your workflow now.
I have pushed a fix that prevents the uncaught error Cannot read property 'code' of undefined from being thrown if a user happens to Localize a component before they've dispatched initialize.
Fixed in #52

awesome thanks!


ACME storage in Consul KV

Storing ACME/LE certs in Consul used to be supported, but is no longer possible in 2.2:
https://community.containo.us/t/traefik-2-2-features/5078/2
https://community.containo.us/t/traefik-2-2-with-consul-storeconfig-command-gone/5153/4
This effectively makes ACME certs not usable in an HA configuration/with stateless containers - every restart of Traefik will yield reprovisioning of certificates,
This request if for considering bringing back that functionality in Traefik v2.

Hello @Legogris,
thanks for your interest in the project.
As already mentioned (e.g. here #5792 ), this is intended as the behavior was very error prone in V1 and we decided to drop that support.
However, on certain orchestrators (e.g. Kubernetes) you can still achieve HA in combination with external tools such as Cert Manager.
Therefore, I close that issue.


Missing documentation aqusisition monitor

We are missing the acquisition monitor in the documentation.

Do you the plugins:

https://straxen.readthedocs.io/en/latest/reference/datastructure.html#veto-intervals
https://straxen.readthedocs.io/en/latest/reference/datastructure.html#aqmon-hits
https://straxen.readthedocs.io/en/latest/reference/datastructure.html#online-monitor

Do you the plugins:

https://straxen.readthedocs.io/en/latest/reference/datastructure.html#veto-intervals
https://straxen.readthedocs.io/en/latest/reference/datastructure.html#aqmon-hits
https://straxen.readthedocs.io/en/latest/reference/datastructure.html#online-monitor

Ah yes, I have not seen them. There may be a bit hidden in the TPC data structure since there are not directly visible in the dependency graph.

Ah yes, I have not seen them. There may be a bit hidden in the TPC data structure since there are not directly visible in the dependency graph.

Similarly the online monitor is not shown top level, I have an idea to solve this let me see if it makes sense:

https://straxen.readthedocs.io/en/latest/reference/datastructure.html#event-info

Similarly the online monitor is not shown top level, I have an idea to solve this let me see if it makes sense:

https://straxen.readthedocs.io/en/latest/reference/datastructure.html#event-info

@WenzDaniel , this was what I thought about. Not sure if it makes things much better...

@WenzDaniel , this was what I thought about. Not sure if it makes things much better...

Closing this issue. If we want to revisit this, please reopen the issue.
Meanwhile, the documentation idea is saved here:
https://github.com/jorana/straxen/tree/structure_idea


Support for pdf

Hi
Website test images LR.pdf
, I have a pdf file with multiple dxf images. I have attached sample pdf. Please help me how to extract this pdf or any suggestions. Thanks

google -> extract pdf vector graphics

I need to get all vector points from pdf without compress using any of javascript. when I upload the pdf

Sorry, this is far outside the scope of this project. You'll need to look for a library specifically designed to extract stuff from PDF, or learn how to parse it out yourself.


Pass through all env vars when building

Should fix builds on Go 1.12 and also reduce build time for older versions of Go thanks to allowing use of the build cache.
Fixes #48

That was just an accident; feel free to remove those lines or I will
when I have a chance (probably Tuesday.)
On Sat, Mar 30, 2019 at 12:30:41AM -0700, Quentin Renard wrote:

asticode requested changes on this pull request.

@@ -375,17 +375,18 @@ func (b *Bundler) bundle(e ConfigurationEnvironment) (err error) {
astilog.Debugf("Building for os %s and arch %s", e.OS, e.Arch)
var binaryPath = filepath.Join(environmentPath, "binary")
var cmd = exec.Command(b.pathGoBinary, "build", "-ldflags", b.ldflags.String(), "-o", binaryPath, b.pathBuild)

cmd.Env = []string{

"GOARCH=" + e.Arch,

"GOOS=" + e.OS,

"GOCACHE=" + os.Getenv("GOCACHE"),

"GOFLAGS=" + os.Getenv("GOFLAGS"),

"GOPATH=" + gp,

"GOROOT=" + os.Getenv("GOROOT"),

"PATH=" + os.Getenv("PATH"),

"TEMP=" + os.Getenv("TEMP"),

"TAGS=" + os.Getenv("TAGS"),

}

cmd.Env = os.Environ()
cmd.Env = append(cmd.Env,

Is there a reason why you still append GOCACHE, GOFLAGS, GOROOT, PATH, TEMP and TAGS?
From my understanding, os.Environ() is already taking care of that, isn't it?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/asticode/go-astilectron-bundler/pull/49#pullrequestreview-220811494

--
fREW Schmidt
https://blog.afoolishmanifesto.com

I'll merge the PR and remove them myself.
Cheers

thanks!


[Bug] Problem getting mex doc from federated url

Which version of MSAL Go are you using?
Note that to get help, you need to run the latest version.
github.com/AzureAD/microsoft-authentication-library-for-go v0.2.0

Where is the issue?

Public client

[ ] Device code flow
[X] Username/Password (ROPC grant)
[ ] Authorization code flow

Confidential client

[ ] Authorization code flow
[ ] Client credentials:

[ ] client secret
[ ] client certificate

Token cache serialization

[ ] In-memory cache

Other (please describe)

Is this a new or an existing app?
This is a new app or an experiment
What version of Go are you using (go version)?

$ go version
go version go1.16.4 windows/amd64

What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\abdela\AppData\Local\go-build
set GOENV=C:\Users\abdela\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\abdela\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\abdela\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\abdela\Documents\code\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\abdela\AppData\Local\Temp\go-build2929686861=/tmp/go-build -gno-record-gcc-switches

Repro

app, err := public.New(c.ClientID, public.WithAuthority(c.Authority))
if err != nil {
return nil, err
}
ctx, cancel := context.WithTimeout(context.Background(), 100*time.Second)
defer cancel()

result, err := app.AcquireTokenByUsernamePassword(
	ctx,
	c.Scopes,
	c.Username,
	c.Password,
)
if err != nil {
	return nil, err
}

return &result, nil

Expected behavior
Expected that when the username and password was provided to the user would be logged in
Actual behavior
problem getting mex doc from federated url(https://nexus.passport.com/FederationMetadata/2007-06/FederationMetadata.xml): expected element type  but have
Possible solution

Additional context / logs / screenshots
Add any other context about the problem here, such as logs and screenshots.

Hi @deaborch The mex document is not in the format MSAL understands so this error is returned when unmarshalling the xml data, what ADFS version is this authenticating with ?

Adding @jmprieur, @trwalke for inputs

We had a similar issue here: #2152 where we needed to modify how MSAL.NET looked into the federation metadata. We enabled MSAL to search for the correct node throughout the entire federationMetada.xml and provided an api that enabled users to provide their own federation metadata.
The thing is, if you are using an MSA account im not sure why you would be running into this error in the first place.
Also, if you are trying to sign in noninteractively I think the only option you have is to use a work or school account with Username/Password
@deaborch is it possible to switch to a work or school account instead?

Hey @deaborch, do you have any updates ? Were you able to get this working ?

@abhidnya13  thanks for reaching out. Managed to get the basic login flow working by creating a new user in my account and logging in using that username and password. Currently working on a different project but with some experimentation should be able to get it working. Ideally it would have been nice to have a mock framework so we wouldn't have to reach out to azure for test scenarios. Closing this issue for now.


Error - static method

Hi,
i installed you and i received this error:
Cannot make static method Devloops\NovaSystemSettings\Contracts\SystemSettings::title() non static in class

I tried to fix the issue, but this leads to multiple inserts for declared fields

Thanks,
Mihai

Hi @MihaiCtinescu!
I've updated the readme, please refer to it and make sure to update your package.


fixed wrong branch for deployment of Optaplanner snapshots

https://issues.redhat.com/browse/BXMSPROD-888

@Ginxo i looked through all jobs, which are not on new layout done by @mbiarnes, but there is not such thing like here there the old DSL definition is used, but for sure if we discover any other issue we need to fix it too. Right now this is more like hotfix, so merging ASAP is required as half of deploy jobs relying on Optaplanner snapshots are broken


compose_banner: Remove the warning for messages sent in FOLLOWED topics in muted stream.

CZO Report
Earlier, when a message was sent in a followed topic in a muted stream, a compose banner warning with a suggestion to UNMUTE the topic was shown.
Compose banner warning

">

This PR fixes the incorrect behavior. No warning is shown in the case mentioned above.

Screenshots and screen captures:
compose-banner.webm

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

This comment from Tim is relevant here:

Would it make more sense for "is_topic_unmuted" to return true if the topic's visibility policy is either "followed" or "unmuted"? The way I've been thinking about this is that we've got 4 states in a progression, and if the logic we're trying to implement is that "followed topics are treated as unmuted with some both properties", that might be a cleaner way to implement it. I'm not sure, so am curious for your opinion.

I have introduced a new function is_topic_unmuted_or_followed instead of updating is_topic_unmuted to return true if it is either unmuted or followed. Reason being:

we use  user_topics.is_topic_unmuted  to show the current state in "message_header", "popovers" to change the visibility policy, "Recent conversations UI" to show current status, "filters," etc. So they are helpful when we treat "Follow" and "unmute" differently.

is_topic_unmuted_or_followed will be useful at other places in the future for the logic Tim mentioned.

This looks great to me, merged, thanks @prakhar1144!
I agree with the approach of the new function name -- we can then audit places using the old one for which should be migrated.


Subscripts wrong baseline

Rendering a subscript like x_A, y_A renders the subscript of the y lower then the subscirpt of the x. Probably because it uses the boundingbox of the letter it is subscripting.
Attached is a reference rendering from LaTeX

And the output from KaTeX

This is what I'm seeing using Chrome on Mac OS X using the http://khan.github.io/KaTeX/.

@mathijshenquet what browser/OS are you using?  Which version of KaTeX are you using?

I also noticed that the font for x and y are not in italics.  Can you post the complete source code for the math that you're rendering?

Yes further testing indicated the problem only occurs when using \mathbf. So the full text case should be \mathbf{x}_A, \mathbf{y}_A. Probably because the new \mathbf block 'forgets' that it is text.

I can confirm this issue.
The span containing the subscript under span.vlist > span has different CSS assigned to it: the top value for \mathbf x_A is 0.15em, and for \mathbf y_A it's 0.24444em.
Changing the second to 0.15em makes the text look fine.


Repository web-page contains wrong HTTP URL (ends with ".git")

Gitea version (or commit ref): v1.11.5 (release binaries from here)
Git version: v2.20.1
Operating system: ARM-6 on Raspberry Pi 3B+ (DietPi)
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

Description
The URL that appears on all the repository pages for the git clone option ends with ".git". If I manually remove it when performing git clone, all works good.
What can I modify in the app.init such that I don't get the '.git' in the URL link?
[repository]
ROOT = /mnt/dietpi_userdata/gitea/gitea-repositories
DISABLE_HTTP_GIT = false
USE_COMPAT_SSH_URI = true

[server]
DOMAIN           = git.someString.local
; SSH_DOMAIN       = localhost
HTTP_PORT        = 3000
; ROOT_URL         = http://localhost:3000/
ROOT_URL         = http://git.someString.local:3000/
; ROOT_URL         = http://%(DOMAIN)s:%(HTTP_PORT)s/
DISABLE_SSH      = false
SSH_DOMAIN       = %(DOMAIN)s
SSH_PORT         = 22
; SSH_ROOT_PATH    = /mnt/dietpi_userdata/gitea/.ssh
SSH_ROOT_PATH    = /home/dietpi/.ssh
LFS_START_SERVER = true
LFS_CONTENT_PATH = /mnt/dietpi_userdata/gitea/data/lfs
LFS_JWT_SECRET   = ***************
OFFLINE_MODE     = false

Screenshots

It is supposed to end with .git.

@CirnoT But it should end with .git for SSH protocol, the picture shows the URL for HTTP:
git clone http://git.someString.local:3000/USER/REPO
Right?
Not... git clone http://git.someString.local:3000/USER/REPO.git

HTTP(S) protocol also should end with .git

@jolheiser So you are saying this reference:

You clone a repository with git clone . For example, if you want to clone the Git linkable library called libgit2, you can do so like this:
$ git clone https://github.com/libgit2/libgit2

Is rubbish?
How do you explain this terminal output?
$ git clone http://git.DOMAIN.local:3000/USER/REPO.git
Cloning into 'REPO'...
fatal: unable to access 'http://git.DOMAIN.local:3000/USER/REPO.git/': Failed to connect to git.DOMAIN.local port 3000: Connection refused

USER@probook MINGW64 ~/Documents/Gitea_projects/test
$ git clone http://git.DOMAIN.local:3000/USER/REPO
Cloning into 'REPO'...
remote: Enumerating objects: 498, done.
remote: Counting objects: 100% (498/498), done.
remote: Compressing objects: 100% (411/411), done.
remote: Total 498 (delta 256), reused 105 (delta 68)MiB/s
Receiving objects: 100% (498/498), 27.59 MiB | 3.16 MiB/s, done.
Resolving deltas: 100% (256/256), done.

@Adito5393 you'll note if you go to https://github.com/libgit2/libgit2 github will give you the clone URL with .git. Gitea also provides the clone URL in the same pattern. Because some users copied/pasted the URL from the browser bar instead of where Gitea provides the URL to clone and complained it didn't work a redirect was put in place to the correct location (ending with .git). Github has the same redirect. The URL Gitea provides is correct, it appears something is broken with your install if the correct url ending in .git is not working.
If you don't want Gitea to have the correct URL into the clone box, you are free to customize your instance templates using these instructions https://docs.gitea.io/en-us/customizing-gitea/, perhaps a JS script that looks for the clone box and removes .git.
If you'd like help debugging why the correct URL is not working we have chat where we can help you at https://discord.gg/gitea

The explanation is not rubbish, as most services allow both URLs to work.
Both of these URLs should resolve
https://try.gitea.io/jolheiser/ciw.git
https://try.gitea.io/jolheiser/ciw
For example, even GitHub adds the .git

@jolheiser @techknowlogick
You are right, I'm sorry! I've updated my git to latest windows x64 -> v2.26.2 and not git clone URL.git works
I'll close the ticket! Thanks for the fast reply!


Startup Fails when DOTNET_STARTUP_HOOKS is empty

Type: Bug
If the environment variable DOTNET_STARTUP_HOOKS exists but is empty all sorts of issues occur.
It's been a while but if I remember right VS (not sure what version) failed to start if the environment variable didn't exist so I created it but left it empty. I've deleted it for now but hopfully it's not a Catch-22 where one needs it and the other can't have it unless it has a value.
Azure Data Studio version: azuredatastudio 1.45.1 (88c21b1725a3e79440027bdb7b5a55fb036be0e2, 2023-08-03T00:42:37.945Z)
OS version: Windows_NT x64 10.0.19045
Restricted Mode: No
Preview Features: Disabled
Modes:

@jayholliday
Can you please try with the latest insiders build and let us know if this issue is resolved?
Thanks!

@cheenamalhotra
I tried it and it still failed. However, since I had deleted that variable to make it work before I logged this issue, I had to recreate the DOTNET_STARTUP_HOOKS variable to test this update. I found that I couldn't create the var as an empty string but it would let me create it with a single space. The error I received after setting it to a space was;

Unhandled exception. System.ArgumentException: The startup hook simple assembly name ' ' is invalid. It must be a valid assembly name and it may not contain directory separator, space or comma characters and must not end with '.dll'.
at System.StartupHookProvider.ProcessStartupHooks()

in both the old version and the Insiders version. I suspect that's what was in the variable before and the message is pretty clear that a space isn't allowed so to some degree it's working as designed making this a self inflicted wound even if it was created to get around a bug in VS.

Ok, I think the .NET runtime teams have addressed empty values and not spaces.
PR https://github.com/dotnet/runtime/pull/84322 and Code Reference
Either way, if its not yet addressed by .NET runtime - I don't think we can do anything from here. You may report this issue to .NET runtime teams (dotnet/runtime) and request support on this. We can't do anything from ADS side. Environment variables are loaded during launch into our backend .NET services and if low level .NET variables are defined in environment they would impact the functioning, as our backend services run within user's context in .NET runtime processes.
I will close this as external, we are using latest .NET SDK 7.0.401


formula: allow plists to be generated

[x] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?
[ ] Have you successfully run brew man locally and committed any changes?

This is a very rough first draft of an idea I've been thinking about for a while that might eventually one day allow services on linux.
EDIT: This would currently need something like this in a formula instead of the current plist blocks:
  service do
      arguments [ "#{HOMEBREW_PREFIX}/opt/beanstalkd/bin/beanstalkd" ]
      error_path "#{HOMEBREW_PREFIX}/var/log/beanstalkd.error.log"
      log_path "#{HOMEBREW_PREFIX}/var/log/beanstalkd.log"
      working_dir "#{HOMEBREW_PREFIX}/var"
      keep_alive true
      run_at_load true
  end

Review period will end on 2020-12-14 at 22:16:19 UTC.

Review period ended.

For some reason I can't get the label to be anything other than
        <key>Label</key>
        <string>homebrew.mxcl.Formulary::FormulaNamespacec96d75ecf36d9fa431be929904fa3ca7::Beanstalkd</string>

I was personally thinking of allowing brew services to modify/install these: https://www.unixsysadmin.com/systemd-user-services/

I was personally thinking of allowing brew services to modify/install these: https://www.unixsysadmin.com/systemd-user-services/

Cool, fine with me 👍🏻

Reminds me of https://github.com/Homebrew/brew/pull/5695.

@reitermarkus AFAIK runtime brew doesn't use sorbet, so I should keep the lines like this, despite adding a signature right?
raise TypeError, "Service#keep_alive expects a Boolean"

My plan for this is as follows, in case people still want to bikeshed:

Get this version merged
Make a PR to generate systemd files
Start adding it to homebrew-core

This would allow us to bikeshed until the systemd file PR is done, and maybe replace the namings with some systemd versions if they're better, without diving deep into the systemd namings for this PR

Does anyone know how I would make formula paths work in the Service block?
   2) Formula #service
     Failure/Error: run [bin/"beanstalkd"]

     NameError:
       undefined local variable or method `bin' for #<Homebrew::Service:0x000000000786f130>

Mike gave me a pointer to look at class_eval, but I couldn't figure out how to make it work. If anyone has code suggestions I'd be very happy.

Is it not working with
delegate [:bin, :var, :libexec] => :@formula

?
Seems like in combination with instance_eval it should work.

I think it's because the bin/var methods are private? And instance_eval takes a block so I'm not sure how to make that accept all of the formula methods.

When you call Homebrew::Service.new(self) to create the service, self is a reference to the formula class, not the formula object instance

Here's a fix: https://github.com/SeekingMeaning/brew/commit/29f10a311

Mike gave me a pointer to look at class_eval, but I couldn't figure out how to make it work. If anyone has code suggestions I'd be very happy.

Will provide more help post-Christmas! I'd rather avoid delegating because I'd like to have all Formula methods work here.

Here's a class_eval and a instance_eval example:
https://github.com/Homebrew/brew/blob/47c584545df51d36b4d3a40d3187b975e01fa4f6/Library/Homebrew/language/python.rb#L119-L120
https://github.com/Homebrew/brew/blob/47c584545df51d36b4d3a40d3187b975e01fa4f6/Library/Homebrew/test/support/fixtures/testball.rb#L5-L10

(both using Formula)

Those all call some hardcoded methods in Formula from the code of another class. I'm not sure how to apply that to my problem of "making all methods in Formula available in a block".

https://github.com/Homebrew/brew/pull/9517#issuecomment-751125889
@MikeMcQuaid is this the kind of fix you're suggesting?

https://github.com/Homebrew/brew/pull/9517#issuecomment-751125889
@MikeMcQuaid is this the kind of fix you're suggesting?

@SMillerDev yeh, that'd work 👍🏻

@SMillerDev yeh, that'd work 👍🏻

@SeekingMeaning you want to push that one to my branch?

@SeekingMeaning you want to push that one to my branch?

Sure, and you can squash it if you want

Sure, and you can squash it if you want

Wait a second, I misread 😅

Wait a second, I misread 😅

There, pushed

There, pushed

Since it's still a valid improvement without bin/"file" support and nobody can seem to figure that out, can I just fix this review and we can merge it without that functionality?
CC @MikeMcQuaid who requested the feature.

Since it's still a valid improvement without bin/"file" support and nobody can seem to figure that out, can I just fix this review and we can merge it without that functionality?

I think we can skip that functionality. Could you make a PR for homebrew-core implementing this for 3-5 formulae? Obviously the PR will fail but I think it'll be helpful in reviewing this.

Okay, I set back the review to the state before my attempts at bin/"stuff". The review in homebrew-core is linked above, I'd say this is ready for another pass.

@SMillerDev will rereview and test this when CI is 🟢

I'm not really sure why the errors are there. I can rebase and see if that helps but other than that I can't think of anything that would make Linux not find the service_spec for example.

Rebase is worth a try, yeh.

  cannot load such file -- /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/service_spec.rb

I have no idea why it can't find this.

Updating Homebrew...

Hmm suspicious.
Ignoring Generic OS for now, do the macOS test failures happen to you locally?

 Which I believe is correct.

Lets try a rebase

Doesn't really make much sense. I can't see anything specific to this PR which could cause it.

Could you run these locally to see if you get this issue too?

All passes for me, except a random GitHub API rate limit.

The current state is such:
  service do
    run opt_bin/"appium"
    environment_variables PATH: std_service_path_env
    run_type :immediate
    keep_alive true
    error_log_path var/"log/appium-error.log"
    log_path var/"log/appium.log"
    working_dir var
  end

The implementation of opt_prefix was sometimes returning /usr/local/opt/Formulary::FormulaNamespace279309c7847cf54ccf7d6052f685a506::Appium/ though, I'm not sure if that was an implentation problem or not, since the label seems to be doing the exact same code. But it works there.

For context, I removed the stale label here because there's been some recent progress that could hopefully get this merged.


Support for websocket or other Tunnel protocol

Support for websocket or other Tunnel protocol.

I would love to, but I'm afraid that is not a goal of realm. Maybe you could try this repo?

Ok, I just wanna use this tool as same as gost. Thx, I will try midori firstly.


The read_flaky_tests scope has been removed

Removed in https://github.com/buildkite/buildkite/pull/13089
Note, I didn't remove it from the schema docs. There are a lot of changes to the schema so I think updating it is outside the scope of this PR.

There are a lot of changes to the schema so I think updating it is outside the scope of this PR.

Update the schema from the monolith and docs will pick up the change automatically (e.g. https://github.com/buildkite/docs/pull/2313).


first doesn't use loaded objects, it always queries

Notice this behavior on a has many proxy:
(byebug) self.messages.map(&:unread) [true] (byebug) self.messages.first.unread false
The first line uses the in-memory objects, while the second one reloads from the database.

I noticed this the other day. It's definitely a needed optimization. [0] will not load from the db.


Change all PDS-Solutions to new ENV location variable and revoke old one

Situation
With #1309 we introduced PDS_JOB_EXTRACTED_SOURCES_FOLDER. The old environment variable PDS_JOB_SOURCECODE_UNZIPPED_FOLDER was still kept, but with the new location inside. So existing PDS solutions will work.
Wanted
PDS_JOB_SOURCECODE_UNZIPPED_FOLDER shall no longer be used.
Solution

[x] Replace in all PDS-Solutions the environment variable PDS_JOB_SOURCECODE_UNZIPPED_FOLDER with PDS_JOB_EXTRACTED_SOURCES_FOLDER.
[ ] After this, remove PDS_JOB_SOURCECODE_UNZIPPED_FOLDER from PDSExecutionCallable

@de-jcup pds-solutions part is done. Please take over for the Java part.


Multi Language Support

What would you like to share?
Adding multi-language support to your application enhances accessibility and user experience by allowing users to interact with the application in their preferred language
Additional information
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

not req


consider AWS KMS support

dotenvx encryption seems very similar to sops.

yes.

Having a single .env.keys file feels risky and error prone.

this is actually effectively what sops does as well. you'll reliant on that single key (a gpg key or external) to generate the encrypted embedded AES256 encryption/decryption key.
the core issue is still management of that grandfather encryption key. if that leaks you are still in trouble - just like if a DOTENV_PRIVATE_KEY leaks.

Sops also integrates easily with AWS and other existing key management solutions, so that you can use your existing IAM controls on keys

something dotenvx could definitely support - and with a much better UX than sops. sops UX is pretty bad so far. i'll keep using and see if I change my mind.

dotenvx could take some inspiration where the main key is encrypted in the secrets file itself, and you can define multiple age key recipients, each of which can then decrypt the main key.

need to investigate this. it gets hairy though with large teams - 'ephemeral access' to keys might be better. where you send the encrypted file to a service to decrypt. i doubt people are using multiple age key recipients on teams larger than 4 or 5. so much to coordinate.
source

this conversation is happening over here: https://github.com/dotenvx/dotenvx/issues/267


Improve legibility of bottom bar with certain images

When viewing screenshots for example, the bottom bar text can mix with the screenshot text, leading to low legibility.

App version: 1.1.0
Android version: 13

This also happens with the top bar, where it overlaps with the statusbar:


caseInsensitive is not working

My version of UI-Router is: (version)
1.0 rc.1
Bug Report
Hi @christopherthielen
I think that the caseInsensitive flag is not working. I set it in my config block like:
$urlServiceProvider.config.caseInsensitive(true);

--> no error
Then I check it in the app block and in the controller with:
console.log($urlService.config.caseInsensitive());

-> returns true twice
However, the case insensitivity in the url is not working. Other $urlServiceProvider options work fine.
$urlServiceProvider.rules.sort(sortByRegistrationOrder);
$urlServiceProvider.rules.otherwise('404');

Setting it with the $urlService does not work either. Your help is very welcome.

Seems to be working in plunker: http://plnkr.co/edit/H9i4VrRfHPkwxPyfMQyu?p=preview

Thanks! I will try to find out which particular settings break it and will add it to the plunker during the weekend.

I further looked in to it and realized that the function had to be called before the state definitions. My bad that I did not try it immediately. It also works with states whose urls are defined with regex. Very cool!
Thanks for your help!

the function had to be called before the state definitions

Ah.  I should add that to the docs!


Jnci edits 10302018

@mikeng13 , @thomaszurkan-optimizely : Kindly review and merge if approved.

@jamesneimanconsulting there is a merge conflict with the README.md file. Can you please resolve it so we can merge it in?


Remove Guzzle Dependency from User Code

As discussed. It's not necessary to expose the full depth of the guzzle API in an own API, but at least all Headers, the Status code and maybe raw text body.
Probably means that we have to wrap a bunch of exceptions, too.
This is a breaking change for the part of the user code that looks into the response details or handles guzzle exceptions.


Support direct output to BigQuery

Currently, if users want to export their FHIR resources to BigQuery, they should either export to a GCP FHIR-store first OR create the Parquet files and manually import them through BigQuery tools. We should support direct output to BigQuery in our pipelines.
A related issue is #454

Just to follow up - direct output to BigQuery is a lower priority given two reasons:

If you're outputing to BigQuery, then likely you can use GCP FHIR Store, and leverage HC API to facilitate the export.
It seems like generating parquet from the FHIR-data-pipes can be loaded into GCP, so there is a workaround to getting this into GCP without adding a direct integration.


Sliding carousel changes size when inside d-flex

The images of a "Carousel inside a d-flex div" change size during the sliding.
Full demo: https://codepen.io/igll/pen/KJxJLo (Bootstrap 4.3.0)
Windows 10, Chrome 72.0.3626.109
Also at Chrome for Android

You are using w-100 there hence why...


Serializable class

Hey there,
Amazing plugin and I'm really happy with it.
I've managed to create an Array 2d of custom scriptable object classes, but I have a problem if I try to create Array2d of a serializable class.
Basically is this possible?

[Serializable]
public class Array2DTest : Array2D<Test>

[Serializable]
public class Test

[CustomPropertyDrawer(typeof(Array2DTest))]
    public class Array2DTestDrawer : Array2DDrawer
    {
        protected override object GetDefaultCellValue() => new Test();

        protected override object GetCellValue(SerializedProperty cell) => cell.managedReferenceValue;
        protected override void SetValue(SerializedProperty cell, object obj)
        {
            cell.managedReferenceValue = (Test) obj;
        }
    }

Hi @chebedzic, thank you for your comment, really! 😃
I apologize for the delay. I'm back on this plugin so I will look into this and let you know if I find something.
I have tried something like your example and indeed, it doesn't seem to work, I can't display my custom class.
I've seen the doc about managedReferenceValue, which I didn't know about: https://docs.unity3d.com/ScriptReference/SerializedProperty-managedReferenceValue.html
It looks like we're gonna need a [SerializeReference] attribute somewhere...


rfox dashboard for non connect rune account rewards

for a non connected rune account display reward transaction history
if a rune address is not connected get tx history via IPFS

potential filters:

recv only
from genesis of rfox (block height)

completed


Add tools/test-tools to tools/travis/{backend,frontend}.

Automated message from Dropbox CLA bot
@showell, it looks like you've already signed the Dropbox CLA. Thanks!

Probably makes sense to only put this in one of those -- the reason we have split the test-all tests into two sets is just a performance optimization... what I mean when I suggested both is that I wasn't sure which one was best.  Thinking about this more, seems like "frontend" is probably clearest.

Closing, as now covered in #1545


Error once app installed

Have encountered several issues while installing the app template.
First trying to install it in a Teams Channel server IP address could not be found.
While trying to talk with the bot, error message and an authentication button but clicking on it doesn't do anything.

I had the same issues. Sign in the issue you can resolve by adding "token.botframework.com" into the valid domain section. For more detail ping me via Teams/email. My alias is mibon.

@Mikhail2k15  awesome!!! it works! have provided the feedback to update the documentation.

@Mikhail2k15 I still have the first issue when trying to install in a Teams Channel....

Thank you for submitting this issue, as we work to ensure consistent responses with items logged in our issues list, we are working to address these items that did not get responses. Please let us know if you are still facing this issue and require assistance and we will be happy to discuss. If no further action is needed at moment and no response is received, we will close out the issue in 3 business days. You may also always open a new issue or respond here if something does come back up. Thank you!


Implement Enhanced Moderation, User Engagement, and Custom Commands Features

Enhanced Moderation Tools:

Profanity Filter:

Detects and flags posts containing explicit language using an extensive list of profane words.
Sends a private message to the user notifying them of the inappropriate content and flags the post for moderators.

Spam Detection:

Flags posts containing more than five links as potential spam.
Sends a private message to the user and flags the post for moderators.

User Engagement:

Daily/Weekly Summary:

Automatically generates and posts a summary of the top 5 most viewed discussions.
Keeps the community informed and engaged with popular topics.

Welcome Message for New Users:

Sends a personalized welcome message to new users upon account creation, encouraging them to participate and seek help if needed.

Custom Commands:

Advanced Help Command:

Adds a custom command @system help advanced to provide advanced resources and help links to users.
Responds with a detailed list of useful forum resources when triggered.

Benefits:

Improved Moderation: Helps maintain a respectful and spam-free community by automatically flagging inappropriate content.
Increased Engagement: Keeps users informed about popular discussions and makes new users feel welcome, potentially increasing their participation.
Enhanced User Support: Provides quick access to advanced help resources through custom commands.

Testing:

All new features have been tested locally to ensure they work as expected.
The profanity filter was tested with various profane words to confirm it flags posts correctly.
Spam detection was tested by creating posts with multiple links.
The daily/weekly summary feature was tested to ensure summaries are generated and posted correctly.
The welcome message and custom commands were tested by creating new user accounts and posting commands.

Hello,
This pull request implements enhanced moderation tools, user engagement features, and custom commands to improve the CWHQ Discourse Bot. I've provided a detailed description of the changes, benefits, and testing.
I'm open to any feedback and willing to make adjustments as needed. Thank you for reviewing my contribution!
Best,
Simon


More detailed exception info for {% oscar_thumbnail %}

Issue Summary
When there is an exception in {% oscar_thumbnail ... %}, it would be helpful if the error log entry (or an additional log entry) contained information about the source of the image with the thumbnailing problem, i.e. the product which is causing the problem, as that is likely easier to debug than some auto-generated thumbnail URL.
I've included some example log entries below, which show that there is no context for the error.  I want to know which product has an image, as I have been trying to rid my local dev environment of the images which were in the db, and therefore to not be generating thumbnails, and so I dont need to be running a storage.
Also I think there should be a separate thumbnailer class/instance used for the OSCAR_MISSING_IMAGE_URL, so that works even if there are transient issues with the storage.  Currently oscar cant show the "missing image" if storage backend fails because the missing image is on the same storage as the product images.  It becomes very slow to load the page, waiting many times for timeouts for the storage backend.  Oddly, this occurs on page load, because Oscar does some "missing image" prepration during the initialation, so theoretically sorl.thumbnails should have the "missing image" in its cache (redis or dbm)?  I'll keep digging.
I found it curious that none of the three minio storage I could find have any the ability to set a timeout.  sorl.thumbnail has THUMBNAIL_REDIS_TIMEOUT/THUMBNAIL_CACHE_TIMEOUT and THUMBNAIL_URL_TIMEOUT, but the latter doesnt apply to codepaths related to use of STORAGE engines.
Steps to Reproduce

Use django-minio-storage and enable MINIO_STORAGE_AUTO_CREATE_MEDIA_BUCKET, or use django-minio with just usual connection params,
Cause some temporary problem with the minio service
Load oscar catalogue

django-minio-storage:
...
  File "/usr/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 113, in render
    raise e
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 110, in render
    return self._render(context)
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 126, in _render
    thumbnail = thumbnailer.generate_thumbnail(source, **options)
  File "/usr/lib/python3.8/site-packages/oscar/core/thumbnails.py", line 29, in generate_thumbnail
    return get_thumbnail(source, size, **opts)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/shortcuts.py", line 8, in get_thumbnail
    return default.backend.get_thumbnail(file_, geometry_string, **options)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/base.py", line 74, in get_thumbnail
    source = ImageFile(file_)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/images.py", line 112, in __init__
    if hasattr(self.storage, 'location'):
  File "/usr/lib/python3.8/site-packages/django/utils/functional.py", line 224, in inner
    self._setup()
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/default.py", line 24, in _setup
    self._wrapped = get_module_class(settings.THUMBNAIL_STORAGE)()
  File "/usr/lib/python3.8/site-packages/minio_storage/storage.py", line 360, in __init__
    super().__init__(
  File "/usr/lib/python3.8/site-packages/minio_storage/storage.py", line 75, in __init__
    self._init_check()
  File "/usr/lib/python3.8/site-packages/minio_storage/storage.py", line 81, in _init_check
    if self.auto_create_bucket and not self.client.bucket_exists(
  File "/usr/lib/python3.8/site-packages/minio/api.py", line 453, in bucket_exists
    self._url_open('HEAD', bucket_name=bucket_name)
...

django-minio:
...
  File "/usr/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 113, in render
    raise e
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 110, in render
    return self._render(context)
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 126, in _render
    thumbnail = thumbnailer.generate_thumbnail(source, **options)
  File "/usr/lib/python3.8/site-packages/oscar/core/thumbnails.py", line 29, in generate_thumbnail
    return get_thumbnail(source, size, **opts)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/shortcuts.py", line 8, in get_thumbnail
    return default.backend.get_thumbnail(file_, geometry_string, **options)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/base.py", line 102, in get_thumbnail
    if settings.THUMBNAIL_FORCE_OVERWRITE or not thumbnail.exists():
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/images.py", line 123, in exists
    return self.storage.exists(self.name)
  File "/usr/lib/python3.8/site-packages/django_minio/storage.py", line 84, in exists
    raise IOError(f'Could not stat file {name} {err}')
OSError: Could not stat file cache/6e/d0/6ed006ba576b4a3c230e7adb21d10b8c.jpg HTTPSConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /media?location= (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fe3cefdc400>: Failed to establish a new connection: [Errno 111] Connection refused'))

easy-thumbnails:
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 113, in render
    raise e
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 110, in render
    return self._render(context)
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 126, in _render
    thumbnail = thumbnailer.generate_thumbnail(source, **options)
  File "/usr/lib/python3.8/site-packages/oscar/core/thumbnails.py", line 52, in generate_thumbnail
    return get_thumbnailer(source).get_thumbnail(opts)
  File "/usr/lib/python3.8/site-packages/easy_thumbnails/files.py", line 513, in get_thumbnail
    thumbnail = self.generate_thumbnail(
  File "/usr/lib/python3.8/site-packages/easy_thumbnails/files.py", line 385, in generate_thumbnail
    raise exceptions.InvalidImageFormatError(
easy_thumbnails.exceptions.InvalidImageFormatError: The source file does not appear to be an image

minio-storage-backend
[22:23:26][ERROR] oscar.thumbnail image_tags.py:render:115 | HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /image_not_found.jpg?location= (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9205759250>: Failed to establish a new connection: [Errno 111] Connection refused'))
...
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 110, in render
    return self._render(context)
  File "/usr/lib/python3.8/site-packages/oscar/templatetags/image_tags.py", line 126, in _render
    thumbnail = thumbnailer.generate_thumbnail(source, **options)
  File "/usr/lib/python3.8/site-packages/oscar/core/thumbnails.py", line 29, in generate_thumbnail
    return get_thumbnail(source, size, **opts)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/shortcuts.py", line 8, in get_thumbnail
    return default.backend.get_thumbnail(file_, geometry_string, **options)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/base.py", line 104, in get_thumbnail
    source_image = default.engine.get_image(source)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/engines/pil_engine.py", line 72, in get_image
    buffer = BytesIO(source.read())
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/images.py", line 162, in read
    f = self.storage.open(self.name)
  File "/usr/lib/python3.8/site-packages/django/core/files/storage.py", line 36, in open
    return self._open(name, mode)
  File "/usr/lib/python3.8/site-packages/django_minio_backend/models.py", line 101, in _open
    return self.client.get_object(bucket_name, object_name, request_headers, sse)
  File "/usr/lib/python3.8/site-packages/minio/api.py", line 839, in get_object
    return self._get_partial_object(bucket_name,
  File "/usr/lib/python3.8/site-packages/minio/api.py", line 1663, in _get_partial_object
    return self._url_open('GET',
  File "/usr/lib/python3.8/site-packages/minio/api.py", line 2035, in _url_open
    region = self._get_bucket_region(bucket_name)
  File "/usr/lib/python3.8/site-packages/minio/api.py", line 1965, in _get_bucket_region
    region = self._get_bucket_location(bucket_name)
  File "/usr/lib/python3.8/site-packages/minio/api.py", line 1998, in _get_bucket_location
    response = self._http.urlopen(method, url,
  File "/usr/lib/python3.8/site-packages/urllib3/poolmanager.py", line 330, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 747, in urlopen
    return self.urlopen(
  File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 747, in urlopen
    return self.urlopen(
  File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 747, in urlopen
    return self.urlopen(
  [Previous line repeated 2 more times]
  File "/usr/lib/python3.8/site-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3.8/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /image_not_found.jpg?location= (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9205759250>: Failed to establish a new connection: [Errno 111] Connection refused'))

Technical details

Python version: 3.8
Django version: 3.0
Oscar version: 2.1

Have you tried THUMBNAIL_DEBUG=True ?

Have you tried THUMBNAIL_DEBUG=True ?

Sure.  Please dont get focused on any specific motivation, especially not dev-only aspects.  Oscar needs better handling of storage errors, especially for production, where it needs to gracefully degrade when there are storage related problems.
Anyways, replying directly regarding THUMBNAIL_DEBUG:  Not very helpful.  Check out the traces above, snippet here:
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/base.py", line 108, in get_thumbnail
    source_image = default.engine.get_image(source)
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/engines/pil_engine.py", line 72, in get_image
    buffer = BytesIO(source.read())
  File "/usr/lib/python3.8/site-packages/sorl/thumbnail/images.py", line 162, in read
    f = self.storage.open(self.name)

Here is what sorl/thumbnail/base.py looks like around line 108.
        # We have to check exists() because the Storage backend does not
        # overwrite in some implementations.
        if settings.THUMBNAIL_FORCE_OVERWRITE or not thumbnail.exists():
            try:
                source_image = default.engine.get_image(source)
            except IOError as e:
                logger.exception(e)
                if settings.THUMBNAIL_DUMMY:
                    return DummyImageFile(geometry_string)
                else:

If the thumbnail does not yet exist, the storage will be used first, and the dummy only used if there was an IOError.  Even if that code was being triggered, the dummy image isnt cached, so the same timeout would happen for the next time the same image is requested.
In any case, that code path is never reached because the MRO of these exceptions:

urllib3.exceptions.MaxRetryError
urllib3.exceptions.MaxRetryError
urllib3.exceptions.RequestError
urllib3.exceptions.PoolError
urllib3.exceptions.HTTPError
Exception..

There is likely ways to improve sorl here, but that is only considering environments where THUMBNAIL_DEBUG is even sane.  The broader issue remains.

We could quite easily add logging inside Oscar's thumbnail wrapper if the thumbnail backend returns an empty result, which would make it a bit easier to work out where the error originates - this would be our own logging separate from whatever the thumbnail backend does. sorl isn't doing a very good job here itself but that would need to be addressed within sorl itself.

@solarissmoke do you suggest to do following:

class SorlThumbnail(AbstractThumbnailer):

    def __init__(self):
        if not apps.is_installed('sorl.thumbnail'):
            raise ValueError('"sorl.thumbnail" is not listed in "INSTALLED_APPS".')

    def generate_thumbnail(self, source, **opts):
        from sorl.thumbnail import get_thumbnail

        # Sorl can accept only: "width x height", "width", "x height".
        # https://sorl-thumbnail.readthedocs.io/en/latest/template.html#geometry
        # So for example value '50x' must be converted to '50'.
        size = opts.pop('size')
        width, height = size.split('x')
        # Set `size` to `width` if `height` is not provided.
        size = size if height else width
        thumbnail = get_thumbnail(source, size, **opts)
        if not thumbnail:
            logger.error('Error while trying to generate thumbnail')

Yes - but we'd also log the source to make it easier to track down which original image we're trying to thumbnail (that context is quite hard to obtain with sorl's default logging).

Alright, I'll handle that.


Focus and unfocus selected realm

Focus:

[ ] on realm click we should move the realm to the center of the viewport but no zoom
[ ] if needed the background around the island should be filled with solid color
[ ] movement animation should be smooth
[ ] when realm is focused then the color and label should stay as it is when user it hovering over the realm - brighter color and border, icon and label visible
[ ] when realm is focused then other realms should be greyed out

Unfocus

[ ] clicking on the map shouldn't unfocus the realm
[ ] only clicking on a given button should unfocus
[ ] unfocusing should move the viewport to the center of the map

Resolved by #793


Invalidate should work

have we tested it recently?

open some short domains to test it. Please also bid on apple and twitter


Inline chat disappears on accept or discard

I notice that the inline chat disappears on accepting or discarding a text edit. I am wondering if we want that? Some users may want to continue using the inline chat.
cc @jrieken

Some users may want to continue using the inline chat.

In that case I think they shouldn't accept or discard 😄 No, seriously I wouldn't know how else they should finish a session

Perhaps we could have an additional button to close explicitly the inline chat?


Update install aws terraform

@chingyi-lin - Closing this - changes made in https://github.com/mulesoft/docs-runtime-fabric/pull/101. Sorry for the confusion!

No problem. Thank you!


bring volume-viewer code into simularium-viewer

We want to use the volume viewer code in simularium but expect there might be modifications required. We want to be able to track any changes to volumeviewer while concurrent dev happens there.  So there are a few options:

copy/paste into subdirectory.  We estimate this might be bad for change tracking with the main volumeviewer but is very straightforward.
git submodule volume-viewer (and use a branch of course)
use npm package dependency from a branch of volumeviewer (can use npm link or "file:" dependency for local dev).

Any of these may require changing exports.  Goal should be to do minimal changes.
Consider the following as a nice goal: we will need to be able to import the Volume class, and the IVolumeLoader infrastructure, directly.  We can also probably use the VolumeDrawable and RayMarchVolume for rendering directly inside of simularium (with no modifications?)
This task is complete when we have a strategy where we can import any volume-viewer modules into simularium-viewer.

Discussed with @toloudis and we agreed that adding volume-viewer the traditional way (as an npm package) may give us everything we need with minimal overall changes to the API surface. Our plan for development of this feature is:

Create a branch on volume-viewer on which to make these API changes.
During development of this feature, install volume-viewer as a local package, i.e. with a dependencies entry of the form "@aics/volume-viewer": "file:../volume-viewer",. Assume that developers and reviewers have volume-viewer stored at this location and on the correct branch.
Once initial implementation of volume agents is complete, PR the branch on volume-viewer. Assess whether the changes are superficial enough to merge and release, or if we need to take a more unusual approach to integrating the code into simularium.


New Cattle environments not going to Add Host welcome page

Version: Master 5/12
Environment Type: (Cattle/Kubernetes/Swarm/Mesos) Cattle
Steps to Reproduce:

Go to Manage Environment and create a new cattle environment
Switch to that environment

Results: Goes to the Add Service welcome page
Expected: Go to the Add Host welcome page
Comment - this only happens in Cattle environment and works properly for swarm, mesos and k8s.

Version - master 5/15
Verified fixed


Feature: adding a set function in fsm.h to set the current state

Added a setter function to the fsm class to set the current state asynchronously in the user application code.

State transitions should only be triggered by events, not by simply writing to a member variable. This is a key principle of fsmlite's design.

@tkem the motivation behind adding a setter function is that we want to use a single state machine for multiple objects. Each object stores it's last known state in a data base; and whenever needed, it can fetch that state, feed it into the state machine and continue with the state transitions.

@yabbasi31415: So you kind-of want to create/initialize a new state machine for each object with a given state, but want to re-use a state machine instance (to preserve memory or for whatever reasons)? What about this (using the player state machine from the tests):
    player p;
    assert(p.current_state() == player::Empty);
    p = player(player::Playing);
    assert(p.current_state() == player::Playing);

IMHO this is somewhat cleaner and more explicit than setting "just" the state, especially if your derived FSM also introduces other member variables that need to be taken care of.


Navigating to a specific page

Is there a way, where i can directly navigate to page no. 'X' ?  where x is a number within the range of the array defined.
Or make auto swipe with a delay?

Switching to the specific number page means you need to manually prepare the desired page content in a bitmap and set it as the next texture in the PageFlip. When you flip it on the screen, the next page content is your expected.


Force final delimiter for lists, arrays, and records

Ideally, we want multi-line lists, arrays, and records to have a final ; before the closing symbol, in order to minimize diffs when add new elements.
[1; 2; 3] should be left as it is, but
[1; 2;
  3]

should be formatted as
[
  1;
  2;
  3;
]

We had that feature, but we removed it in #262 and #300 because it caused issues that we were not able to solve at the time, notably #243 and #244. See those issues to have more context about the challenges an implementation of this feature would have to tackle.
Examples
Here are some tricky lists and the way they should be formatted:
[
  a;    (* a comment *)
  "b"   (* two comments *); (* on the same line! *)
  0xc   (* two comments *) (* on the same line! *);
  [d; e (* sneaky *); f] (* a comment *);
  G.h   (* now there *) (* are three *) (* of them! *)
]

[
  "foo";
  let bar = baz in qux
]

[
  let a = () in a;
  a;
  a (* seems repetitive *);
  a;
]

should be formatted as
[
  a; (* a comment *)
  "b"; (* two comments *) (* on the same line! *)
  0xc; (* two comments *) (* on the same line! *)
  [d; e (* sneaky *); f]; (* a comment *)
  G.h; (* now there *) (* are three *) (* of them! *)
]

[
  "foo";
  (let bar = baz in qux);
]

[
  (
    let a = () in
    a;
    a;
    a (* seems repetitive *);
    a;
  );
]

Was discussing with @Niols today that the zig makes an interesting design decision here, which I quite like. The user either writes or omits the trailing comma, and the zig formatter uses this to infer whether the list should be multi-line or single line. Rather than checking whether there are multiple lines to determine whether the list should have a trailing comma.
It was counter-intuitive at first, but within a day or two I found deleting/adding a single character (the comma) to have the formatter reformat the list in the way i want to be very satisfying and useful.

(Worth noting that there are exceptions to this rule when comments are involved)


Import individual required feature

I love the idea of react-af, as I'm working on some components that I'd like to support broadly. However, in this case, I already know in advance what features I'm using (specifically, I want to use the new Context API sooooo bad). I don't really want all this extra code to support Fragments and modify method names and whatnot. I'm wondering if you'd be interested in an API that would allow this:
import createContext from 'react-af/createContext';
// or maybe:
import { createContext } from 'react-af';

So I could ensure I only bundle up the code that I need to make everything interop correctly.
Thoughts?

I like the idea. let me look into it. PRs welcome ;)


Static resources missing in version 0.0.7

I've tryed using the latest version (0.0.7) and it seems that the static resources (CSS and JS) are missing from the NuGet package. From what I've seen, they are present in the project, but missing from package.

this is super weird. Probably related to .net6 https://github.com/dotnet/aspnetcore/issues/35345 or https://github.com/dotnet/aspnetcore/issues/36740.
With the current csproj structure one build produces staticwebassets, but the next build doesn't...

I have manually pushed https://www.nuget.org/packages/MudBlazor.Markdown/0.0.8
It contains all static files, so it should solve this issue I hope

Now it works as expected. Thank you.


Update version to 0.6.1-SNAPSHOT

Changes Unknown when pulling bd02fe4af7be20e1143bfac4507254b928ee1cb2 on mziccard:update-to-0.6.1-SNAPSHOT into ** on GoogleCloudPlatform:master**.

@garrettjonesgoogle I no longer have write access, can we merge this before we merge anything else? Please ignore the duplicate failure indicators by Travis/AppVeyor, that was actually my fault, PR is building fine

merged!

@garrettjonesgoogle thank you :)

No, thank you!


Can't extract new AssetBundle (Some data left at LZ4 stream decoder)

Greetings.
I'm trying to extract the contents of a Pokémon game, but seems like the tool isn't able to read newer AssetBundles, while it was able to read older bundles. In this case, the only content of the bundle is a Texture2D.
Here are some sample files:
This one can be read successfully:
https://anonfiles.com/d7839al3p2/cap0199_f01_s0_unity3d
This one can't be opened and I get an error:
https://anonfiles.com/N88499l7p0/cap0199_f01_s0_r_unity3d
Quickly glancing through the file it seems the basic structure seems unchanged, but I don't really know what's different about the newer file. The error I'm getting is the following:
Error message: Some data left

Stack trace: at uTinyRipper.Lz4.Lz4DecodeStream.ReadBuffer(Stream stream, Int64 count)
   at uTinyRipper.BundleFiles.BundleFileBlockReader.ReadEntry(Node entry)
   at uTinyRipper.BundleFileScheme.ReadFileStreamData(Stream stream, Int64 basePosition, Int64 headerSize)
   at uTinyRipper.BundleFileScheme.ReadScheme(Stream stream)
   at uTinyRipper.GameCollection.ReadScheme(SmartStream stream, String filePath, String fileName)
   at uTinyRipper.GameCollection.LoadScheme(String filePath, String fileName)
   at uTinyRipper.GameStructure.ProcessPlatformStructure(GameStructureProcessor processor, PlatformGameStructure structure)
   at uTinyRipper.GameStructure.Load(List`1 pathes, LayoutInfo layinfo)
   at uTinyRipper.GameStructure.Load(IEnumerable`1 pathes, LayoutInfo layinfo)
   at uTinyRipperGUI.MainWindow.LoadFiles(Object data)

According to the bundle, the engine version is 2018.4.26.

Custom compression. It is unsupported


Characters in a cljx file after #+clj

Not sure if this is some oversight on my part, or a bug, so I'll report it here. I'm running Clojure 1.7.0-alpha2, cljx 0.6.0, using CIDER nrepl 0.8.2.
Leiningen 2.4.2 on Java 1.8.0_11 Java HotSpot(TM) 64-Bit Server VM
We've been using cljx for a while with no issues, but just noticed an error with the following code snippet inside a cljx file:
#+clj
(defn foo []
  \x)

Compiling that namespace yields "No reader function for tag +clj". If I remove the #+clj, or if I replace the \x with "x", all works well.

Any thoughts on this one?

This one slipped through the cracks, sorry.
Pure speculation, but I'm guessing this is an sjacket issue. I'll figure it out next time I'm fiddling with cljx, but workarounds should be straightforward in the interim.


Extend file access retries to check rename and remove as well

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[x] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
I'm still getting some file access errors on my laptop, so I extended the logic to cover a few more places. I added try_remove, matching try_rename to avoid bare os.remove calls. To avoid code duplication I turned the retry logic into a decorator that wraps sanitize_open, try_remove and try_rename.
Notes:

try_rename had a custom error message. I couldn't add it to the decorator and I think it would have conflicted with the error handling so it now raises the built in error if it fails.
I added error.EINVAL (error 22) to the list of errors to retry, as I also saw this error on my laptop (I'm pretty sure it's the same problem as the parameter looks fine and it doesn't fail every time).

self.report_error and raising an error are not the same thing. Will need to investigate whether this might break anything

Ah, sorry, for some reason I thought self.report_error just raised. It's a bit ugly, but I think I could use func.__name__ to make an exception for try_rename and preserve the old behavior.

@ehoogeveen-medweb are the errors you are encountering happening when there are multiple yt-dlp processes, perhaps attempting to download the same ID?

@jakeogh No, it happens with only 1 instance of yt-dlp and seems to happen regardless of what the rest of the system is doing (although causing a burst of network activity by e.g. reloading a page seems to make it happen more frequently).


Scala Stream Collector: add ability to anonymize IP address with AES at collection point

One of the very few enrichments which is justifiable (from a security perspective) to do at collection time.
Would re-use functionality from #846.
Unscheduled.

Closing this in favour of https://github.com/snowplow/snowplow/issues/3247


Keep .helpdm setting on for users that toggle server DMs on & off

Re: PR #1629 and discussion on server
Currently when a user runs the .helpdm on command and subsequently closes their server DMs, when bot's DM fails to deliver the user is then set to not receive help DMs. The user has to remember to rerun the .helpdm on command again after re-opening their server DMs at a later date.
This is cumbersome for users who frequently toggle their server DMs on and off.
It would be nice to disable this behavior and find a way to keep the setting as is even when bot's DMs fail to be delivered to the user.
Currently the bot also pings the user in #bot-commands when a DM fails to send, but it is deleted so quickly that I never noticed. We could consider not deleting this message, or extending the amount of time before deletion to give a user a chance to actually see the message.

I turned off DMs earlier today and forgot to turn them back on before participating in a help channel. I did see the ping notification in #bot-commands but by the time I got there message was already gone. What is the current delay before message deletion?


add NS record support

Attempts to address issue #4

Works for me with single and multiple DNS servers in the NS record


Merge model branches into main to combine latest anylogic model with latest pre/post-procressing scripts

Required for friday POC engine start

Depends on #111


[Interface] Row gets duplicated (visually) when enabling proxy

This is quite specific:
If you enable proxy on a record that doesn't exists (#162), the row will get duplicated. Further action (even refreshing/disabling/reenabling/etc) wont cause the same behavior.
Screenshot attached

(pardon the crappy image edit)

This is a known issue. It is most probably caused from the frontend
https://github.com/cloudflare/cloudflare-plugin-frontend/blob/8d58b4fa2523d1e6b72671e6245143c3351df7ae/src/containers/DNSRecordEditor/DNSRecordEditor.js#L22-L36
We have this tracked but haven't had time to fix it. You're welcome to open a PR :)


Ammend github-page workflow

The github-page workflow fails if theres nothing to commit.  Use
--allow-empty to aleviate it, this is not perfect but easiest to do.

bors merge


Flashing arduino pro micro fails

Flashing a basic hex file onto an arduino pro micro fails with "Error: could not reconnect after resetting board."
debug shows it finding the micro, and on the correct port.
debug then shows it resetting the board, and my pro micro does in fact reboot
then.... error, help!

Hi! Thanks for opening this issue. I noticed this recently when I was testing with a Micro. If you run the code again immediately after it fails the first time, it does work for me. This is obviously a bug, so this gives me a hint on where to took to start tracking it down with a fix. Thanks and I'll leave this open until I find a solution, which hopefully should be quite soon 😁

Yay a workaround! TY I was worried I would have to mess with serial npm packages again :fearful:

My aim is for folks to never have to do this stuff manually themselves starting from scratch 😄
If you can run the flash method again upon the first error as a workaround for now, I'll update you when the bug is fixed. I appreciate your kindness and am happy you're getting use out of avrgirl-arduino 🙆

No dice in my testing....
it finds the micro, resets, and fails, but when rerun immediately after it either:

resets the board again
gives "Error: opening COM12: File not found();"
gives "Error: no Arduino 'micro' found"
gives "Error: Opening COM12: Access denied(...)"

the error depends on when in the process i have it re-run the flash command, help please :(

gotcha. Yeah I'd say the long bootloader time on the Micro will not allow an immediate reattempt. I'll look into this further asap, I'm sure it's solvable as it's only a recently introduced bug. More soon!

Ok so more testing.... I got it to flash, using the 'leonardo' board and manually forcing the correct com port...
var avrgirl = new Avrgirl({
				  board: 'leonardo',
  				port: 'COM12',
				  // turn on debug mode!
				  debug: true
				});

Hopefully this makes the fix easier knowing it reboots/flashes fine using whatever you set for leonardo? Maybe just use the same for micro?

oh, odd! I have a feeling I might know what it going on. This has been super helpful from you, thank you!!

Couple of questions, as I cannot replicate this on my mac or my windows box:

is your Arduino Micro from Arduino, or is it a clone? It should look like one of these

Does the script work at all if you specify the port, but leave it as micro being the board type?

If you answer is 'no' to the second question, could you please run the following with your Arduino plugged in, and paste the results in this thread?

var Avrgirl = require('avrgirl-arduino');
var avrgirl = new Avrgirl({
  board: 'micro',
  debug: true
});

var hex = 'path/to/your/hex/file.hex';

avrgirl.list(function(err, ports) {
  console.log('1st list', ports);
});

avrgirl.flash(hex, function(error) {
console.log(error);
 avrgirl.list(function(e, ports) {
    console.log('2nd list', ports);
  });
});

Me again - I just published what I think should be a fix for this bug, if you npm install avrgirl-arduino@latest could you please let me know if you see it fixed on your end too?
Thanks!

No dice, to answer your questions:

this is a clone board, arduino pro micro
same error

`Navigated to file:///C:/Users/Mike/Documents/GitHub/CoreIR-Uplink/source/index.html
C:\Users\Mike\Documents\GitHub\CoreIR-Uplink\source\node_modules\avrgirl-arduino\lib\connection.js:25 found micro on port COM11
C:\Users\Mike\Documents\GitHub\CoreIR-Uplink\source\node_modules\avrgirl-arduino\lib\avr109.js:114 resetting board...
index.html:97 1st list [Object, Object]0: Object_standardPid: "0x8037"comName: "COM11"locationId: undefinedmanufacturer: "Arduino LLC (www.arduino.cc)"pnpId: "USB\VID_2341&PID_8037&MI_00\7&179A8F7E&0&0000"productId: undefinedserialNumber: undefinedvendorId: undefined__proto__: Object__defineGetter__: defineGetter()defineSetter: defineSetter()lookupGetter: lookupGetter()lookupSetter: lookupSetter()constructor: Object()arguments: nullassign: assign()caller: nullcreate: create()defineProperties: defineProperties()defineProperty: defineProperty()freeze: freeze()getOwnPropertyDescriptor: getOwnPropertyDescriptor()getOwnPropertyNames: getOwnPropertyNames()getOwnPropertySymbols: getOwnPropertySymbols()getPrototypeOf: getPrototypeOf()is: is()isExtensible: isExtensible()isFrozen: isFrozen()isSealed: isSealed()keys: keys()length: 1name: "Object"preventExtensions: preventExtensions()prototype: Objectseal: seal()setPrototypeOf: setPrototypeOf()proto: ()hasOwnProperty: hasOwnProperty()arguments: nullcaller: nulllength: 1name: "hasOwnProperty"proto: ()isPrototypeOf: isPrototypeOf()arguments: nullcaller: nulllength: 1name: "isPrototypeOf"proto: ()propertyIsEnumerable: propertyIsEnumerable()arguments: nullcaller: nulllength: 1name: "propertyIsEnumerable"proto: ()toLocaleString: toLocaleString()arguments: nullcaller: nulllength: 0name: "toLocaleString"proto: ()toString: toString()arguments: nullcaller: nulllength: 0name: "toString"proto: ()valueOf: valueOf()arguments: nullcaller: nulllength: 0name: "valueOf"proto: ()get proto: proto()arguments: nullcaller: nulllength: 0name: "get proto"proto: ()set proto: proto()arguments: nullcaller: nulllength: 1name: "set proto"proto: ()1: Object_standardPid: ""comName: "COM1"locationId: undefinedmanufacturer: "(Standard port types)"pnpId: "ACPI\PNP0501\1"productId: undefinedserialNumber: undefinedvendorId: undefined__proto__: Objectlength: 2__proto__: Array[0]
index.html:74 [Object, Object]0: Object_standardPid: "0x8037"comName: "COM11"locationId: undefinedmanufacturer: "Arduino LLC (www.arduino.cc)"pnpId: "USB\VID_2341&PID_8037&MI_00\7&179A8F7E&0&0000"productId: undefinedserialNumber: undefinedvendorId: undefined__proto__: Object1: Object_standardPid: ""comName: "COM1"locationId: undefinedmanufacturer: "(Standard port types)"pnpId: "ACPI\PNP0501\1"productId: undefinedserialNumber: undefinedvendorId: undefined__proto__: Objectlength: 2__proto__: Array[0]
index.html:101 Error: could not reconnect after resetting board.(…)
2nd list [Object, Object]0: Object_standardPid: ""comName: "COM1"locationId: undefinedmanufacturer: "(Standard port types)"pnpId: "ACPI\PNP0501\1"productId: undefinedserialNumber: undefinedvendorId: undefined__proto__: Object1: Object_standardPid: "0x0036"comName: "COM10"locationId: undefinedmanufacturer: "Arduino LLC (www.arduino.cc)"pnpId: "USB\VID_2341&PID_0036\6&32FB597E&0&1"productId: undefinedserialNumber: undefinedvendorId: undefined__proto__: Objectlength: 2__proto__: Array[0]concat: concat()constructor: Array()copyWithin: copyWithin()entries: entries()every: every()fill: fill()filter: filter()find: find()findIndex: findIndex()forEach: forEach()includes: includes()indexOf: indexOf()join: join()keys: keys()lastIndexOf: lastIndexOf()length: 0map: map()pop: pop()push: push()reduce: reduce()reduceRight: reduceRight()reverse: reverse()shift: shift()slice: slice()some: some()sort: sort()splice: splice()toLocaleString: toLocaleString()toString: toString()unshift: unshift()Symbol(Symbol.iterator): values()Symbol(Symbol.unscopables): Object__proto__: Object`

out of curiosity - are you using this in a browser, Electron, or Chrome app perhaps? Trying to narrow this down. I've been testing in my node terminal, so I fear I've been testing this incorrectly the whole time

https://github.com/slacker87/CoreIR-Uplink
Electron, like I said, works great with leonardo selected! Who knows why :p

it seems that the problem is that the clone reports a non standard (ie. not a genuine Arduino) product id when in bootloader mode. Clones can be really tricky, and I can't always guarantee support for them out of the box as they widely vary with how they present as a device on USB.
I added that product id to the micro identification object and published it - could you possible retry again? Thanks!

Success on three different type of 32u4 clone boards! 🎉
Now when I code up and share my project I can safely know they'll work first try with avrgirl 🎂 ty

🙌  🙌  🙌  🙌
great to have another clone out in the wild tracked down and now compatible. Thanks for you patience! 🎉

I'm getting the same "File  not found" error, same as slacker87's first comment. Checked my product ID (productID: '8037') and it seemed okay although it is a clone micro.  I then used the code you supplied on August 26 and here is the result:
1st list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\8&306F1381&0&0000',
locationId: '0000.001a.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
_standardPid: '8037' } ]
found micro on port COM7
resetting board...
Error: Opening COM7: File not found
at Error (native)
2nd list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\8&306F1381&0&0000',
locationId: '0000.001a.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
_standardPid: '8037' } ]
Help Please and Thank you!

hmmm might be a timing issue 🤔 I'll try this on Windows when I get a chance to see if I can replicate.

Could you check the PID in bootloader mode? Just double tap the reset button and run the list command again. It might be missing for the PID list.

I reset the board twice ( there is no reset button so I jumped the GND and RST twice) and the results are the same:
No port auto sniff
1st list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\8&306F1381&0&0000',
locationId: '0000.001a.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
_standardPid: '8037' } ]
found micro on port COM7
resetting board...
After that it just hangs. :(

try 'leonardo' instead of micro for board type
On Wed, Feb 8, 2017 at 10:27 PM<EMAIL_ADDRESS>wrote:
I reset the board twice ( there is no reset button so I jumped the GND and RST twice) and the results are the same:
No port auto sniff
1st list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\8&306F1381&0&0000',
locationId: '0000.001a.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
_standardPid: '8037' } ]
found micro on port COM7
resetting board...
After that it just hangs. :(
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

No luck with 'leonardo':
No port auto sniff
1st list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\8&306F1381&0&0000',
locationId: '0000.001a.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
_standardPid: '8037' } ]
Error: no Arduino 'leonardo' found.
at C:\Users\ts-ycc\node_modules\avrgirl-arduino\lib\connection.js:33:
25
at C:\Users\ts-ycc\node_modules\avrgirl-arduino\lib\connection.js:74:
12
at C:\Users\ts-ycc\node_modules\avrgirl-arduino\lib\connection.js:212
:12
2nd list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\8&306F1381&0&0000',
locationId: '0000.001a.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
_standardPid: '8037' } ]

Thanks for posting all of the debug info 😄
I'm currently traveling until later this week so I don't have my gear on me to try to reproduce 😞 I'll keep you posted!

@ts-ycc hi there, I could not reproduce this because it turns out I don't have an Arduino Pro Micro. I have an Arduino Micro, which is quite different.
You said your board is an Arduino Pro Micro. If so, Avrgirl Arduino does not currently support this exact board yet. It has a slightly different bootloader, and is not the same as an Arduino Micro.
Does your board seem to be something like this? https://www.sparkfun.com/products/12640
Let me know, and if you're not sure feel free to attach a photo of your board to a reply 😄

Yes, indeed I have an Arduino Pro Micro. Oh well. :(  Thanks for the info, though.  Also, one thing I noticed is that the USB/serial driver (by Auduino) I used did not send an event when the board was reset and that might be the reason why the software hangs after it tried to reset the board.

ah I see. Could you try something for me? I wonder if you need the 'double reset' due to the slightly different bootloader. See this that I found: https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/32U4Note.pdf
if you were already resetting the board twice I apologise. I think there also might be a different flashing method as well, but I can ready the datasheet of the board and see if I can support this board with minimal effort.

I tried the double reset but it did not work, then I uninstall the current Arduino driver and reinstall another USB Serial driver and voila it works!!! The only thing I am not quite sure is the board does not blink and I used blink.cpp.hex to flash it. Here is the output:
No port auto sniff
1st list [ { comName: 'COM6',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_8037&MI_00\7&14380AD2&0&0000',
locationId: '0000.001d.0<IP_ADDRESS>.000.000.000',
vendorId: '2341',
productId: '8037',
standardPid: '8037' } ]
found micro on port COM6
resetting board...
reset complete.
connected
flashing, please wait...
flash complete.
null
2nd list [ { comName: 'COM7',
manufacturer: 'Arduino LLC (www.arduino.cc)',
serialNumber: undefined,
pnpId: 'USB\VID_2341&PID_0036\6&796A6A0&0&1',
locationId: 'Port#0001.Hub_#0003',
vendorId: '2341',
productId: '0036',
_standardPid: '0036' } ]
Looks good!! So the reason it did not work is because of the driver, but why the Arduino IDE works with the same driver is a bit puzzling. Also, you may want to add a timeout after the board is reset so for whatever reasons the driver does not respond the software will not hang. Thanks!

Glad you got it to work! Weird.
I do have a timeout in the code for after a reset, so I wonder if there's something I need to catch before the reset completes. Thanks


Fix loading of shared data

Description

Make sure shared data is always merged with data at the same point to create more predictable behaviour
Load shared data when necessary
Remove confusing return value of prefetch methods (since it's mutating the route info, the return value is never needed)

Motivation and Context
Fix nozzle/react-static#981
I've added some helper functions to determine whether or not the route info and/or its shared data should be loaded client-side. Although I feel like these might not be in the right place, but I'm not sure what would be a more appropriate place. Any suggestions?
Types of changes

[ ] Refactoring/add tests (refactoring or adding test which isn't a fix or add a feature)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] My changes have tests around them

Excellent :)


Ledger-related flags no longer available in autocomplete since v1.0.x

Expected Behavior
Ledger-related flag --useLedger and option --ledgerAddresses=x are available in autocomplete to improve workflow, as was the case in earlier versions.
Current Behavior
Although the flags do still work, these have been removed from autocomplete since v1.0.x and are also not described in respective help-files.

@amani1104 does this work for other flags? was not even aware this way even a feature we originally offered, but seems nice to have :)

@aslawson I believe it only worked for the Ledger-related flags. This was a feature of the autocomplete plugin until v1 of celocli, but somehow it got removed after that.

@amani1104 We won't have the bandwidth to dig into this in the near term, so I'm going to close for now. But this seems like a good ticket to open up to the community via gitcoin


Fix standard.js error

Running standard.js in the resulting project generates the following error, and this fixes it.
MBP:server shilman$ standard --fix
standard: Use JavaScript Standard Style (http://standardjs.com)
/Users/shilman/projects/checkin/server/server/index.js:73:3: Do not
use 'new' for side effects.

Thanks for this @shilman.
When updating skel files, we also need to update the test/output-app to ensure that the generation tests still pass. I need to setup CI for this.

Hey let's get these committed

@tmeasday sorry missed your response. Updating.

@tmeasday updated


Update cumulusci.yml

Critical Changes
Changes
Changed the EDA Github dependency path from 'https://github.com/SalesforceFoundation/EDA/tree/rel/1.81' to 'https://github.com/SalesforceFoundation/EDA' to ensure the project is pulling from the current EDA release.
Issues Closed

I had to roll back EDA at one point as the org I was deploying to hadn't auto updated to the latest EDA package. Kind of an anomaly.  This pull request should be good.


Asserts ignored in recommends checking

The assert in the following code passes, but Verus gives a recommendation not met warning on the subrange call:
assert(0 <= physical_head <= new_physical_tail <= new_contents.len());
let s1 = new_contents.subrange(physical_head, new_physical_tail);

note: recommendation not met
   --> logimpl_v.rs:204:18
    |
204 |         let s1 = new_contents.subrange(physical_head, new_physical_tail);
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: /mnt/c/Apps/verus/source/pervasive/seq.rs:139:44
    |
139 |         recommends 0 <= start_inclusive <= end_exclusive <= self.len();
    |

Fixed


Add mdpdf and tryGit

A bit of shameless self promotion and also a genuine add:

mdpdf is a tool for converting markdown files into pdfs. Really great if you want to version control a document but be able to print / send it around as a pdf. (Codes of conduct, as well as essays etc).
tryGit is the github tool for a "15 minute introduction to git". I've put this one at the top as it's aimed towards someone who knows nothing about git so I think it's a good intro resource.

Oh snap. Mdpdf is gonna be useful for me actually. I need this for our code of conduct. Perfect!

@PandelisZ awesome, glad you like it!

@joenash is the man


Newb Github Issue

For some reason I need to keep re-running: . ~/.bashrc - in every new window else, apm is not found.
Ok, main issue though, I keep getting the message:
There was an issue accessing the package, this is a private package so check you have a valid license and that you have correctly set your github access token
I set the token in my git profile, I updated my keychain -- is there somewhere in apm i'm missing to set something for git?

Did you add the token to the apm configuration (https://github.com/airsdk/apm/wiki/Usage#authentication)
apm config set github_token ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXX

Did that resolve it? :)

Sure did! :)

Sorry for unearthing this issue but the whole token situation seems to have evolved and I cannot access the private repositories.
The guide the wiki points to is obsolete, Personal access tokens have been removed and now there are either SSH tokens or GPG tokens.
I created a GPG token and tried setting it in APM, both with the token id or the subkey, with and without ghp_ prefix.. nothing works.

Thanks for your help

Please navigate all the way to the bottom on that menu:
select "Developer Settings"
/ "Personal Access Tokens"
/ "Tokens classic"
This should be where you can generate the token you need.


feat: #879 - added a "same category" button on product page

New file:

category_product_query.dart: Back-end query about a category.

Impacted files:

knowledge_panels_builder.dart: refactored
product_cards_helper.dart: refactored
product_query.dart: added category tags field
product_query_page.dart: now displaying directly the search parameter
summary_card.dart: added a "same category" button

Little problem (I know that @teolemon will love this): you need to refresh a product to see the button, because we need a new field - categoryTags.
I should put another icon than '+'.
And is the button supposed to be displayed systematically? I don't know.

Including the category name in the button is not going to make it. It makes the button ugly, and we have even longer cat names
I would use a podium/ranking icon
We could start with "Compare to Category" and see how it goes

Done (it's a bit sad the category name is not displayed on the product page):

Thank you @teolemon for your feedback!
In French I translated the button text this way: "Comparer dans la catégorie".


Zoom out

I'm submitting a...

 Same thing happens in the example:
.
How can I zoom out further? I didn't find any direct method to do so, there also seems not to be any direct feedback to how far I am so I can maybe limit the amount of data that I put into the chart.
Can You please assist?

yeah it's not a bug it's the default behavior, this is controlled by the pointsPerPxThreshold on ChartCavas the default is 2 you'd have to increase that to allow further zoom out.

Thanks for the answer! I've been trying everything including pointsPerPxThreshold but for some reason I didn't notice any difference when changing that. It worked this time though :D
Would be nice if the props were described in the docs or with jsdocs.


Endace Release V2 app

PR Details

Description

Related Issue

Checklist

[ ] Changes follows the best practices from the given docs.
[ ] Updated CHANGELOG.md.
[ ] Ran unit tests locally.
[ ] Updated screenshots/sample logs if any.


What would you like to learn?

how to make repairs when things go wrong.

cherry picking changes from someone else's branch

pull requests, merge conflicts, reverting changes

cherry picking & merge conflicts

fixing issues that may come up

I think I'm a pretty fluent git/github user, but am interested in working even more efficiently.

I've use github CLI a little, but interested in what else it can do beyond cloning.
Interested in GitHub Actions (but I think that's out of scope for this class).
git bisect


twopass extractor charge resolution broken in v0.9.0

@HealthyPear found that the Charge Resolution benchmark no longer passes, see below.
Seems to be a bug introduced in either #1356 or possibly, but less likely, #1370
For ctapipe 0.8.0:

For ctapipe 0.9.0:

Note the problem occurs in the first pass of the TwoPass method, so is likely something simple and not related to the time fitting (which hasn't run at this point in the benchmark)

also, nevermind the requirement, is not in the same units...I have to remember to disable it for the time being...

I think the problem is just in the definition of the windows and shifts. With the current version, there was a misunderstanding on the definition and it should miss the peak in many cases - working on a fix.