Gadget verify creates unsatisfied constraints when passed a default proof

This issue was run into on the zexe library and has not been attempted to be reproduced on arkworks yet.
The constraints method verify for computing a BooleanVar representing whether a proof is valid or not produces unsatisfied constraints when a Default::default proof is passed as input. The correct behavior would be to simply return a BooleanVar with value false.
The method works as expected when passing in the correct proof (returns a true BooleanVar) or passing in a proof with values not initialized to Default, e.g. random group elements or canonical generator (returns a false BooleanVar). This indicates that there might be some odd behavior with how verify interacts with a proof that has 0 values (which I believe is what Default sets the group elements to).
https://github.com/arkworks-rs/groth16/blob/master/src/constraints.rs#L243

I don't have a good idea...The problem is that the default proof has not been designed to work as a placeholder. In some of our projects, we do need such a placeholder, and our workaround is as follows: generate a real proof as "default proof", either from the same circuit we are proving or from a totally different circuit that has the same input size.


Add macOS support

Currently, only windows and linux are supported. Formation on macOS is untested and you will most definitely run into problems. It would be nice if someone helped bring Formation to macOS.

Hi Obara, i'm here to help :)

Cool, you could comment on any issues you run into here and we can work to fix them ... include tracebacks for any error so it is easy for us to debug.

I'm getting this when i run formation-studio in terminal
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/formation-studio", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 624, in main
StudioApplication().mainloop()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 48, in init
self._restore_position()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 215, in _restore_position
self.wm_attributes('-zoomed', True)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/init.py", line 1967, in wm_attributes
return self.tk.call(args)
_tkinter.TclError: bad attribute "-zoomed": must be -alpha, -fullscreen, -modified, -notify, -titlepath, -topmost, or -transparent

@SatyenderSinghRana-in I think I have ironed out this issue. Try installing this particular branch like so
pip install --upgrade git+https://github.com/ObaraEmmanuel/Formation@macos-support

and see if it works

I upgraded to the new branch and tried running formation-studio, looks like i'm still getting the same error
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/formation-studio", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 624, in main
StudioApplication().mainloop()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 48, in init
self._restore_position()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 215, in _restore_position
self.wm_attributes('-zoomed', True)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/init.py", line 1967, in wm_attributes
return self.tk.call(args)
_tkinter.TclError: bad attribute "-zoomed": must be -alpha, -fullscreen, -modified, -notify, -titlepath, -topmost, or -transparent

I don't think that's the right version you are using coz line 215 is a very different thing in the mac os branch. Ensure you run the command exactly as I gave you before .... the --upgrade is very important

I have shared the steps I followed and the message after each command

pip install formation-studio
Message: Installing collected packages: argparse, mss, entrypoint2, EasyProcess, pyscreenshot, Pillow, lxml, appdirs, formation-studio
Successfully installed EasyProcess-0.3 Pillow-8.1.2 appdirs-1.4.4 argparse-1.4.0 entrypoint2-0.2.3 formation-studio-0.2.1 lxml-4.6.2 mss-6.1.0 pyscreenshot-2.3

pip install --upgrade git+https://github.com/ObaraEmmanuel/Formation@macos-support
Message: Collecting git+https://github.com/ObaraEmmanuel/Formation@macos-support
Cloning https://github.com/ObaraEmmanuel/Formation (to revision macos-support) to /private/var/folders/rv/t2gt2d9d6lg6g6cvrm_rvf0w0000gn/T/pip-req-build-86od_0hx
Running command git clone -q https://github.com/ObaraEmmanuel/Formation /private/var/folders/rv/t2gt2d9d6lg6g6cvrm_rvf0w0000gn/T/pip-req-build-86od_0hx
Running command git checkout -b macos-support --track origin/macos-support
Switched to a new branch 'macos-support'
Branch 'macos-support' set up to track remote branch 'macos-support' from 'origin'.
Requirement already satisfied: lxml in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from formation-studio==0.2.1) (4.6.2)
Requirement already satisfied: Pillow in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from formation-studio==0.2.1) (8.1.2)
Requirement already satisfied: appdirs in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from formation-studio==0.2.1) (1.4.4)
Requirement already satisfied: pyscreenshot in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from formation-studio==0.2.1) (2.3)
Requirement already satisfied: entrypoint2 in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from pyscreenshot->formation-studio==0.2.1) (0.2.3)
Requirement already satisfied: mss in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from pyscreenshot->formation-studio==0.2.1) (6.1.0)
Requirement already satisfied: EasyProcess in ./.pyenv/versions/3.9.1/lib/python3.9/site-packages (from pyscreenshot->formation-studio==0.2.1) (0.3)
Collecting argparse
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Installing collected packages: argparse
Successfully installed argparse-1.4.0

formation-studio
Message: Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/formation-studio", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 624, in main
StudioApplication().mainloop()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 48, in init
self._restore_position()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/studio/main.py", line 215, in _restore_position
self.wm_attributes('-zoomed', True)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/init.py", line 1967, in wm_attributes
return self.tk.call(args)
_tkinter.TclError: bad attribute "-zoomed": must be -alpha, -fullscreen, -modified, -notify, -titlepath, -topmost, or -transparent

It seems you have multiple python versions installed on your computer ... while the pip installation is going to python 3.9 you are running formation-studio installed on python 3.8... uninstall the one on 3.8 or pip ugrade install to the one in 3.8.

I uninstalled python 3.8 and 3.9 (also manually removed leftovers from library)
ran "pip freeze" followed by removing all the modules previously installed to start fresh
then installed python 3.9.2 and ran these in terminal:

pip3 install formation-studio
pip3 install --upgrade git+https://github.com/ObaraEmmanuel/Formation@macos-support
formation-studio

now i'm getting this
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/formation-studio", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/studio/main.py", line 623, in main
ResourceLoader.load()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/studio/resource_loader.py", line 73, in load
style = StyleDelegator(pref.get("resource::theme"))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/hoverset/ui/styles.py", line 129, in init
styles = parse(files)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/hoverset/ui/styles.py", line 117, in parse
bundles = re.findall(patterns["bundle"], merged_files(files))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/hoverset/ui/styles.py", line 95, in merged_files
return "".join([read_file(file) for file in files])
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/hoverset/ui/styles.py", line 95, in
return "".join([read_file(file) for file in files])
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/hoverset/ui/styles.py", line 86, in read_file
with open(file_name, "r") as test_file:
FileNotFoundError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/hoverset/ui/themes/default.css'
not sure how to run the package installed via pip3 for python 3.9

The app is having problems reading the config and cache files from the previous versions ... let me remedy that .... stand by for a fix ... I'll inform you when it's done

Alright

I also think that the problem might be with my system. I have asked one of my friends to install formation-studio, once he does that I'll inform you

@SatyenderSinghRana-in how did it go?

He is out of station for some work. I've reminded him to check it, I'll message you once he replies.

Sorry for the delay, here's the screenshot he sent me

He is using python 2.7 which is not supported

It's working on his system now
He is using python 3.7 and he installed it like this:
pip3.7 install formation-studio
pip3.7 install --upgrade git+https://github.com/ObaraEmmanuel/Formation@macos-support
formation-studio
But same is not working on my system.

What exactly is the issue with yours? I told you I pushed a version that will work even if you don't run formation-cli. Try again and send the issue here if any

It's working now 👍🏻

Demo login interface to share, I'll explore it more later, nice work so far ✌

looks good ... a couple of visual hitches but nothing that can't be fixed ... I will try and set up macOS on an emulator and polish it up.

@SatyenderSinghRana Hello, I managed to set up mac on an emulator and fix a few things, If you have the time you could take a look at the master branch and point out any issues that may come up. The emulator is a bit limited and I may not be able to get the full experience as on real mac hardware.
pip install --upgrade git+https://github.com/ObaraEmmanuel/Formation@master

