TypeScript: Avatar no longer allows a className prop

After upgrading from v1.0.0-beta.10 to v1.0.0-beta.11 I have this error:
<Avatar src={avatarIcon} className={classNames.avatar} />
                         ^
                         Property 'className' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Avatar> & Readonly<{ children?: ReactNode; }> & Re...'.

It looks like this is due to #8221. If I remove the className prop this results in loss of desired stylings, so the current typing seems wrong to deny that there is a className prop.

Same here. Run into the same issue. I patched it locally at my end by adding  for now by add className?: string; to the StyledComponentProps. Seem to me StyledComponentProps should extend the default React component props if any.

After upgrading from v1.0.0-beta.10 to v1.0.0-beta.11 I have same error for Grid component:
<Grid container spacing={ 0 } className={ classes.root }>
Property 'className' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Grid> & Readonly<{ children?: ReactNode; }> & Read...'

Same here. Multiple components no longer allow for the className prop after upgrading to v1.0.0-beta.11 . The components we use that now have this problem are: Avatar, ListItemIcon, Grid.

Simple regex search (className\?: string|className: PropTypes\.string) inside src dir revealed 79 occurrences. Not all of the components have TS types exported.
After #8221 className prop needs to be added implicitly inside exported TS types.

I just became aware of this PR. I was the one who originally removed className from StyledComponentProps. I did it because StyledComponentProps are the additional props that are exposed by the higher-order component withStyles.
In this sense my removal was correct: withStyles does not add the prop className. The actual problem is that the unstyled Avatar component (and the other above mentioned components) already has the prop className (as is visible from the source code) and therefore, the component wrapped into withStyles will also expose className. So the correct solution would be to:

remove className from StyledComponentProps and
add className to the props of Avatar, etc.


Update README.md

Hacktoberfest spam

To enhance its readability.....not Hacktoberfest spam

How is adding a punctuation to the end of a sentence justified as "To enhance its readability".
Considering that this is not your first "README enhancement '' please don't spam the open source community with useless PR to get a free T-Shirt it just hurts the maintainers.
//Joey

closed as spam


I can't pair my wp8 with phonegap serve

Hi, i'm a new phonegap developer and i have the CLI working like a charm. I've tested it building some apps without error, but when i tried to pair the phone with phonegap developer app it doesn't work.
The app returned an "error" then "timed out" and i opened the phonegap server on my browser and it worked.
I've checked the phonegap serve ip and it's the same as my machine. Both my machine as my windows phone are on the same network.
I'm using phonegap version 3.6.0-0.21.19.

Hi @mrodrigolira
I am having the same problem as yours, but i am using phonegap desktop app beta 0.1.1, i don't know what should i have to do, i am new to phonegap.

@mrodrigolira @HumayunE Occasionally, I've found that the incorrect IP Address is provided by the PhoneGap CLI (and PhoneGap Desktop App). This sometimes happens when you have more than one network adapter or a virtual network adapter with an assigned IP address (e.g. Windows Phone Simulator or a Virtual Machine).
I've patched this issue in the more recent versions of connect-phonegap, which is used by the more recent versions of the phonegap-cli. Unfortunately, the PhoneGap Desktop App is still using an older version.
@mrodrigolira could you try updating to the latest PhoneGap CLI and try to pair with the Developer App? If the pairing fails again, can you provide me with the IP address output by the CLI and also the output of running ipconfig in your terminal/Command Prompt?
Thanks!

Closing since we haven't seen very much activity on this issue. Feel free to reopen.


Mavens getting listed in idle,idle7d+

Date: 06-09-2024
Developer Name:  Fakhruddin KW
Issue Ticket Number
#2024
Description
In this PR, we have collected all the users with role maven and preventing them from getting group-idle,group-idle-7d+,onboarding-31d
onboarding-31d was already done, this PR takes care of group-idle,group-idle-7d+
Documentation Updated?

[ ] Yes
[x] No

Under Feature Flag

[ ] Yes
[x] No

Database Changes

[ ] Yes
[x] No

Breaking Changes

[ ] Yes
[x] No

Development Tested?

[x] Yes
[ ] No

https://github.com/user-attachments/assets/c117da92-536f-4281-b448-b4aa5b3baa3b
Screenshots

Test Coverage

BEFORE:

AFTER:

@fakhruddinkw test is not required?

@fakhruddinkw test is not required?

they are, I am working on them. I have made the PR open for review if changes are required

Please add test coverage, also the changes you have done doesn't have any test cases written for them.

Please add test coverage, also the changes you have done doesn't have any test cases written for them.

on it

Hello @fakhruddinkw  please get peer review first, before coming to me

Hello @fakhruddinkw please get peer review first, before coming to me

Sorry my mistake, i will keep this in mind for future.


[Windows] After each transcation there is an extra entry of one transcation

Bug Description
When user send points to friends then in transactions there is an extra entry
Steps to Reproduce

Go to My accounts >>Transaction

Expected behavior
Only that entry should be displayed.
Actual behavior
Extra one entry is displayed.
Screenshots/Recordings
https://recordit.co/s7alf6haoh
OS and Browser
OS: [Windows 7]
Account Number
965ef39eda2db7e91d2c937abdf1c5f6b9c49d22954ed80ea9e743ca1531123e

@kristykjlee these are the Tx fees that you pay to the Bank and Validator. We should think of a better way to indicate that those are fees.

@buckyroberts is it possible to add a column to each transaction and display those Tx fees there
like this: https://ibb.co/583m469

This has been moved to the Design Repository


Upgraded cats library (and other dependencies)

The version of cats used is not compatible with newer versions of cats (which is causing some issues with codebases that try to use both). Cats, potemkin, and clojure versions have been bumped and adjustments made where comparability was broken.

Merged, thanks!

Any chance of a release going out to clojars? :)

Sure, I've just released 0.3.0: https://clojars.org/t6/from-scala/0.3.0

Awesome, thanks so much :)


Fix time parser errors

Previously, Mon 23:00-24:00, 24:00-27:00 could be parsed successfully as a time slot.
Now, the user can only input times within the day specified.

Codecov Report

Merging #128 (ee3bcee) into master (c2c3c70) will increase coverage by 0.01%.
The diff coverage is 37.50%.

@@             Coverage Diff              @@
##             master     #128      +/-   ##
============================================
+ Coverage     43.75%   43.77%   +0.01%
- Complexity      507      508       +1
============================================
  Files           119      119
  Lines          2788     2794       +6
  Branches        328      329       +1
============================================
+ Hits           1220     1223       +3
- Misses         1494     1496       +2
- Partials         74       75       +1

Impacted Files
Coverage Δ

...du/address/logic/parser/AddClassCommandParser.java
0.00% <0.00%> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
50.00% <0.00%> (-1.12%)
:arrow_down:

...ain/java/seedu/address/model/tuition/Timeslot.java
48.48% <75.00%> (+1.71%)
:arrow_up:

Continue to review full report at Codecov.

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


How to implement a fallback token variant in 0.13.0?

Perhaps not a "issue" topic, but discussions which would be more appropriate here are not enabled for this repo.
I use logos as a way to losslessly tokenize a programming language. Since the lexer should always produce a full sequence of tokens, I used the v0.12.x #[error] token variant as a "catch all" for unmatched text. This is important, as I never want to bail on invalid text, some compiler error is later emitted for such error tokens. Simplified example:
#[derive(Logos, Copy, Clone, Debug, PartialEq, Eq)]
pub enum Token {
    #[token("if")]
    If,
    #[token("while")]
    While,
    #[regex("[a-zA-Z][a-zA-Z0-9]*")]
    Ident,
    #[regex(r"[ \t]+")]
    Whitespace,
    #[error]
    Error,
}

In 0.13.0 the lexer emits Results. How can I achieve a similar behavior? My first thought was to just move the Token::Error variant to a Logos::Error using #[logos(error = MyError)] and then when iterating over the Results just map Result::Err to my Token::Error. But I do not see any way to preserve text/span information in custom errors, which is very important. Of course, one could also literally do a catch all with:
#[derive(Logos, Copy, Clone, Debug, PartialEq, Eq)]
pub enum Token {
    #[token("if")]
    If,
    #[token("while")]
    While,
    #[regex("[a-zA-Z][a-zA-Z0-9]*")]
    Ident,
    #[regex(r"[ \t]+")]
    Whitespace,
+   #[regex(".+")]
-   #[error]
    Error,
}

But I see two problems here. First, the lexer would still emit Results, even though in practice everything will be a Result::Ok, I would hate to have to unwrap everything. Second, I wouldn't really trust ".+" never taking precedence over some other tokens.
What would be an appropriate migration strategy for such a usecase?

But I do not see any way to preserve text/span information in custom errors, which is very important. Of course, one could also literally do a catch all with:

This hasn't have changed, if lex.next() produces Some(Err(_)) then lex.span() will give you a range for that error, and lex.slice() will give you slice of the source for that error.

This hasn't have changed, if lex.next() produces Some(Err(_)) then lex.span() will give you a range for that error, and lex.slice() will give you slice of the source for that error.

Riiiight, indeed.

If you put #[regex(".+")] then no matter what source you give it, the entire source will just lex as one of that token, so I wouldn't advise it.

Oh, I assumed the "Specific beats generic" rule would win against the "Longer beats shorter" rule.
So in the end I migrated this way:

remove #[error] above the error token variant
add .unwrap_or(Token::Error) when iterating over the logos lexer

All tests pass and no performance regressions were found! Thanks for the help.

Oh, I assumed the "Specific beats generic" rule would win against the "Longer beats shorter" rule.

I think this wording is causing a lot of confusion. It's the longer pattern beats shorter pattern, e.g.: #[token("foo")] (3) is longer than #[regex("[a-z]+")] (1+) and therefore has higher priority by default. Priority only applies when there is ambiguity, if there is just one possible longest match there is no ambiguity (see discussion in #297).


numix-solarized-gtk-theme: 20200910 -> 20210522

Motivation for this change
Update to version 20210522
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 124161 at 28ae2198 run on aarch64-linux 1

