Connected Method Missing from Templates

I am a novice programmer and believe based on your videos that the goal is to make this package a very skinny and simple template for someone to get started writing an Alpaca Driver.  I really appreciate this package!!  I looked all over for days on how to get started writing my own ASCOM COM or Alpaca driver when I could not find something existing to do what I needed.   So I am not sure if this is an Issue or intentional.  So please forgive me if it was intentional and feel free to ignore this post if it was.
In the original example, there is a "connected" class in the rotator.py example (with both on_get and on_put).  From what I understand, all these classes in the .py (rotator.py for example) are used to generate the URI's (ASCOM Alpaca Methods) for each device.  From reading the documentation and the ASCOM API website, this "method" appears to be required of all devices (https://ascom-standards.org/api/#/ASCOM Methods Common To All Devices).  The example compiles and passes the ConformU  tests.  It appears that all the common and device specific methods except "connected" are in the templates.
But when trying to follow the directions for building your own driver using the templates, after trying to run ConformU, I kept getting "404 (NotFound)" errors on all "GET Connected" tests.  It took me a lot of time to finally figure out there is no "class connected" in the template I was using (and appears all).  Unless I missed it, the documentation did not mention this missing "class connected" in the template.   Without the "class connected", it fails conformity testing at the most basic level (404 errors).
So I added back a generic version of the rotator.py example "class connected:" as follows:
@before(PreProcessRequest(maxdev))
class connected:
    """Retrieves or sets the connected state of the device

    * Set True to connect to the device hardware. Set False to disconnect
      from the device hardware. Client can also read the property to check
      whether it is connected. This reports the current hardware state.
    * Multiple calls setting Connected to true or false must not cause
      an error.
   """

    def on_get(self, req: Request, resp: Response, devnum: int):
        resp.text = PropertyResponse(True, req).json

    def on_put(self, req: Request, resp: Response, devnum: int):
        try:
            resp.text = MethodResponse(req).json
        except Exception as ex:
            resp.text = MethodResponse(req, # Put is actually like a method :-(
                            DriverException(0x500, f'{self.__class__.__name__} failed', ex)).json

It still does not pass the ConformU due to some tests of "bad parameters" being passed (Empty string, Number, Meaningless string), but all of the 404 errors went away.
I know this needs to actually test the connection status (on_get) and connect/disconnect (on_put) and to test the passed values are in range, but it gets rid of the 404 errors and let's me know I need to deal with this method.  I would recommend that either the a "class connected" be included with each template or the documentation notes the need for this class to be added to every template.

 Will be fixed on 0.4.

Released 0.4 with this fixed in the templates.


x/vuln: Trojan:Win32/Randet.A!plock asm.exe

Issue: Potential trojan detection: asm.exe flagged as Trojan:Win32/Randet.A!plock
Description
I have encountered a potential trojan detection on the Go programming language version 1.20.6. The file "asm.exe" located at "C:\Program Files\Go\pkg\tool\windows_amd64" has been flagged by my antivirus software (Trojan:Win32/Randet.A!plock).
Steps to Reproduce

Install Go version 1.20.6.
Scan the system using updated antivirus software.
Observe the detection of "asm.exe" as Trojan:Win32/Randet.A!plock.

Expected Behavior
The Go installation should not trigger a trojan detection, and all files should be recognized as safe by Microsoft Windows Defender.
Actual Behavior
The file "asm.exe" is being flagged as Trojan:Win32/Randet.A!plock by Microsoft Windows Defender.
Environment

Go version: 1.20.6

Screenshots/Logs

Additional Information
Processor: AMD PRO A10-9700 R7, 10 COMPUTE CORES 4C+6G  - 3.50 GHz 64-bit operating system, x64-based processor
RAM: 12GB DDR4
OS: Windows 11 Pro

https://golang.org/doc/faq#virus


getPcode() API inconsistency in Java vs Python (suspect issue with how overrides handled in jython)

Describe the bug
There is an inconsistency in the behavior of the following API: getPCode()
In particular, invoking the getPCode with an argument (e.g. getPCode(True) or getPCode(False)), the number and type of pcodes that return in the native java  versus python is very different.
I strongly suspect this has to deal with how jython is dealing with the overrides as this function accepts types of bool and int.
The only time the behavior of the python appears consistent with java is with no parameter calls (i.e. getPcode())
To Reproduce
Invoke getPCode(True) or getPCode(False) on an an instruction such as CALL in x86.  The length of the list will be 0.
Expected behavior
I expected the length and type of pcode instruction to be consistent across java and the python script
Screenshots
If applicable, add screenshots to help explain your problem.

Attachments
If applicable, please attach any files that caused problems or log files generated by the software.
Environment (please complete the following information):

OS: Ubuntu  18.04 LTS
Java Version: openjdk 11
Ghidra Version: 9.1

Additional context
Add any other context about the problem here.

Possibly related to https://stackoverflow.com/questions/21329491/calling-right-overload-of-the-java-method-from-jython


Twitch link download does not work.

I wonder if it's my own error... I hope it's fixed as soon as possible.

I wonder if it's my own error... I hope it's fixed as soon as possible.

same here.i hode there's a fix to this, twitchlink is literally the best non-sud twitch vod downloader out there.


series.bar.label 及 series.line.label 点击无效

Version
4.8.0
Reproduction link
https://gallery.echartsjs.com/editor.html?c=xyfKams4BO&v=2
Steps to reproduce
点击拆线文字区域或图标区域
What is expected?
弹出 alert 弹窗
What is actually happening?
没有进入点击事件

The coming next big version 5.0 should support the clickable label.


Round up warning expiry time to the nearest hour to avoid confusion over delays caused by XenForo task system's hourly schedule.

Done in https://github.com/Xon/XenForo2-WarningImprovements/pull/43/commits/1489bfd85fcf13f192877c49882e6bc2e590980d


add model chinesebert

add model chinesebert
paddle model weights:
https://drive.google.com/file/d/1Cze9mZGX9_1btGCCYTdb7PA2PNPvw2is/view?usp=sharing

PR types

PR changes

Description

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

还有三个主要的地方需要修改：

重要的class和method需要添加docstrings，可以参考其他模型写法。
需要pre-commit统一代码格式，可以参考 https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/10_contribution/local_dev_guide_cn.html#pre-commit
需要在examples/language_model下面添加模型使用示例。

That's ok.


The town tune throws off the loop times.

Once the town tune plays, it throws off the loop times for the songs, causing jarring loops.

If I were to guess, I think it may be caused by the fact that the function that plays the town tune, playHourlyMusic() at line 34 of AudioManager.js, plays the town tune first and then starts the music only afterwards.
The function that initiates the loop-times seems to be the function setLoopTimes() at line 98 of AudioManager.js, and that function is executed in audio.onplay() at line 91. Perhaps the reason this bug is happening is because the town tune sets off audio.onplay(), thereby starting the timer, before the actual music does so?

That doesn't appear to be the case, the town tune does not set off the onplay event in the audiomanager.

Seems to be related to the tab audio handler pausing the extension's music.

The issue appears to be somewhat simple. When the town tune plays, in specific conditions when the tab audio handler is set to pause the music, it creates two loop timeouts that run at once. I am currently working on a fix now.


Pymarl integration

I am opening a PR to track and comment on the progress of PyMARL integration.

Works great! It would be helpful to have the command to start training in the README :)

Thanks for the feedback! Yes, it is a work in progress. I will add clear readme(s). :)


remove unrecognized flag from create SA script

Description
When following instructions from the README to build the cloud run service via cloud build,  the following error was seen:

The flag condition was not recognized. I did not find it on the reference page either.

++ gcloud config get-value project
+ PROJECT_ID=otel-test
+ SA_NAME=run-otel-example-sa
+ REGION=us-east1
+ gcloud iam service-accounts create run-otel-example-sa '--description=A service account just to used for Cloud Run observability demo. https://github.com/GoogleCloudPlatform/opentelemetry-cloud-run' '--display-name=Cloud Run OpenTelemetry demo service account' --condition=None --quiet
ERROR: (gcloud.iam.service-accounts.create) unrecognized arguments: --condition=None (did you mean '--configuration'?)

To search the help text of gcloud commands, run:
  gcloud help -- SEARCH_TERMS

Removing the flag, resulted in a successful execution of the script.

Just noticed #20 , which addresses the same issue.
However, the action item has not been addressed since last review which was in May.


[BUG]: Users[].GetAsync() does not return correct data

What happened?
Using the GitHubClient.Users[].GetAsync() returns a value with a null value for the PublicUser and PrivateUser properties.
The generated code to call /users/{login} appears to not be expecting the correct payload:
public static WithUsernameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
    if (parseNode == null)
    {
        throw new ArgumentNullException("parseNode");
    }

    string value = parseNode.GetChildNode("")?.GetStringValue();
    WithUsernameGetResponse withUsernameGetResponse = new WithUsernameGetResponse();
    if ("private-user".Equals(value, StringComparison.OrdinalIgnoreCase))
    {
        withUsernameGetResponse.PrivateUser = new PrivateUser();
    }
    else if ("public-user".Equals(value, StringComparison.OrdinalIgnoreCase))
    {
        withUsernameGetResponse.PublicUser = new PublicUser();
    }

    return withUsernameGetResponse;
}

