Specify the S3 permissions needed for each operation in the doc

I wanted to sync a folder. It works with s3cmd with the following permissions:

s3:ListBucket
s3:PutObject
s3:PutObjectAcl

After trying with s4cmd I have a 403 Access Denied which I guess comes from permissions. Can you add the needed permissions for each operation in the doc please?

A small file from the folder has been uploaded successfully though. I guess it is probably related to the multipart upload, and thus the multipart permissions.

It works after adding:

s3:ListMultipartUploadParts
s3:AbortMultipartUpload
s3:ListBucketMultipartUploads

I do not know if everything in the list is useful though


Minecraft Bedrock Edition gamedig monitor queries Java edition server instead of Bedrock

📑 I have found these related issues/pull requests
None
🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
When you create a gamedig monitor and select Minecraft: Bedrock Edition, it queries the server using the Minecraft Java Edition protocol. This results in no response when querying a Bedrock server. If you have a Java and Bedrock server at the same address, the monitor will receive a response from the Java Edition server.
I was able to fix this issue by doing the following:
Opening the games.txt file at {server directory}\nodemodules\gamedig
Then editing the line:
- minecraftpe,minecraftbe|Minecraft: Bedrock Edition (2011)|minecraft|port=19132
+ minecraftpe,minecraftbe|Minecraft: Bedrock Edition (2011)|minecraftbedrock|port=19132

This change causes the Bedrock Edition monitor to query Bedrock Edition servers as intended.
I'm not sure if this is the most optimal place to make this change, but it worked for me without causing any other problems (as far as I can tell).
👟 Reproduction steps
Create a Minecraft: Bedrock Edition monitor and direct it to an address that is hosting a Bedrock Edition server.
👀 Expected behavior
The monitor will query the server using the Bedrock Editon protocol and get a response form the bedrock server.
😓 Actual Behavior
The monitor queries the server with the Java edition protocol, either getting no response or receiving a response from a Java server if there is also one of those at the same address.
🐻 Uptime-Kuma Version
1.23.11
💻 Operating System and Arch
Windows 11 23H2
🌐 Browser
Same across all
🖥 Deployment Environment

Runtime: nodejs 20.11.0
Database: IDK? Whatever is built in
Filesystem used to store the database on: NTFS
number of monitors: 23

📝 Relevant log output
No response

That is an upstream issue. (we don't modifiy the dependencys we have like gamedig as suggested by you).
I have not identified a specific issue on this in their issue tracker.
Could you (as more of an expert) look thorugh their issues if this is tracked in another one?
These points from their v5.0.0-beta0 changelog might be relevant

Removed minecraftping (as it was deprecated and the same thing as minecraft) and minecraftpe (deprecated, which is now the same as mbe (Minecraft Bedrock Edition)).
Removed the games.txt file, the games definitions are now stored in-code (exported on games).

The specific issue tracking the upgrade to v5 is https://github.com/louislam/uptime-kuma/issues/4414, but nobody has yet done the work to migrate to said version.
v2.0 of uptime kuma will bump our minimum supported node version to 18 => said part is not a blocker anymore.
This dependency not having a stable release means that we currently won't spend core-maintainer time on such a migration and instead focus on other stuff like https://github.com/louislam/uptime-kuma/issues/4500

I am going to close this issue as as a duplicate, because this is likely also covered by https://github.com/louislam/uptime-kuma/issues/4414 => better tracked there as minecraftpe was remvoed in said beta0 of gamdig v5

Ok, thanks you for the insight!


*.vcf.gz in variation service output

We need to get bgzip *.vcf files in the variation service (we already have the *.tbi files from tabix). So that we will have all required files for streaming to the genome browser.

Deployed: https://github.com/TheSEED/app_service/pull/58

Streaming now supported.


Fix Tiers for Preact

See on slack
one sponsor is missing (says 6 and only 5 show up)
I added three to the correct tier in the order table (bronze-sponsor) They show up in the box but the label in the card is still wrong.

That's because you haven't updated the TierId in the Members table.

hmm but I added 3 sponsors in one go, how did the number went up to 6 but shows 5? I treated the 3 in the same way.

I haven't deployed the fix yet for the number of sponsors. Waiting for some tests to pass.
I was referring for the tier name not showing on the card. It's based on the TierId in the Members table.

deployed

members tiers updated.


pod be CrashLoopBackOff after Creating heketi api deployment

pod be CrashLoopBackOff after Creating heketi api deployment

Is it beacuse this?
"terminationGracePeriodSeconds": 0,

I fixed this problem myself with when i creating ssh-keygen -t rsa -b 2048 -f /data/heketi/.ssh/id_rsa as passpharse to be empty.


Make Utility classes final and throw in constructors.

@vanniktech this one has some conflicts now

Didn't work the first time on mobile but now it does

Rebased against latest master & squashed them.


feat: auth v2 uri params

Resolves #75 and resolves #71
Very similar to the URI code in hs_auth, it checks for any URL path, query or form parameters and adds them to the URI

LGTM!


CB-7912: fix(postis): do not try to parse invalid messages

Description of the change
There can be many different libraries or even different posis instances sending messages via postMessage, so don't try parse JSON unless it's expected to work.
Type of change

[x] The JIRA ticket referenced in this pull request is marked appropriately as Feedback Issue/Bug (non-breaking change that fixes an issue), or Story (non-breaking change that adds functionality).
[ ] Breaking change (fix or feature that requires changes in other repositories to function)
[ ] This change requires a documentation update on the Wiki.

Checklists
Development and Testing

[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All linting rules and tests pass, indicated by the Continuous Integration build system status.

Code review

[x] This pull request is using the issue tracker (JIRA) ID in the title, branch name, and commit message so that the issue tracker matches the link automatically. The issue tracker is also used to track related issues.
[x] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached.
[ ] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand, complex or unintuitive areas.

Sure the ticket number is correct? https://smartpants.atlassian.net/browse/CB-7912

I will reopen on a correct branch and try to remove the JSON serialization to see what happens


License?

Hi!  Can you tell us what the license is for this code?  Thanks!

Hi, thank you for the reminder. The license info is now updated.


Efforts to streamline or simplify the code generation process

Hello,
Apologies if this is not the best forum. I was just on Gitter earlier and that wasn't the greatest responses, but to be fair, my memory is somewhat vague.
Are you aware of any efforts to streamline or simplify the code generation process, through this or similar Roslyn based projects?
In particular, I seem to recall discussion around alternatives not involving, for instance, the dotnet-codegen CLI references, for instance.
For what I am doing, I'm not sure that I need a full on analyzer. I will probe a Git (or other) repository for a set of file(s), parse those files, and do some boilerplate code generation in response. But for the mechanics of doing so, it is pretty cut and dry, I think.
I expect to carry not only development reference assets, but also run-time ones to boot, for instance my parser bits, as well as any run-time plugin bits.
Oh, and I do expect to be able to support a range of targets, from Framework to Standard to Core, etc, which is seems as though that may constrain the field somewhat.
Thanks for any insights!

Are you aware of any efforts to streamline or simplify the code generation process, through this or similar Roslyn based projects?

That is the point of this project, yes. I wish Roslyn would add proper support for such a use case since it's very difficult to do it "right". There is at least one other project like this one. See #100.

In particular, I seem to recall discussion around alternatives not involving, for instance, the dotnet-codegen CLI references, for instance.

I've personally tried a variety of techniques, and this project settled on dotnet codegen as the only way that worked cross-plat, on dotnet and msbuild.

I'm not sure that I need a full on analyzer.

An analyzer is a very different use case than code generation, which is what this project is about.

But for the mechanics of doing so, it is pretty cut and dry, I think.

I find the tricky part is getting good IDE integration, with incremental build, language services noticing your generated files, etc. This project automates all that so you can focus on the actual code gen.

Oh, and I do expect to be able to support a range of targets, from Framework to Standard to Core, etc,

Pretty irrelevant, actually. For code gen, everything is from the compiler's perspective, which doesn't even see target frameworks. It just sees code and reference assemblies. So your code generator can easily support all the target frameworks provided it generates code that can compile in them.

| That is the point of this project, yes. I wish Roslyn would add proper support for such a use case since it's very difficult to do it "right". There is at least one other project like this one. See #100.
Ah, yes, thanks for recalling that.
| I've personally tried a variety of techniques, and this project settled on dotnet codegen as the only way that worked cross-plat, on dotnet and msbuild.
Yes, fair enough.
| I find the tricky part is getting good IDE integration, with incremental build, language services noticing your generated files, etc. This project automates all that so you can focus on the actual code gen.
Agreed. Excellent point.
Thanks for the feedback! :+1:


fix: updated the navigation path to breadcrumbs

Description
This PR updates the Navigation text path to breadcrumbs. It is now updated from  "go to all contests" to "Home > Contests > contest".
Fixes #77
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Responsive Testing: Yes
Checked for: (width in px)

[x] Laptop L - 1440px

[x] Laptop - 1024px

[x] Tablet - 768px

[x] Mobile M - 375px

Checklist:

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

Hey @PushpakRaut, amazing work!!

Assign me that issue, I will look into it tomorrow.

Hey @pranshugupta54 Is this Ok...???

Great work @PushpakRaut ! Thanks for contributing.


Add bundle versions command

The bundle versions command lists all versions of a specific bundle to fit with the guide.
Listing all versions is already implemented in bundle list, so functionality for versions has been limited to a specific bundle.
Incompatible bundles was noted as a TODO.

Branch issue, will resubmit.


test: testing common wheels

Adds a new testings suite that uses pytest and pixi to test common wheels, thanks: @liblaf for the inspiration! See: https://github.com/liblaf/pixi-test
This PR add two pixi tasks:

test-common-wheels requires a build and tests the installation of some common wheels
*-ci task does the same but does not have the depends-on

There is a wheels.toml file that contains a small configuration structure for defining the wheels that should be tested in CI. The tests contain the necessary files to actually parse and execute upon these functions. The tests are run in parallel using python-xdist.
Running tests locally
Running the tests locally should give you something like:

Running in CI
In CI a github markdown summary should be generated for somewhat easier parsing, of the wheels that were tested.
Adding extra wheels
To add extra wheels the wheels.toml file can be modified and a PR can be made.
Further improvements

Because we collect the test results during a run, we could use this to test the wheel with uv should a failure occur.
We might need to pin versions of wheels (I didn't want to do this yet, so we test with the latests) but this might prove annoying
We might needs skipping of certain wheels for platforms
We might need to test more python versions.

Nice this is great!

Are we now sure it fails if a wheel fails to install?


Extra space in ORIGIN when setting it through package.json script

Describe the bug
The issue occurs when I attempt to do a custom deploy on my project and need to create the ORIGIN. It seems that the .env file is not being taken into account, so I set the ORIGIN using the package.json script:
"prodServer": "SET ORIGIN=https://test:3148 && tsm ./prodServer.ts"
I believe this script works on Linux.
While debugging the build, I noticed that the ORIGIN is being taken with an extra space at the end, like this: https://test:3148 /favicon.ico
I was able to fix this issue by removing the space at the end of the ORIGIN in the package.json script:
"prodServer": "SET ORIGIN=https://test:3148&& tsm ./prodServer.ts"
I’m not certain if this is an error with SvelteKit or Vite, but it could potentially be fixed by adding a simple trim function: const origin = env('ORIGIN', undefined).trim();
Reproduction
windows:
"prodServer": "SET ORIGIN=https://test:3148 && tsm ./prodServer.ts"
Logs
No response
System Info
windows

Severity
annoyance
Additional Information
No response

This appears to be just how Windows works. If I run set FOO=bar && node -e "console.log(process.env)" in a command shell, I see that the value of FOO has a trailing space. I don't think SvelteKit (or Vite) should try to account for this by trimming the environment variables that are passed to it.


[Bug]: toggle not setting pressed property on init

Environment
Node version: 16.0.0
Package manager: npm
Radix Vue version: 1.2.5
Shadcn Vue version: 0.8.5
Vue version: 3.3.11
CSS framework<EMAIL_ADDRESS>
Link to minimal reproduction
https://github.com/agnauck/shadcn-vue-toggle-bug
Steps to reproduce

clone https://github.com/agnauck/shadcn-vue-toggle-bug
npm run dev
Toggle should be pressed on startup, see also area-pressed and data-state css attributes

Describe the bug
Toggle Buttons do not initialize the pressed property correctly.
Expected behavior
The toggle should initialize correctly when the pressed property is set to true. I always initialized false (undefined)
Conext & Screenshots (if applicable)
No response

Yes this indeed a bug, Wrapper Component can't pass props and emits properly
I think it's related to useForwardPropsEmits function
I think it's better to get rid of emits and add emits as props 😩
For now replace your Toggle code with this
Toggle code

<script setup lang="ts">
import type { ToggleEmits, ToggleProps } from 'radix-vue'
import { Toggle, useEmitAsProps } from 'radix-vue'
import type { VariantProps } from 'class-variance-authority'
import { toggleVariants } from '.'
import { cn } from '@/lib/utils'

interface ToggleVariantProps extends VariantProps<typeof toggleVariants> {}

interface Props extends ToggleProps {
  variant?: ToggleVariantProps['variant']
  size?: ToggleVariantProps['size']
  disabled?: boolean
}
const props = withDefaults(defineProps<Props>(), {
  variant: 'default',
  size: 'default',
  disabled: false,
})
const emits = defineEmits<ToggleEmits>()
const emitsAsProps = useEmitAsProps(emits)
</script>

<template>
  <Toggle
    v-bind="{
      ...props,
      ...emitsAsProps,
    }"
    :class="cn(toggleVariants({ variant, size, class: $attrs.class ?? '' }))"
    :disabled="props.disabled"
  >
    <slot />
  </Toggle>
</template>

@sadeghbarati  We can always link the related issue back to radix-vue, and we can fix the upstream issue there 😁


add two themes for comparison

This PR adds 2 themes as options in user settings. Those are an addition to the two (light and dark) default Backstage themes, therefore this is more of an expansion of functionality, than a modification of an existing feature/

now there are two Diamond themes, one light and dark. I think Backstage should use automatically depending on the system theme or using the one which is zero-indexed

make black text on white background for the light theme for real

@garryod that is not relevant after all I think, can I close the PR and the issue? Or feel free to do it

Sounds reasonable


Monokle Desktop 2.0 review (after demo)

Lists of updates required for 2.1 in the Monokle Desktop workflow:

[x] Icons to create new resource "New from scratch" "New for template" do not represent the action properly
[ ] New from scratch should be an empty file, so there will be three options (New from scratch, new from model)
[x] "New from scract" should be "New from model"
[x] "New from template" should be "New from advanced template"
[ ] When you create a preview of Helm, the non saved resources created show as part of the Helm chart. The delete button is disabled
[ ] Helm preview does not show the values files used when going into preview mode.
[ ] Links to other resources are highlighted as the full line in green, it should highlight the link only.
[ ] kustomization.yaml files are shown as kustimzation.yaml file, they should be differntiated, at least when a popover with the actual folder for the kustomize.yaml file.
[ ] In the OPA configuration, severity should be "recommended severity" as you can change the level from error to warning in the configuration
[ ] Unsatisfied links show like a yellow dot in the editor, but not in the resource list when all OPA validations are disabled or not applicable
[ ] Some yellow warning messages in the editor are still visible when changing the configuration in the old place (you add some spaces and the error remains in the previous place)
[ ] Using connection to a cluster in compare and sync is really slow.  Refreshing too
[ ] There is no CTA to deploy to cluster from the kustomize.yaml file
[x] Change of the terminal font size does not work (it goes back if you try to change it and only works when you press the arrows once) and it does not affect the font size

Updating this and adding it to 2.1

@chargio could you please revisit this list and create separate issues for each outstanding item that still needs to be fixed? thank you!


page setContent not loading all html sub resources

Steps:
1)Get the Html source code of a webpage
2)Set the content to page object using page.setContent
While rendering all the sub resources are not getting loaded.
Script Used:
var page = require('webpage').create();
var newPage = require('webpage').create();
var system = require('system');
var fs = require('fs');

