Add a working xcframework target

This adds build.sh xcframework [platforms] which produces the following output with support for all of the listed platforms (or iOS, macOS, tvOS and watchOS if no platforms are specified):

build/Realm.xcframework: A dynamic framework containing only the obj-c API.
build/RealmSwift.xcframework: A dynamic framework containing both the obj-c and swift APIs, with the obj-c library statically linked in.
build/RealmObjc.xcframework: A header-only framework which exposes the obj-c API from RealmSwift.xcframework. Apps using RealmSwift.xcframework must link against this.

The main complication here is that loading swiftinterface files uses different scoping rules from normal Swift, which results in our module named Realm conflicting with the class named RealmSwift.Realm. To work around this, the build script statically links Realm into RealmSwift and then supplies a header-only framework named RealmObjc which exposes the relevant symbols.
This also reverts the change to make some of the pre-existing targets build single-platform xcframeworks rather than fat libraries, and makes build.sh build produce a xcframework when building with Xcode 11.
The new installation tests currently aren't run on CI due to requiring Xcode 11, and will need to be enabled as part of enabling CI builds with Xcode 11. Everything in examples/installation is just a copy-paste of the existing examples with Realm.framework changed to Realm.xcframework, so it doesn't need much review attention.

@tgoyne  Hello, I got a problem with this script, when I use this script to build xcframework, I got RealmObjc.xcframework and RealmSwift.xcframework.
When I import theses two framework to the install example project, then I got many build error.  "RLMPropertyType is not a member of Realm", "RLMNotificationToken is not a member of Realm". Could you test the build.sh and install example project again? Very appreciate.


SMPPaymentOptionCardReader ignored

I want to skip the display of the reader/link screen when starting a payment. I am able to do this using the SumUp app by "Disabling Mobile payments" (a confusing term btw). I thought I could achieve the same by using SMPPaymentOptionCardReader instead of SMPPaymentOptionAny as paymentOptions parameter but that has no effect: the screen where you can choose between reader or link is still shown.
(v3.4)

I am facing this same issue. It was previously working fine (with no mobile payments option displayed) and I haven't made any changes or updated the SumUp SDK. Therefore, some server side change has presumably broken this.
I have "paymentOptions: .cardReader" within the checkout request. I'm using v3.4 of the SDK.

Hi,
Our apologies for the inconvenience.
I have raised a ticket with our developers and we are currently working on error you are facing.
I will update you immediately once it has been corrected.

Thanks for the update

Any update on this? Is it fixed with 4.0.0-beta.1? @mollidor

+1

Hi everyone,
we will deprecate the functionality to provide payment options when creating a checkout request in 4.0.0 which we will release today. Payment option provided to the user are governed by the merchant's settings only.
In the near future we will remove the option to pay by "Mobile Payments" via the SumUp SDK.
Appreciate the hint re naming, in the latest app and SDK 4.0.0 these will be called "Payment Links".
Kind regards,
Lukas

Thanks for the update. Just to be clear, this means that soon it'll go back to the old behaviour of going straight to card screen since mobile payments is being removed from the SDK (and there will now be no option for it)? This would be a great improvement

Exactly, with the card reader being the only payment option it will go straight to this screen. We'll keep you posted.

Any idea when this update will go live @mollidor? We're about to start training people in our app and it's a bit frustrating having to tell them all to click through this option every since time

Hi @mollidor, sorry to chase but is this still in the pipeline? Any idea how far away it is?

Hi @mollidor, sorry to chase but is this still in the pipeline? Any idea how far away it is?

Hi @mollidor. Is there any update on this issue? It's been a long time now since it was supposed to be getting fixed.

Can Report same behaviour and interesting to see the fix for it.

I contacted SumUp by email on this and they said they don't monitor GitHub issues. Fortunately, there is a solution now for disabling payment links:

Download and open the regular SumUp App
Click on the icon "Home" on the lower left corner of the screen
Select "Payment Links"
Click on the settings icon on the top right corner
Disable "Payment Links"

This will now disable them for the SDK also, assuming it's using the same login.


vague error when forgetting optional attribute on parent

Installation information

jumpscale version: 8.2.0
operating system: linix

Detailed description
when you ommit option in your config .yaml for a parent relation you get a dirty erro
links:
  parent:
    auto: false
    role: container
    argname: container

Relevant stacktraces
orGet
    obj = self.actorCreate(name)
  File "/opt/jumpscale8/lib/JumpScale/baselib/atyourservice81/lib/AtYourServiceRepo.py", line 239, in act
orCreate
    actor = Actor(aysrepo=self, template=actorTemplate)
  File "/opt/jumpscale8/lib/JumpScale/baselib/atyourservice81/lib/Actor.py", line 21, in __init__
    self._initFromTemplate(template)
  File "/opt/jumpscale8/lib/JumpScale/baselib/atyourservice81/lib/Actor.py", line 164, in _initFromTempla
te
    self._initParent(template)
  File "/opt/jumpscale8/lib/JumpScale/baselib/atyourservice81/lib/Actor.py", line 184, in _initParent
    optional=bool(parent['optional']),
KeyError: 'optional'

Moved to https://github.com/Jumpscale/ays9/issues/7


Add session service, credential service, and unit-test

Implement SessionSevice and CredentialService
Implement PasswordAbuseDetection under SqlAccount
Add unit test for PasswordAbuseDetection using JMockit
Use HMAC256 for JWT encrpytion, can be modified to ES256 later
Secret for HMAC256 is hard-coded in KeyService, can be switch to SoftHSM later
Refactor previous code structure according to the spec sheet
Modify .scripts to ensure compatibility
Now use JSONObject for parsing, will switch to JacksonJSON
Add TokenService to validate token

In the last few commits after the code review, I add TokenService since public Response accountsmePut(String token, AccountApi account, SecurityContext securityContext) in AccountsApiResponse.java need to verify the token (previously credential and token were mistaken).


Hide [ReadPermission("*")] from menu

