Support Ruby v2.3 and above

We'll need to do something similar to what we did for Gala to get off our aead (incompatible) dependency.

There's no aead dependency here? 😄

Ha! I’m getting everything all mixed up here... But there is some dependency that’s failing in 2.3 and above. Lemme check...

The only thing I noticed failing with OpenSSL gem 2.0.7 or later was this line:
https://github.com/spreedly/r2d2/blob/aa45a5c38b82c4aa99430b5ce2f6cbc358a2ca5d/lib/r2d2/payment_token.rb#L60
with AEAD not supported by this cipher error. https://github.com/ruby/openssl/commit/bb10767b0570d44f240632a7399c882764a48649 introduced this.

I fixed that in #13 already btw :)


aws: not found

Once I'm in the shell, I get the following error no matter what command I run:
/bin/sh: 1: aws: not found

I'm trying to run this on Ubuntu under Windows 10' WSL.
As an aside-but might be related--when trying to run aws-shell, I had to change the first line from:
#!/usr/bin/python
to:
#!/usr/bin/python3

I get the same issue, this started happening after I installed aws cli. I am assuming there was some sort of conflict that caused the issue. This was not resolved by uninstalling aws cli. If I pip install aws shell again it fixes the issue but the issue always comes back, I think when I open a new shell. Also using WSL


Attempt to turn on build-commands tests

Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

@haircommander Looks like we need a newer version of conmon in our CI/CD?
[+0000s] Error: could not find a working conmon binary (configured options: [/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon]): invalid argument

looks like the man page change failed the command checker

We definitely need a newer Conmon anyways, I need to pick up v2.0.16 or higher to make the remote exec tests work.

I would guess the image running the gating test doesn't have conmon in the expected spots


Add working progress

Show cracking progression feedback

Thanks for the contribution!

I've fixed some typos, added prettier errors ✨, shortened the word count by using cut instead of regexes and moved the checks to the beginning of the script instead of at the end the file.
You can use stegcracker --update to get the latest version on your machine.
Thanks again for the contribution!