if (system.args.length === 1) {
  console.log('Usage: sample.js <some URL> ');
  phantom.exit();
}

address = system.args[1];
var abort_downloading_html_sub_resources = false;

page.onLoadStarted = function() {
        abort_downloading_html_sub_resources = true;
}

page.onResourceRequested = function(requestData, request) {
    if (abort_downloading_html_sub_resources){
        console.log('Aborting the request to url: ' + requestData['url']);
        request.abort();
    }
};

page.open(address, function(status) {
  if (status !== 'success') {
    phantom.exit();
  } else {
      newPage.setContent(page.content, address);
      newPage.onLoadFinished = function(status) {
         if(status !== 'success') {
            phantom.exit();
         } else {
            newPage.render('scr_shot.png');
            phantom.exit();
         }
      };
  }
});

This is able to download subresources for some websites, but if website has huge resources it is not downloading them. (Screenshot is diaplaying blank screen in place of some of pngs in webpage)

From my testing it only requests resources with a protocol.
Resources with URLs beginning with http:// or file:// are requested, but anything without those is not requested. .e.g "lib/jquery.js" or something local and relative.


Artistic license in footer should link

perhaps to https://github.com/rakudo/rakudo/blob/nom/LICENSE ?

I've added a direct link to the license text of this repo (https://raw.githubusercontent.com/perl6/doc/master/LICENSE).


Login and OPF creation not working

Let me just say that I am so glad I found this script. I recently got a Kindle and have been searching ever since how to get the Economist onto it. Unfortunately, the Kindle editions published on Amazon aren't available where I live (Australia) and so I'm left with no recourse, despite having a subscription. Annoying right?
Anyway, to the heart of the problem. I'm not at all experienced with scripting, but it seems to me that some header formatting or something has changed on the Economist's website that the login function is no longer working. As for why the OPF file isn't getting made properly, I have no idea...
Here's the relevant output from running the script (the first two lines):
Economist ="n xmlns="http://www.w3.org/1999/xhtm, xml:lang="en" (xml:lang="en"0x)
Creating OPF file: economist_xml:lang="en"0x.opf... done!
I'm running the script on Windows 7. Also, does that means I have to flip all the directory references from /'s to 's? Or else is there someway to run the script in a Linux environment on Windows, if that would be easier?
Thanks for any help!

HI guzzo,
I believe I fixed this with my most recent update.
Let me know if you see any further issues!

Thanks Nic! Works brilliantly now: I just had to swap some /s to \s at the date directory and opf creation lines, flip the context for mobi conversion with kindlegen (which for some reason gives a lot of warnings...), throw in some quotes and the script was good to go.
Cheers,
Guzzo


NumberDecimal attribute type with error

Action: cosmosDB.executeAllMongoCommands
Error type: Error
Error Message: db.produtos.insertOne at 1:1: Unable to parse syntax. Error near line 8, column 12: "Unrecognized node type encountered. Could not parse NumberDecimal as part of NumberDecimal("800")"
Version: 0.15.0
OS: win32
OS Release: 10.0.18363
Product: Visual Studio Code
Product Version: 1.50.1
Language: en

Call Stack
extension.bundle.js:245:245981extension.bundle.js:245:245981
rejected extension.bundle.js:245:241454
processTicksAndRejections task_queues.js:94:5

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!


very slow nucleoatac run

Hi Alicia,
Thanks for the great package.
I installed nucleoatac and tried the provided example.
The example worked and finished in around 5 minutes.
Then I ran my own bam file (human data) and it was very slow. The bed file is human genome modified with slopBed (-b 600). Chromosomes are labelled with numbers only (thus 3, instead of chr3 or chrIII), but it is consistent among the bed, bam and fa files
Here is what I ran:
/package/NucleoATAC-0.3.1/bin/nucleoatac run --bed /data/hs38_genes_b600.bed --bam /data/Sample_Lib_A376_2/Bowtie2/50K.bam --fasta /data/repository/organisms/GRCh38_ensembl/genome_fasta/genome.fa --out Sample_Lib_A376_2
I can finish bowtie to generate these bam files very quickly, but with the same computational resources, the nucleoatac ran for 4 days and was still running. It generated the output file and was modifying it. There are no error messages.
The bam file contain 40 mil read. Is it normal that it runs for a week? I am new to data analysis, it would be nice you can point me to relevant settings that I should check.
Many Thanks!!
Ken
Python 2.7.5
NucleoATAC (0.3.1)
$ pip list
cycler (0.9.0)
Cython (0.23.4)
matplotlib (1.5.0)
numpy (1.10.1)
pip (1.4.1)
pyparsing (2.0.5)
pysam (0.8.3)
python-dateutil (2.4.2)
pytz (2015.7)
scipy (0.16.1)
setuptools (0.9.8)
six (1.10.0)
wsgiref (0.1.2)