I gave entity [ReadPermission("")] in PriceListRow.cs in order to be able to list items on public page.
But now I want to hide this entities being listed in Menu for regular user.
How can I do that. Due [ReadPermission("")] I get Administration menu with PriceList item no matter what user privileges I set for certain group :(

So use a permission, star means all

@volkanceylan I put star there, so I can list part of price-list on public page (where no user is logged in).
How do I assign privileges to guest/not logged in user?


A segment fault was encountered during inference

(CogVideo) C:\Users\SAS\Desktop\CogVideo-main>sh scripts/inference_cogvideo_pipeline.sh
Please install apex to use fused_layer_norm, fall back to torch.nn.LayerNorm
WARNING: No training data specified
using world size: 1 and model-parallel size: 1
> initializing model parallel with size 1
DEBUG:filelock:Attempting to acquire lock<PHONE_NUMBER>920 on C:/Users/SAS/anaconda3/Library/sharefs/cogview-new\cogvideo-stage1.zip.lock
DEBUG:filelock:Lock<PHONE_NUMBER>920 acquired on C:/Users/SAS/anaconda3/Library/sharefs/cogview-new\cogvideo-stage1.zip.lock
DEBUG:filelock:Attempting to release lock<PHONE_NUMBER>920 on C:/Users/SAS/anaconda3/Library/sharefs/cogview-new\cogvideo-stage1.zip.lock
DEBUG:filelock:Lock<PHONE_NUMBER>920 released on C:/Users/SAS/anaconda3/Library/sharefs/cogview-new\cogvideo-stage1.zip.lock
building InferenceModel_Sequential model ...
scripts/inference_cogvideo_pipeline.sh: line 38:  1209 Segmentation fault      MASTER_PORT=${MASTER_PORT} SAT_HOME=/sharefs/cogview-new python cogvideo_pipeline.py --input-source interactive --output-path ./output --parallel-size 1 --both-stages --use-guidance-stage1 --guidance-alpha 3.0 --generate-frame-num 5 --tokenizer-type fake --mode inference --distributed-backend nccl --fp16 --model-parallel-size $MPSIZE --temperature $TEMP --coglm-temperature2 0.89 --top_k $TOPK --sandwich-ln --seed 1234 --num-workers 0 --batch-size 4 --max-inference-batch-size 8 $@

Hi! Dears, I'm having this issue above, and I've reinstalled icetk and it still doesn't fix the issue. I noticed that when executing the script, my CPU memory usage has been rising, and finally ran full 15.9/15.9GB, and the space occupation has also temporarily increased by more than a dozen G, may I ask how much CPU memory and space requirements are needed to run the model, is the problem of the segfault fault I encountered above because of this? Thank you!

How do you solved it? I met this problem too.
@boyu-chen-intern


398 featureexperiment proper vscode debugging

Description
This pull request makes debugging individual nodes with VS Code possible. This should improve debugging efficiency.
It also documents existing and new debugging possibilities.
Fixes #398
Type of change

New feature (non-breaking change which adds functionality)

Does this PR introduce a breaking change?

No, debugging has to be manually enabled. The behavior of the nodes was not changed.
The Dockerfiles have been adjusted slightly, but this should not break anything

Most important changes

Added a code/debug_wrapper.py node that is able to attach a remote debugger to itself and then wraps another node.
Added a code/debugging/src/debug_logger.py node that more effectively logs exceptions and messages from the debug_wrapper
Added a VS Code default launch configuration to attach to the remote debugger
Added debugger environment variables to Dockerfiles
rqt_console now starts with the leaderboard by default
Added documentation at doc/development/debugging.md

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
I have added tests that prove my fix is effective or that my feature works (might be obsolete with CI later on)
[x] New and existing unit tests pass locally with my changes (might be obsolete with CI later on)

Summary by CodeRabbit

New Features

Introduced a new debugging configuration for ROS nodes, allowing integration with the debugpy remote debugger.
Added a comprehensive guide on debugging methods for ROS nodes.

Bug Fixes

Improved error handling and logging for debugging processes.

Documentation

New documentation on debugging techniques and configurations added.

Chores

Updated dependencies to include debugpy for enhanced debugging capabilities.

Since coderabbit mentions it everytime: could you explain why you use the BaseException instead of the Exception class?

CodeRabbit explains it pretty well. My usage of BaseException was wrong in most cases so will be changed to Exception except for when the node is started. In this case I think it really makes sense to capture any reason the node exits.


send with webhook instead of bot for masked links

//telnet_msg.go

// replace the relevant line with
out += fmt.Sprintf("[%s](%s%d)", itemName, t.config.ItemURL, itemID)

// discord.go
// add to import block ...
	"net/http"
	"encoding/json"
//done import block ...

// Send sends a message to discord
func (t *Discord) Send(req request.DiscordSend) error {
	if !t.config.IsEnabled {
		return fmt.Errorf("not enabled")
	}

	if !t.isConnected {
		return fmt.Errorf("not connected")
	}

	webhookUrl := //<YOUR WEBHOOK URL>

	payload := DiscordWebhook{
		Content: req.Message,
	}

	jsonPayload, err := json.Marshal(payload)
	if err != nil {
		return fmt.Errorf("Failed to parse payload to JSON: %w", err)
	}

	resp, err := http.Post(webhookUrl, "application/json", bytes.NewBuffer(jsonPayload))
	if err != nil {
		return fmt.Errorf("Failed to send POST request: %w", err)
	}

	defer resp.Body.Close()

	if resp.StatusCode != http.StatusOK {
		return fmt.Errorf("Received non-200 response: %d", resp.StatusCode)
	}

	return nil
}

My Go knowledge is absolute garbage and I have no idea how to integrate this correctly into your overall structure (my fork is getting more and more off the rails and is not-good-but-works-for-my-needs), so not gonna PR it. This does work, though. Maybe useful to you or someone else.
I'm going to try to work in reverse link handling (convert allaclone links to ingame links), and would love to contribute all of this but would need some handholding on getting it together correctly.

Closing this. I'll do this as a PR when I'm not drunk.

I'm.. a bit confused, is the goal with this to use the eqemu API server webhook because item links get converted?

If so, we can just feature request dev team for telnet to support markdown itemlinks, too, on emote world, to get feature parity with the eqemu API.

No, this uses a discord webhook. For whatever reason, Bots & Users can't send what they call 'masked links' and the rest of the world calls 'hyperlinks', but webhooks can. eqemu supports webhooks natively, and so you can just send that markdown through a perl script or w\e, but it doesn't work through talkeq without this change.
This is the kind of result you can get, which, IMHO, is much nicer than the raw link.

What I posted above really is just a quick and dirty hack. I've also done some work on in-game claiming of discord handles (so no roles etc) and support for 64-bit itemlinks. When I get reverse parsing of links working I'll clean everything up and submit a PR(s) depending on which of those features you want in main or not. Or if you don't want them at all I'll skip it.
Apologies for posting this half-cocked last night.

Aha, I see. I saw this posting on discordgo's discord:

link: https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline-
It's possible this will roll out to bots, too. This may be worth waiting instead of requiring folks to configure eqemu's discord integration as a dependency for talkeq

This doesn't use eqemu's discord integration at all. It does require an additional config step for talkeq, and the webhook can be reused for eqemu if desired.
What I posted is insecure, because the secret is dangled there in plaintext and doesn't use a config file, but that is a relatively trivial improvement.
It could also be an optional config... Either way, I don't expect or request action from you on this.
Sent from Proton Mail mobile
-------- Original Message --------
On Jun 30, 2023, 8:58 AM, Xackery wrote:

Aha, I see. I saw this posting on discordgo's discord:
Screen Shot 2023-06-30 at 6 56 28 AM
link: https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline-
It's possible this will roll out to bots, too. This may be worth waiting instead of requiring folks to configure eqemu's discord integration as a dependency for talkeq
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: @.***>

Will the link I note resolve it though, if it's rolled out to all guilds? Seems they're planning to add masked links to all users and probably bots in the next short while.

Yes, probably? They've already rolled it out and reverted it once though fwiw.
Sent from Proton Mail mobile
-------- Original Message --------
On Jun 30, 2023, 9:03 AM, Xackery wrote:

Will the link I note resolve it though, if it's rolled out to all guilds? Seems they're planning to add masked links to all users and probably bots in the next short while.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: @.***>


Remove appcache devtools docs

AppCache has been removed from chromium almost entirely.
It makes no sense to keep this documentation page and the associated devtools feature.
The devtools feature is planned for removal in this chromium bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=1228703
This fixes #1220.

Docs Build status updates of commit 704848c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/devtools-guide-chromium/storage/applicationcache.md
:white_check_mark:Succeeded

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

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 docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 71e0610:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/devtools-guide-chromium/storage/applicationcache.md
:white_check_mark:Succeeded

microsoft-edge/toc.yml
:white_check_mark:Succeeded
View

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 docs.microsoft.com contributor guidesPost your question in the Docs support channel


OSB Visual clue bug

Since earlier today me and some others been experiencing a visual bug showing that you got 2 clues from a pvm trip on OSB.
After doing +b --tt if (ofcourse) only shows one.
(I already started the easy clue btw)

I guess it's an actual April Fools joke. oops


fix(deps): update dependency webpack to v5

Why

Updating webpack to v5 needs some fix and updating webpack-cli to v4 as well.
This includes them in addition to the PR by renovate.
What

a2e976f ...Created by renovate bot.
23f849f ...Updating webpack-cli to v4
874ac14 ...Removing @types/webpack that doesn't need any longer
bfcbd6d ...Adding some Node.js polyfills because webpack 5 does no longer include a polyfill for Node.js core API. Webpack 5 release (2020-10-10) | webpack

node-libs-browser indicates the polyfills webpack used previously.

70b8448 ...webpack doesn't provide Plugin type definition. However, it provides WebpackPluginInstance so that it is the replacement of Plugin from @types/webpack

How to test

> yarn lint
> yarn test
> yarn build

Checklist

[x] Read CONTRIBUTING.md
[ ] Updated documentation if it is required.
[ ] Added tests if it is required.
[x] Passed yarn lint and yarn test on the root directory.

@shisama Great work 👍
plugin-packer seems not to work on the web.
https://pr-475.d1ite8zvzg8c5i.amplifyapp.com/
I've seen the following error when uploading a plugin zip. Could you take a look?

@koba04 Thanks! I tried plugin-packer page but no errors occur. However, I made a mistake and fixed it. Would you try it again in https://pr-475.d1ite8zvzg8c5i.amplifyapp.com

@shisama Thank you! I've confirmed it has been fixed 👍

@shisama
Thank you for your works!!
If the plugin-packer page supports IE browser, it not working on IE.
The generated file includes arrow functions.

By default, webpack's runtime code uses ES2015 syntax to build smaller bundles. If your build targets environments that don't support this syntax (like IE11), you'll need to set target: ['web', 'es5'] to revert to ES5 syntax ('web' if target environment is browser).
ref. https://webpack.js.org/migrate/5/#clean-up-configuration

@chick-p Thank you for reviewing and checking this in IE11. Good catch. I didn't realize it doesn't run in IE11.
However, the web page of plugin-packer supports only modern browsers. So, I think it seems not to be necessary to run it in IE11. Please take a look at https://github.com/kintone/js-sdk/tree/master/packages/plugin-packer.

@koba04 @chick-p Thank you for your review. Would you please merge this if you have no issues and questions?

LTGM 👍  Could you resolve the conflicts?

@koba04 Thanks! Resolved.

🚀 🚀 🚀


Checkbox agreement should allow for language selection

Can be moved to RC2 or do you plan to fix it?

I don't think I'd fix it for RC1 .... will see if its easy and if so I can add it in with the D&D Select Them PR

I was looking into that one.
At the moment I have two options:

use AJAX to load the "other" language of the agreement (because being at the end of the page, I would expect the wannabe use to fill in the password and then select a different language, and a reload of the page would wipe the form,
remove the text and open a new window with only the agreement (even facebook does that, so it may not be that bad).
With 2 we would even add an overlay popup if js is enabled so that it doesn't move the user away from the page.

I'd kind of lean towards 1 but I'm old school!


Reducing dependence on System

Requirements
In order to enhance robustness, we should reduce the dependence of each 3scale component. For example, APIcast should be able to call APIs without System.
Proposals
Regarding the apicast-production, the configuration is cached 300 seconds (the default value of "APICAST_CONFIGURATION_CACHE"). So if the system-app restarts within 300 seconds, we may be able to call APIs without receiving 5XX. However, if the system-app doesn't restart within 300 seconds, we receive 5XX.
Our proposal is to keep the configuration cache and use it as long as APIcast receive 5XX from System. When APIcast receive 5XX from System, APIcast allows the API request to go through by using the cached configuration, however APIcast polls whether System is recoveried or not in a periodical interval.

I suggest that we keep the body of this discussion focused on "dependence on System" as the title.
The body of the issue adds "Backend" which is a completely different dependency for different reasons, and I think best discussed in a separate thread.
If you remove reference to Backend, then I can remove this comment and keep history clean.

Maybe this has already achieved, right?
In my environment, when I scaled the system-app from 1 to 0, we could receive 200 from the apicast-production after more than 300 seconds.

@y-tabata we haven't made any changes to this in quite some time.
Configuration Store is responsible for storing Service configurations and will use stale configuration by default:
https://github.com/3scale/apicast/blob/0fa2ed46f98d1eea7b65e1f52fc9b8709ef934ae/gateway/src/apicast/configuration_store.lua#L65-L82

Apicast only contacts system to load proxy config.
When it does that is configurable, and default is different on
production/staging.
So, once configured, system is not contacted.
I believe the config options should be documented somewhere, if not, they
should be.
On Fri, Jul 20, 2018, 09:34 Yoshiyuki Tabata<EMAIL_ADDRESS>wrote:

Maybe this has already achieved, right?
In my environment, when I scaled the system-app from 1 to 0, we could
receive 200 from the apicast-production after more than 300 seconds.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/3scale/apicast/issues/807#issuecomment-406514771, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFReLFfJ6PDoaxhZPUU11Q9uizUC_KPTks5uIYf_gaJpZM4VKpPH
.

--
regards
Andrew
Andrew Mackenzie
Director of Software Engineering
3scale by Red Hat

@mikz @andrewdavidmackenzie thanks!
The "APICAST_CONFIGURATION_CACHE" is written here and here.
However, it seems that there is no description about how the gateway behaves when the gateway cannot get the configuration.
I'm not sure the above is the proper place to describe the behavior and I'm not sure we need to write this specific corner case behavior.

@y-tabata we definitely should have an integration test to verify it retains stale configuration when the configuration endpoint is down.
We have a unit test to verify that the store returns stale records by default:
https://github.com/3scale/apicast/blob/123a1705aee504813503bd739cf0ed48cacc23c9/spec/configuration_store_spec.lua#L142-L151
But we should have a high level integration test to verify all combined together still works.
Also it is entirely possible that you hit some edge case and in some conditions it might not work as expected. It might have been related to the number of services running, for how long it was running, etc. If you can reproduce that I'm more than happy to write a test for it and fix it.

I confirmed this worked well. I close this issue.


Network: Adds support for live updating NIC fields when using network property

Previously some NIC devices have supported "live update" of certain config fields. These config settings were able to be applied on the host without removing and re-adding the NIC device inside the instance.
However with the introduction of the network property that caused the NIC device to inherit the nictype (implicitly) and other settings (explicitly) from the network's config, this caused the live-update feature to break, causing all modification of NIC config fields to trigger a remove and re-add.
This was because the helper function passed to oldExpandedDevices.Update in the instance driver's Update() function was causing the device to be initialised (which triggers validation, which in turn modifies the supplied config with the explicitly inherited network settings). This meant that the new device config always looked sufficiently different to the old device config to trigger a full remove and re-add (because it appeared to have changed its parent key).
The only reason the oldExpandedDevices.Update helper function was initialising the device was to ascertain the updatable field list for that device type by calling the UpdatableFields function.
To avoid this I have added a new Type interface (similar to that in the network package) which allows loading a device by type, to just get access to its type-specific functions. This is now used in oldExpandedDevices.Update which avoids triggering validation and associated config enrichment, and restores the ability to live-update certain fields.
However this in turn exposed an issue that in the subsequent call to d.updateDevices, some devices actually depended on the oldExpandedDevices config being pre-enriched with the network inherited fields from the validation run in oldExpandedDevices.Update's helper function.
To fix this the devices that depended on this behaviour now explicitly call device.Validate with the old device config to make explicit that they require on post-validate enriched config.
I also found that the instance drivers each had a function called deviceResetVolatile which was equivalent to the common function deviceVolatileReset so have switched to that and removed the duplicated functions.

Testsuite passed

Testsuite passed

@tomponline oops, apparently I broke your branch, can you give it a quick rebase?

If you're not around anymore, I can do it myself in a bit, no worries.

@stgraber thanks, thats fixed now.

Done and piled up some more fixes for an LXD ;)


Authentication

Hello,
In the ReadMe you have mentioned that, Kubedash provides additional authentication. Could you provide some more information about this?
Thanks,
Shilpa

Hi @shilpapadgaonkar,
Kubedash handles in-cluster authentication with the Kubernetes API server in order to connect to the heapster service. The heapster API is then made available through Kubedash to the user, in order to avoid accessing two services from the user's browser.
This allows a user of Kubedash to expose the Kubedash service through an external IP/port pair, without also having to perform the same for the Heapster service.
Best,
Alex


clp-s: Add boilerplate for new sql parser

Description
This PR adds boilerplate for the new sql parser. This includes a stubbed out g4 grammar and visitor, as well as a basic unit test that tells us that the whole thing compiles and runs.
Validation performed

validated that unit test linking against sql parser library builds and runs successfully

Summary by CodeRabbit

New Features

Introduced SQL parsing capabilities with a new SQL parser and grammar.
Added a LogSuppressor class to manage logging during tests.
Implemented unit tests for SQL parsing functionality, including handling edge cases.

Bug Fixes

Enhanced error handling in SQL parsing to ensure proper logging and feedback.

@LinZhihao-723 fixed clang-tidy warnings. Re-review?

Can we merge main? The latest workflow failure should be resolved by #578.


Create the possibility to install a specific version of docker through get.docker.io

Updating docker to 1.6.2 is giving a lot of trouble with containers and images, with bugs already reported elsewhere (I checked). As I installed docker through the get.docker.io script, it would be useful to be able to add a version of docker to the url, and use for example https://get.docker.io/1.6.0 to install a specific version.
Also, having a combined resource with all the possible ways to use get.docker.io would be very useful.

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

There's updated documentation for obtaining a specific version of docker that can be found here; http://docs.master.dockerproject.org/installation/binaries/#get-the-linux-binary. Keep in mind that these are static builds; depending on the distro and graphdriver you're using (e.g. devicemapper), you may need a dynamically linked build in stead.

What about using bash variables in the script to allow the setting of a desired docker version? e.g.
if [[ -n "$DOCKER_VERSION" ]]; then
    apt-get install lxc-docker-${DOCKER_VERSION}
else
    apt-get install lxc-docker
fi

That way you could do this to install 1.6.2
wget https://get.docker.io/ | DOCKER_VERSION=1.6.2 sh

@tianon @jfrazelle any thoughts on that?  https://github.com/docker/docker/issues/13822#issuecomment-114175396

@thaJeztah: Sounds like a great idea!  It is vital to be able to control the version of Docker that we install on our machines. We build our machine images with packer and just recently  a "free" upgrade which broke my code. Please met me specify which version I get. @daviddyball  suggestion would work for me.

I found this solution on https://forums.docker.com/t/how-can-i-install-a-specific-version-of-the-docker-engine/1993/3
wget -O docker.deb https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_1.8.3-0~trusty_amd64.deb
 sudo dpkg -i docker.deb

@mvanholsteijn glad you found it, and we also move to a new apt repository (the old repository is still getting the current release, but (iirc) 1.9 will be the last release for the old repo.
this comment (copied here) describes the usual way of specifying a version
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
mkdir -p /etc/apt/sources.list.d
echo deb https://apt.dockerproject.org/repo3 ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
apt-get update;
apt-get install -y -q docker-engine=1.x.x~

w.r.t changing the install-script; we're moving away from the curl | sh approach in our documentation in favor of instructing users on how to perform the installation. The install-script is doing a lot of things to try to detect the platform that is installed on, and this sometimes leads to incomplete installs.
Finally, I agree that (although it may be considered general knowledge on apt/yum/dnf) we need to provide more information on how to install a specific version of docker from our apt/yum repos. I'll create an issue for that; perhaps you are interested in contributing changes to the documentation for that?

Looks like this is actually a duplicate of https://github.com/docker/docker/issues/9697 which was rejected, and (given that we are trying to move away from the curl | sh install, especially for advanced installations), I think this should be closed.
ping @tianon @jfrazelle do you think we should close this, or are you okay with adding the proposed change?


Incorrect text when viewing role template and cluster/project creator default is set to true

Incorrect text when viewing role template and cluster/project creator default is set to true
rancher/rancher:master 7/25
The text displayed for the project/cluster creator default role field set to true is incorrect when viewing a role template.
Create a role w/ cluster creator default set to true.
View the role (not edit)
The text displayed is for a locked binding New bindings are not allowed to use this role
The text should be `Default role for new cluster creation'
Incorrect text when viewing:

Correct text when creating/editing:

Version - 2.0 master 7/30
Verified fixed


Grammar

fixed some grammatical errors

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/create-packages/Creating-a-Package.md
:white_check_mark:Succeeded
View

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


misc: do not trace children with valgrind

This fixes errors we get from ceph-mon when it spawns crushtool to test new
maps.
Fixes: #13251
Signed-off-by: Sage Weil<EMAIL_ADDRESS>

Refer to this link for build results (access rights to CI server needed):
http://jenkins.ceph.com//job/teuthology-pull-requests/1884/
Test PASSed.


updated to make sending parameters as serialized tensor optional

After some internal discussion - we'd like to suggest retaining the functionality of passing parameters via request parameters and adding support for passing parameters via a tensor. Once parameters are supported in BLS models we can further consider removing the serialized tensor.

@tonywang10101 - please take a look and we can merge into triton tutorials

Hi Nealy! Thanks for adding this. Have you tested these changes with both approaches yet? It looks like send_parameters_as_tensor is never set to False, I think? On a related note, if both approaches are used, we might want to throw an error.
I know your time is quite booked, so let me know if you would like me to help with any of the changes.

Hi Nealy! Thanks for adding this. Have you tested these changes with both approaches yet? It looks like send_parameters_as_tensor is never set to False, I think? On a related note, if both approaches are used, we might want to throw an error.
I know your time is quite booked, so let me know if you would like me to help with any of the changes.

Tested locally - both work. For the initial PR - I think its also fine to document that if both are provided the tensor takes precedent. As it's a tutorial / example - I think an error is optional - as we move to consider backend support - I agree an error / warning would make sense.
Open to that now as well - just don't consider it blocking -


fast_executemany: Passing decimal(m,n) parameter value as string can throw "String data, right truncation" error

Passing a negative parameter value as string for a decimal(m,n) column can throw a "String data, right truncation" error. Using setinputsizes does not resolve the issue.
print(platform.version())
# #126-Ubuntu SMP Wed Oct 21 09:40:11 UTC 2020

print("Python version: " + sys.version.replace("\n", ""))
# Python version: 3.6.5 (default, Apr  1 2018, 05:46:30) [GCC 7.3.0]

print(f"pyodbc version: {pyodbc.version}")
# pyodbc version: 4.0.30

connection_string = get_connection_string()
cnxn = pyodbc.connect(connection_string, autocommit=True)

print(
    f"ODBC driver: {cnxn.getinfo(pyodbc.SQL_DRIVER_NAME)} "
    f"[{cnxn.getinfo(pyodbc.SQL_DRIVER_VER)}]"
)
# ODBC driver: libmsodbcsql-17.6.so.1.1 [17.06.0001]

crsr = cnxn.cursor()

print(crsr.execute("SELECT @@VERSION").fetchval())
"""console output:
Microsoft SQL Server 2017 (RTM-GDR) (KB4505224) - 14.0.2027.2 (X64)
	Jun 15 2019 00:26:19
	Copyright (C) 2017 Microsoft Corporation
	Express Edition (64-bit) on Windows 8.1 Pro 6.3 <X64> (Build 9600: )
"""

table_name = "gh_pyodbc_845"
crsr.execute(f"DROP TABLE IF EXISTS {table_name}")
crsr.execute(f"CREATE TABLE {table_name} (id int primary key, num decimal(4,2))")

crsr.fast_executemany = True
sql = f"INSERT INTO {table_name} (id, num) VALUES (?, ?)"
crsr.setinputsizes(
    [
        (pyodbc.SQL_INTEGER,),
        (pyodbc.SQL_DECIMAL, 4, 2),
    ]
)

data = [(1, "0.07")]
crsr.executemany(sql, data)
# no error

data = [(2, "-0.07")]
crsr.executemany(sql, data)
# pyodbc.ProgrammingError: ('String data, right truncation: length 10 buffer 8', 'HY000')

... also, a large-ish positive string value can also cause the error:
data = [(3, Decimal("99.07"))]
crsr.executemany(sql, data)
# no error

data = [(4, "99.07")]
crsr.executemany(sql, data)
# pyodbc.ProgrammingError: ('String data, right truncation: length 10 buffer 8', 'HY000')

I'm able to reproduce it, and will look into it, it does seem to be pyODBC, as I don't see any errors in ODBC trace

The issue seems to be that there is a mismatch in usage of the input size, basically pyODBC detects "column size" based either on the table, or on setinputsizes, which in this case is going to be 4 either way. But because it's passed in as a string it tries to treat it as a string, in which case the number of characters should be the column size, but it isn't so you get the mismatch.
So if you use setinputsizes to give the width in maximum number of characters it should work

Ah, okay, so if we know that we'll be passing DECIMAL(m, n) column values as strings we should use setinputsizes to specify the parameter as string with width m+2 to allow for the decimal separator and (possibly) the negative sign.
crsr.setinputsizes(
    [
        (pyodbc.SQL_INTEGER,),
        (pyodbc.SQL_VARCHAR, 6),
    ]
)

@gordthompson is Decimal a function from some package?

figured it's from decimal import Decimal

@DSLituiev - In this case decimal() is referring to a SQL Server column type:
https://docs.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver15


Document is not defined error

I'm getting the following error:
ReferenceError: document is not defined
[1]     at /my/project/node_modules/scriptjs/dist/script.js:12:13
[1]     at doc (/my/project/node_modules/scriptjs/dist/script.js:8:72)

In case you need some context, I'm using it within this boilerplate.
Evidently something is wrong because document is not defined on the server. Is this scriptjs's fault? Any quick fixes?

Looks like it's the latest's release's problem. You can use version 0.1.9 which depends on jQuery for a quick fix while I find the time to check it out ! Should be easy to fix.
npm uninstall react-google-charts
npm install<EMAIL_ADDRESS>
Thanks for reporting,
Cheers

+1

Temporary fix which should work with https://github.com/erikras/react-redux-universal-hot-example:
const Chart = __CLIENT__ ? require('react-google-charts').Chart : null

Thanks for reporting !
Should be fixed in 1.0.0
Let me know if it still breaks

@RakanNimer still breaks in 1.0.0

@RakanNimer having the same issue with 1.0.2

@RakanNimer This issue needs to be reopened.  I'm having this issue with 1.0.2. Also, when I tried to revert back to 0.1.9, I then get the "rendering with a blank div issue"32


"Official" ChatGPT API support?

Thanks, best ChatGPT app so far!  Core Data support is great! : )
This package implements ChatGPT API support:
https://github.com/alfianlosari/ChatGPTSwift
Could it be used on yoddChatGPT?
Thanks

Hi, thanks for the compliments.
What are the differences with the framework I'm using now?

This one access chatGPT, while the current one you are using access GPT da Vinci

Oh got it. In these weeks if I have time I can add this new model then.

awesome! I will also give it a try

Good news, I implemented the new framework!
You can now build it yourself and test it. For now I won't update neither the testflit nor release it as IPA because it could be instable and still need some refactoring.
Overall I think it is working right, for this reason I'm going to close this issue.

Great! From a quick test, seems to be working!


[loadgenerator] - have traffic go through frontend-web

It would be desirable to have the load generator create traffic that shows the frontend-web service trace through to the backend.
There was an attempt to do this using Playwright, but that was pulled because the spans for frontend-web were not getting sent to the collector. This comment and the 3 subsequent ones point to potential issues with why it failed in the past and workarounds that can be implemented to alleviate this.
cc: @jordibisbal8 and @danielgblanco

Hi @puckpuck, we have added a PR that now correctly exports the traces for the frontend-web service. The approach used was to use the baggage header with synthetic_request=true from the load generator. Then, the frontend uses a different OTC endpoint for the synthetic requests OTEL_COLLECTOR_NAME


[feature] add rust sdk according to libbpf-rs

I have added the libbpf-rs function used in runtime/wasm-bpf-rs/src to the rust sdk, which may be incomplete, but I am not sure how to check that the rust sdk I have written is complete? Any suggestions would be appreciated!

You can add new wasm examples using this sdk, for example:

https://github.com/libbpf/libbpf-rs/tree/master/examples/runqslower
https://github.com/libbpf/libbpf-rs/tree/master/examples/bpf_query

you can try to port them to wasm-bpf with the new rust SDK.

due to #119 , this should be done in another repo.

Related work is transferred to https://github.com/eunomia-bpf/wasm-bpf-guest-sdk-rust/issues/1


removed not required crypto package from dependency

I have removed crypto package from required packages.
It just creates a confusion because nodejs already has a crypto as in build package.We should try to avoid using non standard, not well tested cryptography packages. Using such packages might become security problem in the future.

You're right. Thanks.
Published as v0.4.1


[Documentation Issue]

This whole block of code doesnt work:
require "gcloud"
gcloud = Gcloud.new
bigquery = gcloud.bigquery
dataset = bigquery.dataset "my_dataset"
schema_fields = [
Gcloud::Bigquery::Schema::Field.new(
"first_name", :string, mode: :required),
Gcloud::Bigquery::Schema::Field.new(
"cities_lived", :record, mode: :repeated
fields: [
Gcloud::Bigquery::Schema::Field.new(
"place", :string, mode: :required),
Gcloud::Bigquery::Schema::Field.new(
"number_of_years", :integer, mode: :required),
])
]
table = dataset.create_table "my_table", fields: schema_fields

@dbenjamin57 Thanks for reporting this, I'll give it a try myself today. When you write "doesn't work", what do you mean? Do you get an error? Can you paste in a backtrace?

NameError: uninitialized constant Gcloud::Bigquery::Schema

@dbenjamin57 Thanks a lot. I couldn't reproduce this on my first try, but I will continue to investigate. Which version of gcloud-ruby are you using?

I am using 0.11.
Just noticed that you removed this example in the new version of the documentation:
http://googlecloudplatform.github.io/gcloud-ruby/docs/v0.11.0/Gcloud/Bigquery/Dataset.html
In master (the doc version that opens initially) it still exists:
http://googlecloudplatform.github.io/gcloud-ruby/docs/master/Gcloud/Bigquery/Dataset.html

I can also reproduce this in v0.11.0.
irb(main):001:0> bigquery = gcloud.bigquery
=> #<Gcloud::Bigquery::Project:0x007ff4753ae910 @connection=Gcloud::Bigquery::Connection(bustling-kayak-91516)>
irb(main):002:0> Gcloud::Bigquery::Schema::Field.new
NameError: uninitialized constant Gcloud::Bigquery::Schema
	from (irb):2
	from /Users/quartzmo/code/google/codez/gcloud-ruby/rakelib/console.rake:27:in `block in <top (required)>'

Using the big, red "Read the Docs" button at https://googlecloudplatform.github.io/gcloud-ruby/ should always bring you to the latest version instead of master, in case that helps.

Well.. take a look at your documentation - it leads to:
http://googlecloudplatform.github.io/gcloud-ruby/docs/master/Gcloud/Bigquery.html

It's not that it "still exists" in master and was removed. The current version v0.11.0 is older than master. Gcloud::Bigquery::Schema was introduced in this recent commit.
Which link did you use to reach the documentation for master? We are trying hard to direct to the latest version by default, but it seems there are always loose ends.

Just below the bigquery section (and beneath the authentication) in the
main documentation there's a link to the documentation.
ᐧ
On Mon, Jul 18, 2016 at 8:15 PM, Chris Smith<EMAIL_ADDRESS>wrote:

It's not that it "still exists" in master and was removed. The current
version v0.11.0 is older than master. Gcloud::Bigquery::Schema was
introduced in this recent commit
https://github.com/GoogleCloudPlatform/gcloud-ruby/commit/8817fd47e7ce270f5f5334dbb729cc2c25922d2e
.
Which link did you use to reach the documentation for master? We are
trying hard to direct to the latest version by default, but it seems there
are always loose ends.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/777#issuecomment-233394966,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABL3rGTx95cUY_tazuAsv5EoK4y93DUgks5qW7TGgaJpZM4JO5k7
.

@dbenjamin57 Great, thank you for pointing that out! I'm going to leave this issue open until we can figure out what to do about those links, which continue to link to master even if you switch the version in GitHub.
Really appreciate your help!

@dbenjamin57 We are going to update these Readme links to point to the latest release, rather than master. Thanks again.


Side selection for cover map

Reddish suggested an idea where the cover map module can have side specific cover maps.

You can already do this: https://github.com/Global-Conflicts-ArmA/Olsen-Framework-Arma-3/blob/b5a76fdde636cb9b02734fd9aa61f5b1306798e6/modules/cover_map/settings.sqf#L5
But perhaps we can just have an array for side markers (but the function calling allows for the ability for different units/groups of even the same side to have separate maps)

covered in #250


gemfile needed to run

what should I put in the gemfile?

It doesn't need gemfile, as there are no dependencies required to run this site. Just clone the repo and give the command "jekyll serve".

what should I put in the gemfile?

It doesn't need gemfile, as there are no dependencies required to run this site. Just clone the repo and give the command "jekyll serve".


Fix "used to signed in"

Why:
This doesn't read quite right:
https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication

any mobile device that you've used to signed in to GitHub Mobile

"used to signed in" is not idiomatic English.
What's being changed:
Now it's "used to sign in"
Check off the following:

[ ] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).

@HebaruSan
Thanks so much for opening a PR! I'll get this triaged for review :zap:


suggest generate file with protoc and protoc-gen-go version

such as
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: omg.proto
// protoc: libprotoc 3.6.1
// protoc-gen-go: v1.3.2

difference version of protoc and protoc-gen-go generated result has huge difference, sometimes hard to diff and commit

Duplicate of #524. Already fixed in https://golang.org/cl/186117


Support choices in the wizard with both checkboxes and radio datatypes

A natural way to do this is to show an area field and allow the user to enter the choices separated by newlines. perhaps also with display: value

This is actually a pretty small task to implement. Worth prioritizing.


1.6 sec startup on iOS

By my measurements this plugin was adding 1.8 seconds to the startup of my App.  A little of this is the initialization of the plugin, but most is the execution of the plugin, which occurs prior to the device ready event.  I did not measure its performance on Android.  I will look for a more performant way to get version code.

I also try to measure startup time.
What was the iOS device you used for measurement?

The test was run on an iPad 4.

On Jun 2, 2017, at 1:46 AM, Mikihiro Hayashi<EMAIL_ADDRESS>wrote:
I also try to measure startup time.
What was the iOS device you used for measurement?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/lynrin/cordova-plugin-buildinfo/issues/9#issuecomment-305695591, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlP_EHPJrZlHlcQLxZIjqKdxlXCrdasks5r_6HCgaJpZM4Nt2RY.


Refactor proxy to get rid of the hardcoded unprotected lists

Description

This is still work in progress!
@kulmann, it seems like it's working so far. I just have to test it a bit more and clean it up a bit on monday.
Related Issue

Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

test environment:
test case 1:
test case 2:
...

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

Gave it a spin, with following results:

uploads work
preview requests throw a http 500, with error message that reveals an internal 401:<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
   <s:exception></s:exception>
   <s:message>  {"id":"com.owncloud.api.thumbnails","code":500,"detail":"could not get image from source: could not get the image \"1284d238-aa92-42ce-bdc4-0b0000009157$06d8eaca-7a6d-4798-9b31-c24ab6b26a91/SpaceX/starship super heavy.jpeg\". Request returned with statuscode 401 ","status":"Internal Server Error"}</s:message>
</d:error>

creating a text file failed: PUT to https://localhost:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%2406d8eaca-7a6d-4798-9b31-c24ab6b26a91/asdf.txt -> 401 (Unauthorized)
opening a previously uploaded text file failed with basic auth popup and 401 on GET for https://localhost:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%2406d8eaca-7a6d-4798-9b31-c24ab6b26a91/SpaceX/clm0008.txt
renaming files/folders works
copying filles/folders failed: COPY to  https://localhost:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%2406d8eaca-7a6d-4798-9b31-c24ab6b26a91/SpaceX%20asdf -> 500 (Internal Server Error) -> after page reload the file files/folders are there. 🤔

:boom: Acceptance test localApiTests-apiArchiver-ocis failed. Further test are cancelled...

Turns out that this causes some unstable behavior for routes that match multiple rules :scream:. E.g. we have:
                {
                    Endpoint:    "/app/list",
                    Backend:     "http://localhost:9140",
                    Unprotected: true,
                },
                {
                    Endpoint: "/app/", // /app or /apps? ocdav only handles /apps
                    Backend:  "http://localhost:9140",
                },

And now requests on /app/list/ sometimes go through and sometimes fail. (Not this is not exactly a new bug in the code, it just seems that we didn't have overlapping rules of the same type before. I'll open a new issue for that and try to come up with a quick fix. (We might also temporary revert this PR).


[Bug]: S3 file upload does not work

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
The create file method doesn't work unless you explicitly set base64 in the query
Steps To Reproduce

Create an S3 Datasource
Create a new query from the + in the entity explorer
Configure the values with a file picker
Run it and see the response of the signedURL, a broken file is returned
Click the dropdown in the Query and set it to text and back to base64
Run it again and it works

Environment
Production
Version
Cloud

Closing in favor of https://github.com/appsmithorg/appsmith/issues/11544


Square Root: the exercise is too cheesable (and/or confusing?)

As in, it's too easy to cheese your way through it, without actually solving it.
Let's consider the top 5 solutions to this exercise, by most submitted:

Sorted by group:

Just using standard math.sqrt. 29 people submitted it.
It's either trying to be funny, or being lazy, or just misunderstanding the exercise. Either way, submitting such a solution doesn't help anybody, including the student. It works and it's valid, but IMO it's not a solution.
Raising the radicand to the power of 1/2.
That's better, but still. Doesn't really teach you anything. It works and it's valid, but again, not a solution.
Looping through all natural numbers until you stumble upon a square root of the radicand.
I think it's obvious that this solution would lead to an infinite loop if a floating point value was passed into it. It works but it's invalid, and obviously not a solution.
Using binary search.
Now, this is pretty creative. Binary search is introduced a few exercises prior to that, which means that you don't actually learn something new with this, but out of the other top 5, this is great (and has also been mentored). It works and is valid, and definitely is a solution.

Suggestions

Add floating point values to the test, as well as natural numbers that aren't squares (e.g. 5, 12, 888).
This would make most of the invalid but currently working solutions fail the test. However, it could also block a lot of perfectly valid solutions. See t/12815.
Make the instructions more verbose.
Specifically, discuss some of the methods that can be used to calculate square roots, show some equations to go off of, etc. The Wikipedia article linked certainly is helpful, but some people might get confused by this.
Mention in the instructions that using math.sqrt isn't welcome.
Usage of standard library functions instead of writing your own code is already discouraged in the instructions for some other exercises. It would certainly be nice to see that under Square Root too.

Thanks for the hint!

If there are Lua-specific notes, we can append to the instructions; we do this for resistor-color

Suggestion 3 certainly falls into that category.

Related: https://github.com/exercism/problem-specifications/issues/2415


Add token to translation result to avoid extra token acquirering request

My use case is to form pronunciation audio url for origin text after translation. Now it is possible with separate request: https://github.com/ssut/py-googletrans/issues/122#issuecomment-518004188
It would be better to have token in translation result, maybe return [data, token] from Translator#_translate

from googletrans import Translator
translator = Translator()
t = translator.translate('hello', src='en', dest='ru')
token = translator.token_acquirer.do(text) # returns token without additional request


Miq expression interp

parent:

https://github.com/ManageIQ/manageiq/issues/22397

Made some progress
I wanted to see what our code looks like for preprocessing the whole tree up front. The code was parsing the same fields over and over for to_ruby. The thought is if to_ruby has all the data it needs, then an interpreter will have all the data it needs.

don't lookup fields multiple times in to_ruby but rather once in the preprocessor
don't lookup fields and validate in valid? but rather one time in the preprocessor
embed field objets in the expr tree itself.
drop col_details and just use the cached field value from the preprocessor

There are still a few places to remove more Field.parse calls, but seems good enough.

From here we want to transition focus on Condition.subst.
This is where we spend the most of our time and create the most objects.
If we can verify that we don't use mode="tag_expr", then we can avoid the _to_ruby.gsub() { _subst}.gsub() { _subst } code and have the to_ruby produce the correct code in the first place.
@Fryguy do you know anything about mode="tag_expr" and if we would have customers still using that?

@Fryguy do you know anything about mode="tag_expr" and if we would have customers still using that?

I did a little spelunking, and in 2008 @gtanzillo (Hi Greg!) introduced mode=tag_expr_v2 in<PHONE_NUMBER>1e0cc24e05adf13fa5bbc85fa19200 (pre-open-source), and replaced its usage in a bunch of seeded policies to use that.  Below is an example diff of one of those changes where can see the old format and the new format. Note that tag_expr_v2 is the MiqExpression format, as you can see in https://github.com/ManageIQ/manageiq/blob/master/app/models/condition.rb#L68 where it's used directly in MiqExpression.
Maybe @gtanzillo can remember anything here on this old format?
Even so, I'd be super-surprised if tag_expr still existed in any form for existing users/customers as 2008 was the big switch.  git grep and org wide searches tell me this isn't used anymore and we can drop it.
@ vmdb/product/policies/env_prod_vm_host.yml:7 @ modifier: "allow"
 who: "system"
 what: "start"
 rule:
-    mode: "tag_expr"
-    expr: |-
-        <exist ref=host>/managed/environment/prod</exist> &&
-        <exist>/managed/environment/prod</exist>
+    mode: "tag_expr_v2"
+    expr:
+        and:
+            - exist:
+                field: Host.managed-environment
+                value: prod
+            - exist:
+                 field: Vm.managed-environment
+                 value: prod


fix(@schematics/angular): consecutive blank lines in routing.module.ts

Fixes: #18220

@alan-agius4 Ok, I will do that.. Actually, I made the same earlier but to make it consistent with other I modified. Because there are a blank line between module import and component import in other places.

@sacgrover, I see, in that case there should be a blank line in the logical statement and before the constant declaration.
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';<% if (lazyRoute) { %>

import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';<% } %>

const routes: Routes = [<% if (lazyRoute) { %>{ path: '', component: <%= classify(name) %>Component }<% } %>];

Changes done as per asked.

LGTM, thanks

Could You please rerun it as i don't have permissions for it?


[KIECLOUD-693] - Update the OSBS build jobs parameters to accept link…

… wih build artifacts properties file
Thank you for submitting this pull request
JIRA: (please edit the JIRA link if it exists)
link
referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

referenced pull request 1
referenced pull request 2
referenced pull request 2
etc.

How to retest a PR or trigger a specific build:

* a pull request please add comment: Jenkins retest this

PROPERTY_FILE_URL is not set in script part for bamoe_osbs_seed_cloud_jobs.groovy

indeed, thanks.


npm ERR! code ELIFECYCLE , errno<PHONE_NUMBER>

Versions
<!--
Output from: `ng --version`.
If nothing, output from: `node --version` and `npm --version`.
  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
-->
npm : 5.5.1

@angular/cli: 1.2.4
node: 6.9.1
os: win32 x64
@angular/animations: 4.4.6
@angular/common: 4.4.6
@angular/compiler: 4.4.6
@angular/core: 4.4.6
@angular/forms: 4.4.6
@angular/http: 4.4.6
@angular/platform-browser: 4.4.6
@angular/platform-browser-dynamic: 4.4.6
@angular/router: 4.4.6
@angular/cli: 1.2.4
@angular/compiler-cli: 4.4.6
@angular/language-service: 4.4.6

Repro steps

*ng new apm
*cd apm
*ng serve/ npm start
Observed behavior
webpack: Compiled successfully.
npm ERR! code ELIFECYCLE
npm ERR! errno<PHONE_NUMBER>
npm ERR<EMAIL_ADDRESS>start: `ng serve -o`
npm ERR! Exit status<PHONE_NUMBER>
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Desired behavior
It should run at-least. One interesting thing, one moment it worked when I made global and local CLI version same. That time the issue was, the ng live server was not detecting any file change. I made the title change in .ts file, after that it stopped working. I reverted my code, still its throwing the above error.
Mention any other details that might be useful (optional)

It appears the version of the CLI being used is fairly old.  Please try updating to the latest stable version (1.5.5 at this time).  After this please try running ng serve directly and report back any errors encountered.

I have updated the CLI, now its not throwing error, but not launching the page also. Looks like NG Live development Server starts and then stops.

After the above line, it comes back to the drive. When I go to localhost:4200, I get localhost refused to connect.

Yes. It comes back to command prompt without user interaction. I ran only ng serve, nothing else.

Something on your system appears to be killing the process.  The only thing I could suggest is to try a different port via -port <number>.  Otherwise this seems to be an issue that is particular to your system/system configuration.  As a result, this doesn't appear to be an issue with the CLI itself.  If your further investigation provides information to suggest otherwise, please re-open the issue.  Also, asking on a site such as StackOverflow may be useful.

Error: Cannot find module './replaceStringTransformer'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (D:\LR25\node_modules\common-tags\lib\index.js:28:34)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:53
Please help me out to solve this error


⚠ ClamAV has degraded performance

In 14b4f0b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 455 ms

Resolved: ClamAV performance has improved in 013e20a.


⚠ Bofrost.at has degraded performance

In 2fc1a60, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 959 ms

Resolved: Bofrost.at performance has improved in 99a66ae.


Support for OpenId Key Discovery in 2.0

I see that there is planned work to improve the usability of Jwt Bearer tokens in the  2.1.0,  milestone but is there any support for OpenId Key discovery in 2.0. Do I need to write my own token validator?

This is built-in. Set the Authority property and it will try to find the OpenID discovery document.

Yup, this exists. See @leastprivilege 's comment.


Use generic real, index types

Let's try this again, with formatting more faithful to the master!
Changes double and int--respectively used for "real number"- and index-like variables--with
templated Real_t and Index_t typenames. Designed to enhance compatibility and subclass-ability
for platforms and integration libraries using different precisions and/or integer widths.
I have respected the current release by assuming LAPACK unless disabled with -DANYODE_NO_LAPACK=1. The opposite is also an option (default=no LAPACK, enabled by -DANYODE_USE_LAPACK=1).

Thanks, this looks great!
The reason I went with ANYODE_NO_LAPACK instead of ANYODE_USE_LAPACK was that it made it somewhat simpler to update some other packages of mine to use this new version of AnyODE.


downgrade vinyl dependency to ^0.4.0

As I mentioned in a comment on 64325ae, the current version of gulp depends on a different version of vinyl-fs (and thus vinyl) than the version gulp-util 3.0.6 depends on. A given version of gulp and gulp-util should share the same underlying version of vinyl-fs/vinyl, surely?

@evocateur the vinyl update was just some new APIs so no breaking changes. vinyl-fs (on master, not pushed yet) is already updated and so is gulp on the 4.0 branch. theres no problem with having gulp-util be on a new version

Just read your comment, yeah it does cause a breaking change.  Unfortunately, reverting the change is also a breaking change and some people are already relying on the update. I'm on the side of not breaking it again.
Going forward we should probably discourage instanceof checks and add a vinyl .isInstanceOf function.

I just wasted a whole damned day trying to understand why my gulp plugin stream (that clones and manipulates vinyl File instances) wasn't behaving the same way in my tests as it was while being used in an external gulpfile.
instanceOf is not the issue, quite frankly. It was only used in my tests, not the plugin itself, and was overly paranoid. Instead of instanceOf, I could poke around and assert that all the properties of a File instance exist, but I'd rather not pollute my unit tests with that sort of brittle quacking.
gulp-util v3.0.6 is still backward-incompatible with gulp v3.9.0 in the current scheme because a plugin author who uses the File export of gulp-util (as almost every single available tutorial and example does) will expect the new API, attempt to modify something like basename on the File instances being passed into their plugin stream, and now it's broken when used in every currently-available installation of gulp.

@evocateur Don't use gulp-util, it is being deprecated. Also, I've add an isVinyl function to the vinyl module so no need for instanceof or duck-typing

Thanks for putting up with my crankiness. Looking forward to the future!


Support Hive

I really like this concept, but it's critical for us to be able to create permanent tables via a Hive metastore.  Would it be possible to support Hive at some point?

@rstrickland welcome!    Would you mind painting a picture of your setup?   Hive metastore is part of your Hadoop installation?  Or DSE?   I don't quite understand - table meta stored in Hive, but actual tables stored in C*?  Thanks!

We use a centralized Hive metastore that's shared by multiple Spark and EMR clusters that all serve different purposes.  The data is stored in multiple places, including C*.  However, with the lack of a good open source C*-Hive driver we've had to resort to creating temp tables every time we want to get at C* data.  It would be awesome if Filo supported legitimate Hive tables so we could bypass this step.

Got it.   Would it be fine to do this through Spark — i.e. you cannot use the filo-cli but use Spark API to create tables etc.   (since Spark already can connect to the Hive metastore)

On Nov 10, 2015, at 10:09 AM, Robbie Strickland<EMAIL_ADDRESS>wrote:
We use a centralized Hive metastore that's shared by multiple Spark and EMR clusters that all serve different purposes. The data is stored in multiple places, including C. However, with the lack of a good open source C-Hive driver we've had to resort to creating temp tables every time we want to get at C* data. It would be awesome if Filo supported legitimate Hive tables so we could bypass this step.
—
Reply to this email directly or view it on GitHub https://github.com/tuplejump/FiloDB/issues/41#issuecomment-155517637.

We could, but we do have BI tools that use Hive proper (i.e. not the Spark SQL thrift server).  Ideally it would be great if that would work as well, but I know that's a bigger effort.

Okay, I think I understand now.  You are looking for a proper FiloDB driver for HIVE that lets you query FiloDB from Hive itself.  Understood now.

On Nov 10, 2015, at 1:09 PM, Robbie Strickland<EMAIL_ADDRESS>wrote:
We could, but we do have BI tools that use Hive proper (i.e. not the Spark SQL thrift server). Ideally it would be great if that would work as well, but I know that's a bigger effort.
—
Reply to this email directly or view it on GitHub https://github.com/tuplejump/FiloDB/issues/41#issuecomment-155566538.

@rstrickland ok so to break this up into two steps:

Have a Hive driver (like DSE's) that automatically lets you query tables from Spark without having to do a CREATE EXTERNAL TABLE
Actually support queries directly from Hive without Spark.  Hmmmm....  I think this involves yucky input formats and Hive SerDes, etc.

Ok, scoped out the work for Hive metastore support of FiloDB tables for querying in Spark.  Spark has a HiveMetadataCatalog class which has a createDataSourceTable method.  So one possibility is that when the FiloDB daemon/library spins up, it automatically resolves differences between FiloDB tables and the Hive catalog.  Other times this sync could in theory happen is when a user requests tables or schema, but this would then require a custom Hive plugin in Spark.  Need to think about how to automate the syncing.
@rstrickland it appears in Hive you either have to register a table as Hive-supported (i.e. using Hadoop INputFormats) or non-Hive supported (for Spark datasources, for example).  Thus there might need to be some hack for namespacing the tables.   What do you think?

So are you suggesting creating temp tables on startup that would be accessible via Spark only?  I think the only way to get bona fide Hive support is to create a Hive SerDe. But your solution (if I'm understanding correctly) would solve the issue of having to recreate temp tables on startup for Spark or Spark SQL jobs, but would not allow for Hive queries via a BI tool.

@rstrickland you are right, the above proposed solution would not enable true Hive-only queries, though you can still connect BI tools to Spark SQL / Thrift server via the JDBC/ODBC drivers.   The SerDe/InputFormats required for true Hive-only operation would come as a second step.
Would you guys be willing to test out the Spark-only solution, before the full Hive solution comes?  What would the timeframe look like?

We would definitely test it whenever it's ready.
On Sunday, January 10, 2016, Evan Chan<EMAIL_ADDRESS>wrote:

@rstrickland https://github.com/rstrickland you are right, the above
proposed solution would not enable true Hive-only queries, though you can
still connect BI tools to Spark SQL / Thrift server via the JDBC/ODBC
drivers. The SerDe/InputFormats required for true Hive-only operation would
come as a second step.
Would you guys be willing to test out the Spark-only solution, before the
full Hive solution comes? What would the timeframe look like?
—
Reply to this email directly or view it on GitHub
https://github.com/tuplejump/FiloDB/issues/41#issuecomment-170403605.

--

Robbie **Strickland  *|Director, Software Engineering
w:*<PHONE_NUMBER>      e<EMAIL_ADDRESS>

@rstrickland check out https://github.com/tuplejump/FiloDB/pull/63
and LMK if this is roughly what you guys are looking for as a first step.  Would like some feedback first.
Thanks!

So the initial support has been merged.  Let's close this and open a new ticket for any issues or changes desired.


Allow a rule closure access to StructField

I needed the ability to access a field's reflect.StructField before deciding which rules to apply to the field in struct validation. I obviously couldn't change the signature of rules which operate on the struct fields' values. The approach I took was to implement a new struct validation method (ValidateStructFunc), which takes a modified FieldRules (FieldRulesFunc) which receives the StructField as an input and returns the list of rules.
My particular use was to perform validation only if a struct field matched a FieldMask, which requires access to the field's struct tags.
I ended up forking the library since there were a number of internal types and functions that validateStruct uses that I didn't want to copy. Another option could have been to perform the validation manually, but I decided I wanted to keep the process as close as possible to the validation in other areas of my application.
I wanted to present it here in case it is something you think could be generally useful. If so, I'm happy to add some tests and open a pull request. Otherwise feel free to close this issue.
My implementation
Thanks for the great library.

Thanks for sharing your work! Does Conditional Validation work for your use case?

Conditional Validation could definitely work. I probably should have taken a harder look it in the beginning, but I think I was trying to avoid the extra reflection and re-implementing the findStructField func. I also wanted to avoid passing the struct and field twice.
After doing it with conditional validation, this is what I end up with:
  err := validation.ValidateStruct(a,
    validation.Field(&a.CreatedAt, validation.When(InMask(a, &a.CreatedAt, filter, namer), UndeletableRule)),
    // other fields...
  )

This is with the forked version:
  err := validation.ValidateStructFunc(a,
    validation.FieldFunc(&a.CreatedAt, Fieldmask(filter, namer, UndeletableRule)),
    // other fields...
  )

With the forked version, I don't have to reflect and loop the struct fields for each field I want to check since it uses the StructField already available in validateStruct. The performance difference is small, there is less code, and it doesn't require any library alterations. I think conditional validation is the way to go.
Thanks for encouraging me take a second look at that.


[vite-plugin-dynamic-import] Generated runtime code has redundant judgment rules in some cases

For the following dynamic import
import(`./components/${singlePathName}/index.vue`)

If singlePathName is "A" or "B", in the following generated code, case "./components/A" and case "./components/A/index" are not necessary
switch (n) {
    case "./components/A":
    case "./components/A/index":
    case "./components/A/index.vue":
        return ...;
    case "./components/B":
    case "./components/B/index":
    case "./components/B/index.vue":
        return ...;
    default:
        ....

Okay! thanks for your feedback :)


Additional model if preprocessor is enabled

The program below reports one model too much if the preprocessor is enabled:
asp 1 0 0
1 0 1 1 0 0
1 0 1 2 0 0
1 0 1 3 0 0
1 0 1 4 0 1 5
1 0 1 6 0 1 7
1 0 1 8 0 1 5
1 0 1 9 0 1 7
1 0 2 10 11 0 1 4
1 0 2 12 13 0 2 10 9
1 0 2 10 11 0 2 12 6
1 0 1 14 0 2 5 10
1 0 1 15 0 2 7 10
1 0 1 16 1 1 2 14 1 15 1
1 0 1 17 0 1 -16
1 0 1 18 0 2 5 10
1 0 1 19 0 2 7 10
1 0 1 20 1 1 2 18 1 19 1
1 0 1 21 1 2 2 18 1 19 1
1 0 1 22 0 2 20 -21
1 0 1 23 0 1 22
1 0 1 24 0 2 5 10
1 0 1 25 0 2 7 10
1 0 1 26 1 2 2 24 1 25 1
1 0 1 27 0 1 26
1 1 1 5 0 1 2
1 1 1 7 0 1 3
4 6 f(a,b) 1 5
4 6 f(a,c) 1 7
4 11 friend(a,b) 1 4
4 11 friend(a,c) 1 6
4 11 friend(b,a) 1 8
4 11 friend(c,a) 1 9
4 9 smokes(b) 0
4 9 smokes(a) 1 10
4 9 smokes(c) 1 12
4 13 not_smokes(a) 1 11
4 13 not_smokes(c) 1 13
4 5 cf(0) 1 17
4 5 cf(1) 1 23
4 5 cf(2) 1 27
0

Compare:
➜ clasp -q 0
clasp version 3.3.8
Reading from stdin
Solving...
SATISFIABLE

Models       : 8
Calls        : 1
Time         : 0.000s (Solving: 0.00s 1st Model: 0.00s Unsat: 0.00s)
CPU Time     : 0.000s

and
➜ clasp --eq=0 -q 0
clasp version 3.3.8
Reading from stdin
Solving...
SATISFIABLE

Models       : 7
Calls        : 1
Time         : 0.000s (Solving: 0.00s 1st Model: 0.00s Unsat: 0.00s)
CPU Time     : 0.000s

@rkaminsk Thanks for the report.
It will take a while until I can tackle this. Not only am I completely swamped with work atm, I have also forgotten mostly everything about disjunctive logic programming and the preprocessor.
Maybe interesting: running bin/clasp bug.aspif --pre | bin/clasp -n0 -q also only returns 7 models. So, it's probably some issue in the translation step.

I could try to have a look too. The program is so small that it should be possible to trace everything that happens.

The program can be made smaller:
asp 1 0 0
1 0 1 4 0 1 2
1 0 2 6 7 0 2 4 3
1 0 2 4 5 0 2 6 3
1 0 1 1 0 2 3 4
1 1 1 2 0 0
1 1 1 3 0 0
4 1 x 1 1
4 1 a 1 2
4 1 c 1 3
4 2 pa 1 4
4 2 pc 1 6
4 2 na 1 5
4 2 nc 1 7
0

which is equivalent to
pa :- a.
pc|nc :- pa, c.
pa|na :- pc, c.
x :- c, pa.
{a}.
{c}.

Strangely removing the rule with x in the head and the problem goes away.

Thanks, @rkaminsk 👍
I'll have a look asap. And given these small programs, it shouldn‘t be too hard to find the place where I messed up.

Looks like the shifted rules are not correctly represented in the program dependency graph used in the unfounded set checker.
The problem only occurs when in a rule like
t|f :- c, d.

the body is replaced with a single atom during shifting. I.e. instead of creating the rule t :- c, d, not f, we create t :- a, not f..
If one drops this simplification (by removing the check for a root atom in LogicProgram::getEqAtomLit()), the unfounded models are no longer returned.
Note: This is mostly a note for me so that I remember what to investigate once I find a couple of hours :smile:

Disabled the problematic simplification for now.

Thanks so much!


Named random generation modifiers not working properly

Hello,
I am encountering an issue with Chatette v1.5.0 PyPI (installed via pip).
Rule: I don't like [world?WWII] war[ II?WWII].
Expected examples:

I don't like war.
I don't like world war II.

Generated examples:

I don't like war.
I don't like war II.
I don't like world war.
I don't like world war II.

I tested it with a .chatette file and the interactive console. Both methods generate the same sentences.

There is indeed a bug. I'll try to fix that as soon as possible.
Thanks for the heads up :)

I can see why this problem is occurring. However, this would need quite a lot of changes on the problematic code, and since I am in the middle of a refactor of this code, I will not fix it right now. This will be fixed as soon as the refactor is over (which I hope doesn't take too long).

That's ok, good luck on the refactor!

This is (finally) fixed in the latest version (v1.6.0) :)


2023 Toyota Highlander not in SP Vehicles List

I installed using installer.comma.ai/sunnyhaibin/test-c3 (sunny pilot 2022.11.13/test-c3/f34deb6/Nov 13) and got a car not supported error.  It directed me to the SP Vehicles menu to manually select my car (2023 Toyota Highlander).  The SP Vehicles list only lists Highlanders up to model year 2022.  I have a comma3 (dongle ID 9EF0 941B E9F8 057D).  It works fine on a 2017 Highlander (which I traded in for the 2023 Highlander).
I tried the standard openpilot release at openpilot.comma.ai, but also get the same unsupported car error.  I ordered a new harness, which looks identical to the old one.  The same problem occurs for either harness.  I made a note in the discussion section of openpilot, but haven't seen any replies for several days.
Any ideas you may have would be greatly appreciated.  I look forward to being able to use my comma3 again.  I will be glad  to send any additional info/pictures  you need.
Thanks.

I thought the following images may help speed up finding issue:
First, this is the version:

This is the dongle ID:

This shows the base SP Vehicles menu.  At the top you can manually select car:

This shows the Toyota Highlander section after scrolling down the list.  Notice the 2023 Highlander is not listed.  In fact, I saw no 2023 Toyota model  listed:

I purchased this comma3 last summer and installed in a 2017 Highlander.  It worked fine.  Could it be I have to recompile agnos to see the 2023 models?
Thanks.

2023 Toyota Highlander is now supported in the latest sunnypilot.


How to spawn Actor into editor world.

Hey, so I have been trying to place a static mesh into an editor world with this code:
import unreal_engine as ue
from unreal_engine.classes import Blueprint
from unreal_engine import FVector, FRotator
world = ue.get_editor_world()
blueprint = ue.load_object("StaticMesh'", '/Game/CoD/xmodels/foliage_desertbrush_1_LOD0.foliage_desertbrush_1_LOD0')
actor000 = world.actor_spawn(Actor, FVector(0, 0, 0), FRotator(0, 0, 0))

But I am getting this error
LogPython: Error: argument is not a UObject
LogPython: Error: Traceback (most recent call last):
LogPython: Error:   File "<string>", line 7, in <module>
LogPython: Error: Exception: argument is not a UObject

Does anyone know a fix?

As you've spotted, only subclasses of Actor can be loaded into the scene.
I don't think that "Actor" a valid class reference as you've used it here.
The way I'd recommend doing it is by creating a new uclass inheriting from actor, and then applying the static mesh to that. This is easiest to do from the editor, but can be done from python if you really really have to.
Once you've made your class, just load that with ue.find_class("LabelledPoint")

Hey, thanks for the answer, how can I create a new Uclass?

Hey, so my goal here is to import hundreds of assets and place them in the scene. I am not sure because I am kind of a noob but can UClasses be created with python itself? I already have a script working with the native python integration that comes with 4.21, but, I need to make the script into an Unreal Engine plugin, and from what I have investigated, you can't do that with that python integration.

When you drag a static mesh into the scene, it actually causes a static mesh actor to be spawned:

If you click on it, you'll notice it has a static mesh component. So, from Python you need to spawn the same actor, access that component, and set its mesh:
from unreal_engine.classes import StaticMeshActor, StaticMesh
mesh= ue.load_object(StaticMesh, '/Game/CoD/xmodels/foliage_desertbrush_1_LOD0.foliage_desertbrush_1_LOD0')
obj = ue.get_editor_world().actor_spawn(StaticMeshActor)
obj.StaticMeshComponent.StaticMesh = mesh

Thanks!

Hey
Is it possible to load unreal uasset from outside the unreal project?
For Example:-
ue.load_object(StaticMesh, 'S:/server/test_show/assets/props/colorCalibrator/SM_ColorCalibrator')
My unreal project is in my local "d:/my_project/"


Unable to obtain API key

I am unable to obtain the API key to try this tutorial. I tried to subscribe to the service, however, it wouldn't let me. The message I am getting is "//TODO".

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

ID: e3bd3540-b5b2-0e2a-c78b-064439267d3b
Version Independent ID: a488307f-8557-8f93-df46-07075cb081f3
Content: How to use the Anomaly Finder API with Python - Microsoft Cognitive Services
Content Source: articles/cognitive-services/Labs/Anomaly-Finder/quickstarts/python.md
Service: cognitive-services
GitHub Login: @chliang
Microsoft Alias: chliang

@sabrinasmai
Thanks for the feedback! We are currently investigating and will update you shortly.

@sabrinasmai Can you please try other types of accounts to get the free subscription? It should be easy to get it. Thanks.

@sabrinasmai We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Mapping values in a guarantee with array

Here's a very simple example of what I'm trying to do (PK6).
// Function that does some asynchronous stuff and returns a guarantee.
func do1(_ with:Int) -> Guarantee<Int> { ... }
func do2(_ with:Int) -> Guarantee<Int> { ... }

Guarantee<Int>.value([1, 2, 3])
.thenMap(self.do1)
.thenMap(self.do2).asVoid()
.done { ... }

The problem seems to be that I need to use thenMap to call do1() and do2() on each value in the array, but it returns a promise which causes the done to expect a catch. All my functions return guarantees so I want to be able to call them without converting to promises.
So my question is there another way to do this? or is there a way to map and return a guarantee instead of a promise?

This is an omission, PR welcome.
As a workaround do: recover{ fatalError("\($0") }
If you are sure there are only guarantees above this is safe.

PR Submitted. The change seem to be working in my code base.

PR merged.


Document plugin options and how to set them

I'm new to Babili, and am finding the docs frustratingly limited.

https://github.com/babel/babili/tree/master/packages/babel-preset-babili says that using .babelrc is 'recommended', but the babili command uses --no-babelrc - which seems contradictory
if I can't use .babelrc, is there a command option to set plugin options, and if so what's the syntax?
if I can't define options on the babili command, I should be able to use the babel command with .babelrc, right? Individual plugins, such as https://github.com/babel/babili/tree/master/packages/babel-plugin-minify-mangle-names, give examples of setting options, but AIUI this would mean only those plugins would be used, which is not what I want. I want to use the preset but set options on one or more plugins.
https://github.com/babel/babili/tree/master/packages/babel-preset-babili gives an example of setting options for the preset in .babelrc, but these either ('unsafe') don't correspond to a particular plugin or (mangle/blacklist) are in a different syntax from those which do. I can just about work out how these correspond by looking in https://github.com/babel/babili/blob/master/packages/babel-preset-babili/src/index.js, but ISTM it would be much better if these options were clearly documented.

1

If you're using babel-preset-babili you're using babel with a babelrc file. babili is a command line tool that just applies the transformations specific to babili and we don't want the presence of other babelrc to interfere with this as it will come out surprising - the transformations that are not specific to babili. But when using a preset, you explicitly specify alongside babili the other transformations you want.

2,3,4

The preset is able to toggle plugins as well as pass the options down to the plugins it uses and the corresponding plugin options are available in the respective plugin README which is also linked in the preset options. Refer to preset options given in the preset docs (https://github.com/babel/babili/tree/master/packages/babel-preset-babili). If you think the docs can be improved, we are accepting PullRequests and I'll be happy to merge it.

you explicitly specify alongside babili the other transformations you want

but I don't want any other transformations. I want to set options on the plugins that are part of the babili preset. With the babel command, I can specify options in a .babelrc or on the command line with no-babelrc. I'm not sure whether there is a command-line option for specifying plugin options, but if not I have to use a .babelrc. AIUI, the babili command is a convenience babel command with the babili preset pre-defined. But if it always uses no-babelrc, then how do I specify plugin options for the preset? If I can't do this with the babili command and have to use babel instead, then the docs should say so. I'm happy to create a PR to document this, but I can't do that until I know how this is supposed to work.
Point 4 was my bad, as I saw 'Via Node API' and stopped scrolling. The Options section does indeed document what needs to be defined. There is however a discrepancy: the babelrc section gives "blacklist": ["MyCustomError"] whereas the plugin docs state that this should be a JS object. Error, or is array also possible?

It is supposed to accept Array too. Thanks for reminding. I just pushed the change.
The command line now doesn't support the options to be passed to the preset. We can add that in future. You can use babel cli with a babelrc and this preset to add options (in the babelrc file).


pixi.js example question

Hi,
i have created the following example:
http://jsfiddle.net/kdoodo3t/11/
could you tell me why the red circle does not move until it reaches x=maxX? it seems it moves out of the boundary...
with WebGLRenderer it's scaled and with CanvasRenderer it's ok...any idea whats wrong?
It seems to be treating the coordinate system as always being 800x600
edit: seems i had a old version of pixi.js
i updated to the newest version: http://jsfiddle.net/kdoodo3t/20/
but why cant i see any circle rendered?

You've put the backgroundcolor and view in 2 separate objects, instead of in just 1.
your code:
renderer = new PIXI.autoDetectRenderer( //autoDetectRenderer WebGLRenderer CanvasRenderer(
    maxX, //512,
    maxY, //384,
    {backgroundColor: 0xFFFFFF},
    {view: myView}
  );

correct code:
renderer = new PIXI.autoDetectRenderer( //autoDetectRenderer WebGLRenderer CanvasRenderer(
    maxX, //512,
    maxY, //384,
    {   backgroundColor: 0xFFFFFF, view: myView}
  );

Also,  you can simply use requestAnimationFrame, PIXI already handles the polyfill  for you.

@whizzkid thanks for the info.
could you tell me what you exactly mean by: "Also, you can simply use requestAnimationFrame, PIXI already handles the polyfill for you." ?

Why the weird shape?
Because you're creating your renderer for a specific size, and then stretching your view in your programs init function.
this bit:
renderer.view.style.width = window.innerWidth + "px";   renderer.view.style.height = window.innerHeight + "px";
If you want to keep the correct aspect ratio, you should resize the renderer.
renderer.resize(window.innerWidth, window.innerHeight);
Also, you probably want to resize this whenever the window size changes, and not only in the init() function.
Recommend using a reusable texture?
That depends on your project. Will the circles graphics ever change?  if not, using a texture will be faster. Although you might not notice if you're not drawing a LOT of them anyways.
Are the circles NOT static and will stuff be drawn in it?  then don't use a texture.
Why dont you see all circles?
Because you're drawing them with this linestyle:
 circle.lineStyle(100, 0xFFFFFF);
That means the outline of the circle is 100 pixels wide.. the topmost circle obscures all the ones underneath it with its white outline. Change the 0xFFFFFF to 0x0000FF to see what it's actually drawing. you can't see it now because its a white background with a white line.
change it to
 circle.lineStyle(1, 0xFFFFFF);
(tip: dont draw stuff in the same color as the background if you're new to all of this. you would've seen this error yourself immediately)
and lastly about using requestanimationframe.  PIXI already did this bit for you:
window.requestAnimationFrame = (function() {   return window.requestAnimationFrame ||     window.webkitRequestAnimationFrame ||     window.mozRequestAnimationFrame ||     window.oRequestAnimationFrame ||     window.msRequestAnimationFrame ||     function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element) {       return window.setTimeout(callback, 1000 / 60);     }; })();
So you can remove that from your code. and requestAnimationFrame (that you already use) will simply just work :)

I've made some changes to your script:
http://jsfiddle.net/whizzkid74/kdoodo3t/26/

this can probably be closed.


voip-server -> vrp

having issues since FiveM is not allowing to connect from CEF to localhost Websockets,
I can clearly see people connecting to the voip-server, however, ingame in the console theres no errors, but no one is able to talk/hear people.
I'm not running the server on a localhost machine or whatever its a dedi.
The issues are not just me but anyone on the server, its like the audio does not get transferred or something.

Are you still encountering this issue?
If so, Are the FiveM server and VoIP server on the same machine?


Bumps cert-manager lib in cmctl

Pull Request Motivation
Bumps cert-manager version in cmctl's go.mod (cd cmd/ctl && go get github.com/cert-manager/cert-manager@7ea113504de21e2b9b65718bd2f86ee59980494b)
I did this the wrong way round as I have already pushed the 1.12.1 tag.
Release Note

NONE

/kind cleanup

/retest


is it possible to change image size on any notion page?

I would like all by embedded image to show smaller in size like one can do manually by dragging the image corner.
Is it possible to do so using notion-py?
Or any other script?
Thank you.

You can always download the image and resize it.
Also, there is a width query parameter when accesing the URL of image. Change it to a lower value and the resized version should be returned.

Got it. And I will look into both of those options.
But is it possible to somehow show the images smaller by default in the Notion browser / desktop app interface?
Ideally I would like to show every image that is attached on a page to show up as, say, only 400 pixel wide or 400 pixel tall by default.
That way when I attach images to a page, I do not have a page where text is so sparse because many images are showing on the page.
And would like to do so programmatically - dragging the corner is the manual way of doing it of course.

You could set width attribute on any ImageBlock instance.

Thank you. That sounds great. I will be sure to use it and thank you very much for replying!


on-close not working

I tried to use the on-close hook, but no luck so far. Neither a function call or just a flag set as in the examples does not work. Has this been updated for angular versions 1.4.0 -> ???

Actually solved this, but I don't understand how. The growl-notification element had to be deeper inside the div-structure for the controller to notice it, so this probably has to do something weird with the angular scopes...

@pikkupullo — Thanks for the update. Feel free to create a plunk if you want to discuss the actual code. I will close the issue for now. Thanks!


fix: Update examples in README to have consistent class names

Update the example in the README.md file so that class names used in the Controller/Reconciler class are consistent with the class names used in the other example classes.
I noticed this inconsistency when trying out the java operator-sdk for the first time and found it confusing.
Signed-off-by: Katherine Stanley<EMAIL_ADDRESS>

@katheris thank you!!


Setup option for self-managed AD

It would be nice to have an option for Self-Managed AD, or to omit the AD steps in the quickstart so we can manage that ourselves.

Those options are already there. If deploying into a new VPC you can select "Microsoft AD on Amazon EC2" as the Active Directory scenario (https://github.com/aws-quickstart/quickstart-microsoft-sql/blob/main/templates/sql-master.template#L214). If you want to use an existing Active Directory you can deploy into an existing VPC and enter your AD values.


Web Application Firewall (WAF) on SWA

Hi,
We would like to use a WAF to manage exploits and vulnerabilities for the Static Web App.  We need to do common things like IP restrictions, Bot detection and other common rules.
Reference:
https://docs.microsoft.com/en-us/azure/web-application-firewall/ag/ag-overview
What are the recommendations for this use case?
I thank you for your time.

Hey @ozkary,
As you mentioned above, you can use an Azure App Gateway and add the default hostname (or custom domain but note you will need to add it to the app gateway) as a backend in the backend pools section.
Similarly Azure Front Door also has a WAF option at the edge: https://docs.microsoft.com/en-us/azure/web-application-firewall/afds/afds-overview. You can also specify the default hostname as the backend pool in this scenario.
The remaining question you might have is "how do I lock down traffic from my WAF to my SWA?" For this we have an improvement coming in the next few weeks :)


shortcut  file dont't  display  when   open this software again

Describe the bug
shortcut  file dont't  display  when   open this software again
To Reproduce
Steps to reproduce the behavior:

Go to 'Settings->OnStartup'    selected  'option continue where you left off'
Open  a folder whatever  in  'Files' , but must  include shortcut  file   。
close this   'Files'    window at all
open   'Files'  again,you will see    you  closed  folder  last time
5.shortcut  file dont't  display
Expected behavior
display  shortcut  file  normal

Desktop (please complete the following information):

OS Version:Windows 10 1909 18363.1110
App version: [v<IP_ADDRESS>]

Additional context
if i refresh on folder ,shortcut   will be show

This issue should be resolved with #5270.

This issue should be resolved with #5270.


[Monitor - Opentelemetry Exporter] Execute Samples failing in nightly runs

Monitor - Opentelemetry Exporter nightly test runs are failing with:

Error message:
Found configuration in D:\a_work\1\s\rush.json

Rush Multi-Project Build Tool 5.63.0 - Node.js 12.22.12 (LTS)
Error: The command "execute:samples" is not defined in the package.json file for this project.
Available commands for this project are: "build", "build:browser", "build:node", "build:samples", "build:test", "check-format", "clean", "extract-api", "format", "functional-test", "generate:client", "integration-test", "integration-test:browser", "integration-test:node", "lint", "lint:fix", "pack", "prepare", "report", "test", "test-opentelemetry-versions", "test:browser", "test:node", "unit-test", "unit-test:browser", "unit-test:node", "unit-test:node:debug", "unit-test:node:no-timeout"
Use "rushx --help" for more information.
##[error]Cmd.exe exited with code '1'.

For more details check here:

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1646128&view=results

@hectorhdzg The sample run now times out starting 06/27 https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1671187&view=results.  Please have a look.