Use modern type chart

Changes between Generations V and VI:

The Fairy type was introduced.
Ghost and Dark were made 1× against Steel instead of ½×.

Source: https://bulbapedia.bulbagarden.net/wiki/Type/Type_chart#Changes

Perhaps a command-line option could be passed to specify which chart to use.

Perhaps a command-line option could be passed to specify which chart to use.

Actually this wouldn't be ideal; Pokémon data would still be from modern generations.

Fixed in https://github.com/tactlessfish/pokesummary/commit/98b284afe9e3fcfb543b33502dcce15a7c96eda5.


Inject : create file if it doesn't exist

Hi!
Thanks for the amazing Project!
Problem statement :
Is there any way we can create a file if it doesn't exist while injection. Went through the docs and issues but couldn't find anything related there.
Detailed Description :

I am planning to rely solely on hygen-add to load hygen generators from outside ( npm, github etc ) and not to push _templates folder with my project code. In order to streamline I was thinking to creating a action which will add _templates/ folder to the .gitignore file
it works if the .gitignore file exists but in case of fresh projects I was hoping if the inject templates could create file if it doesn't exist

Interesting requirement!
What you're giving as an example is the .gitignore file, which I guess we kind of want to append to (if we did cat >> foobar to an existing or missing file, the end result would be the same -- file will be created (if missing) and content appended.
So what we're essentially missing is a way to create a file if its missing, and a no-op if it exists.
I believe right now you can do this with a shell action (touch your-file), followed by your injection action as usual.
In the meanwhile, I'll find a way to include this without overloading the surface API for Hygen.
PS.
Just to keep in mind, including _templates is a safer bet in terms of maintainability, even if brought in from hygen-add -- you gain flexibility by "pay" by having duplicates. It is much like vendoring dependencies in Go, Ruby, and others. Of course each direction has its own pros/cons.


Reduce amount of multi-round consensus

Summary
mocha-3 currently produces around 177 blocks that take two or more rounds to finalize for every 1000 blocks. In comparison the Cosmos Hub produces only 2 blocks across the same range. This greatly offsets the stability of block production. mocha-3 also has a much higher waiting period of 11 seconds (compared to 5 seconds on the hub). We should investigate the root cause of this.
Proposal
Some areas worth investigating:

Do the multiple rounds happen because the proposal never arrives, or because of the vote timeouts?
Is it the same validators that fail to propose a value or do the failed proposers vary

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Looks like the problem was that some of the validators hadn't yet upgraded. Now I'm seeing only 8 blocks in every 1000 taking more than one round to finalize. I am going to close this issue


Execute queries directly when Statement#executeQuery(String) is called

Currently calling Statement#executeQuery(String) does not actually execute the query on Cloud Spanner. Instead, the query is executed the first time any data is actually requested, i.e. when calling ResultSet#next or ResultSet#getMetaData. This can be confusing if you execute an invalid query, as the call to Statement#executeQuery(String) will not throw any exceptions, but the call to ResultSet#next or ResultSet#getMetaData will. Most developers would expect an invalid query to throw an exception already when calling Statement#executeQuery(String).

From version 1.1.x, queries will be executed directly when submitted to one of the execute(...) or executeQuery(...) methods. This will ensure that an invalid query will cause an exception directly, instead of when ResultSet#next() is called.


JsonRPCHttpService can silently fail to start

Steps to Reproduce (Bug)

Configure node for TLS --rpc-http-tls-enabled, --rpc-http-tls-keystore-file=, --rpc-http-tls-keystore-password-file= make the password file path invalid
Start the node
Try to access JSON_RPC Http endpoint

Expected behavior:
Exception should be thrown and node fails to start
Actual behavior:
Node starts with no JSON-RPC Http service
Frequency:
All the time
Versions (Add all that apply)

Software version: 1.4.2

Additional Information
As you can see from the logs, never get a log confirming that JsonRPC service has started...
2020-04-06 23:19:03.213+01:00 | main | INFO  | JsonRpcHttpService | Starting JsonRPC service on <IP_ADDRESS>:8545
2020-04-06 23:19:03.216+01:00 | main | INFO  | WebSocketService | Starting Websocket service on <IP_ADDRESS>:8546
2020-04-06 23:19:03.244+01:00 | vert.x-eventloop-thread-1 | INFO  | WebSocketService | Websocket service started and listening on <IP_ADDRESS>:8546
2020-04-06 23:19:03.244+01:00 | main | INFO  | MetricsHttpService | Starting metrics http service on <IP_ADDRESS>:9545
2020-04-06 23:19:03.255+01:00 | main | INFO  | Runner | Ethereum main loop is up.
2020-04-06 23:19:03.256+01:00 | vert.x-eventloop-thread-2 | INFO  | MetricsHttpService | Metrics service started and listening on 9545:9545
netstat -nltp shows nothing listening on 8545
Looking at waitForServiceToStart in org.hyperledger.besu.Runner.java, it would seem only checking the status of the future before it is completed, any future that completes immediately is not checked.
private void waitForServiceToStart(
final String serviceName, final CompletableFuture<?> startFuture) {
while (!startFuture.isDone()) {
try {
startFuture.get(60, TimeUnit.SECONDS);
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
throw new IllegalStateException("Interrupted while waiting for service to start", e);
} catch (final ExecutionException e) {
LOG.error("Service " + serviceName + " failed to start", e);
throw new IllegalStateException(e);
} catch (final TimeoutException e) {
LOG.warn("Service {} is taking an unusually long time to start", serviceName);
}
}
}
Why not just just call Future.get(60, TimeUnit.SECONDS) without the while loop?

We in essence poll forever.  Every 60 seconds we complain that it is taking too long.  The log messages you have show that it isn't complete.  What does the log look like after 60 seconds?  Do we get an error at error level or a complaint about taking an unusually long time to start?

IMHO: You'll never get an error (warning), as the future has already completed... Future.isDone Returns true if completed in any fashion: normally, exceptionally, or via cancellation.
I can wait forever... I never see the warning in the logs.
With no issues JSON-RPC service starts almost immediately...
2020-04-07 00:59:14.349+01:00 | main | INFO  | JsonRpcHttpService | Starting JsonRPC service on <IP_ADDRESS>:8545
2020-04-07 00:59:14.429+01:00 | vert.x-eventloop-thread-1 | INFO  | JsonRpcHttpService | JsonRPC service started and listening on <IP_ADDRESS>:8545 with TLS enabled.

I think we need to go from a while to a do/while then, to give the exception a chance to throw.

@magooster - #714 will be included in 1.4.4 and should solve this issue.  If not, let us know.


Regexes in defaultexclusions are incorrect

What version are you using?
livereload 0.6.0
Expected result
The default ignored directories (including .git) should be ignored by livereload.
Actual result
They are not ignored.
Note
I have a question about this particular commit, which I thnk is the root of this issue. What did the author try to do with it? Did he want to ignore a directory named git/ instead of .git/?

This particular commit happened before we swapped out the monitoring library. I haven't seen this behavior reflected when I run this, but I'm inclined to change the regex anyway since it just looks incorrect now. Thanks for reporting, and look for a fix soon.

Alright, good to hear.
I kept having livereload crash when git did something with .git/index.lock.
Error: EPERM: operation not permitted, stat 'C:\Users\...\Projects\poorvs\.git\index.lock'

Oh that's interesting..... also you're on Windows. Y'all seem to have all sorts of crazy things going on with the exclusions, historically. I'll see what I can do.

Hehe. Well in this case it's pretty simple. The commit I mentioned above changed the regexes to match something like \git/, \agit/, \.git/, \bgit/, etc. It's just wrong. He probably had a good intention but I don't know what it was.

Closed by  1e82c8a


Breakpoints not resolving when debugging Web Extension

Type: Bug

Create a new Web Extension using yo code (using webpack + npm)
Open the extension in VS Code
Open src/web/extension.ts and set a breakpoint in the activate function
Go to the 'Run & Debug' tab and launch the 'Run Web Extension' configuration
In the Extension Host, open the command palette and run the 'Hello World' command to activate the extension.
Observe that the 'Congratulations, your extension is active' message is logged to the debug console and the 'Hello World' message is shown as a popup, indicating that the extension was activated

