Build a landing page for starter kit

This pull request addresses Issue #47 .
This page contains landing page with the following sections:

Hero section
Feature section
Pricing section
FAQ section

Thank you, this looks good.
I have the following suggestions. Let me know if you have time to address it. Assuming the site content stays mostly the same, we prefer the landing page to be built as a static site. We may not need the APIs routes for pricing, faqs, etc. Sorry, we were not clear about this in the task description. I think we can use the getStaticProps to replace it. This way, we can pre-render the pages and cache them. What do you think?

Yes, It make sense, I removed the API routes and now the page data is rendered directly from those JSON files. Please review and let me know if anything is needed.

@Saptarshee94 Thanks for making the changes. Please see my comments below.
npm run build gives me the following error, can you take a look at this?
./components/ui/FAQSection.tsx
4:21  Error: Unexpected empty object pattern.  no-empty-pattern
15:37  Error: Missing "key" prop for element in iterator  react/jsx-key

./components/ui/FeatureSection.tsx
4:25  Error: Unexpected empty object pattern.  no-empty-pattern
15:37  Error: Missing "key" prop for element in iterator  react/jsx-key

./components/ui/HeroSection.tsx
4:22  Error: Unexpected empty object pattern.  no-empty-pattern

./components/ui/PricingSection.tsx
4:25  Error: Unexpected empty object pattern.  no-empty-pattern
14:33  Error: Missing "key" prop for element in iterator  react/jsx-key
23:57  Error: Missing "key" prop for element in iterator  react/jsx-key

@Saptarshee94 Thanks for making the changes. Please see my comments below.
npm run build gives me the following error, can you take a look at this?
./components/ui/FAQSection.tsx
4:21  Error: Unexpected empty object pattern.  no-empty-pattern
15:37  Error: Missing "key" prop for element in iterator  react/jsx-key

./components/ui/FeatureSection.tsx
4:25  Error: Unexpected empty object pattern.  no-empty-pattern
15:37  Error: Missing "key" prop for element in iterator  react/jsx-key

./components/ui/HeroSection.tsx
4:22  Error: Unexpected empty object pattern.  no-empty-pattern

./components/ui/PricingSection.tsx
4:25  Error: Unexpected empty object pattern.  no-empty-pattern
14:33  Error: Missing "key" prop for element in iterator  react/jsx-key
23:57  Error: Missing "key" prop for element in iterator  react/jsx-key

Fixed linting errors. Please recheck.

Thank you for this contribution.


The great python3.8 purge [0] (python < 3.5)

Description of changes
part of: https://github.com/NixOS/nixpkgs/issues/312288
This series of pull requests aim to drop support for old python 3 version that have reached end of life (python3 < 3.8). The goal of this maneuver is to simplify some python packages from theses outdated conditionals behaviors. It would also mean dropping packages that were mean for theses version such as functools32 or enum34
In the current state, there is many affected packages that needs the mentioned cleanup:

python version
3.0
3.2
3.3
3.4
3.5
3.6
3.7

packages affected
3
2
17
28
106
554
2001

Meanwhile, nixpkgs does not support python38Packages at top level, and only the support for Python 3.11 and 3.12 is continuously guaranteed (at the date of writing).
As i discussed with @wegank, we came to the conclusion that it would be better to split this pull requests into manageable chunks that affects < 200 files each.

see: Status of Python versions

from PyPI website, they also currently support python 3.10, 3.9, and 2.7.
I am unsure on how to treat python 2.7 packages, and open for discussions about it.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Looks good to me apart from that nit.

Ran nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD":


Update how-to-connect-staged-rollout.md

Synchronize userPrincipalName updates
Customers who are coming from Third Party to AzureAD (Created before March 2019) This feature is not turned on by default. Due to this the changes made to UPN doesnt get updated to the Cloud. Could be good, if we add this into pre requisite

Docs Build status updates of commit 7381f76:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/active-directory/hybrid/how-to-connect-staged-rollout.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@billmath

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Checking with engineering

This has been open for awhile and I have not been able to get confirmation from engineering on the change.  I will continue to follow-up with them.  In the meantime, we can close this and re-open it once I get confirmation or I will add the addition on my end.  Thanks.
#please-close