Actually I cannot run nucleoatac with all the active genes.
When I reduced the bed file a lot, then it was fine.

You can use the --cores flag to use multiple cores to speed things up.  You set --cores 10 to use 10 cores for example.
Even using multiple cores, the program is not intended to be run on a whole genome or anything close to that.  As most of the genome will have very little coverage (and the little coverage there is will be background noise), running it on anything but open chromatin peaks is a waste of time.


Added output for docker pull

Resolves #892. @ivotron your feedback would be appreciated.

Thanks for the feedback. I've made the changes, please let me know if there is anything else I should do.

thanks a lot @michaelroyzen! 🙏


optional validate formatting as part of ci flow

use env var to turn on in order not to have any backward break

due to the fact that rustfmt is not backward compatible and not friendly for different versions of rust, its better to remove this item.


Fulfillment app translation

Required translation are made.

Closing as handled in https://github.com/hotwax/fulfillment-pwa/pull/333


Error: Cannot find module '@fluentui/react-shared-contexts'

Error: Cannot find module '@fluentui/react-shared-contexts'
at webpackMissingModule (emotion-hash.esm.js:55:1)
at ../../.store/@fluentui-contrib-react-headless-provider<EMAIL_ADDRESS>(emotion-hash.esm.js:55:1)
at webpack_require (bootstrap:19:1)
at ./src/Components/AppContainer.tsx (App.tsx:45:1)
at webpack_require (bootstrap:19:1)
at ./src/Components/App.tsx (tracing.js:7:1)
at webpack_require (bootstrap:19:1)
at index.js:320:1
at index.tsx:5:1
at index.tsx:5:1
When trying to import HeadlessFluentProvider
import { HeadlessFluentProvider } from "@fluentui-contrib/react-headless-provider";
   "@fluentui-contrib/react-headless-provider": "^1.0.2",
   "@fluentui/react-components": "^9.46.3",
   "react": "~17.0.2",
   "react-dom": "~17.0.2",

I see the error goes away if I manually install the package and import it, but shouldn't this be a dependency of react-components?

@fluentui-contrib/react-headless-provider should not have direct dependency on @fluentui/react-shared-contexts

. I see the error goes away if I manually install the package and import it

that works as expected. context is a peer dependency ( singleton ) - we cannot ship multiple singletons as that would explode in user land. you need to install all peerDependencies explicitly in your application.

but shouldn't this be a dependency of react-components?

it is. wondering why it's used  as direct sub-package import @layershifter ?

but shouldn't this be a dependency of react-components?

it is. wondering why it's used as direct sub-package import @layershifter ?

Some bits of API are not available through @fluentui/react-components. We need to export them and update @fluentui-contrib/react-headless-provider to import only @fluentui/react-components.


Update assimp version

Replaces pull request #1027 which I seem to have made a mess of. This is a merged, squashed commit of that.

Adds libraries for the latest version of assimp.
includes two bug fixes to assimp involving OBJ import.
Bug fix in asset loader for UV indices sometimes starting at 1 instead of 0
Eliminated redundant version of assimp used for loadMesh (reimplemented loadMesh in terms of loadModel)
Fixed a framework bug with TGA import.

Passes all the unit tests, has been tested with lots of demos. Needs more testing.
GearVRF DCO signed off by: Nola Donato<EMAIL_ADDRESS>

gvr-3dcursor always crashes on launch for me.  I didn't even know we could do this :-) The old importer supported this with a separate version of assimp distinct from the one the asset loader uses with a completely separate code path to call it. When I changed loadMesh to use the asset loader, this case got dropped on the floor because the asset loader input path doesn't support streams. I added code to allow a GVRResourceVolume to come from an input stream and now the sample works. We may find other stuff like this lurking in other samples.

The demos check out, almost. Have few more things to try.
There is an occasional jni crash with gvr-3dcursor. Sometimes it happens frequently sometimes it doesn't at all. Regardless the jni crash I can see quite often with this sample that GVRAndroidResource.closeStream is trying to close an OPEN stream but the stream is null hence NPE. The NPE might not be handled before a JNI call is made and that leads to the random crashes.
It seems to me related to this change. I don't see it with master. Just add a log statement in closeStream when a stream is OPEN but the stream member is null.

Says "This branch cannot be rebased due to conflicts"

I rebased again, now there are no conflicts.

Still "This branch cannot be rebased due to conflicts"

Tomorrow we should get together and investigate why yours always says it needs rebase and mine says there are no conflicts.

It can be merged but cannot be rebased since there are problems when rebasing the individual commits from this pull request. By default the rebase option is selected for me and it is grayed out. Anyway, we can proceed with the testing and merge instead.

Ok, all the additional things I wanted to try work. But we will have to properly rebase this otherwise there are things that will be overwritten with older versions (GVRActivity for example). Let me know which commit ids out of the 8 commits you truly want in this pull request and I will rebase it.

Merge squashed commits d43fdb5cdd6927caa18cbc5390454bd7fc5906fd, e11710ce8326050f9792927197d258aecaf42063, 687f3b669650f9c01f853efbe730987ba84043c1, bfb69d325fb862ba1c8d2c1a3d95de9d256bf67b, 105cf9c2e5a9f5b813a0bd20c690b6b58fc63311
Reverted the changes to GVRActivity and removed GearVRf/CMakeLists.txt

Looks good. Will merge Wednesday afternoon.


Remove dependency on Datastore's client

@ajkannan What does this issue mean?

Cloud Datastore provides a client library that we use instead of the proto-generated code.  For example, see here in the spi folder.  The client strips out some functionality that would be accessible if we used the proto-generated code directly (e.g. see the mention of #300 in #308).

I would be careful with adopting grpc for the datastore API while grpc is not supported in AE. Some AE users migrated to google-cloud (instead of using the AE client) to be able to reuse their code across platforms. Just some random thougths :)

@mziccard that seems very relevant and not random :-P

gRPC should now work on GAE Standard J7 & J8, but isn't yet super performant (neither is REST).

Correction to @lesv 's note - gRPC works on GAE Standard J8, but not J7.

This is redundant with https://github.com/GoogleCloudPlatform/google-cloud-java/issues/493 , which we have added to https://github.com/GoogleCloudPlatform/google-cloud-java/wiki/Feature-backlog . Closing this issue out.


AARCH64 - Incorrect Function Body Definition

When loading an iOS 14 kernelcache and after running the default auto analysis, many functions end up only having the entry point as part of the function namespace.
Python Code Snippet
The following python code snippet when run lists many functions and of those a subset clearly contain more than one instruction as part of the function body when looking at the function disassembly.
Code snipet:
# Hold all single instruction functions
candidate_functions = []

# Find all functions that have only one instruction
current_function = getFirstFunction()
while(current_function):
    func = getFunctionContaining(current_function.getEntryPoint().add(4))
    if func == None:
        candidate_functions.append(current_function.getEntryPoint().add(4))

    current_function = getFunctionAfter(current_function)

print(candidate_functions)

To Reproduce

Execute the above script
Using the address list output from step 1, find a function that clearly has more than just the entrypoint as part of the function body.

Expected behavior
When executing getFunctionContaining(Address address) on an address anywhere inside a function it should return the function that address belongs to.
Screenshots

Environment (please complete the following information):

OS: macOS 11.2
Java Version: 11.0.10
Ghidra Version: 9.2.2

Additional context

Import IOS 14 Kernelcache
run auto analysis

A temporary solution I have found is to run DeleteFunctionCmd and CreateFunctionCmd on the entrypoint address. This recreates the function's namespace and I am able to call getFunctionContaining(Address address) on any address within the function.


Attempt compilation of octopus using spack on OSX

Closing this PR. Exploration work continues in branch osx.


Add individual sanitizer suites to Kokoro

Shard sanitizer tests on Kokoro to match Jenkins and a couple nit fixes.
Portability tests are timing out, so maxing out timeout timer. These can be better tuned once we set the --inner_jobs flag in Kokoro configs.

No significant performance differences

Known issues:
Interop - #10576


Week 4 Review Ticket

Here is the link to my "Python Web Server Project"

2.7 I liked your video and changes, something for next time is to avoid single cuts

2.7
You did a great job at explaining all your steps and showing your knowledge of what you did.

2.7 your explanation was very helpful in understanding what you were doing

Great pace in the video with good explanations to every step. All of the requirements met as well. 2.7

2.7 because all of the required information was presented and detailed.

2.7
There was an adequate explanation with a simple step-by-step process, but I noticed it was a single cut video, so maybe refrain from doing that next time

Grade: 2.7
You did a good job at demonstrating both of your servers running and did very well in incorporating the key parts of the project

Hit key elements.  Thinks about side by side screens to get more in time.   Nice how you did APCSp very easy to see.   2.7

2.7, you moved your mouse a lot but you showed you knew what you were talking about and could really show the process.


how to convert waveglow model to onnx format?

do not create a new tag for an issue that is already open.


General insert mode completion (fzf-lua.complete)

This would be a feature request or a discussion thread. I'm trying to implement custom* insert mode completion as in the original fzf.vim.

Info (not quite relevant)

Operating System: macOS
Shell: zsh
Terminal: iTerm2
nvim --version: nvim-0.9.2
fzf --version: 0.39.0

In fzf.vim ...
Previously I had
imap <C-x><C-l><c-l>   <plug>(fzf-complete-line-allfiles)
imap <expr> <plug>(fzf-complete-line-allfiles)   fzf#vim#complete(Fzf_completeline_rg('', ''))

function! Fzf_completeline_rg(pattern, rg_filetype)
  let l:pattern = empty(a:pattern) ? '""' : shellescape('\b' . a:pattern. '\b')
  let l:filetype = empty(a:rg_filetype) ? ' ' : printf('-t %s ', shellescape(a:rg_filetype))

  return fzf#wrap({
        \ 'source': 'rg --column --line-number --no-heading --color=always ' . l:filetype . ' ' . l:pattern,
        \ 'options': ['--delimiter', ':', '--ansi', '--nth', '3..', '--no-multi'],
        \ 'reducer': { lines -> trim(join(split(lines[0], ':')[3:], ':')) },
        \ })
