Introduce --insecure in sensitive places

Top of mind places:

TLS
Dumping ENV vars
etc

Now that we've talked about it, I understand that runme env dump does not dump env's for a specific sessionID. In this case, I think we're okay removing it from the --insecure list.


feat: Added SIPTransport for multi instance testing

Adds a transport that can be used for multi-instance testing.

I wonder if we could use UTP for our single-process testing purposes here — if so, this might not be needed.
let me summon @wackoisgod here :)

Yea so for UTP we have an IPC Interface that we use for single process testing. This is how we test the transport today.

Yea so for UTP we have an IPC Interface that we use for single process testing. This is how we test the transport today.

@wackoisgod can you think of a creative way that we could piggyback on your work?  Could UTP have a "IPC mode" that we could set and then we could then use UTP normally vs. us having our own dedicated implementation?

Can we add some tests for this transport? Seems essential that we know this layer is always working since we have so many other things coming that will rely on it

Yep.. awaiting andrews response first.

Can we add some tests for this transport? Seems essential that we know this layer is always working since we have so many other things coming that will rely on it

Yep.. awaiting andrews response first.

Yes I think we could make it work with an IPC option. Today for Transport tests with use the IPC interface and its just a matter of selecting a different Interface. We will likely want to wait until we merge in the relay branch because that has some changes to the UTP Transport package and will make the test project use that by default over uNET.


Incompatible with Ledger Stax

General Description
Wasabi wallet seems to detect the Ledger Stax but can't progress further
How To Reproduce?

Connect your Ledger Stax via USB
Unlock it
Launch the BTC app
In the Wasabi app, select "Hardware wallet"
Wasabi will ask if the hardware wallet is correct. Click "Yes"
This error is shown: "Provide either fingerprint or devicepath-devicetype pair, not both"  (see screenshot).

Screenshots

Operating System
MAC OS 15.1.1
Wasabi Version
2.3.0

This wallet is not in the Officially Supported Hardware Wallets
Additionally, Ledger refuses to send test devices to developers, as a result, no new product from this vendor will be supported.
Sorry, but please complain to them!


Implement post notification to user (maybe with standard sound alerts)

I thought this would be a good feature to add, I like to contribute with this feature.
So, after a several tasks Robot should post a notification to the user and maybe with some standard sounds if task(s) done successfully or not. Like we get from Xcode for successful and failed builds.
What do you think @0xLeif ?
I never did such feature, this is why I opened this issue to see your opinion and guide myself with any hints/discussions on where to start.

@devahmedshendy This is a great suggestion!
I initially think this would just be another variable in Robot.swift
Something like...
/// Robot control of the notifications
public let notification = RobotNotification()

Then I would just expect this ticket to implement RobotNotification. We could start with just one function, push where we supply some information for the notification.
My only concern is push notifications require permissions..  I also have this general Swift push notifications code working too https://github.com/0xOpenBytes/o/tree/main/Sources/o/Notifications
Let me know if you have any questions!


PaginationView overlapping pages issues

I've got a detail view consisting of a Pagination view with 3 pages. When my app's  navigationView's sidebar is expanded (on iPad in landscape mode) the detail view adapts itself (mostly elements shift t the right beyond the visible area. All of this is as expected! BUT if I paginate when in this sidebar-expanded state, the first page is shown overlapping the second (which itself overlaps the 3rd when I navigate to it). Any idea what could be happening?

@transat would it be possible for you to reproduce this in a sample project and attach it here? Hard for me to tell based on your description currently.

I haven't been able to reproduce this with a simple example, alas. It must be some edge-case to do with my specific implementation. I'll let you know if I figure out what's going on.

@transat closing this issue for now, but please do reopen it if you can repro in an isolated case!

@vmanot I'm running into an overlap issue with other views seemingly ending up underneath the PaginationView.
Here's a minimal project example. You'll notice it can take several clicks on the "Skip" button to recognize the tap
paginationviewoverlap.zip


Automated Package Upgrade

:tada: This PR is included in version 25.3.449 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


can the visual token reduction be applied to the base qwen2-vl models?

thank you for your work (and for sharing this with us)
I'm using qwen2-vl for document question answering and I'm wondering if I can apply your token reduction? does it require changing the weights or can I just create a function that accepts a mask for the tokens to keep?
I'm not very proficient when it comes to python so any help would be appreciated.

@mehamednews  good question!
Yes, it can be applied in Qwen2-VL in a zero-shot manner.
But it will not be ideally, as qwen2-vl model weight is not trained with this fashion, and thus not friendly with this manner.
Thus, we need to train the model to adapt this mode. We will continue update our repo and include this mask strategy.

@mehamednews
Hi We have release the inference codes for visual token selection: https://github.com/showlab/ShowUI/blob/main/test.ipynb
Please take a try and have fun.


allow test withoutVite manifest + update lock

@driesvints Follow up PR from this comment

Thanks! Not sure when I'll get to the final PR but appreciate this one in the meantime 👍


Removed staticMarkup option from docs.

684cc254c63a5294af9835e7b36639aefca09e6a reverted the documented feature to render static HTML (staticMarkup) without any additional info.
Does this mean it will be deprecated in the future? The reason I am asking is because I want to render an AMP page and this could be the right direction. Although this is a setting that can better be handled on the page level: app.renderToHTML(req, res, pagePath, queryParams, {staticMarkup:true}).
Perhaps if not, this could be added as an example (happy to do that), just because the setting is a bit hidden.

@ehtb for the AMP page, I assume you could use our custom document support as well.
See: https://github.com/zeit/next.js#custom-document

@arunoda Thanks for the tip, that sounds very interesting as well!
I am looking for a hybrid solution where both the regular as well as the amp pages are served from the same app, since they are still tightly coupled.
I've created a pr which allows overriding the default render options per render request (renderToHTML).
This allows for instance:
server.get('/blog-amp/:id', (req, res) => {
  app.renderToHTML(req, res, '/blog-amp', {}, { staticMarkup: true })
})

server.get('/blog/:id', (req, res) => {
  app.renderToHTML(req, res, '/blog', {})
})

I'm not sure about the state of the staticMarkup option.
Let's ask from @nkzawa or @rauchg

I added staticMarkup just for testing and it's a private option. I'm not sure other use cases like AMP.

@ehtb could you have a look at #793 since it involves AMP 👍

Closing in favor of the AMP example.


Reset password link bug found in Yii

Take a note. Bug fixed in latest Yii version. I suppose e-mail sending should be reviewed in current module too.
Here is a link:
https://github.com/yiisoft/yii2/issues/6748

We don't use Yii's reset password method in this module at all so I don't think we're affected.


Test: add some unittest to addon cache

Description of your changes

Fixes #
I have:

[x] Read and followed KubeVela's contribution process.
[ ] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

please review @barnettZQG @wonderflow @leejanee


Feat: Style to Scrollbar for better UI.

Describe the feature
I want to add style to scrollbar that looks good and give better user experience.
I expect to add level2 on this task because it takes time and try-error for fix style for scrollbar.
Thank you !
Add ScreenShots

In this website default scrollbar is here i will styled it.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@zalabhavy You are assigned

Whenever you make changes to the files, please describe in the comment section what changes you are making.


Got loading screen to work, cleaned up some adding content functions

Did a quick skim -- for the prototype, didn't see anything that popped out.


Version 3.5.4

Landed in https://github.com/metarhia/metautil/commit/6f5092a4bb0b93e4b8124804d50ed1f98d85b0dc


audit: don't require uses_from_macos in Linux formulae

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

Related: Homebrew/homebrew-core#64256
% brew audit onedrive --strict --new-formula
onedrive:
  * Dependency 'sqlite' is provided by macOS; please replace 'depends_on' with 'uses_from_macos'.
Error: 1 problem in 1 formula detected

Thanks for the idea, Seeker! I'm not sure about this, though. I like that there's a consistent way to specify dependencies on both platforms.
While functionally uses_from_macos == depends_on when on Linux, we've gone all in on uses_from_macos for formulae and invested a lot in the tooling. It significantly reduces the eventual diff when merging the two repos if we can have a consistent way of specifying macOS dependencies, even if not operating on macOS formulae.
And keeping it the current way is IMO less confusing than adding a special case for Linux that may confuse people reading the formulae later (because people copy-paste things in formulae all the time).


MQTT not working

My device:
#define LILYGO_T_CALL_A7670_V1_0

Step 1:  Copy all folders in lib folder to Arduino library folder (e.g. C:\Users\my\Documents\Arduino\libraries)
And NOT update libs when I start the Arduino IDE.
Step 2:  Run the example MqttsBuiltlnAuth
The configure:
// MQTT details
const char *broker = "mqtt-s1.gowest.cloud";
const uint16_t broker_port = 1883;
const char *broker_username = "dev";
const char *broker_password = "*********";
const char *clien_id = "mqttx_47919b19";

const char *subscribe_topic = "GsmMqttTest/subscribe";
const char *publish_topic = "GsmMqttTest/publish";

// Current connection index, range 0~1
const uint8_t mqtt_client_id = 0;
uint32_t check_connect_millis = 0;

Step 3: Check the connection with MQTTX successfully

Step 4: Run MqttsBuiltlnAuth example
The logs:
12:29:07.016 -> Start Sketch
12:29:09.958 -> Start modem...
12:29:09.958 -> AT
12:29:10.259 -> AT
12:29:10.516 -> AT
12:29:10.816 -> AT
12:29:11.116 -> .
...
12:29:25.964 -> PB DONE
12:29:25.964 -> AT+IPADDR

12:29:25.964 -> +IPADDR: <IP_ADDRESS>
12:29:25.964 ->
12:29:25.964 -> OK
12:29:25.964 -> Network IP:<IP_ADDRESS>
12:29:25.964 -> AT+CMQTTSTART
12:29:25.964 -> AT+CMQTTSTART

12:29:25.964 -> OK
12:29:25.964 ->
12:29:25.964 -> +CMQTTSTART: 0
12:29:26.980 -> Connecting to mqtt-s1.gowest.cloudAT+CSSLCFG="authmode",0,0
12:29:26.980 -> AT+CSSLCFG="authmode",0,0

12:29:26.980 -> OK
12:29:26.980 -> AT+CMQTTREL=0
12:29:26.980 -> AT+CMQTTREL=0