Hello Rahul,
Thank you for the wait here.
As per your request here is the information.
Could you please provide a brief background of what is this change and why is it required? I saw your comment on the PR however, I could not understand it fully. What is SynchronizeUpnForManagedUsers used for?
USE CASE:
Staged rollout is used to move customers from federation to managed scenarios and this is not limited for Microsoft ecosystem This feature is on by default for newly created Azure AD directories.
Talking about SynchronizeUpnManagedUsers, , if customers are new to azuread who are moving from PING (example - US BANK, CATERPILLAR and the tenant was created before 2016) this piece of information was missing.
Talking about the use case, most of the customers once they move to AzureAD through successful staged rollout and removed federation, they tend to change UPN of the user to be unique and they change this in Active Directory. However, if the feature is disabled on their tenant they attempt these changes in bulk they don't get these changes and cause authentication issues.
The fix is enable the feature and create custom PowerShell script to make the UPN changes and whatever new changes happens that will be done through AADConnect.
Hence, I wanted this to be added as a pre requisite check for the customer who are switching from staged rollout to managed authentication.
Please let me know if you have any questions.
Regards,
Hemanth
From: Bill Mathers @.>
Sent: Friday, January 13, 2023 12:23 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Hemanth Varyani @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Update how-to-connect-staged-rollout.md (PR #98488)
This has been open for awhile and I have not been able to get confirmation from engineering on the change. I will continue to follow-up with them. In the meantime, we can close this and re-open it once I get confirmation or I will add the addition on my end. Thanks.
#please-close

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fpull%2F98488%23issuecomment-1382349275&data=05|01|HEVARY%40MICROSOFT.COM|9f8b2bca028543d552b408daf5a3ec04|72f988bf86f141af91ab2d7cd011db47|1|0|638092381645304641|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=mgQC1L5ncYqGuhVGyMq5z7ijFVzJJGgyhYoBWaUADUs%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI6SFZSWXNHZVHOIDIINH2LWSG2RDANCNFSM6AAAAAAQNBLC7M&data=05|01|HEVARY%40MICROSOFT.COM|9f8b2bca028543d552b408daf5a3ec04|72f988bf86f141af91ab2d7cd011db47|1|0|638092381645304641|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=wpsnq%2FOkchjqDaEZJpp6hBM2l31biO8BIRjItpUkEfY%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


Fundamental team structure / gameplan

Description
Reach full team allocation (internal and external) and ensure the team's ability to see the project through.
In scope
Out of scope
Additional information
Establish clarity in the team through a joint living document (gameplan). Include project description, team, roles, network and guidelines as well as success criteria, dependencies, challenges and goals, vision, gains and roadmap.
Implementation
Dependencies
No dependencies identified
### Tasks
- [ ] https://github.com/digdir/dialogporten-frontend-react/issues/1
- [ ] https://github.com/digdir/dialogporten-frontend-react/issues/3
- [ ] https://github.com/digdir/dialogporten-frontend-react/issues/4

Overordnet beskrivelse

Closing epic as done.


[WIP] [MAIN] [SRVKS-1123] Performance patches

What this PR does / why we need it:

Adds patches to main for performance tests

Closing in favor of https://github.com/openshift-knative/serving/pull/503


The generated test should not contain a try-catch block

Characteristics

Issue Type: feature
Severity: minor
Reporter: @monperrus

Description
The generated test should not contain a try-catch block because it is expected that a JUnit reproducing a crash fails.

For this issue, you can pass -Dcatch_undeclared_exceptions=FALSE to Botsing as an input parameter.

Ok, I'll set it to false by default


#IE8 : 'Error: This command is not supported' with e-type="password"

When I try to use e-type="password" with IE8, the browser displays this error when I click on the text to edit the field:
Error: This command is not supported.
Here is my test code:
********
NB: This code works fine with Chrome, Firefox, Safari, IE9+
Thanks!

It seems like we can't change dynamically a type of an input in IE8 :(
By adding "password" as an allowed type in the x-editable module and by changing the attribute "editable-text" by "editable-password" all is working in IE8+, Chrome, Firefox, Safari :+1:
var types = 'text|email|tel|number|url|search|color|date|datetime|time|month|week|password'.split('|');
********

Password support was fixed in 0.1.11.


Textures of some vehicles flickering

as on image
MULE:

BENSON:

I think this might be caused by loading all the signs and them being in the exact same place.

@GoverLabs  that was very well investigated 👍 I wasn't even aware of these "extras". Yeah, this seems like a good issue to start with.
Having a look at the wiki page, I found there is a bit more to it than described. They have a link at bottom which leads to: https://gtaforums.com/topic/530575-tutcomponent-rules/ . There is more detailed explanation how it works.
We already have CARS ide section parsed, it's in VehicleDef.cs. So basically, all we need to do is, when creating a vehicle, check the VehicleDef.CompRules and enable corresponding "extra" object. This would probably be done in Vehicle.Initialize().
You can also send me PM in discord for quicker response.


JOSS submission skeleton

JOSS requires a paper folder that holds two main file, the first one is for the manuscript and the other for bibliography.
The pull request
https://github.com/SevgiAkten/pycell/commit/b8ce4a93e5420eebf218fb8ad49334985857bcfe
implements the sample manuscript.

The markdown commands are well-explained in the example:
https://joss.readthedocs.io/en/latest/example_paper.html

With the commit: https://github.com/SevgiAkten/pycellga/commit/81a8f39d4aa7306822b4ada3fc8dc625e98299ff
we can preview the pdf. Note that this tool is only for previewing issues, the JOSS rendered files look different.

With the commit: 81a8f39
we can preview the pdf. Note that this tool is only for previewing issues, the JOSS rendered files look different.

Thank you, got it.

Do not think about styling

I think the issue is resolved.


DeprecationWarning for OutgoingMessage.prototype._headers

Accessing the HTTP server throws a DeprecationWarning for OutgoingMessage.prototype._headers on Node version 12.3.1.
const puppeteer = require('puppeteer')
const httpServer = require('http-server')
const server = httpServer.createServer({ root: 'dist/html/' })
server.listen(8080)

const browser = await puppeteer.launch({
  headless: true,
  args: ['--no-sandbox', '--disable-setuid-sandbox']
})

const page = await browser.newPage()
await page.goto('http://localhost:8080', { waitUntil: 'networkidle0' })

What did you expect to happen?
No deprecation warning.
What actually happened?
Got the following warning:
(node:59243) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

If the issue is a feature request, what is the motivation / use case for it?
Tell us about your environment

http-server version: 0.11.1
Platform: Mac (Node 10.14.5 12.3.1)

https://github.com/flatiron/union/pull/64

The same occurs when using http-server from the command line. I wonder if this could be resolved?

I am having the same problem when running http-server (local).
I have a simple angular app:
1 - ng build --prod
2 - go to dist/{name-app}
3 - run http-server
when browsing the url i get the following error:

This is an issue in union (flatiron/union#64) which we're planning to remove from http-server down the road (#483). I'm not going to close this issue though, to ensure we make sure it goes away after #483 is resolved.

node -v 10.x is solved. thanks

Is there an ETA when this will be resolved?

Continuing @rsail 's comment: ... and what can we do in the meanwhile (as a quick hotfix)?

Always the problem with very latest build (April 2021). An estimated ETA or fix would be greatly appreciated

Over 2 years now. How much longer until this is fixed?

I was running another server on same port (using XAMPP server). I stopped XAMPP and restarted my cmd and its working now.

Still the bug alive? or it is solved?

This is an upstream bug in the dependency union, which is more or less unmaintained. #483 seeks to remove it, but it will take some substantial work. For the time being, I'm not aware of plans to imminently remove the _headers property in Node, so we're not at a crisis point yet. I may not have the time to get to #483 for a while, and would welcome any PRs.

Still happening

Can't believe it's now 2022 and the problem still exists... Orz

Can't believe it's now 2022 and the bug still exists... Orz

I have met the same error

+2

+3

Any updates on this?

Might be useful to spin a new version of union fixing just this…?

平安已经收到你的邮件啦

This issue is still not fixed yet!!

Howdy, still not fixed

same problem

Same problem on Nx monorepo with node v19.7.0

Another passer-by surprised by this bug. Was looking for a small Node static web server to run a static site so I can Playwright tests against it during development/CI. This project seems to fit the bill, but this warning is unfortunate.

same problem.

Same here

Same with node v18.15.0 :(

Please fix..

Temporary solution is to suppress Node.js warnings:
NODE_NO_WARNINGS=1 npx http-server .

try npm audit fix --force

As the status says - the issue is still open ;-;


RELEASE

Coverage increased (+9.3%) to 87.52% when pulling f7d8746fd62d6225cb1b17fedaf3c0b9c6427e96 on develop into 9f5f1ac13da1e26f6fffcd9d41f131b67f68ff71 on master.

👍


Boilr flatpak is broken on bazzite for steam deck, but works fine on my pc (bazzite nvidia)

Describe the bug
Whenever I try to open boilr on my deck it just never opens, and crashes.
tristan@bazzite:~$ flatpak run io.github.philipk.boilr
Could not load platform amazon, gave error: Unknown platform named amazon
Could not load platform playnite, gave error: Unknown platform named playnite
Could not load platform gamepass, gave error: Unknown platform named gamepass
interface 'wl_surface' has no event 2
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: /run/build/boilr/cargo/vendor/glutin-0.30.8/src/api/egl/surface.rs:220

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
warning: queue 0x55619f06c7d0 destroyed while proxies still attached:
  xdg_wm_base@27 still attached
  wl_output@15 still attached
  zwp_text_input_manager_v3@14 still attached
  xdg_activation_v1@13 still attached
  wl_subcompositor@12 still attached
  zwp_relative_pointer_manager_v1@11 still attached
  zwp_pointer_constraints_v1@10 still attached
  wl_seat@9 still attached
  wl_shm@8 still attached
  wp_fractional_scale_manager_v1@7 still attached
  wp_viewporter@6 still attached
  zxdg_decoration_manager_v1@5 still attached
  wl_compositor@4 still attached
  wl_registry@2 still attached

What did you expect to happen?
For boilr to open and show me a GUI
Output of rpm-ostree status
tristan@bazzite:~$ rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:67bb1f9dd52a420f080fd67e71a60bb6f732c12bacab7d27476dfbdca601c757
                  Version: 40.20240427.0 (2024-04-27T22:36:59Z)
          LayeredPackages: sunshine

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:b8cc9aa32ee1dde43c920fcd373a0e7b5d3c89eca810c93402fea9969455bc5d
                  Version: main (2024-04-25T06:48:14Z)
          LayeredPackages: sunshine

Hardware
Operating System: Bazzite 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-302.fsync.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Custom APU 0405
Memory: 11.5 GiB of RAM
Graphics Processor: AMD Custom GPU 0405
Manufacturer: Valve
Product Name: Jupiter
System Version: 1
Extra information or context
Sorry if this is the wrong place to make an issue, I don't know whether to report it here or at Boilr's github.

same for me

Same issue on the ROG Ally, running v40.20240508.0

Can confirm the issue on my ROG Ally.
I can confirm crashing in the same way:

boilr flatpak
boilr appimage
corekeyboard


fix(docs): updated docs for all the components that had issue on classNames prop type

Closes #3216
📝 Description
Components that classNames props had the wrong type specified on their documentation page. This fixes for all those components.
⛳ Current behavior (updates)

Please describe the current behavior that you are modifying

🚀 New behavior

Please describe the behavior or changes this PR adds

💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
There are a lot of files but all have similar kind of change. Changed Record<UnionType, string> to Partial<Record<UnionType, string>> for each component classNames type.

Summary by CodeRabbit

Documentation

Updated the classNames property across multiple component documentation files to use Partial<Record<...>> type, allowing for partial custom class names for various component slots. This change provides more flexibility in customizing the appearance of components such as Autocomplete, Avatar, Badge, Breadcrumbs, Calendar, Card, Checkbox, Chip, CircularProgress, DateInput, DatePicker, Dropdown, Image, Input, Listbox, Modal, Navbar, Pagination, Popover, Progress, RadioGroup, Skeleton, Slider, Snippet, Spinner, Switch, Table, Tabs, Textarea, TimeInput, Tooltip, and User.

@aayush-goyal as discussed internally, this change may make it longer. We may need another approach. Can you DM me via discord for the discussion? My discord ID is same as my github one.


Target availability isn't updated while the address doesn't change

Steps to Reproduce

Paste the address of an offline node in transfer's target input field in dApp
Make the node become online/available
After some time, turn the target node offline again

Expected Result

After #653
Identicon color should turn online, Target is offline message should be gone
After target going offline, Identicon border should again turn gray and Target is offline error should show up again.

Actual Result

Availability status doesn't change. Logs show the update was picked up by SDK but wasn't reflected on the UI. One needs to clear the input field then paste the address again to trigger the status change.

 The event comes, should update vuex state, and if we bind the status change directly to the reactive property, it should work, instead of evaluating on change, for example.

Not a bug, as this behavior was not expected:

Acceptance criteria
Check availability as soon as a valid address is inserted

Ok, this was the requirement at the time.
I want to use this issue to request this feature, that the behavior matches the one I described, as I think this would be more consistent and actually should be simple to implement with Vue's capabilities.

The store state should already know about the updates presence, the difficult part is updating the address input component which is quite complex and has a lot of component level state. But can definitely be done

@andrevmatos Thanks for testing the feature extensivly :)
It should be an enhancement.

Currently there is an issue that should be tackled together with this enhancement because it's quite related. I will add this to the top description and add the bug label again


fix(compiler-core): should force dynamic slots when using scope vars in dirs

close: #2564

The actual cause:

v-on has its own special expression processing (it's skipped in transformExpression)
However, it is not replacing the original exp on the directive node, so the scope ref check is checking the non-processed expression node.

The fix is ensure v-on replaces the original exp with the processed one so the scope ref check can work properly.
See 9db70959


Typo in v2 forms

In v2 beta there's a typo in packs/forms/inputs.css on line 6. A space is needed.

ty!

do you need this published to the beta channel for use, or you cloning and reaching in?

@argyleink I wasn't using the forms just yet. I just happened to take notice. I have it referenced from your Github repo in my package.json. "open-props": "github:argyleink/open-props#2.0.0beta"


Stop tracking removed files and modules

After a file is removed

its md5 should not be tracked anymore and
its module should not be tracked in mod_deps

Hi, thanks for the PR! Can you explain a little bit about what problems occur without this change and why this is needed in addition to the removal that happens on line 351?
https://github.com/elixir-lsp/elixir-ls/blob/457e16d3e58a5cac00d501b74d44884554d0f0bf/apps/language_server/lib/language_server/dialyzer.ex#L351

I added some extra JsonRPC calls to get more output from ElixirLS in vs code and I noticed that a file I already removed is still being tracked (passed in state.removed_files to compile/2 on each build).
The expected behaviour would be to stop tracking removed files.
This was done by removing file's md5 hash from md5 map that is used by ElixirLS.LanguageServer.Dialyzer to identify changed and removed files on builds.
But there's also mod_deps map that is tracking module dependencies (as provided by :dialyzer_analysis_callgraph) so that we can reanalyze changed modules and also their dependants.
When a module is removed we should stop tracking it as a dependency of other modules, because it may lead to their unnecessary reanalysis.
(On a side note, I think there may still be some issue with the module deps tracking, because it sometimes reanalyzes less modules than are actually recompiled after a change. That was the reason I started "digging" in the first place, but didn't fully resolve it yet)


BEMCheckBoxGroup Header

I'm using this with Carthage (not by choice) and it seems like the Framework Carthage generates doesn't have the Group header file. I'm not sure what the issue is, maybe it needs some configuration updates in the Framework's Xcode project?

Thanks for opening this issue.
I think that the issue probably comes from the fact that I haven't released a new version with the Group features yet. They're therefore available on the master branch, but not on Cocoapods nor Carthage yet.

Well we have our Carthage file set to use the HEAD on master so I don't think it's a version issue. I really think it's some sort of configuration issue, I just don't use Carthage enough to know what it is.

Thanks for the feedback @Vortec4800. Let me take a look at that.

I think that the issue comes from the fact that the header file for BEMCheckBoxGroup is not public.
I'll fix that later on today.

I made a few changes that should solve the issue on the banch bug/43Header. Could you confirm that it works for you now from this branch @Vortec4800?

That did the trick, I think you're good to merge it.

Thanks for your help @Vortec4800!

Still getting this. Installed via Cocoapods, showing versions 1.4.1. Xcode 8.3.3 (8E3004b)


Very old and undocumented project

Steps to reproduce

Recebi um projeto muito antigo e sem documentação de um amigo. Estou tentando ajudar, mas não tenho muita experiência com flutter, estou tendo dificuladades de executar o projeto.

I received a very old project without documentation from a friend. I'm trying to help, but I don't have much experience with flutter, I'm having difficulties executing the project.
Actual results

Tentei fazer o null safety trazendo o projeto para a versão 2.19 executnado os comandos flutter pub outdated --mode=null-safety e flutter pub upgrade --null-safety, mas esbarro na necessidade de atualziar o android para Android embedding v2.

I tried to do the null safety by bringing the project to version 2.19 running the flutter pub outdated commands --mode=null-safety and flutter pub upgrade --null-safety, but I ran into the need to update android to Android embedding v2.

Criei alguns projetos para testar a instalalção do ambiente de desenvolvimento, e esta tudo ok.
Preciso fazer algumas manutenções no projeto, mas não consigo executar.

I created some projects to test the installation of the development environment, and everything is ok.
I need to do some maintenance on the project, but I can't execute it.

Desde já agradeço quem possa me ajudar. Segue o projeto

I thank anyone who can help me in advance. Follow the project
projeto
Logs

Logs
Showing dependencies that are currently not opted in to null-safety.
[✗] indicates versions without null safety support.
[✓] indicates versions opting in to null safety.

Package Name             Current    Upgradable  Resolvable  Latest

direct dependencies:
connectivity             ✗0.4.6     ✗0.4.9+5    ✓3.0.6      ✓3.0.6
dart_ping                ✗1.0.0     ✗1.0.0      ✓6.1.2      ✓9.0.1
flutter_image_compress   ✗0.6.5+1   ✗0.6.8      ✓2.0.0      ✓2.3.0
flutter_launcher_icons   ✗0.7.4     ✗0.7.5      ✓0.9.3      ✓0.14.1
flutter_masked_text      ✗0.8.0     ✗0.8.0      ✗0.8.0      ✗0.8.0
flutter_signature_pad    ✗2.0.1     ✗2.0.3      ✓3.0.1      ✓3.0.1
geolocator               ✗3.0.1     ✗3.0.1      ✓8.0.5      ✓13.0.2
http                     ✗0.12.0+4  ✗0.12.2     ✓0.13.3     ✓1.2.2
image_picker             ✗0.6.2+2   ✗0.6.7+22   ✓0.8.4+1    ✓1.1.2
intl                     ✗0.16.1    ✗0.16.1     ✓0.18.1     ✓0.20.1
json_annotation          ✗3.0.0     ✗3.1.1      ✓4.0.1      ✓4.9.0
json_serializable        ✗3.2.3     ✗3.5.2      ✓4.1.4      ✓6.9.0
keyboard_avoider         ✗0.1.2     ✗0.1.2      ✓0.2.0      ✓0.2.0
location                 ✗2.3.5     ✗2.5.4      ✓4.4.0      ✓7.0.1
permission_handler       ✗3.3.0     ✗3.3.0      ✓8.1.6      ✓11.3.1
photo_view               ✗0.7.0     ✗0.7.0      ✓0.15.0     ✓0.15.0
positioned_tap_detector  ✗1.0.3     ✗1.0.3      ✗1.0.3      ✗1.0.3
rflutter_alert           ✗1.0.3     ✗1.1.0      ✓2.0.7      ✓2.0.7
shared_preferences       ✗0.5.4+8   ✗0.5.12+4   ✓2.0.7      ✓2.3.3
sms                      ✗0.2.4     ✗0.2.4      ✗0.2.4      ✗0.2.4
timeline_list            ✗0.0.5     ✓0.0.6      ✓0.0.6      ✓0.1.1

dev_dependencies:
build_runner             ✗1.7.1     ✗1.11.5     ✓2.1.2      ✓2.4.13

13 upgradable dependencies are locked (in pubspec.lock) to older versions.
To update these dependencies, use `flutter pub upgrade`.

18  dependencies are constrained to versions that are older than a resolvable version.
To update these dependencies, edit pubspec.yaml, or run `flutter pub upgrade --null-safety`.

Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project.

Flutter Doctor output

Doctor output

<!-- Paste your output here -->

[√] Flutter (Channel stable, 2.0.0, on Microsoft Windows [versÃ£o 10.0.19045.5198], locale pt-BR)
    • Flutter version 2.0.0 at C:\flutter
    • Framework revision 60bd88df91 (3 years, 9 months ago), 2021-03-03 09:13:17 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\emers\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Common Files\Oracle\Java\javapath\java.exe
    • Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.23+7-LTS-222)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.95.3)
    • VS Code at C:\Users\emers\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.108
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 131.0.2903.70

! Doctor found issues in 2 categories.

You can find the migration guide for the android embedding here https://docs.flutter.dev/release/breaking-changes/androidx-migration
See https://dart.dev/null-safety/migration-guide for a guide on the null safety migration.
The project you're working on has packages that does not support null safety, so you'll probably need to remove them.
Your project and flutter version are all too old, your best bet would be to create a new project and migrate the files into that one.
Closing from here as the versions being used here are no longer supported.
Thank you


Add support for embedding a Grid of iframes on the UI

🚀 Feature

When creating a collection of works with their own UI, the only option is to create a tab for each one of them. Unfortunately, I had X works, this would probably don't work well.
I believe it would be interesting to investigate the introduction of arrangement on the UI while embedding the iframe.
The simplest one that I can think of is the Grid.
Here is the possible API.
from lightning import LightningFlow
from lightning.app.frontend.layout import Grid

class Flow(LightningFlow):

    def configure_layout():
        tab = [{"name": "Sagemaker": "content": ...}]
        tab_grid = [{"name": "Sweep": "content": Grid(*[
            {"name": w.name, "content": w} for w in self.works()
        ])}]
        return tab + tab_grid

Motivation

Pitch

Alternatives

Additional context

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @borda

There can be performance implications with rendering too many (10+) iframes on a single page at the same time. Basically, the browser is restricted on how many HTTP connections it can have open at once, and when 10+ iframes are all loading in their HTML/CSS/JS/fonts/images/etc, it can cause the page to load very slowly (more than a minute, depending on internet speed).
I agree we should explore different ways to declaratively generate layouts for app UIs, but I'm not sure that adding more iframes is the answer. If anyone in the community has experience with this type of thing, we would love to hear your thoughts.


[REQUEST] List all contributers on the settings page at the bottom to give them some deserved screen time

As title says!

Closed due to #146


Remove left margin in django admin when viewport width is less than 767px

Django 2.x responsive admin compatibility.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   92.13%   92.13%
=======================================
  Files           6        6
  Lines         229      229
=======================================
  Hits          211      211
  Misses         18       18

Continue to review full report at Codecov.

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

Has it been tested with earlier versions of Django?

As I suspected, this change is incompatible with the current 1.11 LTS version. Please fix this.


Return non-zero exit codes when there is an application failure

docblox always exits 0 indicating success. This fix enables non-zero exit codes on failure so that you can properly check for failure in ant and other automated build tools

Broken in development?

Development branch contains a very early version of v3. You cannot use this version. Or do you mean anything else?


Unable to generate and propagate custom InputEvent class objects

Tested versions
v4.2.1.stable.official [b09f793f5]
System information
Arch Linux
Issue description
The way the input system (specifically Input.parse_input_event() currently works it appears that it is impossible to create your own derived InputEvent class (such as a sub-class of InputEventScreenTouch) and then pass objects of that type to the input event queue through Input.parse_input_event(). The event objects go through the queue and propagate fine, but they are stripped of their sub-class identity, since the parse_input_event() casts and checks each of its hard-coded classes in turn, then passing that cast variant on to the queue. That makes it impossible to identify the correct event type in any receiving code.
Steps to reproduce
Create a sub-class of any InputEvent class and pass it to the input queue.
Minimal reproduction project (MRP)
HeatTest.zip

I can confirm, that this is the current behavior and it works as intended.
So your suggested change is more of a feature proposal, then a bug report.
May I redirect you to https://github.com/godotengine/godot-proposals which is a more appropriate place for these and suggest, that you create a proposal for the change there?

Ok, that's fine then. Proposal generated.


fix: findByPage panic bug

[x] Do only one thing
[ ] Non breaking API changes
[ ] Tested

What did this pull request do?
fix findByPage panic bug

User Case Description

The PR does not seem to fix the root cause


Replace pycrypto

Possibly with https://github.com/Legrandin/pycryptodome

Hi @ljdursi
Thanks for bringing this up, it seems like the pycrypto is being used in multiple packages including jwt, jwkest, oic, but we can probably replace it with the one you mentioned without too much extra work as our packages are installed in virtualenv.

Just a quick note, it looks like oic and pyjwkest are the two packages that specifically require pycrypto

You are right @HaoyuanLi; I should have done this

pycrypto==2.6.1 and pyjwkest==1.0.1
have been replaced in the authz branch by
pycryptodome==3.6.5 and pyjwkest==1.4.0


Create a testing harness

We should have a testing harness akin to supertest in nodejs. That is, calling the harness would look something like:
use thruster::test;
use super::my_app::{Context, init};
...
  let app: App<Context> = init();
  let test_app = test::wrap(app);

  let result = test_app.get("test/route");

  assert!(result == "Hello, world!");

It might make sense to automatically wrap the response in an object as well?

Resolved by #64


Adding Keyvault client library

Can one of the admins verify this patch?

:+1::sparkles:Ship It:sparkles::shipit:


Getting confused about where to keep the dataset

Can anyone help me with the links to download the dataset required to run this repo?

Same problem. Please provide the links for all the datasets used in the repo.

@chiranjeev1111  and @nishat0403
You can download the LUNA16 dataset from the  http://luna16.grand-challenge.org and kaggle dataset it is not available on the kaggle  site. place a request for that.

and how to place them? like i have the luna dataset but i dont know where to place them

#13  take look at this.

Can you tell me which kaggle dataset to download? because there are two datasets which are for lungs

@bundelesneha05 @chiranjeev1111
I tried that link. It doesn't give the download option. It says data is available on competition site (kaggle dsb) but I kaggle is not providing the data. Please can someone give the proper link for download?
@chiranjeev1111 you say there are two datasets, where did you find these?
If possible can someone provide the download link directly, maybe from some cloud??

@bundelesneha05 how to place the request on kaggle for dataset? Did you get the dataset? If yes then how? It would help me alot.
Thank you.

I read somewhere that Kaggle closed off the dataset.

Link about it?
On Fri, Jun 22, 2018 at 5:30 PM, Julian de Wit<EMAIL_ADDRESS>wrote:

I read somewhere that Kaggle closed off the dataset.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/juliandewit/kaggle_ndsb2017/issues/54#issuecomment-399418972,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AmbfUA0Ex4mDM6vMHjSKz7zdRR6a1G2Eks5t_NxxgaJpZM4Uxnyk
.

--
Thanks,
Chiranjeev Pawar


RAG

Hi sir again! Do you plan to add some content for RAG? If not I'd like to sum some content and push them here.
Best Regards,

Hi, yes this is a very important component of the LLM Engineer Roadmap.
Feel free to propose changes when it's published!
On Fri, Jan 12, 2024 at 7:24 PM Samedov Zaur A. @.***>
wrote:

Hi sir again! Do you plan to add some content for RAG? If not I'd like to
sum some content and push them here.
Best Regards,
—
Reply to this email directly, view it on GitHub
https://github.com/mlabonne/llm-course/issues/30, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATL5EGTFTU3FY6FOO636DVLYOGEXLAVCNFSM6AAAAABBYTFTRWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TSNJUHAYTSMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Add optimisation pass for pattern

Rewrite things like ns = [0, 999_999_999] to ns = [] (wildcard) before passing the pattern to Pattern_resolver.resolve (or handle it inside Pattern_resolver.resolve) to remove unnecessary performance penalty - very noticeable now since ns level pattern has been introduced.

Partially addressed: added optimisation pass during construction via Timere.pattern, but no further optimization is done during Timere.union right now.


Config issue

I got this error when running make all
dial tcp <IP_ADDRESS>:0: connect: can't assign requested address
How to fix that?
I've added .envrc in my root directory

Hey mas @imantung ,
regarding this issue, I fixed it.
Please see my PR https://github.com/imantung/typical-go-server/pull/2


Unfortunately, Modulz repo is not a tool but "An open-source UI component library" and it was acquired recently

Hi! I love what you guys are doing at RunaCapital, it helps drive awareness towards great OSS tools. I'm in the design space so I'm curious about anything relevant on that field (other than Penpot, of course). Modulz is listed as an alternative to Figma but the repo you link is about open UI components, sort of a designers toolkit, but not a tool. Their tool would be this one https://www.modulz.app/ but it has never released any alpha or beta and very recently they announced they had been acquired by WorkOS https://www.modulz.app/blog/modulz-acquired-by-workos. It doesn't look very good for the future of that tool.
I would suggest you change the description for Modulz. Do you need a specific pull-request or will you do it yourselves?

hey @diacritica
Thanks a lot for highlighting this! PR is always welcome :)
Regarding other OSS design tools, you might be interested to take a look at https://webstudio.is/ (aka alternative to WebFlow). It is not in the list yet, I will add it soon :)

Hi Igor!
Sounds great! We know plasmiq, which could be seen as an OSS alternative to
webflow (we use it for that purpose). I will take a look at webstudio.is,
thanks!
Shall I send a PR changing the Modulz listing then?
Best!
Pablo
On Tue, 12 Jul 2022 at 15:04, Igor Kotua @.***> wrote:

hey @diacritica https://github.com/diacritica
Thanks a lot for highlighting this! PR is always welcome :)
Regarding other OSS design tools, you might be interested to take a look
at https://webstudio.is/ (aka alternative to WebFlow). It is not in the
list yet, I will add it soon :)
—
Reply to this email directly, view it on GitHub
https://github.com/RunaCapital/awesome-oss-alternatives/issues/136#issuecomment-1181735647,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMIFTFGM3VUYMGOXVZHALTVTVUODANCNFSM53KOO6EA
.
You are receiving this because you were mentioned.Message ID:
@.***>

