text:
two radio button elements should be nested in its own label element. but how? thanks

Challenge Waypoint: Create a Set of Radio Buttons has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

CatPhotoApp

Click here for cat photos.

Things cats love:

cat nip

laser pointers

lasagna

Top 3 things cats hate:

flea treatment

thunder

other cats

<form action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>

  <input type="radio" name="indoor-outdoor" >indoor
  <input type="radio" name="indoor-outdoor" >outdoor

@vvkgdm thanks for posting this issue!
This is the description of that test:

Each of your two radio button elements should be nested in its own label element.

This means that you should create two labels for your radio buttons. This is how you should do that.
<input type="radio" name="indoor-outdoor">indoor
<input type="radio" name="indoor-outdoor">outdoor

If you have such questions/problems, please, post a message in our Gitter chat room first, thanks.

Please review the Guidelines for Contributing, thank you!.

Thanks

I was stuck here for a long time! Thank you!

thank you...

Could anyone tell me why this is so ? Because I don't see the difference.

Cheers! I was stumped on this one.

indoor

outdoor

Put both the inputs in separate  tag!
  <input type="radio" name="indoor-outdoor">indoor

 <input type="radio" name="indoor-outdoor">outdoor


text:
Tags not responsive @ /news/tag/tagName page

Recommend tags shown @ /news/tag page is not responsive on mobile devices. The tags are overflowing to the main page content
https://www.freecodecamp.org/news/tag/ubuntu/
Tell us about your browser and operating system:

Browser Name:  Chrome
Browser Version: 78.0.3904.62
Operating System: Android 8.1

Looks like the menu is a little squished as well.

Yeah, I don't know if anyone is currently assigned to this or working on this?. If there is none, I'll like to take it up 👩💻

Ideally (though not always) if an fcc member is going to work on an issue, they'll assign themselves as a heads up.  Since that's not the case, go for it!

Thank you Williams, I'll be glad if you can help with a link pointing to the /news directory. I'm having difficulties finding it

Sure thing.  The news theme has its own repo, take a look here.
Let us know if you have any more questions.

Thank you
On Thu, Dec 12, 2019, 4:15 PM Oliver Eyton-Williams <
notifications@github.com> wrote:

Sure thing. The news theme has its own repo, take a look here
https://github.com/freeCodeCamp/news-theme.
Let us know if you have any more questions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/37901?email_source=notifications&email_token=AIJDRXJCEUPXXONBN7FO2RTQYJIQVA5CNFSM4JYOH242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGW7NKA#issuecomment-565049000,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIJDRXP3ARNK3SMYUISAGALQYJIQVANCNFSM4JYOH24Q
.

@AsaoluElijah thanks for working on this.
so we need to relax the nav-padding on line 17 for very small screens.
and remove the max height for the tags container:

Hello @ahmadabdolsaheb @ojeytonwilliams , i just created a pull request to fix this issue. Kindly review it.
Here is a link to it

Hi, Anyone here :octocat:

What's up @AsaoluElijah? Do you need some help with something?

No, thanks Tom. The pr has been merged now. I'll close the issue asap.
Thank you Guys. 🙇

source: gharchive/issue

authors: AsaoluElijah ahmadabdolsaheb moT01 ojeytonwilliams

repo: freeCodeCamp/freeCodeCamp

license_type: permissive

license_source: github-api


text:
Ferris Wheel issue

Describe the Issue
Your link element should be within your head element.
Affected Page
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-animation-by-building-a-ferris-wheel/step-1
Your code

Ferris Wheel

Expected behavior
i made everythink right
Screenshots
No response
System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
No response

Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "Get Help" button on the challenge on freeCodeCamp and choose the "Ask for help" option, which will help you create a question in the right part of the forum. Volunteers on the forum usually respond to questions within a few hours and can help determine if there is an issue with your code or the challenge's tests.
If the forum members determine there is nothing wrong with your code, you can request this issue to be reopened.
Thank you and happy coding.

authors: MariiaChina raisedadead


text:
Partially translated README.md