1 package built successfully:

numix-solarized-gtk-theme

2 suggestions:

warning: missing-phase-hooks
buildPhase should probably contain runHook preBuild and runHook postBuild.
Near pkgs/data/themes/numix-solarized/default.nix:23:3:
   |
23 |   buildPhase = "true";
   |   ^

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/data/themes/numix-solarized/default.nix:25:3:
   |
25 |   installPhase = ''
   |   ^


Module and service to create a calendar

Co-authored-by: Samuel Prak<EMAIL_ADDRESS>

 Module and service to create a calendar


[Openstack] Add project blacklist support for limits metrics

What does this PR do?
Add the ability to blacklist projects based on regex. Only for limits metrics!!
Motivation
There are cases where projects can exist within keystone with perhaps a UUID or others that may not be important to monitor.
Testing Guidelines
An overview on testing
is available in our contribution guidelines.
Versioning

[ ] Bumped the check version in manifest.json
[ ] Bumped the check version in datadog_checks/{integration}/__init__.py
[ ] Updated CHANGELOG.md. Please use Unreleased as the date in the title
for the new section.
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
This won't apply to the servers we collect. We will still pull server stats for the projects in the blacklist.

https://github.com/DataDog/integrations-core/pull/1510 has been merged

Closing for now, this will be reworked later.


limited dataloader num_worker max to 8

#7
A limit is placed on the number of workers in the dataloader, which has been tested not to affect training performance. Also reduce the training start and end time.

Thanks this makes more sense then my suggested config, as it does not affect data preloading.


how can pkg_deb support packaging ipk for openwrt usage

Is there any way that I can re-use pkg_deb rule to generate ipk packages used for openwrt

embedded os such OpenWrt uses opkg to manage packages, the package suffix is ipkg, which is a little bit different from deb, It uses init.d to manage services
any suggestion about how can I modify pkg_deb rule or any other way to build related ipkg packages, such as deb

You're welcome to try to write one. I know nothing about the format, but I would
be willing to look over a plan that starts from pkg_tar or pkg_deb and makes an opkg.
If it is just a list of files and locations, then pkg_tar might be a good base. If it has multiple components, pkg_deb may be a good starting point.

Closing for inactivity


Update to use node 16

Node 12 is now deprecated by github, meaning builds using this action are getting warnings about using node 12. Please can it be updated to node 16.
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

Thanks for the quick update! 🚀


Improve linking across articles for Python workflows

In reference to our discussion on helping users find resources to running Q# programs with Python.

Thanks a lot Brad!


[Feature]: Social media icon

[x] Would you like to take up this task?
[x] Are you from GSSoC'23?

✨
Feature request

Is your feature request related to a problem?
User's may want to reach out through social media so that I would like to add social icons in footer.

Describe the solution you'd like
I would like to add social media icons in footer

Describe alternatives you've considered
If user want to know more about yourself they can follow you on social media.

Additional context*

Go ahead have it done

@akashgreninja your deployed website and clone website are two different?

After cloning I start the website it shows this

@akashgreninja main project not contain footer component how do changes in that.


Unable to pass checkout in React

I'm using React and the paypal express button was warking fine until now. The express button opens the checkout window but there is no cart or total amount showin and after click the continue button, I got redirected to the summary paypal page.
I can see the transacctions in my account, but the are not completed. Has anyone got this issue before? the paypal example on the right works fine so I think the problem is mine, but the system was working for about six months with no issues.

import React from 'react';
import ReactDOM from 'react-dom';
import paypal from 'paypal-checkout';

payment(data, actions) {
    return actions.payment.create({
        transactions: [
            {
                amount: { total: this.state.totalFee, currency: 'USD' }
            }
        ]
    });
}
onAuthorize(data, actions) {
    return actions.payment.execute().then(function(paymentData) {
        // Show a success page to the buyer
    });
}
...
render() {
let PayPalButton = paypal.Button.driver('react', { React, ReactDOM });

return (
     <div className = "col-sm-3 text-right">
            {
                this.state.env !== undefined ?
                    <PayPalButton
                        commit={ true }
                        env={ this.state.env }
                        client={ this.state.client }
                        payment={ (data, actions) => this.payment(data, actions) }
                        onAuthorize={ (data, actions) => this.onAuthorize(data, actions) }
                    />
                    :
                    ''
            }

    </div>
);

Can you clear your browser cache and try once more? This may have been caused by a recent bug which was rolled back.

Thank you very much for your answer. The code online is not working but my local repository is working fine after updating the npm package, refactoring the code and clearing the browser cache.
So I will push my changes online. Thanks again!


add example images for best practices

For each section, add a visual example of a best practice and a visual example of it opposite for a this vs that effect
https://github.com/axisgroup/evaluation-toolkit/tree/master/1. Following best practices

Can you provide one such example?

Separate news from the noise
Show a visual example of visual weight, like one of Zurb's sketches: https://zurb.com/word/visual-weight
Content as navigation
https://xkcd.com/214/


Non consistent syntax highlighting when deconstructing a record in a function argument

Describe the bug

When deconstructing a record in a function argument, the color of {, },  ; and = are not consistent.

Code for reproduction
type Repro =
    {
        PropA : int
    }

let func1 ({ PropA = propA } : Repro) =
    printfn "%A" propA

Machine info

OS: Windows
.NET SDK version: 5.0.202
Ionide version: 5.5.3

To be 100% clear for future-selves, the complaint is that the braces and semicolon are light blue here inside the function parameter deconstruction instead of the same dark blue that they have in the record declaration?

Yes, you got it right.
On the next picture, I underlined in red the symbol I am referring to.

This is because of the textmate/semantic highlighting tokens reported in each case.
For the definition, there is no semantic token for the brace characters, and so the textmate scope for keyword applies.
For the deconstruction, there is a semantic token of variable applied here, which then applies the brighter token.
Should look into further into what's going on here.
The scopes returned from FSAC (decoded) for your sample code are

Tokens!
[|({ Start = { Line = 0
                 Character = 0 }
       End = { Line = 0
               Character = 0 } }, Namespace, 0);
    ({ Start = { Line = 0
                 Character = 0 }
       End = { Line = 0
               Character = 0 } }, Namespace, 0);
    ({ Start = { Line = 0
                 Character = 5 }
       End = { Line = 0
               Character = 10 } }, Type, 0);
    ({ Start = { Line = 2
                 Character = 8 }
       End = { Line = 2
               Character = 13 } }, Property, Readonly);
    ({ Start = { Line = 2
                 Character = 16 }
       End = { Line = 2
               Character = 19 } }, Struct, 0);
    ({ Start = { Line = 5
                 Character = 4 }
       End = { Line = 5
               Character = 9 } }, Function, 0);
    ({ Start = { Line = 5
                 Character = 11 }
       End = { Line = 5
               Character = 13 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 13 }
       End = { Line = 5
               Character = 18 } }, Property, Readonly);
    ({ Start = { Line = 5
                 Character = 18 }
       End = { Line = 5
               Character = 21 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 21 }
       End = { Line = 5
               Character = 26 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 26 }
       End = { Line = 5
               Character = 28 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 31 }
       End = { Line = 5
               Character = 36 } }, Type, 0);
    ({ Start = { Line = 6
                 Character = 4 }
       End = { Line = 6
               Character = 11 } }, Function, 0);
    ({ Start = { Line = 6
                 Character = 13 }
       End = { Line = 6
               Character = 15 } }, Regexp, 0);
    ({ Start = { Line = 6
                 Character = 17 }
       End = { Line = 6
               Character = 22 } }, Variable, 0)|]

Thinking aloud
Hum, but if the whole range is "{ PropA = propA }" I wonder why we don't have everything the same color.
Here we have some light blue, blue, yellow.
I didn't dig into how semantic works yet, I will need to learn more about it and it's relation with the textmate grammar.

I wonder why we don't have everything the same color.

This is because of the additional processing I mentioned as step 2 in this comment.  A bit of background on LSP semantic highlighting:
It relies on

a LSP server provided list of token types
a LSP server provided list of token modifiers
the server to translate range * token type * token modifier tuples into a custom format that is based on line and character deltas from the last highlighting entry, which we implement here

The LSP spec is picky here: technically the spec allows for clients to support token spans with overlapping or multiline ranges, which would be what would happen if FSAC naively mapped and returned the ranges that we get for this code directly from FCS, namely we get the 'full' range of the record deconstruction in (6,11-6,28), but we also get ranges for the property name (6,13-6,18) and the variable mapping.  This is the case in the list of tokens I provided in the example above.
The LSP spec allows for a client to say that they support these ranges, but VSCode does not. Therefore, FSAC reverts to the lowest-common-denominator: we attempt to deduplicate these ranges so that there are no nesting or overlaps. We do this through an algorithm that walks each range and finds the other ranges that this 'parent' range would contain partially or entirely within itself, and we slice out the overlapping portions from the parent range, so that each parent range becomes 1 or more sub-ranges. After this operation there should be no overlaps.
This is what you're seeing above returned from FSAC for the overall variable deconstruction:
 ({ Start = { Line = 5
                 Character = 11 }
       End = { Line = 5
               Character = 13 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 13 }
       End = { Line = 5
               Character = 18 } }, Property, Readonly);
    ({ Start = { Line = 5
                 Character = 18 }
       End = { Line = 5
               Character = 21 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 21 }
       End = { Line = 5
               Character = 26 } }, Variable, 0);
    ({ Start = { Line = 5
                 Character = 26 }
       End = { Line = 5
               Character = 28 } }, Variable, 0);

These ranges were derived from taking the entire deconstruction range, which was tagged as a Variable, and chunking out the overlapping sections of it.
This is why solving this will be hard: the parent range reported by FCS includes the brace syntax inside of it, but we aren't also given inner/child ranges that tag that syntax.  The structure API overall doesn't really return ranges for keywords/syntax tokens like that that we could use to make it a 100% replacement for the textmate grammar, which is why we still have both.  It could definitely be expanded to do that, though!


Update java requirement to 16. (broken reference)

Fixes an README issue where JDK 8 was mentioned instead of 16 via 1.17.x/stable + 1.17.x/dev-sodium-0.4.0-experiments.

closing this as github broke the references.


define haltOnTimedout before using it

When I copied the sample code, it crashed because haltOnTimedout was undefined.  Changing the order fixed it.

In JavaScript, all function declarations are hoisted to the top and order does not matter in any way.
Trying to run the example as-is just results in bodyParser and then cookieParser not being defined, and defining them fixes it. If you like, please feel free to make a pull request fixing those issues :)