12:29:26.980 -> +CMQTTREL: 0,20
12:29:26.980 ->
12:29:26.980 -> ERROR
12:29:26.980 -> AT+CMQTTACCQ=0,"mqttx_47919b19",1
12:29:27.015 -> AT+CMQTTACCQ=0,"mqttx_47919b19",1

12:29:27.015 -> OK
12:29:27.015 -> AT+CMQTTCFG="version",0,4
12:29:27.015 -> AT+CMQTTCFG="version",0,4

12:29:27.015 -> OK
12:29:27.015 -> AT+CMQTTCONNECT=0,"tcp://mqtt-s1.gowest.cloud:1883",60,1,"dev","pass"
12:29:27.015 -> AT+CMQTTCONNECT=0,"tcp://mqtt-s1.gowest.cloud:1883",60,1,"dev","pass"

12:29:28.183 -> +CMQTTCONNECT: 0,32
12:29:28.183 ->
12:29:28.183 -> ERROR
12:29:28.183 -> Failed!

I have not yet successfully run any of the MQTT related examples in this repository.
I use other brokers also have similar results.

Even the simplest MQTT example has a compile error. Did you not click the compile button before git push?
MqttClient
The logs:
C:\Users\my\Desktop\GPS\LilyGO-T-A76XX\examples\MqttClient\MqttClient.ino:105:15: error: cannot declare variable 'client' to be of abstract type 'TinyGsmA7670::GsmClientA7670'
  105 | TinyGsmClient client(modem);
      |               ^~~~~~
In file included from c:\Users\my\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:66,
                 from C:\Users\my\Desktop\GPS\LilyGO-T-A76XX\examples\MqttClient\MqttClient.ino:80:
c:\Users\my\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientA7670.h:91:9: note:   because the following virtual functions are pure within 'TinyGsmA7670::GsmClientA7670':
   91 |   class GsmClientA7670 : public GsmClient {
      |         ^~~~~~~~~~~~~~
In file included from C:\Users\my\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Arduino.h:197,
                 from C:\Users\my\AppData\Local\Temp\arduino\sketches\0450E4EFCA56BC5BF72AF8FB6E33D0DD\sketch\MqttClient.ino.cpp:1:
C:\Users\my\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:29:15: note:     'virtual int Client::connect(IPAddress, uint16_t, int32_t)'
   29 |   virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0;
      |               ^~~~~~~
C:\Users\my\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:31:15: note:     'virtual int Client::connect(const char*, uint16_t, int32_t)'
   31 |   virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0;
      |               ^~~~~~~

exit status 1

Compilation error: cannot declare variable 'client' to be of abstract type 'TinyGsmA7670::GsmClientA7670'

When you find an error, check your configuration and the reason for the error instead of complaining about it here with a questioning attitude.

All examples have passed the compilation check of platformio. Please report your usage environment

I use the Ardruino IDE 2.3.2 and I flow guide in the Readme.

MqttsBuiltlnAuth is running normally here. I can only use the test.mosquitto.org public server for testing. I can't help with other private servers. Please debug it yourself based on the returned error reason.

I am getting +CMQTTCONNECT: 0,15 on a simple no SSL test using just AT commands. DNS works, AT+CPING works, AT+CIPOPEN opens the socket. The command sequence is exactly as in the MQTT(S) Appnote. What can be missing or wrong?

MqttsBuiltlnAuth is running normally here. I can only use the test.mosquitto.org public server for testing. I can't help with other private servers. Please debug it yourself based on the returned error reason.

The problem is still not solved, I used a public server as you suggested:
// MQTT details
const char *broker = "test.mosquitto.org";
const uint16_t broker_port = 1883;
const char *broker_username = "";
const char *broker_password = "";
const char *clien_id = "mqttx_7bc3c8dc";

const char *subscribe_topic = "GsmMqttTest/subscribe";
const char *publish_topic = "GsmMqttTest/publish";

The logs:
14:35:32.003 -> ets Jul 29 2019 12:21:46
14:35:32.003 ->
14:35:32.003 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
14:35:32.003 -> configsip: 0, SPIWP:0xee
14:35:32.003 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
14:35:32.003 -> mode:DIO, clock div:1
14:35:32.003 -> load:0x3fff0030,len:4916
14:35:32.003 -> load:0x40078000,len:16436
14:35:32.068 -> load:0x40080400,len:4
14:35:32.068 -> ho 8 tail 4 room 4
14:35:32.068 -> load:0x40080404,len:3524
14:35:32.068 -> entry 0x400805b8
14:35:32.623 -> Start Sketch
14:35:35.486 -> Start modem...
14:35:35.486 -> AT
14:35:35.809 -> AT
14:35:36.126 -> AT
14:35:36.385 -> AT
14:35:36.685 -> .
14:35:36.685 -> AT
14:35:36.985 -> AT
14:35:37.285 -> AT
14:35:37.585 -> AT
14:35:37.885 -> .
14:35:37.885 -> AT
14:35:52.118 -> PB DONE
14:35:52.118 -> AT+IPADDR
14:35:52.118 -> +IPADDR: <IP_ADDRESS>
14:35:52.118 ->
14:35:52.118 -> OK
14:35:52.118 -> Network IP:<IP_ADDRESS>
14:35:52.118 -> AT+CMQTTSTART
14:35:52.118 -> AT+CMQTTSTART
14:35:52.118 -> OK
14:35:52.118 ->
14:35:52.118 -> +CMQTTSTART: 0
14:35:53.097 -> Connecting to test.mosquitto.orgAT+CSSLCFG="authmode",0,0
14:35:53.131 -> AT+CSSLCFG="authmode",0,0
14:35:53.131 -> OK
14:35:53.131 -> AT+CMQTTREL=0
14:35:53.131 -> AT+CMQTTREL=0
14:35:53.131 -> +CMQTTREL: 0,20
14:35:53.131 ->
14:35:53.131 -> ERROR
14:35:53.131 -> AT+CMQTTACCQ=0,"mqttx_7bc3c8dc",1
14:35:53.131 -> AT+CMQTTACCQ=0,"mqttx_7bc3c8dc",1
14:35:53.131 -> OK
14:35:53.131 -> AT+CMQTTCFG="version",0,4
14:35:53.131 -> AT+CMQTTCFG="version",0,4
14:35:53.131 -> OK
14:35:53.131 -> AT+CMQTTCONNECT=0,"tcp://test.mosquitto.org:1883",60,1,"",""
14:35:53.166 -> AT+CMQTTCONNECT=0,"tcp://test.mosquitto.org:1883",60,1,"",""
14:35:53.166 -> ERROR
14:35:53.166 -> Failed!

It was a matter of using SSL or not.
Problem solved.
Thanks @lewisxhe


Update ion-rating.component.ts

the size property is declared as boolean.. whereas the selector shows it as string.

Please merge it.

@Saqib92 The Author has to merge it.

Yes, I was saying her to merge it :D


batchnorm is applied after relu in the tensorflow implementation of ResNet18

In the tensorflow version of ResNet18, the residual block is implemented as follows
layer = conv(inp, 'resconv1'+nom, size=3, strides=first_stride, out_channels=out_num_filters, alpha=alpha, padding='SAME')
layer = batch_norm(layer, 'batch_norm_resconv1'+nom, phase=phase)
layer = conv(layer, 'resconv2'+nom, size=3, strides=[1, 1, 1, 1], out_channels=out_num_filters, apply_relu=False,alpha=alpha, padding='SAME')
layer = batch_norm(layer, 'batch_norm_resconv2'+nom, phase=phase)

(in utils_resnet.py:110-113)
where the first batch_norm layer is appended to the first conv layer(which is apply_relu=True by default).
Can you tell me why we apply batch_norm after relu here, which contradicts the orinary practice that applies batch_norm before relu?

In the tensorflow version of ResNet18, the residual block is implemented as follows
layer = conv(inp, 'resconv1'+nom, size=3, strides=first_stride, out_channels=out_num_filters, alpha=alpha, padding='SAME')
layer = batch_norm(layer, 'batch_norm_resconv1'+nom, phase=phase)
layer = conv(layer, 'resconv2'+nom, size=3, strides=[1, 1, 1, 1], out_channels=out_num_filters, apply_relu=False,alpha=alpha, padding='SAME')
layer = batch_norm(layer, 'batch_norm_resconv2'+nom, phase=phase)

(in utils_resnet.py:110-113)
where the first batch_norm layer is appended to the first conv layer(which is apply_relu=True by default).
Can you tell me why we apply batch_norm after relu here, which contradicts the orinary practice that applies batch_norm before relu?

@lzx325  I don't know the author's reasoning behind the placement for batch-norm. Even though the original paper which proposed the batch-norm layer suggested to use it before the activation, in practice I have seen it being used after as well. The community seems to be divided on the "correct" placement.


txn: round up last_update_duration_ms

What is changed and how it works?

Issue Number: ref #14497
What's Changed:

Round up last_update_duration_ms, so that duration in (0, 1ms] won't be treated as 0.

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests
Release note
None

/test

/test


Character '!' not allowed in .config.env

Details
I was debugging this for hours and couldn't understand why ansible:ping is saying missing sudo password and it turns out it was because my node password contained character '!'. Not sure why that happens, but just wanted to report this "bug" so other people don't waste their time.

Thanks for mentioning this, a good takeaway is it's always good to only use alphanumerics in passwords.


gh-1527 - added test for adding duplicate elements with the same time…

…stamp

Codecov Report

Merging #1563 into develop will decrease coverage by 1.29%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #1563      +/-   ##
=============================================
- Coverage      67.54%   66.24%    -1.3%
- Complexity       519     1486     +967
=============================================
  Files            232      554     +322
  Lines           6356    18567   +12211
  Branches         697     2282    +1585
=============================================
+ Hits            4293    12300    +8007
- Misses          1760     5314    +3554
- Partials         303      953     +650

Impacted Files
Coverage Δ
Complexity Δ

...n/java/uk/gov/gchq/gaffer/cache/impl/JcsCache.java

...ialisation/json/RoaringBitmapJsonDeserialiser.java

...on/handler/job/initialiser/AvroJobInitialiser.java

...operty/impl/datasketches/theta/UnionConverter.java

...ffer/hbasestore/serialisation/LazyElementCell.java

...encies/binaryoperator/StringsSketchAggregator.java

...ap/function/aggregate/RoaringBitmapAggregator.java

...eration/handler/SplitStoreFromIterableHandler.java

.../serialisation/ReservoirLongsSketchSerialiser.java

...quencies/binaryoperator/LongsSketchAggregator.java

... and 586 more

Continue to review full report at Codecov.

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

Closing whilst bug #1565 is fixed.


progress_pipe: json parse error

On Raspberry Pi 4 I get this error for every progress output segment:
pipe 3 (progress_pipe) json parse error: TypeError: data.toString(...).trim(...).replace(...).replace(...).replaceAll is not a function
This did not occur on my Windows 10 portable...

Seems replaceAll on strings is only supported starting from NodeJS version 15, and I was running NodeJs version 14.17


feat: separate DAL for Prover and Main server

Todo:

update docs

Will be tackled as a sequence of smaller PRs


whenever possible don't re-implement the same method with different a…

…rgs, but simply implement once in a func with the most args, then call from that one func from the other!

In case of RunEnvmanAdd and the piped version: both did exactly the same, but in a different way - which should not affect the outcome at all. So we don't need both - we need the more flexible version.


Time of treatments

Taking inspiration from the treatment over time plots Ed made in a TreatmentPatterns study earlier this year I figured I would take a look into what it would take to add that as a feature.
Plots
Originally treatments were represented as a bar plot counting the amount of treatments, per (combination)treatment. These bar plots would be split out per time ranges, in this case 0-30, 0-90, 0-365.

I personally think a cleaner way to communicate the durations would be to represent them as boxplots.

We could even do this for all the pathways found

Code
The export() function would need to export some form of duration of the treatments. For data safety, we could pre-compute the quantiles per treatment and per pathway, and export that. Which could then be plotted out in a new function.
For the ShinyApp this would become its own module.
@AniekMarkus @rossdwilliams @edward-burn @daniprietoalhambra please let me know what you think.

@mvankessel-EMC I like your boxplots and agree with you; I find this visualisation clearer than multiple barplots.
Another visualisation to consider (giving even more insight) is the 'survival analysis' plots I suggested earlier in our meetings/ issue #7. See example figure below (x-axis would be durationEra and y-axis would be % of treatments still ongoing at a given time).

@AniekMarkus So something like this:

This would also be pretty easy to export and share, as we can just export the survfit model itself.
Call: survfit(formula = Surv(time = durationEra) ~ path, data = x)

                                             n events median 0.95LCL 0.95UCL
path=Acetaminophen                         206    206   37.0      35      60
path=Acetaminophen-Amoxicillin+Clavulanate   6      6   75.0      35      NA
path=Acetaminophen-Aspirin                  14     14   90.0      35      NA
path=Acetaminophen+Amoxicillin               2      2   38.0      35      NA
path=Amoxicillin                             2      2   35.0      NA      NA
path=Amoxicillin+Clavulanate                48     48   84.0      70      98
path=Amoxicillin+Clavulanate-Acetaminophen   1      1   89.0      NA      NA
path=Amoxicillin+Clavulanate-Aspirin         2      2  140.0      91      NA
path=Aspirin                               211    211   60.0      35      60
path=Aspirin-Acetaminophen                  12     12   37.0      30      NA
path=Aspirin-Amoxicillin+Clavulanate         6      6   80.5      70      NA
path=Clavulanate                             3      3   98.0      49      NA

Can I suggest you discuss this with @catalamarti as I am aware he is incorporating treatment discontinuation/persistence using CohortSurvival in DrugUtilisation?

Yes, this has been implemented in DrugUtilisation (summariseTreatment and treatmentDiscontinuation)
https://dpa-pde-oxford.shinyapps.io/DrugUtilisation/
https://darwin-eu-dev.github.io/DrugUtilisation/reference/index.html

It would be good to discuss next week what research questions are best answered by treatment patterns vs drug utilisation.
@mvankessel-EMC I like what you started with which is designed to describe duration eras, as that is the output of treatment patterns by design.
I think survival analysis (to talk about adherence to treatment) fits more naturally in drug utilisation (as treatment patterns is not really a study of failure processes, in the sense that people have multiple eras, go from single therapy to combination which would not normally be considered an outcome event, and so on)

Agreed, maybe we can discuss this on thursday and come up wiht a set of guidelines to go along with the standard catalogue about what should be done using which package


Add cancellation token check for loop

Fix issue: https://github.com/microsoft/Power-Fx/issues/1354

✅ No public API change.

✅ No public API change.


Dont throw an exception in FastHttpUser if a request is made with stream=True and the connection fails

Fixes #2640

@cyberw Thanks for that super quick fix. I was just about to open a PR also addressing this. Your code change does look more sound, though. I've another fix which I've already validated locally, see #2643


[Task] State table query API

Task
State table query API

Task Title
State table query API

User Story
#677

Description
Add methods to query the state table by object type and object identifier.

Business Need (the why):
Simplify the task of adding new read endpoints to the API

Applications or Systems impacted

Dependencies

closing this based on conversation with Nadia


Overlapping dat repositories and data deduplication

I have few hundred datasets of the following structure (which I cannot change):

full_dataset/
train_dataset/
test_dataset/
extra_files

Currently I am creating for dat repositories for each dataset: for each of full, train, test directories, and for the main directory as a whole. The reason is that we would need that users can fetch just a particular view of the dataset. Or that they can fetch everything.
There is some overlap in data between those views. They in fact have same raw files, only that train and test datasets are a split from full datasets. So raw files are in fact stored twice.
From my understanding each dat repository is separate from each other. In this case it means that data is duplicated and that there is no deduplication done for an user who wants to download everything and separate directories as well.
So my question is: could be there some way to define bundles of dat repositories which would work together and have the same underlaying swarm so that both sharing and deduplication would be done together? In our case we have same users for all our datasets, so this would work great.

This is actually being discussed right now at https://github.com/mafintosh/hyperdrive/issues/203#issuecomment-367436804


[Task]: roll out onboarding revamp to 100%

SubTasks
details: https://theappsmith.slack.com/archives/C05P3ME9MBR/p1704966944539579

Flag has been rolled out to 100% users on both release and production environment.


Pass Etag back in core CompleteMultipartUpload call

core.go needs to be enhanced to pass back ETag in CompleteMultipartUpload call.
This is required by server to pass back correct ETag in the response for a CompleteMultipartOperation specifically for the case of an SSE-C encrypted object at the gateway backend (i.e pass through encryption).
HEAD calls require SSE-C headers whereas the CompleteMultipartUpload operation does not. This change passes back ETag sent in the CompleteMultipartUpload result , so that the server can set correct ETag in the response.
related to : https://github.com/minio/minio/issues/6323

ping @donatello


setup.zsh fails, parse error: condition expected: 0

I'm in ZSH in Manjaro Linux, and I'm new to ROS. I tried sourcing setup.sh but it results in an error:
❯ source /opt/ros/melodic/setup.sh
/opt/ros/melodic/setup.sh:pwd:77: too many arguments
/opt/ros/melodic/setup.sh:83: parse error: condition expected: 0

Same thing if I source the zsh file:
❯ source /opt/ros/melodic/setup.zsh
/opt/ros/melodic/setup.sh:pwd:77: too many arguments
/opt/ros/melodic/setup.sh:83: parse error: condition expected: 0

Any ideas? What info can I provide to get better help?

I can't reproduce the problem.
What version of the catkin package are you using? If it is not the latest one from Melodic (currently 0.7.26) please try it again with that version.

What info can I provide to get better help?

You try modifying the shell script to e.g. not delete the temporary script which is invoked in line 77 and instead prints its paths and investigate its content to see what is going wrong for you.


added AttributedTextView

Project URL
https://github.com/evermeer/AttributedTextView
Description
Easiest way to create an attributed UITextView with support for multiple links.
Why it should be included to awesome-ios (optional)
an other new high quality library from me. See other libraries at https://github.com/evermeer
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Error

:no_entry_sign:
Found 3 link issues

Link issues by awesome_bot

Line
Status
Link

414
301
http://developer.couchbase.com/mobile/ redirects tohttps://developer.couchbase.com/mobile/

2419
503
https://www.amazon.com/Core-Data-iOS-Data-Driven-Applications/dp/0321670426

2420
503
https://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022

  Generated by :no_entry_sign: danger

Hey @evermeer, really cool lib 👍
Thanks for contributing!


glslangValidator: Error: -Os not available; optimizer not linked (use -h for usage)

Hi,
Just the -Os option doesn't work for shader compilation, I have the following error:
glslangValidator: Error: -Os not available; optimizer not linked (use -h for usage)
but it is totally fine with spirv-opt:
$ spirv-opt -Os
error: -o required

If spirv-opt is the optimizer, how both should be linked, then? Aren't they two different binaries?
I am on debian 11

Ok the issue is definitely not solved and is maybe related to the SDK tarball.
An alternative solution (in case some people are in that situation):
I don't get the mentioned error by using /bin/glslangValidator (from apt-get install) and it works fine with vulkan sdk binaries until version 1.2.189 (seems to not work properly after that)
If you use version 1.2.19x or above, do apt-get install glsl-tools and modify the PATH="$VULKAN_SDK/bin:$PATH" to PATH="$PATH:VULKAN_SDK/bin" in your .bashrc or setup-env.sh (provided in the tarball), at least it worked for me

spirv-opt can be used as a library as well as a standalone binary. glslangValidator can be compiled with spirv-opt as a library, but and option has to be turned on a build time.  See https://github.com/KhronosGroup/glslang/blob/c43008e82993b460944533656a1d4a4467aa17af/CMakeLists.txt#L310.
Other options are to use glslc to compile the shaders, which is in the SDK.
I'll close this issue because it is more of a glslangValidator documentation issue. Open an issue here.The help says that -Os is available when it is not. Also, lunarg maintains glslang and build the SDK. You could also ask them why they do not enable optimizations in the SDK.
FYI @greg-lunarg.


"linux runtime spec devices: error gathering device information while adding custom device "/dev/bus/usb": no such file or directory"

RPi4B 4GB, 32GB SD card, RaspBee, latest HA as of 3.feb/20.
HASSIO crashed. Restored from snapshot, did not succeed to rebuild HA.
Reinstalled HASSIO from image, via hass.io image on said 32gb card.
Same error message both after restore of  my setup, and after clean install of hassio.
Only change is adding the two lines to +config.txt`for the RaspBee.
Error:
20-02-03 07:52:18 INFO (MainThread) [hassio.addons] Create Home Assistant add-on data folder /data/addons/data/core_deconz
20-02-03 07:52:18 INFO (SyncWorker_11) [hassio.docker.interface] Pull image homeassistant/armhf-addon-deconz tag 5.1.
20-02-03 07:52:55 INFO (MainThread) [hassio.addons] Add-on 'core_deconz' successfully installed
20-02-03 07:53:00 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
20-02-03 07:53:00 INFO (MainThread) [hassio.ingress] Update Ingress as panel for core_deconz
20-02-03 07:54:30 ERROR (SyncWorker_7) [hassio.docker] Can't start addon_core_deconz: 500 Server Error: Internal Server Error ("linux runtime spec devices: error gathering device information while adding custom device "/dev/bus/usb": no such file or directory")

"device": "/dev/ttyAMA0".
vnc password set.
no other addons.
Really need to get the Home Assistant going again. Low WAF, at the moment! >:-]

/dev/bus/usb sounds like a defect board. Do you setup on same hardware?


Docker image docker.vectorized.io/vectorized/redpanda not public anymore

Hello there!
We're using Redpanda in our CI (GitHub Actions workflow) using what's in this repo, like it's mentioned in this post, like so:
steps:
  - name: start Redpanda
          uses<EMAIL_ADDRESS>          with:
          version: "latest"

And starting today, we are getting this error when that step of the workflow is executed:
> Run<EMAIL_ADDRESS>Unable to find image 'docker.vectorized.io/vectorized/redpanda:latest' locally
docker: Error response from daemon: unauthorized: authentication required.
See 'docker run --help'.

The same happens when performing a local docker pull of the image docker pull docker.vectorized.io/vectorized/redpanda:latest
We replaced the job mentioned earlier (start Redpanda) with this service:
services:
  redpanda:
    image: vectorized/redpanda:latest
    ports:
      - 8081:8081
      - 9092:9092

And this works fine since it's using the image from the Docker Hub.
Just wanted to report that using<EMAIL_ADDRESS>is completely broken and unusable now. Is there a reason behind making the image private? Or this was a mistake?
Thanks.

cc @fernandes @emaxerrno

FYI @fernandes @RodolfoSilva I just performed a local docker pull docker.vectorized.io/vectorized/redpanda:latest and it's fixed now. But I guess that keeping it pointed to Docker Hub is wiser?

I think we can receive the container registry as a parameter, and use by default the vectorized container registry. Maybe something like this:
steps:
  - name: start Redpanda
    uses<EMAIL_ADDRESS>    with:
      image: "docker.vectorized.io/vectorized/redpanda"
      version: "latest"

@emaxerrno any thought on using redpanda or docker hub one?


Section 'artifactOf' of 'File' is not completely supported by RDF parsers/writers

RDF parsers do not handle 'projectURI' field of 'artifactOf' section.
https://github.com/spdx/tools-python/blob/301d72f6ae57c832c1da7f6402fa49b192de6810/spdx/parsers/rdf.py#L588-L596

RDF writers do not handle anything in 'artifactOf' section. That section is not being written in RDF files. A way to try it is running python tv_to_rdf.py ../data/SPDXTagExample.tag result.rdf

Output file attached:
result.rdf.txt

Thanks for your issue!
The field 'artifactOf' is deprecated since version 1.8.4. Is this issue still of interest?

artifactOf is deprecated since a long time, but for some reason it was never removed. I'd say we close this for now, and potentially reopen if someone convinces us the tools should still be able to handle artifactOf.
@goneall Do you know why the property was never dropped, and whether anyone still uses it?

Do you know why the property was never dropped, and whether anyone still uses it?

@nicoweidner I don't know why it hasn't been dropped, but it was deprecated on release 2.0 several years ago, so I doubt you will find very many documents still using this property.  It is probably safe to drop it.

Closing this for the time being. If anyone really needs support for artifactOf, they will have to raise a new issue (or reopen this one)


Clarify what "mapped" count refers to

The tally of mapped properties against number of properties is not an intuitive measure of progress, e.g. in:

explain why is numerator is greater than denominator, and note that 64/64 would not mean all mapping is done.

A distraction rather than a major problem, priority 2.
Suggested solution

[ ] on the spine, the progress measure should be the number of spine properties with an alignment (including no match) compared to the total number of spine properties
[ ] on the schema being mapped, the progress should be the number of schema properties that have been matched to spine properties compared to the total number of schema properties.
[ ] No double counting when a property is mapped to two in the spine or vice versa.
[ ] include "what does this mean" links to explain these, and explain that as properties can be mapped twice, 10/10 mapped may not mean job done.
[ ] include in documantation


Review Cookie Cutter approach for template-rgb-plot

Task to do
Review cookie cutter approach in https://github.com/AgPipeline/template-rgb-plot/pull/14
Reason
Determine:

[ ] Is the implementation solid, or are the changes that must to be made
[ ] Does this approach mandate cookie cutter use, or is it still flexible enough for non-cookie cutter use
[ ] Would the approach taken to implement cookie cutters be useable for other templates

Result
Determination if the approach taken is solid and/or improvements must be made. If it's OK, then merge the PR. If changes need to be made, create issues to address the changes & revisit the implementation

determination was made by Chris and Julian that complexity of adding Cookie Cutter as a dependency isn't warranted. Github repo templates will provide required functionality, and will be easier for others to understand and use.


feat(protocol): take snapshot at fixed interval for quicker syncing

We'd like to make sure L2 nodes can quickly sync-up with peers using a snapshot. The idea is simple, the client software will take a snapshot of the L2 world state whenever blockId % snapshotInterval is zero. New L2 node can query the lastSnapshotId then download the snapshot from the peer and this is very likely to succeed.
@davidtaikocha We need to discuss if node software can actually force the snapshot at a given interval.

Seems like this is something for the node to decide depending on what the node is trying to be (just validation, archival, etc....). If you connect to the node I guess you'll find out what that node in question supports? Not sure how a smart contract can help with trying to standardize it. I think most Ethereum node implementations already support fast syncing that doesn't require executing all previous transactions, so we can just re-use that one?

I think most Ethereum node implementations already support fast syncing that doesn't require executing all previous transactions, so we can just re-use that one?

Yes. But currently all nodes just take quite random snapshots. I will be great if all L2 nodes can take snapshots at given heights so fetch snapshots from peers is more likely to succeed.
The protocol smart contract can never force a node to do anything, so it may not make sense to merge this PR at all (didn't plan to), but maybe the protocol can provide good enough hints so all honest nodes will honor such a snapshot scheduling for new nodes to quickly catch up.


docker is intendent to run app not OS

binaries are static:
% ldd neo-go-linux-amd64
	not a dynamic executable

alpine and bash are not required, please remove them from docker image

This image does have a shell script used for entry point and some features of this script are used by other components.


Slow operations are prohibited on EDT

Description of changes made
Slow operations are prohibited on EDT error message during the test samples collecting.
Other notes
Closes #219

[x] I have checked that I am merging into correct branch

@Vladislav0Art I agree that it is not logical that we can block this thread in this way. But I use this thread to avoid the Slow operations are prohibited on EDT error exclusively. And moreover, I have no need to parallel this piece of code, because I need to use the classesToTest array immediately

@Vladislav0Art I agree that it is not logical that we can block this thread in this way. But I use this thread to avoid the Slow operations are prohibited on EDT error exclusively. And moreover, I have no need to parallel this piece of code, because I need to use the classesToTest array immediately

The problem is that if the function call takes a while to be executed, a user cannot do literally anything on the UI: no scrolling of the opened file, no file opening, no settings view, nothing. I understand that it fixes the problem with EDT, but the price we pay is somewhat comparable to the problem itself. Unfortunately, at first glance, I see no easy solution that would fix both issues and would not require a lot of refactoring of the execution flow. I think it is a good idea to ask for help from someone from the IntelliJ team; they may suggest something.
If we integrate the UI blocking mechanisms into the codebase, it must be refactored in the future. We just postpone the refactoring, which will make it harder as the codebase grows.
@pderakhshanfar, @NikolaiSviridov, we need your thoughts on that.

I feel like it's better to push the current "cosmetic" solution (only solves EDT error without solving the UI freeze) and create a new high-priority task for rewriting logic itself


Add information about sozo arguments priorities

Sozo is being reworked to have these priorities:

CLI arguments always takes precedence.
Then the environment variables.
Finally, anything found inside the scarb manifest.

We may add a section on that on the book once this PR is merged https://github.com/dojoengine/dojo/pull/1405 to bring better understanding for the user to the possibilities around configurations.

@ponderingdemocritus @glihm Hello 👋 I would like to take care of this, could you assign It to me? thanks!

If you have any question please let's know, and don't hesitate to test that sozo behaves as the documentation stipulates. 👍


9388 otio for editorial fw

Revisited the structure to allow to read a timeline directly from a Cut with its id.
Moved a couple of utils only used by the reader to the reader.
Added properties to access some members.

Codecov Report

Merging #27 (2851775) into master (f33c406) will increase coverage by 0.01%.
The diff coverage is 94.33%.

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   88.11%   88.12%   +0.01%
==========================================
  Files          22       23       +1
  Lines        3861     3873      +12
==========================================
+ Hits         3402     3413      +11
- Misses        459      460       +1

Flag
Coverage Δ

unittests
88.12% <94.33%> (+0.01%)
:arrow_up:

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

Impacted Files
Coverage Δ

sg_otio/utils.py
93.06% <ø> (-2.20%)
:arrow_down:

sg_otio/track_diff.py
90.06% <50.00%> (-0.26%)
:arrow_down:

sg_otio/sg_cut_reader.py
94.66% <94.66%> (ø)

sg_otio/adapters/shotgrid.py
89.18% <100.00%> (-0.82%)
:arrow_down:

tests/test_utils.py
97.69% <100.00%> (+0.01%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Unable to start

Hello
I keep getting this error when opening the site:
RuntimeException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/app/Http/Middleware/UseDatabase.php:114 Stack trace: #0 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #1 /var/www/html/app/Http/Middleware/BadBotBlocker.php(212): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #2 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #3 /var/www/html/app/Http/Middleware/RegisterFactories.php(72): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #4 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterFactories->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #5 /var/www/html/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #6 /var/www/html/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #7 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #8 /var/www/html/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #9 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #10 /var/www/html/app/Http/Middleware/BaseUrl.php(77): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #11 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #12 /var/www/html/app/Http/Middleware/ReadConfigIni.php(69): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #13 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #14 /var/www/html/app/Http/Middleware/SecurityHeaders.php(47): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #15 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #16 /var/www/html/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #17 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #18 /var/www/html/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #19 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) #20 /var/www/html/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest)) #21 /var/www/html/index.php(57): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest)) #22 {main}
Using the following docker-compose.yml
version: '3.0'

services:
  webtrees:
    image: dtjs48jkt/webtrees
    restart: always
    ports:
      - 88:80
    environment:
      - DISABLE_SSL=TRUE
      - PORT=80
    volumes:
      - /webtrees/data:/var/www/html/data
      - /webtrees/media:/var/www/html/media

Shouldn't I see the DB setup config page?

Hi.
I did try to start a fresh container and it was possible to successfully run the assistant. Even I have another instance successfully running with a PostgrSQL DB.
I assume your mounted volumes contain something that is not compatible with webtrees 2.x. With webtrees 2.x there us no need to mount a separate media volume any more (see #22). Are you still running webtrees 1.17.x? And your configuration data, plugin and so on in /webtrees/data is still based on webtrees 1.17.x? In this case you could use the tag dtjs48jkt/webtrees:v1.7.17 to make use of the old webtrees version.
Please have a look in your data folder and check if the content is compatible with webtrees 2.0.x

It did some further analysis. It seems that your database settings might not be correct. Are you trying to connect to your DB (MySQL?) with localhost as hostname. Maybe try using <IP_ADDRESS>.
SQLSTATE[HY000] [2002] No such file or directory means php cannot find the mysql.default_socket file. But this socket will not be available within this docker image, since the container does not contain a database.

Hey
Played around with it some more and got solved. Don't know what exactly went wrong, but as you mentioned, I think it was something to do with the mounted folders.
After changing them, it worked. (They were created by an earliere try.)


serve bundles as static files

I had to serve the bundles folder to make the csharp example work.

@SpiralOSS can you please take a look?

It should. I was building the .js myself and forgot to point back at the repo after testing.


Aarch32 linker updates

Contains several changes which are needed by the pull request:
https://github.com/zephyrproject-rtos/zephyr/pull/47130
@parthitce suggested to put these changes in a separate RR.

with 5eb34b2, do we still need e6b5270?

Hi stephanosio, thanks for reviewing.
Yes, the commit is still needed.
After https://github.com/zephyrproject-rtos/zephyr/pull/47130 on xmc4xxx
__rodata_region_start will be in the vma (address space 0x08xxxxxx), while __rom_region_start will be in the lma (address space 0x0cxxxxxx). The argument to MPU_ALIGN() will therefore not make sense.


partition method seems to not work correctly, comparing to scala

Hello, I spotted a weird behaviour of partition method.
I include code examples from Java and Scala which I used to make the comparison.
Java
public class PartitionVavr {
    private static final Map<String, Eat> fruitsBeingEaten = new HashMap<>();

    public static void main(String[] args) {

        final Set<String> fruitsToEat = HashSet.of("apple", "banana");

        final var partition = fruitsToEat.partition(PartitionVavr::biteAndCheck);

        System.out.println(partition);
    }

    private static boolean biteAndCheck(String name) {
        final var eat = fruitsBeingEaten.getOrDefault(name, Eat.prepare(name)).bite();
        fruitsBeingEaten.put(name, eat);
        return eat.isEaten();
    }

    private static class Eat {
        final int bitesLimit = 2;
        final int bites;
        final String name;

        public static Eat prepare(String name) {
            return new Eat(0, name);
        }

        private Eat(int bites, String name) {
            this.bites = bites;
            this.name = name;
        }

        public Eat bite() {
            return new Eat(bites + 1, name);
        }

        public boolean isEaten() {
            return bites >= bitesLimit;
        }
    }
}

Scala
object PartitionScala extends App {
  private val fruitsBeingEaten: mutable.Map[String, Eat] = mutable.Map()

  private val fruitsToEat = Set("apple", "banana")

  private val partition = fruitsToEat.partition(name => biteAndCheck(name))

  println(partition)

  private def biteAndCheck(name: String): Boolean = {
    val eat = fruitsBeingEaten.getOrElse(name, Eat.prepare(name)).bite
    fruitsBeingEaten += (name -> eat)
    eat.isEaten
  }

  private object Eat {
    def prepare(name: String) = new Eat(0, name)
  }

  private class Eat private(val bites: Int, val name: String) {
    final private val bitesLimit = 2

    def bite = new Eat(bites + 1, name)

    def isEaten: Boolean = bites >= bitesLimit
  }
}

The Java output is:
(HashSet(), HashSet())
The Scala output is:
(Set(),Set(apple, banana))
I think the difference is because vavr traverses the collection and checks the predicate twice while scala does it once.
Is this a bug or expected behaviour?

@kefasb, thanks for reporting and @danieldietrich, thanks for you hints. I sent PR #2577 to fix the problem.

Thanks I will take a look!

By default, Scala's Iterable type, the base of all collections, provides a default implementation of partition that lazily iterates all elements twice. It is based on views:
def partition(p: A => Boolean): (C, C) = {
  val first = new View.Filter(this, p, false)
  val second = new View.Filter(this, p, true)
  (fromSpecific(first), fromSpecific(second))
}

Scala has so-called strict and lazy collections. The docs state that strict collections provide their own implementation in order to ensure that elements are iterated only twice:
*  The default implementation provided here needs to traverse the collection twice.
*  Strict collections have an overridden version of `partition` in `StrictOptimizedIterableOps`,
*  which requires only a single traversal.

Because Scala's Stream is already lazy, the default implementation of partition is overridden, based of filter and filterNot:
override def partition(p: A => Boolean): (Stream[A], Stream[A]) = (filter(p(_)), filterNot(p(_)))

As pointed out by you, we already do the same because we align to Scala:
@Override
public final Tuple2<Stream<T>, Stream<T>> partition(Predicate<? super T> predicate) {
    Objects.requireNonNull(predicate, "predicate is null");
    return Tuple.of(filter(predicate), filter(predicate.negate()));
}

Scala's Iterator is also special, because its element can be iterated only once. Therefore it lazily duplicates the elements and then filters both resulting iterators, very much like we saw in Stream:
def partition(p: A => Boolean): (Iterator[A], Iterator[A]) = {
   val (a, b) = duplicate
  (a filter p, b filterNot p)
}

Scala's Iterator.duplicate method isn't trivial.

I think it is sufficient to take the following actions:

Align our Iterators partition method to Scala's partition strategy
Double-check other Scala implementations than Iterator and Stream for strictness in the way that they override the default Iterable.partition implementation. We should align to that behavior. Scala's LazyList is currently out of scope because we don't have it, yet.

@danieldietrich , I'm a bit lost and I need your help on this issue. So far, I created some tests to compare the behavior between Scala 2.13.2 and VAVR 1.0.0-SNAPSHOT, but I don't know which direction to continue.
On Scala side, I created a Git repo and added a test Issue2559Spec.scala to demonstrate the behavior of different Scala classes in Scala 2.13.2. I never used Scala myself and maybe more test-cases need to be added. From that file, we can see that:

All classes with trait StrictOptimizedIterableOps, predicate is used exactly N times for partitioning the values, where N is the size of the values.
Array, Steam, LazyList are not strict. In Array, predicate is used N times as well. In Stream and LazyList, predicate is used N * 2 times. Array uses N times because the partition method is overridden by ArrayOps.scala (source code).

On VAVR side, I added a test in my PR as commit https://github.com/vavr-io/vavr/pull/2577/commits/42117bf323ca26376972ead5a3e243414c701280 to demonstrate the behavior of partition() on different final classes. Predicate is used exactly N times for all the classes, except Stream, where it is used N * 2 times. So the behavior is similar to Scala.
Several things confuse me here:

How to test the laziness? The laziness of partition() in particular. In my PR, I changed the implementation of Iterator, but none of the tests failed, I don't know what is expected.
You said "Align our Iterators partition method to Scala's partition strategy", then where should I put the optimized, one-iteration implementation of partition? Should we create StrictOptimizedIterableOps? This is not trivial...

Personally I would like to use the one-iteration implementation as the default partition strategy. And override this strategy in Stream (and LazyList later on). It means keeping my PR https://github.com/vavr-io/vavr/pull/2577 as it is. But the biggest concerns I have are the laziness and the partition-strategy alignment as stated above.

Thank you for your analysis! That's interesting. We do it as follows:

How to test the laziness?

We could create an infinite Stream of 0, 1, 0, 1, 0, 1, ... and partition it. If partition isn't lazy, the test would run forever, which is ok. We attribute that test with @Test(timeout=5000) or something similar.

Should we create StrictOptimizedIterableOps?

No, I see currently no use-case. We already have Traversable.isLazy(), which means: lazy := !strict. So we need no special interface in order to reflect the strictness property.

where should I put the optimized, one-iteration implementation of partition?

Sorry, I misunderstood the Scala implementation. There, the duplicate method does not solve the single iteration problem. It just ensures that the underlying Iterator can be iterated twice. We need that too, it will solve one task of #1945.
1st step: Add duplicate to Iterator
public interface Iterator<T> {
    @Override
    default Tuple2<Iterator<T>, Iterator<T>> partition(Predicate<? super T> predicate) {
        Objects.requireNonNull(predicate, "predicate is null");
        if (!hasNext()) {
            return Tuple.of(empty(), empty());
        } else {
            final Tuple<Iterator<T>, Iterator<T>> dup = duplicate();
            return Tuple.of(dup._1.filter(p), dup._2.filterNot(p));
        }
    }
}

interface IteratorModule {
    static <T> Tuple2<Iterator<T>, Iterator<T>> duplicate(Iterator<T> iter) {
        // see https://github.com/scala/scala/blob/v2.13.2/src/library/scala/collection/Iterator.scala#L839-L884
    }
}

Hint: We keep the existing Stream.partition() method.
2nd step: All non-lazy collections (= all other than Stream and Iterator) need to have a strict partition method.
Many already have it, for example Array:
    @Override
    public Tuple2<Array<T>, Array<T>> partition(Predicate<? super T> predicate) {
        Objects.requireNonNull(predicate, "predicate is null");
        final java.util.List<T> left = new ArrayList<>(), right = new ArrayList<>();
        for (T t : this) {
            (predicate.test(t) ? left : right).add(t);
        }
        return Tuple.of(ofAll(left), ofAll(right));
    }

I suggest to move that functionality to Collections.java:
// caution, this is from the top of my head
class Collections {
    static <C> Tuple2<C, C> partition(Iterable<T> iterable, Predicate<? super T> predicate, Function<Iterable<T>, C> ofAll) {
        Objects.requireNonNull(predicate, "predicate is null");
        final java.util.List<T> left = new ArrayList<>(), right = new ArrayList<>();
        for (T t : this) {
            (predicate.test(t) ? left : right).add(t);
        }
        return Tuple.of(ofAll(left), ofAll(right));
    }
}

Then Array and all other strict collections would be implemented like this:
class Array<T> {
    @Override
    public Tuple2<Array<T>, Array<T>> partition(Predicate<? super T> predicate) {
        return Collections.partition(this, Array::ofAll, predicate);
    }
}

I think this should also work for Maps:
class HashMap<K, V> {
    @Override
    public Tuple2<HashMap<K, V>, HashMap<K, V>> partition(Predicate<? super Tuple2<K, V>> predicate) {
        return Collections.partition(this, predicate, this::createFromEntries);
    }
}

If so, the partition method in the utility class Maps.java can be deleted.
Please don't hesitate to ask on any further questions!
Thanks for your help!
- Daniel

Thanks for your hints 👀 , Daniel! I will continue the work on it and ping you when I have progress. I'm not sure I can finish it today. If not, we may need to wait until next weekend.

@mincong-h thanks! you don't need to rush


Formatting is not working for bal files under sub dirs in module

Description:
Formatting functionality is not working for .bal files which located under sub dirs in a module as document couldn't parse the URI to a path.

Fixed with https://github.com/ballerina-platform/ballerina-lang/pull/18134


[WIP] Installer: Fix icon for taskbar [INSTALLER]

Fails locally with strange
An error occurred while performing the operation: Cannot create link "C:\Users\aaa\Desktop\TRIK Studio1.lnk": The operation completed successfully.
Well... completed successfully, but no link is created.
If link is manually changed to run wscript, it works fine and TS icon is used after pin to taskbar.

А у нас есть ещё проблема с иконкой студии? Если все иконки нормальные, надо просто закрыть этот ПР.


[Event request] Codeunit 5750 "Whse.-Create Source Document"

Hello, need a new event publisher "OnAfterUpdateReceiptLine" to function UpdateReceiptLine in codeunit 5750
local procedure UpdateReceiptLine(var WhseReceiptLine: Record "Warehouse Receipt Line"; WhseReceiptHeader: Record "Warehouse Receipt Header")
var
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeUpdateReceiptLine(WhseReceiptLine, WhseReceiptHeader, IsHandled);
    if IsHandled then
        exit;

    with WhseReceiptLine do begin
        if WhseReceiptHeader."Zone Code" <> '' then
            Validate("Zone Code", WhseReceiptHeader."Zone Code");
        if WhseReceiptHeader."Bin Code" <> '' then
            Validate("Bin Code", WhseReceiptHeader."Bin Code");
        if WhseReceiptHeader."Cross-Dock Zone Code" <> '' then
            Validate("Cross-Dock Zone Code", WhseReceiptHeader."Cross-Dock Zone Code");
        if WhseReceiptHeader."Cross-Dock Bin Code" <> '' then
            Validate("Cross-Dock Bin Code", WhseReceiptHeader."Cross-Dock Bin Code");
    end;
      OnAfterUpdateReceiptLine(WhseReceiptLine, WhseReceiptHeader, IsHandled);      <-----------------
end;

[IntegrationEvent(false, false)]
local procedure OnAfterUpdateReceiptLine(var WarehouseReceiptLine: Record "Warehouse Receipt Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var IsHandled: Boolean)
begin
end;

Title corrected. Adding of IsHandled in new event is not needed.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release.
We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues.
If you have follow-up questions or requests, please create a new issue where you reference this one.


feat(NX-3252): Release CBN

This PR resolves NX-3252
Description

Release Conversation Buy Now
See this thread for reference
QA Test Case(s)

Test Case
Feature
Environment
Acceptance Criteria
Setup Instructions/Link

PR Checklist

[ ] I tested my changes on iOS / Android.
[ ] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.
[ ] I added an app state migration.
[ ] I hid my changes behind a feature flag.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

Again, thank you so much, @gkartalis !! 🙌 ❤

The tests are now failing on the Artwork page, something related to linkable partners (?)
Not clear to me exactly what's happening there, I'll ask for @artsy/negotiate-devs help tomorrow


Create a better Error Activity bootstrap.

Currently the default Error Activity enables you to see the error that caused the crash.
What more can we do:

Extend functionality to send the error (directly to an e-mail or to create an error report)
Extend functionality to contain the device's logcat information.
Upgrade Error Activity UI.
Upgrade Error Activity external configuration.

depends on https://github.com/NativeScript/android-runtime/issues/283


Make code examples in /samples/language folder more user-friendly

Is your feature request related to a problem? Please describe.
Currently the code samples in the /samples/language folder don't produce any output; they evaluate some expressions, but the results are only listed in the comments, not printed for the user to see. This makes any mistakes (such as https://github.com/microsoft/qsharp/pull/1467) hard to spot, and the experience of using them not intuitive.
Describe the solution you'd like
We can add some Message commands to print the results of expression evaluation instead of assigning them to variables in most cases (unless, of course, assigning a value to a variable is the point of the example). This will let user compare the results with what they should be easily.

Taking Array.qs for example:

It mentions syntax elements that are not illustrated in the sample, [0, size = 10] syntax and Length function, we should add them as well.
We should print the results of variable assignments: after let intArray : Int[] = [1, 2, 3, 4] we should add Message($"{intArray}");, after each let slice = ... - Message($"{slice}");, and so on.

Working on this


Quota exceeded for a single item

It takes around 150-200 solves with scrambles, probably ~500 without for a single session to exceed the item size limit of 8 KB. One solution is to treat all data as strings and simply break up the strings after 8000 or so characters and place them in items labeled "cts-sess1-1,2,3...". "cts-sess#-0" would contain an object with any metadata for the session. For now it would only contain a single key "parts" so the extension knows how many string parts make up that session. When loading the data the extension will get all parts and then concatenate them into a single string before passing it to the saveLocalStorage function. This solutions would alleviate the 8 KB limit per item but would still be subject to the 100 KB limit of all data. At that point there's nothing the extension can do to by pass that.

Fixed in b9d89915272e9352f45bfaaa1cec8972fa62c5bc
stringified sessions are broken up into smaller chuncks that don't exceed the individual limit. The chunks are then stitched back together on restore.


Give Centril (T-lang) rust-lang/rust try rights

Pretty please? 😇

Hm, I think as a team member you should have r+ rights, want to add yourself there instead?

@Mark-Simulacrum I don't feel comfortable having such rights just yet; but when I have more experience with compiler internals I'll ask for r+ rights :)

@Mark-Simulacrum travis passed :)

Ping for deploying @Mark-Simulacrum @alexcrichton @aidanhs

This has been deployed, I believe.


Dev Conference

I was wondering if it would be a good idea to add a dedicated category or sub-category called Tech/dev Conferences🤔
What do you think?

I think that's a great idea @JuanPabloDiaz!
Do you have a list of some that we could get started with?
Happy to assist you with adding the new category, if you need help.

@marcelscruz,
How can I run the project and view the project in the browser on localhost?

How can I create the category? just add it to the categories.json file? Do I need to do anything in the resources.json as well?

Was this the project in it's early days? https://dev-resources.vercel.app/

@marcelscruz, How can I run the project and view the project in the browser on localhost?

If you're asking about the website, that part is not open-source.
For this repository though you can run the scripts listed on package.json locally to see the changes in place, but there's actually no need to do it before opening a PR, because the scripts will be automatically run on every merge.

How can I create the category? just add it to the categories.json file? Do I need to do anything in the resources.json as well?

To add a new category go to /types/category.ts and add it there.
The files inside /db are auto-generated, so please don't modify them.

Was this the project in it's early days? https://dev-resources.vercel.app/
I was looking at previous commits to see I could figure out what do I need to do to create the new category

Not really, this isn't mine, but nice catch!

If you're asking about the website, that part is not open-source.

Thank you for the clarification. I was hoping to explore the website further, but I understand that it’s not open-source. I appreciate your response!

To add a new category go to /types/category.ts and add it there.

Then, it should be good.

Merged!


A few ideas to increase the usability of the generator

Hello!
First of all, I would like to thank the authors for the generator. It is really very fast and convenient to use.
In the process of using the generator, I encountered some difficulties in using and lack of flexibility of the generator, in connection with which I would like to offer for your consideration a few ideas to increase the usability of the generator.
Usage:

I am using a generator in a monorepositeory project, so I have separated the functionality of creating favicons into a separate package. Thus, I tried to achieve that in each project of the monorepository, a single svg file was used to create favicons, without copying the original svg file in each project. Here I came across the restriction buildOptions.root, which is simultaneously responsible for the directory of the source file and for the directory of generated files. Most likely, for such and other similar cases, it is necessary to specify separate paths to the files of the original image and the generated files. You can also apply some heuristics to preserve the current behavior

Injection instructions: instructions for inserting code into the html file of links to splash screens files for Apple, including files with the name of the generated images, are available out of the box. It would be great if instructions for inserting favicons, apple-touch-icon etc were also available. At the same time, so that these instructions remain relevant (with the development of browsers). You can choose any source to compile such instructions, but here is an example of a voluminous article on this issue: https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7.
The article discusses various additional assets that may be relevant to someone in rare cases (for example MS tiles).
Therefore, it would be great if the users of the generator could independently edit or supplement the rules compiled by the author of the generator
There may also be situations when these rules are needed in the form of the HtmlTagDescriptor type from Vite. That is, at the moment it is necessary to parse the generated html for apple splash screens

Preparing assets: an svg file can be used as a favicon. Now this situation is not being handled in any way. Processing such a case may be useful here: creating additional instructions for injecting an svg file (<link> tag), optimizing it with svgo, etc.

The files are generated as is. Next, the user must independently add the required html tags with links to these files. When updating the generated files, the user needs to come up with other names for the received files (so that the browser downloads new files, and does not use the old ones from the cache). All this adds an additional routine, despite the fact that in Vite it's all automated

API: Currently, it is possible to generate files only in the specified destination folder. It would be great to have more flexibility if the API returned binary data for further transmission to Vite, returned the injection rules described earlier in the requested format (html or `HtmlTagDescriptor') and etc. For example:

this.emitFile({
    type: 'asset',
    name: 'filename.ext',
    source: /* binary data here */,
})

Thanks for studying this issue and I hope that the above suggestions may be useful to you. It's great that there is such an ecosystem around Vite to work with PWA!

Funny enough I've read the favicon nightmare article this very week, which inspired me to open this other issue about the screenshots.
But regarding yours, I totally agree with the paths management and the svg favicon, I do it manually for the html, but I might be missing something.

We're open to contributions, any PR welcome, mantaining the api will be hard, since you don't know where it is being used:

there are frameworks where you don't have html page, for example Nuxt
every framework can use its own approach to register pwa stuff in the html head: for example, in Nuxt you can use useHead, on VitePress you must use a build head hook, on SvelteKit you should use a layout...

How many times do you change your favicon, theme-color or icons in your application?

Funny enough I've read the favicon nightmare article this very week, which inspired me to open this other https://github.com/vite-pwa/assets-generator/issues/23#issue-2011103025 about the screenshots.

Interesting... but same problem described in my previous comment: integrate this using a metaframework will be hard, for example, this repo https://github.com/kevinmarrec/nuxt-pwa-module is a pwa module for Nuxt and can build the screenshots IIRC

Next week I'll try to update the API...

@PurpleTape I'll release a minor and add some new features requested here:

:x: 1)
:x: 2)
:x: 3)
:x: 4)
:heavy_check_mark: 5) initial version