[x ] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the master branch of freeCodeCamp.
[x ] None of my changes are plagiarized from another source without proper attribution.
[x ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

source: gharchive/pull-request


text:
changed OSs to "operating system" on line 34

Gave the full meaning of OSs to make it more reader friendly

[x ] I have read freeCodeCamp's contribution guidelines.
[ x] My pull request has a descriptive title (not a vague title like Update index.md)
[ x] My pull request targets the master branch of freeCodeCamp.
[ x] None of my changes are plagiarized from another source without proper attribution.
[ x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Hi,
Thanks for this pull request (PR).
Unfortunately, we are marking this PR invalid for hacktoberfest. We believe it does not follow the recommended guidelines:

Quality Standards
In line with Hacktoberfest value #2 (Quantity is fun, Quality is key), we have provided examples of the quality standards we encourage. This applies mainly to beginners.

PRs that are automated e.g. scripted opening PRs to remove whitespace / optimize images.
PRs that are disruptive e.g. taking someone else's branch/commits and making a PR.
PRs that are regarded by a project maintainer as a hindrance vs. helping.
Something that's clearly an attempt to simply +1 your PR count for October.

Learn more at https://hacktoberfest.digitalocean.com/details

authors: RandellDawson sage-godspeed


text:
fixed & added translations in examples

I'm a native portuguese speaker, so I found some inconsistencies and fixed them. Nothing major. Also noticed the examples weren't translated so I changed that too.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉

authors: RandellDawson sofiabsilva


text:
Added and example of ternary syntax.

Added and example of ternary syntax.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Congrats @pirland on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝

authors: RandellDawson pirland


text:
Update index.md with grammatical improvements

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the master branch of freeCodeCamp.
[X] None of my changes are plagiarized from another source without proper attribution.
[X] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding. ✈

authors: codestin thecodingaviator


text:
Updated index.md

Changed header information for better visibility

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.

authors: RandellDawson Sindr


text:
fix(guide): Fix formatting in HTML header tag

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

Fixed the formatting issues in the current guide (due to writing heading elements h1, h2, etc without any formatting) -

Hey @username
It seems that similar changes have already been accepted earlier for this article you're editing, sorry about that. 😓
If you feel you have more to add, please feel free to open up a new PR.
Thanks again! 😊

If you have any questions, feel free to reach out through Gitter or by commenting below. 💬

authors: Manish-Giri RandellDawson


text:
Added comma

Line 10, a compound sentence with two independent clauses should be separated by a comma prior to the coordinating conjunction.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Congrats @Keenangp on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝

authors: Keenangp RandellDawson


text:
Added missing comma and period in line 6

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding. ✈

authors: juliabenton thecodingaviator


text:
Fix/remove property references and update tests

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

New PR, the original is here https://github.com/freeCodeCamp/freeCodeCamp/pull/34797

@lasjorg I resolved the merge conflict for you.

Awesome, thanks.

@lasjorg Hope you don't mind, but I saw an error in the regex I proposed for the 3rd test which would have still allowed something like:
function Bird() {
  var weight = 15;
  this.getWeight = function () { return 15; };
}

It was missing an extra pair of parentheses.  I have now tested my addition and it works fine now and correctly fails when 15 hard-coded as the return value.

@ezioda004, @Manish-Giri Would one of you take a look at the original issue referenced and validate this PR now fixes the issue?

authors: RandellDawson lasjorg


text:
fix(curriculum): allow hex triplets for red and green colors to pass …

…tests
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #38521

@Czespo Thanks for letting me know. Overlooked

Fixed both triplet hex codes. Rebased and pushed


text:
fix: removed extra blank line between sections

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the main branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #XXXXX

Hey @username
Thank you for opening this pull request.
This is a standard message notifying you that we've reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.


text:
feat(curriculum): javascript comparisons quiz

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #56199

Sure! Should I just commit suggestion or I fix the quiz based on the suggestions (and open PR)?

do not make a new PR, no. Always address PR feedbacks by adding new commits to the same branch

Ah ok, then I can just "Commit suggestion"?
(I am still learning of how this works ;-;)

You will need to do more than the comments I left, as I've written in the comments.
You can make a single commit with all the suggestions from the Files changed tab where "Add suggestion to batch" can be used

Hey, sorry that I forgot to comment, but I updated the PR witht he suggested changes!

Ok, fixing it right now, thanks!


text:
chore(.github): add release cd

TODO:

[x] feat(base): install nvm, node, pnpm
[x] chore(.github): add release action
[x] ensure conventional commit
[x] increment tag based on conventional commit

and, of course, when I can open it as a draft, I forget to

@raisedadead This should be ready.
TODO:

[ ] Create at least 1 manual release
[ ] Create READ_ONLY github token, and add to secret
[ ] Add DOCKERHUB_USERNAME to secrets (GHCR username)
[ ] Add DOCKERHUB_TOKEN to secrets (GHCR password)

OK - go ahead and try it out.

authors: ShaunSHamilton raisedadead

repo: freeCodeCamp/gitpod-images


text:
rewrite master with correct author information :P

Lazy me havent updated git with correct author info

impossible. and unecessary. Forks will have to be fixed. we can live with jarlah@debian..

repo: freeacs/freeacs

license: MIT


text:
My Resume

Open source resume

My open source resume

repo: freeall/create-repository

license: mit

license_source: bigquery


text:
Bump versions for 3.2.0 release. (#55)

This applies #55 to master.

Bump versions for 3.2.0 release.

Switch to Scala 2.12 as the "default".

(cherry picked from commit 783d6d8b6ad9a89887e5b6f713db78515308e5c4)

Wait this doesn’t bump the chisel dependency, should we be moving to 1.3-SNAPSHOT?

Do you mean 3.3-SNAPSHOT? We haven't bumped the chisel master snapshot version. We're still on 3.2. I'd like to hold off on moving to 3.3 until we're about to commit an API-breaking change (although I'm happy to be convinced otherwise). I'll put an issue on Monday's agenda.

authors: jackkoenig ucbjrl

repo: freechipsproject/chisel-template

license: Unlicense


text:
mnemonic: rewrite implementation in pure v

Implementing the mnemonic (BIP39) doesn't seems difficult: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
I suggest to drop the broken C library and rewrite implementation in pure V which would drop external dependencies and make code better in control of V.
This would fix #220 and #301

Working first implementation https://github.com/freeflowuniverse/crystallib/commit/1994b20764dcfddf38eac9bccf7c0deaf5811aa1

repo: freeflowuniverse/crystallib


text:
Laravel 4.2 support

I currently have a project with L4, and would really like to use this package. I think that it shouldn't be a problem to make it compatible, just add another service provider.

+1 for 4.2 support :smile:

As I don't need this myself, adding L4 support is kinda low priority. But I'll accept a good pull request any day.
Pro-tip: upgrade to L5: it's awesome :)

Yeah I know L5 is cool, I  have multiple projects with it, even migrated one :)
Ok, I'll try to make a service provider for L4.
Are there any specific L5 features used in the package (except the L5 service provider) ?

Cool, thanks!
I don't think there are much L5 specific things being used at the moment. Maybe a L5-style config('blabla')instead of a L4 Config::get('blablabla'). If you encouter such things just change it to L4-style. Be sure to test it all out before submitting the pull request.

I'll close this issue for now, if you need L4 support feel free to submit a PR.

authors: briedis freekmurze gpluess

repo: freekmurze/laravel-newsletter


text:
Discuss test data sets

Also, apart from running the included tests, do you have a test dataset you can recommend?
Originally posted by @step21 in https://github.com/freelawproject/eyecite/issues/86#issuecomment-901964272

(Just splitting this off here, so we can keep the other issue narrow.)
@step21, if you're just looking for some simple datasets to play with you could use the API at https://api.case.law or you can use the API at https://www.courtlistener.com/api/. The other thing is, if you are just experimenting for the sake of the JOSS review, you could just copy/paste some legal text and throw eyecite at it. For example, you could grab some text from here a recent SCOTUS opinion:
https://www.supremecourt.gov/opinions/slipopinion/20
Does that help?

Here's an example of extracting cites from all of the case.law cases for New Mexico, if it helps to have a larger dataset to play with:
# pip install eyecite requests

import shutil
import zipfile
import lzma
import json
import requests
from pathlib import Path
from eyecite import get_citations

# download data file (66MB) if not already downloaded
download_url = "https://case.law/download/bulk_exports/latest/by_jurisdiction/case_text_open/nm/nm_text.zip"
output_path = "nm_text.zip"
if not Path(output_path).exists():
    print("Downloading to %s ..." % output_path)
    with open(output_path, 'wb') as out_file:
        shutil.copyfileobj(requests.get(download_url, stream=True).raw, out_file)
    print("Done.")

# yield case texts from data file
def get_case_texts():
    with zipfile.ZipFile(output_path, 'r') as zip_archive:
        xz_path = next(path for path in zip_archive.namelist() if path.endswith('/data.jsonl.xz'))
        with zip_archive.open(xz_path) as xz_archive, lzma.open(xz_archive) as jsonlines:
            for line in jsonlines:
                record = json.loads(str(line, 'utf-8'))
                case_body = record['casebody']['data']
                case_text = "\n".join([case_body['head_matter']]+[opinion['text'] for opinion in case_body['opinions']])
                yield record['frontend_url'], case_text

# extract citations
for url, case_text in get_case_texts():
    cites = get_citations(case_text)
    print(url, [c.corrected_citation() for c in cites])

Thanks! It's doing things, so that's a good start. It was mostly for the review and I am mostly satisfied, but just to be sure I ran this anyway, and it got a key error. As this key is not in your code, it must be sth else...?
Downloading to nm_text.zip ...
Done.
https://cite.case.law/nmca/2013/039/4191100/ ['2013-NMCA-039', '107 N.M. 236', '755 P.2d 80', '2007-NMSC-002', '141 N.M. 21', '150 P.3d 971', '1998-NMSC-046', '126 N.M. 396', '970 P.2d 582', '2009-NMCA-081', '146 N.M. 717', '213 P.3d 1146', 'Id.', '2009-NMCA-015', '145 N.M. 533', '202 P.3d 126', '99 N.M. 302', '657 P.2d 629', '2010-NMCA-060', '148 N.M. 367', '237 P.3d 111', '2010-NMCA-085', '148 N.M. 627', '241 P.3d 628', '2010-NMCA-060', '534 U.S. 19', '111 N.M. 319', '805 P.2d 88', '2005-NMCA-061', '137 N.M. 420', '112 P.3d 281', '2000-NMCA-010', '128 N.M. 648', '996 P.2d 911', '1999-NMCA-011', '126 N.M. 460', '971 P.2d 851', '839 F. Supp. 80', '498 P.2d 1240', '2010-NMCA-060', '2008-NMSC-022', '143 N.M. 740', '182 P.3d 121', '2005-NMCA-061', '137 N.M. 420', '112 P.3d 281', '847 F.2d 435', '186 F.2d 683', '388 So. 2d 128', '2006-NMCA-015', '139 N.M. 48', '128 P.3d 476', '107 N.M. at 237', '755 P.2d at 81', 'Id.', '755 P.2d at 82', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', '755 P.2d at 84', 'Id.', 'Id.', '755 P.2d at 83', 'Id.', '755 P.2d at 84', 'Id.', 'Id.', 'Id.', 'Id.', '2007-NMSC-014', '141 N.M. 413', '156 P.3d 704', '2004-NMCA-136', '136 N.M. 658', '103 P.3d 582', '2010-NMSC-035', '148 N.M. 713', '242 P.3d 280', '115 N.M. 159', '848 P.2d 1086', '107 N.M. at 240', '755 P.2d at 84', '107 N.M. at 238', '755 P.2d at 82', '89 F.3d 1423', '956 F.2d 738', 'Id.', '543 P.2d 108', '106 N.M. 492', '745 P.2d 727', '143 N.M. 274', '175 P.3d 942', '2010-NMCA-052', '148 N.M. 277', '234 P.3d 929']
https://cite.case.law/nmca/2013/048/4190470/ ['2013-NMCA-048', '§§', '26 U.S.C. § 501', '§', '2003-NMSC-005', '133 N.M. 97', '61 P.3d 806', '2006-NMCA-095', '140 N.M. 198', '141 P.3d 542', '2008-NMCA-065', '144 N.M. 132', '184 P.3d 444', '2009-NMCA-009', '145 N.M. 494', '200 P.3d 544', '1999-NMCA-156', '128 N.M. 398', '993 P.2d 112', '1999-NMSC-021', '127 N.M. 120', '978 P.2d 327', '2010-NMCA-096', '148 N.M. 934', '242 P.3d 501', '1998-NMSC-050', '126 N.M. 413', '970 P.2d 599', '121 N.M. 764', '918 P.2d 350', '2006-NMSC-004', '139 N.M. 24', '127 P.3d 1111', '2009-NMSC-036', '146 N.M. 473', '212 P.3d 361', '§', '§', '93 N.M. 42', '596 P.2d 255', '2005-NMCA-029', '137 N.M. 103', '107 P.3d 543', '2009-NMCA-009', '2000-NMCA-074', '129 N.M. 413', '9 P.3d 657', '2001-NMCA-042', '130 N.M. 543', '28 P.3d 531']
https://cite.case.law/nmca/2012/116/4190761/ ['2012-NMCA-116', '2011-NMSC-014', '150 N.M. 84', '257 P.3d 904', 'Id.', '2011-NMSC-014', '411 U.S. 778', 'Id.', '408 U.S. 471', '2011-NMSC-014', '91 N.M. 749', '643 P.2d 618', '2011-NMSC-014', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'id.', 'Id.', '612 A.2d 288', 'Id.']
https://cite.case.law/nmca/2013/041/4190492/ ['2013-NMCA-041', '§§', '§]', '2012-NMSC-028', '285 P.3d 595', '2007-NMCA-098', '142 N.M. 319', '164 P.3d 1018', '2004-NMSC-010', '135 N.M. 397', '89 P.3d 69', '121 N.M. 764', '918 P.2d 350', '2009-NMSC-050', '147 N.M. 182', '218 P.3d 868', 'Id.', '2009-NMSC-049', '147 N.M. 177', '218 P.3d 863', '118 N.M. 234', '880 P.2d 845', '77 N.M. 742', '427 P.2d 258', '§', '§', '§§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '§', '2009-NMCA-097', '147 N.M. 6', '216 P.3d 256', '2007-NMCA-069', '141 N.M. 686', '160 P.3d 595', '113 N.M. 231', '824 P.2d 1033', '113 N.M. at 236', '824 P.2d at 1038', '2005-NMCA-128', '138 N.M. 588', '124 P.3d 566', '2012-NMSC-026', '283 P.3d 853', '863 A.2d 976', '2010-NMCA-053', '148 N.M. 322', '236 P.3d 41', '106 N.M. 613', '747 P.2d 259', '2011-NMCA-016', '149 N.M. 420', '249 P.3d 1243']
https://cite.case.law/nmca/2013/025/4190553/ ['2013-NMCA-025', '§', '§', '2005-NMCA-120', '138 N.M. 466', '122 P.3d 50', '2006-NMCA-106', '140 N.M. 230', '141 P.3d 1284', '2004-NMCA-104', '136 N.M. 240', '96 P.3d 801', '39 Duq. L. Rev. 567', '§', '§', '§§', '§§', '§', '§', 'Id.', '2012-NMSC-029', '285 P.3d 622', 'Id.', 'Id.', 'Id.', '1999-NMCA-018', '126 N.M. 579', '973 P.2d 256', 'Id.', 'Id.', 'Id.', 'Id.', '906 P.2d 122', '717 N.E.2d 322', 'Ohio Rev. Code Ann. § 3103.04', 'Id.', '717 N.E.2d at 326', 'Id.', 'Id.', '44 Cal. Rptr. 330', '20 Cal. Rptr. 2d 582', 'Cal. Code § 5102', '44 Cal. Rptr. at 336', 'Id.', 'Id.', '268 Cal. Rptr. 501', 'Cal. Code § 5102', 'Id.', '268 Cal. Rptr. at 503', 'Id.', '2012-NMSC-029', '44 Cal. Rptr. at 336', '119 N.M. 609', '894 P.2d 386', '721 N.E.2d 73', '44 Cal. Rptr. at 333', '39 Duq. L. Rev. 567', '94 N.M. 706', '616 P.2d 419', '2011-NMSC-041', '150 N.M. 654', '265 P.3d 705', 'Id.', 'Id.', '94 N.M. at 708', '616 P.2d at 421', 'Id.', '§', '2012-NMCA-084', '284 P.3d 410', 'Id.', '1999-NMSC-001', '126 N.M. 438', '971 P.2d 829', '2012-NMCA-017', '2012-NMCERT-001', 'Id.', 'Id.', '2005-NMCA-045', '137 N.M. 339', '110 P.3d 1076', '1999-NMCA-152', '128 N.M. 345', '992 P.2d 896', 'id.', 'Id.', '2004-NMSC-019', '135 N.M. 621', '92 P.3d 633', 'Id.', '2005-NMSC-031', '138 N.M. 365', '120 P.3d 447', '2006-NMSC-001', '138 N.M. 700', '126 P.3d 516', '2009-NMSC-004', '145 N.M. 513', '201 P.3d 844', 'Id.', 'Id.', '94 N.M. 17', '606 P.2d 1111', '82 N.M. 333', '481 P.2d 412']
https://cite.case.law/nmca/2013/047/4191281/ ['2013-NMCA-047', '§', '§', '2004-NMCA-111', '136 N.M. 301', '97 P.3d 633', '2009-NMCA-110', '147 N.M. 127', '217 P.3d 613', '101 N.M. 694', '688 P.2d 12', 'Id.', '688 P.2d at 20', 'Id.', '688 P.2d at 15', '120 N.M. 734', '906 P.2d 266', 'Id.', '1999-NMCA-143', '128 N.M. 371', '993 P.2d 85', '1999-NMCA-143', '1999-NMCA-143', '2004-NMCA-111', '115 N.M. 710', '858 P.2d 86', 'Id.', '858 P.2d at 92', 'Id.', '858 P.2d at 92', 'Id.', 'Id.', '101 N.M. at 699', '688 P.2d at 17']
https://cite.case.law/nmca/2013/028/4190584/ ['2013-NMCA-028', '1997-NMSC-044', '123 N.M. 778', '945 P.2d 996', '2001-NMCA-094', '131 N.M. 195', '34 P.3d 139', '121 N.M. 38', '908 P.2d 731', 'Id.', '2000-NMCA-085', '129 N.M. 547', '10 P.3d 871', 'Id.', 'Id.', '2002-NMSC-007', '131 N.M. 758', '42 P.3d 1207', '117 N.M. 11', '868 P.2d 656', 'Id.', '§', '§', '80 N.M. 340', '455 P.2d 844', '121 N.M. at 44', '908 P.2d at 737', 'Id.', '2007-NMCA-035', '141 N.M. 328', '154 P.3d 703', '2000-NMSC-002', '128 N.M. 482', '994 P.2d 728', '2005-NMCA-010', '136 N.M. 723', '104 P.3d 1114', '§', '2007-NMCA-160', '143 N.M. 96', '173 P.3d 18', '2008-NMSC-048', '144 N.M. 663', '191 P.3d 521', '2009-NMSC-025', '146 N.M. 357', '210 P.3d 783', '112 N.M. 3', '810 P.2d 1223', '2007-NMSC-032', '142 N.M. 120', '164 P.3d 1', '112 N.M. at 13', '810 P.2d at 1233', '2008-NMSC-048', 'Id.', '2007-NMSC-032', 'Id.', '§', '2007-NMSC-032', 'Id.', '120 N.M. 486', '903 P.2d 228', '2007-NMSC-032', '119 N.M. 252', '889 P.2d 860', '2011-NMCA-121', '267 P.3d 820', '2012-NMCERT-008', '296 P.3d 491', '2007-NMSC-032', '2007-NMSC-032', '§', '2007-NMSC-032', 'Id.', 'Id.', 'Id.', '§', '§', '2003-NMCA-147', '134 N.M. 705', '82 P.3d 72', '§', '§', '§', '§', 'Kan. Stat. Ann. § 21-5408', '2006-NMSC-011', '131 P.3d 61', '§', '2007-NMSC-032', 'Id.', 'Id.', 'Id.', '§', '112 N.M. 554', '817 P.2d 1196', '2010-NMSC-020', '148 N.M. 381', '237 P.3d 683', '102 N.M. 274', '694 P.2d 922', '§', '§', '112 N.M. at 562', '817 P.2d at 1204', '2007-NMSC-032', 'Id.', '112 N.M. at 14', '810 P.2d at 1234', '949 A.2d 1092', '547 P.2d 720', '459 P.2d 225', '2012-NMCA-112', '289 P.3d 238', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', '2010-NMSC-005', '147 N.M. 557', '226 P.3d 656', '51 A.3d 970', '949 A.2d at 1121', '1999-NMCA-065', '127 N.M. 362', '981 P.2d 295', '2010-NMSC-005', '119 N.M. at 260', '889 P.2d at 868', '2012-NMCA-112', '2011-NMCA-018', '149 N.M. 294', '248 P.3d 336', '2011-NMCERT-001', '150 N.M. 559', '263 P.3d 901', '115 N.M. 6', '846 P.2d 312', '466 U.S. 668', '2011-NMCA-018', '115 N.M. at 17', '846 P.2d at 323', '2011-NMCA-018', '115 N.M. at 16', '846 P.2d at 322', '2002-NMSC-005', '131 N.M. 709', '42 P.3d 814', '2002-NMSC-027', '132 N.M. 657', '54 P.3d 61', 'id.', 'Id.', '2002-NMSC-027', 'Id.', 'Id.', 'Id.', '2006-NMCA-031', '139 N.M. 147', '130 P.3d 208', '2009-NMSC-018', '146 N.M. 142', '207 P.3d 1119', '2010-NMSC-041', '148 N.M. 747', '242 P.3d 314', '1998-NMCA-034', '124 N.M. 726', '955 P.2d 195', '1997-NMCA-117', '124 N.M. 261', '948 P.2d 1209', '2012-NMSC-008', '275 P.3d 110', '§', '2006-NMCA-110', '140 N.M. 356', '142 P.3d 944', '2006-NMCA-088', '140 N.M. 126', '140 P.3d 547', '98 N.M. 213', '647 P.2d 415', 'Id.', '1997-NMSC-004', '122 N.M. 794', '932 P.2d 484', '98 N.M. at 215', '647 P.2d at 417', 'id.', '2010-NMSC-041', 'Id.', '2010-NMSC-041', '2010-NMSC-041', '2001-NMCA-032', '130 N.M. 319', '24 P.3d 351', '2007-NMSC-057', '143 N.M. 7', '172 P.3d 144', '2006-NMCA-088', '2009-NMCA-102', '147 N.M. 26', '216 P.3d 276', '2000-NMSC-037', '130 N.M. 1', '15 P.3d 491', '2000-NMCA-033', '129 N.M. 47', '1 P.3d 429']
https://cite.case.law/nmca/2013/006/4191483/ ['2013-NMCA-006', '§§', '2011-NMSC-033', '150 N.M. 398', '259 P.3d 803', '2009-NMSC-021', '146 N.M. 256', '208 P.3d 901', 'Id.', '2011-NMSC-033', '2009-NMSC-021', '2013-NMCA-014', '293 P.3d 902', '2009-NMSC-021', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'Id.', 'id.', 'Id.', '2013-NMCA-014', 'Id.', 'Id.', '42 C.F.R. § 483.12', '2011-NMSC-033', '2009-NMSC-021', '2011-NMSC-033', '2009-NMSC-021', '2013-NMCA-014', '2013-NMCA-014', '2013-NMCA-014']
https://cite.case.law/nm/37/48/ ['125 P. 609', '126 Okla. 114', '258 P. 863', 'supra.', '47 Kan. 283', '27 P. 997', '141 Mass. 74', '6 N.E. 757', '§', '132 Mich. 395', '93 N.W. 914', '59 Minn. 111', '60 N.W. 1081', '191 P. 460', '§', '§', '199 P. 373', '14 Cal. App. 250', '111 P. 631', 'supra,', '68 W. Va. 493', '70 S.E. 119']
https://cite.case.law/nm/37/222/ ['202 P. 687', 'supra,', '219 P. 794', '§', '58 P. 393', '88 S.W. 363', '115 Wis. 317', '91 N.W. 107', '79 Wis. 546', '48 N.W. 653', '180 Wis. 577', '193 N.W. 353', '234 P. 311']
https://cite.case.law/nm/37/212/ ['§', '28 Stat. 278', '33 Stat. 811', '§', '§', '236 F. 340', '255 F. 683', '288 F. 187', 'supra,', '236 F. 342', 'supra,', 'supra,', '132 S.E. 800', '81 S.E. 418', '135 P. 553', 'supra,', 'supra,', '116 F. 145', '41 Ind. App. 620', '84 N.E. 555']
https://cite.case.law/nm/37/597/ ['194 P. 862']
https://cite.case.law/nm/37/478/ ['§', '295 P. 424', '218 P. 787', '§']
https://cite.case.law/nm/37/474/ ['§', '§', '236 P. 735', 'supra,', '247 P. 270']
https://cite.case.law/nm/37/101/ ['89 P. 259']
https://cite.case.law/nm/37/312/ ['246 P. 910', '299 P. 1008']
https://cite.case.law/nm/37/91/ ['§', '256 P. 179', 'supra.', '§', 'supra.', '240 P. 469', '298 P. 410', '290 P. 793', '222 P. 912', '256 P. 179', '76 Cal. 624', '18 P. 686', '287 P. 290', '147 P. 916', '249 P. 108', '85 P. 393', '§', '136 F. 168', '69 C.C.A. 80', '49 Ala. 567', '65 Colo. 258', '176 P. 302', '17 Ill. App. 30', '67 F. 384', '106 Wis. 387', '82 N.W. 302', '62 Minn. 498', '65 N.W. 84', '124 Cal. 568', '57 P. 561', '34 Cal. App. 272', '167 P. 299']
https://cite.case.law/nm/37/559/ ['221 Mo. App. 85', '290 S.W. 96', '162 Mo. App. 408', '142 S.W. 757', '178 S.W. 52', '69 Mo. App. 1']
https://cite.case.law/nm/37/226/ []
https://cite.case.law/nm/37/600/ ['§', '22 Cal. 191', '§', '287 P. 64', '44 A. 161', '59 A. 565']
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-3-7520a1175d19> in <module>()
     32 for url, case_text in get_case_texts():
     33     cites = get_citations(case_text)
---> 34     print(url, [c.corrected_citation() for c in cites])

1 frames
/usr/local/lib/python3.7/dist-packages/eyecite/models.py in corrected_citation(self)
    200         if self.edition_guess:
    201             return self.matched_text().replace(
--> 202                 self.groups["reporter"], self.edition_guess.short_name
    203             )
    204         return self.matched_text()

KeyError: 'reporter'

Looks like models.py at line around 201 needs some guard code to ensure the "reporter" key is present. Something along the lines of
if self.edition_guess:
   if "reporter" in self.groups:
        return self.matched_text().replace(self.groups["reporter"], self.edition_guess.short_name)
   return self.matched_text()

I'd have to look closer at what's calling that section of code to see what assumptions that breaks though.
But would you like me to work on this and get a patch in?

Yeah, seems like a good one to fix. Worth yanking into its own issue though, if you don't mind.

repo: freelawproject/eyecite


text:
Better handling of adding a duplicate token

Reported by npmccallum on 13 Dec 2013 14:49 UTC
Currently if the user attempts to add a token that already exists, we silently ignore it. Instead, we should:

detect the token already exists
prompt the user for permission to overwrite (with stern warning)

There is no security issue here, but it would be helpful to have a better UI.

Modified by npmccallum on 10 Jan 2014 22:00 UTC

It would be great if you could actually add multiple accounts for the same web page. This currently doesn't seem to work.

Currently this is very problematic if you are trying to create multiple 2FA wallets in the Electrum wallet. While the OTP secret is different, the metadata is the same as the previous OTP secret. Currently the app doesn't add the secret and displays no information, so the user might be under the assumption that it has been added (with overwrite of the previous secret) or not.
IMO, the app should ask whether the user would like to overwrite, edit the metadata (and once edited, add the new secret) or cancel.

authors: AlD absorber npmccallum

repo: freeotp/freeotp-android


text:
Bracket notation after recursive descent does not recurse

Selector: $..[0]
Input:
["first", {"key": ["first nested", {"more": [{"nested": ["deepest", "second"]}, ["more", "values"]]}]}]

Expected output:
["deepest", "first nested", "first", "more", {"nested": ["deepest", "second"]}]

Actual output:
["first"]

Compare https://cburgmer.github.io/json-path-comparison/. For reference, the output was generated by the program in https://github.com/cburgmer/json-path-comparison/tree/master/implementations/Rust_jsonpath_lib.

@cburgmer
expected output is
[
   "first",
   "first nested",
   {
      "nested" : [
         "deepest",
         "second"
      ]
   },
   "deepest",
   "more"
]

Yes, that's correct. This query is done ignoring ordering: https://cburgmer.github.io/json-path-comparison/#bracket_notation_after_recursive_descent
As the table states "It is unclear whether results for this query have a defined order, and some implementations might apply different and even non-deterministic ordering. For comparison the results are sorted into a canonical order."
I should probably call this out in the bug reports.

Opened https://github.com/cburgmer/json-path-comparison/issues/32

authors: cburgmer freestrings

repo: freestrings/jsonpath


text:
Legg til støtte for deployment til Vercel Now

📥 Proposed changes
Repoet er allerede koblet mot Vercel Now. For å fullføre støtten kreves en konfigurasjon for å fortelle Now hvor bygde filer kan finnes.
☑ Submission checklist

[X] I have read the CONTRIBUTING doc
[X] yarn build works locally with my changes
[X] I have added tests that prove my fix is effective or that my feature works
[X] I have added necessary documentation (if appropriate)

Holder denne tilbake i påvente av godkjent konsekvensvurdering.

Dropper denne, da vi skal prøve ut AWS i stedet.

repo: fremtind/jokul


text:
Problem about 3D image visualization

🚀 Feature
Hi! I'm doing visual display for my program which is a 3D cube. Now I meet a problem.
When I was debugging the program, I found that the values of the activation map were all 'nan'.
My cube size is 32 × 32 × 32 （z, y, x）pixel data and the type of 3D cube is. NPY type. How to change the activation map in line 210 ---'activation_map = cam_extractor(out.squeeze(0).argmax().item(), out)' so that the value is not 'nan'?
I will put the relevant data and weights in the following links-- https://drive.google.com/drive/folders/19xJiUqVDNrqSzcSkNc0wF95WJ58cOsEV?usp=sharing
By the way, In line 214 of the test.py, I want to add 32 × 32 × 32 cubes visualized slice by slice as 32×32. Can you tell me how to operate this step?
Thank you very much and look forward to your reply! Best regards!
Motivation & pitch
I want to use cam for 3D image visualization, and I have ready-made data, but I meet a problem. When I was debugging the program, I found that the values of the activation map were all 'nan'. My cube size is 32 × 32 × 32 （z, y, x）pixel data and the type of 3D cube is. NPY type. How to change the activation map in line 210 ---'activation_map = cam_extractor(out.squeeze(0).argmax().item(), out)' so that the value is not 'nan'?
I will put the relevant data and weights in the following links-- https://drive.google.com/drive/folders/19xJiUqVDNrqSzcSkNc0wF95WJ58cOsEV?usp=sharing
Thanks!
Alternatives
No response
Additional context
No response

Hi @Ljiaqii :wave:
Thanks for reporting this! However I believe you used the feature proposal issue template rather than the bug template which seems more appropriate in your case :sweat_smile:
There are a few things at hand here, but I believe you first need to identify why you get NaN values. If your model itself produced the NaN, this is completely out of the scope of this project. If on the contrary, your model is producing correct outputs but only the CAM is NaN, then perhaps it comes from here, so let's investigate!
In order to help you, could you:

could you short a minimal code snippet to reproduce your error please? (if you used a specific image, please share it)
if you prefer working with jupyter notebook, sharing a google colab instead of a google drive?
to debug, it would be nice to have some details about your environment. Would you mind reporting the output of the following command please?

wget https://raw.githubusercontent.com/frgfm/torch-cam/master/scripts/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

Cheers :v:

Oh sorry I haven't been replying to you timely!
We've discussed it in discussions, thank you for your help recently! Best regards!

authors: Ljiaqii frgfm

repo: frgfm/torch-cam


text:
[Bug] Revert to default won't revert when the default image URL is used

Description
This bug is currently happening on the Beta branch. Reverting to default image on the character portrait won't revert if the customized image's URL is the same as the default
Steps to Reproduce

Set custom portrait using the URL of the default image, whether it be from entering the URL into the 'Enter image URL' choice or using the default image via 'Use default image'
Refresh then go back to character
Click 'revert to default'
Current behavior: 'Successfully reverted portrait' message will show, however the image still hasn't been reverted, and the buttons 'Update crop' and 'Revert to default still appear.

Expected Behavior
Upon clicking 'Revert to default', 'Successfully reverted portrait' message shows, and image goes back to the default image. You can see the expected behavior by just doing reproduction steps 1 and 3, without refreshing the page in step 2.
Actual Behavior
Upon clicking 'Revert to default', 'Successfully reverted portrait' message will show, however the image still hasn't been reverted, and the buttons 'Update crop' and 'Revert to default' still appear. Once I refresh the page or do anything that requires re-rendering, the image finally updates, and the default image appears.

Closing as #229 solves this

repo: fribbels/hsr-optimizer


text:
errors merge when loading the local data package descriptor

import datapackage
package = datapackage.Package('datapackage.json')
error message like that:
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 11841: illega
l multibyte sequence

datapackage.json exits and  is valid

@wengdanyu
Thanks. Please provide the full error traceback like:
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/roll/projects/datapackage-py/tmp/resource.py", line 24, in <module>
    resource.read(keyed=True)
  File "/home/roll/projects/datapackage-py/datapackage/resource.py", line 176, in read
    return self.__get_table().read(relations=relations, **options)
  File "/home/roll/projects/datapackage-py/.python/lib/python3.5/site-packages/tableschema/table.py", line 133, in read
    for count, row in enumerate(rows, start=1):
  File "/home/roll/projects/datapackage-py/.python/lib/python3.5/site-packages/tableschema/table.py", line 80, in iter
    for row_number, headers, row in iterator:
  File "/home/roll/projects/datapackage-py/.python/lib/python3.5/site-packages/tableschema/table.py", line 189, in builtin_processor
    row = self.__schema.cast_row(row)
  File "/home/roll/projects/datapackage-py/.python/lib/python3.5/site-packages/tableschema/schema.py", line 156, in cast_row
    raise exceptions.CastError(message, errors=errors)
tableschema.exceptions.CastError: There are 1 cast errors (see exception.errors)

NOT-CONFIRMED
Please re-open if there will be more information to reproduce the error.

authors: roll wengdanyu

repo: frictionlessdata/datapackage-py


text:
Publish new version on PyPI

@frictionlessdata/datopian Can you give me and @aivuk admin rights on the frictionless-ckan-mapper PyPI project so we can publish new versions?
https://pypi.org/project/frictionless-ckan-mapper/
Many thanks!

@amercader I've shared access to the project with you - could you check now if you can manage the collaborators in PyPI?

I have access now, thanks @anuveyatsu!

authors: amercader anuveyatsu


text:
[docs] Add examples of "core" data that needs cleaning up to slidedecks

Add this to front page and core datasets slide decks (http://data.okfn.org/roadmap/core-datasets)
Examples

[ ] Data needs cleaning - CO2 data https://github.com/datasets/registry/issues/56
[ ] Lack of type info - GDP data (?)

This issue was moved to okfn/data.okfn.org-new#14

repo: frictionlessdata/ideas


text:
Suggestion: replace Google Analytics by GoatCounter

I just opened a ticket like this but now it's gone - I'm typing it again. If you find a duplicate somewhere feel free to close one of them.
FrictionlessData websites like https://frictionlessdata.io/ and https://create.frictionlessdata.io/ use Google Analytics. I suggest to use https://www.goatcounter.com/ : an open source, no tracking of personal data, hosted service (free for non-commercial use) alternative.
The reason that I suggest this replacement is to help our users to not pass data to Google Analytics and also to promote and support Open Source alternatives. Bonus point: GoatCounter has an export functionality and they could also provide the tableschema in the future :-)
If the change is not possible because GoatCounter lacks of some functionality needed by FD it would be nice to open an issue(s) in case that it could be implemented in the future: https://github.com/zgoat/goatcounter
Job story (feel free to change this, I'm not involved in the FD web):
Acceptance

[ ] Google Analytics is removed from frictionlessdata.io and create.frictionlessdata.io
[ ] GoatCounter is added

Tasks

[ ] Evaluate if GoatCounter has enough functionality for Frictionless Data needed analytics
[ ] Install GoatCounter in the websites (with Google Analytics? To compare results for a while?)
[ ] Export data from Google Analytics? (I don't know if this is possible)
[ ] Remove Google Analytics

Please preserve this line to notify @lwinfree (lead of this repository)

Self-hosted (implemented in Go and Postgresql, not sure if it requires Postgresql or can use other DBs)

It supports SQLite and PostgreSQL; for a single site, SQLite should be "good enough" for almost all use cases; in the benchmarks I ran last year it was actually faster than PostgreSQL.

As a side note, Goatcounter doesn't use cookies for session tracking (https://github.com/zgoat/goatcounter/blob/master/docs/sessions.markdown , it uses a non-identifiable hash

Also, this hash doesn't gets stored to disk; it's just an in-memory thing more similar to TCP sessions or some such than anything else.
Anyway, Matomo is cool too, and can certainly do a bunch of stuff GoatCounter can't (not yet, anyway) :-)

I couldn't make it to the community call... Were there any discussions about this topic? (@loleg / @sglavoie ) I'd like to know more. Thanks!

Hi @cpina!

The video has been uploaded here. (This is the timestamp at which the conversation on analytics starts).
You can also see the agenda and other items of interest on this blog post.
I think there is still a lot of space for discussion if we want to go further down that path. You are most definitely welcome to bring the topic this month if you can make it (still to be announced, it should be on Thu 24 September, 5pm BST as usual) :wink:.

Hi @sglavoie  - Thanks for the link, I'll watch the video and I'll comment further if needed. I should be able to join on the 24th September (noted into the calendar) as well in case that I would like to comment there. Cheers!

@sglavoie , @loleg: I've just watched the part of the community call that you talked about analytics (I'll listen to the rest soon). Thanks for presenting the tools and the clear explanation. When I opened this issue I was not thinking on promoting "open data analytics" for open projects but I was thinking on supporting other open source projects (GoatCounter, Matomo, etc.) and helping users to be private with privacy oriented statistic software/services. So it was a good additional angle! thanks!
(I do remember the counter of people on the websites; I even remember implementing a basic version for a website)
Some questions are still in the air: would Frictionlessdata like to leave Google Analytics and move to an alternative open source and more private solution? is there any question that needs to be answered?Is there any missing feature that should be available to the other tools? (I just don't know how is the Google Analytics data used in Frictionnlessdata).
Thanks again for the discussion!

For me this has really low priority vs many other tasks that deliver immediate value to the project (most important of which the move to new library structure) 😄
I'd suggest we only come back to this if/when we've made demonstrable progress there.

@cpina We don't use analytics very often actually. In the past year, we've used it to help inform the website redesign (seeing which pages users spend time on/how users flow thru the website) and to get user stats for applying for more funding :-)
I agree with @rufuspollock that maybe we can table making a decision on this until the next time we need to use analytics for something. At that point, I would definitely be interested in playing around with GoatCounter (or something else open) to see if it provides us with the info we need. I'm going to close this issue as I don't think there are immediate actions now, but I am definitely still interested in this idea in the future!

authors: arp242 cpina lwinfree rufuspollock sglavoie

repo: frictionlessdata/project


text:
Fix capitalization for class names

Currently inheritance can break between classes as classes might be capitalized or not. This leads to classes inheriting from Color but the class color was not capitalized. By default all class names should be CamelCased, also to avoid clashes with built-ins (like set and Set).

Also: property names need to be lower case to avoid name clashes with class names.

Fixed in 0de562afe81eb2849f06898e8e49d18e28d35418

Classes are now CamelCase or at least Titlecase (upper case letters always win, so favoring CamelCase)
Methods are now lowercase
Attributes are now UPPERCASE

A fair amount of attributes clashed with python keywords if they were lowercase
Easier to distinguish methods and attributes at a glance

Might follow up with a specialty rule to change cases where methods might clash with keywords (currently they are removed, but might rename them to avoid naming clash instead).


text:
New Command to setup developement environnement

Add new Command InstallEnvForDev.
What this command did :

Update your developement url into configuration table and shop_url table
Update ssl mode into configuration table
Regenerate htaccess
If set in option => you can change all employees BO password
If set in option => you can change all customers password
Enable debug mode
Set smart cache (css and js) to false
Set global cache to false
Disable smarty cache, force template recompilation, use cache file system
Clear all cache

Nice ! (I did not read the code yet).
It's a must have functionality !
I'll review later this week.

Je ferme car cette PR venait d'une branche qui partait de master et non pas de dev


text:
tracing example does not seems register calls

When running the tracing example I'm not seeing any calls being registered in application insights, however the opentelemetry example seems to work as expected. Strangely the component for tracing is being registered in the application map at least. I have attached two images to demonstrate the issue, I ran the tracing example a few times and the opentelemetry one twice.

I would be interested in investigating this issue and contributing a patch if it is unexpected behavior, but would appreciate some pointers if anyone has ideas on where to start investigating.
EDIT: diving into this a bit, it seems that the difference is that none of the Envelopes uploaded are named Microsoft.ApplicationInsights.Request as they are not of the right SpanKind. Would it be worth also demonstrating setting the SpanKind in the tracing example or should I close this issue?

Reading through the documentation again and looking at the code I'm reasonably convinced now that this is due to limitations with tracing-opentelemetry, as I would like to be able to set the SpanKind for my tracing spans but can't see an obvious way to do that, will pursue this further there.

Yeah, specifying a SpanKind is not supported by tracing-opentelemetry, unfortunately. I think I would be happy to add a workaround here.
We could support an attribute span.kind and make it so that tracing::info_span!("child", span.kind = "server") sends request telemetry.
Although the better solution is probably to add support for SpanKind in tracing-opentelemetry. I see it already supports a special attribute otel.name. So it might be doable to support something like otel.spankind.

https://github.com/tokio-rs/tracing/issues/747 looks there might be something in the works for this

The span.kind attribute is just passed through as the moment. It's not translated to a SpanKind. The Zipkin and Jaeger exporters in open-telemetry/opentelemetry-rust both seem to respect that attribute and prefer it over the SpanKind property.
I wonder if that's what we should do here, too 🤔

Hey all 👋  yeah we just pass through for now as that seems to be least confusing for people who are specifying that way. I've opened a spec issue to address the ambiguity here https://github.com/open-telemetry/opentelemetry-specification/issues/660 so there may be a change in this behavior of some attributes become reserved.

Hi @jtescher, thanks for dropping by. The problem here is that Azure Application Insights needs entirely different models for client and for server spans. In order to use features that rely on this distinction with the tracing crate, we would need some way of figuring out the span kind.
Do you think it makes sense to add support in tracing-opentelemetry to properly set the span kind (possibly similar to how otel.name works for the span name)? Or does it make more sense to leave this up to the exporters?

Yeah I think having the span kind set from otel.kind or something similar would make sense in tracing-opentelemetry. Want to open a PR or issue to that effect?

Sounds good. I'll try to open a PR.

@johnchildren opentelemetry-tracing 0.7.0 is out, which supports the otel.kind attribute. I updated the tracing example and it now shows the application map in the same way as the pure opentelemetry one does.

Fantastic, thanks for letting me know! Will try this out as soon as I can.

authors: frigus02 johnchildren jtescher


text:
:key is broken for some sequence functions

see the fix along the pull #34

Actually :key should adhere clhs §17.2.1, so MEMBER and ASSOC were correct implementations. However, ADJOIN and PUSHNEW are special cases where both new object and the items of the list should be accessed via the :key.
Changes added to pull #34

repo: froggey/Mezzano


text:
Incorrect docs for wildcard pattern

https://frontarm.com/navi/en/guides/authenticated-routes/
mount({
  '/login': lazy(() => import('./login')),

  '*': map(({ context }) =>
    !context.currentUser
      ? redirect(
          '/login?redirectTo='+
          encodeURIComponent(request.mountpath+request.search),
          { exact: false }
        )
      : mount({
          '/account-details': import(() => './account-details'),
          '/billing-history': import(() => './billing-history'),
        })
  )
})

A few things I noticed that seem incorrect:

I believe that mountpath and search should actually be destructured from the NaviRequest with context instead of part of a request object (unless accumulating the rest into a request object)(or maybe using (request, context) instead?)
import is taking a function I would assume this should be lazy(() => import('./account-details')) instead?
When running this example with the changes for the previous 2, I get that the URL is not found.

The modified code I ran:
mount({
  '/login': lazy(() => import('./login')),

  '*': map(({ context, ...request }) =>
    !context.currentUser
      ? redirect(
          '/login?redirectTo='+
          encodeURIComponent(request.mountpath+request.search),
          { exact: false }
        )
      : mount({
          '/account-details': lazy(() => import('./account-details')),
          '/billing-history': lazy(() => import('./billing-history')),
        })
  )
})

Good find.
Yep, your modified code is correct. I'll need to update the Navi site – will try and get it done in the next few days.

@jamesknelson I also couldn't get the modified code to properly load

Okay, I'll see if I can turn this one into a live example next week sometime.

It turns out that the issue here was actually a bug with how redirect() handled the exact option. I've just pushed out a fix with Navi 0.12.6, and have updated the documentation with a live auth example including { exact: false } and the wildcard matcher. Will publish later tonight.

authors: jamesknelson stramel

repo: frontarm/navi


text:
REST enpoint issue(s)

On credential refresh:
Unable to access https://rest-u015.immedia-semi.com/api/v3/accounts/56178/homescreen after token refresh.
On image download:
Connection error. Endpoint https://rest-u015.immedia-semi.com1646697201.jpg possibly down or throttled.
100% consistent since 3/7 mid-day pacific time.
Log snip when failure started:
Run starting at: 2022-03-07 10:30:03.219156
Capturing new still images...
Still image captured for camera FrontDeck
Still image captured for camera UpperDeck
Still image captured for camera Baltusrol
Still image captured for camera Garage
Still image captured for camera CrawlSpace
Still image captured for camera BackDeck
Still image captured for camera BackDeckAbove
Run Statistics: Found 3 videos and downloaded 0.
Run complete at: 2022-03-07 10:31:27.920863
Run starting at: 2022-03-07 10:40:03.015768
Run Statistics: Found 3 videos and downloaded 0.
Run complete at: 2022-03-07 10:41:35.583235
Run starting at: 2022-03-07 10:50:03.100752
Run Statistics: Found 3 videos and downloaded 0.
Run complete at: 2022-03-07 10:51:35.987251
Run starting at: 2022-03-07 11:00:02.947551
Capturing new still images...
Run starting at: 2022-03-07 11:10:02.894844
Capturing new still images...
Run starting at: 2022-03-07 11:20:02.776485
Capturing new still images...
Run starting at: 2022-03-07 11:30:02.845549
Capturing new still images...

I’ll note that the mobile application works fine. Clearly the fiddled with the REST endpoints. I have the latest version of blinkpy installed. System is patched and up to date on Ubuntu 20.04.4 - python 3.8.10

Sucess …. and abject failure :(
Looks like the REST enpoints are good but there is some failure in writing the file to disk. I can confirm that the location specified exists and is writeable by the user running the job. Looks like the camera.image_to_file(<file path & name>) call isn’t actually writing the file or throwing an exception. When I go to FTP the file it isn’t found…
Log snip:
Run starting at: 2022-03-08 16:41:37.998948
Capturing new still images...
Cannot write image to file, response 404
Traceback (most recent call last):
File "/mnt/primary/blink_events/blink_integration/blink_integration.py", line 229, in
_ftp_file(name, full_file_name, file_name_date, 'image')
File "/mnt/primary/blink_events/blink_integration/blink_integration.py", line 184, in _ftp_file
with open(_file_name, "rb") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/primary/blink_events/blink/FrontDeck_2022-03-08T16:41:45-00-00.jpg'

Hello, I have the same error with v0.19.rc0 , the thumbnail url seems not good,
camera attributes  :
{'name': 'kitchen', 'camera_id': '218545', 'serial': 'G8T1GJ0012641LC8', 'temperature': 42, 'temperature_c': 5.6, 'temperature_calibrated': 40, 'battery': 'ok', 'battery_voltage': 161, 'thumbnail': 'https://rest-e006.immedia-semi.com/1646811902.jpg', 'video': None, 'motion_enabled': True, 'motion_detected': False, 'wifi_strength': -61, 'network_id': 180359, 'sync_module': 'home', 'last_record': None}

Hello,
Got the same problem since fews days.
Trying to request camera info direct from curl request and getting this reponse:
{"camera_status":{"camera_id":XXXXX,"created_at":"2019-12-07T11:06:44+00:00","updated_at":"2022-03-09T10:49:50+00:00","wifi_strength":-49,"lfr_strength":-59,"battery_voltage":161,"temperature":57,"fw_version":"7.101","fw_git_hash":"mainline:3f1faaf5","mac":"f4:b8:5e:f3:aa:d4","ipv":"ipv4","ip_address":"192.168.0.105","error_codes":0,"battery_alert_status":true,"temp_alert_status":false,"ac_power":false,"light_sensor_ch0":172,"light_sensor_ch1":8606,"light_sensor_data_valid":true,"light_sensor_data_new":true,"time_first_video":181482,"time_108_boot":58661,"time_wlan_connect":930438,"time_dhcp_lease":1575755,"time_dns_resolve":2167,"lfr_108_wakeups":419,"total_108_wakeups":631,"lfr_tb_wakeups":65337,"total_tb_wakeups":57344,"wifi_connect_failure_count":0,"dhcp_failure_count":0,"socket_failure_count":5198,"dev_1":1616544,"dev_2":3107,"dev_3":458853,"unit_number":2,"serial":"XXXX","lifetime_count":0,"lifetime_duration":0,"pir_rejections":1221,"sync_module_id":XXX,"network_id":XXX,"account_id":XXX,"id":1,"thumbnail":"1646822991"}}
So the last thumbnail of the camera is well registered as: "1646822991"
But when I request (european endpoint) this via curl request: https://rest-prde.immedia-semi.com/1646822991.jpg
I got nothing as reponse wherease I got '{"message":"Media not found","code":700}' if I'm trying a regular request on media folder.

Solved via curl requesting
The format of thumbnail access link has changed.
Before that was: endpoint/thumbnail_ID.jpg (example: https://rest-prde.immedia-semi.com/1646822991.jpg)
Now, the thumbnail is getting from this link: endpoint/api/v3/media/accounts/account_ID/networks/network_ID/xt2/camera_ID/thumbnail/thumbnail.jpg?ts=thumbnail_ID (example:  https://rest-prde.immedia-semi.com/api/v3/media/accounts/XXXX/networks/XXXX/xt2/XXXX/thumbnail/thumbnail.jpg?ts=1646822991
If that can help, this is my request to getting the jpg and storring it localy (into os.execute for my case):
os.execute("curl -H 'Host: "..blink_host.."' -H 'TOKEN_AUTH: "..blink_auth_token.."' --compressed https://"..blink_host.."/api/v3/media/accounts/"..blink_account_id.."/networks/"..blink_network_id.."/xt2/"..blink_camera_id.."/thumbnail/thumbnail.jpg?ts="..thumbnail_url.." > /volume1/web/camera/blink//bin/date '+%Y-%m-%d_%H-%M-%S'-"..blink_camera_filename..".jpg")
This change is only concerning XT2 cam.
My other Blink camera, which is the oldest model as always this link to acces to thumbnail: endpoints/media/production/account/XXXX/network/XXXX/camera/XXXX/clip_Y_XXXX_2022_03_09__13_55PM
Strange but, like that working for the twice

Yes, there are now different schema (don't know if Blink mini schema is different too).
To illustrate, have adapted my function save_picture like that and now working like a charm (blink_camera_entree_id is xt2 and blink_camera_jardin_id is an old model):
`if (blink_camera_id == blink_camera_entree_id) then
os.execute("curl -H 'Host: "..blink_host.."' -H 'TOKEN_AUTH: "..blink_auth_token.."' --compressed https://"..blink_host.."/api/v3/media/accounts/"..blink_account_id.."/networks/"..blink_network_id.."/xt2/"..blink_camera_id.."/thumbnail/thumbnail.jpg?ts="..thumbnail_url.." > /volume1/web/camera/blink//bin/date '+%Y-%m-%d_%H-%M-%S'-"..blink_camera_filename..".jpg")
elseif (blink_camera_id == blink_camera_jardin_id) then
os.execute("curl -H 'Host: "..blink_host.."' -H 'TOKEN-AUTH: "..blink_auth_token.."' --compressed https://"..blink_host..""..thumbnail_url..".jpg > /volume1/web/camera/blink//bin/date '+%Y-%m-%d_%H-%M-%S'-"..blink_camera_filename..".jpg")
end`

Hello,
I saw that the homescreen method had the right url for the thumbnail.
So I modified the following line in the update_image method of camera.py
thumb_addr= config["thumbnail"]
by
    for camera in self.sync.blink.homescreen['cameras']:
         if str(camera['id']) == self.camera_id:
              thumb_addr = camera['thumbnail'].split('=')[0]+'='+config["thumbnail"]+"&ext="

and it works for me

Hey everyone -
This is what I did to get my setup working again - needs to be polished and I am not in a position to submit an MR (sorry fronzbot).
I do want to point out that i have 3 camera types (xt, xt2 and catalina) so that led me down the route of looking at xt for the old method.
diff --git a/blinkpy/camera.py b/blinkpy/camera.py
index 29ceec8..1530538 100644
--- a/blinkpy/camera.py
+++ b/blinkpy/camera.py
@@ -30,6 +30,7 @@ class BlinkCamera:
         self.last_record = None
         self._cached_image = None
         self._cached_video = None
+        self.type = None
         self.camera_type = ""

     @property
@@ -51,6 +52,7 @@ class BlinkCamera:
             "wifi_strength": self.wifi_strength,
             "network_id": self.sync.network_id,
             "sync_module": self.sync.name,
+            "type": self.type,
             "last_record": self.last_record,
         }
         return attributes
@@ -145,6 +147,7 @@ class BlinkCamera:
         self.battery_state = config.get("battery_state", None)
         self.temperature = config.get("temperature", None)
         self.wifi_strength = config.get("wifi_strength", None)
+        self.type = config.get("type", None)

     def get_sensor_info(self):
         """Retrieve calibrated temperatue from special endpoint."""
@@ -162,12 +165,15 @@ class BlinkCamera:
         new_thumbnail = None
         thumb_addr = None
         if config.get("thumbnail", False):
-            thumb_addr = config["thumbnail"]
+            if self.type == "xt":
+                thumb_addr = f"{config['thumbnail']}.jpg"
+            else:
+                thumb_addr = f"/api/v3/media/accounts/{self.sync.blink.account_id}/networks/{self.network_id}/{self.type}/{self.camera_id}/thumbnail/thumb
nail.jpg?ts={config['thumbnail']}"
         else:
             _LOGGER.warning("Could not find thumbnail for camera %s", self.name)

         if thumb_addr is not None:
-            new_thumbnail = f"{self.sync.urls.base_url}{thumb_addr}.jpg"
+            new_thumbnail = f"{self.sync.urls.base_url}{thumb_addr}"

         try:
             self.motion_detected = self.sync.motion[self.name]

Hi. I'm having exactly the same issue, but with a Blink outdoor camera. I have 3 of them in my system. When I tried to change the thumbnail of one of them (surely after 3/7), the thumbnail becomes unavailable and I have the same error in log.

Hi. Same issue here which started a week or so ago. Have now tried with v0.19.rc0 which has fixed the thumbnail URL formatting issue but throws an issue when trying to refresh the camera and save the image to file:
Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not find thumbnail for camera unknown
I've checked that the camera name is fine as it's getting it to snap a new image and can retrieve camera attributes such as battery level. The error is thrown from the Blink outdoor camera (though I've a couple of minis in the system too).

Same Issue in Home Assistant. :(

I’ll test it now.

no it does not work yet
in your camera.py the thumbnail url is
"/api/v3/media/accounts/{self.sync.blink.account_id}/networks/{self.product_type}/{self.camera_id}/thumbnail/thumbnail.jpg?ts={thumb_addr}&ext="
perhaps {network_id} ist missing after /networks/

yes in line 179 with
"/api/v3/media/accounts/{self.sync.blink.account_id}/networks/{self.network_id}/{self.product_type}/{self.camera_id}/thumbnail/thumbnail.jpg?ts={thumb_addr}&ext="
i get the thumbnial. catalina cam i have.

Yep - RC2 did it. I’ll let it run for a few hours and update you if I see any issues. Thanks!

I have the same problem. I have the integration standard Blink in HA, all the entity go well but the preview not.

authors: AlainBRUNEL ZaGaPonG briantroy cutzenfriend jacoch marcoabox markeff misterboo tsolid

repo: fronzbot/blinkpy


text:
[QUESTION]. how to use it?

I created a test project
pdm init

add run.py
def run():
    print('hello')

pack
pdm pack -m run:run -o app.zip -v
Packing packages...
All packages are synced to date, nothing to do.

  All complete!
Packages are prepared at U:\Temp\pdm-pack-a64tsc6l\lib
Creating zipapp...
Traceback (most recent call last):
  File "C:\Python\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "c:\users\user\.local\bin\pdm.exe\__main__.py", line 7, in <module>
  File "C:\Users\user\.local\pipx\venvs\pdm\lib\site-packages\pdm\core.py", line 254, in main
    return Core().main(args)
  File "C:\Users\user\.local\pipx\venvs\pdm\lib\site-packages\pdm\core.py", line 187, in main
    raise cast(Exception, err).with_traceback(traceback)
  File "C:\Users\user\.local\pipx\venvs\pdm\lib\site-packages\pdm\core.py", line 182, in main
    f(options.project, options)
  File "C:\Users\user\.local\pipx\venvs\pdm\lib\site-packages\pdm_packer\command.py", line 120, in handle
    zipapp.create_archive(
  File "C:\Python\lib\zipapp.py", line 111, in create_archive
    raise ZipAppError("Source does not exist")
zipapp.ZipAppError: Source does not exist

Cannot pack if there are no packages? - pdm add colorama
(why not use without packages)
and try again
pdm pack -m run:run -o app.zip -v
Packing packages...
Synchronizing working set with lock file: 1 to add, 0 to update, 0 to remove

unearth: Downloading <Link https://files.pythonhosted.org/packages/77/8b/7550e87b2d308a1b711725dfaddc19c695f8c5fa413c640b2be01662f4e6/colorama-0.4.5-py2.py3-none-any.whl (from None)> to U:\Temp\pdm-build-42ueqwgg\colorama-0.4.5-py2.py3-none-any.whl
  v Install colorama 0.4.5 successful

  All complete!
Packages are prepared at U:\Temp\pdm-pack-1trs0fvn\lib
Creating zipapp...
Zipapp is generated at app.zip

app.zip structure
        colorama
        __main__.py

no run.py file
pdm pack --help
Usage: pdm pack [-h] [-v] [-g] [-p PROJECT_PATH] [-m MAIN] [-o OUTPUT] [-c] [--pyc] [--no-py] [-i INTERPRETER] [--exe]

Pack the packages into a zipapp

only packages without project files? then why need -m run:run?
pdm info && pdm info --env
pdm info && pdm info --env
PDM version:
  2.0.0
Python Interpreter:
  C:\Python\python.exe (3.10)
Project Root:
  z:/testapp
Project Packages:
  z:\testapp\__pypackages__\3.10
{
  "implementation_name": "cpython",
  "implementation_version": "3.10.5",
  "os_name": "nt",
  "platform_machine": "AMD64",
  "platform_release": "10",
  "platform_system": "Windows",
  "platform_version": "10.0.19044",
  "python_full_version": "3.10.5",
  "platform_python_implementation": "CPython",
  "python_version": "3.10",
  "sys_platform": "win32"
}

If you have code to run in your project, the project itself should be installed into __pypackages__ as well. Make sure you have set a project name in pyproject.toml.

should be installed into pypackages

how to understand it?
If I just set the project name
[project]
name = "appz"

it will be strange
pdm pack -m run:run -o app.zip -v
Packing packages...
Synchronizing working set with lock file: 1 to add, 0 to update, 0 to remove

unearth: Downloading <Link https://files.pythonhosted.org/packages/77/8b/7550e87b2d308a1b711725dfaddc19c695f8c5fa413c640b2be01662f4e6/colorama-0.4.5-py2.py3-none-any.whl (from None)> to U:\Temp\pdm-build-xchq149a\colorama-0.4.5-py2.py3-none-any.whl
  v Install colorama 0.4.5 successful
Installing the project as a package...
pdm.termui: Preparing isolated env for PEP 517 build...
pdm.termui: Running PEP 517 backend to build a wheel for <Link file:///Z:/testapp (from None)>
pdm.termui: Using pip 22.1.2 from C:\Python\lib\site-packages\pip (python 3.10)
pdm.termui: Looking in indexes: https://pypi.org/simple, https://pypilist:****@pypi.baradat.tk/simple
pdm.termui: Collecting pdm-pep517>=1.0.0
pdm.termui:   Using cached pdm_pep517-1.0.2-py3-none-any.whl (305 kB)
pdm.termui: Installing collected packages: pdm-pep517
pdm.termui: Successfully installed pdm-pep517-1.0.2
pdm.termui: U:\Temp\pdm-build-env-t4_3i294-shared\Lib\site-packages\pdm\pep517\wheel.py:153: PDMWarning: No license files are matched with glob patterns ['LICENSES/*', 'LICEN[CS]E*', 'COPYING*', 'NOTICE*', 'AUTHORS*'].
pdm.termui:   for license_file in self.find_license_files():
pdm.termui:  - Adding appz-.dist-info/WHEEL
pdm.termui:  - Adding appz-.dist-info/METADATA
pdm.termui:  - Adding appz-.dist-info/RECORD
  v Install appz  successful

  All complete!
Packages are prepared at U:\Temp\pdm-pack-yie_vj86\lib
Creating zipapp...
Zipapp is generated at app.zip

and id I placed file __pypackages__\3.10\lib\appz\run.py   and try again
it still won't be put in the zip
I have to build pypi package and then install it? So I can't create a zipapp just from work project?

❯ tree
.
├── __pypackages__
├── pdm.lock
├── pyproject.toml
└── run.py

cat pyproject.toml
[project]
name = "foo"
...

$ pdm install # this is important, to install all dependencies and the project itself
$ pdm pack -m run:run -o app.pyz
$ unzip -l app.pyz
Archive:  app.pyz
  Length      Date    Time    Name
---------  ---------- -----   ----
       31  07-16-2022 21:11   run.py
       45  07-16-2022 21:11   __main__.py
---------                     -------
       76                     2 files

The caveats are:

The project itself MUST be able to package(i.e. has a name)
The files you want to pack MUST be included in the package. We do not include all files by default, you can use the includes and excludes config to control that.

@frostming
It worked
An additional question - what about the dependencies like pyqt5 ("RECORD is not mentioned in RECORD")?
pdm pack tries to install package and breaks on this error.

@frostming
It worked
An additional question - what about the dependencies like pyqt5 ("RECORD is not mentioned in RECORD")?
pdm pack tries to install package and breaks on this error. The package is already exitsts in __pypackages__. Is it possible to skip install step?

There is a known limitation about Python zipapp, C extension modules don't work in a zipapp. i recommend not trying it.

please @frostming , could you add an small working example project on the docs?

@cvgaviao Did you encounter any problem using this plugin?

@frostming, yep.
The issues I had was due the fact that I'm coming from Java world and there a lot of python specific details that would be necessary to understand in order to use it (main, project.scripts and others).
It would simplify the life of a newcomer a simple functional example containing the minimal artifacts to work with PDM on all its lifecycle stages (install deps, lint, unit tests, integration tests, build package, zip and publish) ;)

authors: cvgaviao frostming vitidev

repo: frostming/pdm-packer


text:
[common] Archive.org broken ($15 bounty - backed)

This should be as simple as taking a look at changes in the JSON output of the Archive.org API and updating our respective objects to match whatever they have changed.
If it's any more complex it could be only because they've changed the REST URL structures and then it's a matter of changing URLs.
FrostWire version 6.1.7 build 168
Nov 18, 2015 2:45:50 PM com.frostwire.search.PagedWebSearchPerformer
INFO: Error searching page: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1011 path $.response.docs[0].subject
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1011 path $.response.docs[0].subject
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Unknown Source)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Unknown Source)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Unknown Source)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.Gson.fromJson(Unknown Source)
at com.google.gson.Gson.fromJson(Unknown Source)
at com.google.gson.Gson.fromJson(Unknown Source)
at com.google.gson.Gson.fromJson(Unknown Source)
at com.frostwire.util.JsonUtils.toObject(Unknown Source)
at com.frostwire.search.archiveorg.ArchiveorgSearchPerformer.searchPage(Unknown Source)
at com.frostwire.search.PagedWebSearchPerformer.searchPage(Unknown Source)
at com.frostwire.search.PagedWebSearchPerformer.perform(Unknown Source)
at com.frostwire.search.SearchManagerImpl$PerformTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1011 path $.response.docs[0].subject
at com.google.gson.stream.JsonReader.beginArray(Unknown Source)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(Unknown Source)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Unknown Source)
... 20 more

Perhaps @votaguz or @X-NicON  might want to take a look?
Starting point to look is at com.frostwire.search.archiveorg.ArchiveorgSearchPerformer.searchPage and its related classes.

I coped.
however, the entire response was written in error ...

have fun!

does it work now? or still work in progress? [WIP]

I've tested this and it works now. Merging and releasing bounty. Thank you!

Bounty released, thank you very much.

authors: X-NicON gubatron

repo: frostwire/frostwire


text:
update silly wisher assets to 0.42

Describe your changes
Adds portrait and splash art for Arlecchino. ❤🔥
Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

[x] I have commented my code in hard-to understand areas.
[x] I have made corresponding changes to README or wiki.
[x] For front-end changes, I have updated the corresponding English translations.
[x] I have run yarn run mini-ci locally to validate format and lint.
[x] If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

Im assuming no sige/sethos/clorinde yet?

Nope, this is the latest version.

repo: frzyc/genshin-optimizer


text:
look into rebuild of architecture

look into babylon js itself (Vite-Template)
look into ECS (Entity-Component-System) for rebuild

Decided to rebuild the architecture only, implemented somewhat ECS system.


text:
Docs page has broken links

When you're on the reference page:
http://fsharp.github.io/FSharp.Compiler.Service/reference/index.html
Many things on the right are broken, for example:
http://fsharp.github.io/FSharp.Compiler.Service/reference/tokenizer.html
http://fsharp.github.io/FSharp.Compiler.Service/reference/devnotes.html

Yep, though only if you are on a "reference" page.  All links from main pages such as http://fsharp.github.io/FSharp.Compiler.Service/ are ok

authors: dsyme georgewfraser


text:
Add up-for-grabs issues

I love an idea behind the project and I sure there are plenty of engineering problems new contributors might help with. Could you please add (or label) up-for-grab issues? Thank you!

I'll get on that. I've been considering a massive overhaul and I'll create a punch list of things to fix.

Hi @matthewcrews, I am loving the FLIPS library.  I would like to extend the FLIPS library to use a quadratic programming solver for portfolio optimization within the investment management realm, similar to choosing "GRG nonlinear" for the solver in the Solver add-in for Excel.  I would incorporate this by effectively wrapping the open source Accord .NET library and we would specify the solver...  Any thoughts about this idea (like or dislike)?

I do like this idea. As I mentioned above, Flips needs a massive overhaul. I wrote it before I had much experience with creating libraries and supporting them. There are several mistakes in it that cause far more allocation than should be required, and this becomes burdensome with large models. Flips also went 1.0 well before it should have. It should really be ~0.8 based on how people are versioning their libraries these days.
I have re-written Flips for an internal project at my company, and I have been letting it bake to ensure it's production worthy. I will then migrate these changes into the main branch.
I want to extend Flips to be able to model Quadratic Programs. I would like also to be able to differentiate between LP Models, MIP models, and Quadratic Models. Right now, both LP and MIP models become just a Model type, and only the solver you choose cares about the types of decision variables: Continuous vs. Binary vs. Integer. This can cause confusion on the output for the user because some solvers will take an Integer or Binary decision variable and just treat it as continuous. Google's GLOP solver is an example. This has caused problems with debugging solver output.
I would like the API to cleanly "promote" models from LP or Binary to a MIP and for the Solvers to output an LP Result, Binary Result, or MIP Result. This then provides extra guard rails for non-Mathematical Programming Experts to use the API correctly.
Adding Quadratic Expressions to the solver would open Flips up to being used in more scenarios, and I would like that. It does make the name a bit of a misnomer because Flips stand for F# LInear Programming System. The truth is that the Flips name has always been a misnomer since it supported MIPS models from the beginning.
Perhaps I'm overcomplicating it, though. I could just raise a warning when you are using an LP solver with a non-LP Model.
My dream is for Flips to be an easy-to-use library for mathematical modeling of optimization problems. I do think Quadratic Programming would be a worthwhile addition.

I would love to help out refactoring any way I can!  I hope you also think about using the refactoring process as a set of videos with the Fast F# YouTube channel!  Please let me and others know where we can contribute!

authors: AtwoodTM gsomix matthewcrews

repo: fslaborg/flips


text:
support to the mobilnetv2-yolo structure of r1.13

add the mobilenetv2_yolo_body_r13, which makes the r1.14 supoort the mobilenetv2-yolo structure of r1.13

@fsx950223 i did not find squash button for this repo.

I make r1.14 support the model structure of r.1.13 instead of using r1.13, because r1.13 does NOT work well in my multi-gpu machine.

What is the value of the data on voc dataset?

I did not try on voc.
it works better than the one of r1.14 on my own dataset.

You should try it and show me the mAP

OK. Once my machines have spare time.
And the model is exactly same as the one in r1.13. And the weights file trained by r1.13 can be loaded.

Ok, thanks
hejinIzhanghao <notifications@github.commailto:notifications@github.com> 于2019年9月5日周四 下午4:12写道：
OK. Once my machines have spare time.
And the model is exactly same as the one in r1.13. And the weights file trained by r1.13 can be loaded.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/fsx950223/mobilenetv2-yolov3/pull/55?email_source=notifications&email_token=AEGHB44SOC4HDATP3SP4L33QIC5NPA5CNFSM4ITZSMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD56H3LI#issuecomment-528252333, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEGHB4ZI2HUB4WBMNU536PLQIC5NPANCNFSM4ITZSMNA.

@fsx950223
BTW:
backbone of mobilenetv2 + loss of GIOU/MSE worked on my dataset.
backbone of mobilenetv2 + loss of MSE worked, but the loss of GIOU did not work with all loss of nan.
I did not find the reaseon yet.


text:
imagemagick doesn't install convert even when installing legacy tools is enabled for some reason now

not exactly the right place to put this but the other places i put this in completely ignored me so eh
._.
help pls

also slight feature request(s)
option to treat modern usernames (@s) as classic user/ URLs
wayback_features for the watch page
option to disable the modern channel banner on the channel pages because apparently they still show even when an appropriate wayback_features background exists

fixed by simply stealing an older version off the internet archive


text:
Fastclick.js being blocked by AdBlock

Has anybody had any issues with the fastclick.js file being blocked by AdBlock in Chrome (49)?

:D fastclick used to be an advertising network (https://en.wikipedia.org/wiki/Fastclick - up until 2005 it seems!)

I have taken a look at the forums for EasyList, the large filter which AdBlock downloads regularly. They have since removed it from their filter, it was a mistake it seems.
If you go to filter preferences and then down to EasyList and actions, you can click "update filters". Should be good to go!

Thank you very much for the quick responses. Updating the filters resolved the issues.
Thank you once again.

authors: HarryPhillips mrlilly rowanbeentje

repo: ftlabs/fastclick


text:
表单必填校验相关问题

在单选、复选组件设置 “必填” 后，表单项校验出现了问题，如图

请问我该从哪方面着手解决这个问题呢？
下面是配置JSON
{
  "list": [
    {
      "label": "单选框组",
      "type": "radio",
      "options": {
        "defaultValue": "",
        "width": "",
        "inline": true,
        "remote": false,
        "showLabel": false,
        "remoteFunc": "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
        "options": [
          {
            "value": "Option 1",
            "label": "Option 1"
          },
          {
            "value": "Option 2",
            "label": "Option 2"
          },
          {
            "value": "Option 3",
            "label": "Option 3"
          }
        ],
        "remoteOptions": [],
        "props": {
          "value": "value",
          "label": "label"
        },
        "disabled": false,
        "rules": {
          "trigger": "change",
          "enum": "",
          "message": "111",
          "pattern": "",
          "required": true,
          "type": "string"
        }
      },
      "key": "61df14ee07cf40b797f5b680c1396b8e",
      "model": "radio_61df14ee07cf40b797f5b680c1396b8e",
      "rules": []
    },
    {
      "label": "多选框组",
      "type": "checkbox",
      "options": {
        "defaultValue": [],
        "width": "",
        "inline": true,
        "remote": false,
        "showLabel": false,
        "remoteFunc": "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
        "options": [
          {
            "label": "Option 1",
            "value": "Option 1"
          },
          {
            "label": "Option 2",
            "value": "Option 2"
          },
          {
            "label": "Option 3",
            "value": "Option 3"
          }
        ],
        "remoteOptions": [],
        "props": {
          "value": "value",
          "label": "label"
        },
        "disabled": false,
        "rules": {
          "trigger": "change",
          "enum": "",
          "message": "222",
          "pattern": "",
          "required": true,
          "type": "array"
        }
      },
      "key": "51b51667efe54d41809e64b8fb40951c",
      "model": "checkbox_51b51667efe54d41809e64b8fb40951c",
      "rules": []
    }
  ],
  "config": {
    "size": "default",
    "hideRequiredMark": false,
    "layout": "horizontal",
    "labelAlign": "right",
    "labelCol": {
      "span": 3,
      "offset": 0
    }
  }
}

@fuchengwei 或许我们可以一起研究下 :-)
刚刚发现这里的异常应该是由于触发校验时机先于model.value更新导致的
如下图，在选中 Option 3 时，value值还没有更新，但是validator已经执行了，这步的延迟导致了上面的问题出现。

最新1.2.4版本解决了 你可以升级到最新版本尝试一下

authors: fuchengwei jackyyyy-dev

repo: fuchengwei/vue-form-create


text:
0.2.1 hasn't been released to Hackage

0.2.1 has a release here, dated 2022-04-11: https://github.com/fugue/goldplate/releases/tag/v0.2.1
But it seems it has been forgotten to push it to Hackage.
I'd say current master can be released to Hackage as 0.2.1 and the tag can be moved.  The only difference seems to be the bump to aeson: https://github.com/fugue/goldplate/compare/0.2.1...master

Candidate: https://hackage.haskell.org/package/goldplate-0.2.1/candidate

If moving the tag isn't a good idea, we can also release 0.2.1.1 (PVP even allows 0.2.1.0).

repo: fugue/goldplate


text:
inspector db viewer stops working when using workspaces

Fulcroinspect version 1.0.16.
Chrome Version 76.0.3809.132 (Official Build) (64-bit)
Os: Mac 10.14.6 (18G95)
I have one workspaces defcard  that will stop the fulcro inspect db viewer from working. (clicking on the inspector button for the card does nothing)  After attempting to open this card i need to restart chrome for the inspector to work.
The card renders and works fine. The name of the card is playlist-viewer-factory. If i change the name of the card to be something else (then restart chrome) the inspector works.
Not really sure what other information would be helpful in debugging this, feel free to ask.

So the way the database viewer works: it sends diffs of the database from the client to the chrome extension (for speed).  I've seen it as well (the db viewer loses track of state). Perhaps you have an example that triggers it more reliably. I doubt the name has anything to do with it. Perhaps you've got non-serializable state in your app state that is confusing it. We try to send over a placeholder for those things (security makes it impossible to send the actual values to a chrome extension).

Duplicate of #56

authors: awkay timeyyy

repo: fulcrologic/fulcro-inspect


text:
🛑 Waddle Penguins Island - API is down

In a37455a, Waddle Penguins Island - API (https://api.waddlepenguins.me/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Waddle Penguins Island - API is back up in f744d95 after 16 minutes.

repo: fullmoondev/status


text:
🛑 NGR System Status is down

In 4252e7b, NGR System Status (https://my.ngr.com.au/api/v2/web_service/service_test) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NGR System Status is back up in 1f05e34.

repo: fullprofile/agridigital-status-monitor


text:
showCredentials does not support -Plocation

Running gradle showCredentials -Plocation=project displays the credentials stored in the home folder instead of the project folder.

For the moment this task just shows credentials from home directory and the parameter called 'location' doesn't exist here, but the next build we can added this parameter to show credentials from project and home directories.

OK. No worries, it's not urgent.

OK, I will take in account this ticket to the next sprint.

authors: marcocdlv ndorotte

repo: fundacionjala/enforce-gradle-plugin


text:
Support for authorization header

One standard header in HTTP requests is authorization. This can be used to provide credentials to the server and the server can then use this to authorize certain paths on the server demanding for example username and password for login. Maybe we can create a class that can handle this for incoming requests? Can also be extended with functionality for permitting and or banning ip-adresses.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
Example, when from a client (Insomnia) using the Auth mode Basic we can provide a username and password.

This results in a header:
Authorization: Basic , where credentials is the Base64 encoding of ID and password joined by a single colon :.
For username: user and password:password the following will be sent to the server which has to base64 decode the textstring and separate username and password.
authorization: Basic dXNlcjpwYXNzd29yZA==
If no credentials are available or they are invalid the server can respond with a 401 (Unauthorized) status code.

I have provided a part of the solution in pull request #67

repo: fungover/storm


text:
TypeScript type definition files

Do any TypeScript definition files exist for this or are there plans for any?

Currently there are no TypeScript definition files. PR's welcome

I can do that. I did the typings for my project, I can polish them and make a PR.

Should I make the PR on develop or on master?

Develop. Thanks for the PR :+1:

this still isn't in master.
PR https://github.com/furqanZafar/react-selectize/pull/135

authors: caguthrie ehartford furqanZafar vintem

repo: furqanZafar/react-selectize


text:
Favicon briefly changes to my specified one, but then changes back once page loads

Describe the bug
Chrome tab modifier has been AWESOME, thank you! I recently updated to Brave Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (arm64), and I'm suddenly back to the Favicon for the site, rather than the one I want. I see the Favicon I specified in the rules briefly, but the tab reverts to the site's Favicon once the page is fully loaded.
To Reproduce
Steps to reproduce the behavior:

Using the latest version of Brave browser, go to a website that matches a Chrome tab modifier rule.
Watch how the tab briefly shows the correctly specified Favicon, then reverts to the site's Favicon.

Expected behavior
Prior to updating Brave this morning, the tab correctly showed my specified Favicon.
Screenshots
Here's a link to a video of this problem in action. Note that the Favicon briefly includes "TW," as I've configured, but then quickly reverts to the default Favicon once the page is loaded. This was working prior to updating Brave this morning, and I've made no other config changes.
Extension version: 1.0.6
Can be found here: chrome://extensions/?id=hcbgadmbdkiilgpifjgcakjehmafcjai

Hi @gerrymiller,

Do you have the same behavior on other sites?
Do you confirm the same website works on Chrome so the issue is only targeted on Brave?

Bests

Thank you, @sylouuu. I am not seeing this behavior on other sites (e.g., https://oxygen.cloudticity.com), so it may be isolated just to https://teamwork.cloudticity.com.
The issue with https://teamwork.cloudticity.com shows on the latest versions of both Brave and Chrome.
Warm regards,

Gerry

Hi @gerrymiller,
Do you still have the bug with version 1.0.7, please?
Regards,

It's working with v1.0.7! Thank you.

That's great to hear! Thank you for letting us know.

authors: gerrymiller sebastienfontaine sylouuu

repo: furybee/chrome-tab-modifier


text:
about auto-connection issues

i use "mqtt.setReconnectAttemptsMax(-1)" to set the program auto connect in disconnection,but when i turn off wifi,maybe have passed 30s ，fusesource mqtt-client callback disconnect notification for。 and then turn on again, maybe few seconds,mqtt-client auto connecting ,but appear twice connect,it is cause  a loop that connected and disconnect。could somebody help me? thanks

I have the same problem, but I find it very hard to reproduce. Sometimes it's OK, but sometimes it just goes into loop of connects and disconnects, than program crashes with NPE of OOM.
BTW, I am using the Callback/Continuation Passing based API on Android. And you, @luchec ?

OK, definitely a bug. I've found a way to get a good percent of reproducibility.

Run your program. Then on host with MQTT server (I use mosquitto) execute:

sudo iptables -A INPUT -p tcp --dport 1883 -j DROP

wait up to 30 seconds... than:
sudo iptables -D INPUT -p tcp -m tcp --dport 1883 -j DROP

And viola!
If using blocking connection (for simplicity I even started this program on localhost):
Exception in thread "hawtdispatch-DEFAULT-2" java.lang.NullPointerException
	at org.fusesource.mqtt.client.CallbackConnection$7.run(CallbackConnection.java:414)
	at org.fusesource.hawtdispatch.transport.HeartBeatMonitor$3.run(HeartBeatMonitor.java:83)
	at org.fusesource.hawtdispatch.transport.HeartBeatMonitor$1.run(HeartBeatMonitor.java:62)
	at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:100)
	at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)

If using Callback/Continuation Passing based API, I see this loop of connects and disconnects and they occurs on different hawtdispatch threads. Like this:
hawtdispatch-DEFAULT-3 : connected
hawtdispatch-DEFAULT-1: connected
hawtdispatch-DEFAULT-1: disconnected
hawtdispatch-DEFAULT-4: connected
hawtdispatch-DEFAULT-2: connected
hawtdispatch-DEFAULT-2: disconnected
... etc etc

@looluo you know if they are going to merge this back at fuse-source?

@chirino Still tracking this issue, would like to see @looluo's merged at fuse-source or for it to be otherwise addressed.

authors: MarcoPOLOFXH Monachus lopatoid luchec

repo: fusesource/mqtt-client