yep, feel free to send a PR :)


required changes for latest airflow

Description
With airflow moving on we need to incorporate the changes in the image as well
Fixes
With the old packages, airflow doesn't even start anymore in the container. This is fixed now.
The new image also contains the slack provider for airflow so that we can send status updates to slack.

Codecov Report

Merging #128 (55218f2) into master (0f7c6db) will increase coverage by 0.97%.
The diff coverage is n/a.

:exclamation: Current head 55218f2 differs from pull request most recent head b96feef. Consider uploading reports for the commit b96feef to get more accurate results

@@            Coverage Diff             @@
##           master     #128      +/-   ##
==========================================
+ Coverage   92.97%   93.95%   +0.97%
==========================================
  Files          22       24       +2
  Lines         840      976     +136
==========================================
+ Hits          781      917     +136
  Misses         59       59

Flag
Coverage Δ

gha
93.95% <ø> (+0.97%)
:arrow_up:

python-3.9
93.95% <ø> (+0.97%)
:arrow_up:

unit
93.95% <ø> (+0.97%)
:arrow_up:

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

Impacted Files
Coverage Δ

...t_nightlies/tasks/install/hypershift/hypershift.py
100.00% <0.00%> (ø)

...tlies/tasks/install/prebuilt/initialize_cluster.py
100.00% <0.00%> (ø)