Weird "sshkeys" SSH public key validation error

I'm trying to create a VM with a cloud-init ssh key, but the server keeps on returning 500 SSH public key validation error. :confused:
It seems pretty weird, as the exact same key works fine when using qm on the server itself to create the VM.
The code in question for creating the VM:
vmProps := []proxmox.VirtualMachineOption{
	{Name: "name", Value: "test1"},
	{Name: "memory", Value: 1024 * 8},
	{Name: "cores", Value: 6},
	{Name: "cpu", Value: "host"},
	{Name: "net0", Value: "model=virtio,bridge=" + publicBridge + ",firewall=1"},
	{Name: "scsihw", Value: "virtio-scsi-single"},
	{Name: "virtio1", Value: "local-zfs:16,cache=" + cacheMode + ",discard=on,iothread=1"},
	{Name: "agent", Value: 1},
	{Name: "ostype", Value: "l26"},
	{Name: "localtime", Value: "0"},
	{Name: "ide0", Value: "local-zfs:cloudinit"},
	{Name: "ipconfig0", Value: "gw=<IP_ADDRESS>,ip=10.1.248." + strconv.Itoa(vmID) + "/16"},
	{Name: "sshkeys", Value: url.QueryEscape("/root/.ssh/id_rsa.pub")},
}
vmTask, err := node.NewVirtualMachine(ctx, vmID, vmProps...)
if err != nil {
	log.Fatal(err)
}

If I remove that last vmProps line (the sshkeys one), then the vm creation works.

Oh, the "url encoding problem" mention in the title is probably not correct now.
That was the error I was originally getting prior to doing url.QueryEscape() on the ssh key path:
2024/04/30 04:21:53 bad request: 400 Parameter verification failed. - {"sshkeys":"invalid format - invalid urlencoded string: /root/.ssh/id_rsa.pub\n"}

Now that the path is being escaped, it seems to get to the server which is now rejecting things.

Not sure if it's relevant, but the same error was showing up in a fork of Proxmox at one point: https://github.com/pimox/pimox7/issues/45

Interestingly, the above mentioned error in the other fork seems relevant here too.
If I comment out that same die "SSH public key validation error\n" if $@; line (line 1726 with modern Proxmox), then the ssh key is accepted and things seem happy:
# vi /usr/share/perl5/PVE
# systemctl restart pvedaemon   <-- so the edited Tools.pm gets loaded

Hmmm, the server might actually be wanting the actual text of the ssh key, rather than a path.
However, I'm not having much luck in figuring out what PVE calls "url encoding" as it doesn't seem to be any of the common URL encoding calls in Go. :frowning:
Example:
{Name: "sshkeys", Value: url.PathEscape("ssh-rsa AAAAB ...")}