Nice! I wrote a similar script to brute force paswd protected zip (https://github.com/FreddieOliveira/bruteZip). This pull request is actually part of the buteZip script. I'm working on adding an estimated finish time feedback too. I'll test it on my script and as soon as I verify it works, I'll make another pull request


Great job

Hello,
I am just about to test this work and I think it is great this exist.
Could you please tell if this project converts Abaqus ODB file to VTK in the background? I am wondering if it could be used in Paraview directly.
Thank you
Slaw

Hi Slaw,
If you need to convert ODB file to VTK, I would recommend another repo
This project basically stems from ODB2VTK and it is not as robust as ODB2VTK.

Hi Slaw,
I am closing this issue now. If you have other questions regarding converting ODB to VTK. You can ask them in that repo.
Thanks,
Yang


authentication: how to ensure the deployer-spawned session remains authenticated

Currently we pass an access token to the deployed container, which will expire. On solution could be to simply send a refresh token instead of the access token, but this has security implications. We need to solve this problem either by having a flow with authentication via the python client or some other means.

this will be addressed by the token service


fisherABM: Dispersal Function

Function to "disperse" fisher that either: 1. aren't able to improve their habitat quality, or, 2. are mature kits (1 year old) in a home range occupied by its mother.

Part 1:
SELECT individual_id WHERE pixelid IS NOT NULL AND AGE = 1 (i.e., individual is a mature kit in a home range occupied by its mother) OR habitat targets not met in (i.e., need to call this function from the update home range function)

Calculate distance from the pixelid in the agents table to all denning habitat pixels (query “pixels” table) within the max_female_dispersal_dist

SELECT the closest l(with a minimum distance to other denning pixels to ensure clustering of pixels ), unoccupied (i.e., no individual_id assigned to the pixelid in the female territories table), denning habitat pixel, up to where count (denning pixels) > (hr_size * den_target) AND where distance to the pixelid in the agents table is greater than the female_search_radius, AND assign the individual_id and pixelid to the female territories table AND randomly assign one of the denning habitat pixels to pixelid;
need to identify a cluster of pixels, not a single pixel

Calculate distance from the pixelid in the agents table to all denning habitat pixels (query “pixels” table) within the female_search_radius pixels in the “search” table

SELECT the closest, unoccupied (i.e., no individual_id assigned to the pixelid in the female territories table), denning habitat pixels, up to where count (denning pixels) > (hr_size * den_target) AND assign the individual_id and pixelid to the female territories table

Calculate distance from the pixelid in the agents table to all resting habitat pixels (query “pixels” table) within the female_search_radius pixels in the “search” table

SELECT the closest, unoccupied, resting habitat pixels, up to where count (resting pixels) > (hr_size * rest_target) AND assign the individual_id and pixelid to the female territories table

Calculate distance from the pixelid in the agents table to all movement habitat pixels (query “pixels” table) within the female_search_radius pixels in the “search” table

SELECT the closest, unoccupied, movement habitat pixels, up to where count (movement pixels) > (hr_size * move_target) AND assign the indivdual_id and pixelid to the female territories table

Part 2:
IF (hr_size * den_target) < count (SELECT pixelid’s that belong to the individual_id in the “territories” table and are denning habitat in the “pixels” table)
OR
IF (hr_size * rest_target) < count (SELECT pixelid’s that belong to the individual_id in the “territories” table and are resting habitat in the “pixels” table)
OR
IF (hr_size * move_target) < count (SELECT pixelid’s that belong to the individual_id in the “territories” table and are movement habitat in the “pixels” table)
THEN
Remove rows with individual_id from the “territories” and “agents” table
ELSE
Calculate d2_score by querying the ‘pixels’ table using the pixelids for the individual_id in the female territories table
Parameters:

max_female_dispersal_dist: maximum distance, in metres, a female will disperse to find a territory
female_search_radius: maximum search radius, in metres, that a female fisher could ‘search’ to establish a territory (year?, summer/fall?; or use max diameter of a territory?)
den_target : desired proportion of a home range that is denning habitat
rest_target : desired proportion of a home range that is resting habitat
move_target : desired proportion of a home range that is movement habitat

determine 'spread' area: max area a kit can search to find a territory and min. distance form natal den.
use movement, other habitat to guide where search area occurs
use FETA's to re-sample habitat in the spread area and have kit target the 'best'?
do we need to include barriers as no-spread areas?

From earlier conversations with Rich and for the initial FLEX dispersal function we assumed that female fishers can travel ~35 km in one month. This can be extrapolated to 35*12 = 420 km annually.
I don't think there is any worry about a minimum distance from natal den as long as it's not within an occupied territory, so for a simple rule of thumb of where to start searching perhaps we use the radius of a 30 km2 circle or 3 km from the kits birth pixel, or even better, the radius of the random sized home range of the mom. Make sense?
We also assumed that fishers will start dispersing at 1 yr of age and can only survive without a territory for 2 years (i.e., I killed off all fishers >2 that hadn't yet found a territory). As a side note, we'll have to think about how to keep in the length of time an individual is dispersing to incorporate it into the survival function as home ranges may degrade over time.
It's a slow and not an elegant function but I tried to have females disperse based on the best unoccupied next pixel (although at a much coarser scale): https://github.com/bcgov/FLEX/blob/main/R/disperse_FEMALE.R

Sept 8 update:
Spoke with Rich Weir and there is empirical data that shows one dispersing juvenile fisher travelled ~1200 km in 2 years of dispersing, with a circuitous travel route that only extended ~90 km as the crow flies from her natal den. She died of starvation before she was able to establish a territory.
Rich wasn't adverse to starting with the simple approach of using a distance buffer from the natal den as the polygon to search for home ranges.
So for a general rule, how about we say that in the first year of dispersal a female will search for home ranges within 50 km (radii) of her natal den. If no suitable home ranges are available then in year 2 she searches an area between 50-100 km (or just 100 km from natal den if that's easier computationally) from her natal den. If >1 home ranges are available, choose the home range that is closest to her natal den. If no home ranges are available after 2 years then she dies (that won't be part of the dispersal function, it will be part of the survival function, just noting it here to make sure it's not lost).

Q. Is the survival rate of fishers attempting to disperse related to the habitat they are dispersing in? Probably need to link the habitat the fisher are dispersing in to the survival rate ... the closest "new" denning site might me through a massive open area that poses greater risk of predation or have to navigate a longer distance around the open area expelling more energy.

I would say yes, presumably there would be higher survival when dispersing in great habitat. Without making a complex and computationally intense model, how can we vary survival to habitat?

Well the complex way is to let the dispersing fisher 'spread' around the landscape using the contagion process and the spread probability dictates their ability to find a denning site. This is way too complex as you pointed out. Maybe the simplest way would be to fit a mechanistic relationship with dispersal survival = f(movement habitat) surrounding each individual disperser...we could take the line between a denning site and its current location - as the crow flies; buffer that line by some distance to get an "area of influence". Extract the proportion of movement habitat within that polygon and use that metric to estimate survival of a disperser, maybe distance could also be included: dispersal survival = f(movement habitat, distance)? I would argue this likely needs data to feel confident in the relationship. Another way, albeit slightly more complicated, is to calculate the least cost path between a potential denning site and the fishers current location....the cost would be some expert based cost of navigating each pixel in terms of calories. I would suggest a simplified graph where instead of each 1 ha pixel being the nodes use some larger scale that represents a fishers "area of influence" - say 250 m or something larger? The bigger the better in terms of simplification. The least cost distance would be equal to the number of calories/distance traveled. Allow for expert based opinion on those calories/distance travelled? The actual least cost path of the fisher doesn't really matter (this simplifies the computation) -- just the total distance.... but maybe the path could matter if we also simulate trapper agents?


On-chain Dynamic Metadata + SVG

closes #192

This item belongs to payment request #6C723F on OnlyDust:

from cloudvenger to 0xgatzb
2 items included
$4,500 for 9 days of work


set kubernetes resources field for master and worker init container for helm chart

What changes were proposed in this pull request?
For the helm chart. I specified the resources field for the initContainers for worker and master statefulsets.
I used the same values which are specified for the "main" container
Why are the changes needed?
For users that have a ResourceQuota (such as myself), worker and master pods do not start since the initContainers for the statefulsets do not specify the resources (cpu/ memory requests and limits).
Does this PR introduce any user-facing change?
Issue
How was this patch tested?
I installed the chart on my GKE cluster.

Hi @marwansalem , thanks for raising this PR! Currently Celeborn uses JIRA for issue tracking, we recommend you to create a JIRA ticket for each (non-minor) PR. I've created a ticket for this PR.


Cannot add Greene County, Indiana as a place requirement for a project

Describe the bug
If you make a project and want to add a rule that observations are in Greene County, you can't because Greene County does not show up in the search results
To Reproduce
Steps to reproduce the behavior:

Start a new collection project
In the Observation Requirements section, type "Greene County, US, IN" into the "Include Places" search box

Expected behavior
I expect Greene County, IN to be one of the results because I typed it's display name in exactly, but instead I get 10 other places called "Greene County."
Screenshots

Context

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional context
This component is currently hitting v1/places/autocomplete, which could probably be fixed to support better exact matching / boosting, but this problem could also be fixed in the client by changing that component to v1/search?sources[]=places, which seems to return the right place in the results.

It's still not possible to choose some counties, eg many of the 20+ (!) Washington counties in the US like https://www.inaturalist.org/places/washington-county-in-us


*: generate the error metafile

What problem does this PR solve?
Closes #2661.
What is changed and how it works?
This PR adds a makefile target to generate the metafile of errors. The output example can be found in error.toml
Check List

Tests

Manual test (add detailed scripts or steps below)

Run make gen-error-meta and check the error.toml.
Related changes

Need to cherry-pick to the release branch

Release note

Do we need to commit the toml file?

Do we need to commit the toml file?

I think we don't need to And I will remove it once this PR is ready.

This PR is outdated and we may use another way to generate the metafile. Close it for now.


Accelerated Networking

Is support for Accelerated Networking really just "No"?
There is a whole page stating that it will be detected and enabled.
https://docs.microsoft.com/en-us/azure/site-recovery/azure-vm-disaster-recovery-with-accelerated-networking#enabling-accelerated-networking-for-replicated-vms
I think maybe this is just a new feature that requires an update here?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: bc12f304-5826-fb32-1728-5e43f1b05d8a
Version Independent ID: 7cc3d5a7-9b0e-dd6b-3b34-2036219f5bd6
Content: Support matrix for disaster recovery of VMware VMs and physical servers to Azure with Azure Site Recovery
Content Source: articles/site-recovery/vmware-physical-azure-support-matrix.md
Service: site-recovery
GitHub Login: @rayne-wiselman
Microsoft Alias: raynew

@dcbrown16 Thanks for the comment! As per the link - https://docs.microsoft.com/en-us/azure/site-recovery/azure-vm-disaster-recovery-with-accelerated-networking#enabling-accelerated-networking-for-replicated-vms Accelerated Networking is supported. May I please know what is your concern when you say "Is support for Accelerated Networking really just "No"?"

see table:
Azure VM network (after failover)
...
Accelerated Networking | No

Oh I see, I must have had both VMware and Azure support matrix pages open at the same time. The Azure page says it is supported. Sorry for the trouble!


Texture work

Not sure where I should put this, but I'd like to do some texture work for you guys! I know you are planning fruit trees so if you gave me a couple ideas of what trees and fruit you would want textures for I could get started on that. Either that or if you have anything you would want me to do instead? If you don't like what I do it's np I'll just try to get better and make changes to them ;u;

There's indeed a long TODO but I'm always a bit strict on getting texture help since it needs to fit the mod. Have you got any samples of textures that you've done before? :) Feel free to come in Discord

I'll make time to get into discord later, for now I have some sprites I made today to practice. I think I found a better program for spritemaking than sai so pardon any odd edges
ALSO after finally getting back to finish this message I realize I have no idea how to show you what I made. 16x16 is for ants ;;

I will go ahead and close this, now that you are aware of the Discord :) Here is a link to make it a little easier  https://discord.gg/QHwQydC


Update version pinning; move source to src directory

Mostly general maintenance.

I've moved the main repo and the template to depend on python v3.12 for most CI and to mothball v3.9 support.
I've moved the template source code into a src directory. After a bit of back and forth, we decided to go this way with calliope because it ensures the tests run against the package in the same way that a user would have the package available. It's also used in the repos that NASA uses to land robots on other planets (example courtesy of this blog article).
Fixed cookiecutter CI to actually run over the cross-platform matrix strategy.

It'll already be at version 13 by october this year - difficult to keep up!
RE template test - I'll update freightpop and argo with the new template and see if it breaks them horribly 😄


implement proper routing

clicking any of the links on the navbar should lead to a new route. use react's file-based routing to implement this behavior.

Implementing routing and updating navbar, will push changes to new branch


Unable to read model

Getting the following while trying to load a model:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\IPython\core\interactiveshell.py", line 3296, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
weights, biases = readNNet(r'C:\Users\Saikat.Sarkar\Documents\FakeImageDetection-master\FakeImageDetection-master\nnet\CNN2.nnet')
File "", line 22, in readNNet
line = f.readline()
File "C:\Program Files\Python36\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 3333: character maps to
The model works well in Java
Trying to implement this project in python:
https://github.com/afsalashyana/FakeImageDetection

How were these nnet files created? The .nnet files in your project seem to be some sort of binary file written in some other nnet format. The NNet format used here describes a simple text file that specifies fully-connected ReLU networks. This format is used by networks in the Reluplex repository: https://github.com/guykatzz/ReluplexCav2017/tree/master/nnet. The scripts and functions provided in this repository were not designed to read the format used by the networks in your repository.

Looks like those files were created with Neuroph, a Java neural network framework: http://neuroph.sourceforge.net/. This .nnet format has no connection with Neuroph. It's just unfortunate that both use .nnet file extensions for network files. I'll add a comment documentation to clarify this.


R-Tree Query Details?

It is not obvious to me what the R-Tree's query considers a match. Is it intersection, equality, contains? Especially when mixing point, line, polygon types.  By digging in and finding this reference, I believe a match is made when the querying geometry intersects an element in the tree.
Is this correct? If so, is it worth it for me to make a PR updating the documentation to reflect this useful detail?

@ablakey sorry for the confusion! Yes, the shapely R-tree has the same semantics as the one in GEOS, and yes, we'd gratefully accept a doc update.

Great! PR is up. Closing this issue.


Fix typos in GraphQL schema

I got the following error when installing this:
Class Ingenico\\ConnectGraphQl\\Model\\Resolver\\ingenicoClientSession does not exist

I noticed there was a typo in the schema. Also, I renamed the type to use pascal case, since that's how types are usually named.

Thanks @kevva ,
This will be merged in the upcoming 0.1.2-release. You'll get a honourable mention in the changelog ;-)

Fixed in 0.1.2


[Tracking Browser back button] [$1000] mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to mweb chrome and go to any chat
Send a message and then click on reply thread on the message so that a new thread page opens up
Click on header and leave the room
Notice it shows you to Concierge page
Click on back button and notice that it brings the same thread chat again that you left few moments back. If a user has left the thread, clicking on back button should have brought the user to LHN instead of giving re-access to the same thread

Expected Result:
Clicking on back button on Concierge after leaving the thread shouldn't give access to the same thread again (since the user had already decided to leave)
Actual Result:
licking on back button on Concierge after leaving the thread gives us access to the same thread again
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[x] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>.6
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/8aff1456-5b38-4116-8b07-011b45bcdade
https://github.com/Expensify/App/assets/93399543/cebc9a4e-5c5f-4b31-9603-863af4f38bdd
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686249319392879
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01448a7bf541bf3868
Upwork Job ID:<PHONE_NUMBER>095009792
Last Price Increase: 2023-07-10

Proposal
Please re-state the problem that we are trying to solve in this issue.
Clicking on back button on Concierge after leaving the thread shouldn't give access to the same thread again (since the user had already decided to leave)
What is the root cause of that problem?
The problem is that after pressing back it will return to the previous screen which is router /r/reportID/details because we haven't cleared the screen thread.
What changes do you think we should make in order to solve the problem?
Define function pop screen in Navigation.js
function popScreens(numberScreen = 1) {
    navigationRef.current.dispatch(StackActions.pop(numberScreen));
}

In the function leaveRoom we will pop 2 screen before navigateToConciergeChat
Navigation.popScreens(2)
navigateToConciergeChat();

What alternative solutions did you explore? (Optional)
N/A

Proposal
Please re-state the problem that we are trying to solve in this issue.
On mWeb, clicking on back button on Concierge after leaving the thread gives us access to the same thread again
What is the root cause of that problem?
The root cause of this issue is that, when clicking header go back button, the route state still saves previous pages(including the details page) after clicking Leave Thread, see leaveRoom, navigateToConciergeChat, and Header Navigation.goBack.
What changes do you think we should make in order to solve the problem?
From method leaveRoom
https://github.com/Expensify/App/blob/83ab0160a3b5c385fd26fffe20bdbccabf9249c0/src/libs/actions/Report.js#L1678
We know that we want to navigate to the concierge chat when clicking Leave Thread button. After navigating to the concierge chat page from the details page, we don't want to navigate back to the details page if clicking the header go back button. Instead, we want to go back to the home page.
To fix this issue, we can reset the route state of navigation to the concierge chat when calling method leaveRoom.
To achieve this, we can

Add a new type RESET support for method Navigation.navigate

https://github.com/Expensify/App/blob/83ab0160a3b5c385fd26fffe20bdbccabf9249c0/src/libs/Navigation/Navigation.js#L62-L67

Change the condition of linkTo method to reset the state of navigation. If type is RESET, then reset the state like

if (action !== undefined && type !== 'RESET') {
    root.dispatch(action);
} else {
    root.reset(state);
}

Add an optional parameter to method navigateToConciergeChat

https://github.com/Expensify/App/blob/83ab0160a3b5c385fd26fffe20bdbccabf9249c0/src/libs/actions/Report.js#L1132
like
function navigateToConciergeChat(shouldResetNavigationState = false) {

If shouldResetNavigationState is true, then pass type RESET to method  Navigation.navigate, like  Navigation.navigate(route, 'RESET').

Call navigateToConciergeChat(true); in method leaveRoom

https://github.com/Expensify/App/blob/83ab0160a3b5c385fd26fffe20bdbccabf9249c0/src/libs/actions/Report.js#L1678

Click to find the demo video
https://github.com/Expensify/App/assets/117511920/b6d80a79-cc8e-4c51-b77e-b43b703b22fc

What alternative solutions did you explore? (Optional)
N/A

@allroundexperts we already have a couple proposals for this one

@allroundexperts have you had a chance to review the proposals that have come in?

@allroundexperts Thanks for reviewing proposals. Can I have your feedback about my proposal? I proposed a solution to reset the state of navigation stack, which should be useful and complementary to the current navigating methods provided in Navigation.js.
For example, we can open a page of App in a new tab through a link. If we perform an exit-and-redirect like navigation action, like leaving a thread, from that page, then having a reseting navigation stack solution will be helpful to avoid navigating to the Hmm... it's not here page in various use cases.
cc @mountiny @WoLewicki

Is this behavior the same on web? How does the forward browser button works in these flows if so? @eh2077 could you elaborate more on how would the RESET action API look like? It uses the whole state object as its argument (https://reactnavigation.org/docs/navigation-actions/#reset). How would we handle that in order to decide which part of the state we would keep etc?
The only problem with @namhihi237 proposal that I can think of is that it dispatches 2 navigation actions one after another, being popping the 2 screens and then navigating. I am afraid it can introduce some animation and browser buttons glitches. Normally resetting the state is the proper solution with removing the 2 last screens and adding another one at the end, but if you confirm that those mentioned things work as they should, I think we can also go with it.

@namhihi237 and what happens if you click the forward browser button after leaving the thread? Seems weird that it is possible to even do that.

Have we been able to reach a suitable proposal?
@allroundexperts are you still waiting for input from @WoLewicki and @mountiny?

@flaviadefaria Reassigning for Sabbatical

CURRENT STATUS:

Issue Reported By: @priya-zha
Proposal selected for fix: TBD
C+ Review: @allroundexperts

@allroundexperts should be getting to a conclusion on a proposal to accept very soon or take this to an expert contributor group to pick up!

@allroundexperts Thanks for testing the proposal. Yes, I got same behavior.

Proposal
Please re-state the problem that we are trying to solve in this issue.
When we click on the back button in the concierge chat it renavigate to the thread we just closed
What is the root cause of that problem?
The screen details and the thread report are still in the navigation stack
What changes do you think we should make in order to solve the problem?

For the deatil page of the thread it is quite easy to remove we can just do a goBack() before navigating to concierge but we also need to remove the thread report from the stack
To do that we  can use reset, we go through all the report routes in the central panel route and we save them in a variable apart from the thread report one, then we pass those routes to the reset method. This is the method I have:
function popReportWithoutNavigation(reportId){
    var state = navigationRef.current.getRootState();
    //The route 1 is the CentralPanel
    var reportRoutes = state.routes[1].state.routes;

    const routes = [];
    reportRoutes.forEach(route => {
      if(route.params.reportID != reportId){
          routes.push(route);
      }
    });

    const resetAction = CommonActions.reset({
      index: 1,
      routes,
    });
    navigationRef.current.dispatch(resetAction);
}

we also can call that method before navigating to concierge chat
What alternative solutions did you explore? (Optional)

@WoLewicki @allroundexperts Hello, I think my proposal makes sense and it's works well on the back button but we still go back to the thread report when we press the forward button. I don't really know why, but could that be because the CentralPanelNavigator appears mutliple time at the root state ?

I don't really know how the browser has access to our stack

We're still waiting for new or improved proposals!

Added this to the Navigation refactor follow up project so we can tackle this later if no good proposals arise

Can you please link to the proposals and the issues? We can try to get them reviewed

Proposal
Please re-state the problem that we are trying to solve in this issue.
When we click on the back button in the concierge chat it renavigate to the thread we just closed
What is the root cause of that problem?
The screen details and the thread report are still in the navigation stack.
So after we open the concierge chat the stack looks like this:
Home
CentralPaneNavigator: -> workspace report
CentralPaneNavigator -> thread report
RightModalNavigator `-> details page
CentralPaneNavigator -> concierge report
That's why when we go back we go back to the last screen in the stack which is details page
What changes do you think we should make in order to solve the problem?

Before navigating to the concierge chat we want to get rid of:
CentralPaneNavigator -> thread report
RightModalNavigator `-> details page
I propose that we get rid of the thread report in the stack with the reset method and then we can call goBack or dismissModal to remove the details page.
To do the reset, we need to save all the routes but without the CentralPaneNavigator that contains the thread report, we can do it like this:
function popReportFromStack(reportId){

    const state = navigationRef.current.getRootState();

    const routesToKeep = [];
    state.routes.forEach(navigatorRoute => {
        if(navigatorRoute.name != NAVIGATORS.CENTRAL_PANE_NAVIGATOR){
            routesToKeep.push(navigatorRoute);
            return;
        }

        const reportRoutes = navigatorRoute.state.routes;

        var isNavigatorWeWantToDelete = false;
        reportRoutes.forEach(route => {
          if(route.params.reportID == reportId){
              isNavigatorWeWantToDelete = true;
          }
        });

        if(!isNavigatorWeWantToDelete){
            routesToKeep.push(navigatorRoute);
        }
    });
    const resetAction = CommonActions.reset({
      ...state,
      index: routesToKeep.length - 1,
      routes: routesToKeep,
    });
    navigationRef.current.dispatch(resetAction);
}

What alternative solutions did you explore? (Optional)

@adamgrzybowski @WoLewicki tagging you if you could please review the proposals here. thanks!

Thanks! We will check it out. what issue are you referring to?

Sorry my proposal is not complete :/ There is still a problem when we click forward from the concierge chat it goes to details... It looks like the browser doesn't use the state to know if he needs to put forward or back button.
Using goback will result in a forward button even if details is not in the stack, using navigate will result in a backward button to details even if details is not in the stack anymore :(
@WoLewicki Do you have an idea how to resolve this problem ?

@Nodebrute Have you seen my proposal ? I tried to use the reset, I had the right stack, but the problem is reset doesn't change the screen so at some point you either have to do pop push or replace.
pop => will show the forward button
push => will show the backward button and when you click it it goes to the screen you just left even if it's not in the stack
I haven't tried replace (it is probably the right way) because I read somewhere that you couldn't use it between navigators
Also we are kind of limited by the logic in linkTo, sometimes you try to do an option and it put another one

Actually now that I think about it maybe we could navigate to concierge and then reset the stack, it not very hard to remove the right menu navigator, let me try

Let's consider a scenario where our navigation stack initially has four screens. When we remove one screen and replace it with the concierge screen, the total number of screens in the stack becomes three. This change in the stack can make the forward button active for one screen.

Sorry @Nodebrute  I hadn't understood your comment, you are right and it's happening even when we only do reset
I think not only do the browser saves the number of screens in the stack to know if he needs to show the forward button but he also saves the screen, for example:
Before: {1:Home, 2: Workspace, 3; thread, 4: Details } Index 4
After: {1: Home, 2: Workspace, 3: Concierge} Index 3
3<4 so he shows the forward button and 4 was the detail page so when we click on forward we go to the details page.
I am not sure how we can resolve this

I am afraid it can be difficult to do it in a right way without some tricks. What if we did pop for as many screens as we need and then do a single push for the right screen on which we want to end on? We should be popping the screens till we end up on the one we want the user to go back to when clicking browser back button. I think in such cases when the navigation state would be kind of undefined after such actions, we should pop all the state till LHN and then just push the report we should end up on.
Could you test what are the behaviors of browser buttons with such solution?

I think that's what this proposal was about https://github.com/Expensify/App/issues/20908#issuecomment-1594948414 popping two screens and adding one. It stills shows the forward button :(

Yeah, but react-navigation connects to the browser history API, so we have to look there.

It's possible that the current way of handling history in the react-navigation isn't best suited for two actions one immediately after another.
What react-navigation does for history is compare current and previous states of focused navigators and look for diff in routes length. (it's a bit simplified description)
For 3 x pop and one push the diff is still < 0 for routes array length so this action will be considered as go back in history
You can see the implementation here https://github.com/react-navigation/react-navigation/blob/24c03924397a6e59aba9f6b74a9c5cb4b939d9e1/packages/native/src/useLinking.tsx#L365-L378
If this problem cannot be solved in a different way maybe we need to look for a better implementation of handling history in react-navigation. But that may be tricky

Thanks for the link, It looks like this code is not called twice otherwise the first time when we do pop(2) diff would be < 0 but then when we push diff would be > 0
I am going to check that when I have time

It's possible that the current way of handling history in the react-navigation isn't best suited for two actions one immediately after another.

This is true, here's an open issue: https://github.com/react-navigation/react-navigation/issues/10992.
I'm not familiar with the details, and from a quick skim it's not clear what the two actions being discussed here are, but if that's the core of the issue, it sounds like a potential solution might be a custom navigation option so that you can make all the desired updates in one go? https://reactnavigation.org/docs/custom-routers/#custom-navigation-actions

@allroundexperts please share your thoughts around this - thanks!

Thanks @allroundexperts! Let's take this internally as that's the action Melvin had already taken. I re-applied the engineering label to assign an engineer.

so what is the bug here? is it that the user is taken to the concierge room when leaving a thread?

So the issues I see are two:

The user does a thread in a room/DM and upon leaving the thread they are re-routed to Concierge instead of the original room/DM (ex:#announce room on the first video).
After the user leaves the thread they can click the back button and are able to send a message in the thread despite having left it. Though now that I come to think of it, I'm not sure that this is a problem. Because leaving a thread means you're no longer following or getting notifications but it shouldn't necessarily prevent you from adding new messages to it if you'd like and being part of the thread again.

@hayata-suenaga maybe we should take this to Slack to confirm the desired outcome for this?

will the second problem be fixed if we fix the first issue? Because the back button is on the Concierge page, if we don't direct users to the Concierge page after leaving a thread, we don't have to worry about the second issue?

Not really as I'd expect the back button to display in the original room. However, I'm not sure that the second issue is indeed an issue. I'll post in Slack and tag you.

thank you so much for handing this issue @flaviadefaria
by the way, I think this can be an external issue as this doesn't require backend change. I asked if anyone from Infinity Red is available to take over this issue here

From this internal slack discussion, the expected behavior when pressing the back button (on small devices) is
taken back to whereenver the user was on before nativgating to the thread room. It might be LHN (users can directly access each thread room from LHN) or the room from which the thread was spawned.

The user does a thread in a room/DM and upon leaving the thread they are re-routed to Concierge instead of the original room/DM (ex:#announce room on the first video).

We should be able to change it rather easily.
As for both of those issues, I think the best solution for those problems is, after the user clicks leave thread, reset the navigation stack to only having LHN and the original report of the thread. At the same time, we should ensure that the browser stack is also reset to only those 2 elements on the stack. We will try and acquire it with the changes we try to implement in react-navigation with @adamgrzybowski.
Right now I am not sure if we can do much about this issue. The best thing we could do is to pop the navigation state to the top and add the original report after that, but it will still probably create weird behaviors of browser buttons, as mentioned in this and other issues.

@hayata-suenaga I recommend putting this issue on hold for the changes to the back button behaviour/ react-navigation changes. This issue is already tracked int he navigation refactor follow-ups project so it should be fine

@hayata-suenaga we will start with making the changes that work correctly for the App's use cases. Testing those in the upstream repo is up to the maintainers of it, and those flows with browser navigation are usually kinda tricky, so it might take a while before it is done. Therefore I cannot give any reasonable estimation for it.

per this comment, putting this on hold

@WoLewicki Which issue would you ties this to? We coul make it the main issue for it.
We dont have a tracking issue, there is a bunch with the same rootcause so we could find one which will be the main one but Wojti can help on that.

Based on the number of comments, this one seems like the issue with most context 😅 All the other ones with similar root cause are: https://github.com/Expensify/App/issues/22101, https://github.com/Expensify/App/issues/21356, https://github.com/Expensify/App/issues/21214 (this one has many comments also).

updated the title with these issues numbers so that I don't forget which issues I have to track to determine hold status of this   issue. Also, changing the priority to weekly

@WoLewicki Lets use this one as the tracking issue then

Updated the title to reflect we will use this one as the main one for the back button implementation

Is this still on hold or are we good to work on it now?

Me and @adamgrzybowski are working on the changes in react-navigation that will fix those problems. Or are you proposing some other way to do it @flaviadefaria ?

Got it, thanks for clarifying. Should we switch this to monthly then until the changes are made in the library?

yes probably that's a good idea changing the priority to monthly

The same issue here: https://github.com/Expensify/App/issues/24123

@hayata-suenaga I think it is confusing to merge several issues into one. Each issue should have one reporting bonus and not have several linked to them. Or at least are you able to list in a single comment all the issues that are planned to be resolved here?

@flaviadefaria I apologize for the confusion. I think this issue was originally an independent issue and was later used as a tracking issue.
I gonna ask Maria to create individual issues and put links to them here instead 🙇
again sorry for the confusion

Hey, this should be fixed by this PR

@flaviadefaria could you please confirm this issue is resolved in staging? If yes, then we can close it

My NewDot is really shitty lately and I can't log in at all today (this time also on web) and since I'm about to go OoO I'll reassign for someone else to test it.

@dylanexpensify (as you know) I'm unable to log in to NewDot and am about to go OoO. Can you please check if this bug is still happening as @mountiny asked above? Thanks!

The above issue was determined not a deploy blocker. Also, this issue was just mentioned in the above issue for reference and this issue didn't cause any regression (I mean the fix hasn't benn created yet).

okay a lot of things going on here...
So there is no specific PR for this issue. A contributor suggested that this PR is going to fix the issue reported here.
But that PR apparently was reverted later
We probably have to wait until Vit reverts the revert. And then we can test if the issue is still reproducible.
@dylanexpensify Could you keep on eye on the above comment and test/reproduce the issue once the revert-revert PR is opened and merged?
I know this issue has a lot of comments and kind of confusing. Please let me know if you have any questions I can answer.

The PR was not reverted, some people suggested it caused some deploy blocker but the revert did not confirm that (the issue prevailed) so we did not have to revert it (or in other words the revert branch pr was not merged)
This is fixed:
https://github.com/Expensify/App/assets/36083550/45d0d301-0a92-4589-8358-489736b2bf3f
@dylanexpensify I think we just need to pay the issue reporter and we can close this one out. No need to wait for the date in the title either honestly

We are going to be more strict on these requests but given this issue has 114 comments and its been open since June 16 I think its valid to give the classic 25% so $250 for your help here. Albeit its not probably matching the efforts, there are other issues which end up being less time consuming so it balances out I believe. Thanks for your help

@dylanexpensify so the issue was fixed in another PR. The is the payment decision.

Got it! @allroundexperts @priya-zha mind applying here

Hi. I'm not being able to apply to the job since it says 'The job is no longer available'

Woot! Payment summary:

Reporter: @priya-zha $250
Contributor+: @allroundexperts $250

Upwork job! Please apply!

New job ^ fyi @priya-zha

Applied. Thanks

Reviewed the details for @allroundexperts. $250 approved for payment via NewDot.

TY! Payment coming now @priya-zha

Offer sent @priya-zha !

bump @priya-zha

@dylanexpensify Accepted the offer already. Waiting for the payment. Thanks.

@dylanexpensify just to confirm have you paid @priya-zha? I see the contract is still open but it's unclear to me if they have been paid or not.

Payment sent!

Contract ended!

Perfect so closing this! Thanks!


docs: Update link to kubernetes.core collection in README.md

What this PR does / why we need it:
Update link to kubernetes.core collection in the README.md and add tags for downstream customization of README.md
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

None

/lgtm

/append

/approve


chore(gitignore): add .idea to gitignore

Add /.idea to the .gitignore under a section "IDEs and editors". Without this, WebStorm WebStorm / IntelliJ will keep prompting you if you want to add project files to git and also show them as "unrevisioned files" in the "Local changes" view.

lgtm

@jelbourn I have no issues with adding as it can be helpful for many... but an FYI, when I was using WebStorm I added .idea to my global .gitignore so I never had to worry about it (http://stackoverflow.com/questions/7335420/global-git-ignore)

Yep, a global config is good for things like this, but it doesn't hurt to have it anyway.

@jelbourn can you rebase onto master before I merge it?

@filipesilva done


What's the point of running same scheduler workers count as in default queue?

I have workers = 5 in [Default] section of my fresque.ini file. When I run fresque startScheduler it creates 5 worker instances. This happens because of direct assignment of $count variable in Fresque class.
What is the point of such behavior? Why should I run same count of scheduling queue workers as in default queue? It doesn't make sense to me.

true, only one scheduler worker should run at same time

BTW I have a simple workaround on this issue. If only default queue needed you can simply set [Default] -> workers = 1 then set [Queues] -> default[workers] = 5. Using fresque load instead of start you can run desired amount of workers.


SimpleAuth login

Hello :),
I'm very interesting about Auth features.
It's seems that the SimpleAuth login function has not been implemented.
It does not store anything in session and i can't use it.
Is this a feature in progress or planned for the future ?
Or i make a mistake about usage ?
Thanks :)

Hi @Kevkehz !
The auth features are ready-to-use. Maybe there is a mistake in your app, or maybe a bug. If you provide some information to review it maybe I can help you :smiley:

Your application/config/hooks.php file
Your application/config/web.php file
Any code that you think is causing the issue.
PHP version and OS version

Cheers.

Thank for your help :)
I'm running a server with laragon on Windows, PHP 5.6.
I start a new project from scratch and follow instructions from this page https://luthier.ingenia.me/ci/en/docs/authentication/simpleauth
hooks.php
$hook = Luthier\Hook::getHooks([
	'modules' => ['Auth']
]);

routes/web.php
Route::auth();
Route::get('/', 'welcome@index')->name('homepage');

I can successfully signup, but when i try to login i get back on login page each time.
I get an empty response when running this function after login
$userObject = $this->simple_auth->user();
var_dump($userObject); // = null

I didn't get a flash message or anything.
In cookies i only have the ci_session cookie.
I supposed that the login feature was in this file luthier/src/Auth/SimpleAuth/Controller, login
public function login()
    {
        $messages = Auth::messages();

        $this->loadView('login', compact('messages'));
    }

but I think the logic is somewhere else

I think that some configuration or routes are missing.
Please check the default value of auth_login_route_redirect option in application/config/auth.php:
$config['auth_login_route_redirect'] = 'dashboard';

In your routes, the dashboard route is not defined, so the auth module maybe is redirecting you to the base_url because that.
Try to clear all your cookies to delete any active session, and then update your web.php route file with this test routing:
<?php
# application/routes/web.php

Route::auth(false);

Route::get('/', function(){
   luthier_info();
})->name('homepage');

Route::group('secure', ['middleware' => 'SimpleAuthMiddleware'], function(){

    Route::get('/', function(){
        echo "Login succes!!";
    })->name('dashboard');

});

Route::set('404_override', function(){
    show_404();
});

Route::set('translate_uri_dashes',FALSE);

You should be redirected to the dashboard route after log in. Let me know if you solved the issue.

After set Route::auth(); in the web.php route file i try to login, but another error.
INFO - 2018-07-20 08:33:43 --> Config Class Initialized INFO - 2018-07-20 08:33:43 --> Hooks Class Initialized DEBUG - 2018-07-20 08:33:43 --> UTF-8 Support Enabled INFO - 2018-07-20 08:33:43 --> Utf8 Class Initialized INFO - 2018-07-20 08:33:43 --> URI Class Initialized DEBUG - 2018-07-20 08:33:43 --> No URI present. Default controller set. INFO - 2018-07-20 08:33:43 --> Router Class Initialized INFO - 2018-07-20 08:33:43 --> Output Class Initialized INFO - 2018-07-20 08:33:43 --> Security Class Initialized DEBUG - 2018-07-20 08:33:43 --> Global POST, GET and COOKIE data sanitized INFO - 2018-07-20 08:33:43 --> Input Class Initialized INFO - 2018-07-20 08:33:43 --> Language Class Initialized INFO - 2018-07-20 08:33:43 --> Loader Class Initialized INFO - 2018-07-20 08:33:43 --> Database Driver Class Initialized INFO - 2018-07-20 08:33:43 --> Email Class Initialized INFO - 2018-07-20 08:33:43 --> Session: Class initialized using 'files' driver. INFO - 2018-07-20 08:33:43 --> Controller Class Initialized INFO - 2018-07-20 08:33:43 --> Helper loaded: url_helper ERROR - 2018-07-20 08:33:43 --> Severity: error --> Exception: Class 'Auth' not found /Users/andrea/projects/ci3/vendor/luthier/luthier/src/Resources/About.php 62
Also in the root route (http://ci3.test)
An uncaught Exception was encountered
Type: Error
Message: Class 'Auth' not found
Filename: /Users/andrea/projects/ci3/vendor/luthier/luthier/src/Resources/About.php
Line Number: 62
Backtrace:
File: /Users/andrea/projects/ci3/vendor/luthier/luthier/src/Functions.php
Line: 67
Function: require
File: /Users/andrea/projects/ci3/application/routes/web.php
Line: 22
Function: luthier_info
File: /Users/andrea/projects/ci3/vendor/luthier/luthier/src/Hook.php
Line: 422
Function: call_user_func_array
File: /Users/andrea/projects/ci3/vendor/luthier/luthier/src/Hook.php
Line: 59
Function: postControllerConstructorHook
File: /Users/andrea/projects/ci3/index.php
Line: 315
Function: require_once
Thank you

@abmcr make sure that you have enabled the Auth module in the Luthier CI hooks:
# application/config/hooks.php

$hook = Luthier\Hook::getHooks([
    'modules' => [ 'auth' , 'debug' ]
]);

in the doc there is an error
https://luthier.ingenia.me/ci/en/docs/authentication/authentication
The correct syntax is lowercase
$hook = Luthier\Hook::getHooks([
'modules' => [ 'auth' ]
]);
but in the doc ther is
$hook = Luthier\Hook::getHooks([
'modules' => [ 'Auth' ]
]);
thank you

Our apologies for the syntax error in the documentation, we will update the website soon. Thank you very much for letting us know @abmcr

Updated website documentation :+1:


go: create zip: module source tree too large (max size is 524288000 bytes)

Bug Report
Can't update to v67.0.4.
go version go1.19.2 linux/amd64

go: downloading github.com/Azure/azure-sdk-for-go v67.4.0+incompatible
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)

From sum server<EMAIL_ADDRESS>Response:
not found: create zip: module source tree too large (max size is 524288000 bytes)

Bug Report
Can't update to v67.0.4.
go version go1.19.2 linux/amd64

go: downloading github.com/Azure/azure-sdk-for-go v67.4.0+incompatible
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)
go: create zip: module source tree too large (max size is 524288000 bytes)

From sum server<EMAIL_ADDRESS>Response:
not found: create zip: module source tree too large (max size is 524288000 bytes)

@woohgit Please use the latest v68.0.0.


Add switch for disabling proxy get_url fetches

Working from https://github.com/geerlingguy/ansible-role-jenkins/pull/120 this change aims to modify the behavior of all get_url fetches so that the proxy behavior can optionally be enabled or disabled.

+1, would be great to have this change; based on what you said here, @geerlingguy, you'd be up for merging this?

@geerlingguy any progress here?

@geerlingguy Any updates on whether or not this will be merged?


Update Link in README.md

@ujjwalkarn
Fix Broken Natural Language Processing Link ( tf-idf explained )

Thanks!


chore(deps): update common-dev-assets digest to 66ecde4

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
f83b16b -> 66ecde4

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Reduce the amount of calls to RoleManager.setRoles

Fixes #1726
Sets the horreum.system role by default on the connection and only set roles when needed.
Also, the roles are set with transaction scope to avoid having to reset them.
This avoid most calls to setRoles for non-authentication usage and reduces to a single call when authenticated, for most cases.

Comparing the flamegraphs of bulk import.
Before PR, setRoles() utilized 22.32% of cpu time:

After PR, setRoles() utilized 0.22% of cpu time:

alright !!


Add doc to derive_as_bind_group

Objective
Fixes #16955
Solution

Describe the solution used to achieve the objective above.

Testing
See showcase
Showcase

https://github.com/rust-lang/api-guidelines/discussions/186#discussioncomment-232142

This doesn't seem to be possible. Adding the documentation within bevy_render_macros causes the link to not work because it is an external link. Trying to add the documentation on the re-export in bevy_render just breaks the documentation page outright.


Custom Locations not working?

I've tried adding custom locations/roles to locations.js, but only the originals appear.  For example, I have added this to my code:
  {
    name: 'locations.white house',
    roles: [
      'locations.roles.white house.donald trump',
	  'locations.roles.white house.shawn spicer',
	  'locations.roles.white house.trumps makeup guy',
	  'locations.roles.white house.steve bannon',
	  'locations.roles.white house.mike pence',
	  'locations.roles.white house.secret service agent',
	  'locations.roles.white house.trumps tech guy'
    ]
  },

But "White House" doesn't even appear in the list while playing the game.  What am I missing here?

I'm having a similar issue. I made the changes in the locations file and also in the translation but did not see the changes executed.

Ok, so I've gotten it to work. When I tried this I duplicated the original and renamed it .old. You have to remove the old file from the directory or it will get confused. I also had to alter the english translation of the game to account for my new locations.


iOS 8 location warning status bar removes tabs from app

Short description of the problem:
In iOS 8, when an app is using your location in the background, such as Google Maps, the status bar expands to 2 lines and displays a warning message.
If you have an app built with ionic2 and using tabs, when you switch to the ionic app whilst this status bar is displayed and then the status bar is removed by iOS, the tabs in your app will disappear.
What behavior are you expecting?
I expect the app to resize accordingly and the tabs to remain in the app.
Steps to reproduce:

Create an app using the tabs starter.
Install on a device running iOS 8 or later.
Run the app.
Switch to Google Maps and start navigation to a destination.
Switch back to the ionic tabs app.
Tabs will disappear.

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Information about this feature
https://9to5mac.com/2014/06/04/apple-improves-location-services-in-ios-8-with-when-in-use-mode-visit-monitoring/
Which Ionic Version? 1.x or 2.x
2.0 beta 11
Plunker that shows an example of your issue
N/A
Run ionic info from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 6.3.1
Gulp version:  CLI version 1.2.2
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 8.0 Build version 8A218a

Hello, thanks for using Ionic! I am going to close this issue as a duplicate of https://github.com/driftyco/ionic/issues/6475.

That ticket is about hiding the status bar and this is about tabs disappearing. Don't quite understand the connection there, so perhaps you can elaborate?


🥇 Zero Issues !!!  Just to say Thank You So Much for your Work and Time ! Respect !  Mr. Krupiński !

Your cheat Osiris works perfect Daniel ! ( Windows 11 23H2 )
Please, I hope that my words do not make you feel bad or bother you.
Surely you are bored of absurd, repeated and tedious "Issues"... this is just a small breath of fresh air and support you.
And I just want to say thanks, and share some advises to other "newbies" like me.
Although I have been using tricks and hacks in all types of games for more than 20 years... you will never stop learning.
There is still a lot of work to do, and from here and with my humble knowledge I offer to help with whatever you want in the Osiris project.
I can't say it enough, THANKS! You have provided me many hours of fun ... and learning, and I'm sure it has been provided many other people who pass by here every day.
Cheer up !

Best regards,
SuperK2

Thanks !


Extended encoding

Supporting all characters allows accessing and correcting devices previously manipulated directly

Mikrotik is not consistent at all about character set compatibility between console, winbox and API (ref1, ref2, https://github.com/home-assistant/core/issues/44111)
I wouldn't even bother adding that. I'd prefer to have CommandBuilder::add_raw_command(&[u8]) (or something similar) and handle it at application level and not on library level.

Mikrotik is not consistent at all about character set compatibility between console, winbox and API (ref1, ref2, home-assistant/core#44111)
I wouldn't even bother adding that. I'd prefer to have CommandBuilder::add_raw_command(&[u8]) (or something similar) and handle it at application level and not on library level.

I did some tests with a WebFig on a hEX laying around on my desktop.
There are 3 goals for me (I need them for the next layer of my application):

Read the configuration out of the device whatever was done to this device before (as long as it is still accessible)
Allow to write any useful configuration to the device
Be sure anything successfully written configuration comes back as it was written before

My experiments (and some reading between the lines of the documentation, https://help.mikrotik.com/docs/spaces/ROS/pages/47579229/Scripting#Scripting-ConstantEscapeSequences) showed there is a latin1 character set used on the device. So all the reading operations needs to treat the strings as latin1.
For the writing I can see 2 useful approaches:

Return an error whenever there is a character beyond 7-Bit ASCII
Treat them as Latin1 and return an error whenever there is a character beyond 255 (8 Bit)

As I can see no disadvantage on the 8-Bit-Approach as long as you feed only 7-Bit characters I would prefer the later.
Sorting all this arguments I can see a big error in my proposal: Characters beyond 255 are silently ignored. They should result in an error in order to make the API reliable.
What do you think?

Hmm.
One remark for the beginning: It seems Mikrotik on Webfig uses latin1 and not Windows 1252 (At least on my machine, could be client dependent).
I can agree with only supporting ASCII for writing because everything else is not supported correctly.
There are problems for me, when the API crashes every time when a user has entered a non ascii-character on the device directly (bypassing the rust client for the API), I have seen such "solutions" in my career and the fight with the users to do no such stupid thing like copy-paste something from a email or another dubious source. Assuming every string is utf-8 compatible is a problem here.
I can see 2 approaches to fix this problem

return everything as [u8], so the user need to decide how to make a string out of it (and he can also deal with the problem or ignore it). Possible add some optional convenience methods on top to allow string access for users who doesn't care, when the API fails, whenever a user has entered something stupid onto the device directly.
use an ASCII compatible 8 bit encoding for strings (doesn't really matter which). Anything above code point 127 is undefined, but defined and reproducible

On the other hand it is clear routeros cannot handle the full Unicode spectrum. So in my opinion it is not correct, when the API seems to be able sending UTF-8 sequences to the device (In fact it is able, but the output on the device will not meet the expectations of the most developers).
So here I can see 2 similar solutions to the dilemma:

Process u8, not strings. So the API-User needs to deal with the whole char set problem (possible some additional convenience methods with panic whenever there is a non ASCII character)
use an ASCII compatible 8 bit encoding for strings with a runtime error whenever there is an invalid code point.

When I read your arguments I assume you want to avoid to make too much decisions for the user, so I assume you would prefer to use [u8] instead of str.

return everything as [u8], so the user need to decide how to make a string out of it (and he can also deal with the problem or ignore it).

I've opted for this solution regarding reading the response from the router. I guess the potential string issue could be in the values of attributes and nowhere else? I've opened a PR with my solution #26 . Basically add another field with the "raw" attribute values. Feel free to comment if you see a better one.

When I read your arguments I assume you want to avoid to make too much decisions for the user, so I assume you would prefer to use [u8] instead of str.

Yes! What do people call this? "Unopinionated"? Yeah
So writing to the router raw bytes would use something like CommandBuilder<Cmd>::raw_attribute(key: &str, value: Option<&[u8]>)
Ah this is all based on the assumption that the problematic strings are only in attribute values. This is reasonable to me because afaik attribute keys are defined by RouterOS. Could be wrong tho.
Wdyt?

In theory I agree: the problem is only the attribute value not the attribute name (and the command).
But switching them all to [u8] instead of str brings 2 additional features:

The rust compiler checks constants already for invalid values
I found a way appending them into a command without an additional temporary copy

Currently I am working on a commit to switch the whole API to use anywhere [u8] (and try to avoid additional cluttering in the API). Before I push the next proposal I want to adapt also my client.
Btw: Possible you have missed the refactoring of the commit b39ae85: It fixes another problem, occurring when a user has managed to put a null byte into a field


ReactiveForms not work with AOT

NGC not work
![screenshot from 2016-10-13 18-09-31]
Error

class.ngfactory.ts

is a simple form
buildForm() {
    return this.formBuiler.group({
      'user': ['',Validators.required],
      'password': ['', Validators.required ]
    })
  }

Steps to reproduce:
1.Create  ReactiveForm
2.Ionic build
3.Error

Hi @nicobytes,
This looks like a bug in your code.  I can't immediately identify it, but I can tell you that ngc from Angular is very strict and it would be best to initialize those properties right away on the component instead of via a function or something.
I would play around with that sort of approach until you find something that works.  Otherwise, you could always ask the question on our Ionic community. People are very helpful there.
Since this isn't an Ionic or App-scripts bug, I'm going to close this for now. Let us know if you can get it figured out!
Thanks,
Dan

mm but all the files in the folder .tmp are created by ionic-app-scripts (ngc) and error is in the file myclass.ngfactory.ts inside the folder .tmp. (result of ngc proccess)
the error is in the reference a user (field of form)
this.context.formLogin.controls.user.dirty

but the right  is:
this.context.formLogin.controls['user'].dirty
//or
this.context.formLogin.controls.find('user').dirty

but the file myclass.ngfactory.ts is create for ngc process not by me


AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application

Hi Guys,
i create a new expo project and copy paste the sample code in https://github.com/shedaltd/react-native-azure-ad-2/blob/master/example/App.js
but i receive the error below
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application

can anyone show me how to configure for redirect uri?
this my configure in Azure App Registration

this is my app.json setting in expo

I have the same issue. Is there a way to enable logging and see the details of what's being sent in the request? I have specified the "redirect_uri" param and registered that URL in Azure. No dice.

I registered my Redirect URI as the default, and it's working now:
https://localhost:3000/login

yes it work!


No to_python (by-value) converter found

Hi,
I'm seeing the following error on import, with the latest release (2015_09_1). This is with boost 1.59, Boost_USE_STATIC_LIBS=ON, linux amd64 (centos5), gcc 4.8.2. Any suggestions would be appreciated.
Traceback (most recent call last):
  File "run_test.py", line 43, in <module>
    import rdkit.Chem
  File "/anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Chem/__init__.py", line 22, in <module>
    from rdkit.Geometry import rdGeometry
  File "/anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/__init__.py", line 5, in <module>
    from rdkit.Geometry.rdGeometry import *
TypeError: No to_python (by-value) converter found for C++ type: RDKit::DiscreteValueVect::DiscreteValue

Did you do the build using the conda-rdkit recipes or from the command line?

No, I didn't use the conda-rdkit recipe.

If you are using the RDKit as a toolkit to build on top of/with (as opposed to doing RDKit development), it might be worth taking a look at those (there are build instructions in the new version of the RDKit docs).
If you still want to build yourself, here are some thoughts about tracking this problem down:
I have seen this type of error occur when you have different versions of the code being used simultaneously.
Try looking at which libraries are being used by the libraries:
ldd /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/rdGeometry.so
ldd /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/DataStructs/cDataStructs.so

I don't see anything strange.
$ ldd /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/rdGeometry.so
	linux-vdso.so.1 =>  (0x00007ffe89d89000)
	libRDGeometryLib.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/../../../../libRDGeometryLib.so.1 (0x00007f3dac865000)
	libDataStructs.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/../../../../libDataStructs.so.1 (0x00007f3dac580000)
	libRDGeneral.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/../../../../libRDGeneral.so.1 (0x00007f3dac353000)
	libRDBoost.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/../../../../libRDBoost.so.1 (0x00007f3dac14b000)
	libpython2.7.so.1.0 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/Geometry/../../../../libpython2.7.so.1.0 (0x00007f3dabd68000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3daba59000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3dab751000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3dab53b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3dab171000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3daaf53000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3daad4f000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f3daab4c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3dacd66000
$ ldd /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/DataStructs/cDataStructs.so
	linux-vdso.so.1 =>  (0x00007fff80ddd000)
	libDataStructs.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/DataStructs/../../../../libDataStructs.so.1 (0x00007ff27d053000)
	libRDBoost.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/DataStructs/../../../../libRDBoost.so.1 (0x00007ff27ce4b000)
	libpython2.7.so.1.0 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/DataStructs/../../../../libpython2.7.so.1.0 (0x00007ff27ca68000)
	libRDGeneral.so.1 => /anaconda/envs/_test/lib/python2.7/site-packages/rdkit/DataStructs/../../../../libRDGeneral.so.1 (0x00007ff27c83b000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff27c52c000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff27c224000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff27c00e000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff27bc44000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff27ba26000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff27b822000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007ff27b61f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff27d6d5000)

Looking at those, I finally realize the significance of your remark that you are using Boost_USE_STATIC_LIBS=ON. This could cause a problem because of the way type conversion is handled between python modules (the global map between types and converters may end up not actually being global). Please try turning that OFF (or not explicitly setting it to be ON when you invoke cmake) and see if the problem still occurs.

Please try turning that OFF (or not explicitly setting it to be ON when you invoke cmake) and see if the problem still occurs.

The problem does not occur when I dynamically link to boost. But if possible, I'd really prefer to statically link to boost. Is static linking on linux a supported configuration?

I believe that it's not possible with boost::python, but I've never investigated this.

If that's the case, then you might consider turning off the option in CMake.


Error creating machine: Error detecting OS: OS type not recognized

Hi,
I am unable to create default on a fresh install of windows 64.
Extensive google searches turned up nothing helpful on the topic.
Hardware specs:
Asus H170-Plus D3, Intel G4400 (3.3 dual core), 14 gig 1333 ddr3, ATI 6800 Eyefinity.
( Internet over Ethernet cable with no proxies. )
Software:
Windows 10 pro 64bit, fresh install and updated drivers.
Docker for Windows beta. [ Docker starts successfully ]
Docker Toolbox.
Kitematic
Cygwin with OpenSSH.
Hyper-V enabled.
( Currently no anti-virus or firewall installed )
Powershell output
PS C:\Users\USERNAME> docker-machine create --driver hyperv default
Running pre-create checks...
Creating machine...
(default) Copying C:\Users\USERNAME\.docker\machine\cache\boot2docker.iso to C:\Users\USERNAME\.docker\machine\machines\default\boot2docker.iso...
(default) Creating SSH key...
(default) Creating VM...
(default) Using switch "DockerNAT"
(default) Creating VHD
(default) Starting VM...
(default) Waiting for host to start...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Error creating machine: Error detecting OS: OS type not recognized
PS C:\Users\USERNAME>

Footnote
The first time docker runs I get this error:
Docker daemon is not running
   at Docker.Core.Pipe.NamedPipeClient.TrySend(String action, Object[] parameters)
   at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters)
   at Docker.Core.Backend.BackendClient.Start(Settings settings)
   at Docker.Actions.DoStart(Settings settings, Boolean showWelcomeWindow)
   at Docker.Actions.<ResetToDefault>b__18_0()
   at Docker.Core.TaskQueue.<.ctor>b__16_0()

After a reboot the error goes away and docker starts without showing any errors.
Thanks.

Were you able to fix? I have same error Win Server 2012

Nope, I decided to trash windows and install Linux as my primary operating system and haven't looked back. Good luck getting it working.

@SplicePHP You need to follow this blog to enable external switch (e.g: Virtual Switch (Main)) and then your command will look like that: docker-machine create --driver hyperv --hyperv-virtual-switch "Virtual Switch (Main)" default
Hope it works.
Thanks.

@Jkaveri
It works. Thanks!!
For more information, the default Virtual Switch of Docker named DockerNat. The main purpose of this step is to configure the external of docker-machine by using real wifi device, I think.

I ran into the same issue as well and this got me running too. Thanks! Docker on WIN 10!
**When selecting external network connection type make sure that you point to Intel gigabit network connection. Mine defaulted to my network adaptor and caused some crashes when calling out to the internet before I found it.

I ran into this error on Windows Server 2016.  The --hyperv-virtual-switch command did not fix it for me.  I launched hyperv manager and learned that the default switch name was just nat but that didn't help.

I am facing same issue,,,
1.docker-machine create --driver hyperv default
Error with pre-create check: "no vswitch found. A valid vswitch must be available for this command to run. Check https://docs.docker.com/machine/drivers/hyper-v/"

windows crap

I fixed this issue by connecting the virtual switch through an Ethernet connection in Hyper-V Manager. Connecting through wireless was causing the OS type not recognized error. The wireless signal goes through VPN so maybe this was causing the issue.

How long does it take to create the machine? Its stuck at "waiting for host to start"

I have also encounter this issue,
I guess the root cause is: I did not stop minikube correctly.
Because I met following error when I tried to stop it
error stopping host: minikube: exit status 1
then I stopped it by running: minikube ssh and sudo poweroff
then when I tried to start minikube, I met OS type not recognized
I fixed it like below:
Turn off minikube vm in hyper-v and start minikube again

@Jkaveri
It works. Thanks!!
For more information, the default Virtual Switch of Docker named DockerNat.
The main purpose of this step is to configure the external of docker-machine by using real wifi device, I think.
And the root cause of this error is docker-machine cannot connect with boot2docker.

is that extranl device is wifi  device causing this promble?

@Jkaveri
It works. Thanks!!
For more information, the default Virtual Switch of Docker named DockerNat.
The main purpose of this step is to configure the external of docker-machine by using real wifi device, I think.
And the root cause of this error is docker-machine cannot connect with boot2docker.

@kimcu-on-thenet
figure it out. some wifi device seems not so compatible with docker-machine.i change external switch to even iphone enthernet provider and everything works fine.


Added Contributing.md (Issue 49)

This is a sample contributing file I came up with for the project.

@tstreamDOTh @hkedia321 if we wish to add/modify anything.

Done


Refactor some code in Lowerer to add a bailout to a helper call instruction

@dotnet-bot test this please

@dotnet-bot test this please

@dotnet-bot test Windows x86_release please


Crash with Futurepack installed

Version of Advanced Rocketry
1.16.5-1.7.1-8
Have you verified this is an issue in the latest unstable build

[x] Y

Version of LibVulpes
1.16.5-1.0.1-14
Version of Minecraft
1.16.5
Does this occur without other mods installed

[x] N

If Y, what is the MINIMUM set of mods required.
Futurepack

Crash report and log, or VisualVM snapshot (if applicable)
https://pastebin.com/3BYRUVt7
https://pastebin.com/32kJRqEE
Description of the problem
After the build process of a rocket completes, the game crashes. I have reported this to Futurepack as well: https://github.com/mcenderdragon/Futurepack-API/issues/788

Is AR internal using fake chunks or worlds ? because zmaster587.advancedRocketry.util.StorageChunk.<init>
passes a World  object with null for its Dimensions RegistryKey<World> and this then causes the NUllPointer exception

Yeah, our rockets/space station containers (only on launch) use a fake world to store/render/allow the player to interact with blocks.

Does it use a null RegistryKey as Dimension key ?

@zmaster587 You'd need to weigh in on that, I haven't touched it other than knowing some of the absolute basics.

I think I can work around this, but I did not realy expect it to be null. You should be able to create a unregistered instance pretty easily if you want.

There's no registration done at all for the world, it only exists really as a hack (originally built in 1.7) to be able to sync inventory contents so the player's world is swapped only for a few frames to get the tile reference ( and then swapped back. ).
I didn't think it would really cause any issue because unless you're doing stuff on the rocket itself anyway it shouldn't really be called at all.  Though apparently given the report here it looks like gatherCapabilities or something is called.
Truth be told, I've not figured out how to actually register worlds in code in 1.16 yet since that's all seemed to have changed from 1.12 and most of it still appears obfuscated/private.

AR Version: 1.16.5-2.0.0-12
Conflict with FP still causes a crash when trying to build a rocket.
crash-2021-05-12_08.39.19-server.txt


Start without Debug and Start with Debug button not available in right click menu

"Start without Debug" and "Start with Debug" buttons not showing at all for stand alone python file
Steps to Reproduce

Create any Empty Console application
Create and add the new module.py into the project
Open module.py
In code editor right click to open the context menu
"Start without Debug" and "Start with Debug" are not shown at all according to the article

Expected behavior
The two buttons on the context menu shown without any problem in 2019, but not in 2022
Additional context and screenshots

Sample Code
import sys
print(sys.path)

Diagnostics file
Diagnostic Info 2023-03-01T181944.txt

This does not reproduce for me in Python projects. Looking at the log, it sounds like all the project files in your solution are .vcxproj, so this is a C++ project with a Python file in it? If so, this would be expected behavior - each project system is in charge of running things in its own project, and, of course, the C++ one wouldn't know what to do with Python.

@int19h It works in VS2019, but not VS2022.


Images not found

when i run my image dadaset,alwayes wrong,can not find the image ,like that:No such file or directory，but i don not think the reason  is image path,because,if i run it again,the number of wrong image will be changed.

If by "if i run it again,the number of wrong image will be changed." you mean that the actual image that is not found changes, that is probably due to the way we sample batches from a list of images and only load them afterwards.
To me a path starting with train_image/home/ubuntu/... does not make sense. Probably something went wrong with the way you used the image_root argument. The image root is prepended to the files descriptions in the dataset csv files and that is used as the final image path. Maybe you use --image_root train_image while giving full file specifications in your csv files?
This is not a bug on our side though. Make sure your image paths are valid. Feel free to comment if that still does not work. I'm closing this though.

Thank you very much for your reply. I have solved this problem only because of the inconsistency of image size in my data set. Now I am training. I find loss is very low. I think I should stop training, because the training after that is not very effective. So I went to the evaluation section, but I didn't understand what you said about the.. embeddings. H5 file. How did it generate? Is it automatically generated in experience after training, or do you make. H5 files by yourself? I hope you can explain it in detail.

hank you very much for your reply. I have solved this problem only because of the inconsistency of image size in my data set. Now I am training. I find loss is very low. I think I should stop training, because the training after that is not very effective. So I went to the evaluation section, but I didn't understand what you said about the.. embeddings. H5 file. How did it generate? Is it automatically generated in experience after training, or do you make. H5 files by yourself? I hope you can explain it in detail

Thank you very much for your answer. Now I have new doubts. I can't start. I hope you can give me a reply as soon as possible
------------------ 原始邮件 ------------------
发件人: "Alexander<EMAIL_ADDRESS>发送时间: 2019年7月30日(星期二) 晚上8:31
收件人<EMAIL_ADDRESS>抄送: "1317054806"1317054806<EMAIL_ADDRESS>主题: Re: [VisualComputingInstitute/triplet-reid] Images not found (#82)
If by "if i run it again,the number of wrong image will be changed." you mean that the actual image that is not found changes, that is probably due to the way we sample batches from a list of images and only load them afterwards.
To me a path starting with train_image/home/ubuntu/... does not make sense. Probably something went wrong with the way you used the image_root argument. The image root is prepended to the files descriptions in the dataset csv files and that is used as the final image path. Maybe you use --image_root train_image while giving full file specifications in your csv files?
This is not a bug on our side though. Make sure your image paths are valid. Feel free to comment if that still does not work. I'm closing this though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

How to generate the embeddings is discussed in the Readme. I cannot explain it more clearly than already done there.


Keybindings for Powershell or Windows commandline

Category

[ ] fzf binary
[ ] fzf-tmux script
[ ] Key bindings
[ ] Completion
[ ] Vim
[ ] Neovim
[ ] Etc.

OS

[ ] Linux
[ ] Mac OS X
[ *] Windows
[ ] Windows Subsystem for Linux
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[ ] fish

Did you check https://github.com/kelleyma49/PSFzf?


⚠ Samsung has degraded performance

In 05ad388, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2946 ms

Resolved: Samsung performance has improved in 23c6baa.


VectorLayerOptions does not use the same generic type as VectorLayer

Describe the bug
VectorLayerOptions does not have the same generic type as VectorLayer

To Reproduce
Use a VectorLayer by instantiate it with a VectorLayerOptions:
(options?: OLVectorLayerOptions<OLFeatureLike>) => new OLVectorLayer<OLFeatureLike>(options)
See that the required types are not the same since the v9.2.1.
Before the v9.2.0, the types were both VectorSource.
Expected behavior
We can instantiate a VectorLayer with an Option object that uses the same required generic type as VectorLayer.
Such as ClusterLayer and ClusterLayerOptions for example

@KyllianGautier The type of the Options has to include the source, because the options are used for several BaseVector layer subclasses. For the VectorLayer, the source type is determined and does not require generics. Does this cause a real-life problem?

@ahocevar Ok, I understand. I tryed to adapt, but I still have some very strange problems with the typing :
Here I created a factory to instantiate a VectorLayer:

Maybe you got some of the imports wrong? This works fine for me:
import { FeatureLike as OLFeatureLike } from 'ol/Feature.js';
import { Options as OLBaseVectorLayerOptions } from 'ol/layer/BaseVector.js';
import OLVectorLayer from 'ol/layer/Vector.js';
import OLVectorSource from 'ol/source/Vector.js';

export const vectorLayer = <F extends OLFeatureLike>(options?: OLBaseVectorLayerOptions<OLVectorSource<F>>) => new OLVectorLayer<F>(options);

@ahocevar Unfortunately, I have errors in typescript trying your solution:

Thanks @KyllianGautier, you are right. In #15843 I made it so the options and the layer have the same generics again - both the FeatureType, no longer SourceType<FeatureType>.

@ahocevar thanks for this fix. I still have issue with typing in typescript :'(
I am able to give a TileLayer<TileSource> as a Layer<Source, Renderer>.
But I can't give a VectorLayer<FeatureLike> as a Layer<Source, Renderer>.

I'm sorry to disturbing you, but I don't find solution, and I don't know how to get the info to understand if I'm doing something wrong.

But I can't give a VectorLayer as a Layer<Source, Renderer>.

Correct, that's no longer the type signature.

You can test a simple example of the typing problem in Typescript:
export const vectorLayer: OLVectorLayer<OLFeatureLike> = new OLVectorLayer<OLFeature>();

That's also expected. There is no inheritance relationship between the allowed types of FeatureLike - Feature and RenderFeature only have a small subset of a common API. So you have to decide when you declare the variable what you're going to store there. The following will work.
export const vectorLayer: OLVectorLayer<OLFeature> = new OLVectorLayer<OLFeature>();

Thanks for the details. I tried what you proposed, and I still have issues in Typescript:

@KyllianGautier  You're still using the old type signature for the options. This should now be:
import { Feature as OLFeature } from 'ol';
import OLVectorLayer, { Options as OLVectorLayerOptions } from 'ol/layer/Vector.js';
import OLVectorSource from 'ol/source/Vector.js';

const options: OLVectorLayerOptions<OLFeature> = {
  source: new OLVectorSource<OLFeature>()
}

@ahocevar Ok, problem solved, thanks for the support.
I have an additional question about the Layer.getSource() method. How can we type the source returned by a VectorLayer ?
If I use a Custer source for example, I instantiate a VectorLayer with this cluster source, and i'm not able to use the Cluster source specific methods such as setDistance() or setMinDistance():

In #15869, the source type is added back as 2nd type parameter to vector and vectortile layers.


Sentry not reporting on processes dying on uncaught exit() or throw()

Environment

Elixir version (elixir -v): 1.11.2
Erlang/OTP version (erl): 23.0.4
Sentry version (mix deps): 8.0.4
Operating system: OS X
Is this an umbrella application?: yes
Release type (Distillery, mix release, Mix, etc.): release

Description
Inside of call, Sentry.PlugCapture only rescues from it's try block, it does not catch in addition to rescue.
See https://github.com/phoenixframework/phoenix/blob/6f87ef24d02e6afc2634b4c42b20b1b5d89aebe5/lib/phoenix/endpoint.ex#L614-L631 for an example where Phoenix has very similar code in both a rescue block as well as a catch block.
Expected Behavior
If an request dies because of an uncaught exit/1 or throw/1, this error will be reported to Sentry.
Actual Behavior
Sentry does not capture this event.
Steps to Reproduce

Create a phoenix app with sentry logging.
Have an endpoint that triggers an exit, either call exit/1 directly or do something like GenServer.call(:some_non_existant_name, :foo, [])
Phoenix will return a 500 for the request, but nothing will be captured in Sentry

See https://github.com/phoenixframework/phoenix/issues/4099 which is related.

https://elixir-lang.org/getting-started/try-catch-and-rescue.html

Thank you for the report and pull request, I will take a closer look soon!


Build a transport and provide credentials later

Is your feature request related to a problem? Please describe.
I have a small program which prompts the user for credentials (usually via a password manager) and sends an email.
Right now, I need the credentials before I can create the lettre::transport::smtp::SmtpTransport instance, which means that connecting to the server is blocked until the user provides the password.
This gives an impression of the program being "slow", since after the user provide the password, my program still takes a while (since it has to do the entire process of establishing a connection).
I'd like to create a SmtpTransport that starts connecting to the remote server but allows me to provide the password later (when available). Essentially, I'd like my program to create an SmtpTransport and have that establish the connection in the background while the user provides the password.
The end result would be that less work is blocked while the password is being provided (by connecting to the server concurrently to this password prompt).
Describe the solution you'd like
Maybe lettre::transport::smtp::AsyncSmtpTransportBuilder can have a connect method, which returns an lettre::transport::smtp::AsyncConnectedSmtpTransportBuilder; a builder that is establishing a connection but also still missing credentials.
Describe alternatives you've considered

Simply prompting for the password and then initiating the connection is viable, it just results in a slower user experience.
I'm open to alternative solutions to the problem; hence my focus on describing the use case clearly.

Additional context
I mentioned that I'm using the synchronous API but switching to the async one is not an issue for me.

You may already be able to do it through the SmtpConnection API, although I have to admit it doesn't really get much love so it's very rough.

Oh, that seems like it should work. I should call .connect(), .starttls() and finally .auth() once I have the credentials, right? I'll give that a shot.
I think that lettre::transport::smtp::client::AsyncSmtpConnection is the best fit for my use case, I'll give that a shot and report  back, thanks!

Thanks for the help here, I managed to implement this and trim 1s of runtime when sending a message.
I've a question pending regarding this API: for the lettre::transport::smtp::client::AsyncSmtpConnection::connect_tokio1 method, what is the local_address parameter? Is it used to force the usage of a specific local address? I've specified None and things work. I assume this means "use any local address"?

Thanks for the help here, I managed to implement this and trim 1s of runtime when sending a message.
I've a question pending regarding this API: for the lettre::transport::smtp::client::AsyncSmtpConnection::connect_tokio1 method, what is the local_address parameter? Is it used to force the usage of a specific local address? I've specified None and things work. I assume this means "use any local address"?

Correct. It's used to bind the connection to a specific address. https://docs.rs/tokio/latest/tokio/net/struct.TcpSocket.html#method.bind


docs: update diagram

Just a suggestion, recently I've started to use mermaid chart and it works great for sequence diagrams.


Native thread exiting without having called DetachCurrentThread

Using Android OpenTok SDK v2.18.0
After ending the call by calling
mSession.unsubscribe(mSubscriber); mSession.unpublish(mPublisher); mSession.disconnect();
In the Logcat i can see this warning,
W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[57,tid=2791,Native,Thread*=0x55974d2880,peer=0x12c75e20,"Thread-218"]

I am unable to reproduce this.
Can you provide a sample project?

We are unable to reproduce this, so I will close it for now.


If the image is downloaded and then the kernel panic occurs, the image file may be empty.

Description
When image is downloaded, the files may still be in the page cache, but the metadata of image has already been saved to boltdb. If the kernel panics at this point, some files in the image may not be written to disk, it's empty after reboot. Unfortunately, containerd believes that it already has a complete image, so it will not attempt to pull the image again in the future.

Steps to reproduce the issue

pull image
trigger coredump
check file in the snapshot after reboot

Describe the results you received and expected
The file is completed not empty.
What version of containerd are you using?
v1.6.9
Any other relevant information
nop
Show configuration if it is related to CRI plugin.
No response

duplicated with https://github.com/containerd/containerd/issues/5854

/cc @elfinhe
/cc @bobbypage
/cc @qiutongs
/cc @samuelkarp

/assign @ike-ma

/cc @dmcgowan
/cc @fuweid

/assign @ike-ma


Using local matjax script

Hello, is it possible to use local matjax script? from file system, without network request?

I'm using webpack, so actually I'm more interested in importing MathJax script from node_modules for example. Is it possible?

Have you found any solution?

Simply pass your local url as source:
  <MathJax.Context
          input="tex"
          script="/MathJax/MathJax.js"
>

Ok I'll try this and will let you know.

Any updates of how this worked out? I'm currently receiving a
MathJax.js:19 GET http://localhost:8080/MathJax-2.7.5/extensions/MathZoom.js?V=2.7.5 net::ERR_ABORTED 404 (Not Found)`
with the same error for the MathMenu extension when trying this option. I've also tried unzipping and importing the entire MathJax project into my project (with the hopes of extracting what is absolutely necessary later) to no avail.
Any example projects/code of doing this would be greatly appreciated 👍


Split web.py

Try to split huge web.py into smaller modules.
@fafhrd91 if you like the way I can move forward.

lgtm

Small suggestion: instead of to prefix all files by web_, you should create a folder: web
web.py should be init.py file in this new folder.

IIRC @fafhrd91 want to have flat file structure.

@GMLudo +1, subpackage aiohttp.web sounds to be better idea for module split.

This discussion is more religious that technical, but yes, at least for me, it will be more clear to have aiohttp.web in a folder.

Flat.
-10 for sub package

For my understanding, is it possible to know your arguments in favor of a flat design ?

It is just easier to observe what package has.

@asvetlov maybe we should use 'all' for web_xxx modules?

@fafhrd91 sorry, I don't follow your suggestion. Where do you want to put 'all'?

Already done, but my opinion is also +1 to subpackage.

@asvetlov

i think web_ws.py should be part of web_reqrep.py
also i think web_app.py should be web.py
web_exceptions.py should have __all__, and web.py should use web_exceptions.all instead of explicit list

changed

@fafhrd91 ok with moving web_app back to web.py and __all__ usage.
You have broken flake8 checks BTW.
I'd like to keep code base in good state for pep8 and pyflakes checkers.
Would you repair the problem or let me make a fix?

What version of flake do you use?
What error do you get? My tests passes

Sorry, I have had pep8 1.5.
pep8 1.6 has fixed regression from 1.5.


Map parsed data into DynamoDB Table Item

Map each parsed file into Table Item

Creating complex data for DynamoDB Item can be very treaky.
Look for some library that solves it

Solved with custom Jackson Serializer for JsonNode.
mtime and birthtime are incorrect, gradle create new file at build time. Check if it's possibile to copy file keeping stats

birthfime not supported in Unix and FileAttributes replaces it with lastModifiedTime

moved i18n folder into :project/app folder to avoid copy in build fase to prevent override of lastModifiedTime.