I would expect it to just return the user as-is:
{
  "login": "martincostello",
  "id": 1439341,
  "node_id": "MDQ6VXNlcjE0MzkzNDE=",
  "avatar_url": "https://avatars.githubusercontent.com/u/1439341?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/martincostello",
  "html_url": "https://github.com/martincostello",
  "followers_url": "https://api.github.com/users/martincostello/followers",
  "following_url": "https://api.github.com/users/martincostello/following{/other_user}",
  "gists_url": "https://api.github.com/users/martincostello/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/martincostello/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/martincostello/subscriptions",
  "organizations_url": "https://api.github.com/users/martincostello/orgs",
  "repos_url": "https://api.github.com/users/martincostello/repos",
  "events_url": "https://api.github.com/users/martincostello/events{/privacy}",
  "received_events_url": "https://api.github.com/users/martincostello/received_events",
  "type": "User",
  "site_admin": false,
  "name": "Martin Costello",
  "company": "@justeattakeaway",
  "blog": "https://martincostello.com",
  "location": "London, UK",
  "email": null,
  "hireable": null,
  "bio": ".NET developer, tester and Microsoft MVP based in London working for Just Eat Takeaway.com",
  "twitter_username": "martin_costello",
  "public_repos": 163,
  "public_gists": 13,
  "followers": 504,
  "following": 20,
  "created_at": "2012-02-15T09:43:20Z",
  "updated_at": "2024-06-08T18:05:14Z"
}

Versions
0.0.16
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Ooh, interesting find. I've confirmed this, and when you remove the if ("private-user".Equals(value, StringComparison.OrdinalIgnoreCase)) logic, the response gets populated exactly as you'd expect.
I'm going to file an issue with Kiota for this.

Reported upstream at https://github.com/microsoft/kiota/issues/4844!

The upstream issue seems to have been closed due to a lack of activity. Looks like they say the OpenAPI schema is wrong as it doesn't have a discriminator?

Yep, they're correct. We need to update the schema internally; our team just hasn't had the time yet. We'll keep this open and return to it when we can!

Kiota v1.20.0 was released yesterday, and that looks like it contains the bug fix you needed to be able to resolve this?

Wanted to chime in and mention I see the same behavior with the API call to get the currently authenticated user of the client (i.e. client.User.GetAsync(). It'd be great to know when we can expect this category of bug to be fixed. This project is super promising and we're excited to explore it! Thanks.


Exposing atom serial number for custom coloring operation

Hi Marco,
Firstly, just wanted to say thanks for developing this tool - it's been incredibly useful.
I'm currently using PV Viewer to display the results of various metrics applied to a protein structure (ie. levels of polymorphism, solvent accessible surface area etc). This involves a custom coloring operation applied to each atom:
return new pv.color.ColorOp(function(atom, out, index) {
    var score = colorData[atom.index()];
    if (score == 'None' || score == null) {
      out[index+0] = 1;
      out[index+1] = 1;
      out[index+2] = 1;
      out[index+3] = 1;
    } else {
      var colorGrad = getHeatMapColor((score - min)/(max - min));
      out[index+0] = colorGrad[0];
      out[index+1] = colorGrad[1];
      out[index+2] = colorGrad[2];
      out[index+3] = 1;
      // index + 0, index + 1 etc. are the positions in the output array
      // at which the red (+0), green (+1), blue (+2) and  alpha (+3)
      // components are to be written.
    }

It seems that the atom index used by PV does not align properly to the atom serial number in the PDB file, which I have been using to reference the output score for each atom/residue. In particular, atoms with alternate locations are skipped in the PV indexing scheme (ie. alt_loc !== ' ' && alt_loc !== 'A'), but retained in the PDB file serial number indexing scheme.
Is there a quick way of exposing the atom serial number within the custom ColorOp, or would this require changes to the existing code?
Cheers,
Andrew

Hi Andrew,
I've just pushed some changes to parse the serial number from PDB files. The property is stored in every atom and is available as atom.serial().
I hope that helps
Best,
Marco

Hi Marco,
That is perfect - very much appreciated!
Cheers,
Andrew

Hi Marco,
Sorry to reopen this issue/feature request again.  I've gone and implemented a call to atom.serial() within a custom ColorOp. It works perfectly when calling:
function loadPDB() {
  pv.io.fetchPdb('1zro.pdb', function(structure) {
      structView = structure;

      //Get colour info
      getColorInfo("color_data", function(results) {

        viewer.lines('protein', structView, { color : colorByFile(results) });

        viewer.centerOn(structView);
      });

  });
}

where getColorInfo is an ajax request with a callback.
However, when altering the 3rd line to define a selection (MolView object I think?):
...
structView = structure.select('protein');
...

the custom ColorOp fails to color anything. Calling atom.index() instead of atom.serial() within the ColorOp restores the color.
Strangely, there doesn't seem to be any issue when using the cartoon() geometry, just with most (or all) of the other geometries.
Is this an issue with a MolView not exposing the atom.serial() property properly? Had a poke through the code, but can't see anything obvious.
Cheers,
Andrew

Hi Andrew,
true, I've not tested the MolView version. There is a bug in the getter. Will fix either tonight or tomorrow.

It's fixed now.

Hi Marco,
That works beautifully now. Cheers!
Andrew


[Relay][Frontend][TF] Fix Size operator

This fixes the size operator by converting the out_type attribute to dtype, and allowing search for ops in _op.contrib.
@yongwww @yzhliu @zhiics can you please take a look?

Thanks @soiferj @yongwww. This is now merged.


Additions to the AHM module

I would love to be able to use the Source selector within a zone. In addition if the "Input to Zone Send Level" command could be added to that'd be amazing.
These can be achieved using the Midi commands over TCP listed in the AHM Protocol v1.4 document.
My particular use case is that currently, in a no longer supported control system, when a button is pushed the AHM changes the source selector and adjusts the levels of the inputs on the zone input mixer. (Both channels remain unmuted, but levels shift dependent on which source is selected)
With the 4 current commands in the AHM module this is impossible to achieve. I have used Packet Sender to test the Midi over TCP commands and I have achieved the right response from the AHM, but using the same Midi HEX command via the generic TCP module in Companion doesn't work.
Attached is the Protocol document.
Any help is GREATLY appreciated. Thanks so much!
AHM-TCP-Protocol-V1.4.pdf

Just updating, I've done some work and have Source selector working. Just a little more testing to do before I merge it.
One question regarding the "Input to Zone Send Level" action. Are you wanting this to be dynamic based on the selected source, or do you simply want to select both a zone and input?

Mate - thank you so much!
Great question - if I'm understanding correctly, are you asking if the level should auto change dependant on which source has been selected? So for example if I select FOH, it takes the FOH input and the send level goes up to 0db? And if I then select a Broadcast input it then takes that input to 0db and pulling everything else down?
if so - this is the end goal, but could be limiting for other users potentially? Could it be a tick box within the Source Selector option? So if this is selected, then do this action? But then also have a separate action in the module to do it on it's own? I think that's what you're offering in the second option.
I could be making no sense! Apologies. Hope that is helpful?
Huge thanks Bryce!! Happy Easter!

Hey @bryce-seifert - hope you're well mate? Curious to know if you'd made any progress on this? Very much appreciate your kindness and time looking into this for me. Zero pressure :)

@ben-burnett Sorry for the delay, I got this partially done and then got really busy. I'll try to remember where I left off and get back to this soon, thanks for your patience

AHM TCP Protocol v1.5 is now available.
In re the swapping of audio levels to -Inf vs 0/Unity, the AHM device itself can do this if you are using the Input Selectors with the XPoint Routing.  So it might be that by implementing that you replicate what the previous device was doing (especially if the previous device was running Custom Control or something...)

Thanks to  https://github.com/bitfocus/companion-module-allenheath-ahm/pull/20 Input to Zone Send Level actions should now be possible.


Atomic install

Rez is currently able to resolve a package, prior to it having been completely installed. That's a bug.

Turns out this happen during the final copy from temporary directory into the package repository. The install itself is fine, but the copy is a plain shutil.copytree which presumably copies in the order returned by os.listdir (alphabetical). The easy solution would be to just pop the package.py file, and append it to the list.

The reason this was a problem in this case was because the final copy was really really slow, to a VPN running at ~10kb/sec. So the install went well, in under a second, but then the actual copy took about 10 minutes, during which time the package would appear broken.

Use rez cp for this. Post-install of pip packages, convert it locally as well, and then finally rez cp the package onto the server. That way we'll piggyback on the safety and robustness built into the rez cp command.


Uncaught Error: EINVAL, invalid argument '/Volumes/Supaku/gitroot/nodejs/zyvc/routes/admin.js'

I'm unable to save any file due to this error even when in safe mode:
Stack Trace
Error: EINVAL, invalid argument '/Users/markkropf/Supaku/gitroot/nodejs/zyvc/views/admin/people-add.hbs'
  at Error (native)
  at Object.fs.openSync (fs.js:455:18)
  at Object.module.(anonymous function) [as openSync] (/Applications/Atom.app/Contents/Resources/atom/common/lib/asar.js:422:20)
  at Object.fs.writeFileSync (fs.js:1011:15)
  at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:228:17)
  at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:227:19)
  at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:297:21)
  at File.module.exports.File.write (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:286:12)
  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:966:17)
  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:954:19)
  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:585:26)
  at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:511:16)
  at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:501:19)
  at Workspace.module.exports.Workspace.saveActivePaneItemAndReportErrors (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:603:44)
  at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:593:19)
  at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)

Atom Version: Version 0.165.0 (0.165.0)
Dev Screenshot

Also the read popup to open an issue is going to a link that results in a github 404: http://git.io/90Evpg

Also the read popup to open an issue is going to a link that results in a github 404: http://git.io/90Evpg

What OS and version?

What OS and version?

@lee-dohm OSX 10.10.1 (14B25) Yosemite running on the latest 1.7GHz Intel Core i7 with 8GB of ram

Not sure if it's worth keeping this open. I was able to resolve it via ejecting my SD card where I was attempting to save to and re-inserting it. Other apps were able to use it when Atom could not, maybe this is just an opportunity with more detailed error info. I can no longer reproduce this issue.

Yeah, I didn't see any node issues related to this when doing a quick search over on https://github.com/joyent/node
It is hard to tell via grep'ing though the node code base to determine what that error means and what circumstances it occurs in so I'm not sure a better error message can be shown until we can reproduce it and probe the error object for more details if they exist.
So I think closing it out is probably best for now, please comment if you see it happening reliably or in other cases.


Add instructions for GitHub authentication