Result:
2024/04/30 06:34:41 bad request: 400 Parameter verification failed. - {"sshkeys":"invalid format - invalid urlencoded string: ssh-rsa%20AAAAB ...

Also tried base64.URLEncoding.EncodeToString(), base64.StdEncoding.EncodeToString() and url.QueryEscape() without any improvement.
It feels like PVE may have it's own ideas about url encoding, and there might need to be a special purpose encoder created just for this one interaction with it. :wink:

Ahhh yep, got it somewhat figured out.  That sshkeys does need the whole ssh key as the value, and the problem does seem to be in how it's presently getting quoted.
Someone on the Proxmox forums had a similar issue (not via Go though) a Proxmox staff member gave a Python solution for doing the quoting:
https://forum.proxmox.com/threads/how-to-use-pvesh-set-vms-sshkeys.52570/#post-243381
urllib.quote(key, safe='')

That's a Python 2 version of things.  As Python 3 is where things are at these days, it's now:
$ python3
>>> import urllib.parse
>>> urllib.parse.quote(key, safe='')

Using that Python 3 snippet I was able to manually url encode an ssh key such that Proxmox accepts it:
$ python3
>>> import urllib.parse
>>> urllib.parse.quote("ssh-rsa AAAAB[...]", safe='')
'ssh-rsa%20AAAAB[...]

Copying that string into the Go vmProps and just passing it directly works, with the VM being created and the ssh key name showing up in the webUI the same way it does for qm:
{Name: "sshkeys", Value: "ssh-rsa%20AAAAB[...]}

yup and the docs say you can do multilple keys in one config just separate with a newline. glad you figured it out!

Any idea if there's a Go function call for doing the "url encoding" that Proxmox wants?

try this: https://pkg.go.dev/net/url#QueryEscape

Heh, that's literally one of my above examples of something that doesn't work. :wink:
Tried it again now, just in case... and nope, it's definitely not a winner:
 {"sshkeys":"invalid format - invalid urlencoded string: ssh-rsa+AAAAB (etc)

That's from calling it this way in my Go code:
{Name: "sshkeys", Value: url.QueryEscape("ssh-rsa AAAAB (etc)

https://github.com/proxmox/pve-common/blob/1a6005ad2377b6586e084b3840ac622752b666b8/src/PVE/JSONSchema.pm#L187
it appears to be failing this regex, check your output from your funcs to escape and find the right combintation

Thanks.  Saw that and might investigate that later on. :smile:

Facing this same issue - if Proxmox is going to even come close to VMWare on an enterprise level, or even SMB, this kind of stuff can't exist.  How has no one fixed this blatant UI issue - I have tried multiple forms of SSH keys generated from PuttyGen (including removing the Comment line as documentation says it isn't supported) and I cannot get this to work.
I'm not going to go editing my Proxmox - this should work out of the box - or at a minimum there should be a clear guide on how it should work (i.e. if the PuttyGen style SSH key doesn't work, then what does.)

Ahhh.  Sorry for not investigating this further.  After finding the lack of disk import functionality (#145) I've given up using the API until basic required functionality is present.


Automatically Populate New Visual Groups

Made it so creating a VisualGroup automatically includes a bunch of images (confidence > 1.5).  This works reasonably for adding single names.
I also added a way to add larger lists of names.  Ended up implementing it as a rake task.  It was able to create Alan Celestino's list of 1246 names in just under 12 minutes.

Coverage: 92.668% (-0.04%) from 92.713% when pulling 0d3335170b1958b09b23df5fbae62fd8db37e9b2 on ml-easy-add into 02a4938ddc99213b2a038820b6ae007a97b58971 on master.

The "test (push)" failure says:
Progress: |===ERROR Admin::BlockedIpsControllerTest#test_blocked_ips (10.08s)
Minitest::UnexpectedError:         Errno::ENOENT: No such file or directory @ rb_sysopen - /home/runner/work/mushroom-observer/mushroom-observer/config/blocked_ips.txt
app/classes/ip_stats.rb:204:in initialize'             app/classes/ip_stats.rb:204:in open'
app/classes/ip_stats.rb:204:in rewrite_file'             app/classes/ip_stats.rb:183:in rewrite_blocked_ips'
app/classes/ip_stats.rb:112:in remove_blocked_ips'             test/controllers/admin/blocked_ips_controller_test.rb:9:in test_blocked_ips'
========================================================grep: /home/runner/work/mushroom-observer/mushroom-observer/log/test.log: No such file or directory
=========|
I see we have gotten this error from time to time in the past.  Is this a symptom of something specific and known or is it an intermittent failure?

@mo-nathan That has been an intermittent failure. I think @JoeCohen or @pellaea know more about it.
I've never figured it out.

I don't recall, but it would seem easy enough simply to create an empty
file:
mo> touch config/blocked_ips.txt
Right?  Does that work?  Or is this the automated tester on github?  If so,
maybe we should have the setup script ensure the file exists?  Maybe it's
intermittent because most queries in controller tests will automatically
create it if it doesn't exist, but apparently there are at least some tests
which require it to exist before it has been automatically created in
another test.
On Mon, Jan 16, 2023 at 4:54 PM andrew nimmo @.***>
wrote:

@mo-nathan https://github.com/mo-nathan That has been an intermittent
failure. I think @JoeCohen https://github.com/JoeCohen or @pellaea
https://github.com/pellaea know more about it.
I've never figured it out.
—
Reply to this email directly, view it on GitHub
https://github.com/MushroomObserver/mushroom-observer/pull/1284#issuecomment-1384604587,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYTNNKF7Z53FMTGLPVRGQLWSW7QJANCNFSM6AAAAAAT4AHIKQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I don't recall seeing this. I don't know what it's about.
On Mon, Jan 16, 2023 at 3:33 PM Jason Hollinger @.***>
wrote:

I don't recall, but it would seem easy enough simply to create an empty
file:
mo> touch config/blocked_ips.txt
Right? Does that work? Or is this the automated tester on github? If so,
maybe we should have the setup script ensure the file exists? Maybe it's
intermittent because most queries in controller tests will automatically
create it if it doesn't exist, but apparently there are at least some tests
which require it to exist before it has been automatically created in
another test.
On Mon, Jan 16, 2023 at 4:54 PM andrew nimmo @.***>
wrote:

@mo-nathan https://github.com/mo-nathan That has been an intermittent
failure. I think @JoeCohen https://github.com/JoeCohen or @pellaea
https://github.com/pellaea know more about it.
I've never figured it out.
—
Reply to this email directly, view it on GitHub
<
https://github.com/MushroomObserver/mushroom-observer/pull/1284#issuecomment-1384604587
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAYTNNKF7Z53FMTGLPVRGQLWSW7QJANCNFSM6AAAAAAT4AHIKQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/MushroomObserver/mushroom-observer/pull/1284#issuecomment-1384671695,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAALDFF57FV6E5YX2EG7E3TWSXLE5ANCNFSM6AAAAAAT4AHIKQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I'm not going to sweat the blocked_ips.txt file thing then for this PR.  If/when it happens again, grabbing the seed for the tests should allow us to reproduce it.

Good idea!
On Tue, Jan 17, 2023 at 7:24 PM Nathan Wilson @.***>
wrote:

I'm not going to sweat the blocked_ips.txt file thing then for this PR.
If/when it happens again, grabbing the seed for the tests should allow us
to reproduce it.
—
Reply to this email directly, view it on GitHub
https://github.com/MushroomObserver/mushroom-observer/pull/1284#issuecomment-1386279326,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYTNNJJOSOHVPXF4ID2FJLWS4Z4DANCNFSM6AAAAAAT4AHIKQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Can BCNet cut out letters from a manuscript?

Hi.
I am very much a beginner, so please bear with me if I am not very technical or precise. (I'll do my best to be clear! 🙂 )
I'm working on a project where I want to cut out all individual letters from images of a long manuscript. One line of a page looks a lot like this:

I want to cut out each letter, with no background -- like this, for example:

I am wondering:
If I provided enough annotations for each letter, would BCNet be able to accomplish my goal? Or would you recommend some other route?

For this task, I think the object detection accuracy is critical. You need to provide bbox for each character and the masks, and then BCNet could segment it.

Okay. Thank you very much.


ffxiv_idarename.py generating a lot of errors with latest FFXIV version

Hello,
I am getting quite a few errors when I run this macro.  They are of the sort:
7FF67FB4E810: can't rename byte as 'vtbl_Client::UI::AddonTooltip' because this byte can't have a name (it is a tail byte).
7FF67FB675A8: can't rename byte as 'vtbl_Client::UI::AddonCharaSelectWorldServer' because this byte can't have a name (it is a tail byte).
7FF67FBB5F98: can't rename byte as 'vtbl_Client::UI::AddonWeeklyPuzzle' because this byte can't have a name (it is a tail byte).
7FF67FBBD2A0: can't rename byte as 'vtbl_Client::UI::AddonMJIRecipeNoteBook' because this byte can't have a name (it is a tail byte).
and
Error: Function at 0x7FF67EA5E730 had unexpected name "" during naming of Client::Game::UI::RecipeNote.CancelCrafting
Error: Function at 0x7FF67EA5F690 had unexpected name "" during naming of Client::Game::UI::RecipeNote.IsRecipeUnlocked
Error: Function at 0x7FF67EA5FC00 had unexpected name "" during naming of Client::Game::UI::RecipeNote.FirstRecipeIndex
Error: Function at 0x7FF67EA5FBC0 had unexpected name "" during naming of Client::Game::UI::RecipeNote.GetRecipeByIndex
Error: Function at 0x7FF67EA5FC40 had unexpected name "" during naming of Client::Game::UI::RecipeNote.GetSelectedRecipe
Error: Function at 0x7FF67EA607A0 had unexpected name "" during naming of Client::Game::UI::RecipeNote.Initialize
probably hundreds of them.  I did put the ida.cfg file in place.  Is there something else I must do to not get these errors?  Or is this normal?
Thanks.

make sure you are running the script in on the most recent version of the game
you always need to create a new idb for the new exe after a patch (also wait for the analysis finished before running any scripts)

I am using the most recent version of the script on the most recent very of the game - the 5.51 hotfix.  I deleted my existing idapro databases, started an analysis from scratch, and after the autoanalysis completed, I ran the subject script against the results of the static analysis (did not attach the debugger to a running ffxiv process), and still got all the errors. I even turned off the option that automatically applies lumina.  I am running the script using the "Script File" menu option.  I even uninstalled ida, reinstalled it, and repeated what I just described.  Attached is a file containing all the error messages.
issue.log
Is this not happening to anyone else?

yes you need to fix those yourself, the empty names are because the function at that address isn't disassembled and the wrong names are because they got a non-default label by the analyzer, OutdoorTerritory and RaptureAtkHistory errors are expected and can be ignored


MoveToAsync problem with accuracy

Hello, I work with PuppeteerSharp and face this issue, when I made MoveToAsync pointer moved not exactly to my coordinates, it made +-5% dispersion from my coordinates
For example I made this method on website https://www.selenium.dev/selenium/web/mouse_interaction.html which shows mouse position:
await cursor.MoveToAsync(478, 743);
and see that it moved not to 478, 743 but to 490, 750
Is it possible to fix this issue?
also same issue with await cursor.ClickAsync(478, 743); it moves pointer not to exactly these coordinates so make missclick

I've published a new version 0.3.0-alpha.1 to NuGet which hopefully fixed this issue (commit https://github.com/GerardSmit/GhostCursor/commit/abc47b46c27e5681c38d9446f449184aaec48b0a).
It's a quick and dirty solution for now. Can you check if this version fixes the problem for you?

Looks like doesnt work. Made as usual await cursor.MoveToAsync(478, 743); and faced exception:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.    at GhostCursor.PuppeteerSharp.PuppeteerBrowserBase.GetViewportAsync(CancellationToken token)    at GhostCursor.Cursor2.GetRandomPointAsync(BoundingBox boundingBox)
at GhostCursor.Cursor2.MoveToAsync(BoundingBox boundingBox, Nullable1 steps, Nullable1 moveSpeed, PositionType type, CancellationToken token)    at Program.Test(Int32 taskId, ProxyManager proxyManager) in C:\Users\user\source\repos\puppeteer\Program.cs:line 267    at Program.<>c__DisplayClass7_1.<<Main>b__0>d.MoveNext() in C:\Users\user\source\repos\puppeteer\Program.cs:line 179 --- End of stack trace from previous location ---    at Program.Main(String[] args) in C:\Users\user\source\repos\puppeteer\Program.cs:line 199    at Program.<Main>(String[] args)

Huh, that's weird. In another issue there was this problem as well (https://github.com/GerardSmit/GhostCursor/issues/1#issuecomment-1902254344) because the page wasn't initialized but I sadly can't reproduce this.
I made a unit test from this issue and it's passing. Do you have a small repo when this issue happens?
https://github.com/GerardSmit/GhostCursor/blob/abc47b46c27e5681c38d9446f449184aaec48b0a/tests/GhostCursor.PuppeteerSharp.Tests/CursorTests.cs#L65-L94

I understood. There is problem with DefaultViewport when connect to browser
If I set like this it works
 ViewPortOptions DefaultViewport = new ViewPortOptions();
 string ws = "ws://<IP_ADDRESS>:56344/devtools/browser/a756184a-820f-4b4f-8417-9d8119c13ad0";
 var browser = await Puppeteer.ConnectAsync(new ConnectOptions
 {
     BrowserWSEndpoint = ws,
     DefaultViewport = DefaultViewport
     //ProtocolTimeout = 40000
 });

But if I made defaultviewport null it doesnt work
 ViewPortOptions DefaultViewport = new ViewPortOptions();
DefaultViewport = (ViewPortOptions)null;
 string ws = "ws://<IP_ADDRESS>:56344/devtools/browser/a756184a-820f-4b4f-8417-9d8119c13ad0";
 var browser = await Puppeteer.ConnectAsync(new ConnectOptions
 {
     BrowserWSEndpoint = ws,
     DefaultViewport = DefaultViewport
     //ProtocolTimeout = 40000
 });

Thank you for fix

I see, thanks for the repo. I've made a change that falls back to a JavaScript implementation of getting the viewport (https://github.com/GerardSmit/GhostCursor/commit/f1e05cdfdfd2174cea795e29f6beb4859543a674). This has been published to NuGet with version 0.3.0-alpha.2.


Improve encapsulation power of juju_integration to avoid leaking implementation detail

Requirements
Let's say we have two apps to deploy,
resource "juju_application" "some_app" {
  name  = "some-app"
  model = local.model_name

  charm {
    name    = "my-charm"
    channel = var.channel
    base    =<EMAIL_ADDRESS>  }
  units  = 1
}

module "bundle" {
  source     = "git::https://github.com/canonical/bundle//terraform"
  model_name = local.model_name
  channel    = local.channel
}

To create a juju integration, we must provide the application Block Set verbatim:
resource "juju_integration" "some-app-bundle" {
  model = local.model_name

  application {
    name     = module.bundle.app_name
    endpoint = module.bundle.my_endpoint
  }

  application {
    name     = juju_application.some_app.app_name
    endpoint = "some-endpoint"
  }
}

Ideally, module.bundle would offer its side of an integration in its entirety, without the user needing to know the implementation detail of the underlying charms:
resource "juju_integration" "some-app-bundle" {
  model = local.model_name

  module.bundle.my_endpoint

  application {
    name     = juju_application.some_app.app_name
    endpoint = "some-endpoint"
  }
}

Afaict, this is not supported by terraform?
Should we adjust the juju_integration interface to improve encapsulation?

Urgency
It would save from a weird workaround.
Currently, the implementation of juju_integration forces us to leak implementation detail.
Notes & References
No response

@sed-i
I'd expect the following to work provided both apps have matching provided and required endpoint names as with juju integrate module.bundle.app_name juju_application.some_app.app_name:
resource "juju_integration" "some-app-bundle" {
  model = local.model_name

  application {
    name     = module.bundle.app_name
  }

  application {
    name     = juju_application.some_app.app_name
  }
}

Only if juju cannot disambiguate the endpoints should it be necessary to specify them. For the two example applications, is that the choice?
As to your suggestion of the application block being exported by the bundle module, that sounds like question for a terraform expert and not specific to the juju provider.  It has no control over how terraform interprets didn't input into the different resources.


added windows 11

after reading this article, i confirmed windows 11 is supported

Learn Build status updates of commit 562b7c4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows/security/threat-protection/security-policy-settings/network-access-do-not-allow-anonymous-enumeration-of-sam-accounts.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Need to improve tenant-conf schema descriptions of each field

Describe your problem(s)
Need to improve tenant-conf schema descriptions of each field

We are closing this as this feature is no longer required.


System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element actionOverrides

Getting this error while trying readMetadata('CustomObject', ). CustomObject class contains member of type MetadataService.ActionOverride[]:
public class CustomObject {
public MetadataService.ActionOverride[] actionOverrides;
...
}
'ActionOverride' class exists as well:
public class ActionOverride {
public String actionName;
public String comment;
public String content;
public String formFactor;
public Boolean skipRecordTypeSelect;
public String type_x;
private String[] actionName_type_info = new String[]{'actionName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'};
private String[] comment_type_info = new String[]{'comment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'};
private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'};
private String[] formFactor_type_info = new String[]{'formFactor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'};
private String[] skipRecordTypeSelect_type_info = new String[]{'skipRecordTypeSelect','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'};
private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'};
private String[] field_order_type_info = new String[]{'actionName','comment','content','formFactor','skipRecordTypeSelect','type_x'};
}
Any ideas why CustomObject cannot be read?

I am also getting the same were you able to resolve the same?

Hi, anyone getting this error yet?
I'm getting similar errors when trying to read any Metadata, I have no problem writing metadata, but cannot read.
Seems to be regarding with Metadata class hierarchy when deserializing the XML SOAP Response. It's like Salesforce cannot get the right class from the "type" attribute of the records response element
The following SOAP Response produce a Metadata object instead a CustomObject
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <soapenv:Body>       <readMetadataResponse>          <result>             <records xsi:type="CustomObject">                <fullName>Suelo__c</fullName>             </records>          </result>       </readMetadataResponse>    </soapenv:Body> </soapenv:Envelope>
This could be an explanation on why cannot find the class for any other element, it's because the Metadata class has not any other properties except fullName.

Hi, anyone getting this error yet?
I'm getting similar errors when trying to read any Metadata, I have no problem writing metadata, but cannot read.
Seems to be regarding with Metadata class hierarchy when deserializing the XML SOAP Response. It's like Salesforce cannot get the right class from the "type" attribute of the records response element
The following SOAP Response produce a Metadata object instead a CustomObject
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <readMetadataResponse> <result> <records xsi:type="CustomObject"> <fullName>Suelo__c</fullName> </records> </result> </readMetadataResponse> </soapenv:Body> </soapenv:Envelope>
This could be an explanation on why cannot find the class for any other element, it's because the Metadata class has not any other properties except fullName.

Answering my own comment, this because Salesforce Metadata API WSDL uses xsd:extension for all Metadata hierarchy and Wsdl2Apex does not support this WSDL feature.
My WA is to create a Copy of readMetadata method and related classes in order to read a concrete metadata type, of course, I will clone this method/classes as I need to read more metadata
 public MDAPISOAPClient.ReadResult readMetadata(String type_x, String[] fullNames) {
    MDAPISOAPClient.readMetadata_element request_x = new MDAPISOAPClient.readMetadata_element();
    request_x.type_x = type_x;
    request_x.fullNames = fullNames;
    MDAPISOAPClient.readMetadataResponse_element response_x;
    Map<String, MDAPISOAPClient.readMetadataResponse_element> response_map_x = new Map<String, MDAPISOAPClient.readMetadataResponse_element>();
    response_map_x.put('response_x', response_x);
    WebServiceCallout.invoke(this, request_x, response_map_x, new List<String>{ endpoint_x, '', NAMESPACE, 'readMetadata', NAMESPACE, 'readMetadataResponse', 'MDAPISOAPClient.readMetadataResponse_element' });
    response_x = response_map_x.get('response_x');
    return response_x.result;
}
public MDAPISOAPClient.ReadResultLayout readMetadataLayout(String type_x, String[] fullNames) {
    MDAPISOAPClient.readMetadata_element request_x = new MDAPISOAPClient.readMetadata_element();
    request_x.type_x = type_x;
    request_x.fullNames = fullNames;
    MDAPISOAPClient.readMetadataLayoutResponse_element response_x;
    Map<String, MDAPISOAPClient.readMetadataLayoutResponse_element> response_map_x = new Map<String, MDAPISOAPClient.readMetadataLayoutResponse_element>();
    response_map_x.put('response_x', response_x);
    WebServiceCallout.invoke(this, request_x, response_map_x, new List<String>{ endpoint_x, '', NAMESPACE, 'readMetadata', NAMESPACE, 'readMetadataResponse', 'MDAPISOAPClient.readMetadataLayoutResponse_element' });
    response_x = response_map_x.get('response_x');
    return response_x.result;
}

public class readMetadataResponse_element {
    public MDAPISOAPClient.ReadResult result;
    private String[] result_type_info = buildTypeInfo('result', '1', '1', 'false');
    private String[] apex_schema_type_info = APEX_TYPE_INFO;
    private String[] field_order_type_info = new List<String>{ 'result' };
}
public class readMetadataLayoutResponse_element {
    public MDAPISOAPClient.ReadResultLayout result;
    private String[] result_type_info = buildTypeInfo('result', '1', '1', 'false');
    private String[] apex_schema_type_info = APEX_TYPE_INFO;
    private String[] field_order_type_info = new List<String>{ 'result' };
}
public class ReadResult {
    public MDAPISOAPClient.Metadata[] records;
    private String[] records_type_info = buildTypeInfo('records', '0', '-1', 'false');
    private String[] apex_schema_type_info = APEX_TYPE_INFO;
    private String[] field_order_type_info = new List<String>{ 'records' };
}
public class ReadResultLayout {
    public MDAPISOAPClient.Layout[] records;
    private String[] records_type_info = buildTypeInfo('records', '0', '-1', 'false');
    private String[] apex_schema_type_info = APEX_TYPE_INFO;
    private String[] field_order_type_info = new List<String>{ 'records' };
}


windows client thinks public folder is a user

I hadn't tried to access public/public but I kept getting this prompt

tried addessing the folder then dismissing, prompt still returns
my lo g id: aa76f8915b03b546cc5ba31c

I can only speculate that you (or some application on your behalf) may have tried to go into public/public at some point, maybe a long time ago, and now it's in your explorer favorites or something.
A simple way to get around this is to follow the public user.  You can do this locally, if you don't want to follow the user publicly, by doing keybase follow -l public from the command prompt.

Note that something tried to access "public/public/dirething/sign.ps1" at some point today.  From your log:
2016-11-19T12:17:09.305723 - [DEBU kbfs fs.go:273] d60c open: []string{"public", "public", "dirething", "sign.ps1"} [tags:DID=DUX8DwDj0pMHpVX4Enj2eg]

Maybe just a typo?

I was able to narrow down from that item, I removed everything from the powershell script until I got to:
k:
cd \
pwd
cd k:\public\dirething
pwd

not sure how that things there is an extra public, but I can remove the folder, and the folder stays removed until I run this script in powershell ide
not the end of the world, but strange


API reference is too short which will discourage the users.

From @GoogleCodeExporter on May 31, 2015 11:28
I propose that at least the exact return values should be described.
If there is an example for every API, it will be better.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 20 Jan 2011 at 3:59
Copied from original issue: damonkohler/android-scripting#508

From @GoogleCodeExporter on May 31, 2015 11:28
Work has begun on improved help.

Feel free to contribute.

Original comment by rjmatthews62 on 5 Mar 2011 at 2:09

Changed state: Started

From @GoogleCodeExporter on May 31, 2015 11:28
Original comment by<EMAIL_ADDRESS>on 23 Mar 2012 at 2:56

Added labels: LowHangingFruit


missing edge constraints in graph tables

Issue Type: Bug

create graph tables
create Edge contraints
https://docs.microsoft.com/en-us/sql/relational-databases/tables/graph-edge-constraints?view=sql-server-ver15
try to find these edge constraints in ADS. The are not listed under "constraints" and they are not included in the code for the edge table

Azure Data Studio version: azuredatastudio 1.27.0 (765c7064d46253d88393e0e1ff78874b6fe8fa64, 2021-03-16T21:24:59.168Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (4 x 2904)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.87GB (11.68GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (27)

Extension
Author (truncated)
Version

deletedb
Ale
0.0.3

tsqlchecker
Dan
0.0.1

demo-mode
dre
1.1.0

sql-server-diagnostic-book
ema
0.1.0

qpi
joc
0.1.6

newdatabase
kev
1.0.0

admin-pack
Mic
0.0.2

admin-tool-ext-win
Mic
0.0.2

agent
Mic
0.48.0

cms
Mic
0.8.0

dacpac
Mic
1.8.0

import
Mic
1.3.0

machine-learning
Mic
0.8.0

powershell
ms-
2020.4.0

profiler
Mic
0.11.0

query-history
Mic
0.1.0

schema-compare
Mic
1.9.1

server-report
Mic
0.2.3

sql-assessment
Mic
0.6.1

sql-database-projects
Mic
0.7.1

schema-visualization
R0t
0.3.0

sql-prompt
Red
0.2.6

sql-search
Red
0.4.0

simple-data-scripter
sea
0.1.3

code-settings-sync
Sha
3.4.3

vscodeintellicode
Vis
1.2.1

poor-sql-formatter
WSR
0.1.0

Could you explain more what you mean by they are not included in the code for the edge table? Do you mean when you script out the table they are not included?
Does this work as expected in SSMS?

they are not included in the code for the edge table

The code for the edge constraint is not available in any way. For ADS it is like they don't exist.

It works a bit better in SSMS, but also with issues. That's why I tried to use ADS.

In SSMS they are availabe under "constraints"
The issue in SSMS: schema names are missing in the generated scripts, so the scripts generated in SSMS are wrong. But they can be adapted to make them valid.

https://feedback.azure.com/forums/908035-sql-server/suggestions/43153128-ssms-creates-wrong-code-for-edge-constraints-sche


MINOR: Add validation to the set_resource_config method in GrpcPlacementService and fill in the test case

What type of enhancement is this?
Refactor
What does the enhancement do?
Add validation to the set_resource_config method in GrpcPlacementService and fill in the test case.
Tips:
you can implement the ValidateExt trait on SetResourceConfigRequest, then invoke validate_ext function to achieve the validation functionality.
Tips:

you can locate the ValidateExt trait in the file: src\placement-center\src\server\grpc\validate.rs
you need to add validation to the set_resource_config method in this file:  src\placement-center\src\server\grpc\service_placement.rs
you need to fill in the test case in this file: src\grpc-clients\tests\placement_test.rs

rferences:

https://github.com/robustmq/robustmq/pull/526
https://github.com/robustmq/robustmq/issues/509

Implementation challenges
No response

mark


[TASK] Add currentContentObject to typo3.requestGetAttributeMapping

The current content object is now available as request attribute - see https://forge.typo3.org/issues/100623
This change updates typo3.requestGetAttributeMapping, so currentContentObject can be resolved

Thank you!


Secrets accessible in plain text in dhcp-server task definition

Describe the bug.
This ticket to be run as a POC - we may need to create more tickets for rolling this out to other repos
Currently secrets are stored in plain text in the ECS task definition, these secrets should be moved into secrets manager and referenced as a secrets instead, so it does not get populated as plain text.
https://github.com/ministryofjustice/staff-device-dns-dhcp-infrastructure/blob/b16dd296ba6c6b4a8ccf0cf6db5557d17d88ec9c/modules/dhcp/ecs_task_definition_api.tf#L32
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html
E.G:
"secrets": [     {         "name": "environment_variable_name",         "valueFrom": "arn:aws:ssm:region:aws_account_id:parameter/parameter_name"     } ]
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/secrets-envvar-secrets-manager.html
To Reproduce
No response
Expected Behaviour
This should be pulled from secrets manager instead.

This has not been fixed. ZenHub had closed the ticket. It is now in Jira: https://dsdmoj.atlassian.net/browse/ND-173


fix spelling mistake in file init.sh

Proposing a very small change for a spelling mistake in /bin/init.sh;
And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[ ] Configuration Infrastructure
[ ] Docs
[x] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Hi @VariableExp0rt. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@VariableExp0rt: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
eb2bc11091ded7afa59f3bb8b954ec6253a8243b
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@googlebot I signed it!


[Question] About the reconnection

Hi @sijms and folks,
I wondering, when my services in runtime, in particular the OracleDB restart, how can I reconnect to the DB. Do you have an examples or something else related to my question?

use urlOptions
urlOptions := map[string]string{
	"FAILOVER": "5", // the number represent how many time driver will try to reconnect before fail
	"TRACE FILE": "trace.log",
}

This will be perform when I inject the Oracle connection into other package in my service right?

Sample code I try with your provide options
func (s staffRepository) List(ctx context.Context) ([]domain.Staff, error) {
	rows, err := s.oracleDB.Query("SELECT ID, NAME, TEAM_NAME, ORGANIZATION, TITLE, ONBOARD_DATE, ACTIVE, CREATED_AT, MODIFIED_AT FROM " +
		_staffTableName + " WHERE ACTIVE = 1 ORDER BY CREATED_AT DESC")
	if err != nil {
		fmt.Println("rows query: ", err)
		return nil, err
	}
	defer func() {
		err = rows.Close()
		if err != nil {
			fmt.Println("Can't close dataset: ", err)
		}
	}()
}

Error when I restart the DB for reproduce my situation
rows query:  EOF
rows query:  ORA-06413: Connection not open
rows query:  ORA-06413: Connection not open
rows query:  ORA-06413: Connection not open
rows query:  ORA-06413: Connection not open

I am working on it

I fix it in v2.6.9
what I make as follow
check for 2 errors io.EOF and syscall.EPIPE before the following operation
1- query  ==> reconnect and then requery
2- fetch. ==> reconnect and return ora-03135
3- exec. ==>  reconnect and return ora-03135
4- ping. ==>  reconnect and return ora-03135
5- commit ==> reconnect and return ora-03135
6- rollback ==>  reconnect and return ora-03135
7- ref_cursor query ==> reconnect and then requery
would you please test and give me your feedback

Oke @sijms, I will do this in a next day

ok no problem

would you share trace.log file

log file should contain a line related to this
tracer.Print("reconnect trial #", trial)

also confirm that you don't close the connection when you receive an error

also confirm that you don't close the connection when you receive an error

Sure

would you share trace.log file

https://github.com/thehaung/golang-oracle-example/blob/master/trace.log
Here is my log file and my repo I am working on @sijms

i see the log file
you reach up to 10 reconnect trial
after that return connection refuse

know i understand your issue
you need to add new url option "RETRYTIME": 10 so there will be a sufficient time for oracle server to restarted

"RETRYTIME": 10

The 10 is ms or what? I trying but this does not work!

still not added yet I will add it and it will represent the time between each reconnection trial so server has enough time to startup

fixed in v2.6.11

Oke I will try this, in a next day,  If this really fixed, I'll create PR for this Example


[Feat]: Add OpenLIT as a telemetry option

Hi Team, I am one of the maintainers of OpenLIT and we support Observability for LLM apps, It is all OpenTelemetry-native so the traces and metrics can be sent to any platform like Grafana or any OSS OTel tools
Hence raising a PR to add OpenLIT as an option and send the traces and metrics to any Opentelemetry backend.
Let me know how I can help and get this PR merge ready

@patcher9 thanks for the PR! It looks like the CI failed. Do you mind checking what went wrong?

any luck @patcher9 ?

@patcher9 we use python = ">=3.11,<3.13", what are you using

@patcher9 it looks like some openlit dependencies are now stale and they're causing conflicts since some of our dependencies require newer ones - https://github.com/openlit/openlit/blob/main/sdk/python/pyproject.toml#L25
% poetry lock
Updating dependencies
Resolving dependencies... (5.0s)

Because no versions of anthropic match >0.41.0,<0.42.0 || >0.42.0
 and anthropic (0.41.0) depends on anthropic (0.41.0), anthropic (>=0.41.0,<0.42.0 || >0.42.0) requires anthropic (0.41.0).
And because anthropic (0.42.0) depends on anthropic (0.42.0), anthropic (>=0.41.0) requires anthropic (0.41.0 || 0.42.0).
Because no versions of openlit match >1.33.0,<2.0.0
 and openlit (1.33.0) depends on anthropic (>=0.21.0,<0.22.0), openlit (>=1.33.0,<2.0.0) requires anthropic (>=0.21.0,<0.22.0).
Thus, openlit (>=1.33.0,<2.0.0) is incompatible with anthropic (>=0.41.0).
And because llama-index-llms-anthropic (0.6.3) depends on anthropic (>=0.41.0), openlit (>=1.33.0,<2.0.0) is incompatible with llama-index-llms-anthropic (0.6.3).
So, because swarmzero depends on both llama-index-llms-anthropic (0.6.3) and openlit (^1.33.0), version solving failed.

The error is a dependency conflict between openlit and llama-index-llms-anthropic. Here's the breakdown:

llama-index-llms-anthropic requires anthropic >= 0.41.0
openlit requires anthropic >= 0.21.0, < 0.22.0

@patcher9 i suggest adding the poetry.lock file to the PR

Ok it's passed that stage now @patcher9. Now there's a failing test. Can you try running the tests locally first:

cd tests
poetry run pytest (or just pytest if you're not in a poetry environment)

I'm assuming you may need to update the llama-index-llms- anthropic library as well.

Fixed in #19
Should be good now @patcher9. Thanks for contributing!


@Kojoley
Dear Nikita, could you help with B2 issue (already reported in https://github.com/boostorg/build/issues/724)?
Error log:
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\targets.jam:609: in start-building from module targets
error: Recursion in main target references
error: the following target are being built currently:
error: ../build/boost_nowide /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_defaulted_functions /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_noexcept /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_rvalue_references /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_static_assert /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/config/cxx11_moveable_fstreams /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/config/lfs_support /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/config/attribute_init_priority /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_defaulted_functions
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\targets.jam:776: in<EMAIL_ADDRESS>from module object(main-target)@1829
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\targets.jam:934: in targets.generate-from-reference from module targets
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\configure.jam:355: in builds-raw from module configure
...

@Kojoley
Dear Nikita, could you help with B2 issue (already reported in boostorg/build#724)?
Error log:
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\targets.jam:609: in start-building from module targets
error: Recursion in main target references
error: the following target are being built currently:
error: ../build/boost_nowide /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_defaulted_functions /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_noexcept /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_rvalue_references /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_static_assert /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/config/cxx11_moveable_fstreams /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/config/lfs_support /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/config/attribute_init_priority /D:/libs/yurybura/vcpkg/buildtrees/boost-nowide/src/ost-1.77.0-2944b29e72.clean/build/config/checks/cxx11_defaulted_functions
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\targets.jam:776: in<EMAIL_ADDRESS>from module object(main-target)@1829
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\targets.jam:934: in targets.generate-from-reference from module targets
D:/libs/yurybura/vcpkg/installed/x64-windows/tools/boost-build/src/build\configure.jam:355: in builds-raw from module configure
...

I do not think it is a B2 issue. I bet the problem is in the destination path of this: https://github.com/microsoft/vcpkg/blob/63aa65e65b9d2c08772ea15d25fb8fdb0d32e557/scripts/boost/post-source-stubs/nowide.cmake#L6
B2 project requirements are applied to every subproject, and vcpkg puts Config code inside Nowide what creates a recursive cycle -- Config requirements get Nowide requirements what leads to Config targets require Config targets.
Ideally, vcpkg should just remove the hack. Was the use case lead to this hack reported to the Boost dev mail list to find a better solution? Even if it was, it would not hurt to remind that the problem still exists.

@Kojoley Thank you for the answer. I agree with you, that this issue is related to copying of configs. But before v1.76.0 everything worked fine. The main problem here is that build/Jamfile.v2 imports checks from non exist relative path:
import ../../config/checks/config : requires ;

Let me think how to fix this problem without copying.

@Kojoley Thank you for the answer. I agree with you, that this issue is related to copying of configs. But before v1.76.0 everything worked fine.

Working before does not imply vcpkg was not doing something wrong, it means that B2 did not detect the issue before.

The main problem here is that build/Jamfile.v2 imports checks from non exist relative path:
import ../../config/checks/config : requires ;

Boost become modular but its libraries are still not standalone, they expect to be a part of Boost.

Let me think how to fix this problem without copying.

I have no idea how vcpkg is building Boost, so I do not know.

Maybe we can simply remove the checks or use the boost build version 1.75.

@PhoebeHui @ras0219-msft @BillyONeal Please start review. Thanks!

I have double checked:

[ ] boost-regex[icu] with x64-windows and x64-linux test pass
[ ] boost-locale[icu] with x64-windows and x64-linux test pass
[ ] wt: all  features with x64-window test pass
[ ] Boost-fiber/boost-thread test pass when build with release only, which used to test the changes in ports/boost-modular-build-helper/Jamroot.jam.
[ ] The version of boost-build/boost-uninstall/boost-vcpkg-helpers has been updated
[ ] Scripts/boost/generate-ports.ps1, the changes need other members further review.

cc @cenit @autoantwort

Why was qwtw added to the baseline?

Why was qwtw added to the baseline?

This lib has a build problem. I have no idea how to fix this. I cannot update this library because newer releases of this project have lower versions numbers.. As a result, I reported this issue in the original repository https://github.com/ig-or/qwtw/issues/2 and added it to the baseline.

is this working in single-config triplets? in #15983 i had to do some fixes to boost to make it work in those triplets....

is this working in single-config triplets? in #15983 i had to do some fixes to boost to make it work in those triplets....

I haven't tested this config. I think it may work. Let me know steps to test it.

is this working in single-config triplets? in #15983 i had to do some fixes to boost to make it work in those triplets....

I haven't tested this config. I think it may work. Let me know steps to test it.

Add
set(VCPKG_BUILD_TYPE “release”)

to a triplet (a new one or an existing one) and then build boost with that triplet. Please also see the above PR to see what i had to modify to the jam build script

is this working in single-config triplets? in #15983 i had to do some fixes to boost to make it work in those triplets....

I haven't tested this config. I think it may work. Let me know steps to test it.

Add
set(VCPKG_BUILD_TYPE “release”)

to a triplet (a new one or an existing one) and then build boost with that triplet. Please also see the above PR to see what i had to modify to the jam build script

I've just tested custom triplet x64-windows-release. Boost works like expected.

Yes, I have tested those changes with x64-linux-release, all built successfully.

Thanks guys, just to chip in I've tested this PR and it works fine for me with boost::asio and boost::beast @ 1.77.0 👍🏼


while playing any episode when press back button and exit of application and going to it again you will have same exceptions

Hi Ben ,I hope you are well.
while playing any episode when press back button and exit of application and going to it again you will have same exceptions
that it make very problem while using app
To Reproduce
Steps to reproduce the behavior:

play any episode
Click on back button and exit of application
and going to app again
you will have very exception

it is a image of exceptions

Thanks for reporting this issue @mohammad-soltani77. A few questions:

When you backed out using the back button was the episode playing, paused or stopped?
Does this happen every time you exit via the back button or only sometimes?
What version of Android are you running on?

Thanks,
Ben.

@amugofjava
if episode was played from net(feed) sometimes that you press back button and exit of app and going to it again ,episode will not stop or pause but miniPlayer will be blank and you will get very exceptions
android version may phone is 8.0.0
here is a video of what I said that I put in dropbox:
https://www.dropbox.com/s/mlymfznrr4hx5px/anytime.mp4?dl=0

Thanks for the video @mohammad-soltani77. I can now recreate the issues. This back button is proving to be a source of issues.

Do you know where the problem comes from?
because when episode was played from download list it is fine(don't have exception and miniPlayer don't be blank ).

thanks Ben for answer giving me.
I hope this problem will be solved as soon as possible

This should now be resolved @mohammad-soltani77. Please let me know if it still errors for you. Thanks.

Hi @amugofjava there are still exceptions when you play a episode will get exception.
it is a image of this exception

and previous problem (while playing any episode  when press back button and exit of application and going to it again you will get some exceptions) is still (but miniplayer don't blank)
it is a image of this exception

Hi,
I did push an update a little after closing this issue as I found a problem, and I've just pushed another minor improvement. Can you please try again and see if you still get this error? Thanks.

this problem is still (while playing any episode when press back button and exit of application and going to it again you will get some exceptions)
you will get previous exception

I'm not sure why this is happening just yet. For now I have wrapped the offending code with a null check to see if that improves things for you. I'll spend some time over the weekend looking into this further.

thank you
best regard

Hi @mohammad-soltani77,
I have pushed several updates to master including moving to Flutter 2. This appears to be fixed, but are you able to test again and see if it's fixed for you? Thanks.

Hi @amugofjava
it is solved (previous problem )
but when you are playing  a episode but when this has not been played if you close it with Miniplayer this will have exception.
here is a image of this exception


Using asNavFor and slideCount <= slidesToShow

When using asNavFor and slideCount <= slidesToShow focusOnSelect no longer works as expected.
Removal if these lines fixes it, but I'm unsure if it will have any other side effects.
https://github.com/kenwheeler/slick/blob/master/slick/slick.js#L1427-L1429

@kenwheeler , Many thanks for the slider.
Can anyone please check https://jsfiddle.net/link2pk/00ywqbjL/2/ why it is not working here?
Thanks


Fix patching

close #45

Closing as per https://github.com/paritytech/pipeline-scripts/issues/45#issuecomment-1153283496


External Source Entry ID should be more flexible?

Describe the bug
to obtain an entry value (single entry), you should provide an entry id, like:
GET /api/integration/externalsources/<:source-name>/entryValues/<:entry-id>

to me that entry id could be any alphanumeric string, but can also be an URL, URN or URI (something that univocally differentiates that entry within the source context). The issue it's that you can't define/use an entry-id that has/uses slashes (/).
To Reproduce
Currently, to obtain an orcid source single entry, the endpoint is:
/api/integration/externalsources/orcid/entryValues/0000-0002-4271-0436

it was defined 0000-0002-4271-0436 as the entry id. But to understand the issue, imagine that your source uses URLs like https://orcid.org/0000-0002-4271-0436, then your endpoint would be:
/api/integration/externalsources/orcid/entryValues/https://orcid.org/0000-0002-4271-0436

but when this URL is parsed, it won't be mapped into any controller, doesn't know what to do. And an info message is posted to log:
2021-09-15 12:55:34,544 INFO  unknown b039d651-6eee-4947-a91b-49b07814aa91 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/integration/externalsources/orcid/entryValues/https:/orcid.org/0000-0002-4271-0436] originated from unknown

You can also simulate encoding the https://orcid.org/0000-0002-4271-0436 URL.
/api/integration/externalsources/orcid/entryValues/https%3A%2F%2Forcid.org%2F0000-0002-4271-0436

but you will get an 400 error
HTTP Status 400 – Bad Request

Type Status Report

Message Invalid URI: noSlash

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Apache Tomcat/9.0.30

You can try a double encoding. Then your URL would be: https%253A%252F%252Forcid.org%252F0000-0002-4271-0436
/api/integration/externalsources/orcid/entryValues/https%253A%252F%252Forcid.org%252F0000-0002-4271-0436

and if you try to execute it, you will have a spring security exception for trying to use %25.
2021-09-15 13:18:59,020 ERROR unknown unknown org.springframework.boot.web.servlet.support.ErrorPageFilter @ Forwarding to error page from request [/api/integration/externalsources/orcid/entryValues/https%3A%2F%2Forcid.org%2F0000-0002-4271-0436] due to exception [The request was rejected because the URL contained a potentially malicious String "%25"]
org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL contained a potentially malicious String "%25"
        at org.springframework.security.web.firewall.StrictHttpFirewall.rejectedBlacklistedUrls(StrictHttpFirewall.java:369) ~[spring-security-web-5.2.2.RELEASE.jar:5.2.2.RELEASE]
        at org.springframework.security.web.firewall.StrictHttpFirewall.getFirewalledRequest(StrictHttpFirewall.java:336) ~[spring-security-web-5.2.2.RELEASE.jar:5.2.2.RELEASE]
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:194) ~[spring-security-web-5.2.2.RELEASE.jar:5.2.2.RELEASE]
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.2.2.RELEASE.jar:5.2.2.RELEASE]
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) ~[spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) ~[spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:9.0.30]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.30]
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:9.0.30]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.30]
        at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:128) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
        at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
        at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:103) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:121) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.30]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.30]
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.30]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.30]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103) [spring-web-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.30]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.30]
        at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71) [log4j-web-2.13.3.jar:2.13.3]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.30]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.30]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) [catalina.jar:9.0.30]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [catalina.jar:9.0.30]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) [catalina.jar:9.0.30]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [catalina.jar:9.0.30]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:9.0.30]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) [catalina.jar:9.0.30]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [catalina.jar:9.0.30]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [catalina.jar:9.0.30]
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-coyote.jar:9.0.30]
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote.jar:9.0.30]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) [tomcat-coyote.jar:9.0.30]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1598) [tomcat-coyote.jar:9.0.30]
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.30]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:9.0.30]
        at java.lang.Thread.run(Thread.java:829) [?:?]

