Support AS3 conditional compilation, aka compiler constants / variables

AS3 / mxmlc supports conditional compiler variables / expressions: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7abd.html
(Issue #45 mentions these but only one specific use case.)
You can use booleans to conditionally include entire blocks of code:
CONFIG::FOO {
  ...
}

The doc says you can tag definitions at the package-level (without curly braces):
CONFIG::debugging
public class MyButton extends Button {
...

CONFIG::release
public class MyButton extends Button {
...

I know that you can also enclose those definitions in `{}.
You can also make conditional things like import statements and inline classes, though the latter could be rare:
CONFIG::AIR { // This import doesn't exist for non-AIR target
  import flash.desktop.NativeApplication;
}

You can use constants, both booleans and Strings:
if (CONFIG::FOO) { ... }

var host:String = CONFIG::HOSTNAME;
trace("The host is: "+host);

The docs state you can pass expressions "a > b", though this one seems odd, I can't think of a good use case / reason you'd do that.
Syntax: Note that I've used the prefix CONFIG -- but I believe any / multiple prefixes can be defined. Uppercase prefix is convention, but I'm not sure it's required. The key name case doesn't matter.
Some of the use cases translate easily, but others are more complicated:

PREFIX::KEY { ... } could map to Haxe's conditional compilation #if PREFIX_KEY ... #end, with perhaps a special case prefix/key mapping to #if debug (programmable? default?)
Constants could be mapped to a file of Static public inlines with unknown type and value? It wouldn't compile, but it'd be tidy / obvious. Or perhaps a macro that converts Haxe -D definitions to static inline constants (string or boolean).

Interesting, the conditional blocks of code at least runs through the converter:
CONFIG::DEBUG { trace("In debug mode"); }

becomes:
/* AS3HX WARNING namespace modifier CONFIG::DEBUG */{trace("In debug mode");
}

IMO, ideally this would convert to:
#if CONFIG_DEBUG
  trace();
#end

Or, for the special case, CONFIG_DEBUG maps to just debug but not in all cases.

FYI, perhaps useful for working around this, I used the following to recursively replace BUILD::DEMO (a boolean compiler constant) with Constants.BUILD_DEMO in all files:
grep -rl BUILD::DEMO . | xargs sed -i 's,BUILD::DEMO,Constants.BUILD_DEMO,g'

This at least makes them parseable, and I can build a Constants class to provide the constant / inline values.


TODO list

TODO: use pin change interrupt to allow every pin.
TODO: integrate with pool controler to detect water flows through pH and ORP sensors
TODO: integrate with photodiode to detect water leakage (reading water counter)
TODO: integrate with ArduinoDomoticExcontrol

i want to use interrupt pin 3 pin for  IEC62053-21 3 unti, how to change it.
thank you


[Vagrant+VBox+Ansible] use static ip + explicitly set API Server bind address

Fixes #696 and #700 .
/cc @danehans @eparis @adamschaub

@rutsky LGTM
Tested successfully on my vagrant/coreos setup
/cc @eparis

@eparis can you please take a look at this PR, since @danehans tested these changes?
I'll rebase #724 after you merge this.

i broke it merging something else  :-(

I also just generally don't like it because we are doing vbox custom things. Can you please look for any reasonable way to solve this in ansible instead of with hard coding and vbox specifics.  If you tell me no, there is nothing better I'll take it, but I'm not in love.

Rebased.
@eparis this PR includes two things:

It adds Ansible variable kube_apiserver_bind_address that allows to specify bind address of API server: https://github.com/kubernetes/contrib/pull/712/commits/a3aacd1b39d7c82361d72db98c90f6dbb8e961b3

Changes Vagrant configuration to use static IP addresses for VMs on VirtualBox (https://github.com/kubernetes/contrib/pull/712/commits/cecbf160e880d03bd0954deeb50902151d68264c) and explicitly uses master IP in kube_apiserver_bind_address (https://github.com/kubernetes/contrib/pull/712/commits/7648fbc3fd4de8a346434f8e3ab7109c8554b439).

@eparis

I also just generally don't like it because we are doing vbox custom things. Can you please look for any reasonable way to solve this in ansible instead of with hard coding and vbox specifics.

I'm not really following you here. Vagrant+VirtualBox is specific environment that in one or another way requires specific configuration.
It's not possible to treat all Vagrant+VirtualBox quirks only in Ansible, because some information should be explicitly specified for Ansible, either from group_vars/all, or from Vagrantfile.
I chose to write proper Ansible environment in Vagrantfile because in this way it simplifies K8s deployment on Vagrant (just vagrant up, not edit group_vars/all; vagrant up).
By switching to static IPs instead of DHCP in VirtualBox I make VirtualBox configuration closer to other configurations (i.e. bare metal).
Currently hostnames are managed in Vagrant-configuration by explicitly writing /etc/hosts file in vagrant-ansible.yml, so we can't use DHCP.
In ideal world Vagrant+VirtualBox configuration should be identical to bare metal configuration, but due to issues like https://github.com/mitchellh/vagrant/issues/2779 it's far from being identical to real world configurations.
There is no need of additional "Vagrant+VirtualBox" configuration in ideal world, because Vagrant+VirtualBox is trying to emulate real world configuration, i.e. bare metal.

Note that I changed VBox IPs range from <IP_ADDRESS>/24 to <IP_ADDRESS>/24 in the last commit: https://github.com/kubernetes/contrib/pull/712/commits/740d6af5c3e52f804c26250daff11dbda6e486e1
<IP_ADDRESS> intersects with Flannel default IPs range: <IP_ADDRESS>/12.
Note, that I previously used not just random range, but range that VirtualyBox is actually assigned on my local setup.
So technically this PR is also fixes potential collision between VBox VMs IPs and Flanneld virtual IPs.


Log files are world-writable.

The log files are set to world-writable.  It looks like this is done here: https://github.com/GoogleCloudPlatform/sapagent/blob/1e926c36b8448b1c72edbf2b11d4abf76672aad2/internal/onetime/onetime.go#L158
These log files are triggering security findings.

Hi @natedogith1 , thanks for raising the issue.
I can explain the rationale for having the logs writable by other users in the Agent for SAP.
The onetime executions(such as backint, hanadiskbackup etc) can be run by multiple users on the machine. Let us take a scenario where

user-1 ran the one time execution and this created a /var/log/google-cloud-sap-agent/backint.log file.
Another user say sidadm-1 runs the backint command - they should still be able to write to the same log file.

If the log file did not have a world write the log to write would fail for any user other than the one who created it.
Let me know if this addresses your concerns.

Our security requirements (based off of CIS Benchmarks) requires that all world-writable directories have their sticky bit set and that there are no world writable files.  I haven't seen this issue before with other software, but if this is a requirement we can probably document an exception.

Thanks - We will add comments in code and update public docs indicating why we do this.

Commit 6994cc9 fixes this issue. the fix will be part of the upcoming release of the agent.


Extend CI to build an ios release

https://docs.flutter.dev/deployment/ios

I think this does not make sense without https://github.com/itchysats/10101/issues/409

Differently said, let's block this on #409

@bonomat do you want to combine the tickets? In my point of view building and releasing the app are different tasks. I guess this one is rather blocking #409 and not the other way around?

I would put this on hold as it turns out to be not so easy to get the certificates and keys to CI.
For now I will have to publish the releases manually.


Errors when running test files on Linux

I tested Vale with F* in Linux with the following command:
mono $HOME/vale-release-0.3.19/bin/vale.exe -fstarText -in common.vaf -out common.fst -outi common.fsti
fstar.exe --query_stats common.fst

I'm able to run it for common.vaf and forall.vaf but most of the instruction-specific files which include files like
include "../../../fstar/code/arch/x64/X64.Vale.InsBasic.vaf"
include{:fstar}{:open} "TestFStar"
include{:fstar}{:open} "FStar.Seq.Base"

are giving the following errors:
error at line 21 column 9 of file $HOME/hacl-star/vale/code/test/Vale.Test.X64.Memcpy.vaf:
cannot find id 'locs_disjoint'

error at line 18 column 14 of file $HOME/vale-0.3.19/tools/Vale/test/test.vaf:
cannot find type 'nat64'

error at line 41 column 5 of file $HOME/vale/tools/Vale/test/FTypeVale.vaf:
cannot find type 'byte'

I'm assuming these types have been defined in F* and somehow the compilation is not able to fetch these into the code.
Any help would be helpful.

Vale cannot read F* files directly, so the types have to be declared as Vale types in a Vale file.  To help with this, we use the tool bin/importFStarTypes.exe to read in F* "dump" files and extract the F* types into Vale .vaf files.  The SConstruct file contains examples of how to use this.  It runs importFStarTypes.exe as follows: Command(types_vaf, dumps, f'{mono} {import_fstar_types_exe} {dumps_string} -out {types_vaf}'), where types_vaf is defined as types_vaf = f'{source_base}.types.vaf'.  This puts the types into a new .vaf file with the suffix .types.vaf.  Later, the SConstruct file adds these as extra include files using the -include {target}.types.vaf option to Vale.

After a long effort, I was able to run the SConstruct using scons. However, I had to copy the Fstar-master repo into the Vale root folder. Then running 'scons --FSTAR --FSTAR-MY-VERSION'   helped me see what you meant by import FStar types. Thank you for help.


Check for upper oven light when there is a lower oven

Resolves issue #121
Both lights are detected properly, and I can turn both on/off.

Please rebase to the dev branch, if the issue is still there, I will merge in

Please rebase to the dev branch, if the issue is still there, I will merge in

Done. I did this small one through the github web UI so it'll take me a bit to get it down locally and make the changes. I guess I just saw master and assumed the branches were set up as the standard master::stable vs something like main::dev that many have migrated to in order to avoid the unfortunate racism associated with master.


Create a baseline test that exercises existing AES implementation on FPGA system

To help perform the various FPGA end-to-end tests we first need to produce a baseline test that performs an AES operation initiated from software. This will involve writing a C program that uses the AES block for at least one operation and a way of checking the result returned is correct.

Notes:

How does OpenTitan AES verilog tests work?
What c tests are available for AES?

Notes:

How does OpenTitan AES verilog tests work?
What c tests are available for AES?

We are using aes_test as a baseline test. See https://github.com/project-oak/silveroak/blob/main/silveroak-opentitan/aes/RunningInOpenTitan.md#testing-with-the-silver-oak-version-of-the-aes-core


NNBD: Analyzer does not throw error for Future(() => null) when T is non-nullable type

Dart VM version: 2.8.0-dev.20.0 (dev) (Fri Apr 3 10:19:55 2020 +0200) on "windows_x64"
The following source code example throws a compile error for the line 4 and does not throw error for the line 5:
import "dart:async";

main() {
  Future<int>(() => "");
  Future<int>(() => null);
}

Seems like error should be thrown for the line 5 too.
Sample output is:

$> dartanalyzer --enable-experiment=non-nullable test.dart
Analyzing test.dart...
error - The return type 'String' isn't a 'FutureOr<int*>*', as required by the closure's context. - test.dart:4:21 - return_of_invalid_type_from_closure
1 error found.

with the NNBD sdk this example of yours works fine. This issue will get fixed when the unfork CL https://dart-review.googlesource.com/c/sdk/+/138902 lands.


[Question]: Add model by ollama in model provider page, user can't choose the model in chat window.

Describe your problem

我添加了qwen2模型，但是我在助手设置模型时并没有发现qwen2模型

#2465 Same issue.


Local run fails because of ambiguous arguments

Is that broken or am I'm doing something wrong?
$ bundle exec danger local
Running your Dangerfile against this PR - https://github.com/CocoaPods/CocoaPods/pull/5219
Turning on --verbose

fatal: ambiguous argument 'danger_base': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'danger_head': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Tested versions
Danger 0.7.3, 0.7.2
Git 2.8.1, 2.6.4

I'm seeing it too

( It does run my Dangerfile though )

It could be related to the git version, we had issues with that before.

I think we need to re-rewrite the git diff parser again, I don't like where this current one is. It works but it has weird side effects like that. Perhaps its simplest that we write our own diff ASCII output parser.

We could base it on this library

I'm going to debug this in 4 hours

#134 should fix this

Sorry, posted this on the wrong issue 😕
so this is actually because the call that's being done in runner.rb isn't in the local runner, and that call sets up the branches.

This should be fixed in 0.7.4 @mrackwitz which just got released

I'm running into this issue, not calling with local though running on CI.
/Users/builduser/.rvm/gems/ruby-2.2.2/gems/git-1.3.0/lib/git/lib.rb:937:in `command': git '--git-dir=/Users/builduser/jenkins/workspace/mobile-consumer/mobile-iphone-consumer/.git' '--work-tree=/Users/builduser/jenkins/workspace/mobile-consumer/mobile-iphone-consumer' diff '--numstat' 'master' 'dbeard_danger_implement_warning_for_nst_event_changes'  2>&1:fatal: ambiguous argument 'dbeard_danger_implement_warning_for_nst_event_changes': unknown revision or path not in the working tree. (Git::GitExecuteError)
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/git-1.3.0/lib/git/lib.rb:861:in `command_lines'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/git-1.3.0/lib/git/lib.rb:362:in `diff_stats'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/git-1.3.0/lib/git/diff.rb:113:in `cache_stats'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/git-1.3.0/lib/git/diff.rb:34:in `lines'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/scm_source/git_repo.rb:33:in `lines_of_code'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/dangerfile_dsl.rb:124:in `method_missing'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/dangerfile.rb:29:in `block in print_known_info'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/dangerfile.rb:28:in `each'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/dangerfile.rb:28:in `print_known_info'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/dangerfile.rb:58:in `parse'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/lib/danger/commands/runner.rb:48:in `run'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/gems/danger-0.7.4/bin/danger:5:in `<top (required)>'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/bin/danger:23:in `load'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/bin/danger:23:in `<main>'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
	from /Users/builduser/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'

Closing as fixed 👍


Support Heroku deployments

Migrated from feathersjs/feathers#250:
We also have some thoughts around being able to do feathers deploy or feathers deploy:heroku and it will deploy your app.
We can start small and just support Heroku but we might want to wrap Otto in the future in order to support easy dev and prod deployments.

We had discussed in Slack that the first order of business will be trying to be able to deploy to Heroku and then we'll see what we learn from that.

@derek-watson and I had a google hangout the other day. We talked about using the heroku tool belt but using the API with some sort of .feathers file that stores your credentials would be better because you can't easily install the tool belt programatically.
The other thought was to have a feathers.json that has your development and production config so that we can use that to determine what and where to deploy.

I don't know how useful a Heroku specific deployment tool would be since you can authenticate Heroku to automatically deploy whenever pushed to a particular branch (default master). I could see the value however in a generic deployment tool with sub plugins which could support anything from AWS EC2 to Heroku to Docker based deployments.
Of course having a tool that allows me to run feathers deploy without ever having configure anything in Heroku would be amazing. Not sure how feasible that is. I'd be glad to contribute to the ongoing discussion (can't commit dev time but glad to chat about different directions). Maybe this could even be a separate cli tool (feathers-deploy)?

After some experimentation we're not going to tackle this. It's pretty simple to do yourself as it's like any other Express app. You can simply refer to this guide https://devcenter.heroku.com/articles/deploying-nodejs.

See https://github.com/feathersjs/feathers-docs/issues/66 for how to set the right Port


.ovpn will connect to PiVPN, but not the .mobileconfig I've created for VPN on demand…

Hi there,
My ultimate goal is to have my iPhone automatically connect to my PiVPN when it is not using my home wifi network. I already spent about 15 hours on this issue. I've followed the instructions given on the OpenVPN page for creating the .mobileconfig file. I already have an user profile created with 'pivpn add nopass' to get the unencrypted private key, as this issue was already discussed here.
Everything seems allright, but the OpenVPN app will not connect. Although the same settings already work as .ovpn file. But not the mobileconfig.
I've attached my .mobileconfig, but changed the keys and of course my address I am connecting to, just for security reasons.
https://pastebin.com/ccNtSt4m
I can't find the problem. I tried to connect to PiVPN on mobile data.

The logfile says…
Nov  2 15:36:24 pi ovpn-server[405]: tls-crypt unwrap error: packet too short
Nov  2 15:36:24 pi ovpn-server[405]: TLS Error: tls-crypt unwrapping failed from [AF_INET]<IP_ADDRESS>:54319

Yes already figured it out. My problem was that the key was set to tls-auth instead of tls-crypt. Now it is working.


Make date time parsing more lax w.r.t. missing a time zone offset

add unit tests + bump version of spec -> 1.0.1 + version of impl -> 0.7.8 + get Kotlin unit tests to run from Maven

This should fix https://github.com/ehn-dcc-development/dgc-business-rules/issues/31

Looks good :)


New Instance level checks

New checks to support Resource governor config, tempdb config, startup services, LPIM, and IFI

@andrewalumkal Might be worth capturing the format of the SQLChecks config file in the documentation, as it isn't immediately clear for something like the RG check what the config file should look like.


Replacing generator activation from relu to leaky_relu to avoid sparse gradients

Replaced generator activation from relu to leaky_relu to avoid sparse gradients. Even though the markdown in notebook mentions - "We use leaky relu activation except for the last layer which uses tanh activation", the code uses relu activation. (The generated outputs are also much better when leaky_relu is used. See image below)

The input noise (input to the generator) is sampled from the normal distribution
noise = tf.random_normal([BATCH_SIZE, noise_dim]) but the comment above this line mentions -  "generating noise from a uniform distribution". Also changed this to avoid confusion.

I signed it

@alextp @asimshankar Can you please take a look?

Can you base this off of https://github.com/tensorflow/tensorflow/pull/23035 ? That has a lot of other changes we want to make and should be merged soon.

Thanks for your pull request @gowtham1997. FYI I already fixed the activation issue of the generator (it should have been LeakyReLU). It might be easier if I just fix the text regarding the input noise input distribution in my PR #23035. As @alextp mentioned there are lots of changes in PR #23035.

Sure @alextp
@margaretmz  Your PR seems to take care of both my changes, so I don't think I can add anything for sending a PR against your branch.


[feature] Confirm before deleting a Group

I just accidentally deleted a group that was attached to quite a few sites with some customizations I worked on quite a bit 😢
Would be great if there was some prompt before actually deleting it

yes! maybe some basic JS or other confirm dialog that can bind by class ".needs-confirm"

+1. Additionally, the group Delete button is visually the same as the Edit and Unlink buttons, compared to the watch Delete button:


fix:err_package_path_not_exported error in typescript

I fixed the error by adding "require" field to the "exports" field in package.json.

AdminJS packages are ESM-only. Require exports are omitted on purpose

AdminJS packages are ESM-only. Require exports are omitted on purpose

Without that I can't get it to work in my typescript project. I tried all kind of configurations in tsconfig without success. That was the thing that finally did it for me.

set module to nodenext and remove moduleResolution, your project must be esm compatible though

Still won't work. I had to switch to bun.js. It's working without issues now.


Add ESP32-C6 and ESP32-H2 support for get_security_info

esp-flasher-stub v0.2.0 with esptool.py produces the following error for ESP32-C6 and ESP32-H2:
A fatal error occurred: Failed to get security info (result was 01C3: Unknown result)

This PR solves the above issue.
`--> esptool.py --port /dev/ttyUSB0 --chip esp32c6 get_security_info
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-C6 (QFN40) (revision v0.0)
Features: WiFi 6, BT 5, IEEE802.15.4
Crystal is 40MHz
MAC: xxxxxxxxxxxxxxx
BASE MAC: xxxxxxxxxxxx
MAC_EXT: xxxxxxxxx
Uploading stub...
Running stub...
Stub running...

Security Information:
=====================
Flags: 0x00000000 (0b0)
Key Purposes: (0, 0, 0, 0, 0, 0, 12)
Chip ID: 13
API Version: 0
Secure Boot: Disabled
Flash Encryption: Disabled
SPI Boot Crypt Count (SPI_BOOT_CRYPT_CNT): 0x0
Hard resetting via RTS pin...

`--> esptool.py --port /dev/ttyUSB0 --chip esp32h2 get_security_info
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-H2 (revision v0.2)
Features: BLE, IEEE802.15.4
Crystal is 32MHz
MAC: xxxxxxxxxxxx
BASE MAC: xxxxxxxxxxx
MAC_EXT: xxxxxxx
Uploading stub...
Running stub...
Stub running...

Security Information:
=====================
Flags: 0x00000000 (0b0)
Key Purposes: (0, 0, 0, 0, 0, 0, 12)
Chip ID: 16
API Version: 0
Secure Boot: Disabled
Flash Encryption: Disabled
SPI Boot Crypt Count (SPI_BOOT_CRYPT_CNT): 0x0
Hard resetting via RTS pin...

Internal reference: ESPTOOL-848

@SergioGasquez @radimkarnis PTAL


Implement MapVirtualColumn.makeDimensionSelector properly

Fixes https://github.com/apache/incubator-druid/issues/5848.

@nishantmonu51 thanks. Addressed your comments.


installing wlroots (0.16.1-2) breaks dependency 'wlroots<0.16' required by wayfire

i was trying to update the system and
installing wlroots (0.16.1-2) breaks dependency 'wlroots<0.16' required by wayfire
this shows up
I'm using arch

How does this information relate to waybar?


chore(main): release 1.5.0

:robot: I have created a release beep boop
1.5.0 (2024-02-01)
Features

style: improve mobile interface (#34) (bae6f25)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ai4os/ai4-dashboard/releases/tag/v1.5.0 :sunflower:


Images not resolving properly in PDFs

Expected Behavior
Images should appear in the PDF
Actual Behavior
Images do not appear. The log has many entries like:
 [fop] [ERROR] Image not found. URI: file:/private/var/folders/cx/_fvptjtx2l3d9_hvsbwqr6mh0000gp/T/OxygenXMLTemp/ditaTemporaryOutputDir-1608586795964/t1/t2/t3/t4/t5/99e4452f31d74a93d59f9107490c7728e2310be8.png. (See position 95181:1162)
      [fop] [ERROR] Image not found. URI: file:/private/var/folders/cx/_fvptjtx2l3d9_hvsbwqr6mh0000gp/T/OxygenXMLTemp/ditaTemporaryOutputDir-1608586795964/t1/t2/t3/t4/t5/cb73cab4d61a29a9c631b48afda8652cfa4a479b.png. (See position 95192:1162)
      [fop] [ERROR] Image not found. URI: file:/private/var/folders/cx/_fvptjtx2l3d9_hvsbwqr6mh0000gp/T/OxygenXMLTemp/ditaTemporaryOutputDir-1608586795964/t1/t2/t3/t4/t5/e4416ea3622f39033e036be22058fcc84087d83a.png. (See position 95204:1162)
      [fop] [ERROR] Image not found. URI: file:/private/var/folders/cx/_fvptjtx2l3d9_hvsbwqr6mh0000gp/T/OxygenXMLTemp/ditaTemporaryOutputDir-1608586795964/t1/t2/t3/t4/t5/f90890eb1f627eaa3ed6b6a29e536698a6b3b98f.png. (No context info available)
[fop] [ERROR] Image not found. URI: file:/doc/source/d5e8e5eacc51c9a5deadc32cf9120abbe13c4316.png. (No context info available)
      [fop] [INFO] Rendered page #3.

Possible Solution
It appears that the renderer is expecting the temp file name, but is looking in the source dir rather than the temp dir?
Steps to Reproduce

Create a ditamap with topics that contain multiple images
For example:<image href="../image/newlanding-spotlight-icon.png" id="image_snk_cd5_1kb" placement="inline">
  <alt>Spotlight icon</alt>
</image>

Run a PDF transform
Open the PDF in a PDF viewer

Environment

DITA-OT version: 3.6
Operating system and version:
macOS Catalina 10.15.7
How did you run DITA-OT?
tried Jenkins, oXygen, command line. None of the PDFs contained images.
Transformation type:
custom

Transformation type:
custom

@shudson310 The default PDF transformation should resolve images as expected.
Can you confirm that this also works in your environment with the same source code?
— If so, the issue is likely related to your custom transformation type.

Basic PDF transform resolves images, so must be something in custom. TBH the custom plugin was written for 2.4.4, so will have to figure out what needs to change.

Basic PDF transform resolves images, so must be something in custom. TBH the custom plugin was written for 2.4.4, so will have to figure out what needs to change.

Found the offending code in our custom plugin. Images are working as expected now.

Found the offending code in our custom plugin. Images are working as expected now.


⚠ Bofrost.fr has degraded performance

In c5682dc, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1161 ms

Resolved: Bofrost.fr performance has improved in e607e5f after 6 minutes.


"Movila Banului", "Cioranca" and "Limpeziș" are listed in the drop-down menu

Description:
"Movila Banului", "Cioranca" and "Limpeziș" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Movila Banului" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Movila Banului, BUZĂU (Movila Banului)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Cioranca" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Cioranca, BUZĂU (Movila Banului)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Limpeziș" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Limpeziș, BUZĂU (Movila Banului)".


Unable to set maximumImagescount to 1 in Android

Set to >= 2 is ok, if set to 1, in android, the following error message appears: "Get Picture Error: Cannot call method 'getPictures' of undefined".  My javascript code is as follow:
function MeBtnGetPicture() {
try {
window.imagePicker.getPictures(
function (results) {
for (var i = 0; i < results.length; i++) {
alert('Image URI: ' + results[i]);
}
}, function (error) {
alert('Error: ' + error);
}, {
maximumImagesCount: 1,
width: 100
}
);
} catch (err) {
alert("Get Picture Error:" + err.message);
}
}

Sorry, wrong information!  It can be set to 1.  The real problem is: everytime I build the solution, this function fail at the N + 1 built but succeed at the N + 2 built.


CheckBox control's check box size not changed

Describe the bug
CheckBox control's check box size not changed with different size. CheckBox control's content only clipped.
Steps to reproduce the bug

Run the attached sample.

Expected behavior
CheckBox control's check box size should varied based on width and height.
Screenshots

Version Info
OS: Windows 10
NuGet package version:
Microsoft.WinUI 3.0.0-preview4.210210.4
Additional context
Sample link:
CheckBox_Size.zip

That's not how the control is designed, the area around the control resizes, giving more space to the text.
There should be light weight style Resources you can change to assist the size of the actual box and it's checkmark however.
Something like Xbox should be able to change it without re-templating the control

Thats right, you can change the checkbox square size by overriding this resource: https://github.com/microsoft/microsoft-ui-xaml/blob/cbbc626314436b24ae3c73fe33ad9b475ce31cb1/dev/CheckBox/CheckBox_themeresources.xaml#L361


Erik the Outgolfer: Watch<EMAIL_ADDRESS>

Erik the Outgolfer requests the watch of the watch_keyword<EMAIL_ADDRESS>See the MS search here and the Stack Exchange search here.

<EMAIL_ADDRESS>has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Coverage remained the same at 63.78% when pulling e1a7794c06119b2920e5fb810ddb0fdf05b80c58 on auto-blacklist-1538835101 into 62162ff94d256264dab4b3363f9d9f68ae3d09ec on master.

ABANDONED, just like #2456. If #2458 appears similar to this one, you most probably want to !!/approve it.


Windows stay on top after disabling Always On Top

Microsoft PowerToys version
0.80
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Always on Top
Steps to reproduce

Enable Always on Top
Use the shortcut to set a window to "Always be on Top"
Disable Always on Top
The window no longer has the "Always on Top" border, but continues to remain "Always on Top"

✔ Expected Behavior
When "Always on Top" is disabled, any windows that were set to appear on top have that status removed.
❌ Actual Behavior
When "Always on Top" is disabled, the window no longer has the "Always on Top" border highlight, but continues to remain "Always on Top"
Other Software
No response

/dup #15476


Is CrowdStrike Falcon reporting nvm-windows as grayware with a 60% confidence?

Issue:
there is a Chocolatey package in the public repo for nvm-windows.
During the approval process for new versions (1.1.9) Chocolatey scans the package with a number of antivirus, a service provided by Virus Total, and then publishes the report, and the Virus Total report for nvm-windows 1.1.9 is reporting 1 detection.
The report specifically lists CrowdStrike Falcon as reporting "Win/grayware_confidence_60% (D)".
My own understanding of that statement is that CrowdStrike Falcon may be reporting this packages as grayware with a 60% confidence.
Here is the report:
https://www.virustotal.com/gui/file/4b16e9289a41527f17eca80c745688c6af6d10a882294bf94b2ed71c80fa42ef/detection
Here is the Chocolatey package approval conversation:
https://community.chocolatey.org/packages/nvm/1.1.9
Expected Behavior:
The Virus Total service should not detect any vulnerability related to this product.

I've never even heard of CrowdStrike Falcon until now, and there aren't any details of why it was marked this way. My understanding (based on quick research) is it is based on an ML algorithm, designed to detect adware. I have no idea why NVM4W would be marked this way.
Additionally, the reviewer in the chocolatey package stated the following:
nvm has been flagged as part of automated virus scanning.
Package virus scanning found that at least 1 file within, or downloaded by, the package has between 1 and 5 VirusTotal detections associated with it
This is not enough detections to prevent the approval of this package version.

The key part is This is not enough detections to prevent the approval of this package version.
Finally, this project doesn't maintain the chocolately package. Obviously we don't want it to be reported as a virus - and I don't think the maintainer is modifying the app, but without more specific detail, there is no clear action we can take.


Sync to CalDAV

Summary: What to map the Event Category to?
1. Using Separate Calendars for Each Category:

Description: Create a distinct calendar for each category.
Pros: Easy visualization and native separation of events; better client support.
Cons: Scalability issues with a large number of categories; increased management overhead.

2. Using Calendar Collections:

Description: Use higher-level calendar collections to group multiple calendars under broader categories.
Pros: Logical grouping of related events; might simplify some management aspects.
Cons: Less granular categorization; potential client support variability.

3. Using the CATEGORIES Field:

Description: Add a standard CATEGORIES property to each event.
Pros: High interoperability; widely supported by CalDAV clients; users can filter and color-code events.
Cons: Limited to predefined categories unless clients support custom categories.

BEGIN:VEVENT
<EMAIL_ADDRESS>DTSTAMP:20231010T120000Z
DTSTART:20231010T130000Z
DTEND:20231010T140000Z
SUMMARY:Meeting with Team
CATEGORIES:Work
END:VEVENT

4. Using Custom Metadata:

Description: Add custom properties (prefixed with X-) to events.
Pros: Flexible, allows additional metadata beyond standard properties.
Cons: Limited client support and interoperability; not universally recognized.

BEGIN:VEVENT
<EMAIL_ADDRESS>DTSTAMP:20231010T120000Z
DTSTART:20231010T130000Z
DTEND:20231010T140000Z
SUMMARY:Meeting with Team
CATEGORIES:Work
X-COLOR:#FF0000
END:VEVENT


@vercel/remix npm always behind official remix - How to keep in sync with official packages?

Currently, official remix packages are on version 2.10.2 (latest), whereas @vercel/remix is still on 2.10.0 (latest). When updating packages it is a bit annoying when @vercel/remix always falls behind. I can understand, if there is a small time lag, but in this case, 2.10.2 has been published more than a week ago.
I thought, there is some automatic procedure that ensures syncing of versions, is that the case? How can this project ensure version updates are published in a timely manner?

There is a workflow which is supposed to keep the repo in sync and trigger a publish of the new version when detected. Seems like something isn't quite working right with that. We'll look into that soon.
For now, @vercel/remix v2.10.2 has been published manually.

@TooTallNate It seems like it's behind again.
└─@vercel/remix 2.10.2
 └── ✕ unmet peer<EMAIL_ADDRESS>found 2.10.3

I (hopefully) fixed the syncing script (6f56b5bfaa071f40c0b53897dd408ba816b67529), and updated @vercel/remix for v2.10.3 (1c444c94a5affacbcf1c308e3b4f826263be9932).
Considering the source of this issue (the syncing script) has been now fixed, I will close this issue. Please create a new one if you are still seeing @vercel/remix falling behind in the future.


how to check the latest version and update thorium in Windows 7?

@candrapersada Well, with the regular versions for Windows 10+, we have an updater based on librewolfs updater. It's kinda clunky tho.
For this, we don't have one. Just check here like once a month, and see if a new release is out whose version number is newer than your currently installed one.
To view the currently installed one, go to chrome://version

@candrapersada Im sorry. It because the updater code is one of the few things that are proprietary, Google Chrome only. The Chromium repo has the directory for it, along with some stub header files, but is missing all the code and "glue" to make it work in Chromium.


fix: debugging issue in eva

Should fix the models.yolo not found error found when running debugger on eva.
remove yolov5-pip package and instead uses torch.hub for yolov5 model.

Add changes to the https://github.com/georgia-tech-db/eva/blob/master/CHANGELOG.md


Enable 🎩 Top Collections on landing for Basilisk once there will be data

Current State:

:white_check_mark: working on /rmrk old landing
:white_check_mark: working on /snek old landing (but only 2 results, rest has null floorprice)
✅ working on new landing, /?redesign=true
🔴  no data on /bsx old landing, I'm hidding component for now
🔴 got some cleaning to do in component 🧹

Originally posted by @roiLeo in https://github.com/kodadot/nft-gallery/issues/3869#issuecomment-1260803799

I've just now noticed that the size of boxes here is not unified, maybe we want it like this, maybe we don't?

I've just now noticed that the size of boxes here is not unified, maybe we want it like this, maybe we don't?

size of screen? Numbers are big, it make multiple lines, I might reduce the collection name text


Personas Marketplace

Why
I want to access other people's personas
Description
Introduce the ability for folks to make their personas public on a marketplace so that third parties can query their data. For instance: I want to make an Allygn persona who is an expert at SF city politics.

Good idea, will need differentiation with the GPTs marketplace. Appended to the roadmap.


Suppressing Cbc command line output

When running the solver, I get the following output to my command line:
Welcome to the CBC MILP Solver
Version: 2.10.10
Build Date: Apr 20 2023

command line - Cbc_C_Interface -solve -quit (default strategy 1)
Continuous objective value is 12.5141 - 0.00 seconds
Cgl0004I processed model has 3 rows, 5 columns (5 integer (1 of which binary)) and 15 elements
Cutoff increment increased from 1e-05 to 0.0999
Cbc0012I Integer solution of 12.6 found by DiveCoefficient after 0 iterations and 0 nodes (0.00 seconds)
Cbc0001I Search completed - best objective 12.6, took 1 iterations and 0 nodes (0.00 seconds)
Cbc0035I Maximum depth 0, 1 variables fixed on reduced cost
Cuts at root node changed objective from 12.5221 to 12.6
Probing was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
Gomory was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
Knapsack was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
Clique was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
MixedIntegerRounding2 was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
FlowCover was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
TwoMirCuts was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
ZeroHalf was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)

Result - Optimal solution found

Objective value:                12.60000000
Enumerated nodes:               0
Total iterations:               1
Time (CPU seconds):             0.00
Time (Wallclock seconds):       0.00

Total time (CPU seconds):       0.00   (Wallclock seconds):       0.00

However, I am also using the command line to output results of my program. Would it be possible to suppress this output to not show?

You should be able to suppress most or all of Cbc's output by setting the log level to 0:
let mut model = vars.maximise(objective).using(coin_cbc);
model.set_parameter("loglevel", "0");


Clarify Storage Entities

Clarify class hierarchy, naming and doc strings for delegated storage entities.
Best reviewed commit by commit. See individual commit messages for details.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Flag
Coverage Δ

unittests
83.47% <100.00%> (-0.26%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines
Coverage Δ

pyledger/ledger_engine.py
63.88% <100.00%> (ø)

pyledger/storage_entity.py
96.38% <100.00%> (-0.21%)
:arrow_down:

pyledger/text_ledger.py
100.00% <100.00%> (ø)

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


WIP:  tox: allow apps that support color to use it

When digging though error logs color would help a LOT!

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
  It seems like there's something that needs to be done with gradle or groovy to make this work.  In the long run I think it might be worth investigating removing some of the layers involved in running the python tests.
Color works when I call tox directly but not when I go through gradle.

Note for myself for later, since I probably won't have much more time to work on this for awhile:
toxTask looks like this:
      project.ext.toxTask = { name, tox_env ->
        project.tasks.create(name) {
          dependsOn 'setupVirtualenv'
          dependsOn ':sdks:python:sdist'

          doLast {
            // Python source directory is also tox execution workspace, We want
            // to isolate them per tox suite to avoid conflict when running
            // multiple tox suites in parallel.
            project.copy { from project.pythonSdkDeps; into copiedSrcRoot }

            def copiedPyRoot = "${copiedSrcRoot}/sdks/python"
            def distTarBall = "${pythonRootDir}/build/apache-beam.tar.gz"
            project.exec {
              executable 'sh'
              args '-c', ". ${project.ext.envdir}/bin/activate && cd ${copiedPyRoot} && scripts/run_tox.sh $tox_env $distTarBall"
            }
          }
          inputs.files project.pythonSdkDeps
          outputs.files project.fileTree(dir: "${pythonRootDir}/target/.tox/${tox_env}/log/")
        }
      }

I tried reproducing roughly what this is doing and it shows color in my terminal:
sh -c ". ../.venv3/bin/activate && scripts/run_tox.sh py37-mypy"

But using gradle does not:
./gradlew :sdks:python:test-suites:tox:py37:mypyPy37

That implies the problem is somewhere above toxTask, in deeply unfamiliar territory.
I'd like to look into cutting gradle out completely and use tox's own support for parallel environment evaluation: https://tox.readthedocs.io/en/latest/example/basic.html#parallel-mode

I managed to reproduce the problem (no color) by invoking tox with a clean environment, so now I have an easier way to test which env variables need to be set to make this work:
env -i sh --noprofile --norc -c ". ../.venv3/bin/activate && cd sdks/python && scripts/run_tox.sh py37-mypy"

I confirmed that adding in TERM fixes the problem (shows color):
env -i TERM=xterm-256color sh --noprofile --norc -c ". ../.venv3/bin/activate && cd sdks/python && scripts/run_tox.sh py37-mypy"

I tried hard-wiring TERM environment variable in the call to tox, but it didn't work, so I'm pretty confused at this point:
      project.ext.toxTask = { name, tox_env ->
        project.tasks.create(name) {
          dependsOn 'setupVirtualenv'
          dependsOn ':sdks:python:sdist'

          doLast {
            // Python source directory is also tox execution workspace, We want
            // to isolate them per tox suite to avoid conflict when running
            // multiple tox suites in parallel.
            project.copy { from project.pythonSdkDeps; into copiedSrcRoot }

            def copiedPyRoot = "${copiedSrcRoot}/sdks/python"
            def distTarBall = "${pythonRootDir}/build/apache-beam.tar.gz"
            def envMap = ["TERM": "xterm-256color"]
            project.exec {
              executable 'sh'
              args '-c', ". ${project.ext.envdir}/bin/activate && cd ${copiedPyRoot} && scripts/run_tox.sh $tox_env $distTarBall"
              environment envMap
            }
          }
          inputs.files project.pythonSdkDeps
          outputs.files project.fileTree(dir: "${pythonRootDir}/target/.tox/${tox_env}/log/")
        }
      }

https://github.com/python/mypy/issues/7771

Run Python PreCommit