Description
This PR extracts the guidance of https://github.com/ramsey/composer-install/issues/241#issuecomment-1419705869 and adds it to the readme.
Motivation and context
See #241
How has this been tested?
Tested on https://github.com/facile-it/paraunit/pull/185

Thanks, @Jean85 !


BUG: projects-update script not working

@asraa @naveensrinivasan - the projects-update script (https://github.com/ossf/scorecard/blob/main/cron/data/update/main.go) which adds dependencies to the projects.csv file doesn't seem to be working and throws a lot of errors when run. Is this expected? What's the current status of this script?

Do you have logs? Dont' know the status but I can help diagnose

You can run this at HEAD to reproduce:
make build-update-script && ./cron/data/update/projects-update ./cron/data/projects.csv

It's dumping out various errors like these:
2021/06/09 14:21:18 unable to parse the vanity URL bitbucket.org/creachadair/shell parsing bitbucket.org/creachadair/shell: XML syntax error on line 11: expected attribute name in element
2021/06/09 14:21:26 unable to parse the vanity URL git.apache.org/thrift.git parse https://git.apache.org/thrift.git?go-get=1: no go-import meta tags
2021/06/09 14:21:41 unable to parse the vanity URL  import path doesn't contain a hostname
2021/06/09 14:21:44 unable to parse the vanity URL bitbucket.org/creachadair/shell parsing bitbucket.org/creachadair/shell: XML syntax error on line 11: expected attribute name in element
2021/06/09 14:21:49 unable to parse the vanity URL git.apache.org/thrift.git parse https://git.apache.org/thrift.git?go-get=1: no go-import meta tags

:( I'm not sure why they're assumed to be vanity URLs if they're not github. @naveensrinivasan

no longer needed as script was removed in #3269


Use NLTK sent_tokenize and word_tokenize

We can replace our primitive regex based tokenization with NLTK's tokenize module

Moved the issue to https://github.com/castorini/hedwig/issues/4


Management osgi test fixes

tests aren't passing ?

Most of it is refactoring which is fine by me, but I want to know why we added ExtendedStatisticsService?

[ ] does this block things

@chrisdennis Re-base this and I'll take a crack at reviewing it.

Should already be rebased.


Trends: implement the improving causal pathway

Currently trends annotations are not matched correctly for the improving causal pathway by Thinkpudding.

Problem: The pipeline is not yet capable of reliably sending messages about performance improving
Proposed solution:

Review definition of trends and their processing in Bit Stomach, Think Pudding, and Esteemer
Develop unit tests for trend processing in each stage of the pipeline
Create a set of tests for processing the improving message
Include testing scenarios that have multiple measures in the input data which are found to be acceptable for the same message template, with different performance levels, trend durations, and trend values (i.e.  slopes); adapt Esteemer to score acceptable candidates as expected


feat(gatsby-plugin-fastify): Implement Image CDN

Description
Makes FAstify server compatible with Gatsby Cloud's Image CDN functionality
Todo

[ ] Docs
[ ] Tests
[ ] Cache - File system caching is happening. But I'd like to add correct cache control headers to get CDNs to serve these. Need to better understand how stuff works though.

Related Issues
resolves #194

Lack of Cache-Control headers on Gatsby cloud seems to be an oversight according to Kyle Mathews . Have brought this up in the discussion on the Image CDN.

I'm choosing not to write tests at this point. There's really no custom code I'm writing other than the very basic integration into the fastify server. Otherwise already using tested Gatsby Code, any tests we write would only be testing implementation and would possibly break if Gatsby changed any APIs.


can atlas be used to reconstruct models with photos not videos?

thanks for your work at first. We tried with atlas with our data captured using our devices but it generate nothing at last. we don't feed atlas with videos or continuous images, instead we feed it with photo sequences with poses. any reply will be appreciated.

Yes. Atlas is indifferent to whether the images come from a video sequence or an unstructured set.
My guess for why you are not getting results is that the poses are not in the format expected by Atlas.
The poses must be metric (in meters) with Z-up. Also the poses must be shifted so that the scene lies within the reconstruction voxel volume. (the voxel origin is [0,0,-.5] by default )
see:
https://github.com/magicleap/Atlas/blob/bee3ddbdb0935cf9aa9fc810e829115c6ab74dc5/inference.py#L56


Create a Pull Request from an existing Issue should have no head, base or maintainer_can_modify parameter

endpoint scope: Pull Requests
endpoint name: Create a Pull Request from an existing Issue
route: POST /repos/:owner/:repo/pulls
documentation URL: https://developer.github.com/v3/pulls/#alternative-input

Current specification
https://github.com/octokit/routes/blob/d885a01bd0738f321742355e4bdc0d8a0d612240/routes/pulls/create-a-pull-request-from-an-existing-issue-by-passing-an-issue-number.json#L6-L49
I expected

Should have no head, base or  maintainer_can_modify parameter
{
  ...
  "params": [
    {
      "name": "owner",
      "type": "string",
      "required": true,
      "description": "",
      "location": "url"
    },
    {
      "name": "repo",
      "type": "string",
      "required": true,
      "description": "",
      "location": "url"
    },
    {
      "name": "issue",
      "type": "integer",
      "description": "The issue number in this repository to turn into a Pull Request.",
      "required": true,
      "location": "body"
    }
  ],
  ...
}

As far as I can tell, head and base are required in both situations. maintainer_can_modify is accepted, but optional, if you pass issue.

Thanks, all good then :)


Typos in  SQL Server Stored Procedure Activity in Azure Data Factory page

Hello @spelluru
I have another nit for ya ...
In the page SQL Server Stored Procedure Activity, there are two minor typos:
In Step 4 of the Example, "typeproperties" should be "typeProperties" and " SqlServerStoredProcedure " should be "SqlServerStoredProcedure" (no spaces around the value).

Thank you. Fixing it today. Changes will go live tomorrow.


Adding various changes

Move DB volume into /var/lib/mogodb/data
Add SCL enablement into /var/lib/mysql/.bashr so we can now run the
arbitrary commands in the image without needing to override the
entrypoint
Making Dockerfiles more consistent with the rest of DB images

@mnagy PTAL

LGTM

LGTM


newpx fonts.

Hello.

What's the difference between using the XITS font directly vs using it with the unicode-math package?
I also would like to know, among all the mathematical fonts you provide, which one works better.

The opentype fonts in newpx appear to be opentype wrappers for the type 1 fonts, still in legacy TeX 8bit encoding, not Unicode fonts with an OpenType MATH table, so they are not OpenType math fonts in the sense that is required here. (Unless I missed a new font with a Math table?)


Include an example program

Includes an example program which creates a GSI and examples of outputs possible.
Also with this PR, I have a question. Is there any unimplemented GSI protocols which could tell of other hero information? even just the names of the other heros would be a huge help to a project i've been working on.

Also video: https://www.youtube.com/watch?v=-58BSNLnXdA

Thank you for your contribution! I'll update the readme with info about sample app. Can I also include the video?

Yes, that's completely fine.


Error state for logging in

There should be an error state for the login modal.
Right now, trying to log in w/o inputing an email address takes you to this:

I’m not able to reproduce this. If you still can, can you please provide some steps or a video?


@expose deprecated with no suitable replacement

Not much to say about this - it's just that the recommendation of @export or @nocollapse does not give the effect of @expose.
I want to prevent the rename of something... How do I do that?

Use quoted properties.
There is not a way with annotations to do this, but there has long been other options. You can also maintain an eternal interface and mark your type as implementing that interface.
I'd like to add such functionality, but it is a rather large piece of work and simply not a priority.
At the point that someone familiar enough with the whole compiler is willing to take this on, we can reopen.


⚠ Bofrost.be has degraded performance

In a30efc7, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1199 ms

Resolved: Bofrost.be performance has improved in af01bc2.


Random Crash of Respeaker Mic array V2.

Hi,
I have a Respeaker Mic array V2.0 and I have updated my firmware through this package using the "6_channels_firmware.bin" file. I use the device under Ubuntu 16.04 and use the respeaker_ros package to get the DOA and the audio input.
However, I get the following error randomly sometimes, which causes the respeaker to crash, where I have to restart my software entirely. I am not sure where the problem originates from, and would appreciate any feedback on this matter.
[roslaunch][ERROR] 2020-01-29 12:04:51,077: remote[<IP_ADDRESS>-0]: M cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 429496729
[roslaunch][ERROR] 2020-01-29 12:05:18,038: remote[<IP_ADDRESS>-0]: 5, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
Exception in thread Thread-30:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/timer.py", line 235, in run
self._callback(TimerEvent(last_expected, last_real, current_expected, current_real, last_duration))
File "/home/jdqadmin/catkin_ws/src/jdq_3sr_aether_robot/jdq_3sr_aether_voice/script/respeaker_porcupine.py", line 269, in doa_on_timer
is_voice = self.respeaker.is_voice()
File "/home/jdqadmin/catkin_ws/src/jdq_3sr_aether_robot/third_party/respeaker_ros/scripts/respeaker_node.py", line 199, in is_voice
return self.read('VOICEACTIVITY')
File "/home/jdqadmin/catkin_ws/src/jdq_3sr_aether_robot/third_party/respeaker_ros/scripts/respeaker_node.py", line 172, in read
0, cmd, id, length, self.TIMEOUT)
File "/home/jdqadmin/.local/lib/python2.7/site-packages/usb/core.py", line 1043, in ctrl_transfer
self.__get_timeout(timeout))
File "/home/jdqadmin/.local/lib/
[roslaunch][ERROR] 2020-01-29 12:05:24,256: remote[<IP_ADDRESS>-0]: python2.7/site-packages/usb/backend/libusb1.py", line 883, in ctrl_transfer
timeout))
File "/home/jdqadmin/.local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
USBError: [Errno 19] No such device (it may have been disconnected)

