City graph seems to loose some edges

Problem description
City graph and building footprint do not match if put together in a two layer picture
Mac OSX 10.11.6 (El Capitan), Python 2.7.10, OSMnx 0.4.
Complete list of your environment's packages and their versions:
zsh-% pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
appdirs (1.4.3)
appnope (0.1.0)
backports-abc (0.5)
backports.shutil-get-terminal-size (1.0.0)
bleach (2.0.0)
certifi (2017.1.23)
click (6.7)
click-plugins (1.0.3)
cligj (0.4.0)
configparser (3.5.0)
cycler (0.10.0)
decorator (4.0.11)
descartes (1.1.0)
entrypoints (0.2.2)
enum34 (1.1.6)
Fiona (1.7.4)
functools32 (3.2.3.post2)
geopandas (0.2.1)
html5lib (0.999999999)
ipykernel (4.5.2)
ipython (5.3.0)
ipython-genutils (0.2.0)
ipywidgets (6.0.0)
Jinja2 (2.9.5)
jsonschema (2.6.0)
jupyter (1.0.0)
jupyter-client (5.0.0)
jupyter-console (5.1.0)
jupyter-core (4.3.0)
MarkupSafe (1.0)
matplotlib (2.0.0)
mistune (0.7.4)
munch (2.1.0)
nbconvert (5.1.1)
nbformat (4.3.0)
networkx (1.11)
notebook (4.4.1)
numpy (1.12.1)
osmnx (0.4)
packaging (16.8)
pandas (0.19.2)
pandocfilters (1.4.1)
pathlib2 (2.2.1)
pexpect (4.2.1)
pickleshare (0.7.4)
pip (9.0.1)
prompt-toolkit (1.0.13)
ptyprocess (0.5.1)
Pygments (2.2.0)
pyparsing (2.2.0)
pyproj (<IP_ADDRESS>)
python-dateutil (2.6.0)
pytz (2016.10)
pyzmq (16.0.2)
qtconsole (4.2.1)
requests (2.13.0)
Rtree (0.8.3)
scandir (1.5)
setuptools (34.3.2)
Shapely (1.5.17.post1)
simplegeneric (0.8.1)
singledispatch (<IP_ADDRESS>)
six (1.10.0)
subprocess32 (3.2.7)
terminado (0.6)
testpath (0.3)
tornado (4.4.2)
traitlets (4.3.2)
wcwidth (0.1.7)
webencodings (0.5)
wheel (0.29.0)
widgetsnbextension (2.0.0)
zsh-%
Code that reproduces the issue
import osmnx as ox
from IPython.display import Image
%matplotlib inline
ox.config(log_console=True, use_cache=True)

def make_plot(place, point, network_type='drive', bldg_color='orange', dpi=90,
              dist=805, default_width=4, street_widths=None):
    gdf = ox.buildings_from_point(point=point, distance=dist)
    gdf_proj = ox.project_gdf(gdf)
    fig, ax = ox.plot_figure_ground(point=point, dist=dist, network_type=network_type, default_width=default_width,
                                    street_widths=street_widths, save=False, show=False, close=True)
    fig, ax = ox.plot_buildings(gdf_proj, fig=fig, ax=ax, color=bldg_color, set_bounds=False,
                                save=True, show=False, close=True, filename=place, dpi=dpi)

place = 'gante'
point = (51.05660,3.721500)
make_plot(place, point, network_type='walk', default_width=3, street_widths={'primary':3}, dist=525)
Image('{}/{}.{}'.format(img_folder, place, extension), height=size, width=size)

location_point = (51.05660,3.721500)

# create network from point, inside bounding box
G2 = ox.graph_from_point(location_point, distance=525, distance_type='bbox', network_type='walk')
#                        simplify='True',retain_all='False', truncate_by_edge = 'False')
G2 = ox.project_graph(G2)
fig, ax = ox.plot_graph(G2, node_size=2, node_color='#66cc66')

10-building-footprints&Gante.ipynb.zip

It isn't losing any edges. The plot_figure_ground function handles graph construction and plotting in a very specific way to maintain a precise equal-aspect perspective, bounding box, and plotting figure. If you want to overlay another image on top of it, you need to make sure they're created the same way so that they match up, pixel-for-pixel.
First, create your figure-ground diagrams and save to a png file:
import osmnx as ox
from IPython.display import Image
%matplotlib inline
ox.config(log_console=True, use_cache=True)

location_point = (51.05660,3.721500)
dist = 525
network_type = 'walk'

img_folder = 'images'
extension = 'png'
size = 300

def make_plot(place, point, network_type='drive', bldg_color='orange', dpi=90,
              dist=805, default_width=4, street_widths=None):
    gdf = ox.buildings_from_point(point=point, distance=dist)
    gdf_proj = ox.project_gdf(gdf)
    fig, ax = ox.plot_figure_ground(point=point, dist=dist, network_type=network_type, default_width=default_width,
                                    street_widths=street_widths, save=False, show=False, close=True)
    fig, ax = ox.plot_buildings(gdf_proj, fig=fig, ax=ax, color=bldg_color, set_bounds=False,
                                save=True, show=False, close=True, filename=place, dpi=dpi)

place = 'gante'
make_plot(place, location_point, network_type=network_type, default_width=3, street_widths={'primary':3}, dist=dist)
Image('{}/{}.{}'.format(img_folder, place, extension), height=size, width=size)

Then, create a new graph around the same area and plot it the exact same way that plot_figure_ground would:
G = ox.graph_from_point(location_point, distance=dist*1.2, distance_type='bbox', network_type=network_type,
                        simplify=False, truncate_by_edge=True)
G = ox.simplify_graph(G, strict=False)
G = ox.project_graph(G)
bbox_proj = ox.bbox_from_point(location_point, dist, project_utm=True)
fig, ax = ox.plot_graph(G, bbox=bbox_proj, fig_height=8, margin=0, axis_off=True, equal_aspect=True, bgcolor='w',
                        node_size=30, node_color='g', node_zorder=2, edge_linewidth=3, edge_color='m',
                        show=False, save=True, close=True, filename='new', file_format='png', dpi=90)

You now have two png files saved. Now if you overlay the second image file on top of the first, they will match up, pixel-for-pixel:

Thank you very much.
It is possible to save G (the graph of roads) as a shapefile and still match the building footprint?
I have tried with
G = ox.graph_from_point(location_point, distance=dist*1.2, distance_type='bbox', network_type=network_type, simplify=False, truncate_by_edge=True)
G1 = ox.simplify_graph(G, strict=False)
ox.save_graph_shapefile(G1, filename='false')

but the result is different that the footprint image.
I would need the roads in shp format.
Thank you for your time and help.
Regards

The png file format is a raster data format, but shapefiles are a vector data format. Overlaying them and getting them to line up will entirely be up to the software with which you overlay them (i.e., not an OSMnx issue). In general, it's probably easiest to match things up if they're both raster or both vector (though this certainly isn't a hard and fast rule). If you want to do everything as (vector) shapefiles, you can download the building footprints then save as a shapefile -- for an example, see cell 4 in this notebook. Then download the graph of roads and save as a shapefile. If you then open these two shapefiles as layers in a GIS (or whatever software that can handle them), they will line up properly.

Thank you very much


Quartz Job fired twice in cluster mode

Quartz Job fired twice in cluster mode，see the detail bug : https://jira.terracotta.org/jira/browse/QTZ-453

I don't see a test case in the QTZ-453. Need Review.

I've had the same issue with the C# port. When acquiring triggers, shouldn't locking be used if in cluster mode? Currently the only check is for getAcquireTriggersWithinLock() || batchSize > 1....however setAcquireTrigersWithinLock(true) is not called if in clustered mode. There is a separate flag for "UseDBLocks" which isn't used.
I was going to submit a pull request on the C# port of this, and saw that the code is almost identical to the Java version.
I think this is the problem, but maybe one of the maintainers could weigh in.
I had a test installation setup where I could replicate the dual firing pretty easily if I let it run for a while. If I set the batchSize to a value > 1, which forced the use of locks in trigger acquisition, the dual firing went away.

I've had the same issue in version 2.2.1

i had the same issue in version 2.2.1 in java

We have same problem (2.2.1 java). Issue is not reproducible with local instances(tried with test cases). However it is reproducible in customer instances. the only difference with customer instance is that the application is deployed in weblogic. Are there any chances to have problem with weblogic deployment with quartz? we use standard JNDI data source to get the connection

I am here to report that we have the same issue too. We have two jobs that each was triggered twice. The trigger is simple interval trigger. The jobs are supposed to run daily at a fixed time. But sometimes, the jobs were run twice the same day.
Our server cluster has 16 nodes using quartz scheduler (quartz 2.2.1 java version). Each node is on VM on SAP cloud, and application is running inside Tomcat.
We can't reproduce the issue in house, but it did happen 3 times to our customer.
I believe it'shard to reproduce because it's a racing condition problem, but it did happened, as well as the other reported.
It's a serious issue. Could the quartz team fix the problem?
Thanks.

My issue got resolved after adding property "org.quartz.jobStore.acquireTriggersWithinLoc" as true. But as per documentation, it is not necessary with latest build. However that is not the case

I tried setting
org.quartz.jobStore.acquireTriggersWithinLock=true,
but I still saw the issue, still saw duplicate trigger executions

It might be because one of the node failed to do check-in in time? See 176

i had the same issue in version 2.3.0 in java.

configure as 0 0/15 * * * ? will trigger twice，for example twice at 2017-09-14 15:00:01 ,2017-09-14 15:00:00,but 0 */15 * * * ? is ok

version 2.3.0 in java.

Same problem here... v 2.6

we went to production with version 2.2.3 and get this issue from time to time as well. We don't use @DisallowConcurrentExecution annotation in our jobs.

experiencing this issue and reported a defect in our agile board.

I had the same issue in version 2.2.1 in java

Any update？ I have the same issue， version ： 2.2.3 and I am using mongdob.
https://github.com/michaelklishin/quartz-mongodb
but my problem is the trigger times is same as thread count.

Hi, this is likely duplicate of this issue #107 Please try the solution propose and reopen if you still it's different issue.

Commenting on closed thread , but wanted to understand if this reproduces only when recoveryrequested= true or otherwise also.
@prasad-babu  @yangdailin  @jhouserizer @upton
btw we are using oracle database seeing this issue when recoveryrequested= true and acquireTriggersWithinLock=true and vm time are in sync.

I had the same issue before but I discovered that I was calling scheduler.scheduleJob(job, trigger);   to update the job data while the job is running which is randomly triggered the job 5-6 times each run. I had to use the following to update the job data without updating the trigger scheduler.addJob(job, true);

Commenting on closed thread , but wanted to understand if this reproduces only when recoveryrequested= true or otherwise also. @prasad-babu @yangdailin @jhouserizer @upton btw we are using oracle database seeing this issue when recoveryrequested= true and acquireTriggersWithinLock=true and vm time are in sync.

Hi @way2nikhil . Sorry to cite you on a closed thread, but i'm still having this problem with Quartz 2.2.3, with Oracle, recoveryrequested= true and acquireTriggersWithinLock=true. Do you have found any workaround this problem?


PEX removes the default group every 24h using MySQL

Hey guys!
I have a problem. I do not know why but the plugin PermissionsEx removes every 24H the default group. :(
I am using the MySQL backend and I have multiple server.
Here is my config.yml file:
permissions:
  backend: sql
  backends:
    sql:
      uri: mysql://<IP_ADDRESS>/PermissionsEx
      user: admin
      password: *******************************************
      type: sql
  debug: false
  allowOps: false
  user-add-groups-last: false
  log-players: false
  createUserRecords: false
  informplayers:
    changes: false
  basedir: plugins/PermissionsEx
multiserver:
  use-netevents: true
updater: true
alwaysUpdate: false

All other groups are fine. They do not get removed.
Spigot version:
git-PaperSpigot-"8b18730" (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
PermissionsEx version: 1.23.4
I hope that you can help me! :)
Best greets,
HaNiTLG :)

#push.

You can't "bump" your threads here.  Zml will get to it when he gets to it.

Ok, thanks for the information! :)