endfunction

which works like :FzfLua lines but the default action being inserting the selected line at the cursor rather than jumping to the selected line.
fzf-lua.complete
The module fzf-lua.complete provides some useful built-in completions, such as M.line (it's same as bline at the moment though), M.bline, M.file, etc. However for implementing custom insert-mode completions, I find it's quite complicated. Rather than providing the raw fzf command through fzf-lua.complete..fzf_complete, I hope I can reuse existing providers with modified opts.
For example, fzf-lua.complete.bline is implemented like (see https://github.com/ibhagwan/fzf-lua/blob/main/lua/fzf-lua/complete.lua#L146)
M.bline = function(opts)
  opts = config.normalize_opts(opts, config.globals.complete_bline)
  opts = set_cmp_opts_line(opts)
  return require "fzf-lua.providers.buffers".blines(opts)
end

which reuses the blines (for jumping) provider. The local function set_cmp_opts_line changes the default action and does some magic.
Q1. Is it possible to provide some utility, such as M.as_complete(...) or set_cmp_opts that can be used to convert any fzf-lua provider for insert completion?
Q2. If so, how can I configure how to parse the raw text to insert (e.g. the text often has the form file:linenumber:text, so some sort of parsing would be needed). See the reducer option of fzf#wrap in the above example.
What I tried
I tried to use set_cmp_opts_line, but it doesn't work:
  local as_completion = function(fzf_cmd)
    return function(opts)
      opts = require("fzf-lua.complete").set_cmp_opts_line(opts)
      fzf_cmd(opts)
    end
  end

  vim.keymap.set('i', '<C-x><C-l><C-l>', function()
    as_completion(require "fzf-lua.providers.grep".grep) { search = "" }
    -- as_completion(require "fzf-lua".grep) { search = "" }    -- does not work. why?
  end)

where I temporarily patch fzf-lua.complete.set_cmp_opts_line to be public (it's originally a local, private function) to see if it works. It shows the same grep fzf window, but upon hitting <CR> it doesn't do any action -- actually the complete_insert action fails to insert text. In principle what it doesn't look very different from setting set_cmp_opts internally, but I cannot easily figure it out.
Thanks for your help!

However for implementing custom insert-mode completions, I find it's quite complicated

There is def room for improvement here, I didn’t invest as much time in this API, it was added as part of the insert mode file and line completions and I’m pretty sure nobody uses custom completion yet :)

Q1. Is it possible to provide some utility, such as M.as_complete(...) or set_cmp_opts that can be used to convert any fzf-lua provider for insert completion?

This shouldn’t be much work, all the complete module does is change the default action to insert and decide which part of the line to replace via the cmp_match regex, I’ll look into it when I have more time.

Q2. If so, how can I configure how to parse the raw text to insert (e.g. the text often has the form file:linenumber:text, so some sort of parsing would be needed). See the reducer option of fzf#wrap in the above example.

All file-type entries are parsed using path.entry_to_file which in your case would return an object with .path, .line and .col:
https://github.com/ibhagwan/fzf-lua/blob/e39faa506bd76ce0b101ba362dfde6e3f743bd49/lua/fzf-lua/path.lua#L229

I tried to use set_cmp_opts_line, but it doesn't work

I’ll craft an example that does what you want and post it here after which we can work on bettering the API.

Thanks. I can help improve complete APIs; I see lots of hacky code and implicit assumptions which might need some major revmaping. I will send a series of small PRs towards this!
After some investigation, I found the cause for my particular issue where the complete_insert action silently fails to insert the selected text:

https://github.com/ibhagwan/fzf-lua/blob/e39faa506bd76ce0b101ba362dfde6e3f743bd49/lua/fzf-lua/actions.lua#L827-L828 assumes a very specific format in doing pattern matching, ^.*:%d+:%s(.*), which is actually the default entry format used by the blines provider, e.g.,
1: local utils = require "fzf-lua.utils"

(please note the whitespace after the line number 1:)

It of course doesn't necessarily match other providers' format, e.g., grep provider in my case:

 lua/fzf-lua/init.lua:2:7:local utils = require "fzf-lua.utils"
(e.g. there is no whitespace after the line number AND the column number)

- So the hard-coded format is a problem. I will fix this in a subsequent PR. However, we'll need to such assumptions about the format actions are compatible with some specific providers only. Maybe introducing options like `reducer` as in `fzf.vim` will be a good idea.

Another strange thing is that it fails **silently** despite the error (exception):

```diff
M.complete_insert = function(selected, opts)
local line = vim.api.nvim_get_current_line()
local before = opts.cmp_string_col > 1 and line:sub(1, opts.cmp_string_col - 1) or ""
local after = line:sub(opts.cmp_string_col + (opts.cmp_string and #opts.cmp_string or 0))
local entry = selected[1]
if opts.cmp_is_file then
  entry = path.relative(path.entry_to_file(selected[1], opts).path, opts.cwd)
elseif opts.cmp_is_line then
@    entry = selected[1]:match("^.*:%d+:%s(.*)")
end
+  if not entry then
+    vim.notify(vim.inspect(selected), vim.log.levels.INFO, {title = 'fzf-lua.actions'})
+    vim.notify(debug.traceback('complete_insert: entry is nil'), vim.log.levels.ERROR, {title = 'fzf-lua.actions'})
+  end

local subst = (opts.cmp_prefix or "") .. entry
vim.api.nvim_set_current_line(before .. subst .. after)
vim.api.nvim_win_set_cursor(0, { opts.cmp_string_row, opts.cmp_string_col + #subst - 2 })
if opts.cmp_mode == "i" then
  vim.cmd [[noautocmd lua vim.api.nvim_feedkeys('a', 'n', true)]]
end
end

with this changes I can confirm that the highlighted regex match line is the problem,
2023-09-17T10:41:03 fzf-lua.actions  INFO { 'lua/fzf-lua/cmd.lua:3:local utils = require "fzf-lua.utils"' }
2023-09-17T10:41:03 fzf-lua.actions  ERROR complete_insert: entry is nil
stack traceback:
        .../fzf-lua/lua/fzf-lua/actions.lua:832: in function 'action'
        .../fzf-lua/lua/fzf-lua/actions.lua:72: in function 'act'
        .../fzf-lua/lua/fzf-lua/core.lua:95: in function 'fn_selected'
        .../fzf-lua/lua/fzf-lua/core.lua:176: in function <.../fzf-lua/lua/fzf-lua/core.lua:172>

but the error (exception) is never displayed. The rest of the line (including set_current_line) is never executed, but no errors. Possibly it's related to a coroutine; the Line 172 of core.lua is coroutine.wrap but AFAIK errors happened inside a coroutine.wrap-ed function should raise rather than being shallowed. I don't know why this happens, but we will also need to improve error handling.

I can help improve complete APIs; I see lots of hacky code and implicit assumptions which might need some major revmaping. I will send a series of small PRs towards this!

Ty @wookayin, that would be great, I believe all issues can be solved with small incremental improvements, same thing happened with the main API fzf_exec which ended up being straight forward and very easy to use.

After some investigation, I found the cause for my particular issue where the complete_insert action silently
fails to insert the selected text
assumes a very specific format in doing pattern matching

Insert mode completion was created quickly and was hacked together to reuse the existing providers wifh many assumptions, I didn’t get to write it’s API doc (if I did I’d probably improve on it too) and nobody uses it outside of the filename/line completion as most users who need custom completion in neovim tend to use a custom nvim-cmp implementation. This would be a great opportunity to improve.

However, we'll need to fix such assumptions about the format actions are compatible with some specific providers only. Maybe introducing options like reducer as in fzf.vim will be a good idea

That’s a great idea, I think we should work somewhat backwards, first define a super easy-to-use API and then make the wrapper code to make it work while reusing existing provider code, somewhat like you wrote with with a wrapper as_complete(…) function or perhaps an option require'fzf-lua'files({ as_complete = true })?
We’d also need something with more control to determine which part of the line to replace (similar to cmp_match) as not all completions are from the cursor onwards, some has to go backwards (I.e. filename completions replace the entire path), perhaps something like require'fzf-lua'files({ as_complete = { <options> } })?

Another strange thing is that it fails silently despite the error
Possibly it's related to coroutine
AFAIK errors happened inside a coroutine.wrap-ed function should raise rather than being shallowed. I don't know why this happens, but we will also need to improve error handling.

Correct, this is due to the coroutine, I’m also unsure why this happens and when exceptions happen vs silently fail, I think this has something to do with neovim raising an explicit lua exception, otherwise the  error will fail silently which I see you already addressed in #879.

@wookayin, see https://github.com/ibhagwan/fzf-lua/commit/434cacd142914212715a2b17e182e6a39ff9f6ef
I refacotred the completion code, it should be really easy to do what you want now, see:
https://github.com/ibhagwan/fzf-lua#custom-completion

Wow @ibhagwan this is great! I am giving a try and will let you know if I have some feedback.
Actually, I wish this were written in a PR so that I could give some comment before merging, so that we can avoid adding commits consisting of consecutive breaking changes (I can foresee that we might have several API changes for the improvement). You already make some inevitable breaking changes though, like the removal of complete-insert, etc. Also, for instance, I'm not sure about the CTX (which is a private field though), I was actually thinking of the opposite way (i.e. ctx includes opts instead of opts including ctx) but this can be discussed in a separate refactoring PR.
Also I think introducing reducer will be a good idea rather than implementing the repetitive process of parsing "selected lines" before the "insert-complete" action (which seems to be need to be implemented in duplication?) But of course the current improvement 434cacd is already a great improvement.

Actually, I wish this were written in a PR so that I could give some comment before merging, so that we can avoid adding commits consisting of consecutive breaking changes

Quite honestly you’re probably the only one ever to use the custom completion so I doubt this would be breaking to anyone but you lol

I'm not sure about the CTX (which is a private field though), I was actually thinking of the opposite way (i.e. ctx includes opts instead of opts including ctx) but this can be discussed in a separate refactoring PR.

While I’m not opposed to this it’s not a big deal either way, there already is a global get_info which exposes all kinds of information, a rework would need to include everything, for now having it exposed in the opts isn’t a big deal and removed the code duplication used by buffers and lsp.

Also I think introducing reducer will be a good idea rather than implementing the repetitive process of parsing "selected lines" before the "insert-complete" action (which seems to be need to be implemented in duplication?)

Where do you see duplication? I thought about adding a reducer but then someone would like to decide where to insert that exactly or what other parts of the line to modify ar which point the opts.complete function gives the most flexibility to do whatever you want with the line.

Closing due to inactivity, feel free to reopen if you need more help with this.


Allow initial opt-out from remote sync peer

Thoughts on this:
I think there should be a way to define on a covalue level if it should be synced or not.
I'd like to

sync "organizations" and "billing objects" always
allow to disable syncing of a key of an organization


Fixed #33954 -- Prevented models.DecimalField from accepting NaN, Inf, and -Inf values.

Ticket reference: https://code.djangoproject.com/ticket/33954

@mohamed-karam Thanks :+1: Welcome aboard :boat:
I added tests for Inf and -Inf.


gofmt and goimports for some reason don't work, even though they are enabled in the config

They seem to be working for me. Are the plugins not doing anything when you save? Also make sure you have a go file open of course and that micro recognizes it.

They seem to be working for me. Are the plugins not doing anything when you save?
Corrrect.

Also make sure you have a go file open of course and that micro recognizes it.
Syntax highlighting just works, so it looks like micro does correctly detect the files.

Maybe I'm building it wrong (https://github.com/6c37/crux-ports-git/blob/3.2/micro/Pkgfile), like somehow it doesn't include runtime? But then again, the autoclose plugin does work...

Is it also not working if you run it as a command (either > gofmt or > goimports)? Also is it possible that goimports isn't installed?

Running gofmt does work indeed, so it is installed it seems. save just doesn't trigger it for some reason.

Are you saving the file with a keybinding (CtrlS) or some other way?

The most recent commit (ed31d37e7413f299748105a3ad93a4273a73b496) might have fixed this issue. Before that commit, lua callbacks for user actions would only be triggered if the action had been executed with a keybinding. So onSave would only run if CtrlS had been pressed, but not if the save command had been run. Of course now you can get recursive problems by calling view:Save() from within onSave, so I think there's still a little more work to do.
Let me know if it works now.

Nope, still doesn't seem to work :(

At this point I'm not really sure how to help you with this issue. Maybe you have a local plugin that is somehow interfering?

Yeah I thought so as well, so I removed all custom plusings (well, I only have one), but that didn't do anything. Here is my config:
{
    "autoclose": true,
    "autoindent": true,
    "colorscheme": "minato",
    "cursorline": false,
    "fishfmt": true,
    "gofmt": true,
    "goimports": true,
    "ignorecase": true,
    "indentchar": "┆",
    "linter": true,
    "ruler": true,
    "savecursor": true,
    "saveundo": false,
    "scrollmargin": 2,
    "scrollspeed": 5,
    "statusline": false,
    "syntax": true,
    "tabsize": 4,
    "tabstospaces": false
}

Oh and now that I look at it, the linter plugin does work.

I just tested the binary version of micro, and I have the same issue there, so it doesn't seem to be build related.

This is still not working for me btw, is really no one else having this issue? The go linting just works fine though. I have pyflakes installed an the python linting doesn't work, I don't know if it's related to this bug though.

Really? Pyflakes linting is working for me.

Ok I figured out what caused this, I don't have goimports installed (I thought go ships with it), but did have the goimports setting set to true. Since the plugin uses elseif it tries to execute goimports, but not gofmt. Setting goimports to false fixes the problem.
I don't know if goimports also gofmt's the files, if this is not the case I think the elseif statment should be replaces by an if statement.

goimports does also run gofmt. Maybe there is a way to detect if there was an error.


Snapshot contains tables that do not belong to db-sync

Reported by @jbgi .

@jbgi @rhyslbw can this be closed?

From my perspective it's not an issue with cardano-db-sync, so this issue can be closed


SDL2 x64-mingw triplets are not compatible with MinGW-w64 compiler

Describe the bug
I used vcpkg to install SDL libraries, for compilation using MinGW g++. Compilation fails with incompatible libraries, even though I am using 64 bit versions for both, on Win 10 64 bit, and the MinGW SDL libraries from vcpkg.
Environment

OS: Win 10 64 bit
Compiler: MinGW-w64 g++

To Reproduce
Steps to reproduce the behavior:

./vcpkg install sdl2:x64-mingw
Clone https://github.com/d1Ng0/sdl-vscode-simple and replace the tasks.json file to point to the proper compiler, libraries, and includes.

tasks.json
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe",
            "args": [
                "-g",
                "main.cpp",
                "-IC:/Dependencies/vcpkg/installed/x64-mingw/include",
                "-LC:/Dependencies/vcpkg/installed/x64-mingw/lib",
                "-lmingw32", "-lSDL2main","-lSDL2",
                "-o",
                "test-sdl"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

Failure logs
Compilation error:
> Executing task: C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe -g main.cpp -IC:/Dependencies/vcpkg/installed/x64-mingw/include -LC:/Dependencies/vcpkg/installed/x64-mingw/lib -lmingw32 -lSDL2main -lSDL2 -o test-sdl <

C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Dependencies/vcpkg/installed/x64-mingw/lib/libSDL2main.a when searching for -lSDL2main
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Dependencies/vcpkg/installed/x64-mingw/lib\libSDL2main.a when searching for -lSDL2main
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Dependencies/vcpkg/installed/x64-mingw/lib/libSDL2main.a when searching for -lSDL2main
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2main
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Dependencies/vcpkg/installed/x64-mingw/lib/libSDL2.a when searching for -lSDL2
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Dependencies/vcpkg/installed/x64-mingw/lib\libSDL2.a when searching for -lSDL2
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Dependencies/vcpkg/installed/x64-mingw/lib/libSDL2.a when searching for -lSDL2
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2
collect2.exe: error: ld returned 1 exit status
The terminal process terminated with exit code: 1

I believe that I am using the 64-bit MinGW compiler, and trying to link in the 64-bit SDL libraries from vcpkg.
Additional context
The project lives on F:, but all libraries are on C:. I don't think this is relevant though, since I was able to compile it by downloading the MinGW development libraries from https://www.libsdl.org/download-2.0.php and including / linking to the 64 bit version distributed there instead.
Do I have a misconception about what the x64-mingw triplet is for? Is there a triplet that would compile?

ls C:/Dependencies/vcpkg/installed/x64-mingw/lib/libSDL2.a
ls C:/Dependencies/vcpkg/installed/x64-mingw/lib/SDL2.a

The first one exists, the second one doesn't. I don't have any files named SDL2.a on my system, apparently.

"-llibSDL2main","-llibSDL2"
            "args": [
                "-g",
                "main.cpp",
                "-IC:/Dependencies/vcpkg/installed/x64-mingw/include",
                "-LC:/Dependencies/vcpkg/installed/x64-mingw/lib",
                "-lmingw32", "-llibSDL2main","-llibSDL2",
                "-o",
                "test-sdl"
            ],

That fails to find the files, doesn't seem to even look at any (while -lSDL2main sees them, and skips).
> Executing task: C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe -g main.cpp -IC:/Dependencies/vcpkg/installed/x64-mingw/include -LC:/Dependencies/vcpkg/installed/x64-mingw/lib -lmingw32 -llibSDL2main -llibSDL2 -o test-sdl <

C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibSDL2main
C:/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibSDL2
collect2.exe: error: ld returned 1 exit status
The terminal process terminated with exit code: 1

mingw lib suffix .a ?

http://www.mingw.org/wiki/specify_the_libraries_for_the_linker_to_use

MinGW supports libraries named according to the ".lib" and ".dll" conventions, in addition to the normal "lib.a" convention common on *nix systems.

Seems right? The lib files in the archive that I downloaded from the SDL website for MinGW have the .a suffix as well.

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.


iTerm just crashes

for file in ${${config_files:#*/path.zsh}:#*/completion.zsh}
do
  source $file
done

I've narrowed it down to this line in the zshrc symlink.  Trying to figure out a way to get the log of the last items in the terminal when this runs, but I can't seem to get anything to save.
/Users/ddavis/.oh-my-zsh/plugins/zsh_reload/zsh_reload.plugin.zsh This is the last plugin that it shows when it crashes.

I was able to get the entire terminal output by adding the following
for file in ${${config_files:#*/path.zsh}:#*/completion.zsh}
do
  source $file 2>&1 | tee log.txt
done

Log.txt
Bwana lets you read man files in Safari through a man: URI scheme
To use it within Zsh, install it from https://www.bruji.com/bwana/
zsh cask plugin: cask command not found
[oh-my-zsh] chucknorris depends on strfile, which is not installed
[oh-my-zsh] strfile is often provided as part of the 'fortune' package
/Users/ddavis/.oh-my-zsh/plugins/colemak/colemak.plugin.zsh:22: command not found: lesskey
/Users/ddavis/.oh-my-zsh/plugins/emotty/emotty_emoji_set.zsh:4: _emotty_sets: assignment to invalid subscript range
/Users/ddavis/.oh-my-zsh/plugins/emotty/emotty_floral_set.zsh:4: _emotty_sets: assignment to invalid subscript range
/Users/ddavis/.oh-my-zsh/plugins/emotty/emotty_love_set.zsh:6: _emotty_sets: assignment to invalid subscript range
/Users/ddavis/.oh-my-zsh/plugins/emotty/emotty_nature_set.zsh:4: _emotty_sets: assignment to invalid subscript range
/Users/ddavis/.oh-my-zsh/plugins/emotty/emotty_stellar_set.zsh:9: _emotty_sets: assignment to invalid subscript range
/Users/ddavis/.oh-my-zsh/plugins/emotty/emotty_zodiac_set.zsh:4: _emotty_sets: assignment to invalid subscript range
fastfile_sync:1: no matches found: /Users/ddavis/.fastfile//*
/Users/ddavis/.oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh:4: command not found: gpgconf
Cloning into '/var/folders/pv/r5x7p_ls5y15cmycxvt7qb8h0000gn/T/omz-update-histsubstrsrch.nYBf1Vzl/zsh-history-substring-search'...
Checked out upstream repo to /var/folders/pv/r5x7p_ls5y15cmycxvt7qb8h0000gn/T/omz-update-histsubstrsrch.nYBf1Vzl/zsh-history-substring-search
upstream SHA:         47a7d416c652a109f6e8856081abc042b50125f4
upstream commit time: 2018-02-21 10:15:09 -0800
upstream commit date: 2018-02-21

/var/folders/pv/r5x7p_ls5y15cmycxvt7qb8h0000gn/T/omz-update-histsubstrsrch.nYBf1Vzl/zsh-history-substring-search/README.md -> ./README.md
/var/folders/pv/r5x7p_ls5y15cmycxvt7qb8h0000gn/T/omz-update-histsubstrsrch.nYBf1Vzl/zsh-history-substring-search/zsh-history-substring-search.plugin.zsh -> ./zsh-history-substring-search.plugin.zsh
/var/folders/pv/r5x7p_ls5y15cmycxvt7qb8h0000gn/T/omz-update-histsubstrsrch.nYBf1Vzl/zsh-history-substring-search/zsh-history-substring-search.zsh -> ./zsh-history-substring-search.zsh
zsh-history-substring-search.zsh -> history-substring-search.zsh
zsh-history-substring-search.plugin.zsh -> history-substring-search.plugin.zsh
Removing temporary repo at /var/folders/pv/r5x7p_ls5y15cmycxvt7qb8h0000gn/T/omz-update-histsubstrsrch.nYBf1Vzl

Updating files with OMZ-specific stuff

Done OK

Now you can check the results and commit like this:

  git add *
  git commit -m "history-substring-search: update to upstream version 2018-02-21" \
      -m "Updates OMZ's copy to commit 47a7d416c652a109f6e8856081abc042b50125f4 from zsh-users/zsh-history-substring-search"

nyan plugin:
The nyancat server used by this plugin was shut down due to increased
bandwidth costs, so the nyan plugin no longer works. You can get the
same functionality in some distributions by installing the nyancat package,
or you can compile it yourself.
See https://github.com/klange/nyancat for more information.
[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.
 Please install with `pip install virtualenvwrapper`
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)
error connecting to /private/tmp/tmux-501/default (No such file or directory)


Add query options into Broker Request

For querying using HTTP GET, add query parameter debugOptions and queryOptions
Add query options into broker request
Clean up broker admin application

Codecov Report

Merging #2796 into master will decrease coverage by 0.3%.
The diff coverage is 45.28%.

@@            Coverage Diff             @@
##           master    #2796      +/-   ##
==========================================
- Coverage    69.1%   68.79%   -0.31%
==========================================
  Files         909      912       +3
  Lines       43232    44042     +810
  Branches     5862     6054     +192
==========================================
+ Hits        29874    30300     +426
- Misses      11371    11723     +352
- Partials     1987     2019      +32

Impacted Files
Coverage Δ

...pinot/broker/api/resources/PinotClientRequest.java
21.73% <0%> (-6.04%)
:arrow_down:

...ot/broker/requesthandler/BrokerRequestHandler.java
84.33% <42.85%> (-2.82%)
:arrow_down:

...m/linkedin/pinot/common/utils/CommonConstants.java
37.87% <50%> (+0.37%)
:arrow_up:

...pinot/broker/broker/BrokerAdminApiApplication.java
94.28% <88.88%> (+2.98%)
:arrow_up:

...a/manager/realtime/RealtimeSegmentDataManager.java
50% <0%> (-50%)
:arrow_down:

.../impl/dictionary/FloatOnHeapMutableDictionary.java
80% <0%> (-13.34%)
:arrow_down:

.../helix/core/realtime/SegmentCompletionManager.java
58.46% <0%> (-11.08%)
:arrow_down:

...manager/realtime/LLRealtimeSegmentDataManager.java
62.57% <0%> (-10.36%)
:arrow_down:

...n/pinot/common/config/StreamConsumptionConfig.java
64.7% <0%> (-10.3%)
:arrow_down:

...ore/query/scheduler/resources/ResourceManager.java
87.09% <0%> (-9.68%)
:arrow_down:

... and 29 more

Continue to review full report at Codecov.

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


HBASE-20693 Refactor thrift jsp's and extract header and footer

Fixes the way logLevel page renders in UI

Built code locally, extracted assembly, started a local cluster and started HBase Thrift server.

Verified the landing page has the right page title, all the tabs are visible and no error in page rendering.

Verified /logLevel page is fixed with appropriate tabs, as expected and shown below:

Before patch:
After patch:

Verified all other pages like /logs, /jmx, /conf works as before
Also ran Thrift demo client org.apache.hadoop.hbase.thrift.DemoClient and ensured no error

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 14s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+1 :green_heart:
mvninstall
3m 21s
master passed

+1 :green_heart:
spotless
0m 47s
branch has no errors when running spotless:check.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m 12s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
spotless
0m 49s
patch has no errors when running spotless:check.

Hey @ndimiduk would you have some cycles to review this? Similar refactoring was also part of rest module in https://github.com/apache/hbase/pull/5215 Also you had a +1 on JIRA HBASE-20693


Sqitch tutorial:  Are 'verify/*.sql' examples out-of-date?

I am working my way through the Sqitch tutorial at https://metacpan.org/pod/sqitchtutorial, App::Sqitch-0.9994.  I'm at the point where I'm issuing a command like this:
sqitch add flips -r appschema -r users -n 'Adds table for storing flips.'

When I open up the verify/flips.sql for editing, I see this:
$ cat verify/flips.sql
-- Verify flipr:flips on pg

BEGIN;

-- XXX Add verifications here.

ROLLBACK;

The tutorial, however, prompts me to expect COMMIT; where you see ROLLBACK; above.
Is the tutorial correct or is it out-of-date?
Thank you very much.
Jim Keenan

Laggards from earlier revisions, thanks for the catch!


⚠ Samsung has degraded performance

In aab51c3, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2860 ms

Resolved: Samsung performance has improved in 36c8f72.


Wire ts tests

This change splits any system dependency (e.g. node FileSystem) from the core session code, to allow for testability. All system-dependent code is in server.ts which is the command-line driver,
I have also added a simple JS client. currently this does not support all operations just a small subset. more to come.

This pull request is a little old now and cannot be merged cleanly. Is this still in progress, or is this obsolete?  Thanks.

These files have been ported a while back. closing.


Adding project members: unknown who I could add

As Project admin I can add project members. But the UI does not show me the user accounts available, so I have no way of knowing who I can add.
Thus the UI should offer me a list of users that I can select from.
Harbor version 1.4.0

this is related to #4364
redesigned Add New Member dialog

from https://vmware.invisionapp.com/share/F4GMUV05W8D#/295698160_Groups_-_Project

@lweitzman , currently, if user input something in "add user" input, frontend will send a api to get all the members can be added in it. so we don't need to redesign this. Louis. Let's have a talk about this.

@lweitzman ,feel free to reopen it if you think reasonable.


HTYI: enter button doesn't work to submit an answer

Playing on a desktop and I can't type my enter and press the enter button to submit, I physically have to click on "post". Not a major issue but it just seems to go against my natural urges, most sites let you submit by pressing enter.

you should be able to tab to select the button and then hit enter to "click" the button -- not sure if this is a bug right now


Create new game creation process

This process should be available to the super admin only, and should set up the required data to start a new game with a first image. This process should also set up new BikeTag Ambassadors.

I've added createAlbum to the imgur API and subsequently to the BikeTag API to support this feature. All three imgur albums should be created during this process.
These are the only required fields for creating a new BikeTag Game:
Name
Location (chosen from a map)
Autopost?
Initial BikeTag Ambassadors? (pops a modal to create new BikeTag Ambassadors)

This creation form should use the following component/design:
https://tailwindcomponents.com/component/multistep-form-with-tailwindcss-and-alpinejs
Steps:
1 ) Input name, logo, and region (and boundary)
2 ) Add Ambassadors
3 ) Set Default Game Settings
4 ) First Tag Image / Import
5 ) Launched! (finished)

Designs are in this issue.


Add citation to CLI

The info about citation should be added to the CLI as well. I propose adding the --citation option

Fixed by #168


Update kendra_chat_bedrock_claudev2.py

*Issue #, if available:This also fixes issue #45
Description of changes:
I put the chat history at the beginning of the prompt instead of in the middle.
The order of the history had to be changed because the Bedrock API expects to see alternating Human:/Assistant: lines for Claude.  Without this change, the first query would work, but subsequent queries would generate an error from the Bedrock API:
ValueError: Error: Prompt must alternate between '
Human:' and '
Assistant:'.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

langchain version in requirements.txt file needed to be updated for this fix to work for me. Tested with langchain==0.0.306


Mandlebrot example fails on docker image

I'm running through the Mandlebrot Set tutorial and hit a snag.
I am running tensor flow from Docker -- the b.gcr.io/tensorflow/tensorflow image
When I try to initialize all variables, I get this error:
W tensorflow/core/kernels/cast_op.cc:125] Unimplemented: Cast complex64 to float is not supported
E tensorflow/core/common_runtime/executor.cc:275] Executor failed to create kernel. Unimplemented: Cast complex64 to float is not supported

Full error after copy/pasting tutorial code to python file:
W tensor [[Node: zeros_like/Cast = Cast[DstT=DT_FLOAT, SrcT=DT_COMPLEX64, _device="/job:localhost/replica:0/task:0/cpu:0"](zeros_like/ZerosLike)]]
Traceback (most recent call last):xecutor.cc:275] Executor failed to create kernel.
  File "mb.py", line 36, in <module>oat is not supported
    tf.i [[Node: zeros_like/Cast = Cast[DstT=DT_FLOAT, SrcT=DT_COMPLEX64, _device="/job:localhost/replica:0/task:0/cpu:0"](zeros_like/ZerosLike)]]n/framework/ops.py",
Caused by op u'zeros_like/Cast', defined at:
  File "mb.py", line 34, in <module> feed_dict, self.graph, session)
    ns = tf.Variable(tf.zeros_like(xs, tf.float32))orflow/python/framework/ops.py",
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 632, in zeros_liken, feed_dict)
    ret = gen_math_ops.cast(ret, dtype)ackages/tensorflow/python/client/session.py"
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_math_ops.py", line 193, in castNone, fetches, feed_dict)
    return _op_def_lib.apply_op("Cast", x=x, DstT=DstT, name=name)lient/session.py"
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 655, in apply_op
    op_def=op_def)/lib/python2.7/dist-packages/tensorflow/python/client/session.py"
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2040, in create_op
    original_op=self._default_original_op, op_def=op_def)/python/client/session.py"
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1087, in __init__
    self._traceback = _extract_stack()mplementedError: Cast complex64 to float is n
ot supported

Is the docker image out of date?

This is caused by changes in the behavior of zeros_like (See).
As a temporary workaround, please replace
ns = tf.Variable(tf.zeros_like(xs, tf.float32))
with
ns = tf.Variable(tf.zeros(Z.shape))
We will provide a more permanent solution to this soon.

That did the trick! Thanks.

Fix in review.


chore: Use use abc to replace extern crate abc

This PR will use Rust 2021 edition's use abc to replace extern crate abc.

Thank you, @Xuanwo !


More Quants for command-r-plus Please?

There are only q2_K, q4_0, q8_0, and fp16 for command-r-plus.
https://ollama.com/library/command-r-plus/tags
Can we have more quants like 0/1/s/m/l of q3, q5, q6 like other models?
Thanks so much!

import from gguf yourself.

I already did even before Ollama had. I'm requesting for other people.

So you can actually do this pretty easily if you have the non-quantized version checked out either from safetensors or the ollama model. There's instructions in the import doc.
Short answer is:

Create a Modelfile w/ the fp16 model on the FROM line
Run ollama create --quantize q4_K_M test w/ the appropriate quantization level

Command-r is a little long in the tooth, so I'm going to go ahead and close the issue.


Team apps > Permission policies doesn't exist in Teams admin center!?!

"In the left navigation of the Microsoft Teams admin center, go to Teams apps > Permission policies."
I'm at https://admin.teams.microsoft.com/teams/manage, the header of the page says "Microsoft Team admin center" and there is a left navigation bar.  However, the left navigation bar does NOT have a "Teams apps" menu item.  It has Dashboard, Teams, Devices, Locations, Users, Meetings, Messaging policies, Voice, Analytics & Reports, Org-wide settings, Legacy portal, Call quality dashboard, Firstline Worker configuration.
The Teams icon does not take me anywhere I can manage permissions.  The org-wide settings has a Teams Settings sub-menu, but again,  nothing permissions related, nothing that looks like your screenshot above.

Ultimately, I'm trying to enable uploading of custom apps into teams as an org-wide setting, but this document is not helping at all :(
[Note: I'm the owner and admin of the teams account/subscription/office 365 subscription so I don't believe that my own level of permission are a problem].

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

ID: d51bb7b1-801e-6801-dcaf-afa3e38e6941
Version Independent ID: d8e726a1-cbf2-53c7-da4d-cc155b48612b
Content: Manage custom app policies and settings in Microsoft Teams
Content Source: Teams/teams-custom-app-policies-and-settings.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@jg11jg  - thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:  https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

@officedocsbot close


V10 compatibility

Sadly seems the module isn't working with v10; error log gives the following:
Foundry VTT | Rendering DrawingConfig
4commons.js:1250 Error: You are accessing PlaceableObject#data which is no longer used and instead the Document class should be referenced directly as PlaceableObject#document.
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
    at Object.logCompatibilityWarning (commons.js:1239:19)
    at Drawing.get (foundry.js:24526:23)
    at WeatherBlocker.isWeatherBlocking (main.js:219:28)
    at main.js:22:58
    at Array.filter (<anonymous>)
    at get drawings [as drawings] (main.js:22:39)
    at WeatherBlocker.getPolygons (main.js:88:42)
    at WeatherBlocker.refreshMask (main.js:76:27)
    at main.js:58:27
logCompatibilityWarning @ commons.js:1250
commons.js:1250 Error: You are accessing PlaceableObject#data which is no longer used and instead the Document class should be referenced directly as PlaceableObject#document.
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
    at Object.logCompatibilityWarning (commons.js:1239:19)
    at Drawing.get (foundry.js:24526:23)
    at WeatherBlocker.adjustPolygonPoints (main.js:192:17)
    at main.js:89:36
    at Array.map (<anonymous>)
    at WeatherBlocker.getPolygons (main.js:88:51)
    at WeatherBlocker.refreshMask (main.js:76:27)
    at main.js:58:27
logCompatibilityWarning @ commons.js:1250
main.js:192 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
[Detected 1 package: weatherblock]
    at WeatherBlocker.adjustPolygonPoints (main.js:192:29)
    at main.js:89:36
    at Array.map (<anonymous>)
    at WeatherBlocker.getPolygons (main.js:88:51)
    at WeatherBlocker.refreshMask (main.js:76:27)
    at main.js:58:27

And indeed isn't working on the map:

Of course anything else you need to help diagnose the issue just let me know. Thanks for making such a useful module!

Weather blocker is deprecated since V10. Use fx master instead


Support higher Symfony version (5.x)

This change is

Sorry, it seem's we don't have the right to merge anymore. Chaplean closed and we're not in the github organization anymore. You're better off forking the repo, sorry for that.


Provide sample codes?

Could you provide simple sample codes to show how to use the wrapper?
Do you have the API documentation available as HTML pages somewhere?
I am the current maintainer of https://github.com/LudovicRousseau/PyKCS11

We only have a very basic sample in the docs (or you could look at the functional tests -- they do key generation, sign/verify/encrypt/decrypt/wrap etc).
API Docs are also there -- though they do need to be updated with proper links.

I propose to add a link to http://pycryptoki.readthedocs.io/en/latest/index.html in the README.md file.
From the doc I do not understand how to specify a specific PKCS#11 library to use.

Sorry it was not obvious -- it's the docs|latest tag in the readme. I can make that more clear.
And support for other PKCS11 libraries is not intended and isn't likely to be supported by us, sorry (though it wouldn't be difficult to add).

This library was probably a lot of work to create, so not providing more examples doesn't make a lot of sense to me. We considered using about 20 Safenet HSMs, but the integration effort was too substantial and this type of library would have helped had it been more clearly documented.


When typing in location bar upon loading a new tab, gets overwritten by tofino://history

When opening a new tab (cmd+T) I begin typing the URL immediately and about a second later, tofino://history overwrites what I'm writing. We shouldn't inject that if the user already entered something. May be fixed by australification.
This is driving me nuts.

This is a dupe of #593


refine cron metrics priority for ehpa when working with other hpa met…

refine cron metrics priority for ehpa when working with other hpa metrics together, remove the cron impact when it is not active

What type of PR is this?
Feature
What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #257
Special notes for your reviewer:

/LGTM


Random authentication error when using account SAS to upload large file to blob storage

Hi guys,
I am seeing random authentication issues when using account SAS to upload large files ( >20 GB) to blob storage.
azure.common.AzureHttpError: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
<?xml version="1.0" encoding="utf-8"?><Error>AuthenticationFailed<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:aa7f238b-0001-0006-3d71-cf3f37000000
Time:2017-05-18T00:54:58.0436290Z</Message><AuthenticationErrorDetail>sr is mandatory. Cannot be empty</AuthenticationErrorDetail></Error>

The authentication error detail showed sr is mandatory. Cannot be empty. Per Account SAS documentation, account SAS doesn't have the sr parameter while service SAS has it. Using the same token, I was able to successfully upload 2 large files at different time, but it also failed many times due to authentication issue. The SAS token is given to me, and I do not have direct access to the account, so I may not be able to change or generate a service SAS.
Could you please take a look if this is a bug or simply I just miss something?
Thanks

Hi @thanhnhut90,
The error code does appear misleading but comparing this request with one that succeeded around the same time, I see that this failure appears to be because the SAS token was duplicated in the uri.
failure:
'sv=2016-05-31&ss=b&srt=sco&sp=rwdlac&se=2037-05-10T20:07:37Z&st=2017-05-10T12:07:37Z&spr=https&sig=XXXXX&sv=2016-05-31&ss=b&srt=sco&sp=rwdlac&se=2037-05-10T20:07:37Z&st=2017-05-10T12:07:37Z&spr=https&sig=XXXXX&comp=block&blockid=TURBd01EQXdNREF3TURBd01EQXdNREF3TURBd01UQTRORFkwTnpBeE5EUSUzRA%3D%3D'
successful:
sv=2016-05-31&ss=b&srt=sco&sp=rwdlac&se=2037-05-10T20:07:37Z&st=2017-05-10T12:07:37Z&spr=https&sig=XXXXX&comp=block&blockid=TURBd01EQXdNREF3TURBd01EQXdNREF3TURBd01URXdOamczTmpneU5UWSUzRA%3D%3D

Hello @jofriedm-msft. Thank you so much for looking into this. As far as I can tell, I don't see duplication in my code (the token is hard-coded and wasn't changed when it successfully uploaded or failed to upload), but I copy the code below in case if I really miss something.
def upload(service, path):
    '''upload to azure'''
    start_time = int(time.time())
    print "Start time: {}".format(start_time)
    print "File size {} bytes".format(os.stat(path).st_size)
    try:
        data = create_blob_path(path)
        service.create_blob_from_path(data['container', data['blob'], path, progress_callback=progress_callback, validate_content=True, max_connections=5)
        print service.make_blob_url(data['container'], data['blob'])
        end_time = int(time.time())
        print "End time: {}".format(end_time)
        print "Total {} mins".format(float(end_time - start_time)/60)
    except InvalidPathException as error:
        print str(error)

def progress_callback(current, total):
    percent = current/total
    if (percent % 10 == 0) and (percent != 0):
        print current
        print total
    	print "percent: {}".format(current/total)
	print "================================="

def delete_blob(service, container, blob):
    '''delete a blob from comtainer'''
    try:
        service.delete_blob(container, blob)
        print "Delete {} successfully".format(blob)
        return
    except Exception as error:
        print "Unable to delete the blob due to {}".format(str(error))

def list_blobs_in_container(service, container):
    '''list all blobs in a container'''
    blobs = service.list_blobs(container)
    for blob in blobs:
        print blob.name

def main():
    bblock_service = BlockBlobService(account_name=XXXXXX,\
                                        sas_token=XXXXXXX)
    args = usage()
    path = args.get('path', None)
    list_container = args.get('list', None)
    blob_name = args.get('delete', None)
    if path:
        upload(bblock_service, path)
    elif list_container:
        list_blobs_in_container(bblock_service, 'somecontainer')
    elif blob_name:
        delete_blob(bblock_service, 'somecontainer', blob_name)
    else:
        print "do nothing because no argument is given"

@thanhnhut90 , the below line is cut off for me but it looks like you are forgetting a ']' to close out the data['container']. If that doesn't fix it are you seeing this for all requests are just upload because that can narrow down your investigation, and maybe paste the rest of that line 😎
service.create_blob_from_path(data['container', data['blob'], path, progress_callback=progress_callback

actually it was my failed attempt to hide some information :). In the test code, I simply hard-coded a container, so it looks more like this
service.create_blob_from_path('somecontainer', data['blob'], path, progress_callback=progress_callback, validate_content=True, max_connections=5)
today i tried 3 times. 2 success and 1 failure; however, I made a modification to the SAS token by appending &sr=c (this was before I opened the issue), and the error I got back was different as expected
Thu May 18 08:29:10 PDT 2017 -> failed. Exception was thrown 10 mins after the script was run.
RequestId:08dc8852-0001-0056-45ec-cf203f000000
Time:2017-05-18T15:39:54.8875260Z</Message><AuthenticationErrorDetail>Signature fields not well formed.</AuthenticationErrorDetail></Error>

Thu May 18 09:26:41 PDT 2017 -> success (same token as above)
Thu May 18 10:14:35 PDT 2017 -> success (same token as above)

Last Friday (May 19, 2017) I was able to upload around 10 large files without getting any exception. Today, I tried to upload from multiple servers. Again, same code, same token.
For large files (30 GB +): got exception for all of them
For smaller files (100-ish MB or less): no exception
#Attempt 1:
<?xml version="1.0" encoding="utf-8"?><Error>AuthenticationFailed<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:f942c126-0001-010a-4058-d39793000000
Time:2017-05-23T00:09:43.0639278Z</Message><AuthenticationErrorDetail>sr is mandatory. Cannot be empty</AuthenticationErrorDetail></Error>
-------------------------------------------------------------------------------------------------
#Attempt 2:
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Start time:<PHONE_NUMBER> (Tue May 23 00:19:51 UTC 2017)
File size 66485960 bytes (57 MB)
End time:<PHONE_NUMBER> (Tue May 23 00:20:08 UTC 2017)
Total 0.283333333333 mins

Thanks for the additional information @thanhnhut90 .
It's not immediately clear why this is occurring intermittently, I will run some tests on my end to try and reproduce these scenarios, but it's likely directly related to uploading larger payloads.

 I've seen this failure occur with files as small as 2-5 GB.

Thanks @neh.
Just an update, this appears to be an issue with out retry policies when using SAS (which will often get triggered with bigger uploads). We are looking into getting a fix out soon.

@rambo-msft: do you have any update on this issue?
Thank for looking into this :)

@rambo-msft I am also seeing this issue very intermittently with files around 2GB

Hi all, sorry for the delayed response. I have found the issue and we will get a fix out for this soon. The issue appears to only occur when SAS is used and a retry is performed. As a temporary workaround you can use SharedKey or disable retries.

Did you miss this PR?
https://github.com/Azure/azure-storage-python/pull/299

@jofriedm-msft - How is disabling retries a workaround? If a retry occurring is what triggers the problem if I disable retries won't I just fail due to the error that triggered the retry (instead of due to this error)?

@huguesv yes, I didn't see that someone had already sent a PR for this.
@matthchr, yeah I guess it depends on what error handling you have built on top of the library.

We have fixed this and will make a release very shortly.

The fix has been released with 0.34.3. Thanks for your patience. 😃

Getting the same error for no reason the code was working well for like a month.


GPX file format import

Hello,
GPX is a quite used file format for GPS track.
Not as used as IGC #15 for gliders but widely used also (SDVFR for example doesn't provide IGC export but KML and GPX export).
Maybe SkyDolly could support GPX as import also
https://en.wikipedia.org/wiki/GPS_Exchange_Format
A sample file can be found at https://gist.github.com/scls19fr/36ad147517dfdf1b2d7e1ef34ecc4670
Kind regards

Ha, that's really funny: just hours ago I had a look at the GPX documenation here:
https://www.topografix.com/gpx.asp
I do have a small list of import/export formats on my own TODO list, GPX is one of them.

Just as a heads-up:

Note that altitude (elevation) and timestamps are optional values in GPX, so the current solution allows to define default values in case either altitude or timestamps are missing.
Te timestamps are calculated based on the desired flight speed - which is then of course constant across the whole path. Ignoring the "extra path length" introduced later on by cubic spline interpolation - the distance is purely calculated based on the linear connection of the track points (the Haversine distance, to be specific - so not quite "linear" ;)).


Test fix bionic arm64

Test Nic's fix with my new github actions stuff

Need to add CentOS

Closing since Nic's fixed has been merged


JTextComponentFixture enterText method simulates a qwerty keyboard

My code is :
JTextComponentFixture searchField=myDialog.textBox("SearchField");
searchField.setText("91808093");

When it runs it debug mode, it works fine.
In a normal mode, it simulates "(!))(#".
It seems to be the keys of a qwerty keyboard.

I think you're looking for AssertJ-Swing not AssertJ-Android.


clearOptions, clearCache seem to have no effect

I store a reference to the select from onInitialize
...
            selectOnTab: true,
            onInitialize: function(select) {
                vm.stateSelect = select
            },
...

and then clear the options and then use addOptions() to load in new options
               vm.stateSelect.clearOptions()
                vm.stateSelect.clearCache()
                vm.stateSelect.refreshOptions()

but the previous options are not cleared. The newly added options are appended to the previous list.. Can selectize.clearOptions be used to clear the old options ?

Ok. Got it working by installing from npm.. the file on this repo is different


Can't start OpenGLes2 on Windows

Environment

OS: Windows 11 22000.593
scrcpy version: 1.23
installation method: Github build
device model: OnePlus Nord N10
Android version: 11

PS C:\othersoftware\scrcpy> .\scrcpy.exe --tcpip=<IP_ADDRESS>:5555 --turn-screen-off --stay-awake --render-driver opengles2
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
INFO: Connecting to <IP_ADDRESS>:5555...
INFO: Connected to <IP_ADDRESS>:5555
C:\othersoftware\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 43.0 MB/s (41123 bytes in 0.001s)
[server] INFO: Device: OnePlus BE2029 (Android 11)
[server] INFO: Device screen turned off
INFO: Renderer: direct3d

There is an error in your command, the attribute "render-driver" must be concatenated with =.
.\scrcpy.exe --tcpip=<IP_ADDRESS>:5555 --turn-screen-off --stay-awake --render-driver=opengles2

The parameter of --render-driver is just a hint for SDL. If the requested one is not available, I guess it fallbacks to the default one: https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER
Does it work with opengl?

There is an error in your command, the attribute "render-driver" must be concatenated with =.

It does not matter, both work.

@rom1v Yes, opengl is working


feat(types): add a types declaration file

Add and declaration file to the package

Note
This adds an extra dependency for the express types (Normally this will be also installed in the user workspace while using express)

Thanks

Would it be possible to make a new release so we can get the types through npm?


Feature/library user manager

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/PetManagerClient.java  2
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/PetData.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/UserData.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/UserManagerClient.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/Pet.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/TaskManager.java  5

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/UserManagerClient.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/TaskManager.java  5
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/Pet.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/PetManagerClient.java  2
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/PetData.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/UserData.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/UserManagerClient.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/Pet.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/UserData.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/TaskManager.java  5
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/datacontainers/PetData.java  1
- usermanagerlib/src/main/java/org/pesmypetcare/usermanagerlib/clients/PetManagerClient.java  2

See the complete overview on Codacy


Modify the order of functions

could you please modify the order of function [scene._globe.render(frameState);] in [updateAndRenderPrimitives] I want this function can be execute first,and I will use 'primitive' to do more things withow modify source code

@mycleaerlife can you share more details about what you're trying to accomplish, and why it can't currently be done?

Thanks for your reply.
1.I just want to modify commands shader,and I want to current frameStates all commands to render my texture in  this [primitive.update(fameState) ] function , althogh this [frameState.afterRender(funciton(){})] function can get All Commands, but those are all Previous frames informations,maybe  change the order of that functions could be better.  2.the globe-commands ShaderProgram regenerartes in every frame.  Can you provide an external listener or a callback function that i will modify shader before  it push into commandslist.
that all above are my thoughts ，maybe there are  better solutions

@mycleaerlife it's still unclear to me what use cases are enabled by making this change. I'm closing this but feel free to search through the community forum (https://community.cesium.com/) or ask your question there. If you can provide an example of your custom shader and/or screenshots of what you're trying to accomplish that might help others recommend possible solutions and workarounds.


Add README sentences on MSML as showing the back-end to non-devs

https://blockscienceteam.slack.com/archives/C04Q45F0880/p1724364089805429


TeX Escaping Special Characters

Describe the solution you'd like
There are certain characters in TeX with special meaning. They will need escaping!
See https://tex.stackexchange.com/a/34586 and https://tex.stackexchange.com/a/119383
Describe alternatives you've considered

A custom templatetag to escape single values: {{ value|tex_escape \\
Provide somethings like Django's autoescape, but for TeX instead of HTML

Will be fixed by 8293e67f84ce89c43406f791e971f218809d0ea7
Probably even earlier that the referenced commit, but that commit actually verifies that the templatetags to escape the special characters is working against an actual compilation of the document.


Added CONTRIBUTING.md

Fixes #35

Please add the labels of gssoc and level1 on this issue as per gssoc guidelines.


I have install gekko and I would like to be able to stop a live running strat using gekko UI.

Note: for support questions, please join our Discord server

I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Action taken (what you did)

Expected result (what you hoped would happen)

Actual result (unexpected outcome)

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

I s there any feature to stop a live running strat in gekko using the UI without shutting down gekko?

From what I've read it hasn't been implemented, just stop the process and reboot to clear the list.

@commetbus ok, thanks

I think is an important feature to have in gekko in order to stop loss when doing live trade

Has anyone implemented this on their own, who can share with me?

http://gekkowarez.com/how-to-put-a-stop-loss-into-your-gekko-strategy/
https://github.com/askmike/gekko/issues/550

https://github.com/askmike/gekko/issues/550

Do you know how to stop a running strat through the command line?
without shutting down gekko --ui process

@jfima @Shootle stopping a running Gekko via the interface will be part of the next release. See #911.