Hi @sradmard, we haven't received similar reports about USB detaching under Ubuntu 16.04, if you haven't hacked the USB driver stuff of your system,  I would assume that this is hardware contacting issue. Also, if next time it crashes, please dump the kernel log
# dmesg
# tail -n 1000 /var/log/kern.log


Following the Sample for StructureMap + MediatR Results in Exceptions

We've noticed an issue with the integration sample of StructureMap and MediatR. Quite often, SM would throw a build exception reporting "Bi-directional dependency relationship detected" when a Mediator was asked to do its thing.
Please see the discussion with Jeremy Miller of Structuremap Here for the in-depth story. This particular comment is where things start getting really productive.
TL;DR: it has to do with the registered methods for the SingleInstanceFactory and MultiInstanceFactory delegates using a build-time IContext for location instead of an IContainer meant for use at run-time. This manifests in highly concurrent scenarios, as something about caching those delegates that capture the IContext isn't thread safe. The solution was to create a wrapper for these methods. Here's a Gist.
I have two asks:

What do you think about updating the sample using the wrapper?
What do you think about (for the next major version rollover) having the Mediator collaborate with a proper interface for service location instead of these two raw delegates?

@JKSnd i got the "Bi-directional dependency relationship detected!" doing something today.  In the details of the message I noticed this line " Instance of IPipelineBehavior<LogMessageRequest, Unit>" as I didn't have any pipeline behaviors except for the default ones shipped with MediatR i commented out those lines in the structuremap config and the error went away.  Is the behavior the same for your application?

No, I'm not going to go with a wrapper object or class, if there's something fundamentally wrong with the internals let's fix that.

@jbogard do you have a good way to reproduce this?  I have a simple project that does it if you would like me to upload it

@lilasquared could be. Have you tried reintroducing those lines you removed and testing the fix I proposed in this Gist?

No I have no way to reproduce it. I suspect it might be some memoization code internally, where I cache which handler type to use?

@jbogard the issue is that the SingleInstanceFactory and MultiInstanceFactories point to structuremap internals that aren't meant to be cached the way that the Mediator class does.
It would be a breaking change, but I think introducing an interface to provide those factory methods would be the way to do it properly. Then the interface could be implemented to interact with whichever DI library a developer chooses in a way that the DI library works best.

This Gist has some tests that helped me reproduce the issue, myself. Of course, the error jumps around a bit since it is highly dependent on scheduling.
I did try and take advantage of an old MS research project called Chess to add determinism to it, but had little success. :(

What's your lifecycle for IMediator?

Just as an FYI, Mediator doesn't "cache" those delegates, they're injected. The lifecycle of Mediator should be transient at most. Those tests in your gist are parallel all using the same Mediator instance. That should not happen in a real application.

This is likely our issue. We've been using a singleton lifecycle. Did we overlook some documentation of this recommendation, or is it not explicitly included anywhere yet?

No it's not but the samples should be updated for sure. I had a hard time with the gist, is that MediatR 2.0? 3.0 is all task-based.

It is 2.0, yes. We'll be updating to 3.0 shortly, however.
I assume the transient lifecycle is recommended because those delegates are injected? Any other nuance we should be aware of?
We had assumed a Singleton would be preferred since that lifecycle is typically the most performant.

Singletons should usually be reserved for the lowest level dependencies,
there are tons of problems of singletons having dependencies. Most
containers have memory leaks if you try.
On Mon, Sep 25, 2017 at 4:30 PM Jules PK Sound<EMAIL_ADDRESS>wrote:

It is 2.0, yes. We'll be updating to 3.0 shortly, however.
I assume the transient lifecycle is recommended because those delegates
are injected? Any other nuance we should be aware of?
We had assumed a Singleton would be preferred since that lifecycle is
typically the most performant.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jbogard/MediatR/issues/194#issuecomment-332019358,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGYMlq8cZV_WgW6c2JZReJZeoqkheQzks5smBtjgaJpZM4PWYop
.

I made a change to the sample to show exactly how it should be registered (just to avoid confusion).

Ran my concurrency tests in the style of the sample (explicit transient and again with always unique lifecycles), using the same style of expressions for the factories, and saw the original errors manifest again. Moved the factory delegates into a wrapper again that gets injected with an IContainer and the errors disappeared. The wrapper itself is also transient in these most recent tests.
I think the issue is with using the IContext instead of IContainer.


[bug] Secrets added by pre-upgrade hook are deleted even though they shouldn't

Output of helm version:
version.BuildInfo{Version:"v3.2.1", GitCommit:"fe51cd1e31e6a202cba7dead9552a6d418ded79a", GitTreeState:"clean", GoVersion:"go1.13.10"}

Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.10", GitCommit:"1bea6c00a7055edef03f1d4bb58b773fa8917f11", GitTreeState:"clean", BuildDate:"2020-02-11T20:13:57Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"darwin/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
EKS

Situation:
We have a couple of Secrets that are generated by a pre-install,pre-upgrade hook with this configuration:
apiVersion: v1
kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
  name: bar-gcr-secret-{{ .Release.Name }}
  annotations:
    helm.sh/hook: pre-install,pre-upgrade
    helm.sh/hook-weight: "-5"
    helm.sh/hook-delete-policy: before-hook-creation
    helm.sh/resource-policy: keep
data:
  .dockerconfigjson: lorem ipsum

This secret is required by Pods both in the pre-install phase as well as the actual install phase.
Issue:
After the pre-install phase is done all the Secrets generated by hooks are being deleted. Even though the delete policy does not specify that they should be.
Here is a debug log from when this happens
history.go:52: [debug] getting history for release foo
walk.go:74: found symbolic link in path: /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart/charts/mozart-common resolves to /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart-common
walk.go:74: found symbolic link in path: /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart/static/nginx/fastcgi_params resolves to /home/jenkins/workspace/Deployments/mozart/qa/docker/resources/etc/nginx/fastcgi_params
walk.go:74: found symbolic link in path: /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart/static/nginx/nginx.conf resolves to /home/jenkins/workspace/Deployments/mozart/qa/docker/resources/etc/nginx/nginx.conf
walk.go:74: found symbolic link in path: /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart/static/nginx/request_uuid.conf resolves to /home/jenkins/workspace/Deployments/mozart/qa/docker/resources/etc/nginx/request_uuid.conf
walk.go:74: found symbolic link in path: /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart/static/php/php.ini resolves to /home/jenkins/workspace/Deployments/mozart/qa/docker/resources/usr/local/etc/php/php.ini
walk.go:74: found symbolic link in path: /home/jenkins/workspace/Deployments/mozart/qa/helm/mozart/static/squarespace/squarespaceInitializer.json resolves to /home/jenkins/workspace/Deployments/mozart/qa/config/mockserver/squarespaceInitializer.json
upgrade.go:121: [debug] preparing upgrade for foo
upgrade.go:129: [debug] performing update for foo
upgrade.go:308: [debug] creating upgraded release for foo
client.go:258: [debug] Starting delete for "foo-env-sensitive" Secret
client.go:108: [debug] creating 1 resource(s)
client.go:258: [debug] Starting delete for "bar-gcr-secret-foo" Secret
client.go:108: [debug] creating 1 resource(s)
client.go:258: [debug] Starting delete for "predeploy-render-test-learning-card" Job
client.go:108: [debug] creating 1 resource(s)
client.go:467: [debug] Watching for changes to Job predeploy-render-test-learning-card with timeout of 20m0s
client.go:495: [debug] Add/Modify event for predeploy-render-test-learning-card: ADDED
client.go:534: [debug] predeploy-render-test-learning-card: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:495: [debug] Add/Modify event for predeploy-render-test-learning-card: MODIFIED
client.go:534: [debug] predeploy-render-test-learning-card: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:495: [debug] Add/Modify event for predeploy-render-test-learning-card: MODIFIED
client.go:173: [debug] checking 14 resources for changes
client.go:440: [debug] Looks like there are no changes for Secret "basic-auth-foo"
client.go:440: [debug] Looks like there are no changes for ConfigMap "foo-dd"
client.go:440: [debug] Looks like there are no changes for ConfigMap "foo-health"
client.go:440: [debug] Looks like there are no changes for ConfigMap "foo-nginx-config"
client.go:440: [debug] Looks like there are no changes for ConfigMap "foo-nginx-site"
client.go:440: [debug] Looks like there are no changes for ConfigMap "foo-php-fpm-config"
client.go:440: [debug] Looks like there are no changes for ConfigMap "foo-php-ini-config"
client.go:440: [debug] Looks like there are no changes for Service "foo"
client.go:440: [debug] Looks like there are no changes for Service "foo-php-fpm-exporter"
client.go:440: [debug] Looks like there are no changes for Ingress "foo"
client.go:222: [debug] Deleting "foo-env-sensitive" in web-services-qa...
client.go:222: [debug] Deleting "bar-gcr-secret-foo" in web-services-qa...
wait.go:53: [debug] beginning wait for 14 resources with timeout of 20m0s

Workaround:
The current "solution" is to set helm.sh/resource-policy: keep in the Secrets, but at least how I understand it this is not the intended way.

Can you provide a sample chart along with a set of steps we can use to reproduce the issue? Thanks.

@deiga Was this answered in #helm-users channel in https://app.slack.com/client/T09NY5SBT/C0NH30761/thread/C0NH30761-1594212959.320100:
"normally hooks should get their own exclusive resources/secrets and don't leaving anything around since then you get annoying versioning problems when you start changing those"

@hickeyma Well, I don't know. The docs make it seem like Resources generated by hooks would not be cleaned up, but the code is clearly deleting them.
Either this is a bug in the code or the documentation is wrong.

Can you provide a sample chart along with a set of steps we can use to reproduce the issue? Thanks.

I can try, but no promises. The next coming weeks are going to be super busy for me

I'm seeing the exact same issue except with configmaps.
$ helm version
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}