#push? :(

Sorry, bumping threads doesn't work here.

Can you write a message to him? :(

Why is @zml2008 so inactive? :(

Can you write a message to him? :(

No need.  He gets these tickets emailed to him.

Why is @zml2008 so inactive? :(

Real life happens...

Any news? :o

Unfortunately PermissionsEx is currently unmaintained and no further updates are planned. Because of this, all pull requests are being closed. If you are looking for an actively maintained permissions plugin, take a look at LuckPerms. It is compatible with major server platforms and can import data from PEX.


Clarify function name

If you were for example to console.log your array of webpack plugins, naming it like this makes it very clear which plugin it is :grin:

Nice one, Jeff ;)


download_strategy: more direct SVN modified date detection

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

svn info --show-item last-changed-date avoids the need for parsing.
I could keep REXML for the < 1.9 case. Though the fragile nature of plain grepping doesn't really apply here, since any breaking changes wouldn't suddenly apply to < 1.9.

Looks good, nice work @Bo98!


record type appears as unknown

Thanks for the library.
Describe the bug
Hello, in the OnRowClick property, the record type appears as unknown, as seen in the picture. What would be the reason? Thanks
Expected behavior
I expect the record to get the type of value in the records array I give.
Screenshots

Thanks for helps

Thanks for the kind words!
The DataTable does infer types from the records array, so the record property in the onRowClick handler should be properly typed.
I encountered no such issue when building the examples for the documentation website, which is a Next.js + TypeScript application.
Can you please come up with a reproduction (on codesandbox or something similar, or even a small repo on GitHub)?

Just to chime in on the discussion, I had a similar issue when migrating from v6 to v7, and I think you have the same @arifsygl , I had to type the function passed as onSortStatusChange to datatable.
Basically:
before
const changeSortStatus = (sort: DataTableSortStatus) => {
    // something something
}

<DataTable
  onSortStatusChange={changeSortStatus}
  records={records}
  // [...]
/>

after
                                                  // 👇 this would allow datatable to infer the records properly
const changeSortStatus = (sort: DataTableSortStatus<MyRecordType>) => {
  // something something
}

<DataTable
onSortStatusChange={changeSortStatus}
records={records}
  // [...]
/>

Thansk for answers,
I upgraded TypeScript and added the record type to the sortStatus field as you said and it worked. But it might be better if the record gets its type when I don't add the type.

I am facing the same issue. Adding the record type to DataTableSortStatus<…> works.
However, this makes for quite verbose code, and I hardly believe this is the intended behaviour. The types should come from the records we pass as <Datatable records={…} />, shouldn't they?

Can this be resolved with the new NoInfer utility type introduced in TypeScript 5.4?


Pub get fail on dependency with relative path

I have a private repo with the following structure:
lib/
   /backend
  my_module.dart

backend is an auto generate library from a swagger definition. So I need to specify it on my pubspec file
dependencies:
  backend:
    path: lib/backend

No compilation problem on the library itself, but once I push this on GitHub and refer my module into my app like this:
dependencies:
  my_module:
    git: https://github.com/name/my_module

I get this error:
Error on line 12, column 11: Invalid description: "lib/backend" is a relative path, but this isn't a local pubspec.
    path: lib/backend

I notice that pub get the following structure:
my_module/
   backend/
   my_module.dart

Where is should be
my_module/
   lib/
      backend/
   my_module.dart

I tried moving backend module outside of lib folder but in that case it's not even retrieve anymore... Any idea what's wrong here ?

Can you not generate it into another directory outside your current projects directory?
Also why do you think you need to add it to pubspec.yaml dependencies:?
If there is no pubspec.yaml it is not a Dart package.
If it's not a Dart package, there is no point in adding it to dependencies:.
If it's just a xxx.dart file, you can just import it where you need to use code it contains.


Update tests

Couple updates to the tests:

Makes the localhost auth call work on Windows
Makes sure the exception test actually receives an exception

Thanks

Do you happen to have any examples of Travis-CI, Deluge and Windows?

I've heard appveyor is the thing to run tests on Windows. Haven't had a look yet, but I can try to whip up a PR.


Add setting to restrict landing zone uploads to superusers

Add Django setting to prohibit landing zone uploads from non-superusers. Defaults to False.

Done.


Remove Listeners from socket that is closed

It's clear that the delete this.socket line is meant to get rid of the socket, but the socket is still active.
If the broker is closed immediately after that line, the socket will receive a W_DISCONNECT message and it'll restart the worker, even though the programmer has explicitly stopped it.

Going to work at hardening the travis tests on my fork before I push. There seems to be some timing issues. With the builds.


create_certs fails due to missing hail_version

Running step 3 (tls/create_certs.py) in https://github.com/hail-is/hail/blob/main/dev-docs/tls-cookbook.md fails because hail/python/hailtop/hail_version doesn't exist in a standard cloned repo. It's possible to work around this by setting a dummy version, but maybe there's a better way to handle the version dependency?

Is it enough to run the make hail_version script?

Thanks, make -C hail python/hailtop/hail_version seems to do the trick. I'll update the docs.


R2/prl 1219 manage orders tab

JIRA link (if applicable)
PRL-1219
Change description
Manage orders tab work
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

merged to r2 already


Switch from Netlify CMS to a different editing system?

Issues
Over the last week or two I have struggled with configuration issues of Netlify CMS (or bugs? hard to tell sometimes), and I am seeing broader issues with the tool.

Just a few days ago, Netlify CMS contributors ask Netlify, Is this project dead? (because it's getting no activity for the past several months)
This blog post affirms my experience that Netlify CMS documentation is "...not good" (as they say politely), and it names several competitors.

Discussion
I recommend putting Netlify CMS on notice and considering those competitors. Forestry.io appears to be top of the list.
To be clear, this does not change our use of Netlify. This is only about Netlify CMS.
@cleiserson this concludes my work today trying to fix the problems you and discussed earlier this afternoon. In short, it will probably be better to switch to something like Forestry.io than to try to fix our issues with Netlify CMS.

Flagging for my partners in process @cleiserson @dcurtisatmit @ailiop
After some research I would say that "switching from Netlify CMS" means we're looking at the world of "headless CMS," which is like a regular content management system (CMS) but uses APIs so it's agnostic about how the data is stored and displayed.
These two links indicate that there are dozens of options:

https://jamstack.org/headless-cms/
https://www.cmswire.com/web-cms/13-headless-cmss-to-put-on-your-radar/

So I would say that we're not looking at a quick and simple switch (e.g., from Netlify CMS to Forestry.io), but facing something more like our original website choice of platform -- when we eventually selected Eleventy. As we did for that decision, I recommend considering our priorities. These might include

integration with GitHub content
integration with GitHub teams for permissions
contextual and collaborative editing
pre-publishing workflow

I suspect that in parallel with this, I/we will want to understand the capabilities of GitHub, because I think GH is our user's "home base" and we don't want to accidentally add some tech layer that separates us unnecessarily from GH.

@cleiserson @dcurtisatmit @neboat: following up on the team meeting I discussed GitHub workflow with @ailiop yesterday. I liked his suggestions and I have tried to summarize them visually like so:

@ailiop did I get it right? (I have left out some things like "squash" for now, which we probably do want to include soon.)
There is an editable svg at https://github.com/OpenCilk/www.opencilk.org/blob/main/src/img/github-workflow.svg (which I drew with Inkscape fyi).
I look forward to discussing. I think this model reflects everything we discussed on Wednesday, including

Managing "this release" and "the next release"
Defining where updates and discussion happen for any page of content being worked on.
Allowing many different pages to be edited in parallel.

@behoppe I think this looks very good.  I will add a few comments, which hopefully will be helpful — rather than confusing — for some details:

As I understand this illustration, it shows the commit where a PR/branch starts from.  It does not show the rebasing/merging onto main.  The latter is trivial when the PRs are independent and requires resolving conflicts otherwise.
"Netlify CMS PRs" makes it a little simpler to initiate a page-specific PR and edit a page collaboratively without having to go through the GitHub interface or maintain a local clone of the repo.  "Manual PRs" could also facilitate collaborative edits if the source of the PR is a branch on OpenCilk/www.opencilk.org instead of a branch on a user's fork.
One may still interact with a "Netlify CMS PR" as if it were a "Manual PR".  That is, one can make comments, request reviews, add commits using a "manual" terminal-based workflow, etc.  After all, "Netlify CMS PRs" appear as regular PRs on the GitHub repo.

Thank you @ailiop. I find those comments helpful, although I will need to think more about the second one: "collaborative edits where the source of the PR is a branch on OpenCilk/www.opencilk.org".
I just discovered a wrinkle to this model: when we disable Netlify CMS "workflow," then Netlify CMS no longer creates pull requests. Instead, each edit session ends with clicking "publish," which generates a commit to the designated branch. There is no pull request, and so there is no page-specific PR deploy-preview. I have configured a site that shows this behavior, and it's generated with content from https://github.com/behoppe/one-click-hugo-cms. So you can look at that repo for a glimpse of what I mean. In that case, Netlify CMS works on the staging branch, which has is a pile of commits corresponding to any edit I've made to any page -- waiting for me to create a pull request for all those commits and merge them with main.
So I think maybe we want to use Netflify CMS workflow in a specific limited way. All we want from that module is to generate pull requests for each page (along with the deploy-previews and comment threads etc.). We do not need it to track draft vs in-review vs ready, because we can assume everything is "pre-published" in Netlify CMS, and we will use GitHub Project to track the specific status levels.
So with the workflow screen, we might look only at "draft" and ignore "in-review" and "ready":

And with the edit screen, we might use only the "save" button and ignore all the other status and publish buttons.

Hopefully this sounds workable? I am not sure how hard it would be to actually reformat those pages, to hide the parts that I propose we ignore.

Replying to the original 2 posts of this issue, there are important updates in the landscape of headless CMS:

Netlify CMS has been reborn as Decap CMS (as of Feb 2023)
Forestry.io is no more, being replaced by Tina CMS

I'm also impressed with how Data Umbrella uses GitHub to run their community blog, which includes this tutorial post on how they did it.


Supermium 124.0.6367.245 x32 on Win8.1x64, crash during browsing

Supermium 124.0.6367.245 x32
executed on Win8.1 x64
It crashed for me upon browsing after 5minutes:
24f121b9-61d4-4e5d-9518-d86a4bfa1a29.dmp
9b779e8c-ab7e-4af0-84c1-b852272fb134.dmp
15f99312-5ee6-42df-85ff-b699e055ff84.dmp

The "Supermium 124.0.6367.245 x32 prerelease" works very well for me in combination with the ida-re-progwrp.dlls on XP.
But the experience of the stock browser on Win8.1x64 is so poorly for me due to the frequent crashing, that I switched back to "Supermium 122.0.6261.152 (R6)" when using the browser on Win8.1x64. The older version works much better for me there.

This instability bug here that I experienced with https://github.com/win32ss/supermium/releases/tag/v124-pre
seems to be fixed for me in https://github.com/win32ss/supermium/releases/tag/v124
So I do suspect that it may have been a duplicate of the https://github.com/win32ss/supermium/issues/687 which was mentioned in the changelogs of https://github.com/win32ss/supermium/releases/tag/v124 .
Although the reporters in there were discussing whether it is related to their NVidia GTX 1000, I do contrary to that have used a "Intel HD Graphics 4600" on my affected machine, which obviously is a different card. But both: them and me used Win8.1x64 when seeing the crashes with 124pre-build.
I am closing it as a duplicate of that now.


Adopt composer 2 setting

Ref https://getcomposer.org/doc/articles/plugins.md#plugin-modifies-downloads

Looks it should be skipped, false alert


Unexpected Pitch behavior on Ubuntu/Debian

Bevy version
0.12
[Optional] Relevant system information:
Linux W540 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64 GNU/Linux, also confirmed to occur on unspecified Ubuntu setup.
What you did
I extended Pitch example provided in Bevy 0.12 release notes with keyboard input handling so that now only if I press a key the Pitch gets created and PitchBundle gets spawned into world.
In release notes there is a sentence "More complex sounds can be created by playing several pitch audio sources at the same time, like chords or hamonics."
Code sample
use bevy::prelude::*;
use bevy::utils::Duration;

fn play_pitch_a(
    mut pitch_assets: ResMut<Assets<Pitch>>,
    mut commands: Commands,
    keyboard_input: Res<Input<KeyCode>>,
) {
    if keyboard_input.just_pressed(KeyCode::A) {
        let pitch_handle = pitch_assets.add(Pitch::new(220.0, Duration::new(1, 0)));
        commands.spawn(PitchBundle {
            source: pitch_handle,
            ..default()
        });
    }
}

fn play_pitch_b(
    mut pitch_assets: ResMut<Assets<Pitch>>,
    mut commands: Commands,
    keyboard_input: Res<Input<KeyCode>>,
) {
    if keyboard_input.just_pressed(KeyCode::O) {
        let pitch_handle = pitch_assets.add(Pitch::new(440.0, Duration::new(1, 0)));
        commands.spawn(PitchBundle {
            source: pitch_handle,
            ..default()
        });
    }
}

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Update, play_pitch_a)
        .add_systems(Update, play_pitch_b)
        .run();
}

What went wrong

what were you expecting?
I was expecting the frequency stay the same even if I trigger another PitchBundle with the same frequency value spawning while another one is still sounding.
In case of two Pitch instances with different frequency values playing simultaneously I was expecting to hear only those two defined frequencies.

what actually happened?
But right now if I press a key while the Pitch is playing then I get some other, higher pitch for the time when the old pitch and the new one are being played (both with the same frequency). When old pitch is done playing the remaining pitch goes down in frequency to that which was defined when I created Pitch instance.
Also similar thing happens when I try to play two different Pitches (?) with not equal frequencies: when they overlap I get some unexpected high pitch and only when they don't overlap I can hear what was defined.

Additional information
Please see following thread on Discord:
Pitch audio source example from Bevy 0.12 release notes

If I create two tracks in Audacity and do Generate > Tone (default settings) on each track then I get a similar distorted sound as what I heard when I tried code sample on my Ubuntu setup. Lowering the volume on both tracks in Audacity removes the distortion.
On Windows the code sample did not sound distorted. So I'm guessing on Windows there is some kind of compensation going on when the audio gets too loud. But I'm not an audio expert

The reason this is happening on Windows is indeed that it is dynamically reducing the audio output when an application's audio signal is too loud. So the audio is scaled appropriately, but because it happens at the OS level, after mixing all audio from all applications, it will also reduce the audio level of other applications. The only correct solution is to plan how loud the signals will be and never going too loud (like having the 1/N solution described above). Note that the level reduction thing on Windows is a recent thing, I definitely used to get some distortion in the not so distant past, so it might be the case that on Windows 10 (as opposed to Windows 11), the audio still distorts.
There are dynamics control audio effects that can also be applied on Bevy's output, but unfortunately for now "master effects" are not possible to implement in bevy_audio.
Closing as wontfix (at least until we have proper audio processing infrastructure) / user error


Extend Pipe and Structure properties sent from C3D to facilitate mapping in other software (Revit)

What package are you referring to?
Civil 3d
Is your feature request related to a problem? Please describe.
We have been using Speckle to transfer data from C3D and recreating the model in Revit for coordination internally and externally.
Our intention is to be able to build a native representation in Revit using custom families, pipe systems etc.
We found the properties exported by default from C3D a little limited and missing key information for this translation.
For example:

no network reference
no indication of structure depth
etc

We have therefore been using dynamo as a workaround to push the additional properties from C3D to speckle although were finding some barriers to adoption and some pitfalls in the translation of the diaplayMesh.
However looking at the convertor for AutoCad Civil these additional properties can be added.
Describe the solution you'd like
Additional properties added to the base Native to Speckle conversion
Describe alternatives you've considered

Using Dynamo for the conversion
Creating a custom Object Kit with teh additional properties

Additional context
Default Properties

Additional Properties

Related issues or community discussions
Alternative way around though Rvt -> C3d as opposed to C3d -> Rvt
https://speckle.community/t/revit-family-civil-3d-pipe-network-structure/2928

Hey @alex-d-richards , could you take a look at this recent pr that adds PartData to pipes and structures? It does contain some of the missing properties you mentioned, but perhaps not all of them. Is the information in PartData enough, or do you require all of the properties?

hi @clairekuang thanks for reviewing this. I have pulled a copy the dev branch and from my limited testing so far this looks to provide the parameters that I was expecting.
Reviewing this same wok flow I do have a few other comments, queries but I think I will add these to the community page later in the week.


Implement kafka generic errors typing

:tada: This issue has been resolved in version 0.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Replace Moq dependency with a different Mocking library

Due to the controversies around the Moq library (see https://github.com/moq/moq/issues/1372), we may want to consider switching to another mocking library, like e.g. NSubstitute to avoid any privacy issues.
[1] Contains an example of how this was done by another previous Moq user.
Note: Currently we are using v4.18 of Moq, and the controversial change has been introduced with v4.20 and above, so currently this repo is not directly affected by the change. However, we should not merge any renovate PRs bumping the Moq dependency
References:
[1] https://github.com/Afterlife-Guide/AppSettings.Merge/pull/6

Is someone planning on picking it? Can look into replacing Moq with NSubstitute.

I don't see any PRs yet, so @askpt feel free to open a PR with the change :)

The following remaining tests need to be converted

Hook_Hints_May_Be_Optional
When_Error_Occurs_In_Before_Hook_Should_Return_Default_Value
When_Error_Occurs_In_After_Hook_Should_Invoke_Error_Hook

Now only:
Hook_Hints_May_Be_Optional
When_Error_Occurs_In_After_Hook_Should_Invoke_Error_Hook

remaining.


Change component ph to a range

This changes the "What is the PH of the product?" from asking for a single PH number to asking for a range – ie the maximum and minimum PH.
https://regulatorydelivery.atlassian.net/jira/software/projects/COSBETA/boards/24?selectedIssue=COSBETA-600
Before

After

As is currently the case, this question is only asked if the user previously indicates that the PH is outside of the range of between 3 and 10.
Check your answers page when a range is entered

Check your answers page when minimum and maximum pH are the same

The way this data is saved to the database also changes, from being stored against a TriggerQuestionElement as a string to being stored as two decimals (minimum_ph and maximum_ph on the Component itself. This is to simplify the data model, make it easier to query, and in anticipation of dropping the TriggerQuestion and TriggerQuestionElement models soon.
TODO

[x] Data migration for existing values
[x] Update the Check your answers screen
[x] Any additional validations
[x] Check impact on bulk upload flow
[x] Consider whether text input boxes should appear side-by-side

@slorek @baphled I’ve cherry-picked this from master and rebased it against prod. Please re-review!
This also still needs to be QAed, so would ideally get deployed to staging or int (before merging into prod).


[LiveComponent] is displayed in an iframe with id "live-component-error" after change

Hi,
I'm using Live Component alike the example https://ux.symfony.com/live-component/demos/auto-validating-form.
Then after changing a select value, the component is re-rendered in a iframe with id "live-component-error".
Found the meaning in<EMAIL_ADDRESS>test is : if (headers.get('Content-Type') !== 'application/vnd.live-component+html' && !headers.get('X-Live-Redirect')) {
and my headers.get('Content-Type') is text/html; charset=utf-8, application/vnd.live-component+html
In profiler response seams ok:
content-type | "application/vnd.live-component+html"

In Chrome console response headers has two entries for Content-Type :
Content-Type:
application/vnd.live-component+html

Content-Type:
text/html; charset=utf-8

I don't figure out why...

Any clues on how to process to debug ?


Generate preview from video

How can I make a small preview from a video. When we mouse over on player, I want to show the small jpeg/Gif preview.
similar to this
https://www.binpress.com/generate-video-previews-ffmpeg/
or
https://github.com/transitive-bullshit/ffmpeg-generate-video-preview

You could exporting a number of frames using a loop and then use the timelapse feature to generate a new video. This is not really an issue or bug, so I'll close this.


Add support for MSDP peer mesh groups (including non-default VRF)

Enhancement summary
Add router_msdp knob to eos_cli_config_gen to support MSDP configurations for default and non-default VRFs in EOS devices.
As a minimal example, I need to cover the following config:
router msdp
   vrf VRF1
      peer <IP_ADDRESS>
         local-interface Loopback1
         mesh-group MSDP-VRF1
!

A more complete data model should follow The configuration guide: https://www.arista.com/en/um-eos/eos-multicast-source-discovery-protocol-msdp#xx1151283
Which component of AVD is impacted
eos_cli_config_gen
Use case example
Need to configure MSDP mesh groups on a VRF
Describe the solution you would like
See summary for the minimum required CLI. Ideally the data model should cover a more complete configuration based on the official MSDP configuration guide.
Describe alternatives you have considered
Using custom template to cover the requirement
Additional context
No response
Contributing Guide

[X] I agree to follow this project's Code of Conduct

@ClausHolbechArista is it possible to reopen this issue? As part of the DCI deployment I need 9 render MSDP config, simple in my case based on the example given.

I could invest some time to implement the basics to cover the initial needs, but can't commit much time  till EOY. if we start to expose an MSDP Datamodel it would need to be extended to cover as much CLI as possible or at least most of the typical config scenarios. An additional volunteer would be nice :)

I'm picking this one up. Aiming to implement complete coverage of the msdp configuration.


Make native asset integration test more robust, thereby allowing smooth auto-update of packages via flutter update-packages

Currently the bot that runs flutter update-packages makes PRs that fail due to native asset integration tests failing.
The root cause is due to incompatible versions on package:logging. The bot tries to upgrade package:logging from 1.2.0 to 1.3.0.
Here's what seems to happen:

flutter update-packages will update dev/integration_tests/link_hook/pubspec.yaml with package:logging to 1.3.0 (as it does with all other pubspec.yaml files in the flutter repository)

flutter create  --template=package_ffi will generate a template with package:logging ^1.2.0

The test in question

creates ffi template (which will use ^1.2.0)
make it depend on dev/integration_tests/link_hook (which uses =1.3.0)
changes logging dependency from the template from ^1.2.0 to =1.2.0

IMHO

flutter update-packages is doing what it's supposed to

flutter create --template=package_ffi can generate templates with versions it determines (maybe there are use cases where we want to generate templates with older versions)

The problematic part is the test:

it makes the generated template depend on link_hook and
changes template generated pubspec to use pinned dependencies

This PR makes the test package (created via template) use the pinned package versions from dev/integration_tests/link_hook (for dependencies that are common among the two).
All other dependencies that the template has on top of dev/integration_tests/link_hook it can pin as it does currently.
This will give us deterministic CI behavior (as we use flutter pined packages and remaining deps being pinned via template) It avoids changing the flutter update-packages and flutter create --template=package_ffi (as their behavior seems reasonable)
Should fix https://github.com/flutter/flutter/issues/158135

Thanks, @mraleph !


Please review changes made to workflow_scan_instance.yml

updated instance scan version to 2.0

Action fails unless the version is changed to 2.0.0


Impl interpolation methods

Codecov Report
Attention: Patch coverage is 99.94200% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 99.20%. Comparing base (e4090e6) to head (3f2b184).
Report is 162 commits behind head on main.

Files
Patch %
Lines

russell_lab/src/check/deriv1_central5.rs
97.36%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
+ Coverage   99.08%   99.20%   +0.11%
==========================================
  Files         146      168      +22
  Lines       32028    38147    +6119
==========================================
+ Hits        31734    37842    +6108
- Misses        294      305      +11

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Well-trained model

Can you provide the well-trained model for UCF dataset? Thanks

I find it. Thanks


Expand Travis config

Codecov Report

Merging #567 into master will decrease coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #567      +/-   ##
==========================================
- Coverage   85.57%   85.51%   -0.07%
==========================================
  Files          18       18
  Lines         423      421       -2
==========================================
- Hits          362      360       -2
  Misses         61       61

Impacted Files
Coverage Δ

lib/guardian/permissions/bitwise.ex
90.47% <0%> (-0.44%)
:arrow_down:

lib/guardian/plug.ex
83.56% <0%> (-0.23%)
:arrow_down:

lib/guardian/token/jwt/verify.ex
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


fix holding down key scrolling issue

This PR fixes #18270

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 48.239%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
14797

Relevant Lines:
29107

💛  - Coveralls


[api-docs] update region deprecation message

A new commit was made into the api-docs repo. This issue was created automatically. Need to review if we made any change to the library for this commit.
https://github.com/discord/discord-api-docs/commit/7ae3f54bfd319bbd6347b5328138a9af03f26e4c

Already done.


feat(other): add roadmap table

🍰 Pullrequest
The open source software Ocelot and Gradido have been given a roadmap table. this may not be up to date.
A vote in a review would be necessary here
Issues

fixes #55

old


⚠ Bofrost.fr has degraded performance

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

HTTP code: 200
Response time: 1153 ms

Resolved: Bofrost.fr performance has improved in 1d5215d.


NH-24619: Making Helm chart from the manifest

Updated skaffold to v2 (we would never upgrade if we wanted to keep backward compatibility). This is BREAKING CHANGE, so every developer will need to update skaffold.
Added Helm chart

Created values.yaml so that main feature are configurable (memory limits, what logs to scrape, what metrics to scrape etc.)
As part of that I split events into separate standalone otel collector, so that it can have its own limits and place in config file
I also removed CPU limits as it is generally considered as antipattern (https://home.robusta.dev/blog/stop-using-cpu-limits)

Manifest is now generated from the chart
Adding CI workflow that validates the chart and also that chart matches the manifest

I applied recommendation of @petercable he put here: https://swicloud.slack.com/archives/C02HF9XCHB8/p1670339697153119?thread_ts=1667488326.790079&cid=C02HF9XCHB8
I put memory limit and requests the same


Interrupt() issue when using async/await in js

Hi Team, i am having a weird issue. The engine execution cannot be interrupted. It seems the execution stops, but host does not get ScriptInterruptedException exception. Here is my code.
        static async Task Main()
        {
            using var engine = new V8ScriptEngine();

            Task.Run(async () =>
            {
                await Task.Delay(1000);
                engine.Interrupt();
            });

            engine.AddHostType(typeof(JavaScriptExtensions));
            engine.AddHostType(typeof(Console));
            engine.Script.GetInt = new Func<Task<int>>(GetInt);

            engine.Execute(@"
            async function f() {
                await GetInt().ToPromise();
                while(1) { Console.Write('.'); };
            }");

            try
            {
                await (engine.Script.f() as object).ToTask();
            }
            catch(ScriptInterruptedException)
            {
                Console.WriteLine("Interrupted");
            }
        }

        public static async Task<int> GetInt()
        {
            await Task.Delay(500);
            return 10;
        }

my csproj
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net5.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.ClearScript.Core" Version="7.1.5" />
    <PackageReference Include="Microsoft.ClearScript.V8" Version="7.1.5" />
    <PackageReference Include="Microsoft.ClearScript.V8.Native.win-x64" Version="7.1.5" />
  </ItemGroup>
</Project>

If I do one of the below changes, it can be interrupted successfully

Change await GetInt().ToPromise(); to GetInt().ToPromise();
or 2. remove the line in GetInt() method. await Task.Delay(500);

Looking forward to your reply. thanks

Hi @tony-xia,
Normally when an async function throws an exception, the JavaScript infrastructure intercepts it and uses it to reject the corresponding promise. That's the behavior your code expects.
The problem is that ScriptEngine.Interrupt does not trigger a script exception that could be processed in that manner. Instead, it aborts script execution and throws a .NET exception (ScriptInterruptedException) on the same thread.
In your case, that's a worker thread, and the exception is dropped on the floor. More importantly, the promise returned by f remains pending. So, although the script has been interrupted, your code can't get past the await.
Unfortunately, all of this is by design. ScriptEngine.Interrupt predates promises and async functions, and we're not aware of any newer, async-friendly V8 APIs for script interruption.
The changes you mentioned effectively turn f into a normal function. The Console.Write loop runs synchronously and is interrupted before the promise is created, triggering a ScriptInterruptedException on the calling thread.
As for a workaround, well, there's no way for the script engine to intercept script interruption – that's by design – but the host can easily catch ScriptInterruptedException. If you run your interruptible code within a nested host layer, you can get close to the behavior you're looking for:
engine.Script.NestedInvoke = new Action<dynamic>(func => func());
engine.Execute(@"
    async function f() {
        await GetInt().ToPromise();
        NestedInvoke(() => { while(1) { Console.Write('.'); }});
    }
");
try {
    await (engine.Script.f() as object).ToTask();
}
catch (ScriptEngineException e) when (e.GetBaseException() is ScriptInterruptedException) {
    Console.WriteLine("Interrupted");
}

Please send any additional thoughts our way.
Thanks!

thanks @ClearScriptLib  for your reply and the detail you provided. Now i understand a bit about what really happens under the hood. And i tried to interrupt engine when a c# method is being invoked, and found the engine continues the script after c# method.
        static async Task Main()
        {
            using var engine = new V8ScriptEngine();

            var task = Task.Run(async () =>
            {
                engine.AddHostType(typeof(JavaScriptExtensions));
                engine.AddHostType(typeof(Console));
                engine.Script.WaitForTwoSeconds = new Func<Task>(WaitForTwoSeconds);

                engine.Execute(@"
                async function f() {
                    await WaitForTwoSeconds();
                    Console.Write('This line will be executed.');
                }");

                try
                {
                    await (engine.Script.f() as object).ToTask();
                }
                catch(ScriptInterruptedException)
                {
                    Console.WriteLine("Interrupted");
                }
            });

            await Task.Delay(1000);
            engine.Interrupt();
            await Task.Delay(3000);
        }

        public static async Task WaitForTwoSeconds()
        {
            await Task.Delay(2000);
        }

The string "This line will be executed" will be printed.
looks like interruption has some problems when it comes with async  :(

Please reopen this issue if you have additional thoughts or findings on this topic. Thank you!


Add Salmon adapter

Support for https://salmonwallet.io/ wallet

Hey, I want to address the lack of activity on your PR. Thank you for your patience!
Here's a followup on the state of wallet-adapter, the issues that individual adapters have in getting integrated with applications, and how we intend to improve things: https://github.com/solana-labs/wallet-adapter/pull/384#issuecomment-1159115764
Let's discuss in that thread to keep it in one place.

Thanks for this! Excited that someone's taken over development of Sollet. I hope this will fix a number of the issues with it and hacks that are necessary on connecting / popup closures.

Published<EMAIL_ADDRESS>please test it out!


Mark extracted SVDs as precious to prevent auto deletion by Make

This prevents Make from deleting the SVD files it considers as intermediate, and then re-creating them using the extraction script.

bors try


⚠ Turnos 24x7 has degraded performance

In b3f451a, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1824 ms

Resolved: Turnos 24x7 performance has improved in d7dfa76.


ec_kmgmt.c: check the return of BN_CTX_get() in time.

If x and y are all NULL, then it is unnecessary to do subsequent operations.
Therefore, this PR adds two checks for the return of BN_CTX_get() in time.

Test case is a bit hard to hit without malloc failure testing.

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Merged to master, 3.1, and 3.0 branches. Thank you for your contribution.


mesa: Fix compilation with latest nixpkgs master

Requires the following upstream pr right now: https://github.com/NixOS/nixpkgs/pull/325449

Nice work!

So according to the feedback you got on your PR on nixpkgs, do you think the recommended way would be to add "-Dgallium-nine=disabled" to the mesonFlags list in packages/mesa-asahi-edge/default.nix?
Or is there more to it?

I’m thinking the right solution might be to just vendor the whole mesa expression code instead of trying to override three ways at once. This would also help avoid problems caused by differences between stable and unstable. I don’t think mesa’s dependencies change that much but the expression is pretty volatile it seems.

I’m thinking the right solution might be to just vendor the whole mesa expression code instead of trying to override three ways at once. This would also help avoid problems caused by differences between stable and unstable. I don’t think mesa’s dependencies change that much but the expression is pretty volatile it seems.

I'll be keen to help you achieve this, but I'm a bit clueless how to achieve it. If you could give me some pointers, I would prepare a PR.

Fixed in the latest release. Ended up going with the vendor solution.

Ty @tpwrules :) Vendoring sounds like a proper solution. I had some different change locally, but yours look good.


Annotations

This PR adds the ability to specify Annotated parameters.
The only annotation allowed currently is a ParameterAnnotation which takes 2 arguments:

descr: the string description to add to the contract definition
default: The arguments default value that can be resolved (see DefaultArgument)

Usage:
    @external
    def hash_it(
        self,
        input: Annotated[abi.String, ParameterAnnotation(descr="The input to hash")],
        iters: Annotated[
            abi.Uint64, ParameterAnnotation(descr="The number of times to iterate")
        ],
        opup_app: Annotated[
            abi.Application,
            ParameterAnnotation(
                descr="The app id to use for opup reququests",
                default=OpUp.opup_app_id,
            ),
        ],
        *,
        output: abi.StaticArray[abi.Byte, Literal[32]],
    ):
        return Seq(
            Assert(opup_app.application_id() == self.opup_app_id),
            self.call_opup(Int(255)),
            (current := ScratchVar()).store(input.get()),
            For(
                (i := ScratchVar()).store(Int(0)),
                i.load() < iters.get(),
                i.store(i.load() + Int(1)),
            ).Do(current.store(Sha256(current.load()))),
            output.decode(current.load()),
        )

Results in the following ABI Method

    {
      "name": "hash_it",
      "args": [
        {
          "type": "string",
          "name": "input",
          "desc": "The input to hash"
        },
        {
          "type": "uint64",
          "name": "iters",
          "desc": "The number of times to iterate"
        },
        {
          "type": "application",
          "name": "opup_app",
          "desc": "The app id to use for opup reququests"
        }
      ],
      "returns": {
        "type": "byte[32]"
      }
    }

I prefer this explicit Annotation rather than the automatic resolvable behavior! For example there could be methods with OpUp for which is useful to know in advance how much fees I should pay for the execution of that method, I think is good to annotate that in the method's description.

Good point on fees required. I'm not sure that will be easy to expose until we have some better way to track costs programmatically 🤔


app_controller.js

I dont have this file in my webroot/js/app, kindly direct me on how to include Attachments in BaseComponents Arrray in the said webroot/js/app/app_controller.js file.
I have configured everything as per the given documentation, the upload attachment area is showing but Add button is not uploading the selected file. Also can see any include js files in the the html source(through firebug) Kindly assist.
Thanks in Advance

Hello,
as described here: https://github.com/scherersoftware/cake-frontend-bridge#4-create-additional-files the requested skeleton for the webroot/js/app/app_controller.js file should be:
Frontend.AppController = Frontend.Controller.extend({
    baseComponents: ['Attachments'],
    _initialize: function() {
        this.startup();
    }
});

Thanks Alot, Included that but still not working and not getting any kind
of error, my js console is clear. Should below be modified in any or should
be left as is.
way echo $this->Attachments->attachmentsArea($entity, [
'label' => 'File Attachments',
'formFieldName' => 'attachment_uploads'

]);
Desperately need this attachments this to work!
Thanks
On Mon, May 9, 2016 at 3:25 PM, Felix Kempf<EMAIL_ADDRESS>wrote:

Hello,
as described here:
https://github.com/scherersoftware/cake-frontend-bridge#4-create-additional-files
the requested skeleton for the webroot/js/app/app_controller.js file should
be:
Frontend.AppController = Frontend.Controller.extend({
baseComponents: ['Attachments'],
_initialize: function() {
this.startup();
}
});
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/scherersoftware/cake-attachments/issues/2#issuecomment-217850136

If the JS console is clear, I would search the error on the (Cake)PHP side.

is there something in the logs, say Apache, PHP or CakePHP?
is 'attachments' and 'attachment_uploads' accessible when patching the entity in question?
are the folders given in Configure::read('Attachments.tmpUploadsPath') and Configure::read('Attachments.tmpUploadsPath') writable by the apache user

is there something in the logs, say Apache, PHP or CakePHP? - no error
in log
is 'attachments' and 'attachment_uploads' accessible when patching the
entity in question

protected $_accessible = [

    '*' => true,

    'id' => false,

    'attachments' => true,

    'attachment_uploads' => true

];

have counter checked again and again. below is my view file for the
Entity [TaxPayer ]

Form->create($taxPayer); ?>
<fieldset>
    <legend></legend>
    <?
    echo $this->Attachments->attachmentsArea($taxPayer, [
'label' => 'File Attachments',
'formFieldName' => 'attachment_uploads'

]);?>

Form->button(__('Save Passport'), ['btnSave'=>'Save','class'
=> 'btn-success']) ?>
Form->end() ?>

are the folders given in Configure::read('Attachments.tmpUploadsPath')
and Configure::read('Attachments.tmpUploadsPath') writable by the apache
user - both  root/tmp/uploads and root/app_data/attachments are writtable (
chmod 777)

Can i share teamviewer session with you? if you dont mind please.
Thanks
On Tue, May 10, 2016 at 10:32 AM, Felix Kempf<EMAIL_ADDRESS>wrote:

If the JS console is clear, I would search the error on the (Cake)PHP side.

is there something in the logs, say Apache, PHP or CakePHP?
is 'attachments' and 'attachment_uploads' accessible when patching
the entity in question?
are the folders given in
Configure::read('Attachments.tmpUploadsPath') and
Configure::read('Attachments.tmpUploadsPath') writable by the apache user

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/scherersoftware/cake-attachments/issues/2#issuecomment-218080338


Fixed the problem with incorrect handling of branch

Useful to review commit-by-commit

Fixed the symptom of the problem is described in #143
Refactorings and tidy-ups

Solution to #143:

Made the TravisPlugin configure ReleaseNeededTask explicitly.
We no longer need to use the release configuration object to pass state between tasks.
That was really awkward.
Simplified the configuration. The "build" part of the configuration did not make much sense.
It is not a setting the user would configure, it was for internal use of our tasks

Thank you for review!


Greenkeeper/monorepo.react 16.6.3

Coverage remained the same at 96.199% when pulling fb0ef90561fc0fbedd4456cbb4dd4ddfbcb9c58c on greenkeeper/monorepo.react-16.6.3 into 6fa29aaeb8ceb6da8bea19db16f22cb53e7cabbf on master.


Enlarge body font size

Hi,
This fix a part of #214 : the default font size is inherited from body and was indeed inconsistent with the size from code (and with the line-height attribute, I am not an artist so please tell me if you want to keep the 2px difference between the two attributes).

Do you have a screenshot of the new rendering? (To compare with the screenshot of #214.)

Of course :


Enable CD for build-blocker-plugin

Link to GitHub repository
https://github.com/jenkinsci/build-blocker-plugin/pull/23
When modifying release permission
List the GitHub usernames of the users who should have commit permissions below:

@username1
@username2

This is needed in order to cut releases of the plugin or component.
If you are modifying the release permission of your plugin or component, fill out the following checklist:

### Release permission checklist (for submitters)
- [ ] The usernames of the users added to the "developers" section in the .yml file are the same the users use to log in to [accounts.jenkins.io](https://accounts.jenkins.io/).
- [ ] All users added have logged in to [Artifactory](https://repo.jenkins-ci.org/) and [Jira](https://issues.jenkins.io/) once.
- [ ] I have mentioned an [existing team member](https://github.com/orgs/jenkinsci/teams) of the plugin or component team to approve this request.

When enabling automated releases (cd: true)
Follow the documentation to ensure, your pull request is set up properly. Don't merge it yet.
In case of changes requested by the hosting team, an open PR facilitates future reviews, without derailing work across multiple PRs.
Link to the PR enabling CD in your plugin
https://github.com/jenkinsci/build-blocker-plugin/pull/23
Not maintainer, but would like to have some feature delivered as soon they are merged like https://github.com/jenkinsci/build-blocker-plugin/pull/22
FYI @dmone and @ffromm I would appreciate a lot you consider CD for this plugin
### CD checklist (for submitters)
- [x] I have provided a link to the pull request in my plugin, which enables CD according to the documentation.

### Reviewer checklist
- [ ] Check that the `$pluginId Developers` team has `Admin` permissions while granting the access.
- [ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
- [ ] If security contacts are changed (this includes add/remove), ping the security officer (currently `@Wadeck`) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it.

Pinging also @Denis1990 because it seems the YAML file is not really maching actual maintainers

/lgtm


Sign in with Apple

Is there any chance for a Sign in with Apple support in the future? It would be great.
https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple

Hello @adrianmihalko,
in general we are open to implementations of alternative providers and hence also for an implementation of 'Sign in with Apple" (since it basically is another oauth2 provider). Since we don't use it and don't plan to use it, the feature is not on our roadmap. But we are open to pull requests. If you need any help please ask.

I've read up on it, and it seems fairly simple to implement. Maybe I will take a stab at it over the holidays. But no promises.
http://p.agnihotry.com/post/validating_sign_in_with_apple_authorization_code/index.html

It would be great.


Out-of-script characters in sd_Khoj and sd_Khud

sd_Khoj now contains quite a few Arabic letters (ڪ , ٿ, ٻ, ڀ, چ, ڻ):

𑈧𑈥𑈺ڪ𑈀𑈞 ... 𑈟𑈥𑈛𑈬ٿ𑈥𑈬 ... ڪ𑈥𑈺 ... 𑈺ٿ𑈥𑈨 ... 𑈺ڪ𑈦𑈥𑈺 ... ڪ𑈥𑈺𑈪ڪ𑈺ٻ𑈥𑈥𑈺𑈩𑈧𑈞𑈺ڀ𑈧𑈥𑈥چ𑈀𑈦𑈺𑈥𑈺𑈨𑈬𑈦𑈨𑈺𑈩𑈬𑈨ڪ𑈺𑈀𑈉𑈶𑈙𑈥𑈬𑈦𑈺ڪ𑈦ڻ𑈺

Khudawadi also has the same issue. I'm guessing Aksharamukha gave up on letters that it couldn't directly put into these scripts.
There's clearly a problem here with our test suite, which should have caught this. I'll look in to fixing the tests.
@SKing-2003, could you prepare another PR with fixes to these files? According to the Khojki Unicode proposal:

Kaf ڪ needs to be replaced with 𑈈.
Rnoon ڻ is equivalent to 𑈘
Bha ڀ goes to 𑈣
Bba ٻ goes to 𑈢

I'm guessing چ should be 𑈏, and ٿ should be... 𑈔?
And for Khudawadi:

Kaf ڪ needs to be replaced with 𑊺.
Rnoon ڻ is equivalent to 𑋌
Bha ڀ goes to 𑋖
Bba ٻ goes to 𑋕
Cheh چ should be 𑋁
Teheh ٿ  should be 𑋆.

Also a problem in sd_Sind


stat tracker

add some sort of json file for keepinig track of stats like runs played, guys killed, items collected, etc potentially use these stats to unlock items for players

ok


[SPARK-12001] Allow partially-stopped StreamingContext to be completely stopped

If StreamingContext.stop() is interrupted midway through the call, the context will be marked as stopped but certain state will have not been cleaned up. Because state = STOPPED will be set, subsequent stop() calls will be unable to finish stopping the context, preventing any new StreamingContexts from being created.
This patch addresses this issue by introducing a new PARTIALLY_STOPPED state, which allows stop() to execute a second time in order to finish stopping the context.
I discovered this issue by examining logs from a failed Jenkins run in which this race condition occurred in FailureSuite, leaking an unstoppable context and causing all subsequent tests to fail.

/cc @tdas @zsxwing

Test build #46721 has started for PR 9982 at commit 77df0ce.

rather than introducing another state which needs to be reasoned about, isnt it easier to just make sure that state is set to STOPPED only when the stop has completed. If there is a partial stop, the state will stay ACTIVE, and following call to stop() will actually stop it cleanly.
I am assuming that the stop() of individual components are idempotent. I am not sure whether that is true. If it is not true, then it best and cleanest to make them idempotent.

Test build #46721 has finished for PR 9982 at commit 77df0ce.

This patch fails from timeout after a configured wait of `250m`.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * class SparkPlanInfo(\n  * class SQLMetricInfo(\n  * case class SparkListenerSQLExecutionStart(\n  * case class SparkListenerSQLExecutionEnd(executionId: Long, time: Long)\n

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/46721/
Test FAILed.

@tdas, my idea behind adding a new state was to give better error messages in the case where a stop gets interrupted and then the user calls getOrCreate() and continues to use a streaming context which might not be in a usable state; my concern was that this case would lead to hard-to-diagnose errors, rather than easy-to-understand "this context is not in a usable state" messages.
And yes, this relies on the methods called in stop() being idempotent; there's an inline comment addressing that. AFAIK the current code is idempotent, but it would be good to double-check this for each component.

By the way, it looks like the test failure which motivated this patch occurs more frequently than I originally thought. It seems to happen about once a day, give or take. Here's an example failure: https://spark-tests.appspot.com/builds/Spark-1.6-SBT » hadoop2.0%2Cspark-test/141

Actually, here's a report which gives a more complete sense about the frequency of this failing: https://spark-tests.appspot.com/tests/org.apache.spark.streaming.BasicOperationsSuite/map#latest-failures
I've given it some thought and no longer think that we should introduce a new state. The new state won't be necessary for tests and users who interactively cancelled the StreamingContext.stop() are probably likely to turn around and try to launch a new StreamingContext, in which case the existing error message should be sufficient for them to know to retry. I'm going to roll back the introduction of the new state and try to get this into merge-worthy shape.

Test build #47013 has started for PR 9982 at commit 787acc4.

Test build #47013 has finished for PR 9982 at commit 787acc4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47013/
Test PASSed.

LGTM

Alright, I'm going to merge this into master but not into branch-1.6 out of a desire to minimize risk/churn in that branch during the RC period.

@JoshRosen thanks for doing this!


marketing suggestion

Describe the feature request
Taiko is the same name from the game of japan taiko drums, we need to attract such game people to use our chain.
it is a small market but we can explore Japan market. They are much acceptable crypto in asia so far.
Spam policy

[X] I verify that this issue is NOT SPAM and understand SPAM issues will be closed and reported to GitHub, resulting in ACCOUNT TERMINATION.

Guess why one of our emojis is the drum ;) We are well aware of this! Thanks for your suggestion though.


Use thread::is_alive method instead deprecated isAlive

Codecov Report

Merging #55 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master      #55   +/-   ##
=======================================
  Coverage   87.71%   87.71%
=======================================
  Files          37       37
  Lines        2312     2312
=======================================
  Hits         2028     2028
  Misses        284      284

Impacted Files
Coverage Δ

exonum_client/client.py
65.46% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Problem with Power Apps

[I can't access my power apps app, I've been working on it for 2 months with the Github connection but now it loads eternally when I try to open the app, which in the end never loads and doesn't let me in to edit, how can this problem be fixed?

]

Detalles del documento
⚠ No edite esta sección. Se requiere para learn.microsoft.com ➟ Vinculación de problema de GitHub.

ID: 1dcec321-a287-a483-241d-69b147737f23
Version Independent ID: 1dcec321-a287-a483-241d-69b147737f23
Content: Usar el control de versión de Git para editar aplicaciones de lienzo (experimental) - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/git-version-control.md
Service: powerapps
Sub-service: canvas-maker
GitHub Login: @gregli-msft
Microsoft Alias: gregli

Thanks for your comment, @javigodoysolis. This issue has been assigned to the doc author for review.

Thank you, I'm attentive if there is any solution, since being able to access that app is very important.


Borderless Windows (request, ignore if it's too bothersome)

Hi, is there a possibility to add a borderless window mode? My computer limits the clock speed when in fullscreen or in borderless fullscreen. so I'd rather have the option to have a windows with no borders. Thanks beforehand, sorry to bother.

So borderless fullscreen is just a borderless window that is the size of the screen. I find it odd that your computer would detect that as a fullscreen mode. You could use a tool like WinExplorer to remove borders yourself from a window. Or better, you could check your bios or vendor softwares to remove that limit?

It's a laptop. It appears wattage is limited when fullscreen. Sadly there's no bios setting for that, but I can use Universal x86 Tuning Utility to manually set the power.
Thank you for answering!


[Discussion]: Free text survey question 5.a. Any other comments on network connectivity?

Summary
A summary of the free text (non-categorical responses) to the above question
Source
No response
Detail
Respondents agree that network connectivity should be tightly controlled to avoid failures of information governance, such as leakage of sensitive data from a TRE or even between workspaces within a TRE. But configurability is key. The needs of different projects vary widely, and while some may operate well without requiring network connectivity either outside or within the TRE, others may not. And as noted by one respondent, the relationship between network connectivity and contractual relationships between the data owners and those who require access to the data can be complex. Thus, the precise configuration of network connectivity may need to be decided on a case-by-case basis, which implies that a TRE should be configurable to suit the circumstances.
Network connectivity to resources outside the TRE should be restricted by default. However, there are many cases in which access to external resources may be useful or even essential. Access to external software repositories such as CRAN/PyPi is typically perceived as desirable, if not essential. Connectivity to allow import of project-specific code or data into a workspace may also be desirable. However, these needs may be met by an ingress procedure that does not require direct connectivity to the external resource from within the TRE (e.g. an airlock procedure mediated by TRE administrators). In general, it is desirable that a mechanism exists by which access to external resource can be provided on a project-by-project level, subject to information governance policy.
Some respondents express the position that external resources should also be TRE-like, or at least known and trusted. Again, this may vary on a case-by-case basis. Others note that external connectivity would be required for access to federated analytics services, which in principle should protect data privacy while allowing access to advanced computational resources.
Network connectivity within a TRE should be considered to enable collaboration, which several respondents considered to be essential. Again, this should be tightly controlled so as not to allow data leakage between workspaces. Thus, for example, users within a specific workspace should be able to collaborate and share code or data between themselves, but should not be able to link that data to datasets from outside that workspace. Projects should typically be isolated from one another.
It appears that the existing specification already covers most concerns of the respondents. The provisions of section 2.3 Network Management address isolation of workspaces through limitation of outbound connections and disallowing connectivity between users on different projects or with access to different datasets.
Section 2.1.2 Software tools covers the ability to access external resources such as CRAN/PyPi, and enabling collaboration within workspaces through shared tools such as databases and web apps accessible only within a given workspace. Notably, the section does not specify that such shared tools are required to be directly within the TRE, but only that they are shared only with users of a specific project. This does open the possibility for external resources being shared privately between project users.
Section 3.1. Data lifecycle management covers concerns about ingress and egress of data, in that it requires a TRE to have a process of ingress/egress that ensures all information governance policies are adhered to.
Some possible points of discussion:

The specification does not currently directly address code/software ingress, unless I've missed it. Thus, we may need to add a statement that covers connecting a mechanism for code/software ingress to info gov policy, comparable to the current statements for data.
We could consider making the sharing of collaborative tools be restricted to being within a TRE, but leaving the door slightly ajar allows for cases where this might be what the users/data owners want to be possible.

Intended Output
No response
Who can help
@sa-tre/spec-maintainers

The specification does not currently directly address code/software ingress, unless I've missed it. Thus, we may need to add a statement that covers connecting a mechanism for code/software ingress to info gov policy, comparable to the current statements for data.

If we're going to add a statement on software ingress, it shouldn't go in 3.1. Data lifecycle management - we might want to be careful how we word this so as to be inclusive to different TRE types. In DSH, I think we have a software ingress process which is the same as for data, whereas in OpenSAFELY code ingress is happening every time an analysis is run.
I suggest:

We add to 2.1.2 Software tools a statement similar to one that's in Data lifecycle management along the lines of "You must have an ingress process for software tools which enforces information governance rules/processes." - this would cover situations like installing a new package that wasn't in the TRE when it was set up
Separately (I'm not sure under which pillar or capability), we should include a statement on "Code ingress", which is a distinct thing from the ingress of software tools. This covers the ingress of actively developed analysis code during a project

Another thought: streaming/automated "egress". For example, a restricted limited dashboard may be judged acceptable to automatically show a live output. In https://github.com/sa-tre/satre-specification/pull/132 we discussed live reporting of data use- but this is also a form of egress.


Brainstorming of monitoring metrics

Now that we have Prometheus monitoring instrumentation, we need to come up with useful metrics to collect and expose.
This is issue is here to collect ideas for such metrics that users will find useful.

I think we’ll have at least two monitoring modes, one where it only keeps some operational information and one with all sorts of extra stuff that may need additional processing but is useful for a State of RPKI dashboard.

Collected via IRC:

time since last refresh
time until next refresh
number of roas
number of tals
memory usage
count of rsync invocations per target url
duration of last sync per target url
number of connected sessions from routers
uptime
metrics about the ways in which a roa can be broken
version number
last_refresh_successful boolean per tal/rsync target

serial number - needed for Gantry to be able to compare VRPs between the Routinator and the router RPKI database

Some of these don’t really make sense as a Prometheus metrics. I will add a new endpoint /status instead which will print these in a simple text format.

We now have everything from the list except for the RTR metrics. I made #179 for that and will close this issue.


Simple Diagnostic Log of min/max/replicas when MachineDeployments are changed

How to categorize this issue?

/area logging
/kind enhancement
What would you like to be added:
Add diagnostic log for when shoot changes result in MachineDeployment min/max/replica changes.
Why is this needed:
Support-ability.

/assign elankath


Add Box ID Verification Photo

Add another field for box ID verification photo on the general user forms - Launch Box and Found a Box Forms

/cib add-box-id-verification

Branch 142-add-box-id-verification created!


flutter channel beta    long time  to  wait

Hello ，My  flutter channel  is   stable，now  I  change it  beta， type in “flutter  channel beta”,but long  long  time，can  you  help  me?

Hi, just want to check if this is still a problem for you.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Problem with resources routes

I have a problem with resources routes.
localized do
  resources :rooms do
    member do
      post 'rented' => 'rooms#rented'
    end
  end
end

when I execute rake routes, I got the following error:
** Invoke routes (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ArgumentError: Invalid route name: 'messages_pt-BR'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:552:in add_route' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1561:in add_route'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/translatable_routes-1.4.0/lib/translatable_routes/action_dispatch/mapper.rb:43:in block in add_route' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/translatable_routes-1.4.0/lib/translatable_routes/action_dispatch/mapper.rb:14:in each'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/translatable_routes-1.4.0/lib/translatable_routes/action_dispatch/mapper.rb:14:in add_route' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1536:in decomposed_match'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1517:in block in match' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1507:in each'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1507:in match' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:689:in map_method'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:650:in get' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1361:in block (2 levels) in resources'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1394:in block (2 levels) in collection' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:816:in scope'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1393:in block in collection' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1665:in with_scope_level'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1392:in collection' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1360:in block in resources'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1676:in block (2 levels) in resource_scope' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:816:in scope'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1676:in block in resource_scope' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1665:in with_scope_level'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1675:in resource_scope' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:1355:in resources'
/Users/Frank/Documents/Develop/rumis-web/config/routes.rb:55:in block (2 levels) in <top (required)>' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/translatable_routes-1.4.0/lib/translatable_routes/action_dispatch/mapper.rb:8:in block in localized'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:816:in scope' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/translatable_routes-1.4.0/lib/translatable_routes/action_dispatch/mapper.rb:8:in localized'
/Users/Frank/Documents/Develop/rumis-web/config/routes.rb:54:in block in <top (required)>' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:432:in instance_exec'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:432:in eval_block' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:410:in draw'
/Users/Frank/Documents/Develop/rumis-web/config/routes.rb:1:in <top (required)>' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in load'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in block in load' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in load_dependency'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in load' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:40:in block in load_paths'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:40:in each' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:40:in load_paths'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:16:in reload!' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:26:in block in updater'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/file_update_checker.rb:75:in call' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/file_update_checker.rb:75:in execute'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:27:in updater' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:7:in execute_if_updated'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application/finisher.rb:69:in block in <module:Finisher>' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/initializable.rb:30:in instance_exec'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/initializable.rb:30:in run' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/initializable.rb:55:in block in run_initializers'
/Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:226:in block in tsort_each' /Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component'
/Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:427:in each_strongly_connected_component_from' /Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:347:in block in each_strongly_connected_component'
/Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:345:in each' /Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:345:in call'
/Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:345:in each_strongly_connected_component' /Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:224:in tsort_each'
/Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/tsort.rb:205:in tsort_each' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/initializable.rb:54:in run_initializers'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application.rb:352:in initialize!' /Users/Frank/Documents/Develop/rumis-web/config/environment.rb:5:in <top (required)>'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in require' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in block in require'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in load_dependency' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in require'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application.rb:328:in require_environment!' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1@global/gems/railties-4.2.1/lib/rails/application.rb:457:in block in run_tasks_blocks'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:240:in call' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:240:in block in execute'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:235:in each' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:235:in execute'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain' /Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:201:in block in invoke_prerequisites'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:199:in each' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:199:in invoke_prerequisites'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:178:in block in invoke_with_call_chain' /Users/Frank/.rvm/rubies/ruby-2.2.0-preview1/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/task.rb:165:in invoke'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:106:in block (2 levels) in top_level'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:106:in each' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:106:in block in top_level'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:100:in top_level'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:176:in standard_exception_handling'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/lib/rake/application.rb:75:in run' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/gems/rake-10.4.2/bin/rake:33:in <top (required)>'
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/bin/rake:23:in load' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/bin/rake:23:in '
/Users/Frank/.rvm/gems/ruby-2.2.0-preview1/bin/ruby_executable_hooks:15:in eval' /Users/Frank/.rvm/gems/ruby-2.2.0-preview1/bin/ruby_executable_hooks:15:in '

Fixed in version 2.0 @frank0ch0a, please note the gem has been renamed to localized_routes
Thanks


Which ValidationError type for invalid enum?

Initial Checks

[X] I confirm that I'm using Pydantic V2 installed directly from the main branch, or equivalent

Description
Hi,
I think you forgot to specify the "enum" ValidationError type in the documentation page:
https://docs.pydantic.dev/latest/usage/validation_errors
If it's the case I can contribute adding it to the page.
Best regards
Leonardo
Example Code
class MyEnum(Enum):
     first = 1
     second = 2

class ExampleClass(BaseModel):
     number: MyEnum
     name: str = "Default"

try:
     my_example = MyClass(number = 3)
except ValidationError as e:
     print(repr(e.errors()[0]['type']))

'enum'

Python, Pydantic & OS Version
pydantic version: 2.0.1
        pydantic-core version: 2.0.2 release build profile
                 install path: /home/leonardo/.local/lib/python3.9/site-packages/pydantic
               python version: 3.9.16 (main, Dec  7 2022, 01:12:08)  [GCC 11.3.0]
                     platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
     optional deps. installed: ['typing-extensions']

Selected Assignee: @samuelcolvin

Thanks @gamaleonardo for reporting this 🙏
Would you like to open a PR for this?

Of course! I will do it. Thanks!

Hi @hramezani,
Getting the following error when trying to push:
remote: Permission to pydantic/pydantic.git denied to gamaleonardo.
fatal: unable to access 'https://github.com/pydantic/pydantic.git/': The requested URL returned error: 403

Any idea?
Thanks

You can't push to pydantic, you need to push to your own fork.

Sorry, I forgot to fork the project. My bad!

This is done. 👍


float64 write tests fail on arm

The float64 bits of wav_write_test and raw_write_test produce different results on arm vs intel. Might be better to use a noise generator like this:
// Random number generator based on 32-bit FNV hash.
//
// We can't use Dart's built in random number generator because we're saving the
// values to a file, and their implementation may change in future.
class Rand {
  static const _prime = 0x1000193;
  static const _mask = (1 << 32) - 1;

  int _x = 0x811c9dc5;

  Rand() {}

  double next() {
    final x = _x;
    _x *= _prime;
    _x &= _mask;
    print(2 * (x.toDouble() / _mask.toDouble()) - 1);
    return 2 * (x.toDouble() / _mask.toDouble()) - 1;
  }
}

See https://github.com/liamappelbe/wav/pull/11

The nice thing about using those sine waves as tests was they were generated by audacity. So it was verification that my implementation matched an external source.
The simplest way to switch from the sine waves to the noise generator would be to change the write tests first, which would fail, then take the generated file and replace the goldens so that the write tests pass, then migrate the read tests. But this would essentially be duplicating the bijective tests. So instead I'll generate a golden for the raw float64 test, then open that in audacity, manually verify a few of the sample values, then save it to all the other formats.


improve FreeBSD create / destroy behaviour

more specifically, hw.vmm.destroy needs privileges, so we can no longer do this
in atexit() with dropped privileges.
instead, look for solo5-YYY before hw.vmm.create, and if it exists, destroy it
(unless it is still running). Testing whether the VM is running is not possible,
we use an exclusive FS lock for this. This mechanism works under the assumption
that solo5-hvt owns the /dev/vmm/solo5-* namespace.
Contribution was developed pair-programming with @mato at Espresso Library on
Sat 26th January 2019. Code likely needs some cleanups.

@hannesm Where do you want me to do the cleanups to this code? OK to push to your branch so that we don't have too much PR churn?

@mato sure, feel free to push to my branch.

@hannesm @sg2342:
I've pushed a cleaned up version to hannesm's branch. However, after stress-testing this some more, I am extremely unhappy with this "fix". It does not fix the underlying problem, namely that VMs and their resources are not cleaned up after solo5-hvt exits.
In practice this means that if I run two instances of the following simple stress test:
$ while [ 1 ]; do tests/test_hello/solo5-hvt tests/test_hello/test_hello.hvt >/dev/null; done

... then I can easily bring a (nested) FreeBSD with 2GB of RAM to its knees due to virtual memory exhaustion:
procs  memory       page                    disks     faults         cpu
r b w  avm   fre   flt  re  pi  po    fr   sr da0 pa0   in    sy    cs us sy id
1 0 1 1.4T   14M  1525   1   1   0  1832 7054 9054   0   21  3033   248  1  2 97

Note the avm figure! The figures come back to normal after I somehow managed to kill the stress tests and run a bhyvectl --destroy on all the leaked VMs.
Now, I don't think that it is responsible of us to produce a software component that can bring the host down!
So, what to do? The least work for me would be to just kill dropping privileges on FreeBSD for now. The other option is to spend half a day figuring out if a solution using fork() with the parent process retaining root privileges, doing nothing but waitpid() and cleaning up after the child would work. This solution, while also somewhat hacky, especially internally since a function now has a side-effect of fork(), would at least reliably clean up after itself.
The real fix is of course to fix the FreeBSD vmm APIs. However, any fix that does happen (e.g. a subset of what's in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213689) will take time and manpower (not me!). So, I think we need a proper workaround as described in either of the options above in the mean time.
Please let me know how you'd like to proceed.

FreeBSD has cap_sysctl(3). It can be used to set up the proxy process for sysctls before entering capability mode (and privdrop). But since solo5  uses ppoll(3) and the capsicum releated changes will land in FreeBSD 12.1-RELEASE, it makes sense to take out the FreeBSD privdrop code and revert to the previous behaviour. I will integrate cap_sysctl(3) into #284 so once 12.1 is released, a capsicum sandboxed solo5 is ready for FreeBSD.

Ok, so, in the light of:

Discussion in #316, the real fix here is as described in https://github.com/Solo5/solo5/pull/316#issuecomment-464757104 (fixing the FreeBSD vmm APIs).
The build system refactoring in #326 changes the way hvt modules work, and the HVT_DROP_PRIVILEGES=0 case will effectively be non-functional until I re-design that to not use compile-time flags. However, in the mean time, I need the tests to pass!

I'm going to make an executive decision here, which is: The FreeBSD privilege dropping introduced in #286 will be reverted on master shortly.
Also, I'm going to close all issues/PRs related to this except #282, since the multiple discussions are confusing. We can discuss how to proceed forward there.
Note to self: TODO: The existing VM cleanup code for FreeBSD and OpenBSD should be audited and at  warn() should be used in the atexit handler(s) if any syscalls fail.
/cc @sg2342 @hannesm