...ags/openshift_nightlies/tasks/install/openshift.py
98.30% <0.00%> (+0.05%)
:arrow_up:

dags/openshift_nightlies/tasks/index/status.py
96.55% <0.00%> (+0.12%)
:arrow_up:

dags/openshift_nightlies/util/var_loader.py
96.15% <0.00%> (+0.23%)
:arrow_up:

dags/openshift_nightlies/util/manifest.py
97.14% <0.00%> (+0.56%)
:arrow_up:

dags/openshift_nightlies/util/executor.py
94.73% <0.00%> (+0.61%)
:arrow_up:

dags/openshift_nightlies/dag.py
97.16% <0.00%> (+0.76%)
:arrow_up:

Continue to review full report at Codecov.

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


feat: Allow constant nats as type args

I recommend reviewing commit by commit
Closes #214

Codecov Report
Attention: Patch coverage is 74.85380% with 43 lines in your changes missing coverage. Please review.

Project coverage is 90.67%. Comparing base (a461a9d) to head (b03962f).

Files
Patch %
Lines

guppylang/tys/arg.py
21.05%
15 Missing :warning:

guppylang/tys/param.py
57.14%
9 Missing :warning:

guppylang/tys/const.py
77.41%
7 Missing :warning:

guppylang/tys/ty.py
85.00%
6 Missing :warning:

guppylang/tys/builtin.py
44.44%
5 Missing :warning:

guppylang/tys/subst.py
94.11%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #255      +/-   ##
==========================================
- Coverage   90.90%   90.67%   -0.24%
==========================================
  Files          44       44
  Lines        4839     4954     +115
==========================================
+ Hits         4399     4492      +93
- Misses        440      462      +22

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


Fix working with UNC paths and reparse points on Windows

What does this PR do?
Fix working with UNC paths (Samba folders / Shared VM folders / etc)
https://github.com/Nuitka/Nuitka/issues/2767
Why was it initiated? Any relevant Issues?
https://github.com/Nuitka/Nuitka/issues/2767
Now it works on windows both with UNC paths mapped to folder and even unmapped UNC paths (\\somecomp\somefolder).
PR Checklist

[x] Correct base branch selected? Should be develop branch.
[x] Enabled commit hook or executed ./bin/autoformat-nuitka-source.
[V] All tests still pass.

On windows tests only on Python 3.12 (several hours)
On Linux failed on Python 2, but looks python 2 broken on my box

I think no documentation changes needed.
About tests, theoretically in possible checking working UNC paths on Windows, I can try to write it if needed, but not sure that possible to cover nontrivial cases (Windows Sandox, Hyper-V shared folders, etc).

So, this is a bit ugly, as it became too big of a code, I will move it out to a function after merge.


Feature request: Only report unjustified issues

I tried turning on emails reports, but these emails are filled with issues that have already been justified, which makes these reports far too noisy. I only want to be informed of unjustified issues so I can more easily identify and respond to new, unresolved issues.
This can be accomplished by simply changing the code here:
https://github.com/Netflix/security_monkey/blob/e261f7ce344a194616a42086957426e871f5871c/security_monkey/auditor.py#L721
This would be changed to:
for issue in item.db_item.issues:
    if not issue.justified:    # Added to avoid reporting previously justified issues
        item.totalscore = item.totalscore + issue.score

Good idea. Should add another if-statement as well:
if not issue.justified and not issue.fixed:
On Thu, Oct 19, 2017 at 9:10 AM Scott Piper<EMAIL_ADDRESS>wrote:

I tried turning on emails reports, but these emails are filled with issues
that have already been justified, which makes these reports far too noisy.
I only want to be informed of unjustified issues so I can more easily
identify and respond to new, unresolved issues.
This can be accomplished by simply changing the code here:
https://github.com/Netflix/security_monkey/blob/e261f7ce344a194616a42086957426e871f5871c/security_monkey/auditor.py#L721
This would be changed to:
for issue in item.db_item.issues:
if not issue.justified:    # Added to avoid reporting previously justified issues
item.totalscore = item.totalscore + issue.score
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Netflix/security_monkey/issues/844, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AHo1piGvpaVgcfTs9f80_LQKg0c46an2ks5st3SRgaJpZM4P_e16
.

Hey @0xdabbad00  - Are you able to PR the fix for this or would you like me to take care of it?

@monkeysecurity Probably easiest for you to PR it.  I've also noticed that I receive reports for issues for audit checks that I've disabled and will try to find how that is happening as well.  For example, the report emails include "Cert has expired" messages, but under Settings -> "Auditor Settings" I've disabled that check.

That should work.  Thank you!


Fatal error: Duplicate keys of type 'Endpoint' were found in a Dictionary

Describe the bug
In my app, I used AWS SDK to fetch files from S3 or Aliyun OSS.
On app starting, some S3 files did load to local and no issue found.
I added code like these:
class Updator {
  private let updateQueue = DispatchQueue(label: "update_apps")
  private let client: S3Client