I use a pre-install.pre-upgrade hook to create a configmap that is used by a pre-install hook created job.
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "releaseName" . }}-db-yml
  labels:
    app: {{ template "releaseName" . }}-db-yml
    chart: {{ include "this.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
  annotations:
    "helm.sh/hook": "pre-install, pre-upgrade"
    "helm.sh/hook-weight": "-15"
    "helm.sh/hook-delete-policy": "before-hook-creation"
data:
  {{- (.Files.Glob "conf/database.yml").AsConfig | nindent 2 }}

These are used to run rails migrations so the db.yml etc needs to be in place before the job runs - this is fine, but then when the main chart installation is performed, the configmaps are deleted so the main rails pod can;t start due to having no database.yml configmap available to mount as a volume
I don't want to do this with initContainers as I don't want migrations to run when a pod is terminated and restarted, only on initial install or upgrade.


fixing typo in the meshync-crd-reference page

Notes for Reviewers

This PR fixes #12995

Signed commits

[x] Yes, I signed my commits.

🚀 Preview for commit d0bc82cc3eaea4acee6c228c7152718846ba003e at: https://676aa277d4b674c004e2c33a--meshery-docs-preview.netlify.app


Make 'download' in file explorer an API

There's a 'download' button in the file explorer when connecting vscode to remote:

Currently to download a file from remote in an extension, a file server is needed on the remote. Making this download button an API would greatly simply such work in extensions.

I would think that vscode.fs covers this + maybe some other API we have to produce a external URI.

Not that I understand the issue. Are you an UI extension and want to download files? Did you try the vscode.workspace.fs API for that? It should allow you to fetch a file

Yes we want to download a file in the UI extension. So workspace.fs.readFile + writeFile work in this case? Does the download button do the same thing, and would this method have any impact on the performance of vscode?

Does the download button do the same thing, and would this method have any impact on the performance of vscode?

More or less yes. For best performance use the fs.copy function

closing as question since we have everything that's needed here


Fix multi-target MLJFlux example

Hi! Thanks for this really cool package. I noticed the multi-target MLJ example in this PR is not working because of an eltype error in measurements vector which triggers an error when the report is generated. I "fixed" it here in this PR and added a test but I am not sure if I was doing something wrong to begin with to trigger this error or not as I am still a novice in MLJ. Please let me know if my example is wrong for some reason or if the fix here is appropriate.

Turns out I messed up the definition of the multi-target loss. So this PR is not necessary at all.

@mohamed82008 Thanks for spending time with this packages and going to the trouble of contributing a PR.
I wonder if your confusion might be something others will also trip up on. If you can say a few words about what the confusion was, I will open an issue to address this in future doc fixes.

The problem is that most loss functions don't support multiple targets by default so when using multi-target regression from MLJFlux, I have to either use their built-in losses or roll my own implementation which I did to be able to try out more loss functions, e.g. from LossFunctions.jl. The problem is that the implementation of the multi_target function used in the tests in this PR was wrong so it was returning a vector sometimes. Somehow this didn't break the optimisation but it broke the report making. The following implementation made things work:
function multi_target(loss)
  function _loss(x1::Real, x2::Real)
    return loss(x1, x2)
  end
  function _loss(x1, x2::NamedTuple)
    sum(map(x1, x2) do _x1, _x2
        sum(loss(_x1, _x2))
    end)
  end
  function _loss(x1::Matrix, x2::Matrix)
    sum(loss(vec(x1), vec(x2)))
  end
  return _loss
end

Perhaps my life would have been easier if this vector-output behaviour was detected and reported way before the report generation, e.g. when building the history array. Also, the above function can be defined and documented to give people a way to change single-target loss functions to multi-target ones.

Thanks for this explanation. It seems weird that the flawed custom loss did not break the optimization. I think that is worth investigating. I will open an issue.

Also, the above function can be defined and documented to give people a way to change single-target loss functions to multi-target ones.

Yes, adding wrappers for multi-target losses is on the list: https://github.com/JuliaAI/MLJBase.jl/issues/502


CI code quality

Add code quality checks (e.g. flake8 and black) in GitHub CI and git precommit

Done? #15


Linux: Pinentry doesn't grab focus

VSCode Version: 1.20.1
OS Version: Solus 3 (Linux 4.15.3)

Steps to Reproduce:

Enable GPG signing upon commits
Make a commit through either the terminal or the GUI

Does this issue occur when all extensions are disabled?: Yes
Simple QOL improvement. Focus should move from the main VSCode window to the GPG signing window, and then back to the main window once passphrase has been entered

@tristan957 Can you record a screencast showing me how that looks like currently?

@joaomoreno here you go: https://drive.google.com/file/d/1IckyEP1manNYCRrs0z1mezsax2zPnMMB/view?usp=sharing

@tristan957 How does it look like if you do it from a regular terminal window (not inside Code)? Does that work?

Yes focus moves appropriately in a native terminal. I should've made that clear.

That is kinda odd. I doubt the native terminal "moves" the focus to that popup window; since it doesn't have any knowledge about a window existing at all.
I postulate pinentry conditionally grabs focus and it isn't grabbing it when running inside Code for some reason. I suggest to reach out to https://dev.solus-project.com/ as well.

I will do that. Any other things you need of me?
On Feb 28, 2018 4:35 AM, "João Moreno"<EMAIL_ADDRESS>wrote:

That is kinda odd. I doubt the native terminal "moves" the focus to that
popup window; since it doesn't have any knowledge about a window existing
at all.
I postulate pinentry conditionally grabs focus and it isn't grabbing it
when running inside Code for some reason. I suggest to reach out to
https://dev.solus-project.com/ as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/44047#issuecomment-369197746,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALYkBGTnKNNJYAYsn4xRr2jyNGD_m-z7ks5tZSvigaJpZM4SMLuo
.

Not really, unfortunately. Try to figure out other environments in which the input is focused or otherwise. Other terminals, other editors, etc.

Should I file this as a bug against pinentry? I'll see if a similar behavior happens in Atom later today

Yeah do so.

Since #5065 is locked and this is very similar, is anyone having GPG signing issue with VSCode+Mac combination?
git check-ignore -z --stdin
git commit --quiet --allow-empty-message --file - -S
error: gpg failed to sign the data
fatal: failed to write commit object

Doing this from iTerm works fine.  VSCode Terminal works as well but in trying to do this in native VSCode it doesn't prompt for passphrase and fails immediately.

Thanks @tristan957 !


Jest: No success in silencing the "No AudioContext found" console.error

I'm testing my code with Jest. However I'm not able to mock the AudioContext and silence down console.error (https://github.com/alemangui/pizzicato/blob/master/src/Pizzicato.js#L19)
I tried to put a mock into Jests's globalSetup, but no success.
Any thoughts?

Hi @dkozar,
Hard to know specifically without more info of your use case. However, there are some projects that mock the web audio api in a Node JS environment, maybe that would help? (for example this one: https://github.com/audiojs/web-audio-api)


gitlab: 14.1.2 -> 14.2.1

Motivation for this change
Update GitLab to the latest version.
Notable packaging changes

The grpc patch used for the gitlab and gitaly packages is removed, since the problem is fixed upstream
gitlab-workhorse changed its binary name to workhorse (see https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65593)

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

There's something wrong with 14.2.x:

Sep 03 08:38:16 nixos gitaly[964]: time="2021-09-03T08:38:16Z" level=error msg="finished streaming call with code Unknown" branch_name="[109 97 115 116 101 114]" command.count=4 command.inblock=0 command.majflt=0 command.maxrss=40516 command.minflt=594 command.oublock=0 command.real_time_ms=11 command.system_time_ms=9 command.user_time_ms=0 correlation_id=01FENCXYNVWZWHHWJMTRVT9Q10 error="commit: GitCommand: start [/nix/store/vrz93bnflsblfkq637d56fwd3zjhwbvw-gitaly-14.2.1/bin/gitaly-git2go- commit]: fork/exec /nix/store/vrz93bnflsblfkq637d56fwd3zjhwbvw-gitaly-14.2.1/bin/gitaly-git2go-: no such file or directory" force=false grpc.code=Unknown grpc.meta.auth_version=v2 grpc.meta.client_name=gitlab-web grpc.meta.deadline_type=regular grpc.meta.method_type=client_stream grpc.method=UserCommitFiles grpc.request.deadline="2021-09-03T08:39:11.049Z" grpc.request.fullMethod=/gitaly.OperationService/UserCommitFiles grpc.service=gitaly.OperationService grpc.start_time="2021-09-03T08:38:16.749Z" grpc.time_ms=83.756 peer.address=@ pid=964 remote_ip=<IP_ADDRESS><EMAIL_ADDRESS>repository_storage=default span.kind=server start_branch_name="[109 97 115 116 101 114]"<EMAIL_ADDRESS>start_repository_storage=default start_sha= system=grpc username=root

Sep 03 08:34:34 nixos puma[2075]: I, [2021-09-03T08:34:34.041274 #2075]  INFO -- : Completed 500 Internal Server Error in 739ms (ActiveRecord: 100.9ms | Elasticsearch: 0.0ms | Allocations: 45149)
Sep 03 08:34:34 nixos puma[2075]: F, [2021-09-03T08:34:34.051437 #2075] FATAL -- :
Sep 03 08:34:34 nixos puma[2075]: GRPC::Internal (13:13:GitCommand: start [/nix/store/vrz93bnflsblfkq637d56fwd3zjhwbvw-gitaly-14.2.1/bin/gitaly-git2go- conflicts -request eyJyZXBvc2l0b3J5IjoiL3Zhci9naXRsYWIvc3RhdGUvcmVwb3NpdG9yaWVzL0BoYXNoZWQvZDQvNzMvZDQ3MzVlM2EyNjVlMTZlZWUwM2Y1OTcxOGI5YjVkMDMwMTljMDdkOGI2YzUxZjkwZGEzYTY2NmVlYzEzYWIzNS5naXQiLCJvdXJzIjoiZGI3YzhhZDRiOGU5MzE2NGRkODBmZTlkZmQ1YzE3MzkzMjBjMzRiNiIsInRoZWlycyI6IjAxM2MzMzA5M2YxOTBhMDllNzY4NWRlMGJkNjdmMDBkMzllZjZlOWIifQ==]: fork/exec /nix/store/vrz93bnflsblfkq637d56fwd3zjhwbvw-gitaly-14.2.1/bin/gitaly-git2go-: no such file or directory. debug_error_string:{"created":"@1630658074.002399648","description":"Error received from peer unix:/var/gitlab/state/tmp/sockets/gitaly.socket","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"GitCommand: start [/nix/store/vrz93bnflsblfkq637d56fwd3zjhwbvw-gitaly-14.2.1/bin/gitaly-git2go- conflicts -request eyJyZXBvc2l0b3J5IjoiL3Zhci9naXRsYWIvc3RhdGUvcmVwb3NpdG9yaWVzL0BoYXNoZWQvZDQvNzMvZDQ3MzVlM2EyNjVlMTZlZWUwM2Y1OTcxOGI5YjVkMDMwMTljMDdkOGI2YzUxZjkwZGEzYTY2NmVlYzEzYWIzNS5naXQiLCJvdXJzIjoiZGI3YzhhZDRiOGU5MzE2NGRkODBmZTlkZmQ1YzE3MzkzMjBjMzRiNiIsInRoZWlycyI6IjAxM2MzMzA5M2YxOTBhMDllNzY4NWRlMGJkNjdmMDBkMzllZjZlOWIifQ==]: fork/exec /nix/store/vrz93bnflsblfkq637d56fwd3zjhwbvw-gitaly-14.2.1/bin/gitaly-git2go-: no such file or directory","grpc_status":13}):

Unless someone can figure it out, I would suggest we revert to 14.1.x and package 14.1.4 instead.

I have just the hack for you…
Add this to your gitaly postInstall:
mv $out/bin/gitaly-git2go $out/bin/gitaly-git2go-

The git2go binary problem is most likely caused by this upstream change:
https://gitlab.com/gitlab-org/gitaly/-/commit/e7f8fe4f6759669c24b2fd216beaab4a477c5b3d
I'll try your workaround and if that turns out to be the only issue we can find a proper fix for it without reverting to 14.1.x.

I've created #136569, which should be a slightly more proper fix for the issue. As a bonus, it also makes gitaly report its version correctly.


Image freezes/stops loading after returning from background

Describe the bug
I have a series of images inside a FlatList where new images is periodically fetched into the FlatList. The problem occurs when the app goes into background while some of the images have not been fully loaded i.e onLoad has not been called. Upon returning to the app from background, the image freezes up - no loading progress on onProgress and onLoad was not called.
Expected behavior
FastImage continues to load upon returning from background
Screenshots

As the screenshot above, the loading component freezes the progress and the image is not loaded.

I think I'm running into a similar issue as well, specifically when the app goes into the background but images seem to have been fully loaded. Once the app returns from the background, all images except for the first one appear to completely reload instead of using a cached image. Did you end up finding a fix for this?

I am facing the same issue here. Any solution yet?


How do I change the ratings at the bottom?

Describe your problem here.
So that stuff at the bottom with the rating stuff like      Rating: Perfect!! (100%)
How do I turn that into something like     Rating: Show-off (100%)
or     Rating: Bruh (50%)
or     Rating: Ur Trash Kid (0%)
I use lua cuz i suck at source code
Idc if its a script or an event or whatever i just want it in my mod plz ;-;
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

The vs Whitty definitive edition has a Kade engine accuracy script that changes those ratings and makes the accuracy millisecond based.  There's only one problem though: there is no way to make the accuracy not be millisecond based while using that script, trust me, I've tried.  So in that case, you might not want to use it if you don't want millisecond based accuracy

This should help!

This should help!

Thanks!


"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."

System information:

Operating system (distribution) and version: Pop_OS! (Debian 20.10)
DBeaver version:  21.0.2
Additional extensions: None

Connection specification:

Database name and version:  mysql 8.0.22
Driver name: MySQL , com.mysql.cj.jdbc.Driver
Do you use tunnels or proxies (SSH, SOCKS, etc)?  SSH (connection tests fine)

Describe the problem you're observing:
Steps to reproduce, if exist:  While setting up connection to MySQL database on a remote server, I'm getting the error (the title of this report) upon "Test Connection" (or attempting any connection).  The "Test Tunnel Configuration" under the SSH tab is successful.
Include any warning/errors/backtraces from the logs
This error is displayed in an alert box, and also in the DBeaver logs.
Server log shows a successful login via SSH, but nothing further:
Apr 18 21:14:14 cliffs-wordpress systemd[1]: Started Session 32 of user root.
Apr 18 21:14:15 cliffs-wordpress systemd[1]: session-32.scope: Succeeded.

@happycoffeebean could you provide error and debug logs?

dbeaver.log
I'm not clear on where to find a pertinent debug log.  In the documentation, searching for debug logs seem to pertain to debugging a language-specific script.

there is no update on the issue for a long time.
If it is still actual for you - feel free to reopen it with additional info.

In my case this error happened because I connected to the wrong database, we have RDS on prod and local MySQL on dev servers and I tried to connect to the prod server local MySQL instead of RDS... Night coding..


iOS Documentation: Offline Capabilities

Adapted from https://github.com/mapbox/ios-sdk-examples/blob/main/Examples/Swift/OfflinePackExample.swift and https://github.com/mapbox/ios-sdk-examples/blob/main/Examples/Swift/ManageOfflineRegionsExample.swift
Closes https://github.com/maplibre/maplibre-native/issues/2556

I know I need to start grouping that navigation view. I'll do it with the next one I add.

It appears that SwiftFormat failed, but looks good otherwise.


Laravel 10.48.22 Shift

This pull request includes updates for the recent minor version release of Laravel as well as updates to your package dependencies. Feel free to commit any additional changes to the shift-ci-v10.48.22 branch.
Before merging, you need to:

Checkout the shift-ci-v10.48.22 branch
Review all pull request comments for additional changes
Run composer update
Thoroughly test your application (no tests?, no CI?)

:warning: The Shift build servers run PHP 8.2. If you are running a different version of PHP you should run composer update locally to ensure you have the proper versions of your dependencies to reflect your PHP environment.


Automatically mangle c++ symbols

Sometimes when I uprobe c++ binaries, it's easier to directly type the c++ name I want to trace, eg Foo::bar. Does it make sense to let uprobe support something like:
probe:/usr/local/bin/dynolog:*folly::EventBase::run*
{
....
}

This would be a fantastic feature, but I'm worried how this would work with probes on other languages, that might demangle differently. If there was a way to tell bpftrace that this name is a c++ symbol, perhaps then demangling can occur automatically.

Which languages might cause problems here? Just want to know what we're working with

Alastair Robertson writes:

Which languages might cause problems here? Just want to know what we're
working with

The languages that I know might need mangling are cpp, D, ocaml, rust,
haskell, and swift. I think cpp is the one that's the most important though,
we can probably mostly ignore the others. It's also possible that most
languages use the same demangling strategy, but I'm not sure.

@jgkamat I think we can add more language support as necessary. For example when attaching a uprobe, we could:
foreach mangling_strategy:
    n = mangle(symbol)
    if canAttach(n):
        attach(n)
        break

Assuming each mangling stratey is unique (needs more research), this feature could be forwards and backwards compatible.

Done in #1116


[CHEF-2388] - remove ruby-libs, use rubygems 1.7.2 for CentOS

fix for chef-2388 - remove ruby-libs which causes conflicts, use rubygems-1.7.2 as required by chef 0.10 with centos5-gems distro bootstrap

I see we never got a CLA from you. Please take a moment to review our wiki page on contributing.
http://wiki.opscode.com/display/chef/How+to+Contribute
There were some changes to the CentOS bootstrap by the upstream repository maintainer in CHEF-2569. Hopefully these have helped out.
http://tickets.opscode.com/browse/CHEF-2569
Also, Rubygems moved from 1.3.7 to 1.6.2 in CHEF-2293.
http://tickets.opscode.com/browse/CHEF-2293


Commands to disable specific functions

There should be options to separately disable errors, warnings and infos. Currently they can only be toggled together.

Should they be toggled temporarily just like errorLens.toggle or preserved between reloads?

In my opinion commands should toggle temporarily. If someone wants to disable permanently he/she can do it in the config.

errorLens.toggleError
errorLens.toggleWarning
errorLens.toggleInfo
errorLens.toggleHint

Perfect! Thank you, keep up the good work!

@usernamehw I tried to add "errorLens.toggleHint": false to settings.json to disable the hint overlays, and it didn't work. There's no documentation on the correct way to disable it in the settings, could you provide more info on how to do that?

Those are command ids to temporarily disable one level. To permanently exlude hint in settings.json:
"errorLens.enabledDiagnosticLevels": [
	"error",
	"warning",
	"info",
]

@usernamehw thanks for the quick reply! I happened to delete my question as I figured it out the Settings table was closed in the README and found that setting, thanks for replying!


Release 1.7.0 on terraform registry

Hi!
Just I noticed that the latest release on terraform is 1.6.0
https://registry.terraform.io/modules/Young-ook/eks/aws/latest
Thank you for your work.

thank you for reporting!
new version 1.7.0 is released.
https://registry.terraform.io/modules/Young-ook/eks/aws/latest

Thank you very mucho <3


Attempt to de-flake GAWB-2617 tests

Follow-on to #66 - you may want to look at that as well.
Have you read CONTRIBUTING.md lately? If not, do that first.
I, the developer opening this PR, do solemnly pinky swear that:

[x] I've documented my API changes in Swagger

In all cases:

[ ] Get two thumbsworth of review and PO signoff if necessary
[ ] Verify all tests go green
[ ] Squash and merge; you can delete your branch after this
[ ] Test this change deployed correctly and works on dev environment after deployment

jenkins retest

jenkins retest


Fix old light blocks

Give all new blocks new ids.
Bring back the old blocks with their old ids, and old definitions (adding the mutator dialog).
If an old script is loaded, they will see the default instance mutator icon.
Give old blocks new function names that start with an underscore (which is hidden from the monaco editor as of https://github.com/Microsoft/pxt-monaco-typescript/pull/8). And wrap their implementation.

Fixed merge, and removed the block around setPhotonPenHue as it's not necessary. Please verify and approve.

setPhotonPenHue is the API to change colors on the photon. RGB does not cut it. It is too cumbersome to use. See https://github.com/Microsoft/pxt-common-packages/pull/132

See my comment on that PR, I think you might have accidentally set that API as hidden and deprecated

Let's see how far we go with this.


Adding date pills

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#176  👈
#175
#174
#173
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @elenaperezrioja and the rest of your teammates on  Graphite


Date-format not working...

Can u help me?
everything looks fine except "date-format" attribute...
In docs stay this
"moment.js compatible date format used for display in date and datetime input directives"
in your example if I change date format into date-format="DD MMM YYY"
<date-input date="now" on-change="print(now)" placeholder="Click Me" date-format='DD MMM YYYY'></date-input>
it's throwing an error

if I put dashes between  `DD-MMM-YYYY' there is no error but nothing changed ...
ty

Hi! The format you specify should be a wrapped in quotes to be a string, like this:
<date-input date="now" on-change="print(now)" placeholder="Click Me" date-format="'DD MMM YYYY'"></date-input>

OMG, tyvm ;)

you're welcome :)


Allow users to rename Check-Ins

Current Implementation
The name of the Check-Ins are displayed to all users the way the name was entered by the person who generated the QR code.
Suggested Enhancement
Allow users to rename their Check-Ins.
Expected Benefits
There are plenty of locations where the name of the location is just "Bäckerei", "Arztpraxis", "Restaurant", etc.
This can easily get confusing, e.g. if you go to one "Bäckerei" (in CWA called "Bäckerei") and then on the next day to another one which is also just called "Bäckerei".
If the user had the option to rename the Check-Ins (e.g. one "Bäckerei" into "Bäckerei am Bahnhof") it would be clearer for them which location is meant.

Internal Tracking-ID: EXPOSUREAPP-8996

Hello,
This feature request was declined because it is already possible to add notes to the contact journal entry of an event after it finishes. This is seen as sufficient by the dev team.

Corona-Warn-App Open Source Team

@dsarkar @thomasaugsten
Any chance we could reopen this issue to get this reevaluated now with the situation that users are scanning luca QR codes which have the name "undefined" in it?
It would be nice for users to be able to rename these "undefined" check-ins to something more meaningful.


Broken image (webp) displayed

I have a note with one image in the format ![alt](:/<ressource_id> "title"). In the note list preview, only the "broken image icon" is displayed. When removing the title (![alt](:/<ressource_id>)), it's displayed correctly.
It would be nice to have support for images with title.

I cannot reproduce the problem.

Are you using the latest plugin version or still 0.2.0 or less?

I'm on plugin version 0.3.2 and Joplin 2.14.10.
Did you add the title before or after the thumbnail (in the note list preview) was created? I just tested it and it seems the bug only occurs if the title is there before the thumbnail was created.
If the title is added after the first rendering of the note list preview, the image is always displayed correctly. Even after a reboot. Maybe this is related to caching?

Maybe this is related to caching?

The cache is regenerated on every Joplin start.
Only valid resources for which an image operation can be performed are displayed.

Edit: Can be reproduced by using the webclipper ("Clip complete page (Markdown)") ....
I don't have a web clipper running, I'm not sure if I want to install it

However, you can also attach a JEX export of the note and a screenshot of the error.
Is there some error in the Joplin log?

Here is a (shortened) version of the note (needed to zip in order to upload it): Als die Wikinger in Hamburg einfielen _ National Geographic.zip
and the corresponding screenshot:

I couldn't see any specific error message related to this plugin.

Ok, I think the problem is that the image is a webp, I'll need to check this, but looks like the Joplin image lib can't handel this file format

Thanks for investigating and fixing! I can confirm that there are no broken thumbnails with version 0.4.0.
Is there any chance that webp images get displayed? Probably the joplin image lib would need to be extended by webp?

I was already in contact with laurent and we will check if the used libs in Joplin can support webp


submit output only if the data is valid

now when the menu is not uptodate, crawler is broken, parsed null, undefined the data will be still displayed with an error message, and also saved to DB.
there should be a condition which skips this for menus which have invalid output.

closed by #217


Duplicate class found in modules when adding 'https://jitpack.io' in build.gradle

Please complete the following information:

Library Version [v1.4.8]
Affected Device(s) [Oneplus 8 pro with Android 11]

Describe the Bug:
When adding maven { url 'https://jitpack.io' } in my build.gradle under repositories, when I try to run I got this error saying there are duplicates class in your library.
Add a clear description about the problem.

Duplicate class com.skydoves.landscapist.coil.CoilImage found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImageState found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImageState$Failure found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImageState$Loading found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImageState$None found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImageState$Success found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImageStateKt found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImage__CoilImageKt found in modules jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves.landscapist:landscapist-coil:1.4.8) and jetified-landscapist-coil-1.4.8-runtime (com.github.skydoves:landscapist-coil:1.4.8)
Duplicate class com.skydoves.landscapist.coil.CoilImage__CoilImageKt$CoilImage$1 found in modules jetified-landscapist-coil-1.4.8-runtime

Is there something to do or to exclude?
Thanks

Could you please check the error happen in the 1.5.1 as well? Thanks!


[AMBARI-23732] Increase default java stack size and make it configurable for Infra Solr

What changes were proposed in this pull request?
Default java stack size is 256k for infra-solr, it causes some problems during solr startup on centos-ppc clusters
How was this patch tested?
with: mvn clean test -DskipSurefireTests -Dpython.test.mask="infra_solr"
Total run:3
Total errors:0
Total failures:0
OK
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:22 min
[INFO] Finished at: 2018-04-30T20:25:42+02:00
[INFO] Final Memory: 113M/1778M
[INFO] ------------------------------------------------------------------------
Please review @swagle @adoroszlai

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2065/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2066/
Test PASSed.


Build Error with xCode

I'm unable to build my app in xcode after adding cordova-admob-pro plugin. Any ideas?
Undefined symbols for architecture arm64:
"_kCLLocationAccuracyBest", referenced from:
  -[CDVAdMobPlugin __buildAdRequest:] in CDVAdMobPlugin.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Had to manually add CoreLocation.framework to the project to get it to compile.

The plugin is valid, as you can see the framework in its plugin.xml:
https://github.com/floatinghotpot/cordova-admob-pro/blob/master/plugin.xml
         <framework src="CoreLocation.framework" />

I guess it's random error when cordova CLI handle it.
BTW, you can quickly verify the plugin like this:
[sudo] npm install -g plugin-verify;
plugin-verify cordova-plugin-admobpro ios;


variable window size and dynamically set code width

Problem to solve
As Squeak Enthusiast, I want the code in a window being readjusted dynamically, depending on the current width of the window so that it fits them optimally into view and avoid under-indented linebreaks.
Further details
relates to #26
Examples:

Proposal

[ ]

Testing

[ ]

Acceptance Criteria

[ ] When I resize my browser window, the line width is adjusting dynamically and the code is formatted nicely.

Ideas:

Resizing a window changes the max line length of the pretty printer and displays the code nicely.
Would be nice to not save the dynamically scaled version because that would not work with users wo don't use poppy-print. So only the normal poppy printed version is written to the source file.


scheduler: support pod preemption from numa awareless reservation

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm

/approve


fix(prettier) use print_assignment for ObjectProperty

Current dependencies on/for this PR:

main

PR #1598   👈

PR #1599

This stack of pull requests is managed by Graphite.

Merge activity

Dec 1, 5:31 AM: @Boshen started a stack merge that includes this pull request via Graphite.


404 response to valid route

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

I am using docker-compose and have my traefik service setup as:
traefik:
    image: traefik:latest
    container_name: traefik
    restart: unless-stopped
    command: --api.insecure=true --providers.docker
    security_opt:
      - no-new-privileges:true
    networks:
      - web
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /home/ken/data/traefik:/etc/traefik
    labels:
      - traefik.enable=true

I also have the classic example of the whoami service:
  whoami:
    image: traefik/whoami
    container_name: whoami
    restart: unless_stopped
    labels:
      - traefik.enable=true
      - traefik.http.routers.whoami.rule=Host(`whoami.local`)
      - traefik.http.routers.whoami.entrypoints=websecure
      - traefik.http.services.whoami.loadbalancer.server.port=80
    networks:
      - web

What did you see instead?
Looking at the dashboard everything looks fine but when I actually point a browser at whoami.local (or use curl to do the same) I get a 404 error. However, if I were to actually run curl against the docker service -- curl http://<IP_ADDRESS>:80 -- it does indeed return whoami info.

Note: I've tried adding some other routes to services like heimdall, etc. but they all end up with the same problem. I am pulling my hair out ... i have spent three days trying to just get a basic setup setup. :(
What version of Traefik are you using?
2.8.1
What is your environment & configuration?
traefik.yml
api:
  dashboard: true
  debug: true
  insecure: true
log:
  level: DEBUG

entryPoints:
  web:
    address: ":80"
    http:
      redirections:
        entryPoint:
          to: websecure
          scheme: https

  websecure:
    address: ":443"

serversTransport:
  insecureSkipVerify: true

providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
    network: web
    watch: true

If applicable, please paste the log output in DEBUG level
No response

if it helps, here's another screenshot showing all the routes setup:

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
To confirm this, please join our Community Forum and reach out to us on the Traefik section.
In case I'm wrong (well, that would be embarrassing :sweat_smile:), my developers will re-open the issue and fix me!
In the meantime, you can double check Traefik's documentation.

WTF! This certainly looks like bug.

Infuriating!

Hello,
I think that you are looking for this:

The Static Configuration
There are three different, mutually exclusive (i.e. you can use only one at the same time), ways to define static configuration options in Traefik:

In a configuration file
In the command-line arguments
As environment variables

https://doc.traefik.io/traefik/getting-started/configuration-overview/#the-static-configuration
If you need more help, please come to the forum

No I'm fully aware of that. I am using a file for static config and it picks this up. I am also using dynamic configuration via labels and it picks that up too. It just doesn't resolve any routes to anything but a 404 or some unclear error on redirection. I am looking desperately for some clue in example code and logs but nothing seems to work.

The configuration you provide and the docker-compose cannot work, because there are several problems:

you are use CLI flags (command: --api.insecure=true --providers.docker) and file (- /home/ken/data/traefik:/etc/traefik) for the static configuration.
the TLS is missing of websecure
etc.

I will help you on the forum, if you don't want, the answer is:
version: "3.9"

services:
  traefik:
    image: traefik:v2.8
    container_name: traefik
    command:
      - --api.insecure=true
      - --log.level=DEBUG
      - --providers.docker
      - --entrypoints.web.address=:80
      - --entrypoints.web.http.redirections.entryPoint.to=websecure
      - --entrypoints.web.http.redirections.entrypoint.scheme=https
      - --entrypoints.websecure.address=:443
      - --entrypoints.websecure.http.tls=true
    ports:
      - "80:80"
      - "443:443"
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro

  whoami:
    image: traefik/whoami:v1.8.1
    container_name: whoami
    labels:
      traefik.http.routers.whoami.rule: Host(`whoami.localhost`)
      traefik.http.routers.whoami.entrypoints: websecure

@ldez thank  you for taking the time ... i have "wanted" to use Traefik for a long while but both times I tried to start (on K8s and Docker) it was VERY painful. I guess once the basics are understood the documentation may serve as a good referrence but there is not enough "starter content" in my opinion. Anyway, thank you and I learned a lot just by looking at this example's syntax in the command and labels section.


fix undeclared identifier error in pbrMetallicRoughnessBlock

this playground can reproduce the bug
the crash info as follow

in this commit, vPositionW is removed from shadowsFragmentFunctions.fx and used by lightFragment.fx
But PBRMetallicRoughnessBlock still only replaces 'vPositionW' in shadowsFragmentFunctions.fx.
So, if a mesh use nodematerial using PBRBlock and receiveShadows, the final shader code will have 'vPositionW' , then
the error reported.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/14484/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14484/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14484/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/14484/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/14484/merge
https://gui.babylonjs.com/?snapshot=refs/pull/14484/merge
https://nme.babylonjs.com/?snapshot=refs/pull/14484/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/14484/merge#BCU1XR#0

Visualization tests for webgl1 have failed. If some tests failed because the snapshots do not match, the report can be found at
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14484/merge/testResults/webgl1/index.html
If tests were successful afterwards, this report might not be available anymore.

Visualization tests for webgl2 have failed. If some tests failed because the snapshots do not match, the report can be found at
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14484/merge/testResults/webgl2/index.html
If tests were successful afterwards, this report might not be available anymore.

Visualization tests for webgl1 have failed. If some tests failed because the snapshots do not match, the report can be found at
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14484/merge/testResults/webgl1/index.html
If tests were successful afterwards, this report might not be available anymore.

Visualization tests for webgl2 have failed. If some tests failed because the snapshots do not match, the report can be found at
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14484/merge/testResults/webgl2/index.html
If tests were successful afterwards, this report might not be available anymore.

@Starryi this breaks quite the automated tests. It looks good but there are probably some unhandled cases there.

because lightBlock.ts also be fix,  i think the commit message and pr title should also be updated


Added taco multiplier on Tuesdays for issue #668

I want more tacos

This should be separate from how gambling awards points in some way. As is, it would make gambling print money

Like double the amount in the point_message.handler.ts and/or point_react.handler.ts

This should be separate from how gambling awards points in some way. As is, it would make gambling print money

That is inherient to any sort of multiplier. Maybe 2x is too much? Just 1.5x? At the end of the day its just the fun of it - its alright if you can more easily make tacos.

This should be separate from how gambling awards points in some way. As is, it would make gambling print money

That is inherient to any sort of multiplier. Maybe 2x is too much? Just 1.5x? At the end of the day its just the fun of it - its alright if you can more easily make tacos.

Its not really gambling if ur guaranteed to make money

This should be separate from how gambling awards points in some way. As is, it would make gambling print money

That is inherient to any sort of multiplier. Maybe 2x is too much? Just 1.5x? At the end of the day its just the fun of it - its alright if you can more easily make tacos.

Its not really gambling if ur guaranteed to make money

In the long run and in the limit to infinity yes, but you can still lose a lot with a big bet. Yes, you could make that back if you sit and spam but at the end of the day, you are driving attraction towards to plugin - which is almost always the end goal.

In the long run and in the limit to infinity yes, but you can still lose a lot with a big bet. Yes, you could make that back if you sit and spam but at the end of the day, you are driving attraction towards to plugin - which is almost always the end goal.

Being able to min bet and get back 4x the min bet just ruins the leaderboard, thats inflation man

In the long run and in the limit to infinity yes, but you can still lose a lot with a big bet. Yes, you could make that back if you sit and spam but at the end of the day, you are driving attraction towards to plugin - which is almost always the end goal.

Being able to min bet and get back 4x the min bet just ruins the leaderboard, thats inflation man

So then how does your proposed change fix this? I didnt understand that comment

So then how does your proposed change fix this? I didnt understand that comment

Just dont affect the gambling amount

So then how does your proposed change fix this? I didnt understand that comment

Just dont affect the gambling amount

But thats the whole point of this PR. Was your note just on the correct way to alter an award amount? Im not following

Just change this lol
The gamble uses the point service awardPoints, so just don't change that

Just change this lol
The gamble uses the point service awardPoints, so just don't change that

I had no clue you were trying to say "we should double the amount users get for sending messages, not for gambling". I get it now. Yes that is a good middle ground

Like double the amount in the point_message.handler.ts and/or point_react.handler.ts

Like double the amount in the point_message.handler.ts and/or point_react.handler.ts

I understand but as a non-contributer idk what those things do until i look at them

I didn't realize that what I did affected the gambling amount too. It should only give bonus points from messages now.


Last edits to the custom functions topic before Build

The JSON schema details have been moved to the Sample readme.
Also added a bunch of Known Issues.

@Rick-Kirkham , please take a look and merge if ok. Thanks!

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/custom-functions-overview.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Yajra Datatable is removed on installing Maatwebsite (Laravel Framework)

Prerequisites

[ ] Checked if your Laravel Excel version is still supported: https://docs.laravel-excel.com/3.1/getting-started/support.html#supported-versions
[ ] Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.
[ ] Checked that your issue isn't already filed.
[ ] Checked if no PR was submitted that fixes this problem.
[ ] Filled in the entire issue template

Versions

PHP version:
Laravel version:
Package version:

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.

@dsgrunge1 Please fill in the issue template instead of only the issue title.


Redis proxy traffic mirroring runtime default

MirrorPolicyImpl::shouldMirror will override a default runtime fraction of 0, and instead mirror 100% of the time.
https://github.com/envoyproxy/envoy/blob/6ca8500b39568049647f4f40a599b8f8bd2afc3d/source/extensions/filters/network/redis_proxy/router_impl.cc#L17-L32
This is at odds with documentation:
https://github.com/envoyproxy/envoy/blob/6ca8500b39568049647f4f40a599b8f8bd2afc3d/api/envoy/api/v2/route/route.proto#L612-L617
    // If not specified, all requests to the target cluster will be mirrored. If
    // specified, Envoy will lookup the runtime key to get the % of requests to
    // mirror. Valid values are from 0 to 10000, allowing for increments of
    // 0.01% of requests to be mirrored. If the runtime key is specified in the
    // configuration but not present in runtime, 0 is the default and thus 0% of
    // requests will be mirrored.

And also inconsistent with the behavior of http router traffic mirroring:
https://github.com/envoyproxy/envoy/blob/eff020170c6267e6c8dc235473f7fc85c5b1e07d/source/common/router/config_impl.cc#L180-L185

@HenryYYang

Looks like it completely ignores the deprecated runtime_key field and only heeds runtime_fraction if the default numerator is > 0.


How to test the MQTT-SN

Hi
I am trying to test MQTT-SN in contiki using a msp430 mote.
To do that, I use the broker called "Mosquitto" in a computer. And I use the uip6-bridge of Contiki to communicate the 6lowpan sensor network with PC computer.
However, I check that the mote sends the messages towards the IPv6 of PC where Mosquitto-broker is running in port 1883. The message is shown by wireshark in the PC.
But there is not any response from Mosquitto-broker.
Please, could you say the broker compatible with the implementation of MQTT-SN in contiki??
How do you test the MQTT-SN client of contiki??
Best regards,
Rafa

Rafa,
At the time that I worked on this, Mosquitto had still not implemented MQTT-SN.
However, the developers of RSMB had released an open source version as they are planning to combine efforts with mosquitto. This version of RSMB was working with the contiki application.
http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.rsmb.git/
It compiles to multiple executables. You will want to use the broker_mqttsn.
Also, the config file can be a bit tricky.
Best,
Adam

Hi all,
I'm trying to use the [mqtt-sn-tools-contiki] of adamrenner with Z1 board of zolertia
with another Z1 (running a border-router example that routes all the IP packets from a Linux machine to wireless devices and viceversa) attached to RPi as a gateway [http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt-sn.apps.git].
Currently I use with the sub/pub clients offered on mqttsn-tools over linux and work fine.
But when I use it with the mote board I'm getting problems with the "length of the packet" then "the connection is lost" (as is shown in the attached image )

Has somebody observed this behavior or any hints how to resolve this?
Thanks in advance.