Hi Obara, I sold my MacBook :( sometime ago and now I'm using a Windows laptop. Due to this, I won't be able to review the changes related to Formation Studio.

I have a tight schedule these days, but I'll try to contribute to the windows version of Formation Studio :)

Hello, I have a M3 Pro Macbook. I am a PhD student with kind of a tight schedule but I love the potential of the project and I would really like to help in any way I could.

Hello @Kastakin. I appreciate you interest in the project. I don't use MacOS so I don't have very clear insights into what MacOS issues the studio has. I know the entire short-keys system does not work on Mac because I haven't gotten round to figuring out the keycodes. The last time I tried I did not get consistent keycodes on Mac so I gave up. It can be worth looking at in your free time. The code for that is in hoverset/data/keymap.py. Other than that, feel free to identify and report/fix any other issues you notice.

Current macos state seems to be a no go. At least on 3.11 in a virtualenv
After trying to install first via the regular pip install formation-studio ,
but then also after the pip install --upgrade git+https://github.com/ObaraEmmanuel/Formation@master
I get;-

It seems you are using an M series chip and the libraries provided by tkdnd for mac are for x86_64. I'll try to catch this exception and disable dnd entirely for these cases.

@shayneoneill you can pull the latest changes I've made and try again.


ValueError on images of size (1340,1388)

I have used prednet code to train models with images of sizes (128, 160) (280,400) and (1000,1000).   I have a new batch of images of size (1340,1388) which fail with the error below.
"ValueError: Dimension 1 in both shapes must be equal, but are 335 and 334. Shape
s are [?,335,347] and [?,334,346]. for 'pred_net_1/concat_1' (op: 'ConcatV2') wi
th input shapes: [?,335,347,96], [?,335,347,192], [?,334,346,192], [] and with c
omputed input tensors: input[3] = <3>."

Hi @kegbo , I'm trying to train a model with bigger image resolution but I got memory error even for 200x200 and I'm using RTX 2070 with 8GB. What is your GPU specs? Thanks

@kegbo Your image size needs to be divisible by 2**(nb of layers - 1)


Path planning on mapviz

Hello I wanna make shortest path where is available to go only.
Because robot cannot across the water or building.
From where I am to final destination/sensor_msgs/NavSatFix. ( = LocalXY Origin - my_navsatfix_topic )
So, What I would like to ask you is the following.

How to mark the map data? i.e. 0 - restricted area 1 - avaiable path

reference : https://www.roguebasin.com/index.php/Dijkstra_Maps_Visualized
Best regards
Hankyu Kim

Hello,
As I understand this, you are asking to do something like draw polygons on a map to indicate traversable areas. We don't currently have a plugin in like this, because we normally have a different node publish this information, rather than manually mark it. There are a few things I can point you at to help you decide on what you want to do:

We do have a plugin for clicking in mapviz to generate a series of waypoints that form a route for a vehicle: https://github.com/swri-robotics/mapviz/blob/master/mapviz_plugins/src/plan_route_plugin.cpp.
You could also have another node publish the information as a costmap, and Mapviz will display that with this plugin: https://github.com/swri-robotics/mapviz/blob/master/mapviz_plugins/src/occupancy_grid_plugin.cpp
Finally, you might want to look into the costmap_2d package in ROS, I think this is what you're trying to make. It doesn't have a GUI to my knowledge, but it might be helpful for you to format the data in this way: http://wiki.ros.org/costmap_2d.
You could also write a plugin for mapviz that lets you click on points to make a polygon, and then publish that as a costmap or occupancy grid.


fix: tweak docker compose to properly map app source code

What :computer:
Docker compose file improvements to properly map application source code
Why :hand:
App source code was not mapped so running docker container didn't react to source code changes

https://github.com/matter-labs/zkcli-block-explorer/pull/4


Server: serve the app with a pre-render server

Vite offers a server-side rendered version https://github.com/vitejs/vite-plugin-react/tree/main
Example https://github.com/vitejs/vite-plugin-react/tree/main/playground/ssr-react
Other library: https://github.com/Lomray-Software/vite-ssr-boost

This will improve rendering times: a lot of time is a back and forth between the grid and the detail page, there is always a lot of networking going on, pre-rendering HTML in the server should help

Ok but we use React Query that should cache requests data. Did you really notice slow renderings?

Here attached Lighthouse report, re: first load
download.pdf
https://www.loom.com/share/98435a4f6f67405a85bdb6e19f5e2087


Mutation is not triggered when there is an optimistic update

Describe the bug
When it's defined onMutate, onError and onSettled in useMutation, the mutate function doesn't trigger.
This is exactly what's written in documentation under section optimistic updates/via the cache, but the mutation is not working.
Your minimal, reproducible example
Code Sandbox
Steps to reproduce

Go to codesandbox
Preview console and watch network.
Try to click button, which has mutate onClick (nothing happens).
Try delete onMutate, onError and onSettled in useMutation.
Refresh the page and click button (it mutates now!).

Expected behavior
I'm expecting the mutation to be triggered.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows, Chrome
Tanstack Query adapter
None
TanStack Query version
5.18.1
TypeScript version
4.9.5
Additional context
No response

In your example, In App.tsx you are creating a new QueryClient with
const queryClient = new QueryClient();
Instead you should be using the queryClient available to the app. You can do that by using useQueryClient hook
Here is the example you posted fixed:
https://codesandbox.io/p/devbox/react-query-optimistic-cache-update-forked-528xn4


Keep processing chunk even if chunk includes record with null value.

I enabled this plugin to keep processing a chunk even if the chunk includes record with null value.
Without the change,  when this plugin is given a record including a null value, this plugin outputs the following error and cannot write any record to InfluxDB until deletion of the record.
2015-10-21 17:21:33 +0900 [warn]: temporarily failed to flush the buffer. next_retry=2015-10-21 17:23:43 +0900 error_class="InfluxDB::Error" error="unable to parse 'test,status= count=2 144541429
1': missing tag value\n" plugin_id="object:1ebf6a8"

Thanks!

Sorry for the delay.
I release v0.2.2 including this fix.


 It's likely this was just due to incorrect usage of git.
To resolve this, please create a new PR with 2 commits:

revert 160c6a8d68b5a56aca5d6b682b7c26d96a97da04
same contents as the commit above but a message that follows the commit guidelines

Thanks for finding this @henrikbrixandersen , @nvlsianpu

@cfriedt
I believe this happened during PR conflict resolution don't know which one.
I tried to follow your requirement to create two PR's but failed as usual.
git revert 160c6a8
Added message stating it was a git usage mistake probably during merge conflict resolution of previous PR's
Added the file that used to be in the revered commit
Created a new commit
Sync'd with tree using git pull --rebase upstream main
This resulted in a conflict with the new file.  Fixing the conflict and finishing the rebase resulted in a single revert commit
I have not pushed this as I don't believe this is what you want.
What is the correct sequence of git commands to do what you want?

@scottwcpg - it appears that someone has already deleted commit 160c6a8d68b5a56aca5d6b682b7c26d96a97da04 from git history, so you will need to make a new PR. I'm going to close this issue for now.


Improve the overall design of the package

The public interface of the package is not friendly, we should decide on the APIs which should be public and private and currently some public APIs( an example API is vid=obj.get_videoinfo()) are returning a list of objects which should not be an expected behavior.
For the first-time contributor look into the design patterns from https://refactoring.guru/design-patterns and try to grab some ideas.

Hello, I'd like to work on this issue, can you please assign me?

Sure, I hope you will share your approach first, before going for the implementation.

Hello, I sent you an email last week. Could you please check?

sorry, let me check.

Hi @ethmtrgt, thanks for showing interest.

currently some public APIs( an example API is vid=obj.get_videoinfo()) are returning a list of objects which should not be expected behavior.

This is done, we are not returning a list of objects now, we are returning the generator object.
I could suggest adding new APIs to give missing metadata of the video(currently I guess we have APIs to give metadata of videos only, we could provide an API that takes channel id or name and provide metadata), then you will get some ideas to tweak the design.
here is the API Reference https://developers.google.com/youtube/v3/docs
currently, we query this class internally only to get channel info
https://github.com/Agent-Hellboy/pyytdata/blob/3ce31fc200ddec2b42c88b9edca038240e96b3f9/pyytdata/util/channelinfo.py#L6


rename --preserveWatchOutput to --preserve-watch-output

We use hyphenated flags elsewhere e.g. --compiler-warnings and --diagnostic-sources

Can you transfer this issue to the language-tools repo?


Cannot load feature flag config values from a config file

A config file like this:
{
	"feature-flags": {
		"newAutoRefresh": "false"
	}
}

or this:
[feature-flags]
  newAutoRefresh = "false"

or even this:
feature-flags:
    newAutoRefresh: "false"

Results in this error:
021-12-21T21:02:29.723346Z	info	Welcome to InfluxDB	{"log_id": "0YZhgaLl000", "version": "dev", "commit": "ca0bec4768", "build_date": "2021-12-21T21:02:29Z"}
2021-12-21T21:02:29.723868Z	debug	loaded config file	{"log_id": "0YZhgaLl000", "path": "/Users/wbaker/influxdb/cmd/influxd/config.json"}
2021-12-21T21:02:29.724136Z	error	Failed to configure feature flag overrides	{"log_id": "0YZhgaLl000", "error": "configured overrides for non-existent flags: newautorefresh", "overrides": {"newautorefresh":"false"}}
Error: configured overrides for non-existent flags: newautorefresh
See 'influxd -h' for help

Seems to stem from the fact that viper parses config values in a case-insensitive way (lowercase): https://github.com/spf13/viper/blob/65f16c17380edb084e5ccf131fa5598802a6bf68/README.md?plain=1#L82
The feature flag package is case sensitive though, and I suspect the UI is case sensitive as well.


fix(generator): create/destroy shared examples when required

Previously, the generator was greedy
(https://github.com/mattfreer/active_model_form_objects/issues/3),
however, now the generator only creates the shared example specs if
there are none and destroys them if it is destroying the last active
model form object.
The method hooks into the behavior on the class and performs a task when
it is set to invoke or revoke
(http://factore.ca/blog/126-reversible-rails-generators).

Coverage remained the same at 98.48% when pulling 09de23d59ccd90c1cff64e48e805e41019bdccc6 on khushkaran:fix/greedy_destroyer into 4bd09ad8161f6cd39f85700fe9ba5bb46af9f8a8 on mattfreer:master.

Thanks for pull request. Would be great to see some tests that confirm the generator behaviour relating to the shared_examples generation/destroy. The testing is slightly complicated by the fact that the shared_examples are only generated when the test framework is RSpec. Despite the fact that the test framework being used to test the generators is RSpec, I have been unsuccessful in configuring the tests to run the generators within the context of RSpec (i.e. the shared_examples are not generated).


Updates moment to fixed Date.now version

Also removes codeclimate badges as we're not using those anymore.

:+1:


Add stephist and alpha transparency to basic plotting examples

@XiaojunGuan If you have time, want to take a crack at this?
You can check the Plots docs for these two options, but basically the transparency thing does what it says, whereas the stephist vs. normal hist difference can be seen here.
Only thing is I'm not sure exactly which plotting examples @jlperla had in mind... should check with him about that.

Maybe not this one. I need to think about it.


[Event Request] Codeunit 7010 - OnBeforeCalcBestDirectUnitCost

Please add a new integration event OnBeforeCalcBestDirectUnitCost in Codeunit 7010.
    local procedure CalcBestDirectUnitCost(var PurchPrice: Record "Purchase Price")
    var
        BestPurchPrice: Record "Purchase Price";
        IsHandled: Boolean;
        BestPurchPriceFound: Boolean;
    begin
+       OnBeforeCalcBestDirectUnitCost(PurchPrice, BestPurchPrice, BestPurchPriceFound, IsHandled)
+       if IsHandled then
+           exit;
        [...]

New integration event
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcBestDirectUnitCost(var PurchPrice: Record "Purchase Price"; var BestPurchPrice: Record "Purchase Price"; var BestPurchPriceFound: Boolean; var IsHandled: Boolean)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Adding TwinMaker content to  Whatis MD

Overview
Adding TwinMaker content in the Whatis documentation. No code change to other components
Verifying Changes
Scene Composer (not applicable)
For scene-composer package changes specifically, you can preview the component in the published storybook artifact. To do this, wait for the Publish Storybook action to complete below.

Click on the workflow details
Select the Summary item on the left
Download the zip file

To run the storybook build locally, you need a local static web server:
npm install -g httpserver
cd <Extracted Zip Directory>
httpserver

Then open the website http://localhost:8080 to run the doc site.
Legal
This project is available under the Apache 2.0 License.

pulled this change into https://github.com/awslabs/iot-app-kit/pull/669 (though i removed the whatis section entirely, but added it into the top section of the readme instead)


Deprecate Slot inherent data

Currently we are passing the slot inherent data to the runtime to check that the timestamp / duration == slot. Actually this isn't required for consensus algorithms that are slot based. We are passing the slot as an inherent digest to these consensus algorithms. So, they can check that the timestamp based slot equals the digest slot at block execute.
We first need to remove the runtime side ProvideInherent implementation for AURA and BABE. After that is deployed, we can also remove the code that provides the inherent data from the client side. It is important that we do it in this order, as otherwise the inherent checking will fail without the slot inherent data.
https://github.com/paritytech/substrate/pull/8023 is the start and removes the ProvideInherent for AURA.

Would it be possible to remove InherentDataProviderExt in sc-consensus-slots as part of this issue?

No.
Why do you want to remove this?

sp_consensus_babe::inherents::InherentDataProvider has Deref<Target = Slot> just because of InherentDataProviderExt if I understand it correctly, hence it wouldn't be possible to remove. Maybe that part wasn't in the scope of this issue though.

Can you please describe what you want to solve. I don't get it.

I do not necessarily know, i just worked with related code recently and after seeing this:

After that is deployed, we can also remove the code that provides the inherent data from the client side.

Figured out that it is actually doesn't seem to be possible unless InherentDataProviderExt stops consuming the same data too.


[Ninja] Document -t, --tool option and add the "list" tool.

The -t option to Ninja is used to run subtools. One subtool, "targets",
was already implemented, but this support was not in the help. Also, to
determine which tools are available, the "-t list" option is useful;
especially so while only a subset of the Ninja subtools are implemented.

Thanks! Feel like adding a test for -t list, just to make sure it exists and at least does something?

Good idea. I'll sent out another PR for that.


Add check constraints to a table

I couldn't find a way to execute something like
alter table table.column add constraint column_length check (length(column) >= 6);

Currently it can only be done by executing a raw query

you can make use the alter query "add constraint " and specify the criteria of particular constraint to a column.

Should addColumn include a constraint or check option? It feels a bit out of place adding a custom raw query just to "finish" a new column in a whole table written with Phinx.
However, given the age of this issue, I guess checks and constraints are a rare use case? haha

Me too looked for method for adding check constraint while creating a table. Done as follows:
if ($this->isMigratingUp()) {
    $this->execute('ALTER TABLE emails
                    ADD CONSTRAINT chk_email_primary
                    CHECK (main IN (1,0))');
        }

But as a man rightly mentioned above - "It feels a bit out of place"

Yep, would be cool :)
->addColumn('type', 'text', [   'null' => false,   'check' => "type = 'text' OR type = 'integer'" ])
I'm using SQLite and doing this is not possible using the Table class, I must use raw queries.


Piatra village from Bradulet is not found in Arges county

Precondition
SOLR: http://zimbor.go.ro/solr/#/romania/query
browser: Chrome
Steps to Reproduce:

Step
Action
Expected
Status

1
open SOLR in browser
SOLR UI is loaded without any errors
Pass

2
type one by one in the q field all the list of the components of every village in Arges county found in test data
you are able to type one by one in the q field  all the list of the components of every village in Arges county found in test data
Pass

3
type judet: Arges in the fq field
you are able to type judet:Arges in the fq field
Pass

4
click on Execute Query button
Verify that all the list of the components of every village in judet:Arges form the test data are displayedTest data.xlsx
Fail

Actual Results:
Piatra village from Bradulet is not found in Arges county

https://orase.testquality.com defect D34.

Este comuna Bradulet cu satul Piatra.


Skip time interval construction for time:point method

Instantaneous time axis tables (e.g. 6hrPlevPt) contain variables for which the time method is not averaging but sampling (time: point). The time axis for these tables should not be given any cell_bounds array since cmor will not accept it.

Rev. b1a4001d6ccc7cc7273f52bf920003ce184d65e8


Automatic emails for rejected applications

Related to #735
Since the admission process is changing slightly, we need to add the ability to automatically send out emails to rejected applicants.
The correctness of this system is crucial. Notably:

Rejected applicants must only get ONE email, regardless of how many jobs they applied to
It should be impossible to send emails unless all relevant groups have marked application as rejected
Applicants with a job offer must NOT be sent an email

It is important that this tool is easy and quick to use. Preferably it should be possible to have a single button that sends all the relevant emails at the end of admission. I think it is probably better to start with doing this manually (each group still responsible for their relevant applicants), but as the system matures I think it would be better if only the person responsible for the admission can do this. This does require that every group in fact marks each applicant correctly.

fixed by #762

fixed by #762


Error compiling with RedBearLab BLE Nano with S130 branch/release

The error message is as follows:
/Documents/Arduino/libraries/BLEPeripheral/nRF51822.h:9:30: fatal error: s110/ble_gatts.h: No such file or directory
   #include <s110/ble_gatts.h>
                              ^
compilation terminated.
Error compiling.

This occurs with the S130 branch of their Arduino board add-on: https://github.com/RedBearLab/nRF51822-Arduino
I have a patch that fixes the compile issues with some other necessary changes. However, need to discuss a few things with the RBL team first before sharing.
In the meantime, the suggested workaround is to uninstall the add-on from the board manager. Then follow the old instructions from their master branch: https://github.com/RedBearLab/nRF51822-Arduino/tree/master#install-nrf51822-arduino-add-on

@brigidrose here the changes I've been working on for compatibility: https://github.com/sandeepmistry/arduino-BLEPeripheral/commit/8c28140dee6a49ab0e48273d218f07cc456b544b
However, they depend on the following changes on the RedBearLab nRF51822 Arduino board add-on:

https://github.com/sandeepmistry/nRF51822-Arduino/commit/ab5f33b81777c78d412142567b1dc65d97893feb
https://github.com/sandeepmistry/nRF51822-Arduino/commit/b09717422c1b5d459e1487bfb7e441db50fcff5b

I've brought them up with the RBL team ...

Pull request submitted: https://github.com/RedBearLab/nRF51822-Arduino/pull/41
Once this is merged by the RBL team, I will merge the following branch into master: https://github.com/sandeepmistry/arduino-BLEPeripheral/tree/NRF51-S130

Yay - RBL have merged your pull request (commit e54b8fa) and released version 1.0.3 of there boards package for the Arduino IDE. So the current version now pulled in by the IDE includes your changes :smile:
I'm glad to see most of that stuff gone from Arduino.h. You could protect yourself against future potential name clashes by using namespaces. Unfortunately it's only with version 1.6.6 that using namespace works properly with .ino files - for earlier versions you're forced to qualify method parameter types explicitly with the appropriate namespace (due to the way the IDE "helpfully" automatically generates prototypes for all your functions so you don't need to forward declare them) :disappointed:
Anyway in short please merge NRF51-S130 into master :smile:

@george-hawkins sorry for the delay,  NRF51-S130 branch is merged into master now.


Rust mode: cargo audit fails to execute correctly

What did you expect to happen?
Executing cargo audit should successfully run the cargo-audit tool if installed.
What actually happened?
The execution was unsuccessful resulting in the following error being reported by cargo-audit.
error: missing argument to option `-f`

Additional details:
My version of cargo-audit is 0.10.0.
The issues lies in the implementation of +rust/cargo-audit in modules/lang/rust/autoload.el.
;; Is this
(rustic-run-cargo-command "cargo audit -f")

;; Should probably be this
(rustic-run-cargo-command "cargo audit")

I wanted to know if there is a specific reason -f is used? Is it simply a holdover from when cargo-audit had a different interface?
Steps to reproduce:

Ensure cargo-audit is installed.
Open a Rust file in a Cargo project.
Execute +rust/cargo-audit

System information:

emacs   version    27.1
        features   XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER GMP
        build      Aug 27, 2020
        buildopts  (--prefix=/nix/store/grs0hrgnp2hxhlkvqm8z28p80f7kas48-emacs-unstable-emacs-27.1 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft --with-cairo CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200)
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop f454d5fac 2020-08-20 21:40:06 -0400
        dir        ~/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /run/current-system/sw/bin/bash
        uname      Linux 5.4.60 #1-NixOS SMP Fri Aug 21 11:05:39 UTC 2020 x86_64
        path       (~/.emacs.d/bin ~/.cargo/bin /run/wrappers/bin ~/.nix-profile/bin /etc/profiles/per-user/nox/bin /nix/var/nix/profiles/default/bin /run/current-system/sw/bin /nix/store/grs0hrgnp2hxhlkvqm8z28p80f7kas48-emacs-unstable-emacs-27.1/libexec/emacs/27.1/x86_64-pc-linux-gnu/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold (format +onsave) snippets :emacs (dired +ranger +icons) electric vc :term eshell :checkers syntax spell grammar :tools debugger ein (eval +overlay) lookup lsp magit :lang assembly (cc +lsp) data elixir (elm +lsp) emacs-lisp julia (latex +latexmk +cdlatex +fold) ledger markdown nix org (python +poetry) (rust +lsp) sh :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (n/a)
        elpa       (n/a)

Sorry for offtopic, but I think this kind of stuff should be merged upstream.

I fixed it in https://github.com/hlissner/doom-emacs/pull/3853/commits/3549cb68451c6a0ba812e19c2d79b6f7b93d6b4d. My first time contributing like this, so I thought to open the issue first.


feat(mocks): generate fakes and mocks in a container

Description
Adds the container-mockgen make rule for generating fakes and mocks in a container.

/lgtm

/approve


build_ios_app doesnot support export_path

Issue Description
build_ios_app fastlane action currently doesnot support export_path where this is supported in xcodebuild. When we specify the export_path it doesnot respect and still use the temp path.
Command executed
bundle exec fastlane build_signed_app
private_lane :build_signed_app do |options|
    type = options[:release] ? "app-store" : "development"
    configuration = options[:release] ? "Release" : "Debug"

    #Build main application
    build_ios_app(
        scheme: SCHEME,
        configuration: configuration,
        clean: true,
        export_method: type,
        output_directory: IPA_DIR,
        output_name: MAIN_APP_NAME + ".ipa",
        derived_data_path: PATH,
    export_path: PATH
    )

Complete output when running fastlane, including the stack trace and command used
/usr/bin/xcrun /Users/xxxxx/.rvm/gems/ruby-2.7.2/gems/fastlane-2.166.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/gl/fk309tsn5g323n6d4z41s9180000gv/T/gym_config20220210-36740-mjwleu.plist' -archivePath /Users/XXXXX/workspace/XXXX/XXXX/output/XXXX\ 2022-02-10\ 10.40.40.xcarchive -exportPath '/var/folders/gl/fk309tsn5g323n6d4z41s9180000gv/T/gym_output20220210-36740-ss0rh1'
As you see above, it is going into /var/folders/gl path and if we try to delete anything from this directory[as per apple it is not recommended though] or (if not rebooting the machine so often where this can cleanup automatically) , we gets the error. Having export_path customised will give us way to clean up the build once the execution is finished also saving the diskspace.

@joshdholtz do you have a workaround for that?

Xcode 3.2 provides an awesome new feature under the Build menu, "Build and Archive" which generates an .ipa file suitable for Ad Hoc distribution. You can also open the Organizer, go to "Archived Applications," and "Submit Application to iTunesConnect."

Aw, crud. This appears to be impossible. If you don't know the answer, please at least vote up the question so my bounty doesn't vanish into the ether... :-( –

Anyone knows the solution to add export_path?

Maybe Build and Archive which generates an .ipa file suitable for Ad Hoc distribution.

@joshdholtz When you get time, please look into it.

Got bunch of time set aside for tomorrow! Life happened and trying to catch up 🤷♂

@joshdholtz thanks, let me know if you need any more information from my side.

@joshdholtz did you get chance to look into it?


No differentiation of piste type field is needed

Limiting the choice to connection, playground or snowpark when in the piste:type=downhill or nordic preset is probably a bad good idea: if it's a downhill, it's not a snowpark.
Also after testing it a little, it's disturbing to see the piste field change when you change the piste type.

Thanks ⛷


Changes for the travis-enterprise release

We have added application-level locks for aggregating logs.

Thanks for this, I don't think blue will able to review it until late February. Let me know if you need us to prioritize it sooner

All in all this looks good. I left one question which would be good to answer before merging this in.

is this PR still relevant?

Closing this. Started bringing in the changes in this PR more piecemeal:

[X] SSL changes
[ ] travis-config upgrade (may also include AMPQS changes)
[ ] Run locking around aggregating logs.

Reasoning is at the run locking has some bugs in it currently in enterprise-2.0 so bringing in the other unrelated changes lets me get master builds of Enterprise working while I also isolate what's breaking there.


Update libyaml and pyyaml

Motivation for this change
Things done

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

[X] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

note version in "pythonPackages.pyyaml: 3.11 -> 1.12"

Thanks for spotting it. Updated


Updates for v0.11.1

Thanks for PR. The whole ecosystem seems to be a little bit broken. While pulp itself was updated to work with 0.11, it wasn't yet pushed to npm or other package managers, I also can't make npm build pulp from git because of bugs in npm. So currently I'm in a situation where I can't neither build-test nor publish these changes, or any other package with 0.11. I'll keep this open as a remainder. Hopefully pulp will be pushed to npm soon.

Oh, I see. I'm working with a globally installed pulp 11.0.0 tagged yesterday.

Thanks again. Sorry for the delay. Merged and published.


Automate the release binary sizes workflow

Changes

Triggers this workflow whenever new releases are created

Testing
https://github.com/thebrowsercompany/swift-build/actions/runs/8883683804/job/24391038542

Merging while I investigate the arm64 build failures. Leaving it disabled for now. Also LMK if you'd like to revert back to revisions for gha-google-bloaty instead of versions!


Open publishing?

Is it possible to use Netlify-cms in a way that would make it an open platform so that everybody could use to publish a post on a site?

@thierrybgentile that would be an awesome feature. We're currently working through items based on priority and I don't think we're quite ready to take this step, but I'll add it to the backlog so it remains on our radar.

@erquhart I've been learning React for a bit now and looking for places to apply it so if somebody with more experience is willing to tell me if that's not to complicated for me now and layout some kind of path I'd be willing to try my hand at it!

We'd love to have you make a contribution! This issue would be a pretty major undertaking, but even if we had someone ready to do it, we're too early on to make major changes or add any features. That won't always be the case, so definitely stay tuned!
In the meantime, if you're looking for someone to improve your skill, we have tickets labelled as "good first contribution" - here's the filter.

@thierrybgentile just revisiting this issue - not sure what I was thinking when you first posted this, but open publishing should work just great. Each author would simply have to have a GitHub account. Let us know if you have a site like this going, would love to see it!
Closing this, but if you need help at all, please hit is up on the Gitter!

@erquhart Don't all users still need to have merging rights on the site repo? I think this issue pertains to people who aren't on the site repo, and would normally fork to make a contribution. This would be super useful on public docs sites.

Ah yep, great point. I assumed GitHub had this as an option, looks like not.

I think the closest we'll come to open publishing is supporting pull requests from forked repos. How much of this we would automate is up for discussion, but it would enable open publishing through the editorial workflow. The difference would be that branches are on the user's fork, and publishing requires permissions. Ideally this would all be enabled through a simple config flag, perhaps by collection.

Yeah, or possibly use a non-GitHub auth method, which can pipe authenticated user actions through a designated GitHub user account. (I'm pretty sure at least one project is handling auth this way, though not for the purpose of allowing "open" editing.)

This is now doable via Git Gateway / Netlify Identity!

I don't know what the editing and preview functions have to do with hosting platforms such as GitHub. But you complicate simple functions. It needs to be submitted to GitHub, okay? You don't know how many people talk about your identity authentication in the whole project.  Please add to blocked user list

Thanks for raising this @talves, we've blocked the user 🔒


mt7688: Fixes pin function naming

Uses the conventional naming as documented in periph/conn/*

Codecov Report

Merging #313 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #313   +/-   ##
=======================================
  Coverage   69.22%   69.22%
=======================================
  Files          99       99
  Lines        8709     8709
=======================================
  Hits         6029     6029
  Misses       2524     2524
  Partials      156      156

Continue to review full report at Codecov.

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


Is there an example bot using 2.0 .NET Core RedditSharp?

Sorry if I'm posting this in the wrong place. I am pretty new to asynchronous coding and am having quite a bit of trouble figuring things out. Is there an example bot I can look through the code for? Thanks.

by 2.0 .NET Core do you mean .NET Core 2 or just 2.0 of RedditSharp? there's example code for 2.0 RedditSharp in it's respective branch

Sorry for taking a long time to respond. I mean RedditSharp 2.0. I read the example, but it doesn't seem to explain how to get new comments and process them. All it does it get specific comments by full name for testing purposes.

@chuggafan

Sorry about that.

If you are wanting to listen to all comments coming in to a post or subreddit for example, you'd want to use a stream and observer.

                    observer = new MessageObserver(_executor, _markAsRead, _msgTypes);
                    var stream = _reddit.User.GetInbox().Stream();

                    unobserve = stream.Subscribe(observer);
                    return stream.Enumerate(cancellationToken);

Where MessageObserver implements IObserver<Things.PrivateMessage> in my example. That pertains to private messages (it's a bot that's listening for private messages that it is sent), but would be IObserver<Things.Comment> in your situation.

Thanks so much. I read this after setting up a crude system using System.Threading.Timer to GetComments every couple of seconds, but now ReplyAsync is returning null for some reason. I'm going to look into your method.

@CrustyJew I'm setting up a MessageObserver class and its Constructor... Do I need _executor and all of that? What is it for?

Huh... So I've configured it, but for some reason the CommentObserver's OnNext always calls right at stream.Enumerate() with the first comment ever posted on my sub...

yeah stream.Enumerate() begins the enumeration of the comments, it does kick out some item first before it starts processing the new ones. That's a "bug" in the wrapper that should probably get addressed.
I worked around it by checking unread but that's for private messages. I'd probably recommend having a bool flag that you set to skip the first record after starting the enumeration.

@CrustyJew Alright thanks so much. One more thing. Where is the best place to host my bot, and should I build it into a .NET Core Console App or ASP.NET? I've been thinking about learning to use ASP.NET Core so I can run it on Heroku with this buildpack (I don't think there is a .NET Core Console App buildpack for Heroku), but I'm not sure what is best. Thanks so much once again :D

It depends on what it's doing. If it's constantly scanning things, it is probably better to run and host it as a console app because if you run it in a web server situation, the thread pools can get a little wonky. But honestly, either way should work. You could look into a cheap/lightweight AWS instance. I host some of mine on Azure just because I have free credit to use there.

Oh thanks!


ASL demo internal PR

@dmatveev
@adanpin, if interest is exist.

@mpashchenkov can you please close this PR? I believe its no longer relevant?


Convert Layout Pass:'Object' object is not iterable

hello:
i want to build and run the model of resnest50,which i get_model from mxnet model_zoo.the code is:
model = gluoncv.model_zoo.get_model('ResNeSt50', pretrained=True)
and i want to change the layout from NCHW to NHWC, but i find the adaptive_avg_pool2d can not be changed the layout.
so according to the link of https://tvm.apache.org/docs/dev/convert_layout.html?highlight=convertlayout
i add the FTVMConvertLayout register for adaptive_avg_pool2d, the code like this:
@reg.register_convert_op_layout("nn.adaptive_avg_pool2d")
def convert_adaptive_avg_pool2d(attrs, inputs, tinfos, desired_layouts):
"""Convert Layout pass registration for adaptive_avg_pool2d op.
Parameters
----------
attrs : tvm.ir.Attrs
    Attributes of current convolution
inputs : list of tvm.relay.Expr
    The args of the Relay expr to be legalized
tinfos : list of types
    List of input and output types
desired_layouts : list of layout strings
    List of layouts defining our desired
    layout for the data input.

Returns
-------
result : tvm.relay.Expr
    The transformed expr
"""
# pylint: disable=import-outside-toplevel
from tvm import relay
data = inputs
new_attrs = dict(attrs)
assert len(desired_layouts) == 1, "A desired layout is expected for input data only"
desired_data_layout = desired_layouts[0]
assert desired_data_layout != "default", "Data layout cannot be default"
new_attrs['layout'] = desired_data_layout
return relay.nn.adaptive_avg_pool2d(data, **new_attrs)

but when i build and run,there is a problem like this:
/tvm/python/tvm/relay/op/nn/_nn.py", line 420, in convert_adaptive_avg_pool2d
new_attrs = dict(attrs)
TypeError: 'Object' object is not iterable
i do not know the reason,can help me,thank you~

cc @anijain2305 @yzhliu

closing due to the stale status, please feel free to open a new trouble shooting thread on https://discuss.tvm.apache.org/


ENA Analysis

Integrate ENA analysis fields

Suggest using 'analysis type' in standard 'faang' rules section, as this is a universal ruleset that will be required for submitting to other archives as well. We will then require conditional application of archive specific rule sections based on the analysis type selected.


idmlaser developer not compiling update_ages.cpp

on jb_modulify/ #[19bba72]
I am following the developer version for installing idmlaser from https://github.com/InstituteforDiseaseModeling/laser/wiki/Using-idmlaser-as-a-pip-installable-module. It does not appear to be compiling update_ages.cpp.
My commands (from within the jb/ directory):
pip install -e .
python3 -m idmlaser.utils.build_template_workspace

I build the CCS example in jb/sandbox and then get the error:
(/home/krosenfeld/projects/202407_laser/env) krosenfeld@internal.idm.ctr@ipapvwks23:~/projects/202407_laser/jb/sandbox$ python -m idmlaser.measles
Traceback (most recent call last):
  File "/home/krosenfeld/projects/202407_laser/env/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/krosenfeld/projects/202407_laser/env/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/krosenfeld/projects/202407_laser/jb/src/idmlaser/measles.py", line 17, in <module>
    from . import sir_numpy_c as model
  File "/home/krosenfeld/projects/202407_laser/jb/src/idmlaser/sir_numpy_c.py", line 76, in <module>
    update_ages_lib = ctypes.CDLL(shared_lib_path)
  File "/home/krosenfeld/projects/202407_laser/env/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/krosenfeld/projects/202407_laser/jb/src/idmlaser/update_ages.so: cannot open shared object file: No such file or directory

Before switching ot this branch I was compiling with make update_ages.so but this isn't working:
(/home/krosenfeld/projects/202407_laser/env) krosenfeld@internal.idm.ctr@ipapvwks23:~/projects/202407_laser/jb/sandbox$ make update_ages.so
make: *** No rule to make target 'update_ages.cpp', needed by 'update_ages.so'.  Stop.

Looking at my sandbox/ directory, there was no update_ages.cpp installed:
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>310 Jul 15 04:28 demographics_settings.py
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.2K Jul 15 04:28 eula_binned.csv
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>106K Jul 15 04:28 eula_pops_20yr_noaging.csv
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>360 Jul 15 04:28 fits.npy
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.7K Jul 15 04:44 makefile
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>6.5M Jul 15 04:28 modeled_pop.csv
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.8M Jul 15 04:28 modeled_pop.csv.gz
drwxrwxr-x 2<EMAIL_ADDRESS><EMAIL_ADDRESS>4.0K Jul 15 04:28 __pycache__
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>458K Jul 15 04:28 QuickStart.ipynb
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.4K Jul 15 04:28 settings.py

I had tried to install idmlaser by running pip install -e . from within the jb/ directory

Appreciated. All I should need is the jb/ directory, right? Do I need to use the idm pypi in the index-url for the pip install -e .? It seemed to be workign withough it.

I guess it make sense that there is no update_ages.cpp in the sandbox/ but why is there a makefile?

Appreciated. All I should need is the jb/ directory, right? Do I need to use the idm pypi in the index-url for the pip install -e .? It seemed to be workign withough it.

Ya, just pip install -e . should do it.

I guess it make sense that there is no update_ages.cpp in the sandbox/ but why is there a makefile?

I think it was for if you wanted to change your demographics_settings.py (population, number of nodes, for CCS) and get new input files.
update_ages.cpp should be compiled as part of the install.

The files you need to copy from a sandbox into your COMPS/idmtools inputs folder should be well captured by the contents of inputs or inputs_ew here:
├── inputs
│   ├── demographics_settings.py
│   ├── fits.npy
│   ├── modeled_pop.csv.gz
│   └── settings.py
├── inputs_ew
│   ├── attraction_probabilities.csv
│   ├── cbrs_ew.csv
│   ├── cities.csv
│   ├── demographics_settings.py
│   ├── engwal_modeled.csv.gz
│   ├── fits.npy
│   └── settings.py
├── laser.def
├── laser.id
├── run_laser_with_sif.py
├── sifs
│   └── laser.sif

Looking at my sandbox/ directory, there was no update_ages.cpp installed:
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>310 Jul 15 04:28 demographics_settings.py
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.2K Jul 15 04:28 eula_binned.csv
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>106K Jul 15 04:28 eula_pops_20yr_noaging.csv
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>360 Jul 15 04:28 fits.npy
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.7K Jul 15 04:44 makefile
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>6.5M Jul 15 04:28 modeled_pop.csv
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.8M Jul 15 04:28 modeled_pop.csv.gz
drwxrwxr-x 2<EMAIL_ADDRESS><EMAIL_ADDRESS>4.0K Jul 15 04:28 __pycache__
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>458K Jul 15 04:28 QuickStart.ipynb
-rw-rw-r-- 1<EMAIL_ADDRESS><EMAIL_ADDRESS>1.4K Jul 15 04:28 settings.py

You only need data files from the sandbox now. All code is in the installed package.

adding notes to issue thread for continuity:

it seemed that the make command was not running the generate the update_ages.so. Once I added that step by hand I was able to pip install

Relevant code below that appears to to be running?
https://github.com/InstituteforDiseaseModeling/laser/blob/f598b877f2b20694a3aaa60ef6bd3a7171eab047/jb/setup.py#L14-L26

Line 20 should do the equivalent of what the make command was doing to build the cpp code into a .so during the installation.
Are you install from a .whl (wheel) in your .def?

I'm not installing from a .whl, I'm dong a git clone and pip install: https://github.com/krosenfeld-IDM/202407_laser/blob/16a46de7b4fad5187ef0371e97cb833b99d31dbd/jb_jenkins/Dockerfile#L16

@krosenfeld-IDM Should I see if I can find out why update_ages.cpp wasn't getting compiled during install?

Thanks, I'm still seeing the error.
It would be good to fix if continuing development / use from jb_modulify. Maybe we can discuss on Wednesday what you, @KevinMcCarthyAtIDM , and @clorton 's thoughts are for next steps?
You can try reproducing it by building a clean codespace and then:
cd jb
 pip install -e .
 cd ..
 mkdir workspace
 cd workspace/
 python -m idmlaser.utils.build_template_workspace
# building in ./EW
 cd EW
 python -m idmlaser.measles

produces:
Traceback (most recent call last):
  File "/usr/local/python/3.10.13/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/python/3.10.13/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspaces/laser/jb/src/idmlaser/measles.py", line 17, in <module>
    from . import sir_numpy_c as model
  File "/workspaces/laser/jb/src/idmlaser/sir_numpy_c.py", line 76, in <module>
    update_ages_lib = ctypes.CDLL(shared_lib_path)
  File "/usr/local/python/3.10.13/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /workspaces/laser/jb/src/idmlaser/update_ages.so: cannot open shared object file: No such file or directory

Thanks, I'm still seeing the error.
It would be good to fix if continuing development / use from jb_modulify. Maybe we can discuss on Wednesday what you, @KevinMcCarthyAtIDM , and @clorton 's thoughts are for next steps?
You can try reproducing it by building a clean codespace and then:
cd jb
 pip install -e .
 cd ..
 mkdir workspace
 cd workspace/
 python -m idmlaser.utils.build_template_workspace
# building in ./EW
 cd EW
 python -m idmlaser.measles

produces:
Traceback (most recent call last):
  File "/usr/local/python/3.10.13/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/python/3.10.13/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspaces/laser/jb/src/idmlaser/measles.py", line 17, in <module>
    from . import sir_numpy_c as model
  File "/workspaces/laser/jb/src/idmlaser/sir_numpy_c.py", line 76, in <module>
    update_ages_lib = ctypes.CDLL(shared_lib_path)
  File "/usr/local/python/3.10.13/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /workspaces/laser/jb/src/idmlaser/update_ages.so: cannot open shared object file: No such file or directory

Thanks. Not able to repro yet, though only tried locally, not in a codespace. I do get an error when injecting infections (import cases) with a dev install, so that's worth looking at. This whole thing with compiled C code in a module is a bit new and I want to make sure we're catching and fixing issues.

Lots of good suggestions from GPT but dev build isn't invoking custom build commands to create .so yet...

Personally I don't do dev installs. I build a .whl and pip install (from file). I'll keep working on the dev install with Custom Commands for compiling C but the build-and-install-wheel is a completely viable "workaround" if you don't mind the two steps.

If I use the .whl does that mean everytime  I make a change o the code I have to build the .whl and pip install from the file?
I find it really useful to be able to make a change to the code and immediately jump into the e.g. running the scrip or the debugger from vscode.

Yeah - I think so. Thanks

Fixed with: https://github.com/InstituteforDiseaseModeling/laser/commit/dd5c258248b0ed4a01c3f2a7f4df53d8e06b52ec
@krosenfeld-IDM you can resolve or close this if no further work is neded.

So for the dev install you can either:
pip install -e .
cd src/
make update_ages.so

or
python setup.py develop


v2 release

Starting a list here of things that need to be included in the v2 release before the v2 branch can be merged into master.  The v2 branch is primed from the https://github.com/Akylas/nativescript-bluetooth fork.  See https://github.com/Akylas/nativescript-bluetooth/issues/5 for history.
My hope is we can discuss at a high level what needs to be in v2, then make an issue for each feature adding it to the 2.0.0 milestone.  In the individual feature issues we can have lower level discussion if needed.

[ ] Migration/upgrade guide
[ ] Comb through README.md to make sure features/changes in v2 branch are documented.
[ ] demo-ng ts overhaul (was written long ago before features like async/await)
[ ] Update demo with features/changes that are included in 2.0.0

@EddyVerbruggen, @farfromrefug, and others, feel free to make suggestions below and/or tag existing issues with v2 and add em to the 2.0.0 milestone.

Hi @farfromrefug, could you provide a brief breakdown on how to manually import this branch of the plug-in into an existing project?
I already tried copying the downloaded nativescript-bluetooth-2 folder into node_modules and using it via var bluetooth = require("nativescript-bluetooth-2"); but I get an error saying:

Cannot find module 'nativescript-bluetooth-2'

I'm mainly interested in using the filters functionality of startScanning, since that feature seems to be broken in the master branch.

@phil-sch no need use special branch. Simply use the beta tag!
Look here i am at 2.0.0-beta.11

@EddyVerbruggen What do you think about making v2 official?
I really think beta 14 is a really good candidate.

@farfromrefug Happy to do so! Anyone here who doesn't think that's a good idea?

I've been using the latest beta versions for some time now and they work like a charm. 💙

@EddyVerbruggen BTW we would need the help in getting the documention updated. Honestly not really interested by docs :s

I have found two bugs in 2.0.0-beta.12 which I think still exists in the latest beta (2.0.0-beta.14). They're both in the Android implementation. One is a failure when a scanned device has no device name and the other is a problem with this.connection map containing null values. I have working patches for the 2.0.0-beta.12 release.
I will confirm that they still exists in the latest beta and, if so, get back with better descriptions of the bugs. Do you want me to post them as separate issues?

@erikbjork  let s handle them here. a walkthrough on how to reproduce them would be awesome. maybe even a nodejs  bleno  example to simulate a device if it depends on it. need to check but think I created one in the v2  branch

I could not run my application with the 2.0.0-beta.14 release (because of es2015 import issues). But @farfromrefug has got the details and will make some changes.

@erikbjork issue is fixed right now. Anyone to help a bit on the doc?

@EddyVerbruggen I am starting to think i should create a new plugin based on v2. The reason is the issue people have with understanding that that plugin is for BLE devices.
So i was thinking about creating nativescript-ble out of the v2 branch.
And in the future maybe this plugin could become the plugin for Bluetooth 2.0. Dont want to create the new plugin without brainstorming with you

Hi Martin!
I'd rather not have another Bluetooth plugin out there. Maybe we can merge v2 to master and publish it to npm if you think it's time to do so.
Then if Bluetooth Classic can/will be added we can publish another major version to npm and remove the "this is for BLE only" stuff from the readme.

@EddyVerbruggen To be honest seeing the structure of the plugin (static object handling everything) it wont be easy to structure it to handle both BLE and non BLE.
V2 is fully ready to be published for {N}6. Surely still some little bugs but nothing major.
However i am still really thinking about creating a new plugin. Either 2 plugins one for BLE and one for non BLE as those devices are really handled differently. Or use only one plugin with a totally different layout, like i did in Titanium:  No Static object, Bluetooth and BLE object class. That way you can have shared code and different intelligence.
Maybe we can talk about this over slack. Would love to have your input


Implement event triggering for jQuery selectors

As an addition to #27 it could also make sense to add an option to trigger event via jQuery, Obviously setting the event handlers is out of the scope, but simple triggering could be useful.

trigger
triggerHandler
blur
change
click
dblclick
focus
keydown
keyup
keypress
mousedown
mouseup
mouseleave
mouseout
mouseover
mouseenter
mousemove
resize
scroll

The calls for the event trigger could be something like:
driver.JQuery().Click(By.JQuerySelector('a'));

Since the API has changed the new version of the event trigger methods would be
driver.JQuery(By.JQuerySelector('a')).Click();


Fix version in migrating.md

Thank you @kinrokinro if you are doing some testing please share an explorer link for your node! 🙏

Thank you @kinrokinro if you are doing some testing please share an explorer link for your node! 🙏

Currently testing with this validator - https://devnet.explorer.agoric.net/validator/agoricvaloper1uy7pc064hadn3u9l2399x9q6hyf5curmu427mm


v2.0-rc: minor glitsch in status bar

Description of the problem or steps to reproduce

start micro

The status bar shows character config utf-8 and then directly the Alt-G help without separator like this:
utf-8Alt-g:...
Specifications
Version: 2.0.0-rc1.dev.2
Commit hash: f8218e0
Compiled on December 26, 2019
OS: Manjaro ARM aarch64
Terminal: Termite

Yes it is unfortunate that at the standard 80 columns there isn't enough space for everything in the statusline. I'll try to make some space by changing the default value of statusformatr.

You'll have to remove your statusformatr setting so that the default one will take its place if you want to see this update. Alternatively you could just modify the setting to your liking.


[#117512347] Replace all occurrences of cf-platform-eng

What
As a part of Forked Service Broker Deployed to Production story we forked the https://github.com/cf-platform-eng repository.
Now, we want all includes to point to our fork so cf-platform-eng/rds-broker is replaced
with alphagov/paas-rds-broker
How to test
go get .
go test
go build .

Who can review
Not @combor or @timmow

Sorry wrong repo again ( github default :) )


backup created bu openbacchus has invalid name

Hi, Trying to import from an backup, there's a error message bcos Red Hat Virtualization Manager Version: <IP_ADDRESS>-0.1.el7 importing dialog doesn't like bacchus generated filename - see image please

Thanks,
Steve

looks like i was going about this incorrectly.


Feature Request: Number of requests option

For my purposes, I would like to use the old ab -n option to set a specific number of requests rather than duration. It would be mutually exclusive of -d.

Interesting -- long ago when I started this project I was trying to get away from that, but that doesn't mean it isn't useful.
Can you explain your use case?
And how important is it that the count be exact, versus approximate (obviously the final statistics will be based on actual data.)
I'm asking because apib is multi-threaded so if we want to ensure that all threads stop after the exact same number of requests then we have to handle things differently then if the number of requests is more of a suggestion.

The exact counts aren't too important. I'm looking for a reasonably valid number of requests for the statistics so there's probably other ways to skin that cat. I'm automating a large number of apib runs across many or my API's URLs. I've hard-coded -d 5, but some requests are slow and I end up with too few requests to trust the stats.
My actual goal is to perform the minimum number of requests to get reasonable repeatability on the test. There's probably some sophisticated statistical method to do it, but it would likely be even harder to coordinate in a multi-threaded environment. Having the -n would just be another tool to help on this.

OK -- that sounds like something fun to look in to then!
On Mon, Nov 18, 2019 at 10:18 AM Scott White<EMAIL_ADDRESS>wrote:

The exact counts aren't too important. I'm looking for a reasonably valid
number of requests for the statistics so there's probably other ways to
skin that cat. I'm automating a large number of apib runs across many or my
API's URLs. I've hard-coded -d 5, but some requests are slow and I end up
with too few requests to trust the stats.
My actual goal is to perform the minimum number of requests to get
reasonable repeatability on the test. There's probably some sophisticated
statistical method to do it, but it would likely be even harder to
coordinate in a multi-threaded environment. Having the -n would just be
another tool to help on this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apigee/apib/issues/21?email_source=notifications&email_token=AAD7I2YUZQUMAKEDR76F3BLQULL6ZA5CNFSM4JJ7IQ4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEELMZNQ#issuecomment-555142326,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD7I26BMXNDDS7ZB47IO63QULL6ZANCNFSM4JJ7IQ4A
.


Implemented antispaces

The PR introduces the concept of "antispaces", that can be inserted into the formatting stream with the @append_antispace and @prepend_antispace capture names. When an Antispace atom is encountered during post-processing, it and any runs of preceding and/or succeeding Space or Antispace atoms are removed from the stream. This ultimately allows spacing exception rules to be written more easily.
For example, if we define the JSON formatting rules such that any named node is surrounded by spaces, this upsets the spacing around list and pair delimiters. However, we can now fix that easily with an antispace:
(#language! json)

(string) @leaf
(_) @append_space @prepend_space

":" @prepend_antispace
"," @prepend_antispace @append_empty_softline

(object
  .
  "{" @append_spaced_softline @append_indent_start
  (_)
  "}" @prepend_spaced_softline @prepend_indent_end
  .
)

(array
  .
  "[" @append_spaced_softline @append_indent_start
  (_)
  "]" @prepend_spaced_softline @prepend_indent_end
  .
)

(:bulb: This is not objectively better than the current JSON formatting rules; it's about the same. It's just an example to illustrate the point.)

I feel you should also find at least one place in the query files to use this, to sort of justify it.

The Nickel rules await :rocket:


CVXOPT and GLPK in travis

I want to add some code which optionally requires CVXOPT and GLPK (Gnu Linear Programming Kit).
The code will also work with scipy but scipy supports only the simplex method of linear programming, which is very slow for my application. The code will use scipy by default and raise an exception saying that CVXOPT and GLPK are not installed if one wants to use that but don't have these installed.
We should not add CVXOPT and GLPK to the requirements file (for PyPI to see) because GLPK might be difficult to install automatically for some systems. But we'll need to have it on travis so I can run my tests.
Does this seem like a reasonable plan?

Took care of this.


Crashes w/ EIO blocks

http://pastebin.com/gC1rigdh
http://pastebin.com/v5qVFMnb
Getting these crashes on MP server when moving into chunks containing the blocks. I've tried many things to no avail. Any ideas?

Not related to EIO.


Default use in Laravel Eloquent model

Is it possible to use this library instead of Carbon as default for timestamp fields in Laravel Eloquent models?
So one could use $post->active_at->ago() instead of Date::parse($post->active_at)->ago() in a template
Thanks!

I think this would be nice to include in the documentation. I was assuming it would work this way until I unpleasantly recalled that Carbon\Carbon was hardcoded in the Laravel.

One possible solution would be to include a trait for Laravel models that returns Date instances.

What methods should I overwrite to achive this? What I already found: fromDateTime, asDateTime and freshTimestamp.

One possible solution would be to include a trait for Laravel models that returns Date instances.
https://gist.github.com/bobbybouwmann/c912814003883955a4c1aae9dcbb97e3


fix: error when run code

Summary
Fix #295
Testing
Test case in #295

Previously we were cloning it via config = { ...c }. Do we need to do that?

not needed now. The cloning is done when getting profile detail.


The UI is reloaded automatically

Is your feature request related to a problem? Please describe.
Currently, the UI is reloaded only if a command is executed. In many cases, I need to reload the UI manually to see the new data.
Describe the solution you'd like
The UI reloads automatically if new data is available. For example, for a process instance.
Describe alternatives you've considered
Manual reload like now.
Additional context
Requires:

https://github.com/camunda-community-hub/zeeqs/issues/55
https://github.com/camunda-community-hub/zeeqs/issues/54

I would like to work on this. Until the required zeeqs issues are implemented, we could automatically reload the data in a fixed interval and get rid of the button already.
Would this be acceptable?

@SebastianStamm yes. We can follow this path as a quick fix. Or, reload once after 5 seconds (may solve most cases). :+1:
The removal of the reload button depends on the interval. If the interval is too big then as a user, I would like to reload.
We should still aim for the solution via subscriptions because the recurring reloading will increase the network traffic a lot. :sweat_smile:

Awesome! I'll play around with different values a bit and see what feels best. I agree that we should use the subscriptions for a proper solution 😄


for retinanet config, how I sets network input size?

You can find it here.

@hellock Hello, img_scale=(1333, 800) 就是网络训练归一化尺寸么？谢谢


fix: update to TypeScript v4.5.4, lit v2.0.2, @web/dev-server, @web/test-runner, etc.

Based on the same updates to player-web.

Why does this go straight to master and not through beta?