Expected behaviour: The breakpoint should have been resolved / hit when the extension was activated.
Actual behaviour: The extension was activated and ran without ever hitting the breakpoint.
VS Code version: Code 1.95.0 (912bb683695358a54ae0c670461738984cbb5b95, 2024-10-28T20:16:24.561Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
AMD Ryzen Threadripper PRO 3995WX 64-Cores      (64 x 2695)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
127.84GB (74.22GB free)

Process Argv
--disable-extensions --crash-reporter-id 9f32c0d5-db48-49e8-81cf-9346e360040d

Screen Reader
no

VM
0%

Extensions disabled
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
iacca1:31156133
notype1:31157159
5fd0e150:31155592

@richard-fine I'm pretty sure it's a duplicate of 232651. Try this:

Disable the VSCode extension "JavaScript Debugger" (ms-vscode.js-debug)
Install and enable the VSCode extension "JavaScript Debugger (Nightly)" (ms-vscode.js-debug-nightly)
Place a breakpoint
Run the code

If your issue is fixed, then it is likely a duplicate. It will be fixed on VSCode version 1.95.2

No luck - tried with ms-vscode.js-debug-nightly version v2024.11.417 but the issue persists.

A bit more investigation:

The debugger keyword in my extension code also does not cause the debugger to halt.
I do not see any paths that look like my extension in the 'Loaded Scripts' panel.
The extension is definitely being activated, I have a console.log message in my activate function and I see the log message as expected.

I think this may be the same issue: https://github.com/microsoft/vscode-js-debug/issues/2135


Declaration in for loop treated as assignment

Declaration of variable a in 4th line of code is treated as assignment statement.
module top(output logic o);
   function automatic logic theta();
      for (int x = 0 ; x < 5 ; x++) begin
	      int a;
      end
      return 1'b1;
   endfunction : theta

   assign o = theta();
endmodule : top

Here is part of uhdm tree:
      |vpiStmt:
      \_for_stmt: (work@top.theta), line:3:7, endln:3:10<EMAIL_ADDRESS><EMAIL_ADDRESS>        |vpiCondition:
        \_operation: , line:3:24, endln:3:25<EMAIL_ADDRESS>          |vpiOpType:20
          |vpiOperand:
          \_ref_obj: (work@top.theta.x), line:3:24, endln:3:25
            |vpiName:x
<EMAIL_ADDRESS>          |vpiOperand:
          \_constant: , line:3:28, endln:3:29
            |vpiConstType:9
            |vpiDecompile:5
            |vpiSize:64
            |UINT:5
        |vpiForInitStmt:
        \_assign_stmt<EMAIL_ADDRESS>          |vpiRhs:
          \_constant: , line:3:20, endln:3:21
            |vpiConstType:9
            |vpiDecompile:0
            |vpiSize:64
            |UINT:0
          |vpiLhs:
          \_int_var: (work@top.theta.x), line:3:12, endln:3:15
            |vpiName:x
<EMAIL_ADDRESS>        |vpiForIncStmt:
        \_operation: , line:3:32, endln:3:33<EMAIL_ADDRESS>          |vpiOpType:62
          |vpiOperand:
          \_ref_obj: (x), line:3:32, endln:3:33
            |vpiName:x
        |vpiStmt:
        \_begin: (work@top.theta), line:3:37, endln:5:10<EMAIL_ADDRESS><EMAIL_ADDRESS>          |vpiStmt:
          \_assign_stmt<EMAIL_ADDRESS>            |vpiLhs:
            \_int_var: (work@top.theta.a), line:4:3, endln:4:6
              |vpiName:a
<EMAIL_ADDRESS>      |vpiStmt:
      \_return_stmt: , line:6:7, endln:6:13<EMAIL_ADDRESS>        |vpiCondition:
        \_constant: , line:6:14, endln:6:18
          |vpiConstType:3
          |vpiDecompile:1'b1
          |vpiSize:1
          |BIN:1

That is the only way to model it. There is no declaration model in VPI , so the convention I took is the assign statement with no rhs

In 37.32 is said that vpiFor node can have vpiLocalVarDecls field. And if so, the for statement is a scope. (37.12.2), so declared variables can be handled in the same way as in function.

You are correct, fixed with #1556


make use of batch_size parameter

add batch_size to whitelisted options passed to Reconciler

Thanks @mattias-lundell, much appreciated. Released as 1.8.2.


Remove unwrap

Removes an uneeded unwrap, fixed by matching and just doing nothing in the case there are no additional files
related https://github.com/axodotdev/oranda/issues/48

i think we should close this as the original code is slightly better than this change and i think it will become irrelevant with the larger changes we'll be making soon


Wrap wasmtime_store_limiter (#36)

Add  wasmtime_store_limiter wrapper method to the Store class (#36).
As far as I could tell, the convention used throughout the code is to remove the wasmtime_[type]_ prefix from the C API name, and use the remaining portion as the CPP method name. So I just went with limiter as the name.
clang-format has not been run for this change, as it effects code unrelated to this change.

@alexcrichton I tried to run the default clang-format against wasmtime.hh, but it changed unrelated code so I didn't commit it. Is there a specific clang-format style or .clang-format options file somewhere that I should be using?


adds support for Hercules DJ 4Set

Also thanks to a friend of mine who managed to get it to work, but could not remember exactly how.

Thanks!


Release notes parser fails on ASCII encoding

e.g. UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 478: ordinal not in range(128)

https://salesforce-org.atlassian.net/builds/browse/V4S-MAS-8

Can't seem to reproduce locally

Just reproduced using this form:
cumulusci github release_notes "git describe --tag --abbrev=0" --publish
I was previously using:
cumulusci github release_notes $TAG --publish
I the case of this run, the difference is that I was supplying the target beta tag (beta/3.88-Beta_7) while the "git describe" version produces the most recent release tag (v3.76).

Cannot reproduce locally

This fix did not work. Still hitting same issue in Bamboo.


Create a tool which dumps the current state of everything in MPF and MC for troubleshooting

You can use the monitor interface in MPF to do that in MPF


Bump to new Version

He compiles some features and then makes them available in a future release.. Currently, the time coincides with the university entrance, which made me not devote much time to development.. If you have any suggestions for features that you can suggest here, you are welcome at any time.. Thankful


Use riscv-specified non-standard extension mechanism #12

We should not invent new elf EM_ machine types. We should use the _X scheme.
https://github.com/riscv/riscv-isa-manual/blob/main/src/naming.adoc
Affects binutils & gcc

Completed


Adding logic which disables google cloud registration if there's no K…

…eyFilePath setting (for usage with GCP service account)

Thanks for the PR!


Added Elegant Objects Logos

This will provide the following:

A space for "Other" logos to be uploaded to
A way for users that cannot use base64 and do not have their own hosting to use svg logos
Elegant Objects logos for the java community

This is probably the most typical form of open source contribution there is. I'm surprised that it was rejected last time. I'm hoping for a more "open" outcome this time around.

Messages

:book:

:sparkles: Thanks for your contribution to Shields, @ashtonhogan!

  Generated by :no_entry_sign: dangerJS


Check return codes everywhere

I have looked at a few source files for your current software. I have noticed that some checks for return codes are missing.
Would you like to add more error handling for return values from functions like the following?

strdup ⇒ main
pthread_cond_init ⇒ spy_create_work_queue

I do not like the use of the assert macro because unexpected results will still be ignored if the preprocessor symbol "NDEBUG" will be defined. I suggest to avoid ignorance of return values a bit more.
Are you interested to apply aspect-oriented software development?
How do you think about to encapsulate error detection and corresponding exception handling as a reusable aspect in your software?

@elfring it make sense, already work on the issue of ignorance of return values.
about the aspect-oriented software development, I'd like to keep the code as simple as possible right now, so the aspect-oriented development method will not be introduced recently
thks

Would you like to reuse any dedicated software development tools so that the more complete handling of return values will become easier?


Presence recipe macaddress issues

The two mac addresses for object and context - these need me to different. macadress extension also needs adding to vocab.

I suspect the object is the AP and the context is the client device is the way to go.
Recipe needs to be ultra-clear.

Yes @arc12 that is the reason for the 2 mac addresses in object and context.  The reasoning is Object (AP mac) gives a physical location and Context (client device) yields the number of devices an Actor (user/patron/customer ...) has.


Keras: model.fit_generator or model.fit not working properly

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution: Ubuntu 18.04.3 LTS
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.2.0-rc3
Python version: 3.6.9
CUDA/cuDNN version: (colab)
GPU model and memory: (colab)

Describe the current behavior
While using model.fit or model.fit_generator the sub iterations in epoch shows unknown number of iterations which is goes on despite surpassing the batch size.
Describe the expected behavior
While using model.fit or model.fit_generator the sub iterations in epoch must be definite.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
WARNING:tensorflow:From <ipython-input-23-2da3481afcb0>:1: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version.
Instructions for updating:
Please use Model.fit, which supports generators.
Epoch 1/20
     13/Unknown - 20s 2s/step - loss: 1.0732 - accuracy: 0.2602

@sanidhyamangal
I am not able to access the colab link you have provided. Please, provide access so i can try to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!

@ravikyram, I have provided you the access, kindly check.

I checked the colab notebook and was able to reproduce the issue. For now, you may use tf -2.1 which does not contain this issue.

@jetjodh, I already rolled back to previous iterations. Just reporting the bug so that it doesn’t appear in 2.2.0 stable release.

I am not seeing any issue with TF 2.1.0 .However i am able to reproduce the issue with TF 2.2.0-rc3. Please, find the gist here..Thanks!

@ravikyram, I have already used migrated my code from 2.2.0-rc3 to 2.1.0 and 2.0.0. Thanks for gist. Hoping to see this issue resolved in upcoming stable build.

@sanidhyamangal thanks for reporting the issue. this issue is fixed in the latest tf-nightly and will be available with the upcoming 2.3.0 release.

@sanidhyamangal
This was also resolved in TF nightly version(2.3.0-dev20200617). Please check the gist here..You could use tf-nightly for now and in the next couple of months new stable version will be released.Please verify once and close the issue. Thanks!

@ravikyram
Yes, this one is resolved and I am no longer able to reproduce this issue in new version. Thanks for resolving this.


allgather_bucket_size can siginificantly influence the communication cost

I have used zero-stage2 to train a 2.5 billion parameters BERT model on 4 8x V100s. And the nodes are interconnected with RDMA Infiniband. I found that the allgather_bucket_size parameter in zero optimizer could significantly influence the training speed, i.e., the optimizer_allgather time could vary from 2.5s to 0.4s. Are there some rules of thumb to tune this parameter? Thanks!

@benywon, thanks for your question. Your observation of the performance implication of allgather_bucket_size is on track. Generally, the bucket size determines the number of parameters that can be all gathered at once. So larger buckets will require fewer rounds of communication than smaller buckets to allgather the entire model. This of course depends on your model size and communication hardware.
Hope that helps. If you want to analyze further, can you share the bucket sizes => allgather times values that you have observed.

@benywon, thanks for your question. Your observation of the performance implication of allgather_bucket_size is on track. Generally, the bucket size determines the number of parameters that can be all gathered at once. So larger buckets will require fewer rounds of communication than smaller buckets to allgather the entire model. This of course depends on your model size and communication hardware.
Hope that helps. If you want to analyze further, can you share the bucket sizes => allgather times values that you have observed.

Thanks for your reply. In some applications, increasing the bucket size can indeed reduce the allgather times, but in some applications when my model is not very large, i.e. nearly 1 billion parameters, increasing the "allgather_bucket_size" could conversely increase the optimizer_allgather time. And recently I found this value is also correlated with the number of nodes I use. When I train a large BERT model with 2.5 billion parameters on four nodes, I set the "allgather_bucket_size" to 1e9 and the optimizer_allgather takes about 440 ms per step. However, when I add one more node to the cluster (i.e., to 5 nodes). The optimizer_allgather takes about 920 ms per step. I enumerate some values and change the "allgather_bucket_size" to 7.2e8, which gives me the best 615 ms per step of optimizer_allgather. I suppose the increase of the communication time is more or less attribute to the use of NCCL double binary tree algorithm (https://developer.nvidia.com/blog/massively-scale-deep-learning-training-nccl-2-4/), which prefers the powers of 2. But the value of the "allgather_bucket_size" is still hard to determine.

@benywon, thanks for sharing your experience and insights. Your observations are correct and valuable, including the impact of NCCL algorithms. I think you have already covered most of the analysis that you need for your application. As you have observed, tuning the bucket sizes is both crucial to performance but also challenging to get right. We have been thinking of ways to help users tune these and other parameters for their specific scenarios, but it remains an open problem.
Please let me know of what you want to do next for now, and hope I can help.


Addition of drt messages

Adds suggested fields drt_pickup_message and drt_drop_off_message

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

This PR suggests two new fields, added to trips.txt in addition to the fields drt_max_travel_time drt_avg_travel_time and drt_advance_book_min.
drt_pickup_message and drt_drop_off_message are text messages that should be communicated to an application user, when they are provided a trip plan that utilizes a drt service (defined here as "vehicle travel off the fixed route alignment", ie dial-a-ride or deviated-fixed).
Theoretically a standard message could be autogenerated based off the agency_phone and drt_advance_book_min fields. For example, "The identified route will pickup/drop off if scheduled [drt_advance_book_min] hours in advance by calling [agency_phone]". However, many subtle variations of this type of language may be required, and it may differ between pickup and drop off.
A big open question to me on this note that I'd like feedback on: should links be allowed? if so, how would they be formatted?

@thomastrillium Thanks for putting this together!  A few quick comments:

IMHO, the contents of the field should stand alone, with no links to other fields.
One challenge here is the expectation for how long this text is - for example, in a web-based trip planner mainly used on desktops this could be a paragraph, while mobile devices would want something shorter.  So, I think we should establish some guidance/expectation for the length of the text here, and provide some examples of how they would be shown.  Off the top of my head I'm not aware of line-length limitations for any CSV reading/writing libraries, but that's something to check as well.  We'd also need to make sure that any special characters like commas are properly escaped (although IIRC, this guidance is already be part of GTFS).
A big challenge here is translations - for this type of free text, I would imagine that agencies would want some type of ability to provide text in more than one language, similar to service alert translations.  One option would be to prefix or suffix the field name with the BCP-47 language code (e.g., en for English, es for Spanish), and have support for multiple columns, each column being a different language.  IIRC we don't handle with translations anywhere else in the GTFS spec, only GTFS-realtime Service Alerts.

Would it be reasonable to put the explanation of how to board or alight a DRT service in the route_desc field, rather than creating a new field?
From the spec:

The route_desc field contains a description of a route. Please provide useful, quality information. Do not simply duplicate the name of the route. For example, "A trains operate between Inwood-207 St, Manhattan and Far Rockaway-Mott Avenue, Queens at all times. Also from about 6AM until about midnight, additional A trains operate between Inwood-207 St and Lefferts Boulevard (trains typically alternate between Lefferts Blvd and Far Rockaway)."

For what it's worth, route_desc has the same issues @barbeau raised - translation and length concerns.

My thought is that

This field may already be in use for other purposes (we use this field for GTFS feeds that are processed by web sites we manage, to populate a brief field at the top of the route page describing the route more generally)
There may be different messages that should be delivered based on whether there is a dropoff or pickup, or even different message during different parts of the route. (I'm thinking of a route that has different requirements for one segment than another, or different rules going to a transit center as opposed to from, regardless of whether pickup or dropoff.
Seems like we could help address the field length concerns by having a field that has a very tailored use case.

That said, I'm sensitive to spec bloat and agree in principle that we should avoid more changes to spec than necessary. Maybe this suggestion is too tailored to our UI concern. I'd love to hear any other thoughts from @antrim @barbeau and @nihit-jain-ibigroup

I agree that re-using route_desc for this probably isn't a good idea for legacy use reasons, and the below:

There may be different messages that should be delivered based on whether there is a dropoff or pickup, or even different message during different parts of the route

I agree

Seems like we could help address the field length concerns by having a field that has a very tailored use case.

I agree - I think we need a tight description of what is expected and some example use cases to help producers understand exactly how consumers plan to use this info.
@thomastrillium Do you have any current real use cases you could share that might help with this?

I've attempted to address this concern by specifying that this is for the "minimum information" to be transmitted, and suggesting venues for more information if applicable.
I've also added separate continuous_pickup_message and continuous_drop_off_messageso that we can differentiate between messages for demand responsive and flag stopping services.
side note: I'm starting to realize that there are two distinct service types: drt and continuous stopping. I'm not sure what this means, but i'm stewing on how we could potentially clarify what GTFS-flex does by classifying everything more clearly as one of those two things.


Log config is null

On my docker instance, most of my containers have this in their inspect:
            "LogConfig": {
                "Type": "db",
                "Config": null
            }

When running these containers on docker-replay, I get an AttributeError:
Traceback (most recent call last):
  File "/opt/bin/docker-replay", line 11, in <module>
    sys.exit(main())
  File "/opt/lib/python2.7/site-packages/docker_replay/__init__.py", line 49, in main
    print(DockerReplay(args.container, args.pretty_print))
  File "/opt/lib/python2.7/site-packages/docker_replay/__init__.py", line 21, in __init__
    self.parser = OptionParser(inspect)
  File "/opt/lib/python2.7/site-packages/docker_replay/opts.py", line 14, in __init__
    self.read_opts()
  File "/opt/lib/python2.7/site-packages/docker_replay/opts.py", line 23, in read_opts
    self.opts += list(build_opt(o_type, o_name, self.get(o_key)))
  File "/opt/lib/python2.7/site-packages/docker_replay/models.py", line 9, in build_opt
    for k,v in o_val.items():
AttributeError: 'NoneType' object has no attribute 'items'

This is the only log driver provided on my Synology DSM 6.1.5 version of docker, and it's not part of the built-in drivers list. I assume it's a custom driver for DSM so that the web interface can get the logs.
# docker info | grep 'Logging Driver'
Logging Driver: db

Thanks; this error should now be resolved in the latest 1.4 release


ddd

Get https://registry-1.docker.io/v1/repositories/mysql/mysql-server/tags/latest: dial tcp <IP_ADDRESS>:443: i/o timeout

Can you share a bit of your network connection? Does this happen even after a full restart?

Closing this due to lack of activity in more than 15 days.


Windows 10 get bootstrap: permission denied for sam local

Getting below error when testing locally on a windows system.
Error: fork/exec /opt/bootstrap: permission denied

Please provide more details, for example the runtimes, the code you actually wrote, the commands you are running, template.yaml, etc.

when sam deployed this package it works from api gateway.
But gives error fork/exec /opt/bootstrap: permission denied when "sam local start-api"
Used the simplest created by the vendor\bin\bref init in windows system for http application.
step 1 => composer require mnapoli/bref
template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: ''
Globals:
Function:
Environment:
Variables:
# Laravel environment variables
APP_STORAGE: '/tmp'
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: 'my-function'
Description: ''
CodeUri: .
Handler: index.php
Timeout: 30 # in seconds (API Gateway has a timeout of 30 seconds)
Runtime: provided
Layers:
- 'arn:aws:lambda:eu-west-1:209497400698:layer:php-72-fpm:1'
Events:
# The function will match all HTTP URLs
HttpRoot:
Type: Api
Properties:
Path: /
Method: ANY
HttpSubPaths:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
Outputs show up in the CloudFormation dashboard
Outputs:
DemoHttpApi:
Description: 'URL of our function in the Prod environment'
Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/'
index.php

Work env. (Please help)
aws --version
aws-cli/1.16.103 Python/3.6.0 Windows/10 botocore/1.12.93
sam --version
SAM CLI, version 0.11.0
Docker desktop Version <IP_ADDRESS>

It's really hard for me to help here unfortunately, I don't have Windows to do any kind of test.
Maybe you could post an issue at https://github.com/awslabs/aws-sam-cli to check whether SAM actually works correctly with Windows, especially with custom layers. Maybe they can help?

Can you set file permissions in Windows? A few times I've had to chmod +x the bootstrap file on my Mac because of the same thing. I understand Windows uses ACL rather than the *nix file permissions system but it does sound similar.

@nealio82 but here there should be no bootstrap file written by @ashish-dirkmedia-de if I understand correctly. They are only using the FPM layer as-is.
@ashish-dirkmedia-de can you confirm that you have not created a bootstrap file?
Oh or maybe it is #134 -> Laravel's bootstrap directory is creating problems on Windows specifically?

No I dont have any bootstrap file. Not even laravel. Just mnapoli/bref.
It works when deployed.

same error for me on Windows 10 with docker Hyper-V
sam local invoke
Error: fork/exec /opt/bootstrap: permission denied
I think it comes from permission problem on bootstrap (called in the php layer)

Have you looked or asked in https://github.com/awslabs/aws-sam-cli if Windows is supported (as well as for lambdas using custom runtimes)? From what I could tell at the time it was, but maybe it's best to make sure.

I have posted the issue https://github.com/awslabs/aws-sam-cli/issues/1014. Hope they reply with solution

I more issue hope you can help me in that. Should be some thing small. Not sure why but now the laravel output is showing many times in cloudwatch with timeout. It is calling the same controller many times and goes to timeout and shows the output on cloudwatch

I frequently get -> related to hoa/socket for accessing aws services s3, cognito
/var/task/vendor/hoa/socket/Connection/Connection.php(197): Hoa\Stream\Stream->__construct('unix:///tmp/.br...', NULL)
Is it a know issue. Do you have a solution.

Can you set file permissions in Windows? A few times I've had to chmod +x the bootstrap file on my Mac because of the same thing. I understand Windows uses ACL rather than the *nix file permissions system but it does sound similar.

Can you describe how you did the changed the permission for the bootstrap. Had you given in the downloaded layer.

I don't understand either, bootstrap is in the layer so it shouldn't visible to you.

Running into this as well. :(
Browsing through https://github.com/awslabs/aws-sam-cli/issues?utf8=✓&q=is%3Aissue+windows it looks as though there are people successfully running AWS SAM on Windows locally.
Not running Laravel, but a custom Yii 2 app.  Happy to do any sort of debugging necessary to get to the bottom with some guidance.

Closing since we have switched to Serverless.


[FLINK-18076][table sql / client] Sql client uses wrong class loader when parsing queries

What is the purpose of the change
This pull request fix the wrong class loader in sql client(sqlParser).
Brief change log

In FLINK-17728, sql client supports parser statements via sql parser, sql parser should use user's class loader which may contains user's jar from -j or -l commands

Verifying this change

Has existed tests and passed an e2e test in local environment.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): ( no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@leonardBang Have you verified the fix? Unfortunately it does not work.
@godfreyhe I am not exactly what is your suggested solution, so sorry if I am wrong here. However, it is not enough to wrap instance of the parser with the wrapClassloader. The actual call to a method that requires the classloader must be wrapped.
I think the quickest though, dirty solution would be that:
@Override
public Parser getSqlParser(String sessionId) {
	final ExecutionContext<?> context = getExecutionContext(sessionId);
	final TableEnvironment tableEnv = context.getTableEnvironment();
	final Parser parser = ((TableEnvironmentInternal) tableEnv).getParser();
	return new Parser() {
		@Override
		public List<Operation> parse(String statement) {
			return context.wrapClassLoader(() -> parser.parse(statement));
		}

		@Override
		public UnresolvedIdentifier parseIdentifier(String identifier) {
			return context.wrapClassLoader(() -> parser.parseIdentifier(identifier));
		}
	};
}

Better solutions I could think of are:

Do not instantiate the sources during parsing. I don't see a reason for that. IMO the logical plan could have just the CatalogTable, it does not necessary need to have an instantiated DynamicTableSource already. This is very demanding solution that requires lots of changes in the planner.
Wrap the call to sqlParser.parse in org.apache.flink.table.client.cli.SqlCommandParser. This is tricky as we do not have access to the user classloader there.

@dawidwys For a long term, I think sql client should has an extended sql parser which can parse not not standard sql statement but also some special commands (e.g. SOURCE, SET, REST). which is also discussed in other prs. For now, some configs for both parser are different, such as: SqlParserImplFactory, identifierMaxLength (see: PlannerContext#getSqlParserConfig for blink planner and PlanningConfigurationBuilder#getSqlParserConfig for old planner). So it's also not clean that we copy those logic to sql client to build org.apache.calcite.sql.parser.SqlParser. As an interim solution, we use public interface org.apache.flink.table.delegation.Parser to parse a sql statement, which not only parse a statement but also validate the SqlNode (will initialize DynamicTableSource).

@dawidwys Sorry for lost my first commit, You’re right my second commit can not fix this, could you have a look  my first commit(https://github.com/apache/flink/commit/41240cd524255ffc7cf63d2bc2ee9ff38f3abcbd) ?
I'll push it again, I revert this the first one because they expose ExecutionContext from Executor which we think it's not a good way to fix after communicate with @godfreyhe

Sure, just let me know when it's ready for review.
Honestly I also don't like too much exposing the ExecutionContext.

Sure, just let me know when it's ready for review.
Honestly I also don't like too much exposing the ExecutionContext.
I‘ll update the PR soon

The PR updated @dawidwys , please help take a look.

Thanks for the review, I updated the PR @dawidwys @godfreyhe

Thank you both, will merge once azure gives green.


Drop all unsupported ruby versions

If we're dropping versions (https://github.com/guard/rb-inotify/issues/68#issuecomment-309246625), we might as well drop everything that's officially unsupported: https://www.ruby-lang.org/en/news/2017/04/01/support-of-ruby-2-1-has-ended/

Coverage decreased (-18.2%) to 42.857% when pulling e3f572ccc807c0e8ca0b5538c41ed70bdfe46918 on matthewd:bump-ruby-more into dec229c00fc6ded3a6a659f4d504d69572dc8492 on guard:master.

Coverage decreased (-18.2%) to 42.857% when pulling e3f572ccc807c0e8ca0b5538c41ed70bdfe46918 on matthewd:bump-ruby-more into dec229c00fc6ded3a6a659f4d504d69572dc8492 on guard:master.

@ioquatix I'm merging this to make things simpler for some follow-up PRs; feel free to revert if you particularly object

Excellent! I'm fine with this. I'd only suggest that we consider unofficially supporting 2.0 and 2.1 since they are both pretty decent. For most of my projects my minimum target is 2.1 at the moment.
I know it's nice to have a firm stance (don't bother with unsupported rubies). But there are a ton of people using this gem, and I don't see any barrier to supporting 2.0 and 2.1 (but I do of course see a ton of issues supporting 1.x and I'm very glad that's finished).


Package unable to compile

This package fails to compile when added to a project. Receiving errors:

Steps to reproduce
cargo new styler_test
cd styler_test
cargo add stylers
cargo +nightly build

Kinda feels like an issue with the proc_macro on nightly rust but is making it unable to use this package for personal project and i would like to

Versions I'm running as I assume this will be the next question
rustup 1.26.0
rustc 1.71.1
cargo 1.71.1

Image in main issue doesnt seem to have uploaded properly so posting again here

Same issue here,
Full compile time logs:
cargo leptos watch
   Compiling stylers v0.3.1
error[E0615]: attempted to take value of method `column` on type `proc_macro::Span`
  --> /home/sadramoh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stylers-0.3.1/src/style/css_style_rule.rs:74:47
   |
74 | ...                   pre_col = end.column;
   |                                     ^^^^^^ method, not a field
   |
help: use parentheses to call the method
   |
74 |                                 pre_col = end.column();
   |                                                     ++

error[E0615]: attempted to take value of method `line` on type `proc_macro::Span`
  --> /home/sadramoh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stylers-0.3.1/src/style/css_style_rule.rs:75:48
   |
75 | ...                   pre_line = end.line;
   |                                      ^^^^ method, not a field
   |
help: use parentheses to call the method
   |
75 |                                 pre_line = end.line();
   |                                                    ++

error[E0615]: attempted to take value of method `column` on type `proc_macro::Span`
  --> /home/sadramoh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stylers-0.3.1/src/style/utils.rs:60:25
   |
60 |     let cur_col = start.column;
   |                         ^^^^^^ method, not a field
   |
help: use parentheses to call the method
   |
60 |     let cur_col = start.column();
   |                               ++

error[E0615]: attempted to take value of method `line` on type `proc_macro::Span`
  --> /home/sadramoh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stylers-0.3.1/src/style/utils.rs:61:26
   |
61 |     let cur_line = start.line;
   |                          ^^^^ method, not a field
   |
help: use parentheses to call the method
   |
61 |     let cur_line = start.line();
   |                              ++

error[E0615]: attempted to take value of method `column` on type `proc_macro::Span`
  --> /home/sadramoh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stylers-0.3.1/src/style/utils.rs:65:20
   |
65 |     *pre_col = end.column;
   |                    ^^^^^^ method, not a field
   |
help: use parentheses to call the method
   |
65 |     *pre_col = end.column();
   |                          ++

error[E0615]: attempted to take value of method `line` on type `proc_macro::Span`
  --> /home/sadramoh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stylers-0.3.1/src/style/utils.rs:66:21
   |
66 |     *pre_line = end.line;
   |                     ^^^^ method, not a field
   |
help: use parentheses to call the method
   |
66 |     *pre_line = end.line();
   |                         ++

For more information about this error, try `rustc --explain E0615`.
error: could not compile `stylers` (lib) due to 6 previous errors

Maybe duplicate of https://github.com/abishekatp/stylers/issues/32?

Maybe duplicate of #32?

yup looks like a duplicate. Missed that


feat: Setup Architecture and add demo widgets and page

Setup the Architecture we worked out in #42 and add demo widgets and page for that. Closes #45

@denitsa-ilieva and @cyamn: Go to the branch locally and run 'npm start'. Give me feedback on the structure and the code pls

I don't see (yet) why we need an extra folder "main"

In my opinion we should have main and test directories for every part of our project. I just did this by using one big  main and one big test folder. But we could also have a separate test section inside every module


Multiple contents

An implementation of multiple contents might be necessary in near future to us. We save each section of a text as one content, i.e. Attachment with its headline as title.
For better NLP results it would be important not to put the contents together prior sending it to AHD, but separately sending each one for its own.
The current implementation would no allow this as it expects to return one text blob (https://github.com/miracum/ahd2fhir/blob/master/ahd2fhir/utils/resource_handler.py#L304).

We dropped that idea after looking at it more closely, as the single contents are not referrable, but only the entire DocumentReference. Thus, we model such documents as a Bundle with an identifier containing multiple DocumentReferences with one content only.


Add throwExceptions option to Callback validator

Q
A

BC Break
no

New Feature
yes

Description
This is a handy option for the callback validator that stops it from swallowing exceptions thrown in your callback. Off by default preserves existing behaviour.
Why? particularly in development, if you have a complex callback, can't figure out why it's failing and step debugging isn't helping you either
The Psalm baseline is mostly improved but there are still issues with the options array - this is mainly because of an @property array $options doc block on AbstractValidator

LGTM


update wingbox model for refactor

Ready for a quick review @whoburg

Never mind I forgot that I had already put the wing box inside the vtailrefactor branch


CI: spec update is failing

Spec update is working, but fails when it attempts to check out the latest version. For example, see https://github.com/open-telemetry/opentelemetry.io/actions/runs/5048585054/jobs/9056961958:
HEAD is now at 94196dc Blog: exponential histograms (#2661)
REPO:            opentelemetry-specification
LATEST VERSION:  1.21.0
SEARCHING for:   '^ *spec:' in scripts/content-modules/adjust-pages.pl
CURRENT VERSION:   spec: 1.20.0
+ sed -i.bak -e 's/\(^ *spec:\) .*/\1 1.21.0/' scripts/content-modules/adjust-pages.pl

Version update necessary:
diff --git a/scripts/content-modules/adjust-pages.pl b/scripts/content-modules/adjust-pages.pl
index 0be2462..b92bc[38](https://github.com/open-telemetry/opentelemetry.io/actions/runs/5048585054/jobs/9056961958#step:4:39) 100755
--- a/scripts/content-modules/adjust-pages.pl
+++ b/scripts/content-modules/adjust-pages.pl
@@ -17,7 +17,7 @@ my $semConvRef = "$otelSpecRepoUrl/blob/main/semantic_conventions/README.md";
 my $specBasePath = '/docs/specs';
 my $path_base_for_github_subdir = "content/en$specBasePath";
 my %versions = qw(
-  spec: 1.20.0
+  spec: 1.21.0
   otlp: main
 );
 my $otelSpecVers = $versions{'spec:'};

Switching to opentelemetry-specification at tag v1.21.0
+ cd content-modules/opentelemetry-specification
+ git switch --detach v1.21.0
fatal: invalid reference: v1.21.0
Error: Process completed with exit code 128.

I suspect that it is because the clone is shallow, and therefore doesn't have access to the tag.

Ah, no. It's because submodules aren't checked out.


Clean up element.line and do data decimation when applicable

Builds on #6730
Still uPlot:
PR:

Master:

Looks good, the question I have is whether or not this will work with the filler plugin. We may need to make changes there too.

I opted to not use fastPath, if fill is not false. Probably covers the use cases where performance can be an issue.

I wonder if it'd be possible to do the data decimation earlier. This is a great improvement, but draw takes only 5% of the total time and I think we could get this speedup elsewhere as well. E.g. it'd be great if we were able to skip updateElement for elements that won't be drawn due to the decimation. If we did it at the very beginning we might be able to cut time out of addElements and determineDataLimits as well

It's actually a big deal for interactions.  Combined with improved interaction mode (seen briefly in some other PR), it becomes very nice.
(Record a couple seconds of moving mouse over uPlot benchmark to see how much draw means there)

We should probably make sure all the controllers and elements are aligning their drawing. But it looks like that wasn't done before, so this PR seems fine to me. I added more detail to the 3.0 tracking ticket on that as a separate item


Added missing likely locale for hr-ME

Checklist

[ ] At least one test case is included for this feature or bug fix.
[ ] ReleaseNotes has added or is not needed.
[ ] This PR has passed all of the test cases on Nodejs and Chrome Browser.
[ ] This PR has passed all of the test cases on QT/QML.
[ ] This is an API breaking change.
[ ] Requires a major version change.

Issue Resolved / Feature Added
Added missing likely locale for ht-ME. it should return hr-Latn-ME
but it's hr-Latn-HR now.
Resolution
Links

Oh, forgot to ask for a bug fix release note... can you add that in a new branch?

Yes, I did to https://github.com/iLib-js/iLib/pull/221. When I realized that I didn't write release note and did an additional commit, the branch has already merged. ^^;


implement Walmart API, and adjust search by adding the products from …

…walmart when searching for items.

Hi catherine, I am on your branch and looked into what you write. I think it is good so far, but you would need to work on setting api token to environment varaibles, to prevent possible external attacks and illegal use of our api token since it is exposed to the public

I made the token environmental and made sure this file runs as what I want. I also edit the gitignore, can you check if that's fine?


Solves bazel issues on NixOS

I just started testing this but it so far resolves issues using deterministic Python/Go toolchains that nix-ld would break on.
Thanks for the effort and keep it up! This has solved loads of problems for me.

Just wanted to chime in. This is truly amazing! VSCode is no longer a pain to run over ssh on a NixOS remote.

I will make a release and add it to nixpkgs soonish.


GitHub PR: Comments from GitHub UI are not showing in PR extension

Created a multi root review
Added review comment in GitHub web UI
Added a line specific comment too
Refreshed GitHub PR extension in VS Code
Still shows no comments.

On Windows, found testing #62184

Closing, as I'm not able to reproduce this


How to change the word Home in the side bar?

I can't for the life of me find where to do this :
I'd like to change the word Home to be Designs.
Also is there a way perhaps to actually change the landing page to a static page rather than defaulting to the list of posts?
thanks.

nevermind I found it :) its in the locals files :)

It's ok, I found it :) it's in the local files :)

Can I ask for the path?

id like to know too


How to turn the built-in viewer off?

When I'm already on the current page run the built-in viewer, if I want to run another built-in viewer, they will appear on the same page and overlap.
Just like this:

What should I do if I want to close the previous viewer？

Trying calling the dispose() function on the viewer, that might be all you need to do.


Add osx build.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Error:  Packages missing in current osx-64 channels:

bob.sp

bob.ip.color


[LG C1 55] Does this actually reduce OLED brightness or it's like a Dim light filter?

Before opening the issue, have you...?

[X] Searched for existing issues

Question
Just curious how this is working. Does it fall back to a software brightness fix in case it isn't possible over HDMI? Is there a way to know which mode it may be operating in?
I ask this because the quality of greys looks a bit different and while I am able to reduce brightness I am not able to change volume, which makes me wonder if it's using CEC kind of tech or not.

The LG C1 TV does not support DDC so software brightness used (the app changes the gamma table to adjust brightness).


map values are overwritten

In the case of:
parse(['_', 'tasks'])

and
./bin first second

The tasks object will only retain the second value. However, parsec's map itself is/was populated correctly.
If you add console.log(map[key]) here, you will see that the value is actually correct:
['first', 'second'].
Beyond that, I'm not sure what's happening as I'm about to step out for the day.
(As you could guess, this affects Fly :wink:)

Will have a look at this. Thanks @lukeed.
BTW I saw the PR, we'll post there later :wink:

No problemo, sounds good.

@lukeed I am testing this at the moment. I'll probably end up rewriting this whole thing. Just installing Parsec and running npm i took like 4 minutes.


Add Data Source for firewall_rule

Current Terraform version
Terraform v0.13.6
Description
Add a Data Source to query existing firewall rules.
Use cases
When adding new firewall rules it is necessary to know which rules already exist to provide the correct priority to new rules.
Potential Terraform configuration
data "cloudflare_firewall_rules" "example" {
  zone_id = "<ZONE_ID>"
  filter {
    priority = 5
    match = "gte"
    paused = false
  }
}

Attribute reference:

firewall_rules

firewall_rules:

action
priority
paused

References
No response

Are you able to elaborate on your use case here a little more to help me understand? Are you only managing some of your firewall rules in Terraform? In other uses I've seen/used, this isn't required.

Our use case is building a module that packages some of Cloudflare's features together (firewall rules, rate limit, DNS records) and making this available to our teams. So, yes, not all rules are managed by the same team and we need to make sure the rules do not interfere with each other.

I don't think this is going to work the way you think it will because auto incrementing priority means you can't have any overrides in ordering for your rules. Imagine the scenario where you have team A with existing rules but team B needs to insert a rule in the middle of those rules (allow/bypass/etc) -- this won't be possible in your scenario without first manually reshuffling and spacing rules apart. See the documentation on ordering and priority at https://developers.cloudflare.com/firewall/cf-firewall-rules/order-priority for examples.
The other issue you will face is that if different teams have the product resources split across multiple files and only apply their portion of the product changes, the others will be removed as Terraform will not have them in the current state file.
Instead, I would recommend explicit ordering in shared files (or at least a way to apply all the product resources at once) to avoid the pitfalls outlined above.

The idea is that each team "owns" a block of n consecutive priorities. The overall order of the rules themselves is not that important, because each team will have an explicit condition for their own hostname in each of their filter expressions, which means only their own rules will ever match a request. However, we do not want any priority conflicts. Inside each "block" of rules, the order does matter, so we have to explicitly provide any (valid) priority.
1 - 1000 (reserved)
---
1001 - 1005 (team A)
---
1006 - 1010 (team B)
---
...

Technically, we could simply apply static priorities, so if we have x teams, there will be x rules with priority 1000, x rules with priority 1001 and so on. Since each rule matches only the traffic for their team, this should still work and any ties in the set of these matching rules would be resolved according to action precedence. However, that removes the possibility to have a bit more advanced orderings.
1 - 1000 (reserved)
---
1001 (team A)
1001 (team B)
---
1002 (team A)
1002 (team B)
---
...

[...] this should still work and any ties in the set of these matching rules would be resolved according to action precedence

I'm afraid it doesn't work like this. If you've defined priority of a firewall rule, you can't have ties or duplication. Example:
curl -s \
  -H "X-Auth-Email: $CF_EMAIL" \
  -H "X-Auth-Key: $CF_API_KEY" \
  -H 'content-type: application/json' \
  https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/firewall/rules \
  -d '[{"action":"block", "filter":{"priority":5,"expression":"ip.addr ne <IP_ADDRESS>","paused":false,"description":"Restrict access from these browsers on this address range.","ref":"FIL-100"}}]'

{
  "result": [
    {
      "id": "3070f0b35d69470c916ac473f5fb9a8e",
      "paused": false,
      "action": "block",
      "filter": {
        "id": "1c31e087bf7946908c7bb757f4a2ea41",
        "expression": "ip.addr ne <IP_ADDRESS>",
        "paused": false,
        "description": "Restrict access from these browsers on this address range.",
        "ref": "FIL-100"
      },
      "created_on": "2021-03-25T20:08:31Z",
      "modified_on": "2021-03-25T20:08:31Z",
      "index": 0
    }
  ],
  "success": true,
  "errors": [],
  "messages": []
}

curl -s \
  -H "X-Auth-Email: $CF_EMAIL" \
  -H "X-Auth-Key: $CF_API_KEY" \
  -H 'content-type: application/json' \
  https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/firewall/rules \
  -d '[{"action":"log", "filter":{"priority":5,"expression":"ip.addr ne <IP_ADDRESS>","paused":false,"description":"Restrict access from these browsers on this address range.","ref":"FIL-100"}}]'

{
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 10102,
      "message": "config duplicates an already existing config",
      "source": {
        "pointer": "/0"
      },
      "meta": {
        "id": "3070f0b35d69470c916ac473f5fb9a8e"
      }
    }
  ],
  "messages": null
}

(same applies if you change the rule expression itself but maintain the priority value)
Despite your comments above, I still don't see this working as you expect it to due to the potential pitfalls I mentioned I've however I've gone ahead and reviewed the PR for this. It's entirely up to you how you want to use this feature 😃

If you've defined priority of a firewall rule, you can't have ties or duplication.

Interesting, the documentation suggests otherwise: "If the same request matches two different rules which have the same priority, precedence determines the action to take." In what case can those rules end up with the same priority then, if not set explicitly?
Either way, if this does not work, it's even more important to be able to avoid duplicate priorities.
Thank you for reviewing the PR, I will address the points.

closing this one as the PR has stalled


Proplem at "pip install ."

When I use command "pip install ."，some error happen,the error log is:

ERROR: Command errored out with exit status 1: /home/user/anaconda3/envs/wbq_base/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-g33nhm_8/setup.py'"'"'; file='"'"'/tmp/pip-req-build-g33nhm_8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-77ie84d6/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/anaconda3/envs/wbq_base/include/python3.7m/ctcdecode Check the logs for full command output.

When I check the log，I find this：

ctcdecode/src/decoder_utils.h:8:21: fatal error: fst/log.h:

it seems that the openfst did not install successfully.
What should I do to deal this error?Thanks
ok，I have solved this problem. I will closs this issue

How did you solve this?

How did you solve this?
My serve can not connect google to download openfst-1.6.7.tar.gz. So I download openfst-1.6.7.tar.gz and upload it to my serve.But I forget unzip the file,so the error happend. After unzip the openfst-1.6.7.tar.gz, it installed successfully


Fedora 24 only has the 4.0 Webkit2 bindings, causing toga-demo to fail

Thanks for the Gtk support! Unfortunately, the demo is failing to find the WebKit bindings on Fedora, and the number of different projects and version numbers interacting, as well as the major naming differences between Debian and Fedora in this area, makes it hard to figure out what it's actually looking for:
$ toga-demo
Traceback (most recent call last):
  File "/home/ncoghlan/.local/bin/toga-demo", line 7, in <module>
    from toga_demo.__main__ import main
  File "/home/ncoghlan/.local/lib/python2.7/site-packages/toga_demo/__main__.py", line 6, in <module>
    from .app import TogaDemo
  File "/home/ncoghlan/.local/lib/python2.7/site-packages/toga_demo/app.py", line 4, in <module>
    import toga
  File "/home/ncoghlan/.local/lib/python2.7/site-packages/toga/__init__.py", line 91, in <module>
    set_platform()
  File "/home/ncoghlan/.local/lib/python2.7/site-packages/toga/__init__.py", line 73, in set_platform
    locals['platform'] = importlib.import_module(module_name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/ncoghlan/.local/lib/python2.7/site-packages/toga_gtk/__init__.py", line 20, in <module>
    from .widgets.webview import *
  File "/home/ncoghlan/.local/lib/python2.7/site-packages/toga_gtk/widgets/webview.py", line 8, in <module>
    gi.require_version('WebKit2', '3.0')
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 106, in require_version
    (namespace, version))
ValueError: Namespace WebKit2 not available for version 3.0

gir1.2-webkit2-3.0 seems to be the relevant Debian package (which is mentioned on toga's Gtk support page), and looking at https://packages.debian.org/sid/gir1.2-webkit2-4.0 shows that's the Gobject introspection bindings for WebKit2 3.0
However, I can't find anything similar for Fedora, which suggests this may work quite differently on non-Debian derived Linux systems.

Looking at http://lazka.github.io/pgi-docs/#WebKit2-4.0 suggests only 4.0 may be available, sure enough, if I try that at the Python 3 prompt it works:
Python 3.5.1 (default, Sep 14 2016, 11:27:59)
[GCC 6.1.1 20160621 (Red Hat 6.1.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('WebKit2', '3.0')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.5/site-packages/gi/__init__.py", line 106, in require_version
    (namespace, version))
ValueError: Namespace WebKit2 not available for version 3.0
>>> gi.require_version('WebKit2', '4.0')
>>>

Ditto for Python 2:
Python 2.7.12 (default, Sep  2 2016, 14:46:00)
[GCC 6.1.1 20160621 (Red Hat 6.1.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('WebKit2', '3.0')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 106, in require_version
    (namespace, version))
ValueError: Namespace WebKit2 not available for version 3.0
>>> gi.require_version('WebKit2', '4.0')
>>>

Thanks for the report, @ncoghlan. It looks like Ubuntu 16.04 has Webkit2-4.0 bindings available. I'll need to take a closer look to see if there's a better way to specify this version string that won't be as problematic across platforms (suggestions welcome!).
The error handling also needs some work, apparently, because webkit should be optional - it isn't used by the demo, so the fact it isn't installed shouldn't be an issue.

I had a quick look for examples, but didn't see anything other than folks just writing "require_version" with a specific version number (as in https://developer.fedoraproject.org/tech/languages/python/pygobject.html ).
Following some of the links from there and searching a bit more, it looks like there is a C level API to list the versions of available namespaces, but that isn't visible to Python: https://developer.gnome.org/gi/stable/GIRepository.html#g-irepository-enumerate-versions
The one introspection API that does seem to be available is gi.get_required_version which at least lets you detect if a namespace is already loaded, and what version that was:
>>> gi.get_required_version("WebKit2")
>>> gi.require_version("WebKit2", "4.0")
>>> gi.get_required_version("WebKit2")
'4.0'

I guess one thing you could try if toga can handle multiple versions of the WebKit2 namespace is something like:
acceptable_versions = [" 4.0", "3.0"]
for namespace_version in acceptable_versions:
    try:
        gi.require_version("WebKit2", namespace_version)
    except ValueError:
        continue
    break
else:
    # Whatever you need to do to indicate internally that WebKit2 is unavailable

(I also don't know how different the 3.0 and 4.0 WebKit2 bindings actually are)


[Bug]: Regexp toString() method returns the desugared value

Description
$subject
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

If this issue occurred after https://github.com/ballerina-platform/ballerina-lang/pull/39618/commits/fcdddd9977be81a07ec1bd081fae03e1838de630 commit,
one possible reason for this issue is following addition
result = ASTBuilderUtil.createLiteral(reCharacterClass.pos, symTable.stringType, "");

Because in here, it creates a new AST node without handling the toString() method.

Tests with following scenarios, which are changed the original regex in runtime. But in those regex paterns, toString() works fine.
public function main() {
   var r = re `^A&B\s`;
   io:println(r.toString()); //^A&B\s
   io:println(r.toBalString()); //re `^A&B\s`
}

This issue occurred when I desugared a empty character class ([]) into a non capturing group pattern ((?:)). We pass this desugared nodes into the runtime and the runtime uses the stringValue method to get the value for the toString method.
So we have to override the stringValue methods to get the correct result for the toString.

Closing this issue because this won't be a concern for now, since we are not going to desugar any regexp value.


(Matroska) Not parsing layered tags properly, only showing lowest one.

Mediainfo only parses the furthest down tag layer when they use the same name.  Matroska stores them both and they have different meanings.  The higher the "TargetTypeValue" it is the more generic of a tag it is compared to the lower number option.  In this example the "70" one is for the show "Lost", while the "50" one is for the specific episode, the pilot.  Mediainfo only shows the episode one.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Tags SYSTEM "matroskatags.dtd">
<Tags>
    <Tag>
        <Targets>
            <TargetTypeValue>70</TargetTypeValue>
        </Targets>
        <Simple>
            <Name>IMDB</Name>
            <String>tt0411008</String>
        </Simple>
    </Tag>
    <Tag>
        <Targets>
            <TargetTypeValue>50</TargetTypeValue>
        </Targets>
        <Simple>
            <Name>IMDB</Name>
            <String>tt0636289</String>
        </Simple>
    </Tag>
</Tags>

Encoded date                             : UTC 2023-05-04 06:25:31
Writing application                      : mkvmerge v75.0.0 ('Goliath') 64-bit
Writing library                          : libebml v1.4.4 + libmatroska v1.7.1
IMDB                                     : tt0636289

If you open the file in a hex editor and look at the tags that way you'll see they are both there.
IMDBD‡‰tt0411008D{ƒundssŸcÀ€gÈ™E£„IMDBD‡‰tt0636289

Definitely some improvements to do there :(.


Vector constants

Gives constants the power to be vectors, too.
Constants can have the "shape" parameter in order to shape comma-separated values as per numpy.reshape, or if omitted will be a vector of length equal to the number of entires, unless that length is 1, then it will be single-valued float as before.
To accomodate this, "shape" is moved from a node to  an attribute for variables, and for clarity we generalized the reading of constants to be inherited from Sampler to Optimizer.
We also add two new InputData parameter types: the FloatList and IntegerList, which expect pretty much exactly what their names say.

I have one more merge to add to this, to extend the raven-running-raven interface to handle the vectors.


Cycle counter not available when debugger is not attached.

I wanted to count cycles on some code on a board where there was no debugger attached. I had to jump through several hoops to get there, and ended up with this monstrosity:
let mut cp = cortex_m::peripheral::Peripherals::take().unwrap();
unsafe {
    cp.DCB.demcr.modify(|r| r | (1<<24));
    fence(Ordering::SeqCst);
    // DWT::unlock();
    let ptr: *mut u32 = 0xE0000FB0 as *mut u32;
    *ptr = 0xC5AC_CE55;
    fence(Ordering::SeqCst);
    let ptr: *mut u32 = 0xE0001004 as *mut u32;
    *ptr = 0;
}
fence(Ordering::SeqCst);
cp.DWT.enable_cycle_counter();

Several problems had to be adressed when applying the solution from https://stackoverflow.com/questions/36378280/stm32-how-to-enable-dwt-cycle-counter.

The compiler could re-order the writes, so I had to place memory barrier liberally around.
DEMCR tracing needed to be enabled
The unlock command wrote to the wrong register, 0xE0000FB0 has ITM as the base, and not DWT ( I think it ended up at 0xE0001FB0 instead )
The SO article states that it is nececary to write to the cycle count register first. There is no safe facility for doing so

I noticed your issue. While I'm not a developer of this crate, I will address some remarks. I'll number them the same as you did.

If you use volatile write, the compiler cannot reorder them and you don't need barriers.
cp.DCB.enable_trace() can do that.
There are several registers named LAR on Cortex-M7, including one in DWT. If you want to unlock the DWT you have to use this one. It is the DWT you need to unlock in order to be able to enable to write into the control register to enable the counter.
I don't think you need to write to the cycle count registers, and they do that to reset it to a known value (0), which is its reset value anyway.

You can find the whole sequence in this RTIC book excerpt:
cp.DCB.enable_trace();
DWT::unlock();
cp.DWT.enable_cycle_counter();

What do you propose to change in the cortex-m crate? Is there anything else you would need to activate the cycle counter?

I think you have answered 1,2,4 - so I knly have questions regarding 3:
   cp.DCB.enable_trace();     DWT::unlock();
compiles to:
8000696:       f64e 50fc       movw    r0, #60924      ; 0xedfc  800069a:       f04f 0800       mov.w   r8, #0  800069e:       f2ce 0000       movt    r0, #57344      ; 0xe000  80006a2:       6801            ldr     r1, [r0, #0]  80006a4:       f041 7180       orr.w   r1, r1, #16777216       ; 0x1000000  80006a8:       6001            str     r1, [r0, #0]  80006aa:       f241 0104       movw    r1, #4100       ; 0x1004  80006ae:       f64c 6055       movw    r0, #52821      ; 0xce55  80006b2:       f2ce 0100       movt    r1, #57344      ; 0xe000  80006b6:       f2cc 50ac       movt    r0, #50604      ; 0xc5ac  80006ba:       f8c1 8000       str.w   r8, [r1]  80006be:       f8c1 0fac       str.w   r0, [r1, #4012] ; 0xfac
So the unlock write happens to address 0xe0001fb0  which I think is incorrect. This might have something to do with fact that this run was on Cortex-M4, which does not require unlock. I will move to Cortex-M7 later where unlock is required, and see if the behaviour is correct there. If this becomes an issue, I can re-open the case.


If network is not available then Gauge should not try downloading plugins

Expected behavior
If network is not available then Gauge should not try downloading plugins
Actual behavior
Getting an error
error is {Installing required plugins Retrying (Retry total =4, connect=None, read=none, status= none)) after connection broken by 'NewConnectionError('<pip._vendoe.urllib3.coonection.verifiedHTTPSConnection object at 0x03518210>: Failed to establish a new connection:: [Errno 11004] getaddrinfo failed'):

seems to be working fine with Gauge 1.0.3


Use python 3.5 for doctest

Related: https://github.com/chainer/chainer-test/pull/342
Fixed doctest to pass with python 3.5.

Doctest summary
===============
   60 tests
    0 failures in tests
    0 failures in setup code
    0 failures in cleanup code

LGTM!

Number of tests increased by unknown reasons ....
Doctest summary
===============
   95 tests
    0 failures in tests
    0 failures in setup code
    0 failures in cleanup code

Thanks!


:nissue can't work with Xcode8.0

Description
[Write simple description here. If the title describes it well, just delete this.]
Operation
[Describe the operation you did. Also include your text on which you operate if it is related to text editing.]
Expected behaviour
[Write here]
Environments

Xcode Version [    ]
XVim branch and revision [     ]
Keyboard Language [     ]
Input source language [    ]

Crash log (if any)
 [ Paste the log here ]

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39251120-nissue-can-t-work-with-xcode8-0?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github).

Works for me in Xcode 8.2.1 on master branch commit 899315e


[admin] Merge to live!

Docs Build status updates of commit 69d5a60:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 38e564c:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

docs/docfx.json
:x:Error

Details

docs/docfx.json

Line 55, Column 0: [Error-json-syntax-error] Unexpected end of content while loading JObject.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Same requests are sent multiple time if previous one not resolved

See an example with jira-dashboard
https://user-images.githubusercontent.com/7508939/140255451-a957acab-0693-40ec-9de5-42cccd8f3a3e.mov

Thanks @chloeleichen for the report. I can replicate the issue in this sandbox https://codesandbox.io/s/rrr-replicating-issue-104-lqm0m?file=/src/about/index.tsx

Fixed by #115 and release in v0.19.0


New+ Custom Icons

Description of the new feature / enhancement
Pretty much self-explanatory -right now we have the opening app's icon beside the file, but sometimes a custom icon can make finding the correct file faster.
Scenario when this would be used?
I use Notepad++ to open both CSS and JSON files, but I would rather use these SVGs:

Should be toggleable between using opening program and a custom image.
Supporting information
No response

Especially for (project) folder templates.

This reminds me of the VS Code Icons extension which replaces folder and file icons with more recognizable and fitting custom ones. To clarify, the ask here is to be able to specify the icon that would show up in the template list in place of the app icon?

@ethanfangg Yep, that sounds about right. Maybe have another folder with icons and match it by file name (ignoring extension).
I might try and give it a go over the weekend if I can find the time, but I haven't got much experience in C++.


Remove tox from the testing pipeline

tox has become somewhat redundant given the capabilities of pytest and
GitHub Actions, and removing it means one less tool to maintain and
configure.

Dropping in favor of #375


Not starting on macOS Sonoma 14.4.1 M1 Pro

I've tried installing all the latest releases on macOS Sonoma on an M1 Pro and none of them open (including the release that supports both arm64 and x86_64).
I've done succesfully installed vips via brew install vips.
I move the installation to the Application folder, open it, wait until it verifies and then try to open it again with right-click and then Open, and it takes some seconds but it doesn't open (I assume it crashes).
Has anyone managed to make it work on macOS Sonoma for arm64?
This is my neofetch:
                    'c.          jinglin@Jinglins-Mac
                 ,xNMM.          --------------------
               .OMMMMo           OS: macOS 14.4.1 23E224 arm64
               OMMM0,            Host: MacBookPro18,3
     .;loddo:' loolloddol;.      Kernel: 23.4.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 21 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 118 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.9
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x1440
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Red (Light)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: Apple_Terminal
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: SFMono-Regular
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1 Pro
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1 Pro
       .cooc,.    .,coo:.        Memory: 2079MiB / 16384MiB

I have the same problem actually.
The dmg file for the app is not working for me. The app doesnt start as also stated by @gaojinglin99.
https://github.com/TissUUmaps/TissUUmaps/releases/tag
However, I can still build from pip as instructed below, and that works
https://tissuumaps.github.io/installation/
https://pypi.org/project/TissUUmaps/
Here is also my neofetch:
                    'c.          amanuky@LANDTHALER57
                 ,xNMM.          --------------------
               .OMMMMo           OS: macOS 12.5.1 21G83 arm64
               OMMM0,            Host: MacBookPro18,2
     .;loddo:' loolloddol;.      Kernel: 21.6.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 14 days, 4 hours, 26 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 189 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: bash 3.2.57
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 3840x1620
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Light)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: Apple_Terminal
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: SFMono-Regular
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1 Max
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1 Max
       .cooc,.    .,coo:.        Memory: 9307MiB / 65536MiB

I have recently tested this again on the latest release, are there any plans to fix it ? I normally open this from a conda environment but I would rather use the application directly :D

Hi,
I finally had the time to do some testing with GitHub actions and MacOS 14 arm64.
I had to add manually the DYLD_FALLBACK_LIBRARY_PATH environment variable to search into /opt/homebrew/lib to fix https://github.com/Homebrew/brew/issues/13481. It is a quite ugly hack, but it should work for now.
Can you test with the latest release (<IP_ADDRESS>)?

Dear @cavenel, I have quickly checked it on my MacOS 12.5.1 arm64. I think the problem persist, to be clear I have added DYLD_FALLBACK_LIBRARY_PATH to my .bash_profile
export DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib

This doesn't open though, but I am positive to investigate this with anybody further.

Thanks for the quick answer.
Unfortunately, I was only able to build for MacOS 14, and I don't think you can run it on an oldest version.
I can check if there is a way to force compatibility.

Thanks, I have quickly checked, am I getting a numpy error ???!?
INFO:root: * TissUUmaps version: <IP_ADDRESS>
Traceback (most recent call last):
  File "numpy/_core/__init__.py", line 23, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/_core/multiarray.py", line 10, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/_core/overrides.py", line 8, in <module>
ImportError: dlopen(/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so, 0x0002): Symbol not found: (_cblas_caxpy$NEWLAPACK$ILP64)
  Referenced from: '/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so'
  Expected in: '/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "numpy/__init__.py", line 114, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/__config__.py", line 4, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/_core/__init__.py", line 49, in <module>
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.11 from "/Applications/TissUUmaps.app/Contents/MacOS/TissUUmaps"
  * The NumPy version is: "2.1.1"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so, 0x0002): Symbol not found: (_cblas_caxpy$NEWLAPACK$ILP64)
  Referenced from: '/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so'
  Expected in: '/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "tissuumaps/gui.py", line 58, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "tissuumaps/__init__.py", line 112, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "tissuumaps/views.py", line 55, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "tissuumaps/read_h5ad.py", line 6, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "h5py/__init__.py", line 33, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "h5py/version.py", line 17, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/__init__.py", line 119, in <module>
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
[85979] Failed to execute script 'gui' due to unhandled exception: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
[85979] Traceback:
Traceback (most recent call last):
  File "numpy/_core/__init__.py", line 23, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/_core/multiarray.py", line 10, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/_core/overrides.py", line 8, in <module>
ImportError: dlopen(/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so, 0x0002): Symbol not found: (_cblas_caxpy$NEWLAPACK$ILP64)
  Referenced from: '/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so'
  Expected in: '/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "numpy/__init__.py", line 114, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/__config__.py", line 4, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/_core/__init__.py", line 49, in <module>
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.11 from "/Applications/TissUUmaps.app/Contents/MacOS/TissUUmaps"
  * The NumPy version is: "2.1.1"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so, 0x0002): Symbol not found: (_cblas_caxpy$NEWLAPACK$ILP64)
  Referenced from: '/Applications/TissUUmaps.app/Contents/MacOS/numpy/_core/_multiarray_umath.cpython-311-darwin.so'
  Expected in: '/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "tissuumaps/gui.py", line 58, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "tissuumaps/__init__.py", line 112, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "tissuumaps/views.py", line 55, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "tissuumaps/read_h5ad.py", line 6, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "h5py/__init__.py", line 33, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "h5py/version.py", line 17, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 385, in exec_module
  File "numpy/__init__.py", line 119, in <module>
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

This seems to be related to your version of Accelerate, as described here https://github.com/numpy/numpy/issues/25026
Unfortunately the only answer I see in the thread and linked threads is "update your os to >13.5".
Not sure I can help much with this issue :(

ah thanks Christophe, I will switch to 13-14 then, no worries :D


Feature Request - using languages out of character

Is there a way to speak in a language out of character, as in without having a token which speaks it selected?
For example, if my players find a message scribbled on a wall in draconic, and i want to post a message so the players who can read draconic can understand it, i can't seem to find a way to easily do this if there isn't an NPC i can hijack on the map, and it's rarely worth it to make a journal entry for a quick message.
If i could just choose the language from the drop down then type out the message and post it, that would be really useful.
If possible, I don't just mean typing "/draconic message", because I am a forgetful moron and have ruined a couple of secret messages by forgetting to type /ic before writing the message, which instead posts the message OOC and in english/common rather than the language i have selected from the drop down.
Otherwise, thanks for this awesome module! It is such a cool idea and I love it!

Speaking "out of character" is reserved for actual out of character speech (i.e: from this world, in English or whatever language you speak), and in-world languages are for in-character speech.
Having polyglot active on both IC and OOC messages will make it even more problematic for when you want to speak in plain text and for other people who don't want that feature.
You don't have to hijack a token to speak in character though, what most people though is to create a single Actor called "Narrator" or "GM" and assign it to their GM player (in the "Player Configuration" dialog). You can then speak in-character as the GM by simply prefixing your message with the /ic command. If you forget it to type it, then... there's not much I can do for that!
I know there's a module that can let you use /as command, so you could do /as Wall the message without having to create an actor, but I just can't remember which module that was.
I hope that helps.

Can this be added to the README? It looked like the module was broken because it only works if you select a token.

Considering the number of times I've had to answer that question... why have I not thought of adding it to the README 🤦♂ Thanks!
P.s: With #56 being merged soon, and an option that GMs can use to allow speaking out of character, that should hopefully at least make it less of an issue.


object attribute mutator methods should be documented - maybe in Perl6/doc

In S12 (Objects) in the section on attributes - http://design.perl6.org/S12.html#Attributes - there is a sentence that reads:  "You may write your own accessors to override any or all of the autogenerated ones.".  The same is supposed to be true about mutators for rw attributes but that does not seem to be documented anywhere.  After a discussion with moritz++ on irc, moritz felt that a Synopsis does not need to spell everything out and while custom mutators should be documented, that documentation belonged on Perl6/doc.  I don't really see where custom accessors are documented on Perl6/doc but, like accessors, custom mutators are supposed to be part of the Perl 6 language and that should be documented somewhere.
There is a work in progress roast test suite for custom object mutators here: https://github.com/perl6/roast/blob/master/S12-attributes/mutators.t

There is a mention of it: http://doc.perl6.org/language/containers#Scalar_containers
But there should be some mention of it in the context of objects on the classes page. To me "mutators" would fit into a tutorial like thing is it is just the combination of Proxy objects and custom rw accessors.

For "Scalar Containers" they give a trivial mutator example that isn't really a custom mutator like in S12-attributes/mutators.t.
class A {
    has $.attr is rw;
}

is equivalent to

class A {
    has $!attr;
    method attr() is rw { $!attr }
}

This is a minimal mutator and somewhere there needs to be documentation about object attribute mutators that can do a lot more than this.

My suggestion is that a fuller mutator example involving a Proxy like that test belongs in classtut while in the objects doc we mention that methods can also take is rw and this allows you to make custom accessors.

Perhaps the fact that this issue is one year old is scaring away some contributors :)
Marking as LHF.

I am sick and incapacitated for the forseeable futire.  Will try to come up with some answer by the end of March.

Sorry to hear that. Get well soon.

Python, Ruby, C# and Delphi all allow 'setters' for attributes that overload the assignment operator so people from other languages may wonder about the feature which seems to require a Proxy in p6.  See PR #1874 .

Glad to hear you're back. :-)

Closed by PR #1874.


Update view token route to resolve at token/[id]

- Rename view.tsx to index.tsx
https://nextjs.org/docs/routing/introduction#index-routes
- Update view Links with new URL pattern

Fixes #24

LGTM 👍