Hello! I am glad that you responded to my ideas!
In this post, I would like to outline a few ideas on how the API could be developed in such a way that it is as independent of the end use as possible.
I also want to identify the terms used further in the text and what I mean:

Source – the source file (for example, SVG) from which the assets of the web application are automatically generated according to the specified algorithms
Generation instructions – a set of rules compiled in accordance with existing standards/research
Web application assets – files generated from the source according to the specified generation instructions
Asset markup is how the generated assets of a web application are embedded in the web application itself. That is, it can be a PWA manifest file, html code for inserting a favicon into a document, etc.

Indeed, due to the fact that it is not known how the API will be used in the end (and with which frameworks), it is difficult to prepare a universal solution that would be equally suitable for everyone.
To simplify, we can try to divide the process of creating assets for a web application into stages, and then try to determine how each stage can be made as universal as possible (accessible for any API usage scenario). Thus, the following can be distinguished:

Getting instructions for generating assets for a web application
Generating images from the source according to the generation instructions
Preparing asset markup
Integration of web application assets and asset markup into a web application

And now I will try to consider each of these points in more detail
1. Getting instructions for generating assets for a web application
The API can offer preset instructions on the size of assets that need to be generated from the source file.
Here it is necessary to remember that there is a possibility of publishing a web application in two modes:

How simple is a website on the Internet – only favicons are needed for this mode
And as a Progressive Web App – here you need

favicons (for desktop),
apple splash screens and apple-touch-icon (for apple, apple-touch-icon are also used in other places, if possible, for example in windows tiles: https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7 ),
web app manifest – images for manifest files

Therefore, in this case, the API can offer categorized instructions for generating:

Favicons – in the article (https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7 ) they offer to generate only one variant of the raster favicon – 48x48, most likely no more is needed
PWA

apple-touch-icon 180x180,

apple splash screens (according to https://developer.apple.com/design/human-interface-guidelines/layout#Specifications It is also necessary to take into account that additional options with 1/3 and 2/3 of the screen may be needed on the iPad). In addition, it is also possible to install apple splash screens for the night theme

web app manifest - 192x192 and 512x512, etc.

Thus, the API can provide these instructions in the form of an object to transfer to the image generator, and users themselves will be able to choose which objects to transfer to the generator
2. Generating images from the source according to the generation instructions
Images can be generated in different ways:

Fill the background with the specified color, the source image is in the center of the image, the margins from the edges are adjustable
The same thing, just fill the background with a customizable gradient (multiple colors)
There are also solutions (https://github.com/elegantapp/pwa-asset-generator), where an html file is accepted as the source. During the generation process, screenshots of this file are taken in the browser, so users can independently and easily control the design of the generated images

3. Preparing asset markup
Now we need to prepare the html markup in order to add it to the web application later. To preserve variability, it can provide markup data in several ways:

HTML code
An object with a description of html nodes describing the tag name, tag attributes and their values

4. Integration of web application assets and asset markup into a web application
Since the final results of the API can be used in different ways (as described here: https://github.com/vite-pwa/assets-generator/issues/20#issuecomment-1826830297), then instead of some single integration option, the API can provide adapters for various use cases, while allowing API users to independently create adapters that they could perform according to their personal requirements. Among the popular adapters that can be provided out of the box, the following can be noted: vite + vue, nuxt, etc.
Thus, the high flexibility of use and versatility of the application of this API can be maintained.
Thank you for your interest in this topic!

@PurpleTape about your points and linked PR:
1.1 right now only low-level api available, we can iterate later adding the feature: we need to provide CLI and API support
1.2 included in the CLI
2. we can expose more options
2.1 included in API and CLI
2.2 missing feature
2.3 we should add a minimal parser like ultrahtml
3. included in API and CLI: since we don't have the PWA web manifest, title, description and theme color missing
3.1 and 3.2 the api provides html and object representation for all html head icons, missing object representation in CLI (makes sense)
4. requires integration, if I have time tmr and once released v0.1.0 I'll do some internal tests in vite-plugin-pwa exposing a new option via a new Vite plugin for assets

I'm writing vite-plugin-pwa poc, the api needs a full refactor. I'll send a PR to the pwa plugin repo, we need to apply your steps.

@PurpleTape Can you open a new issue about tiles?


DonkeyKong

Your checklist for this pull request
Author name
Pratyush Verma

About your game
The game I have created is the original DonkeyKong game from 1981. It has some major differences from the original considering the limitations of the Sprig Console, but I tried to capture the same feel of the game. In the game you look like you have come out of a pipe (absolutely iconic Mario reference) and you have to avoid barrels which move very fast back and forth. You climb ladders until you get to the top level where the princess is captured. When you save her you win! :D

The controls for the game are similar to the arcade version of Donkey Kong, A and D to move left and right, W to climb ladders and to go down them. K to jump and I for starting and restarting, which is said in the game.

Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Image (If an image is used)

[x] The image is in the /games/img directory.
[x] The name of the image matches the name of your file.

Thanks for your PR!

No you are absolutely fine! I understand the game is hard, and it is; it took me 10+ tries to beat it the first time. Of course, that was intentional. The original Donkey Kong, for me at least, is pretty difficult as well, so I tried my best to acheive the same level of difficulty. If you would really like me to decrease the difficulty, all I would have to do is decrease the barrel speed (changing 1 constant lol).

But if it is okay with you, I would like it to be accepted. Thanks!

If you would like to see the win screen of my game, here is a screencast of me beating it.
*The video is sped up slightly because of the file size limits on these pull request comments. Thanks!
https://github.com/user-attachments/assets/0ee45ac1-8178-4d95-8635-3bb865e9c740

One more thing....I am a student going to a verified high school. What are the next steps I need to take to get a Sprig? Thanks again!


is there a way to make template but not render it

Is there a way in plates php where I can make a template in a controller but render it using another controller. Say I have two controllers. HeaderController and a SearchController.
SearchController
class Search extends \system\core\BaseController
{
    public function Index()
    {
        $data['text_search'] = 'Search..';

        // This $this->template->render down below is what I don't want now
        // okay asign the data but do not display the template yet
        echo $this->template->render('common/search', $data);
    }
}

The dummy SearchController should assign $data to the template search.tpl but not render/display the template.
This is where I will be calling the above controller
HeaderController
class HeaderController extends \system\core\BaseController
{
    public function Index()
    {
        // Some codes

        // Call / load the SearchController and asign it to $data['search']
        $data['search'] =  $this->load->controller('common/SearchController');

        // and then pass all $data and render/display it.
        echo $this->template->render('common/header', $data);
    }
}

Is there a way of doing it?

Yes, you can add global data or assign it to certain templates - http://platesphp.com/templates/data/

class Search extends \system\core\BaseController
{
    public function Index()
    {
        $data['text_search'] = 'Search..';

        // This $this->template->render down below is what I don't want now
        // okay asign the data but do not display the template yet
        echo $this->template->render('common/search', $data);
    }
}

Can you change the controller up top to show me how do it?

i replaced
$this->template->render('common/search', $data);

with
$this->template->make('common/search', $data);

and it shows blank page.

@manishbathla please refer to the Preassigned and shared data section of the documentation page i showed you earlier.

I tried this as well
$this->template->addData($data, 'common/search');

Anyone helping?


feat: support format cjs mjs cts mts file

AT

Codecov Report
Patch and project coverage have no change.

Comparison is base (cb8b4fd) 77.91% compared to head (19ee0bb) 77.91%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1061   +/-   ##
=======================================
  Coverage   77.91%   77.91%
=======================================
  Files          32       32
  Lines         987      987
  Branches      198      198
=======================================
  Hits          769      769
  Misses        215      215
  Partials        3        3

Impacted Files
Coverage Δ

packages/generate-project/src/ejsRenderDir.ts
96.29% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Use Google Calendar (iCal) as program source

TWiT has an iCal for their live events: https://www.google.com/calendar/ical/mg877fp19824mj30g497frm74o%40group.calendar.google.com/public/basic.ics
It shouldn't be too difficult to detect which file type is being used and parse the data differently in each case.

The first step is to make sure I can parse example sources.

Now we need to write a system that converts iCal to XMLTV

Hi,
I have made a really straight forward, quick and dirty iCal to xmltv converter in Python see https://github.com/Fleker/CumulusTV/pull/291
Hope this can help,
Paul.

Hi,
I have made a really straight forward, quick and dirty iCal to xmltv converter in Python see https://github.com/Fleker/CumulusTV/pull/291
Hope this can help,
Paul.


Adding support for persistent workers and logger fix

What is the goal of this PR?
This PR adds enhanced configurability and stability to data loading and logging features within pyrelational's DataManager and LightningModelManager classes. These changes aim to improve both the efficiency of data handling and logging management by adding support for persistent workers in data loading and establishing the ability to pass loggers to the pytorch lightning trainer. This update ensures that data loading can better utilize resources over prolonged tasks and provides support for pytorch lightning loggers.
What are the changes implemented in this PR?
Persistent Workers in DataManager:
The DataManager class now includes an option to keep workers persistent across data loading iterations, controlled by a new loader_persistent_workers parameter. By setting loader_persistent_workers: bool = False by default, backwards compatibility is maintained, but it can be enabled to reduce initialization overhead in multi-epoch training, benefiting users handling larger datasets or needing faster data loader setup times.
In the LightningModelManager class, default logging has been configured using PyTorch Lightning's CSVLogger. If no logger is specified in trainer_config, a CSVLogger is automatically set up to log to config["checkpoints_dir"] consistent with pytorch lightning.
Lastly, the abstract model manager now uses a context manager to load JSON data.

Thanks for this! Adding @paulmorio for review! We'll review asap 🙂


k8s: Add --disable-endpoint-crd to disable use of the CEP CRD

[ upstream commit 324ee3887b1de9c17c656b912a514cb5d67d71af ]
Synchronization of the CEP CRD can have a large performance impact. Provide an
option to disable the feature if the CRD is not required.
MERGE CONFLICT:
It seems that cmdref was not run for a couple of backports so it includes
cmdref documentation changes for previous commits.

This change is

test-me-please

test-docs-please

It seems that cmdref was not run for a couple of backports so it includes
cmdref documentation changes for previous commits.

I thought something in the CI would check for this

test-me-please

test-docs-please

test-missed-k8s


saved model load method support for android

I am trying load a saved model on android with java api.
Session session = SavedModelBundle.load(modelDir, "serve").session();
Its works on PC. But on android i  got this error message.
E/tensorflow: CameraActivity: Exception!
java.lang.UnsupportedOperationException: Loading a SavedModel is not supported in Android. File a bug at https://github.com/tensorflow/tensorflow/issues if this feature is important to you
at org.tensorflow.SavedModelBundle.load(Native Method)
my reference model for training procedure is  tf estimator for iris data.
https://www.tensorflow.org/get_started/estimator

@asimshankar do you have any comment on this feature.

@nnkalita I'm facing the same issues,do you have some suggest?

@SilentTTxo  You can freeze  the model with  TensorFlow freeze_graph tool  using --input_saved_model_dir  and then load the freezed graph on TensorFlow android  interference code.

It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

Yeah, saved models aren't yet supported on Android mostly because the libraries they depend on are excluded from the Android binary to reduce binary size / dependencies.
This is a reasonable feature to work through. Though, the workaround suggested and/or use of TensorFlow Lite should be considered as well.
Marking this as "Contributions Welcome" in case anyone wants to take this one (it will mostly involve BUILD file management to keep the dependencies to a minimum).


API requests hang indefinitely

Hi,
I'm using google datastore API and if I run my application from my local computer then the application connects to the datastore, but if I deploy the application it cannot connect to the datastore.
Environment details

OS: Debian GNU/Linux 8
Node.js version: 6.9.4
npm version: shipped with Node.js 6.9.4
@google-cloud/datastore:  0.6.1

Steps to reproduce
I ran the following example on AppEngine instance:
const Datastore = require('@google-cloud/datastore');

const datastore = Datastore({
      projectId: '<$projectId>',
      keyFilename: './gcloud-keyfile.json'
});

const query = datastore.createQuery('UserModel')
  .filter('user_name', '=', 'gosho');

datastore.runQuery(query)
  .then((results) => {
    const users = results[0];
    users.forEach((user) => console.log(user));
  });

My question is, why cannot my deployed application connect to the datastore?
Thanks!

+1

Please try upgrading to the latest version of google-cloud or @google-cloud/datastore.

Hi stephenplusplus,
I use the latest version of @google-cloud/datastore - 0.6.1

+1 again

Sorry, I forgot to publish to npm. Please try<EMAIL_ADDRESS>

I'm getting the same issue, and I've tried 0.7.0 too.  Any idea how to resolve this, or the last working version?

To everybody: Do you get an error? How are you authenticating?

Hi,
Hope this helps
var datastore = require('@google-cloud/datastore')({ projectId:  });
var item = datastore.key(['', '']);
datastore.get(item, function(err, result)
{
...
It doesn't return with an err or result.  I don't authenticate at any point.  As this is server code I wasn't expecting to need to?

I'm running this through App Engine.  I tried to remove the projectId as advised if running inside Google Cloud.  https://www.npmjs.com/package/@google-cloud/datastore
However, then it did call the callback with the error "Error: Sorry, we cannot connect to Google Cloud Services without a project ID. You may specify one with an environment variable named "GCLOUD_PROJECT". See https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/authentication for a detailed guide on creating an authenticated connectio..."
I then added the GCLOUD_PROJECT variable and I have the same problem as before.

@jmdobry I'm spinning my wheels a bit trying to get an app running on GAE-- are you able to try deploying a sample Datastore app to GAE to see if you can reproduce these errors?
Error 1: GCLOUD_PROJECT not being set by GAE
Error 2: Hanging after an API request as described above (a runQuery or a get)

To debug I need from y'all:

Your app.yaml file
Your output of running gcloud --version

Note when running on Google App Engine flexible environment you should instantiate the Cloud Datastore client library without passing in projectId or keyFilename (with the exception of some advanced use cases).

Also need to know if you have a yarn.lock file or not.

Output of gcloud --version:
Google Cloud SDK 141.0.0
app-engine-python 1.9.49
app-engine-python-extras 1.9.49
beta 2016.01.12
bq 2.0.24
bq-nix 2.0.24
core 2017.01.20
core-nix 2016.11.07
gcloud
gsutil 4.22
gsutil-nix 4.18

I can't see a yarn.lock in my project root, if that's where it should be.
I'll add the GCLOUD_PROJECT back into the app.yaml and remove projectId from the .js call
My app.yaml is:
[START app_yaml]
runtime: nodejs
vm: true
threadsafe: true
automatic_scaling:
min_num_instances: 1
max_num_instances: 5
cool_down_period_sec: 360 # up checks every 300 seconds
cpu_utilization:
target_utilization: 0.5
handlers:

url: /.*
script: IGNORED
secure: always

skip_files:

^(node_modules)
^(logs)

env_variables:
GCLOUD_TRACE_DISABLE: true
GCLOUD_PROJECT: project-name
[END app_yaml]

Note that vm: true has been deprecated, and you should update to env: flex. threadsafe: true has no meaning for Node.js apps. The GCLOUD_PROJECT environment variable is set automatically for apps deployed with env: flex, so after updating to env: flex you can remove GCLOUD_PROJECT from your app.yaml file.
But none of that has much to do with the hanging Datastore API calls. I've been able to reproduce the problem using three different versions of @google-cloud/datastore and I've notified the App Engine team.

I'm getting the same problem, can't connect.

I'm getting the same errors (i.e. no errors and hung calls.)
app.yaml:
runtime: nodejs
env: flex
manual_scaling:
instances: 1
health_check:
enable_health_check: False
gcloud --version
Google Cloud SDK 140.0.0
beta 2016.01.12
bq 2.0.24
bq-win 2.0.24
bundled-python 2.7.10
core 2017.01.17
core-win 2016.11.07
gcloud
gsutil 4.22
gsutil-win 4.20
windows-ssh-tools 2016.05.13

I think I was seeing this issues (#1954). It seemed to resolve itself, or at least whatever was failing and causing an error (which never was surfaced ) resolved itself by updating to Node v6.9.5. I noticed that @goshoo said he was running on v6.9.4

Can anyone comment on whether this issue also appears on Google Compute Engine and/or Google Container Engine?

My node server (that exhibits the same issue) is running in the Flexible Environment (GCE based).

I've tried updating to Node 6.9.5 but it made no difference unfortunately

I ran into this issue, was using app engine (flex+nodejs). Problem seems to be the google nodejs docker file, I created my own custom docker (https://nodejs.org/en/docs/guides/nodejs-docker-webapp/) and my app was able to connect to datastore from app engine.

We suspect that this is due to a recent change in<EMAIL_ADDRESS>not dealing properly with the lack of /etc/services. We are working on an updated version of the Node.js docker image with a work-around that should be available in a few hours.
Could folks try deploying again (in a few hours) with the latest runtime image to see if the problem gets resolved?

Would be happy to. I have a number of great test cases.
On Tue, 7 Feb 2017, 04:38 Ali Ijaz Sheikh<EMAIL_ADDRESS>wrote:

We suspect that this is due to a recent change in<EMAIL_ADDRESS>not dealing
properly with the lack of /etc/services. We are working on an updated
version of the Node.js docker image with a work-around
https://github.com/GoogleCloudPlatform/nodejs-docker/pull/79 that
should be available in a few hours.
Could folks try deploying again (in a few hours) with the latest runtime
image to see if the problem gets resolved?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1955#issuecomment-277883891,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADdMei00Do1RsRXqlikcpfprMQqpRiRIks5rZ9kHgaJpZM4L1L4X
.

I added the "netbase" patch to my package.json as a workaround to regain access to datastore from express server. The workaround was suggested here (https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1946)

<EMAIL_ADDRESS>has been published, and it should not have this failure.

Just released google-cloud version 0.46.2 -- anyone willing to test, please update and let us know how it went.

It's working on my end!

Thanks everyone

I'd be happy to test, but I only import the datastore specifically so would need to wait until you released 0.7.1 of @google-cloud/datastore

The sub-modules will automatically include the fix if you un- and re-install them.

Thanks - looks to work now :)

Great, thanks for the patience and the help, everyone! If anyone is still having issues after a hard upgrade, let us know.