  func update() {
    updateQueue.asyncAfter(deadline: .now() + .seconds(300)) {
      Task(priority: .background) {
         do {
           try client.listObjects(...) // or getObject, CRASH here
           // code to process files
         } catch { log error }
         self.update() // run next time
      }

Whole stack trace:
Fatal error: Duplicate keys of type 'Endpoint' were found in a Dictionary.
This usually means either that the type violates Hashable's requirements, or
that members of such a dictionary were mutated after insertion.
Current stack trace:
0    libswiftCore.so                    0x0000ffffa33acea4 _swift_stdlib_reportFatalError + 92
1    libswiftCore.so                    0x0000ffffa30caacc _assertionFailure(_:_:flags:) + 188
2    libswiftCore.so                    0x0000ffffa319d81c KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTS(_:) + 604
3    libswiftCore.so                    0x0000ffffa319cf58 _NativeDictionary.resize(capacity:) + 0
4    libswiftCore.so                    0x0000ffffa3123824 _NativeDictionary.setValue(_:forKey:isUnique:) + 196
5    libswiftCore.so                    0x0000ffffa30f531c Dictionary.subscript.setter + 344
6    central_server                     0x0000aaaab4266284 <unavailable> + 21717636 // my app
7    central_server                     0x0000aaaab42672c8 <unavailable> + 21721800
8    libswift_Concurrency.so            0x0000ffffa35b2e30 <unavailable> + 273968
9    libswift_Concurrency.so            0x0000ffffa35b3650 swift_job_run + 92
10   libdispatch.so                     0x0000ffffa38babf8 <unavailable> + 175096
11   libdispatch.so                     0x0000ffffa38ba960 <unavailable> + 174432
12   libdispatch.so                     0x0000ffffa38c6c04 <unavailable> + 224260
13   libc.so.6                          0x0000ffffa288d5c8 <unavailable> + 513480
14   libc.so.6                          0x0000ffffa28f5d1c <unavailable> + 941340

I was print something before and after list or get, only before text printed.
If I'd batter use another way to update data with time interval, I can change it.
Expected Behavior
Make it never crash.
Current Behavior
Process was exit
Reproduction Steps
In my case, the update task would run with interval 5 minutes, the app was crashed about 10+ times at yesterday night, and re-launch with supervisor.
Possible Solution
I don't know about the crash location, I just think the actor may work to protect memory from multi-task.
Additional Information/Context
No response
AWS SWIFT SDK version used
0.13.0
Compiler and Version used
5.8
Operating System and version
Ubuntu 22.04

@shawnclovie Thanks for your report.  We'll take a look & see if we can reproduce & fix the issue.  If we need more info, we'll reach out here.

Hi @shawnclovie
I am unable to reproduce this issue.
Can you provide more details and more a complete code example to help debugging?
Additionally, can you use the listObjectsV2 operation instead of listObjects. The S3 service team recommends using listObjectsV2 and only exposes listObjects for backwards compatibility.
Lastly, it is not recommended to intermingle GCD with structured concurrency.  I suggest updating your code to only use structured concurrency and see if that helps fixing the issue.
Below is the code I used to attempt to reproduce this issue.
The code will end up calling listObjectsV2s 6 times and it succeeds every time.
import AWSS3

class Updater {
    let client: S3Client
    var count: Int = 0

    init(client: S3Client) {
        self.client = client
    }

    func update() {
        Task.detached(priority: .background) {
            try await Task.sleep(nanoseconds: NSEC_PER_SEC * 5)
            do {
                let result = try await self.client.listObjectsV2(input: //...))
                print(result)
            } catch {
                dump(error)
            }
            self.update()
        }
    }
}

let client = try await S3Client(region: "us-east-1")
let updater = Updater(client: client)
updater.update()
try await Task.sleep(nanoseconds: NSEC_PER_SEC * 30)

@epau Thank you advise! I'll update my code ASAP.

After I updated my code - no longer use DispatchQueue, use listObjectsV2 instead.
The error still happen on Ubuntu , and it would never happen on macOS.
Here is how I create client:

struct AWSCredentialsProvider: CredentialsProvider {
	let secretID: String
	let secretKey: String

	func getCredentials() async throws -> AWSCredentials {
		AWSCredentials(accessKey: secretID, secret: secretKey, expirationTimeout: nil, sessionToken: nil)
	}
}

struct EndpointProvider: EndpointResolver {
	let endpointURL: URL

	func resolve(params: EndpointParams) throws -> ClientRuntime.Endpoint {
		.init(host: endpointURL.host ?? "", path: endpointURL.path,
			port: Int16(endpointURL.port ?? 443),
			protocolType: .init(rawValue: endpointURL.scheme ?? "https"))
	}
}

// either endpoint or region would be passed.
func s3client(endpoint: URL?, region: String?, secretID: String, secretKey: String) async throws {
	let credentialsProvider = AWSCredentialsProvider(secretID: secretID, secretKey: secretKey)
	let config: S3Client.S3ClientConfiguration
	if let region {
		config = try S3Client.S3ClientConfiguration(
			credentialsProvider: credentialsProvider,
			region: region)
	} else {
		config = try await S3Client.S3ClientConfiguration(
			credentialsProvider: credentialsProvider,
			endpointResolver: EndpointProvider(endpointURL: endpoint))
	}
	return .init(config: config)
}

I tried use region: "ap-northeast-1" and endpoint: URL(string: "http://service-resources.oss-cn-shanghai.aliyuncs.com")!.
And then I tried create client every time update() invoking.
But the error still happen.

I have take another try and got some log before crash:

Use endpoint get object from Aliyun OSS:

{"ts":"2023-04-10T13:08:15.403+08:00","level":"info","msg":"Request: GET https:443
Path: /publication/latest_version/DE0C925EB128.main
x-amz-user-agent: aws-sdk-swift/1.0,
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,
Host: service-resources.oss-cn-shanghai.aliyuncs.com,
Authorization: AWS4-HMAC-SHA256 Credential=SECRET_ID/20230410/oss/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-user-agent, Signature=c2feccf931fb33d5e0062a25e965dd9733b64ebe4c1bbcae225988839ab4dcc7,
User-Agent: aws-sdk-swift/1.0 api/s3/1.0 os/linux lang/swift/5.8,
X-Amz-Date: 20230410T050815Z \n Optional([x-id=GetObject])","source":"Logging",
"file":"Middlewares/LoggerMiddleware.swift#32#handle(context:input:next:)"}
{"ts":"2023-04-10T13:08:15.403+08:00","level":"info",
"msg":"Creating connection pool for Optional(\"https://service-resources.oss-cn-shanghai.aliyuncs.com/publication/latest_version/DE0C925EB128.main?x-id=GetObject\")with max connections: 50","source":"Logging",
"file":"CRT/CRTClientEngine.swift#60#createConnectionPool(endpoint:)"}
Fatal error: ...

Use region get object from S3:

{"ts":"2023-04-10T13:17:42.751+08:00","level":"info","msg":"Request: GET https:443
Path: /publication/latest_version/5F0C024C1985.main
Authorization: AWS4-HMAC-SHA256 Credential=SECRET_ID/20230410/ap-southeast-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-user-agent, Signature=40e3916d824f23d823de1613867f57c8bfad4aeb89a6cbea1bb9616a69108163,
x-amz-user-agent: aws-sdk-swift/1.0,
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,
User-Agent: aws-sdk-swift/1.0 api/s3/1.0 os/linux lang/swift/5.8,
Host: es-service-resources.s3.ap-southeast-1.amazonaws.com,
X-Amz-Date: 20230410T051742Z \n Optional([x-id=GetObject])","source":"Logging",
"file":"Middlewares/LoggerMiddleware.swift#32#handle(context:input:next:)"}
{"ts":"2023-04-10T13:17:42.752+08:00","level":"info",
"msg":"Creating connection pool for Optional(\"https://es-service-resources.s3.ap-southeast-1.amazonaws.com/publication/latest_version/5F0C024C1985.main?x-id=GetObject\")with max connections: 50","source":"Logging",
"file":"CRT/CRTClientEngine.swift#60#createConnectionPool(endpoint:)"}
Fatal error: ...

Some \n have been replaced to newline.

While we are still not able to reproduce this crash ourselves, we have found & are correcting a bug that is related to the "Duplicate keys" error message reported above.  Fix: https://github.com/awslabs/smithy-swift/pull/548
We plan to ship this fix in the next version of the AWS SDK for Swift.  We will update on this ticket when it has been published, so you can retest and see if this fix clears your issue.

@shawnclovie We have released AWS SDK for Swift v0.15.0 with a potential fix for this crash:
https://github.com/awslabs/aws-sdk-swift/releases/tag/0.15.0
Please update your app to this SDK version, and see if the crash continues to occur.  Thanks!

I upgraded my app with AWS SDK 0.15.0, but crash still happened, there are same error message.
But I got more detail with gdb -
#0  0x0000ffff8e1faa88 in $ss17_assertionFailure__5flagss5NeverOs12StaticStringV_SSs6UInt32VtF ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswiftCore.so
[Current thread is 1 (Thread 0xfffedfa89080 (LWP 1504404))]

(gdb) bt
// libswiftCore.so
#0  0x0000ffff8e1faa88 in $ss17_assertionFailure__5flagss5NeverOs12StaticStringV_SSs6UInt32VtF ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswiftCore.so
#1  0x0000ffff8e2cd980 in $ss53KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTSys5NeverOypXpF
    () from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswiftCore.so
#2  0x0000ffff8e2538b0 in $ss17_NativeDictionaryV8setValue_6forKey8isUniqueyq_n_xSbtF ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswiftCore.so
#3  0x0000ffff8e22536c in $sSDyq_Sgxcis ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswiftCore.so

// in app binary
#4  0x0000aaaae0d75564 in $s13ClientRuntime15CRTClientEngineC14SerialExecutorC25getOrCreateConnectionPool8endpoint09AwsCommonB3Kit010HTTPClientJ7ManagerCAA8EndpointV_tKF ()
#5  0x0000aaaae0d765f8 in $s13ClientRuntime15CRTClientEngineC7execute7requestAA12HttpResponseCAA03SdkG7RequestC_tYaKFTY1_ ()

// libswift_Concurrency.so
#6  0x0000ffff8e7c0d1c in swift::runJobInEstablishedExecutorContext(swift::Job*) ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswift_Concurrency.so
#7  0x0000ffff8e7c155c in swift_job_run ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libswift_Concurrency.so
#8  0x0000ffff8e9b7cd8 in _dispatch_continuation_pop ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libdispatch.so
#9  0x0000ffff8e9b7a40 in _dispatch_async_redirect_invoke ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libdispatch.so
#10 0x0000ffff8e9c408c in _dispatch_worker_thread ()
   from /opt/swift-5.8-RELEASE-ubuntu20.04-aarch64/usr/lib/swift/linux/libdispatch.so
#11 0x0000ffff8f27751c in start_thread (arg=0xfffee57e13ef) at pthread_create.c:477
#12 0x0000ffff8daeb22c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78

@shawnclovie That's unfortunate and apologies you are still having this issue.
Would it be possible to provide us with a complete code example that reproduces this crash for you?

@epau I'll make a repo that can reproduce the crash after I finished critical job on my hand, and then tell you here.

I made this, and tested on Ubuntu 22, and got same error like above after 4th time update() running.
https://github.com/shawnclovie/TestVapor
@epau Could you please check it?

@shawnclovie Thanks for the test project.  I was able to reproduce the issue on Amazon Linux 2 immediately on app startup.  We will continue investigating; hopefully I can now verify for myself when the issue is actually fixed and won't have to put you through another round of testing our changes.

We have traced the cause of this crash to a bug in the Linux implementation of Foundation, namely that the Foundation type URLQueryItem does not properly implement the Hashable protocol on Swift for Linux.  Here is a bug ticket I filed with them:
https://github.com/apple/swift-corelibs-foundation/issues/4737
In the meantime, we are preparing a workaround for our SDK that will resolve the issue.  I ran your sample code with the workaround for about two continuous hours this afternoon with no failures, so I am confident this will solve the issue.


InceptionE should use different instances of FloatFunctional

https://github.com/pytorch/vision/blob/master/torchvision/models/quantization/inception.py#L138-L166
We need to use different instances of FloatFunctional at each invocation of cat

need to modify this code and requantize and update the model
cc @raghuramank100 @hx89 @z-a-f

Fixed via https://github.com/pytorch/vision/pull/1954

Updated inception quantized model path in #1969 and updated quantized inception accuracy number in README.md via #1975.


error: unknown option `--color'

Hey I love the concept. Got it installed and running, but when I try and run my tests I get
error: unknown option --color'`
in the body of the screen. I do not have --color in my mocha.opts and am using the default reporter. Do I need to use a specific reporter? Let me know if you need any other details

If submitted #5 to fix this, but I might recommend moving to --no-colors. The colors appear to be dependent on terminal settings. I personally use a dark them. As a result, what is printed in the browser has a dark background applied and it is difficult to read. Or maybe make this configurable.

Thanks, @aray12!
I'm merging #5. I'd love to know more about how your colors are showing up in the browser. I also use a dark theme in my terminal, but the colors in MochaHQ still come through looking good. Would you mind posting a screenshot?

Interesting. Thanks for posting that! I'll have a look as soon as I can.

@aray12 I think I'll just provide a setting to pass custom flags to the mocha command soon. That should allow you to pass in --no-colors. I'll close this issue when I get that out.

@aray12 Sorry I haven't fixed this yet. I've had a job change and a tooling change recently, and haven't been using MochaHQ. If you'd be interested in having commit access, please let me know and I'd be glad to add you.

Hi, wonder if you guys still support this, but I have the same issue and  --no-colors  in mocha.opts doesn't seem to solve it for me.
Here's how it looks:

Hey @adilb99 so sorry, I haven't supported this for years. I'll make a note in the Readme.


[Sema] Require explicit availability on public modules (Landing again after we held it back)

Enabling require explicit availability by default for modules with an API library level was introduced by #61105 and reverted in #61161. We can land this again once the latest OSS toolchain supports the flag -require-explicit-availability=ignore.
rdar://99929744

@swift-ci Please smoke test

@swift-ci Please smoke test


change duration rounding

right now I have duration as a rounded integer for readability and to save memory, but this becomes problematic when trying to model since the outcome variable isn't really reliable (ie, a rounded ride time of 9 minutes could really be 8min and 31 seconds and 9 min and 29 seconds, saying the same thing),  which is a lot of hidden variation). Potential solutions:

round to 1 decimal place, leave in units of minutes.
leave as integer, but change duration units to seconds.

see construct.R line 87

FYI, in the raw files the duration is listed in seconds, rounded to integer

resolved in #30 , I think


React native - add google analytics

We need to include google analytics for react-native using cross-platform analytics changes as a base

@sirpy Google analytics works on the native.
Checked on the Android App [staging] version Version 1.23.1-12 (1346)
Devices: Xiaomi Mi8 // Android 8.1.0
Attachment:
Logs with GoogleAnalytics events - https://app.zenhub.com/files/166818382/5e3aaa22-f546-4ba4-925a-daa82e0d0ecf/download


SUPEE-10415, escaping additional columns in Adyen_Payment_Block_Adminhtml_Sales_Billing_Agreement_Grid

Magento version: <IP_ADDRESS>
Plugin version: 2.9.2/NA
Description
Since the release of SUPEE-10415, extra escaping has been added to Mage_Sales_Block_Adminhtml_Billing_Agreement_Grid:
$this->addColumn('customer_email', array(
            'header'            => Mage::helper('sales')->__('Customer Email'),
            'index'             => 'customer_email',
-           'type'              => 'text'
+           'type'              => 'text',
+           'escape'            => true
        ));

Adyen_Payment_Block_Adminhtml_Sales_Billing_Agreement_Grid however does not include any escaping in the fields it adds https://github.com/Adyen/adyen-magento/blob/develop/app/code/community/Adyen/Payment/Block/Adminhtml/Sales/Billing/Agreement/Grid.php#L68. Escaping for customer_firstname and customer_lastname have been present for a while and since Adyen_Payment_Block_Adminhtml_Sales_Billing_Agreement_Grid adds the field name, thought it might be relevant.
Just wondering whether this is intentional? Or is it indeed a security issue and should be amended?

Hi @tr33m4n,
This is not intentional so let's add the esacping into our grid. Are you able to do a PR with this fix ?
Regards,
Rik
Adyen

Hi @tr33m4n,
We have added this into this PR: https://github.com/Adyen/adyen-magento/pull/960
Regards,
Rik
Adyen


Reformat codebase, add formatting guidelines

In the absence of a standard, the codebase has wrong indentation in quite a few places (inconsistent within the same file)
We should

reformat the whole codebase in a single commit, using a standard formatter and format
add guidelines somewhere

I am moving the code to the git repo of the ASF. Now it's a good time to apply the reformatting before we start forking the ASF repo.

There seems to be some issues with the repo migration. I'll wait until this is complete and submit the patch then (on the apache/incubator-samoa github repo image).

Yeah, I hope to be done soon. Thanks!

Some Machine Learning projects have been following the convention of 2 spaces indent for each level like in Mahout (http://mahout.apache.org) and Oryx (http://github.com/oryxproject/oryx).  I think that should keep Samoa consistent with the other ML projects.

Thanks, let's move the discussion over to the Apache Jira https://issues.apache.org/jira/browse/SAMOA-6
I'll be closing this ticket.


Add a new page Plugin for admins to manage plugins

View the information of plugins
Enable/Disable specified plugins
Upload, share and apply plugins from the local file system

Prerequisites: https://github.com/turms-im/turms/issues/843


Support Place API

Closes #56.
Mostly mirrored from the universe API.

This is an easy one to miss, but please also add the cli/cli-place.md path into the mkdocs.yml configuration file.

Fixed in 486e1b8


Theme doom's content not vertically centered

Describe the bug
My config:
return {
	"glepnir/dashboard-nvim",
	event = "VimEnter",
	config = function()
		require("dashboard").setup({
			theme = "doom",
		})
	end,
	dependencies = { { "nvim-tree/nvim-web-devicons" } },
}

The content goes to the top of my window, not the center of it.

Theme hyper is correct:
return {
	"glepnir/dashboard-nvim",
	event = "VimEnter",
	config = function()
		require("dashboard").setup({
			theme = "hyper",
		})
	end,
	dependencies = { { "nvim-tree/nvim-web-devicons" } },
}

I wonder if it is because the code below is missing in function theme_instance in lua/dashboard/theme/doom.lua:
    local size = math.floor(vim.o.lines / 2)
      - math.ceil(api.nvim_buf_line_count(config.bufnr) / 2)
      - 2
    local fill = utils.generate_empty_table(size)
    api.nvim_buf_set_lines(config.bufnr, 0, 0, false, fill)

I found the code in theme hyper's file. I don't know if it is a bug or a feature.
PS: Forgive my poor English.
To Reproduce
Expected behavior
Screenshots

please waiting for next version

I would also love to see this. Any updates?

I'm also interested in this issue, here is one small thing I noticed, maybe it will help:
I tried to add empty lines at the top of my logo in attempt to temporarily fix the centering issue, but it doesn't have any effect. But when I open some files and then use the Dashboard command to come back, then it looks correct.
Also it behaves differently in Alacritty and in Wezterm. In Alacritty, the empty lines helped.

You can inject spaces into the header itself to get this behavior
but it is kinda hacky
local api = vim.api

local function generate_empty_lines(size)
    local fill = {}
    for _ = 1, size do
        table.insert(fill, "")
    end
    return fill
end

local function center_header(header)
    local size = math.floor(vim.o.lines / 2)
        - math.ceil(#header / 2)
        - 2
    local fill = generate_empty_lines(size)
    return vim.list_extend(fill, header)
end

local header_content = {
  [[                                   ]],
  [[            header                 ]],
  [[                                   ]],
}

return {
    {
        'nvimdev/dashboard-nvim',
        event = 'VimEnter',
        config = function()
            require('dashboard').setup({
                theme = 'doom',
                config = {
                    header = center_header(header_content),
                    ...

I've made a PR #476 for this, but I think it needs more testing. Could someone please check it?


[ResolverGenerator] Ability to customisation location of generated models file

The generated models file is always placed in same directory as the resolvers. This does not play nicely if someone wants to export * files in that directory as resolvers, or use loadResolversFiles from graphql-toolkit.

See: https://github.com/aerogear/graphback/blob/master/packages/graphback-codegen-resolvers/src/ResolverGeneratorPlugin.ts#L15-L23
We need filename for the models.

See: /packages/graphback-codegen-resolvers/src/ResolverGeneratorPlugin.ts@master#L15-L23
We need filename for the models.

filename for the model would still place the file in the same directory as the resolvers file though. I think it should by default be generated elsewhere like src/models or something. It is not a resolver and so should not be in the resolvers folder.

There is the potential for this issue to be obsoleted by https://github.com/aerogear/graphback/issues/1059 - since the model context file is not used by resolvers and so might movec completely to a new ModelGeneratorPlugin. See https://github.com/aerogear/graphback/issues/1059#issuecomment-610815496

Resolver code generation is gone


scrollStop doesn't fire when scrolling in nested element before scrollStop has fired.

Can be fixed by properly isolating scrollstart/scrollstop instances.

Guess this also explains why panelsnap stays so persistent in going to a specific panel while I scroll towards a different panel.

Well, it shouldn't. You should only have issues with it not snapping anywhere when scrolling in a nested element.

Then the issue I described might be another one, but might relate to the nested element.
While panelsnap is animating to a specific panel and you scroll in the opposite direction (while it is animating) it stays persistent in going to the previous location, till you scroll past the panel that it is trying to animate to.

Can you open a new issue with a testcase I can look at, and in which browsers this happens?

Not sure if this is the right place and I am only an enthusiast, but might it be an idea to detect the initial scroll direction and then force that direction (to the next anchor) rather than a rule of proximity and attraction... that may solve the issue of mrksmts's 'persistance' problem and also perhaps the section hight's wouldn't have to be fixed at 100% in order for a more diverse and better user experience?!

You should open another issue for this, as it's unrelated to the issue mentioned as the title of this thread.
Also, his persistence problem has been fixed already as can be seen in the issue he opened.
The way the current system works is that it's detecting an amount of slack around the panel edges, after that it snaps the first panel based on intention / direction, if you scroll more than one panel at once, it rounds to the nearest panel. That's because the plugin fires after the current scroll has come to a standstill. If you end up at two panels and a little bit, it should not skip that panel that almost fully in screen. It doesn't make sense. What you're suggesting is where this plugin came from initially.

I was unaware of that, i am a gitub novice, but really appreciate that you answered :)

I mean, back in the early days this plugin used to work like that. Later on, I replaced that behaviour in favor of the current one.

@Unit60 The plugin is changing behaviour in favor of predictability. Check out the latest build to test this new behaviour: It's always snapping in the direction the user was scrolling.

Fixed in 21bcbe9842a4d8f3ea0620c03dfd2f928814b2d9, this will land with the v1.0 release.


Preparing release v2.0.0

What has to be done for 2.0.0?

I guess we should resolve pending PRs (at least what is possible at the moment) and update CHANGELOG with note on all backward incompatible changes.
There is a lot of your work in the pending PRs so I must run through all of those and see what is ready. I will look into it in the following days.

Understood. Ok.

Will v2.0.0 support python2.7 or are there plans on dropping python2 compatibility?

@zilakmarian There are no plans for dropping Python 2 support yet. We will support it as long as there is a support in the tools we are using for development/testing.
v2.0.0 will be just a start of using semantic versioning where we'll increase major version number with each backward incompatible change. So expect that major versions will increase much faster now, but it should be safe to do upgrades with each minor version change as it shouldn't introduce any backward incompatible change. This way we are better communicating when users should pay attention to the CHANGELOG to see what changes are necessary during upgrade.


2022 07 20 networkpage

PR for preview - do not merge

@d3netxer Been messing with the scss to match this new "Connect" page to the margins on the Resources page. Any chance you could help? (Excuse my messy hacking of the code so far.)


Adding special character erases watch expression

on mac
have a watch expression with hh
edit it and long press the o
a picker showing different variants of o will show (ôöò...)
use arrow keys to select a character
:bug: the watch expression is only that character, erases the hh

I acknowledge the issue but I have no plans to fix it


Editor viewport refreshes even when out of focus

Godot version
3.5 stable
System information
Windows 10
Issue description
Editor viewport keep redrawing its content even when it's out of focus. It becomes problematic when running the game from the editor, as it will be rendering the scene twice, causing double GPU usage. The only workaround is to minimize the editor window when running the game.
Steps to reproduce

Create a 3D project
Run the game from editor
Run process manager and check GPU usage on both Godot instances

Minimal reproduction project
No response

Enable Vital Redraws Only in the top-right corner of the editor:
The reason this isn't done automatically is that you may want to preview animated shaders while working in an external editor (or reading an online resource).

After enabling that option, the editor uses 10% of GPU when not focused (25 at focus), but still I'm observing that the statistic window is updating and animated shader does update in the editor (though it does it a lower framerate).

Perhaps an option in the viewport menu for updating [update always, update only when focused, reduced update when not focused, don't update] would be a good addition. I like that it can update for some things when out of focus, but I agree that if I'm running the game I don't want the editor taking any performance. I am often adjusting shaders or objects in the running game in realtime. On one monitor I have the game up. In another I have the editor up so I can adjust inspector parameters. In this case I don't want the editor viewport taking any performance away from the game.


Article download() failed with 404 Client Error

Hi,
I keep getting this error message - Article download() failed with 404 Client Error: Not Found for url: http://www.foxnews.com/2017/09/22/sheriff-clarke-trump-wins-either-way-luther-strange-roy-moore-alabama-senate-race on URL http://www.foxnews.com/2017/09/22/sheriff-clarke-trump-wins-either-way-luther-strange-roy-moore-alabama-senate-race
It happens for various article url links.
Here is the code i am using,
`news_content = newspaper.build(url)
for eachArticle in news_content.articles:
i = i +1
article = news_content.articles[i]
    article.download()#now download and parse each articles
    article.parse()

    article.nlp()

    backupfile.write("\n"+ "--------------------------------------------------------------" + "\n")
    backupfile.write(str(article.keywords))

    datasetfile.write("\n" + "----SUMMARY ARTICLE-> No. " + str(i) + "\n")
    datasetfile.write(article.summary) #only summary of the article is written in the dataset directory

    backupfile.write("\n"+"----SUMMARY ARTICLE---" + "\n")
    backupfile.write(article.summary)
    backupfile.write("\n"+"----TEXT INSIDE ARTICLE---" + "\n")
    backupfile.write(article.text)
    time.sleep(2)`

Attached below is the screenshot of the error,

One of my colleagues had the same problem. She striped off newline character in the url strings using url.strip() and the error stopped.

Similar issue, was hoping to skip over the errors with some exception handling.
Issue:
I create an object "cnn" and try to iterate across it. One of the URL's is returning a 404. I have confirmed that it is a bad URL. I want to the next article in the for loop. I've tried a few exception handling methods, but no luck.
The below code does not skip the exception. Can you tell me what I'm doing wrong?
----- code below ---
cnn = newspaper.build('http://www.cnn.com/', memoize_articles=False)
for article in cnn.articles:
# Try-Except-Continue will skip to the next article in the For loop if there is an exception
try:
    article.download()
except ArticleException:
    continue

article.parse()
article.nlp()

best workaround is just to use except: rather than specifying the exception

PLEASE ADVISE -- THIS EXCEPTION HANDLING DOES NOT WORK.
CODE:
import newspaper
cnn = newspaper.build('http://www.cnn.com/', memoize_articles=False)
for article in cnn.articles:
    # Try-Except-Continue will skip to the next article in the For loop if there is an exception
try:
    article.download()
except:
    continue

article.parse()
article.nlp()

ERROR:
Article download() failed with 404 Client Error: Not Found for url: http://www.cnn.com/hln-morning-express-tour-robin-meade on URL http://www.cnn.com/hln-morning-express-tour-robin-meade

THIS EXCEPTION HANDLING DOES NOT WORK.

It won't work as it is hardcoded there, not raising error.

I create an object "cnn" and try to iterate across it. One of the URL's is returning a 404. I have confirmed that it is a bad URL.

if this still gives the download error, try striping the newline characters using strip() method
for better debugging, try running these lines in python terminal(try for one link). if it doesn't give the same error then it should be newline characters

url.strip() will not fix a bad URL. See URL above returned by cnn object. Click on it. It is a bad URL.

Hi,
Did you guys manage to figure this out?
I am also getting a 410 client error while trying to download an article which, apparently, was removed by the news publisher. And, I couldn't find a way to bypass this article and move on to the next one. I cannot handle the ArticleException.
Any suggestion to sort this out would be appreciated.
Great work on the module!

suggest you review python documentation for handling exceptions...here is a link, look at Section 8.2
Exceptions
https://docs.python.org/3/tutorial/errors.html
cheers, BobS

If you've come across this same issue or if you've seen the comments above, you'd realize that this exception is 'hardcoded' within the module and the standard python exception handling doesn't seem to work here.
If you've been able to resolve this with exception handling then please let me know. Maybe I am doing something wrong.
Cheers,
Drogpa

I just used a simple try/except structure. Seems to work just fine (at least for the 404 error code I was seeing)
try:         article.download()         article.parse()         article2 = article.text.split()     except:         print('***FAILED TO DOWNLOAD***', article.url)         continue

I just used a simple try except structure. Seems to works just fine (at least for the 404 error I was seeing)
try:
article.download()
article.parse()
article2 = article.text.split()
except:
print('FAILED TO DOWNLOAD', article.url)
continue

I just used a simple try except structure. Seems to works just fine (at least for the 404 error I was seeing)(code below - don't mind the splitting and stuff' :-))

    try:
        article.download()
        article.parse()
        article2 = article.text.split()
    except:
        print('***FAILED TO DOWNLOAD***', article.url)
        continue

Hello @harishaaram, @jrunrun, and @vaishnavm217: thanks so much for using this library!
The Exception you are seeing is outputted on parse() or nlp() and not download(), download() does not raise this exception, apologies, the error message is confusing and I will fix it.
To fix your exception handling, also put parse and nlp inside the try/catch statement.
Here is where the exception is thrown: https://github.com/codelucas/newspaper/blob/e34c777e60024111a8949b8f09d42fdf937297c6/newspaper/article.py#L184-L185

Hey guys, I am going to close the issue as the fix is posted, but please re-open if you see problems

I got it to work by changing the user-agent
from newspaper import Article
from newspaper import Config

user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
config = Config()
config.browser_user_agent = user_agent
page = Article("https://www.forbes.com/sites/louiscolumbus/2015/07/13/ten-ways-big-data-is-revolutionizing-supply-chain-management", config=config)
page.download()
page.parse()
print(page.text)

I see the problem, you must remove the double quote in url so make that:
or, if they only occur at start and end...
  a = a.strip(' \" ')

It solve my issue

@codelucas
I am able to see this URL in Web Browser however, I cannot download it. Could you please guide me how to fix it?
from newspaper import Article
from newspaper import Config

user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
config = Config()

config.browser_user_agent = user_agent
url = "https://www.newsweek.com/new-mexico-compound-charges-dropped-children-1096830".strip()

page = Article(url, config=config)

page.download()
page.parse()
print(page.text)

I initially used exception handling but I definitely need to download the text.

I posted the solution here:
from newspaper import Article
from newspaper import Config

user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0'
config = Config()

config.browser_user_agent = user_agent
url = "https://www.newsweek.com/new-mexico-compound-charges-dropped-children-1096830".strip()

page = Article(url, config=config)

page.download()
page.parse()
print(page.text)

Here is the link: https://stackoverflow.com/a/63060794/2414957

I have still problem.
from newspaper import Article
from newspaper import Config

user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0'
config = Config()

config.browser_user_agent = user_agent
url = "https://artificialcorner.com/privategpt-a-free-chatgpt-alternative-to-interact-with-your-documents-offline-ea1c98f98062".strip()

page = Article(url, config=config)

page.download()
page.parse()
print(page.text)

output:
ArticleException                          Traceback (most recent call last)
Cell In[8], line 16
     12 page = Article(url, config=config)
     15 page.download()
---> 16 page.parse()
     17 print(page.text)

File /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/newspaper/article.py:191, in Article.parse(self)
    190 def parse(self):
--> 191     self.throw_if_not_downloaded_verbose()
    193     self.doc = self.config.get_parser().fromstring(self.html)
    194     self.clean_doc = copy.deepcopy(self.doc)

File /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/newspaper/article.py:531, in Article.throw_if_not_downloaded_verbose(self)
    529     raise ArticleException('You must `download()` an article first!')
    530 elif self.download_state == ArticleDownloadState.FAILED_RESPONSE:
--> 531     raise ArticleException('Article `download()` failed with %s on URL %s' %
    532           (self.download_exception_msg, self.url))

ArticleException: Article `download()` failed with 403 Client Error: Forbidden for url: https://artificialcorner.com/privategpt-a-free-chatgpt-alternative-to-interact-with-your-documents-offline-ea1c98f98062 on URL https://artificialcorner.com/privategpt-a-free-chatgpt-alternative-to-interact-with-your-documents-offline-ea1c98f98062

I'm having the same issue. Same URL works on browser, curl, and with a simple Python request. Keep getting 404 with newspaper3k. Any news about this ?

if its just getting the text that you want to do, Since you already get information from curl and python request
then use newspaper's , full_text

from newspaper import fulltext
text = fulltext(html_content)


Release celocli 0.0.39 and bump version numbers

Description
This PR increments the versions of the CLI and contractkit packages after publishing to NPM.
Other changes
None
Tested
None
Related issues
None
Backwards compatibility
None
Commit Message
If using automerge, specify desired commit title
And desired commit message body

Should https://github.com/celo-org/celo-monorepo/pull/3390 be closed then?

Should #3390 be closed then?

Probably, will close now

Closing in favor of https://github.com/celo-org/celo-monorepo/pull/3408


Add wire splitters and joiners

Constructing and matching on tuples is a very common thing to do, and joining/splitting wires seems a very natural metaphor.
I think we should add a special nameless block for both a splitter and a joiner.
As this is a very basic variation on pattern matching, it might be something for @Flumble to start with.
The main complication is that splitters need multiple outputs.

As a first step, I think a shortcut to the (,) function would work well as a (2-way) joiner.

Resolved by #360.


Ops: set up monitoring and alerting of production being down, and CPU/mem/disk usages

So that we have a basic handle on the health of our production nodes (at least the ones we're running).
Prometheus + Grafana would be a natural choice for the CPU/mem/disk usage and alerting on those. With alertmanager plugged into Slack.
Something external like Pingdom with Slack alerts would be fine for our CLI REST endpoint.

Id like to pick this up - qq on the monitoring, do you envision having Prometheus set up per node? Or do you want us scraping public metrics? (Eg do we public the metrics to a url that can be scraped)

Prometheus node exporter definitely for system level metrics (CPU/mem/disk)
And endpoints on the nodes is great too
We might wanna use grafana cloud to begin with for simplicity
And instrument bacalhau with Prometheus for app level metrics like time
spent waiting and number of jobs processed etc
On Sun, 12 Jun 2022, 17:48 David Aronchick, @.***>
wrote:

Id like to pick this up - qq on the monitoring, do you envision having
Prometheus set up per node? Or do you want us scraping public metrics? (Eg
do we public the metrics to a url that can be scraped)
—
Reply to this email directly, view it on GitHub
https://github.com/filecoin-project/bacalhau/issues/229#issuecomment-1153230735,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACATURV46A3RTGJ7K7UA3TVOYIEPANCNFSM5YGWMSGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Note: I've recently added Prometheus

@lukemarsden @wdbaruni Are we happy with the Canary or would like alerting from app metrics too? The Canary has proven to bee quite good at its job already!


option to disable submit for moderation

Adds a setting, WAGTAIL_DISPLAY_MODERATION. Assumed True by default, when False, the "Submit for Moderation" button in the action menu is not shown.

Could I suggest changing the name of the setting to WAGTAIL_MODERATION_ENABLED? That way it's more consistent with other settings, as well as hopefully being closer to what the setting means from the point of view of an end user (i.e. enabling/disabling moderation as a feature, rather than showing / hiding a button).

Thanks for reviewing! I've renamed the setting as suggested (and removed the blank line) and recommitted.


Fix TextBoxHelper.SelectAllOnFocus="True"

After 3fba68e5 selection on focus stopped working. Add examples to demo application.

@sachokFoX :+1:


Git v2.35.2 safe.directory trouble

The new git v2.35.2 introduces a fix for CVE-2022-24765 (see e.g. here) which causes it to refuse working in mixed user scenarios.
My web server runs as http user, while my git repos are owned by the user git.
Therefore, since the recent git upgrade gitlist only shows the following warning for every repository.
Oops! fatal: unsafe repository ('/home/git/repositories/me/myrepo.git' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /home/git/repositories/me/myrepo.git

First I tried with the latest release of legacy gitlist, v1.1.1.
Then I tried the same with latest (251b8a8) nightly, i.e. gitlist 2.0, and I'm getting a similar error in the log.
request.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("fatal: unsafe repository ('/home/git/repositories/me/myrepo.git' is owned by someone else) To add an exception for this directory, call:        git config --global --add safe.directory /home/git/repositories/me/myrepo.git ")." at /usr/share/webapps/gitlist/assets/themes/default/templates/Repository/list.html.twig line 15 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"fatal: unsafe repository ('/home/git/repositories/me/myrepo.git' is owned by someone else)\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /home/git/repositories/me/myrepo.git\n\"). at /usr/share/webapps/gitlist/assets/themes/default/templates/Repository/list.html.twig:15)\n[previous exception] [object] (GitList\\SCM\\Exception\\CommandException(code: 0): fatal: unsafe repository ('/home/git/repositories/me/myrepo.git' is owned by someone else)\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /home/git/repositories/me/myrepo.git\n at /usr/share/webapps/gitlist/src/SCM/System/Git/CommandLine.php:315)"} []

I'm not sure what exactly is the problem, as just browsing the repo as user http works, e.g.
sudo -u http -g http git --git-dir /home/git/repositories/me/myrepo.git ls-tree -r HEAD
sudo -u http -g http git --git-dir /home/git/repositories/me/myrepo.git cat-file -p 71f106

Unfortunately, the command mentioned in the error message does not resolve the problem, neither when executed as http nor as git
sudo -u http -g http git config --global --add safe.directory /home/git/repositories/me/myrepo.git
sudo -u git -g git git config --global --add safe.directory /home/git/repositories/me/myrepo.git

A chown -R http:http /home/git/repositories fixes the issue of course, but it interferes with normal git access. So for the moment, the only work-around, I found, is
sudo bindfs -r --force-user=http --force-group=http /home/git/repositories /home/git/repositories-gitlist

Any ideas for a proper fix?

I found that
sudo git config --system --add safe.directory /home/git/repositories/me/myrepo.git
fixed the issue, but I'm not convinced that it's the best solution.

If you have many repositories, I think it's the best way to run git list under the same user which is responsible for creating the git repositories. At least that's what I did, after git introduced this security feature.

@dmolony that seems to be the best way to deal with this right now, if you are unable to run with the same user.

You can switch off this feature with
sudo git config --system --add safe.directory '*'
but it is not recommended, at least at system-wide.
However if the executed git command gets the HOME environment variable (which is not the case on my debian, because /etc/apache2/envvars starts with unset HOME), it will use the .gitconfig file from there.
Unfortunately using SetEnv HOME in apache .conf files does not returned by getenv(), so this solution not working.
My suggestion is to introduce a setting in config.yml which would be passed as HOME environment variable for git from php, or simply hardwire a "githome" folder which would be placed in the gitlist root.
This githome folder would contain a .gitconfig file:
[safe]
  directory = *

@goss85 Thanks! Your system-wide syntax worked (git config --global --add safe.directory '*' did not). Another (not ideal) work-around was chowning all files to www:www for gitlist and my REPOs.


Suggestion: Overload setIcon to accept drawable

Hello,
I may have overlooked something but, when building the array, it would be tremendously helpful to overload the setIcon method to accept also a drawable instead of only a resource id like:
new BasicSettingsObject.Builder(SETTINGS_KEY_EXAMPLE, getString(R.string.pref_example))
                .setIcon(new ExampleDrawable(this).icon(ExampleDrawable.MyIconName))
                .build()

As a workaround one can dig into the image view to achieve this:
View root = findViewById(settingsObject.getRootId());
ImageView imageView = root.findViewById(settingsObject.getImageViewIconId());
imageView.setImageDrawable(drawable);

sure. i will add this in the near future.
in the meantime it should be easy enough to extend the builder and add that function to it.

added in version 1.1.3.
note that setIcon(@Nullable @DrawableRes Integer iconId) will override this new method


[9.x] Set correct PHP file permissions

Changed log

Set the correct PHP file permissions because they're not executable files.

No plans to merge this.


Generating a Single Table with Patients and Conditions

Hi guys,
I would like to generate a single table with only the patient details i.e. DoB, gender, zip, etc and the description field of the Conditions table. I have read through the wiki but I couldn't find a suitable configuration for it.
Is this possible?
Another thing is that I would like to get only disorders rather than things like Body mass index 30+ -   obesity (finding) in the description field of the Conditions table.
The application is relevant to data anonymisation.

@abdulzeedo there is no out of the box configuration to produce that. Your best choice is to post-process the data at this point.
You could join the patients.csv with the conditions.csv if you loaded them into a relational database (for example).
Joining patient.id with conditions.patient should do the trick. Theoretically you could add a where-clause for disorders. Something like conditions.description ilike %disorder% -- although my SQL is rusty so that probably doesn't work exactly, but you get the idea.

@jawalonoski thanks for the reply. Yes, seems like it's the only option.
Another question, the relationship between patients and conditions is a 1-to-many, right?

Another question, the relationship between patients and conditions is a 1-to-many, right?

Yes, although a patient might not have any conditions (if they are healthy).


Add support for Angular 6 Singleton Provider (non-test)

Just a proposal for adding Singleton Provider option for Angular template.
Please let me know how I did. I'm more than welcome to receive feedbacks or guidance.

Thanks, looks good, I've just split up the models, so i have to clean up, but everything looks good. I'll share an update here soon...


Feat: Filtering projects on the Repository page

A filtering feature on the page where I see my Repo Stories would be nice,
for example:

from high star to low star
from high fork to low fork

As suggested, the filtering select box will now appear at the top right of the repository page and you can list the repositories with the most stars and the most forked projects and access them easily.
[done]