Expected behavior
I expected for entry-id to be more loose and flexible. And have external sources methods supporting string URL encoding in order to escape these kind of errors.
Related work
https://github.com/DSpace/DSpace/pull/3365

I think a possible solution for it could be base64 encoding and decoding when setting and getting IDs
public class ExternalDataObject {

    /**
     * Generic setter for the ID
     * @param id    The id to be set
     */
    public void setId(String id) {
        this.id = Base64.getEncoder().encodeToString(id.getBytes());
    }

    /**
     * Generic getter for the ID
     * @return  The id
     */
    public String getId() {
        return new String(Base64.getDecoder().decode(id));
    }

@paulo-graca : I definitely understand how this might be an improvement conceptually.  However, do you have any examples of where an entry ID would often not be an alphanumeric string?
The reason I ask is that, in each External Source Provider instance, we get to essentially "choose" what to return as the Entry ID (as long as we know it's a unique way to lookup that Entry later with the same provider).  So, if a specific External Source Provider returned a full URL as the ID (like "https://orcid.org/0000-0002-4271-0436"), we could choose a few options:

We could strip down the URL to something unique (in this case we know this is an ORCID and can transform it into "0000-0002-4271-0436").
Or, as you noted, we could choose to Base-64 encode that in that Provider instance

My concern here is that I'm not sure whether we need to base-64 encode all IDs from all External Sources at all times (which may not be necessary, unless we find this is a common issue across all providers).   If we find only a few providers return IDs which are not alphanumeric, then we can base-64 encode them in the provider code itself.

I choose to use the ORCID example to better explain the error. A real occurrence of this issue it's with OpenAIRE project identifier using OpenAIRE 3.0 Guidelines - https://guidelines.openaire.eu/en/latest/literature/field_projectid.html or with any other identifier that needs to be escaped from the URL.
I found this issue when developing OpenAIRE tests and didn't understand why didn't fail earlier at the frontend. Until I realize that the angular inferface wasn't requesting the /api/integration/externalsources/<source>/entryValues/<entry-id> endpoint.
My request URL would be something like:
/api/integration/externalsources/openaireFunder/entryValues/info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work/WorkAble

the entry-id it's only used in the scope of external sources requests, changing it, ensuring that requesting the detail page from the source is performed the same way, doesn't affect the functionality and ensures we can have any kind of entry-id.
To fix my issue I choose to use base64 encoding at my set id level implementation, but I think using it sitewide, every implementation would benefit from it. This change would not have any implication on the Angular side.


0.8.2: Unable to scroll tableview neither to top nor button nor to specific row

Frank version (gem):  0.8.2
I have the following step definition
When /^I scroll details to bottom$/ do
tables_scrolled = frankly_map( "tableView", "scrollToBottom", "tag" )
puts tables_scrolled
end
The problem is, nothing happens, it just tells me it was successful even tough I can't see
Anyone figured out how to to do this?
Thanks!

Looks like you found a bug, which should be fixed in the 0.8.3 gem I just pushed. Can you upgrade the frank server code to 0.8.3 and try again? If you are still having issue please let me know.
NOTE:
to upgrade the server, you'll need to do a gem update frank-cucumber, followed by running frank-skeleton update-server in your project directory to update the frank server static library itself.

Hi
I updated my local gem to 0.8.3:

Christophs-MacBook-Pro:Frank christoph$ gem list --local | grep "frank-cucumber"
frank-cucumber (0.8.3)

And then I executed frank-skeleton update-server as told, but my git repository thinks nothing has changed (which is a bit strange right, at least the "libFrank.a" should change right?
Anyway, I ran the cucumber test again, but still no scrolling tables.
I think the weirdest part here is that git doesn't see any changes on the frank stuff, even tough I did run the update-server command.
Cheers,
Christoph

Hi Pete
It works now. Thank you very much for your support. I'll let you know as soon as I come up with something else :)
Regards,
Christoph


Issue navigator shows "Update to recommended settings" after updating Xcode to version 14.3

After updating Xcode to version 14.3, I noticed that the issue navigator shows an issue with the message "Update to recommended settings". When I click on the details of this issue, I see two sections: "Build settings" and "Project settings".
"Build Settings"

Target 'Designable' - Enable Module Verifier
Enabling the Apple Clang Module Verifier is recommended for all targets that define clang modules.
"Project Settings
Enable Parallelization in Command Line Builds Using '-target'
Enable this project setting to allow the build system to build independent targets from this project in parallel when using the '-target' option of 'xcodebuild'.

Could you please provide any guidance on how to resolve this issue?

Checking the "Parallelize build for command-line builds" checkbox sets BuildIndependentTargetsInParallel to YES in the Xcode project file. That might be helpful to anyone working on a PR.

I was able to suppress the warning by defining the project attributes for both BuildIndependentTargetsInParallel and the XCode version (LastUpgradeCheck).
attributes:
  LastUpgradeCheck: "1430"
  BuildIndependentTargetsInParallel: true

In my case, it has been solved by adding the following lines: 🤷🏻♂
attributes:
  LastUpgradeCheck: "1430"

Should be resolved in 2.36.0


New package: MinnowIT.Foldr version 3.1.0

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:
(Automated response - build 894.)

Automatic Validation ended with:
(Automated response - build 895.)


⚠ Bofrost.be has degraded performance

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

HTTP code: 200
Response time: 1319 ms

Resolved: Bofrost.be performance has improved in 133c179 after 6 minutes.


Update Documentation

Rendered: https://lapp0.github.io/outlines/quickstart/
Changes

Create model.md documentation with feature matrix
Update quickstart.md so its more concise, and links to relevant reference/generation/index.md and reference/models/index.md documentation pages. Moves most structured generation examples to reference/generation/index.md
Include structured_generation_explanation.md which details automata construction and logits processing.
Use phi-3-mini instead of mistral in modified pages because it doesn't require an access token and is a more performant model for its size.

Fixes

Fixes https://github.com/outlines-dev/outlines/issues/675
Fixes https://github.com/outlines-dev/outlines/issues/477
Fixes https://github.com/outlines-dev/outlines/issues/1007

Help

Add Remis ai.engineer talk: Not aware of a link with corrected audio?

Thanks for the doc update! Two comments:

We can remove Mistral-7B from the README as well. I also saw it in a couple of places in the rendered doc.
For the talk we'll have to do with the current video for now.

Updated docs

added Remi's AI Engineer World’s Fair Presentation
removed mistralai/Mistral-7B-* everywhere
kept documentation which uses quants, e.g. TheBloke/Mistral-7B-Instruct-v0.2-GPTQ
kept external library guides in cookbook using mistral, e.g.

docs/cookbook/simtom.md:MODEL_NAME = "mistral-community/Mistral-7B-Instruct-v0.3"

We need to fix the merge conflict and then it should be ready to merge.


Support token api with not Authentication header handling

Some apis do not support Authorization header. There is no way to switch to parameter approach through configuration. This parameter will make it possible.

Thanks for the patch - note I had to set this new property to 'true' by default - to preserve the original filter behaviour with respect to how it authenticates when acquiring the token


How is the entity linking performance calculated?

Hi,
I wonder how is the entity linking performance (the linker based on AQQU) calculated?
Since the ground-truth entities or the predicted entities could be empty, how does this calculation handle these situations?
Thanks for your reply.

Hi,
For my el results evaluation, you can refer to the code snippet below.
correct = 0
predict = 0
total_entities = 0
acc = 0
results_object = {}
for item in tqdm(data):
    question = item['question']
    golden_entities = set()
    for node in item['graph_query']['nodes']:
        if node['node_type'] == 'entity' and ("implicit" not in node or not node["implicit"]):
            mid = node['id']
            golden_entities.add(mid)

    answers = set()
    for a in item['answer']:
        answers.add(a['answer_argument'])

    total_entities += len(golden_entities)

    el_result = entity_linker.identify_entities(item['question'])
    results_object[item['qid']] = {}
    for el in el_result:
        if el.mention in results_object[item['qid']]:
            results_object[item['qid']][el.mention].append(el.entity.id)
        else:
            results_object[item['qid']][el.mention] = [el.entity.id]

    predict += len(el_result)
    if len(el_result) > 5:
        print(item['question'])
    g_count = 0
    a_count = 0
    predict_entities = set()
    for el in el_result:
        predict_entities.add(el.entity.id)
        if el.entity.id in golden_entities:
            correct += 1
            g_count += 1
        if el.entity.id in answers:
            a_count += 1

    if predict_entities == golden_entities:
        acc += 1

print(correct, predict, total_entities)
print('recall: ', correct / total_entities)
print('precision: ', correct / predict)
print('f1:', 2 / (total_entities / correct + predict / correct))
print('accuracy:', acc / len(data))

Got it.
Thanks for your sharing.


Does the library support angular 9?

Check this: https://github.com/katoid/angular-grid-layout/issues/29#issuecomment-1017226309
You can use version 0.2.0 for Angular 9, but be careful, some bug fixes or features are not done in this version, check the CHANGELOG.md to know more.


Self Signed Certificate

Hi.
We have an internal rancher deployment under https with a self-signed htttps certificate.
When we use your image we recieve the error "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed"
There is any way to avoid this whitout using a valid certificate or exposing the rancher url under http?

This isn't supported at the moment, currently you either need a valid certificate or have to use http

Understood.
Thanks.

This should be fairly easy to implement, right? Would you be interested in adding --no-ssl-verify as a cmdline option? If so, I can send a PR to add it.

Yeah, it would be worth adding I think -- its documented here:
http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification

@Cobra1978 I just did a quick modification to implement a --no-ssl-verify option, if you use the docker image would you mind checking if it allows you to use your self-signed certificate now?
docker pull rtorrero/rancher-gitlab-deploy
The code itself, in case you don't use the docker image is here:
https://github.com/rtorrero/rancher-gitlab-deploy/commit/356d640db40b358e7443feb61c694b416d297a43

Hi.
I use the docker image, so i plan to make some thest today or at least tomorrow.
Thanks.

@rtorrero
I can confirm that with your modification it works flawlessy evene with https and self-signed certs.
Thank You.

Ok, I'll clean up and prepare the PR

Hi there,
thanks a lot for adding this feature! 👍
Just to leave a hint, for all who are using an own CA.
you can just do:
export REQUESTS_CA_BUNDLE=/path/to/public/ca/file.crt
upgrade <all the parameters you want>

Thanks!


Ch0 backmerge 21/03/24

@technophile-04 https://github.com/scaffold-eth/se-2-challenges/issues/157#issue-2179748469
why https://github.com/scaffold-eth/se-2-challenges/pull/91 should be reverted? Or it's outdated comment?

Thanks!

Maybe we could batch all 3 challenges at once all testing is done ?

Sure

Thanks for reviews and testing @Pabl0cks and @technophile-04 ! Merging all challenges prs!