text:
Multiple tvdb links for series

Reported by aznkvaj, May 3, 2012
Please allow multiple links for tvdb specific for season zero selections because of the way tvdb was redesigned and organized.
Example:
Ah! My Goddess has 5 different series listed but tvdb list the ova under special and not under the specific ova names.
Dot hack series are another with the same issue on tvdb.
maximo.piva
Hmm. Instead unique TvDB ID and TrakTV ID per serie.
The combination of ID, Season and Episode like MAL. For TvDB and TrakTV.
Auto-Matching the correct season/episode start, could be done, using Levenshtein distance.
Specifically on TvDB and TrakTV, the first episode of the serie to match, should match episode 1 of season 1, episode 1 of season 2, etc...... if no good match, the first episode should be the best episode match, of all episodes ovas (Season 0). Or could be matched using aired date.
This will fix almost all problem i found, since the most common is two or three series that are marked as ovas in TvDB/TrakTV.
Also, on manual assign, instead of assigning via ComboLister with the Season and a Numeric input, a combolister having every Season/Episode (With Names) populated from TvDB/TrakTV/MAL should be nice, clicking should show a lister with two columns, one column with AniDB episodes of the series, and the second with The selected episodes on TVDB/TrakTV/MAL.
werndlymob
Sorry, yeah you won't be able to do it yet, since my validation would block you assigning the same TvDB series/season combination to more than one anime series (This will need to be removed)

This has already been done for TvDB/Trakt

repo: japanesemediamanager/jmmserver


text:
UnicodeDecodeError

I have a python project. Trying to execute
py2 setup.py bdist_wheel
<skipping lines...>
  File "setup.py", line 20, in <module>
    description='my script'
  File "C:\Python27\ArcGIS10.2\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "C:\Python27\ArcGIS10.2\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\ArcGIS10.2\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\wheel\bdist_wheel.py", line 211, in run
    self.run_command('install')
  File "C:\Python27\ArcGIS10.2\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\ArcGIS10.2\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Python27\ArcGIS10.2\lib\distutils\command\install.py", line 575, in run
    self.run_command(cmd_name)
  File "C:\Python27\ArcGIS10.2\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\ArcGIS10.2\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\install_egg_info.py", line 33, in run
    self.run_command('egg_info')
  File "C:\Python27\ArcGIS10.2\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\ArcGIS10.2\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\egg_info.py", line 180, in run
    self.find_sources()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\egg_info.py", line 207, in find_sources
    mm.run()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\egg_info.py", line 291, in run
    self.add_defaults()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\egg_info.py", line 323, in add_defaults
    rcfiles = list(walk_revctrl())
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools\command\sdist.py", line 19, in walk_revctrl
    for item in ep.load()(dirname):
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools_scm\__init__.py", line 77, in find_files
    return do(ep.load(), path).splitlines()
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools_scm\utils.py", line 48, in do
    out, err, ret = do_ex(cmd, cwd)
  File "C:\Python27\ArcGIS10.2\lib\site-packages\setuptools_scm\utils.py", line 44, in do_ex
    return out.strip().decode(), err.strip().decode(), p.returncode
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 17: ordinal not in range(128)

Windows 7, python 2.7

Bitbucket: https://bitbucket.org/pypa/setuptools_scm/issue/26
Originally reported by: lansman
Originally created at: 2015-05-19T07:56:32.400

Propper decode handling, fixes #26
→ <>

Original comment by: Ronny Pfannschmidt

It is bad practice to use string' decode() without explicit setting encoding, because on some platforms (including Windows) decode' encoding is ascii, so amount of supporting characters is VERY tiny.
You should consider to change all .decode() to .decode(locale.getpreferredencoding()) or .decode(sys.stdin.encoding) or .decode(sys.stdout.encoding) depending on where your string come from.

Original comment by: lansman

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Need a discordapp strategy

Please close issue

Please close issue

repo: jaredhanson/passport

license: mit

license_source: bigquery


text:
Deactivating/Activating of menu item with a sub menu

Hello! How can I activate a menu item after it was deactivated by setting the callback to None? For menu items with dedicated callback functions it's clear. But what if I have a menu item used only as parent item for sub menu?

Active
Port > Port 1, Port 2
Quit

So "Port" has two children. If Active is clicked I would like to deactivate the Item "Port". When Active is clicked the second time, Port should be activated again. But therefore I'm missing the callback.

Hello! This response will be very out of date, hopefully you've solved your problem since then!
If you get the object of the Menu Item, through memory storage or retrieval from the root menu, you should be able to say menuitem.set_callback as described here in the docs

authors: daredoes leonidlezner

repo: jaredks/rumps


text:
crash on boot

Hey
Im trying to add a recipe for <chickens:spawn_egg>.withTag({ChickenType: {id: "chickens:logchicken"}}), then i try to boot up a server with recipes.addShaped(<chickens:spawn_egg>.withTag({ChickenType: {id: "chickens:logchicken"}}), [[<ore:logWood>, <ore:logWood>, <ore:logWood>], [<ore:logWood>, <minecraft:egg>, <ore:logWood>], [<ore:logWood>, <ore:logWood>, <ore:logWood>]]);
in the script, the server crash on boot up.
Clients with this in the script loads fine and works fine in single player
Script
https://pastebin.com/A2FELgCW
Minetweaker log
https://pastebin.com/qvGaGvq0
Crash log
https://pastebin.com/NDn1U6zq

Affected Versions (Do not use "latest"):

Minecraft: 1.12.2
Forge: forge-1.12.2-14.23.2.2616-universal
Crafttweaker: 4.1.3

Speak to the author of Chickens, they are calling client side code in a universal method.


text:
Known issues on Build 7

For @soundlogic2236
These are the issues so far that I still experienced when using build 7 on jenkins:
1:
For some reason the commands that you added appear ingame sometimes and sometimes not. I have to restart the game if they don't appear.
See Issue 7
2:
Not really an issue but something I thought about.. what happens if you make an ItemMapping for and inside of the Lexica Botania (You suggested the Diamond Block) but the block already has an ItemMapping, like this, in the minecraft wiki? Will test tomorrow.
EDIT: Did some testing today. It indeed does not overwrite the wiki feature of Botania and will not appear. Removing the ItemMapping doesn't function either.
Partly Not Possible
3:
Botania's Knowledge Levels still do not work.
Using this script I still get an error.
Fixed
4:
If I use a fuzzy wildcard in, for example, an Alchemy recipe, using minecraft:sandstone:* it does not cycle through all the types of sandstone inside of the Lexica. However, it does in NEI if I implement the the crafting using old Modtweaker methods.
Not Possible
5:
Just a reminder as you know this already, the Lexicon Index Category does not work. No one tell her!
Fixed
This shall be continued.

Alright, tested a bit more stuff:
6:
ItemMapping removal does not work.
Proof
Script
7:
For some reason your recently added commands dissapear from /mt help and do not work if typed either.

Updated issue 2

I will look into this
That might actually overlap with issue 6
That... looks like a compile error? Maybe? I'll check that out.
For the lexica recipes you list the recipes and it cycles through them. It doesn't automatically handle wildcards, but it can handle things that wildcards can't (for example, a page can cycle through the ways to make a wand of the forest, even though those are all separate recipes)
Glad you caught that before vazkii did
Could you check if it works for links inside the lexica? It might be that the in world lookups aren't being synced properly
Is this issue 1 with more detail? And is that then a general minetweaker issue?

Oops, 2) and 7) are kinda duplicates, haha.
Seems like Knowledge Levels, commands after reload and ItemMapping are the only issues right now. Will test the ItemMapping in the book once I come back from gym =]

Updated OP and continuation.

Yeah 2/7 it's a minetweaker issue. Stan said the commands need to be readded on reload, but I don't know if he added an event/whatever for that.

Moved to here: https://github.com/jaredlll08/ModTweaker2/issues/34

authors: Yulife joshiejack soundlogic2236


text:
TimberMenu location

Hi,
how to I properly set the TimberMenu location to 'primary' ?
I try to use polylang but it needs a proper theme location:
https://polylang.wordpress.com/documentation/setting-up-a-wordpress-multilingual-site-with-polylang/navigations-menus/
this seams not to do it:
$context['menu'] = new TimberMenu('primary');

this was missing:
add_action( 'after_setup_theme', 'register_my_menu' );
function register_my_menu() {
  register_nav_menu( 'primary', __( 'Primary Menu', 'theme-slug' ) );
}

repo: jarednova/timber


text:
how to make it work  under react ?

how to make it work  under react ?

This is pretty basic, I think I'll just point you here: https://facebook.github.io/react/docs/hello-world.html

authors: fddi jaredreich

repo: jaredreich/pell


text:
Enable virtual build for test mode

This is to be able to run end-to-end browser tests against a dev server build.
Looks like adonijs framework forces NODE_ENV to be test when running tests, I suppose this is important for some internal details or the framework or the test runner, so doing something like NODE_ENV=test npm run test or "patching" the test launch binary are not valid options.

Thanks! This seems to fix the build issues that have been happening.

source: gharchive/pull-request

authors: jarle rustworthy

repo: jarle/remix-adonisjs


text:
Нельзя выделить кликабельный текст

Текст, в котором есть ссылка, нельзя выделить.

Какой девайс вы используете?
На телефоне, при долгом нажатии на ссылку, можно скопировать её текст.

Вы не так поняли, смотрите

Из этого сохраняется в буфер вот это
SSH чат: хост: , порт 22. Для подключения к SSH-чату можно использовать любой SSH-клиент. Например, .

Какой девайс вы используете?
На телефоне, при долгом нажатии на ссылку, можно скопировать её текст.

Кстати, при долгом нажатии на любом устройстве из habr2021.podivilov.ru копируется https://habra.js.org/post/habr2021.podivilov.ru


text:
Creates architecture tests

Example implementation as to how one can use NetArchTest to build an anti-corruption layer to protect against improper coupling.
@JasonGT - I've recently watched your NDC 2019 talk and noticed that you cautioned the audience that the WebUI layer has a reference to Infrastructure for the purpose of DI and if it's used outside of the Startup.cs "hopefully you'll pick that up during a code review".  The unit tests added here provide a mechanism to remove that ambiguity and use tests to validate this type of improper coupling doesn't occur.
The example included here is relatively simplistic, however it could easily be enhanced further.  I thought it would be wise to implement and discuss it here before attempting to incorporate it anywhere else (such as your Clean.Architecture.Solution.Template project).

This is really awesome!
I'd mentioned this a few weeks back too in https://github.com/JasonGT/NorthwindTraders/issues/186#issuecomment-551256431.

Thank you for your interest in this project. This repository has been archived and is no longer actively maintained or supported. We appreciate your understanding. Feel free to explore the codebase and adapt it to your own needs if it serves as a useful reference. If you have any further questions or concerns, please refer to the README for more information.

authors: GFoley83 asmorger jasontaylordev

repo: jasontaylordev/NorthwindTraders


text:
Konverter überarbeiten

Perl-Skript zur Konvertierung von Word zu LaTeX überarbeiten

Neuer Konverter auf Python-Basis, der direkt .docx konvertiert, ist erstellt. Muss aber noch ausgiebig getestet werden.

repo: jasperhabicht/zchinr-cls


text:
refactor(landing-page): Improve responsiveness

Title
Landing Page Responsive
Description
making the landing page responsive for all sizes by removing inline css
Issue Ticket Number
Fixes #(15)

Type of change

Improving the Responsiveness of Landing page

Checklist:

[Yes] I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING
[Yes] I have checked to ensure there aren't other open Pull Requests for the same update/change?
[Yes] I have performed a self-review of my own code
[No] I have commented my code, particularly in hard-to-understand areas
--

Remark:
Sir, There was Issue I was facing while reviewing output, after each changes and checking for responsiveness I have need to reload that page is there a problem with my browser of IDE.

Sir, I've encountered an issue while reviewing the output of my changes. After making adjustments and checking for responsiveness, I've noticed that the changes aren't immediately reflected. Is this a problem with my browser or IDE?
Interestingly, upon reloading the page, the responsiveness updates are visible.

Sir, I've encountered an issue while reviewing the output of my changes. After making adjustments and checking for responsiveness, I've noticed that the changes aren't immediately reflected. Is this a problem with my browser or IDE?
Interestingly, upon reloading the page, the responsiveness updates are visible.

I will look into it. Thanks for the info.

repo: jatiinyadav/Crew-Connect


text:
error

Sir I am also making a running tracker app, but got this error 2 days back and couldnt able to solve it yet, so could you please help
error is in inflating class google android material bottom navigation
I tried stackoverflow, youtube, but it didnt work

My pleasure. Could you provide a stack trace to clarify your error? Are you trying to implement bottom navigation from this repo?

Here is the stack trace sir
On Thu, Sep 3, 2020 at 11:58 AM Dilantha Jayathiratne <
notifications@github.com> wrote:

My pleasure. Could you provide a stack trace to clarify your error? Are
you trying to implement bottom navigation from this repo?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jatzuk/MVVM-Running/issues/1#issuecomment-686283949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZMR7Y3BPRSTHVTNOISGKLSD4ZSLANCNFSM4QTG7N5A
.

I mean, can you show error stack trace, that you getting from your IDE.

error is in inflating class google android material bottom navigation

Interested in a full version of it

here it is sir
On Thu, Sep 3, 2020 at 11:41 PM Dilantha Jayathiratne <
notifications@github.com> wrote:

I mean, can you show error stack trace
https://en.wikipedia.org/wiki/Stack_trace, that you getting from your
IDE.
error is in inflating class google android material bottom navigation
Interested in a full version of it
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jatzuk/MVVM-Running/issues/1#issuecomment-686662419,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZMR7ZMITH2NPJIJVFMR63SD7L5TANCNFSM4QTG7N5A
.

Sorry, I can't figure out your error case in email.

repo: jatzuk/MVVM-Running


text:
Support for Twig and other templating delimiters

Is your feature request related to a problem? Please describe.
Twig uses {{...}} to insert values into the code at runtime. Usually it's for the HTML parts of the code but they can also be used in JS so var temp = {{ random_value_coming_from_somewhere_else }} is perfectly valid code because when you load the page it becomes var temp = 'some_value'.
However, if you try to obfuscate such code it throws an error and can't proceed.
Describe the solution you'd like
A solution might be custom regexp (for example /({{).*(}})/gmi for twig) to ignore certain parts of the code.
Describe alternatives you've considered
For now I have moved the declaration of those variables outside the obfuscated code but if I had too many of them it would have been cumbersome.

Obfuscator works with the valid javascript code.
var temp = {{ random_value_coming_from_somewhere_else }}

is not the valid javascript code.

No, it's not valid JS code but it's valid code if you are using Symfony/Twig/etc.


text:
🛑 Brescia, 4 is down

In 53afc14, Brescia, 4 (http://159.65.204.200:7051/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Brescia, 4 is back up in e6bcba3.

repo: javisu/monitor


text:
🛑 Antonio Acuña, 10 is down

In 94ca3f1, Antonio Acuña, 10 (http://159.65.204.200:7047/) was down:

HTTP code: 502
Response time: 18848 ms

Resolved: Antonio Acuña, 10 is back up in cc1087f.


text:
🛑 Brescia, 4 is down

In 3349a7c, Brescia, 4 (http://159.65.204.200:7051/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Brescia, 4 is back up in c1b7924.


text:
🛑 Rodriguez Marin, 88 is down

In b810074, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18686 ms

Resolved: Rodriguez Marin, 88 is back up in fd8e417.


text:
🛑 Joaquin Bau, 5 is down

In 4326841, Joaquin Bau, 5 (http://159.65.204.200:7056/) was down:

HTTP code: 502
Response time: 18712 ms

Resolved: Joaquin Bau, 5 is back up in a6e341a.


text:
Lost items after reIndex() with a filter applied

I have a list with a filter applied, then I call the reIndex() method. The hidden items by the filters cannot be displayed again when I disable the filters.
Can you confirm this issue? or is it something normal?

Yeah, that's kind of intentional, or well, rather a side effect of the reIndex() method. The method removes all existing items in the list and then parses the DOM it finds in the list and then creates new items. If you've filtered/hided anything it'll disappear :confused:

@fenixkim
If you use ajax and want to reindex, you can do it to retrieve everything after the ajax call :
yourList.filter();      //reinitialise list (add all items in dom)
yourList.reIndex(); //reinitialise index with items in dom
projectFilter();       //apply filter
//projectFilter is th name of my function who initialize variables with filters checked and selected. This function embedded :
userList.filter(function(item) {
// (...) code here with res = true/false
});

authors: fenixkim guillaumebdx javve


text:
not real asyncio

Hi, wrote simple code with asyncio modules. But your lib create new threads. on python documentation - [asyncio](https://docs.python.org/3/library/asyncio.html#module-asyncio) offers an alternative approach to achieving task level concurrency without requiring the use of multiple operating system threads. .  I think need rewrite thread based on tasks concurrency.
I note that multiplexing significantly increases speed.
thank you for continuing the legendary requests library.)
import threading
import asyncio
from time import time

import niquests

async def main():
    async with niquests.AsyncSession(multiplexed=True) as s:
        start_time = time()
        t1 = asyncio.create_task(s.get('https://google.com/search?q=python'))
        t2 = asyncio.create_task(s.get('https://google.com/search?q=python'))
        await t1
        await t2
        end_time = time() - start_time
        print(t1.result().status_code, threading.enumerate(), end_time)

asyncio.run(main())

You are right, indeed. You will be happy to know that async will be fully based on task with the next minor.
So you just have to wait a little bit longer to gain (again) a substantial boost.
I am closing this issue, feel free to subscribe to this repository to know when it happen.
Regards,

This is great news, thanks)

Update: It's live. Upgrade to latest. v3.5

Update: It's live. Upgrade to latest. v3.5

Nice work!

authors: ArtemIsmagilov Ousret

repo: jawah/niquests


text:
DOC: getting started with jax for AI

Initial draft of the first section of a JAX intro for ML/AI-focused users.

This tutorial has a very good pedagogical flow, the concepts were clear and I was able to follow along well. :)
Since this project used myst-nb, and inline comments are not suported in the rich-diff mode for Jupyter Notebooks, I've incorporated some suggestions in my fork, link to PR preview for the diff.
Overview of the suggestions:

I understand, this is an introduction to the pillars of the jax-ai-stack with an emphasis on JAX because it's at the heart of the stack. As someone not familiar with the ecosystem, I was initially a bit uncertain about the learning outcomes, so I've suggested some updates to the introductory sections (and a couple of headings) to add some more clarity to this purpose.
Almost all other updates are minor: style-related (mainly following project-specific capitalization standards), wording and links.

This is not in my branch, but I noticed the mention of nnx.grad in the narrative, but the example itself uses nnx.value_and_grad. Perhaps we can update the example or clarify in the narration?
Mentions:

Training the model section:
Notice here the use of nnx.jit and nnx.grad

Automatic differentiation:
In the example above, we used the similar nnx.grad function, which has special handling for flax.nnx objects.

Aside, would it be feasible to configure ReviewNB for this repository? I think it can be helpful and more convienent for inline-reviews in notebooks. If we do, I'll be happy to submit my thoughts here as inline-review-comments.

authors: jakevdp pavithraes

repo: jax-ml/jax-ai-stack


text:
Plotting of comp morphology

I got side-tracked while working on a different PR and implemented plotting of the actual compartment structure:
The compartments are rendered in 3D and then the correct projection of the 3d mesh is plotted on whatever plane.
fig, ax = plt.subplots(2, 3, figsize=(10, 5))

for i, orientation in enumerate([np.array([1,1,2]), np.array([0,1,0.1]), np.array([0,0.1,1])]):
    plot_cylinder_projection(orientation, length=5, radius=1, center=np.array([0,0,0]), dims=[0,1], ax=ax[0,i])
    plot_cylinder_projection(orientation, length=5, radius=1, center=np.array([0,0,0]), dims=[1,2], ax=ax[1,i])
    ax[0,i].set_title(f"Orientation: {orientation}")
plt.show()

Hence the compartment radii and lengths are correctly reflected in the plot.

However, plotting an imported morphology looked weird for some reason.

While looking into this, I noticed two things:
Since the cylindrical compartments are straight, they run from one compartment edge to the other on a straight line. However, they model a potentially very zigzaggy branch/path structure. This means:
a) Assuming the comp center is at loc=0.5 along the path (currently how we do it), can put the comp center off axis.
b) Setting the comp length to the path length can result in comps which appear longer than the distance between their two endpoints.
This can be illustrated by adding a bit of noisy to the xyz coordinates of the example above.

Changing the compartment centers to be the center of the cylinder, already produces much better looking plots.

While I dont think changing b) makes sense (apart from for visualization maybe) I think changing a) might be a good idea.
Lemme know your thoughts.
PR is missing documentation, some cleanup and handling of single point cases.

Hi Jonas, thanks, this can be super useful, especially for the radiuses.
I don't understand this sentence: Assuming the comp center is at loc=0.5 along the path (currently how we do it), can put the comp center off axis.
Afaik we currently have no notion of "comp center", so I don't understand what you mean.

We do in '_update_nodes_with_xyz'.

Okay! Then yes, I think I would be pro changing the compartment centers to be the center of the cylinder.

Ready for review. Now cell.vis(type="volume") plots the compartments as seen below.

Not sure if "volume" is the best kwarg tho.
Q: Should I also add col kwarg for color like vis?

Thanks for the feedback!
Should I also add the col kwarg for consistency? https://github.com/jaxleyverse/jaxley/pull/432#issuecomment-2383240406
@michaeldeistler ?

Yes I think it would be great to have a col argument!

@michaeldeistler added tests and addressed all comments. Feel free to merge if you approve.

swc files to reproduce the effect of zigzaging morphologies on the comp lengths. file extension changed to txt since swc not supported
noisy_test.txt
test.txt

authors: jnsbck michaeldeistler

repo: jaxleyverse/jaxley


text:
Footer Section

I want to add a footer section containing additional information, links, and contact details to provide users with supplementary information and navigation options.
Within the footer, you may find various components, one of which is the "Contact Me" section. This section typically includes contact information such as an email address, phone number, or a contact form through which users can reach out to the website/app owner or administrator.
I would like to work on this issue

Yes, you can add it!
We can discuss about it.

I'm a contributor for GSSoC '23, I want to contribute to this issue. Please assign me.

Yes, you can add it! We can discuss about it.

any suggestions are welcome

Yes, you can add it! We can discuss about it.

any suggestions are welcome

Can you give your twitter or discord  so that we can discuss about it

Also improve your github profile

Twitter   -  https://twitter.com/tanyaverma2022
Discord  - Tanya2022#3767

Also improve your github profile

Yes sure , working on it .

repo: jayk-gupta/web-resources-project


text:
submitting assignment 4

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
assignment 4
What did you learn from the changes you have made?
a lot
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
none
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
2nd visualization - sorry i wasn't able to do
How were these changes tested?
ran jpynb
A reference to a related issue in your repository (if applicable)
n/a
Checklist

[x] I can confirm that my changes are working as intended

A4 complete

repo: jays-codes/visualization


text:
Fixed signature of views decorated with signed_data_view

This fixes a nuisance when using django-debug-toolbar with django-urlconfchecks which type checks URLconfs, and possibly other tools. Otherwise it has little effect.
Basically, the @functools.wraps() call within the signed_data_view decorator makes views like sql_explain appear to have an external signature of sql_explain(request, verified_data) to tools like inspect.signature. If this was really the case, then the function would fail when used from the urlconf, because the verified_data parameter is not passed.
So, django-urlconfchecks raises an error for these views.
In reality signed_data_view is providing that argument, and so changing the effective signature of the function.
With the patch, the signature is changed to sql_explain(request, *args, **kwargs), which is not as accurate as it could be, but at least django-urlconfchecks now just issues a warning (about *args / **kwargs preventing signature checking), and not an error.
An alternative fix is to remove the @functools.wraps call entirely in the implementation of signed_data_view, but that would potentially produce more problems.
A test is added for this.

I'm less sure about this. We're removing the attribute that's used to fetch the wrapped function. I can imagine that this will cause weirder issues than django-urlconfchecks down the line having a problem with this decorator pattern.
I'd prefer to see the debug toolbars url patterns excluded from evaluation or for us to rework this decorator so that it doesn't pass the verified data as an argument. Or pass it as a part of kwargs and hide it as an explicit keyword argument.

@spookylukey can you confirm that #1658 resolves the issue with django-urlconfchecks please?

I did some research and found a package makefun to help create decorators that produce 100% correct signatures. With it, you would write something like:
@makefun.wraps(view, remove_args="verified_data")

instead of @functools.wraps
https://smarie.github.io/python-makefun/#easier-edits
However, this adds a dependency and seems like overkill, unless django-debug-toolbar were itself adopting django-urlconfchecks for its own usage.

Ah, that's pretty neat but I'd prefer to avoid adding additional dependencies to the project.

@spookylukey can you confirm that #1658 resolves the issue with django-urlconfchecks please?

Yes, I've checked and that works.

Closing in favor of #1658

authors: spookylukey tim-schilling

repo: jazzband/django-debug-toolbar


text:
Refresh token rotation not storing the valid one on Outstanding token table

Hi!
When 'ROTATE_REFRESH_TOKENS': True, and 'BLACKLIST_AFTER_ROTATION': True, the old refresh token is stored on the Blacklist table, but the new one delivered is not stored on the outstanding token table.
Is that the desired behaviour? Because by that way the new delivered refreshtoken cannot be manually blacklisted since we don't have it anywhere
Thank you for the lib!!

Also noticed this. It should not be like this.

Any updates here?
bug or feature?

I fixed it by myself. I am not sure that it will be fixed soon... As the PR is a half of the year old

I fixed it by myself. I am not sure that it will be fixed soon... As the PR is a half of the year old
Could you provide a patch? I suppose it will speed up issue resolving

Hi,
i've also came across this issue and before I try to make pull request can active devs please check if this is the right way to address this issue.
class TokenRefreshPatchedSerializer(serializers.Serializer):
    # Patched TokenRefresh serializer so it
    # stores the new refresh token to the list of Outstanding tokens
    refresh = serializers.CharField()

    def validate(self, attrs):
        refresh = RefreshToken(attrs['refresh'])

        data = {'access': str(refresh.access_token)}

        if api_settings.ROTATE_REFRESH_TOKENS:
            blacklisted_token = None
            if api_settings.BLACKLIST_AFTER_ROTATION:
                try:
                    # Attempt to blacklist the given refresh token
                    blacklisted_token = refresh.blacklist()
                except AttributeError:
                    # If blacklist app not installed, `blacklist` method will
                    # not be present
                    pass

            refresh.set_jti()
            refresh.set_exp()

            # PATCHED - Create Outstanding Token in the db
            if blacklisted_token:
                OutstandingToken.objects.create(
                    user=blacklisted_token.user,
                    jti=refresh.payload['jti'],
                    token=str(refresh),
                    created_at=refresh.current_time,
                    expires_at=datetime_from_epoch(refresh['exp']),
                )

            data['refresh'] = str(refresh)

        return data

So basically in the RefreshSerializer add the needed condition checking and store the new refresh token in the database.

I'm not aware of a PR for this. Additionally, refresh.blacklist() seems to already do this???
@boris-savic Can you put that patch inside the try/except? In that case, you wouldn't need the if blacklisted_token if you just put it underneath the setting of that name. But really... it seems like it's already done.
I've lost a bit of time to properly debug this issue since aps are coming around, so do you mind putting a couple of print statements here: https://github.com/SimpleJWT/django-rest-framework-simplejwt/blob/80c6e7e2f4a40c9bfb8e9b5bc2c6ce895575f157/rest_framework_simplejwt/tokens.py#L194
Just test out if the method is even invoked. I'd advise putting an assertion to make sure the token is found after the OutstandingToken.object.get_or_create.

Hi @Andrew-Chen-Wang - when refresh.blacklist() is called it creates new outstanding token  if it doesn't exist yet, and blacklists it immediately. While that is correct, the outstanding token gets created only at the moment it gets blacklisted as well.
Ideally a newly issued refresh token (if rotation is enabled) should be placed in the list of outstanding tokens immediately.

Hi,
i've also came across this issue and before I try to make pull request can active devs please check if this is the right way to address this issue.
class TokenRefreshPatchedSerializer(serializers.Serializer):
    # Patched TokenRefresh serializer so it
    # stores the new refresh token to the list of Outstanding tokens
    refresh = serializers.CharField()

    def validate(self, attrs):
        refresh = RefreshToken(attrs['refresh'])

        data = {'access': str(refresh.access_token)}

        if api_settings.ROTATE_REFRESH_TOKENS:
            blacklisted_token = None
            if api_settings.BLACKLIST_AFTER_ROTATION:
                try:
                    # Attempt to blacklist the given refresh token
                    blacklisted_token = refresh.blacklist()
                except AttributeError:
                    # If blacklist app not installed, `blacklist` method will
                    # not be present
                    pass

            refresh.set_jti()
            refresh.set_exp()

            # PATCHED - Create Outstanding Token in the db
            if blacklisted_token:
                OutstandingToken.objects.create(
                    user=blacklisted_token.user,
                    jti=refresh.payload['jti'],
                    token=str(refresh),
                    created_at=refresh.current_time,
                    expires_at=datetime_from_epoch(refresh['exp']),
                )

            data['refresh'] = str(refresh)

        return data

So basically in the RefreshSerializer add the needed condition checking and store the new refresh token in the database.

Awesome, but in my case, the blacklisted_token object doesn't directly have the user field, so I accessed it from the related token.user:
            if blacklisted_token:
                OutstandingToken.objects.create(
                    user=blacklisted_token.token.user, # Here
                    jti=refresh.payload['jti'],
                    token=str(refresh),
                    created_at=refresh.current_time,
                    expires_at=timezone.make_aware(datetime.fromtimestamp(refresh['exp'])),
                )

Also, i was getting a tuple error from the get_or_create coming from refresh.blacklist().
So i added the _ in the assignment
                try:
                    # Attempt to blacklist the given refresh token
                    blacklisted_token, _ = refresh.blacklist() # And here
                except AttributeError:
                    # If blacklist app not installed, `blacklist` method will
                    # not be present
                    pass

Thanks. I thought the missing OutstandingToken behavior was an issue in my code.

authors: Andrew-Chen-Wang Igreh boris-savic jesusjiib jsandovale sshishov

repo: jazzband/djangorestframework-simplejwt


text:
Sync .mo files

Sorry for the mishab.
I just realized that in #736 I did
python scripts/i18n_updater.py

instead of
cd rest_framework_simplejwt
python ../scripts/i18n_updater.py

@Andrew-Chen-Wang i released but it didn’t update pypi. What should we do?

i will need to approve it. please let me only make releases

@Andrew-Chen-Wang should I delete the release/tag so you can do it? can you please explain the process to me because I also want to release versions of a few other jazzband libraries and would like to get a handle on it.

authors: Andrew-Chen-Wang aqeelat


text:
Fix: passing correct arguments for AdminImageMixin.formfield_for_dbfield

Arguments for the formfield_for_dbfield method are changed in django (starting from the version 1.11 at least) and it has to be reflected in the code for AdminImageMixin mixin.

Coverage remained the same at ?% when pulling b01fe0e3c5554fa679bbd3d6132cd30eed19a1b5 on moneypark:formfield_for_dbfield-fix into 22ccd9781462a820f963f57018ad3dcef85053ed on jazzband:master.

Coverage remained the same at ?% when pulling b01fe0e3c5554fa679bbd3d6132cd30eed19a1b5 on moneypark:formfield_for_dbfield-fix into 22ccd9781462a820f963f57018ad3dcef85053ed on jazzband:master.

Can I help something that this PR gets merged and released? If you need further information why this change is necessary, you can have a look at my duplicate PR #592.

authors: coveralls dgilge rootart

repo: jazzband/sorl-thumbnail


text:
Call log not creating calendar entries

(Edit by @kurahaupo - I've edited this issue to make clear that "the backup of the call log" comprises the messages written into Gmail, not the Calendar entries. This isn't merely an argument of semantics; calendar entries cannot be used to restore from backup. The calendar entries are a courtesy, in addition to the real backup.)
Before you report your issue, please consider perusing the FAQ and searching the issues page to see if it has already been reported.
Expected behaviour
Call log copied to Google Calendar
Actual behaviour
No calendar entries created since August 2020.
Steps to reproduce the behaviour
Set up call log backup in settings.
Trigger a manual backup.
Calls are backed up but no calendar entries are created.
Please specify the following:

Android version 12
Phone model / brand Samsung Galaxy S10e
SMS Backup+ version installed 1.5.11
Messaging app Messages

Is this still a problem?
Most times that people report this kind of error, it turns out that either (a) SMS backup reports that it hasn't backed anything up, or (b) it has backed them up, but in a place where the person can't find them.
I'm not entirely ruling out (c) they're reported as backed up but in fact are lost; however that is less likely (and more difficult to fix) so I'd like to rule out options (a) & (b) first.
Perhaps start by searching in Gmail for "incoming call", "missed call", "Call with" - and the translations of those if you're using a different language.

It is still a problem for me.  I'm unable to choose a calendar at all.  That part is grayed out.

@robcampbell95, can you please clarify whether the calls are recorded as messages in Gmail (or whichever IMAP provider you've used)?
(In the event that you need to restore from backup, it's the messages that matter, not the calendar entries.)

Yes.  There is a Call log label that the calls seem to be going into.  They are not going to my calendar and I am not able to select a calendar because it is greyed out.  I have cleared the storage on the app and started over but that didn't resolve the issue.

@robcampbell95
When you use both gmail and calandar, you need to connect using IMAP and XOAUTH respectively, and that appropriate rights have been granted.
Can you please log-press on the app icon and bring up "app info", and then tap "permissions", then make sure that Calendar access is enabled?
Thanks
-Martin

It says XOAUTH2 is not supported.

Thanks for checking.
XOAUTH2 for Gmail is not currently supported (because of Google's "Sensitive Scopes" policy), but it is still required and implemented for Calendar access.

There are a number of very similar issues with calendar entries not being created and/or the settings UI greying out the calendar selection tool.
In issue #963 on 2021-02-22 there is a description by user @hubono of a method for resetting the calendar cache and thereby enabling the calendar selection tool. Could you please try that and see if it helps.

I know I read and followed the instructions before and it didn't work but
that doesn't matter because it works now.
================================
In all things, Be Intentional.
On Fri, Sep 30, 2022, 7:41 PM Martin Kealey @.***>
wrote:

There are a number of very similar issues
https://github.com/jberkel/sms-backup-plus/labels/calendar with
calendar entries not being created and/or the settings UI greying out the
calendar selection tool.
In issue #963 https://github.com/jberkel/sms-backup-plus/issues/963 on
2021-02-22 there is a description by user @hubono
https://github.com/hubono of a method for resetting the calendar cache
and thereby enabling the calendar selection tool. Could you please try that
and see if it helps.
—
Reply to this email directly, view it on GitHub
https://github.com/jberkel/sms-backup-plus/issues/1077#issuecomment-1264131631,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKOLOCYNP6BDDPO3J5SIB7DWA53CVANCNFSM5SJI4ROA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks. I'll mark this as closed.
If you have any further problems please feel free to reply and this ticket will automatically re-open.

I know I read and followed the instructions before and it didn't work but that doesn't matter because it works now. ================================ In all things, Be Intentional.
…
On Fri, Sep 30, 2022, 7:41 PM Martin Kealey @.> wrote: There are a number of very similar issues https://github.com/jberkel/sms-backup-plus/labels/calendar with calendar entries not being created and/or the settings UI greying out the calendar selection tool. In issue #963 <#963> on 2021-02-22 there is a description by user @hubono https://github.com/hubono of a method for resetting the calendar cache and thereby enabling the calendar selection tool. Could you please try that and see if it helps. — Reply to this email directly, view it on GitHub <#1077 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOLOCYNP6BDDPO3J5SIB7DWA53CVANCNFSM5SJI4ROA . You are receiving this because you were mentioned.Message ID: @.>
Hello, what is solution this issue? You wrote, that it works now.

Thank you.

authors: cepakj kurahaupo robcampbell95 turkeyphant

repo: jberkel/sms-backup-plus


text:
Samsung Galaxy S2 problem

Error during backup/restore:
java.security.InvalidAlgorithmParameterException:trustAnchors.isEmpty()

Maybe issue with the cacert bundled on your S2 phone? Have you tried copying the JRE certs from a working phone, or re-creating it manually?

I've got exactly the same issue on my SGS2.
Could you pls specify how to 'copy the JRE certs , or re-creating it manually' ?

Btw, don't have the error with the original SMS backup app

same problem with cyanogenmod and htc desire :(

authors: balu- hanxue jberkel optio


text:
Improve travis configuration

Finally, sorry for previous PRs noise.
Fixes https://github.com/jbittel/django-mama-cas/issues/51

tests did not really fail, s3 download did, please retry that test.

repo: jbittel/django-mama-cas


text:
Enhance v1 contracts to include loading states

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2703   👈

This comment was auto-generated by Graphite.

⏳ This pull request is set to merge as part of a Graphite merge job
Stack job ID: iRcirx3Jve5L39rUJXmk.
See details on graphite.dev

repo: jbx-protocol/juice-interface


text:
MATLAB/Octave support

Very nice plugin. I notice that there is an unpopulated MATLAB entry  in your READM.me table of languages. Do you plan to support MATLAB/Octave?

Thanks, I appreciate that.
I remember adding this entry because I needed it for a project but in the end, I did it in Python and forgot to remove it in the README. I'm not sure if it's even possible because if I recall correctly, Matlab doesn't provide a CLI execution environment. Any further infos on that subject would be welcome.


text:
docker container reports unhealthy, the management login page reports "bad gateway" , no login possible

Info.txt
I've been reading/trying many possible solutions, but none gave a solution.
I've gathered data:
xxx@yyyy:~ $ cat /etc/debian_version
10.4
xxx@yyyy:~ $ uname -a
Linux yyyy 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux
xxxn@yyyy:~ $ cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4
Hardware	: BCM2835
Revision	: a020d3
Serial		: 0000000032806e22
Model		: Raspberry Pi 3 Model B Plus Rev 1.3
xxx@yyyy:/etc/docker $ docker --version
Docker version 19.03.11, build 42e35e6
xxx@yyyy:/etc/docker $ docker-compose --version
docker-compose version 1.26.0, build unknown
xxx@yyyy:~ $ sudo nano /etc/docker/config.json
{
"database": {
"engine": "mysql",
"host": "db",
"name": "npm",
"user": "npm",
"password": "npm",
"port": 3306
}
}
xxx@yyyy:~ $ sudo nano /etc/docker/docker-compose.yml
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '8080:80'
# Public HTTPS Port:
- '8443:443'
# Admin Web Port:
- '81:81'
#environment:
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
# Make sure this config.json file exists as per instructions above:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: jc21/mariadb-aria:10.4
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql
xxx@yyyy:/etc/docker $ docker-compose up -d
reports no errors and returns normally to the prompt
Nginx Proxy Manager V2.3.1  login page on ip-addres:81  reports always "Bad Gateway" when using default login usr:admin@example.com  pwd:changeme
xxx@yyyy:/etc/docker $ docker ps
CONTAINER ID        IMAGE                        COMMAND             CREATED             STATUS                          PORTS                                                             NAMES
5f39e350d499        jc21/nginx-proxy-manager:2   "/init"             28 minutes ago      Up 28 minutes (unhealthy)       0.0.0.0:81->81/tcp, 0.0.0.0:8080->80/tcp, 0.0.0.0:8443->443/tcp   docker_app_1
fe0e95ee2373        jc21/mariadb-aria:10.4       "/scripts/run.sh"   28 minutes ago      Restarting (1) 23 seconds ago                                                                     docker_db_1
xxx@yyyy:/etc/docker $ docker logs fe0e95ee2373
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
...
xxx@yyyy:/etc/docker $ docker logs 5f39e350d499
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
❯ Enabling IPV6 in hosts: /etc/nginx/conf.d
❯ /etc/nginx/conf.d/default.conf
❯ /etc/nginx/conf.d/production.conf
❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf
❯ /etc/nginx/conf.d/include/ssl-ciphers.conf
❯ /etc/nginx/conf.d/include/assets.conf
❯ /etc/nginx/conf.d/include/force-ssl.conf
❯ /etc/nginx/conf.d/include/block-exploits.conf
❯ /etc/nginx/conf.d/include/ip_ranges.conf
❯ /etc/nginx/conf.d/include/proxy.conf
❯ /etc/nginx/conf.d/include/resolvers.conf
❯ Enabling IPV6 in hosts: /data/nginx
[6/11/2020] [11:34:06 AM] [Global   ] › ✖  error     connect ECONNREFUSED 172.22.0.2:3306
[6/11/2020] [11:34:07 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:15 AM] [Global   ] › ✖  error     connect ECONNREFUSED 172.22.0.2:3306
[6/11/2020] [11:34:16 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:17 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:18 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:19 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:20 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:21 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:24 AM] [Global   ] › ✖  error     connect ECONNREFUSED 172.22.0.2:3306
[6/11/2020] [11:34:25 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
[6/11/2020] [11:34:26 AM] [Global   ] › ✖  error     getaddrinfo ENOTFOUND db
...

I'm trying to setup the nginx proxy manager on a raspberry pi 3B+.
The other issue discussions solved the problems I had during the load of the container in docker.
Now the "docker-compose up -d" command does not report any errors on the prompt.
But in the login page of nginx proxy manager I always get "bad gateway" as result of any login attempt. I've been searching in the other issues to find a way to solve this.
The logfile reports connection errors with the db it seems.
I really need some help, I don't grasp fully the concept of docker. So I've no clue where to start the troubleshooting.

I'm trying to setup the nginx proxy manager on a raspberry pi 3B+.
The other issue discussions solved the problems I had during the load of the container in docker.
Now the "docker-compose up -d" command does not report any errors on the prompt.
But in the login page of nginx proxy manager I always get "bad gateway" as result of any login attempt. I've been searching in the other issues to find a way to solve this.
The logfile reports connection errors with the db it seems.
I really need some help, I don't grasp fully the concept of docker. So I've no clue where to start the troubleshooting.

Have the same exact issue running Docker on macOS High Sierra 10.13.6. I also am new to Docker, but I have been working on it for a few days. I'll post back if I can figure out how to get things working.

I'm trying to setup the nginx proxy manager on a raspberry pi 3B+.
The other issue discussions solved the problems I had during the load of the container in docker.
Now the "docker-compose up -d" command does not report any errors on the prompt.
But in the login page of nginx proxy manager I always get "bad gateway" as result of any login attempt. I've been searching in the other issues to find a way to solve this.
The logfile reports connection errors with the db it seems.
I really need some help, I don't grasp fully the concept of docker. So I've no clue where to start the troubleshooting.

I believe the problem you are having is with your choice of the db. Please check but I think the official mariadb and jc21/mariadb-aria:10.4 only support x86 and arm64 not the RPi arm v7.
Try: yobasystems/alpine-mariadb:latest
My docker-compose.yml
version: "3"
services:
  app:
    image: jc21/nginx-proxy-manager:latest
    restart: always
    ports:
      # Public HTTP Port:
      - '80:80'
      # Public HTTPS Port:
      - '443:443'
      # Admin Web Port:
      - '81:81'
    environment:
      # Uncomment this if IPv6 is not enabled on your host
      DISABLE_IPV6: 'true'
    volumes:
      # Make sure this config.json file exists as per instructions above:
      - ./config/config.json:/app/config/production.json
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
    depends_on:
      - db
  db:
    image: yobasystems/alpine-mariadb:latest
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: 'npm'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: 'npm'
    volumes:
      - ./data/mysql:/var/lib/mysql

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080
    depends_on:
      - db

I'm trying to setup the nginx proxy manager on a raspberry pi 3B+.
The other issue discussions solved the problems I had during the load of the container in docker.
Now the "docker-compose up -d" command does not report any errors on the prompt.
But in the login page of nginx proxy manager I always get "bad gateway" as result of any login attempt. I've been searching in the other issues to find a way to solve this.
The logfile reports connection errors with the db it seems.
I really need some help, I don't grasp fully the concept of docker. So I've no clue where to start the troubleshooting.

I believe the problem you are having is with your choice of the db. Please check but I think the official mariadb and jc21/mariadb-aria:10.4 only support x86 and arm64 not the RPi arm v7.
Try: yobasystems/alpine-mariadb:latest
My docker-compose.yml
version: "3"
services:
  app:
    image: jc21/nginx-proxy-manager:latest
    restart: always
    ports:
      # Public HTTP Port:
      - '80:80'
      # Public HTTPS Port:
      - '443:443'
      # Admin Web Port:
      - '81:81'
    environment:
      # Uncomment this if IPv6 is not enabled on your host
      DISABLE_IPV6: 'true'
    volumes:
      # Make sure this config.json file exists as per instructions above:
      - ./config/config.json:/app/config/production.json
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
    depends_on:
      - db
  db:
    image: yobasystems/alpine-mariadb:latest
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: 'npm'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: 'npm'
    volumes:
      - ./data/mysql:/var/lib/mysql

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080
    depends_on:
      - db

I appreciate the help, at least in my case this did not help. When attempting to use MariaDB I get an error about unknown engine InnoDB, so I tried changing the image to use msql/mysql-server and everything builds fine, but I still get the bad gateway message when attempting to log in

Issue #333 sounds like the same problem as this.

Thanks to all for these hints, they gave me more insight on how docker containers are installed/configured from the commandline.
I've found a workable solution by forcing the database container to the right hardware infrastructure: armV7  (tag: "armhf")
With the tag: "latest" the database app was installed for the armv8 family (64 bit)
the docker-compose.yml file:
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
environment:
# Uncomment this if IPv6 is not enabled on your host
DISABLE_IPV6: 'true'
volumes:
# Make sure this config.json file exists as per instructions above:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: yobasystems/alpine-mariadb:armhf
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql

authors: JDomotics evan-swinney groundglass mcbeav


text:
Adding "restart: always" to ReadMe

Adding "restart: always" to ReadMe. I had a hard time figuring out why once of my NPM containers would not start on reboot while the rest of them would. It turns out I copied two of my compose files from the official site and one of the from the GitHub repo.

This is an automated message from CI:
Docker Image for build 2 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1155
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

That is a good point, I went ahead and changed it. Just FYI the documentation on the site has "always" in it. I am not sure if that is intentional for production use only.

This is an automated message from CI:
Docker Image for build 3 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1155
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

yep you're right. I'll change the docs as well.


text:
Added support to download Let's Encrypt Certificate

Covered Issue #404

This is an automated message from CI:
Docker Image for build 2 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 3 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 4 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 5 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 6 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 7 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 8 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

Hmm no it doesn't seem to be ready. Have you tested this yourself?
I just tried it for some LE certs, take a look:

You'll notice that the files are not the actual files, they are symlinks. So your code to zip stuff up needs to dereference (or follow?) the symlinks somehow to include the actual files instead.

This is an automated message from CI:
Docker Image for build 9 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

Hmm no it doesn't seem to be ready. Have you tested this yourself?
I just tried it for some LE certs, take a look:

You'll notice that the files are not the actual files, they are symlinks. So your code to zip stuff up needs to dereference (or follow?) the symlinks somehow to include the actual files instead.

Handled with the actual path

Well yes it's an improvement, but you only have 1 certificate in that folder. The majority of users who have certs renewing over time will have all the old ones too. In my example above I have 21 certificates (84 files). Your script will zip them all up instead of the most current one.
This is why I think dereferencing those symlinks is a better idea than grabbing everything from archive.

This is an automated message from CI:
Docker Image for build 10 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

This is an automated message from CI:
Docker Image for build 11 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-1343
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

Well yes it's an improvement, but you only have 1 certificate in that folder. The majority of users who have certs renewing over time will have all the old ones too. In my example above I have 21 certificates (84 files). Your script will zip them all up instead of the most current one.
This is why I think dereferencing those symlinks is a better idea than grabbing everything from archive.

deferenced the symlinks and zipped the certs

Working beautifully thanks :)


text:
Fix dark bundle icons

Need to investigate methods of recoloring an image with CSS. Might need to switch to inline SVG.

I think this is only an issue in dark theme.

If we need a listener for theme changes, some comments here might help: https://github.com/jcgoble3/gmail-bundling/issues/8#issuecomment-596046250

The custom bundle image has been converted to inline SVG, which allows us to recolor the image directly without needing drop shadow and saturate hacks. Incidentally, this better coloring solved the issue of difficult-to-see images in dark mode, because the colors are more natural and brighter.


text:
🛑 DolceVita Seas Website is down

In 7113f1d, DolceVita Seas Website (https://www.dolcevitaseas.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DolceVita Seas Website is back up in 3d64716.

repo: jcortell/uptime


text:
🛑 audience is down

In 7507b64, audience (https://www.audience-soest.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: audience is back up in 00f5d35.

repo: jcruse-erw/UptimeReport


text:
System information not reporting SPI ram info ESP32-S3

Hi,
Great software!
I noticed when using an ESP32-S3 32MB flash and 8MB RAM, the system information says SPIRAM available no, should that be yes?

Hi @ThinkTransit,
Ok I see, the term of spiram does not appear in the implementation.
I checked for your GENERIC_S3 type card and indeed, the configuration file does not directly include the use of SPIRAM so that must be why. I'm only doing this check for now...
( https://github.com/micropython/micropython/blob/master/ports/esp32/boards/GENERIC_S3/sdkconfig.board )

Ok that makes sense. Maybe it might be useful to add total memory to the system information, gc.mem_alloc() + gc.mem_free().
Just a suggestion.

Exact! However there is at the bottom left the gauge with these 2 informations but all the fonts seem to be unstaggered on your system :(

Agree I have the same issue. On an Unexpected Maker ProS3 I confirmed it has 8MB of RAM, the GUI says there is no SPI RAM (maybe because its used?) and other msgs are wrong too. But I understand its a new board.
On an official devkit s3-c1 (N8R8) it says "flash memory size 8MB" and SPI RAM available Yes. However when running a program I have about 62K of RAM only.  I am running the correct and latest firmware for octal SPI.

authors: ThinkTransit anglerfish27 jczic


text:
Does not seem to work on macOS Monetery

Exact version is: 12.1, x86_64

did you build it yourself or just download the first release? I just tested it on 12.1 and it works for me.
If the latter, then try this version (no changes to code just re-built on 12.1): openwith-0.0.1-2.tar.gz

I mean it works in the sense, that it seems to successfully execute:
$ ./openwith Numbers xlsx
xlsx (org.openxmlformats.spreadsheetml.sheet) -> Numbers
xlsx (com.microsoft.excel.openxmlformats.spreadsheetml.sheet) -> Numbers

But afterwards when I open an xlsx file, it still uses Excel!
I tried with a version I built myself and with the one you provided.

My guess is that it is working but the bundle identifier for Numbers is not Numbers but com.apple.iWork.Numbers instead. Try openwith com.apple.iWork.Numbers xlsx.

Ah, yes, that works! Sorry, I was assuming I have to use the same identifiers as with open -a. Shouldn't openwith log an error if you use an incorrect identifier? And is there an easier way to find out the bundle id then to check the Info.plist file in the app folder?

I don't think there should be any error, it works as expected (i.e. one of the points of the utility is to be able to set application handlers before the application is installed fully). I considered adding a openwith -a flag such that the name can be used but the API to make this possible has been deprecated. You could probably use something like osascript -e 'id of app "Numbers"' to find it more easily.

Ok 👍
Did you forget the … app …  part in the readme?
$ osascript -e 'id of "mpv"'

Ah, yep thanks.

authors: ad-si jdek

repo: jdek/openwith

license: Unlicense


text:
FastAPI documentation has different values for the nickname field throughout the sample data

Upon opening up the FastAPI documentation for this project, the nicknames in the sample request and response don't match which may confuse new users and is an inconvenience for trying to use the API with the sample data.
Example:

Resolved and merged to main: https://github.com/jderik-student/user_management/pull/8


text:
when MBProgressHUD is added to self.navaigationController.view, it conflicts with self.nanavaigationController presentViewController

the program will break  in this part, xcode says the view is nil

(id)initWithView:(UIView *)view {
NSAssert(view, @"View must not be nil.");
return [self initWithFrame:view.bounds];
}

If the view is nil here, than you're doing something wrong.

i just add the method in the rootviewcontroller

(void)initHUD{
RootHud = [[MBProgressHUD alloc] initWithView:self.view];
[self.navigationController.view addSubview:RootHud];
RootHud.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"error"]];
// Set custom view mode
RootHud.mode = MBProgressHUDModeCustomView;
RootHud.delegate = self;

}
and use the
[self presentViewController:modelViewController animated:YES completion:nil];
in a viewController class which inherits from rootViewController
i try to find the reason but failed. if this isn't a bug, i will try to check my code to find out where the nil comes from

I guess self.view is nil when you call that initHUD method.

thank you for your instructions

repo: jdg/MBProgressHUD


text:
🛑 Home Assistant - DS918P is down

In f440666, Home Assistant - DS918P (https://home.jdh1.duckdns.org/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Home Assistant - DS918P is back up in 9274277 after 10 minutes.


text:
Update Nexon from "Impossible" to "hard"

I recently added Nexon as impossible because I couldn't open a ticket.
I contacted them by email and they sent me a link that allows sending a ticket for account deletion.
What happened is that their website is a bit complicated and everything isn't coherent. I asked them to fix that
So I'm marking Nexon as Hard and I set the link to the one the support sent me.

Thanks for the explanation and for following up!

authors: Rathmox tupaschoal

repo: jdm-contrib/jdm


text:
Add Cocoleech

Adds Cocoleech as easy to delete.

Thanks for your contribution!

authors: SteffenGivard tupaschoal


text:
Add Sourcegraph with hard difficulty

Adds Sourcegraph as hard to delete, as you'll need to contact their support by email.

Thanks for your contribution!


text:
Really long schema : How to split the form over several tabs ?

Hi.
Many thanks to Jeremy for this really useful tool.
I have a really long schema, that  I would like to split the generated form over 2 or 3 tabs to make it more manageable for the user.
I notice that there is a related feature request  (https://github.com/jdorn/json-editor/issues/109), but it seems that this has not been implemented.
I wanted to use several forms, but I have numerous "enumSource" dependencies throughout the document and it seems that everything has to be in the one schema.
Could anyone give me some ideas on how to go about achieving splitting the form into manageable sections ?
Regards
Mark

You could create several smaller schemas and use $ref to connect them in one main Schema.

This is also an issue for me, considering that our schema/data is used for many systems "change the schema" is not an option.
I also am potentially looking for a more generalized solution. There are parts of the schema that are not editable in the app I am doing. I would like to be able to say "create a form for this portion of the schema". So I can pass in the full schema, the full data object, and a dot-noted path that describes the portion of the schema that I want to generate a form with.
Is something like this (building the form from a sub-section of the schema) possible right now? If not, what needs to happen so it can work. I don't mind putting in PRs.

@englercj, thanks for this, it looks very useful.

repo: jdorn/json-editor


text:
New processors

Here are the processors we've been discussing with @madisvain in #93 and #94. After this, the list will be as follows:

crop

BasicCrop - Crop using provided box
Crop - Crop to provided size focusing on provided anchor point
SmartCrop - Crop to provided size, trimming based on entropy
TrimBorderColor - Trim the specified color from the specified sides

resize

BasicResize - Scale to the provided dimensions (can distort)
Fit - Scale to fit the provided dimensions
Fill - Scale to fill the provided dimensions, trimming away excess using Crop
SmartFill - Scale to fill the provided dimensions, trimming away excess using SmartCrop
Cover - Scale to the smallest size that will cover the specified dimensions. Used internally by Fill and SmartFill

(as well as those already in the processors module (Adjust, Reflection, Transpose, ProcessorPipeline)
Any objections to merging this in? Anything else you want? (If it's simple enough, maybe one of us can do it now; otherwise, we can file an issue and get to it after this round.)

Seems good to me. I'm happy to contribute and make better this already very awesome library.
It has saved me hundreds of lines in code for a photographers portfolio I'm doing. I used to do this by hand in every models save method.

@madisvain Thanks, that's awesome to hear! There's tons of stuff to do if you have extra time…from the boring but necessary jobs of writing documentation and tests to writing new processors to simply providing feedback on our discussions about new features!

@matthewwithanm Well I'd like to help out as I said. I'd be happy to help out with documentation. It's something that I'd even probably enojoy. I'll try to find some time during this week to get going on this.

You rock.

authors: madisvain matthewwithanm

repo: jdriscoll/django-imagekit


text:
可以把视频的选择也添加进来吗

实际使用的场景会有图片和视频 同时选择上传.

视频选择我是这样做的    按照他是图片的格式自己加了一个
private final static String[] VIDEO_PROJECTION = {
MediaStore.Video.Media.DISPLAY_NAME,    //视频的显示名称
MediaStore.Video.Media.DATA,            //视频的绝对路径
MediaStore.Video.Media.SIZE,            //视频的大小
MediaStore.Video.Media.WIDTH,           //视频的宽度
MediaStore.Video.Media.HEIGHT,          //视频的高度
MediaStore.Video.Media.MIME_TYPE,       //视频的类型
MediaStore.Video.Media.DATE_ADDED,      //视频被添加的时间
MediaStore.Video.Media.DURATION,        //视频时长
MediaStore.Video.Media._ID
};
然后在onCreateLoader函数中根据传入的值是视频还是图片要是视频的话执行
cursorLoader = new CursorLoader(activity, MediaStore.Video.Media.EXTERNAL_CONTENT_URI, VIDEO_PROJECTION,
MediaStore.Video.Media.MIME_TYPE +"=? and " + MediaStore.Video.Media.DURATION + " > ?", new String[]{"video/mp4", "0"}, VIDEO_PROJECTION[6] + " DESC");
然后在数据查询结果的函数中加一个判断判断是不是视频选择加上这个
if (isVideo) {
imageName = data.getString(data.getColumnIndexOrThrow(VIDEO_PROJECTION[0]));
imagePath = data.getString(data.getColumnIndexOrThrow(VIDEO_PROJECTION[1]));
imageSize = data.getLong(data.getColumnIndexOrThrow(VIDEO_PROJECTION[2]));
imageWidth = data.getInt(data.getColumnIndexOrThrow(VIDEO_PROJECTION[3]));
imageHeight = data.getInt(data.getColumnIndexOrThrow(VIDEO_PROJECTION[4]));
imageMimeType = data.getString(data.getColumnIndexOrThrow(VIDEO_PROJECTION[5]));
imageAddTime = data.getLong(data.getColumnIndexOrThrow(VIDEO_PROJECTION[6]));
                videoDur = data.getLong(data.getColumnIndexOrThrow(VIDEO_PROJECTION[7]));

            }

大致是这样的你可以试一试。

哈哈，还望大神为我们的项目贡献源码呀，最近本人忙不过来，暂时没空更新呀。

@pricnehao 可以设置同时选择图片和视频的selection嘛？

authors: nanchen2251 pricnehao shejishi tuzanhua

repo: jeasonlzy/ImagePicker


text:
Roadmap

This is a living document that is a product of our ever-evolving understanding and welcomes change. The primary purpose is to provide transparency, but also alignment and prioritization of individual efforts.
Current proposed roadmap:

[x] More bindings for TypePolicies (see #18 and #19)
[x] ~More configuration: promise transforms, context, etc.~ (ended up with a different compromise #49)
[ ] Documentation (see #20)
[ ] Tests (see #21)

Not much of a roadmap anymore :)

repo: jeddeloh/rescript-apollo-client


text:
Hide readmore if text fits

Hello, Is there a way to hide the read more when the text in the div fits its height?

I just loop over all the elements and check the height:
$('.text').each(function(){       if($(this).height() > 100){         $(this).readmore({ speed: 75, collapsedHeight: 100, lessLink: 'Read less' });;       }           });

authors: JorisLambrechts mkotsovoulou


text:
dnscrypt-proxy servers and their logging promises

In DNSCrypt-Proxy v1, the public servers list contained information about whether the servers promise not to log queries etc.
Does a similar thing exist for DNSCrypt-Proxy v2 servers?

Sorry, just found that this information is contained in the stamps.

This could be added to the individual descriptions as well.
But the configuration let you filter what kind of servers you like. And dnscrypt-proxy -list will print only those matching these criteria.

license: ISC


text:
Make extension work on php7

Update php extension to php7 api

Does it still work on php5 ?

No.
So would recommend putting it in a separate branch.

Having the same code work on both would be way better.
Maybe you can use macros similar to these: https://github.com/jedisct1/libsodium-php/blob/master/compat.h

That looks good I can implement that.
But that will have to wait till next week.

license: isc


text:
2.4.6版本上传文件过大，抛出如下异常

版本号：2.4.6
问题描述：上传几MB的pdf文件可以成功，然后配置文件解除大小限制，同时接口超时时间也设置到10秒，报错如下图所示，是否有其它办法解决这类上传问题？
截图&代码：

友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；
描述过于简单或模糊，导致无法处理的，会被直接删掉；

我上传98MB 的PDF文件报错

repo: jeecgboot/jeecg-boot


text:
win11开机自启问题

问题描述
Win11系统，安装ddns-go，系统启动未登录微软账号进入桌面状态下，发现无法解析ip到域名。
开机发现日志显示无法连接。

是否已搜索同类问题

[是 ] 已搜索未能解决

环境

操作系统: win11
ddns-go版本:
安装方式: docker/服务
#310

这个和系统有关系，开机没有网络。自行看下win11可以设置不

电脑开机界面，就是输入账号密码的界面，wifi是显示已连接的。
这个大神辛苦看下，我应该从哪个方向去查问题😂😂

这个问题我解决了，先卸载了ddns-go，然后用系统自带的计划任务设置开机自启该程序（注意设置成不用登陆），然后目前完美解决问题


text:
trprobs memory crash causes truncated consensus tree

I was trying to get all of the tree probabilities (using the --trprobs command), however my runs have been crashing while writing the tree probability file.
Even more problematic, it seems to forget to write the entire con tree file before moving onto the tree probabilities file (it just gets cut off without finishing the printing of the file).
Does the trprobs command require much more memory than the normal analysis?
Even if that is true, why would it stop printing the con tree before it has finished?
Does it move onto the tree probabilities while it is printing the tree, so it crashes before printing?
I have tried running the analysis without --trprobs and it runs without a problem.

Closing this based on age. Feel free to re-open if this is still a concern.

repo: jeetsukumaran/DendroPy


text:
Possible bugs setting parent_node, not _parent_node

Just looking through the source at https://pythonhosted.org/DendroPy/_modules/dendropy/datamodel/treemodel.html#Tree.ladderize, I see there are 3 instances where .parent_node is assigned (without leading underscore), e.g. in _set_tail_node():
self._head_node.parent_node = node
_set_seed_node:
self._seed_node.parent_node = None
and in from_split_bitmasks():
parent_node = parent_node.parent_node
Perhaps I'm misunderstanding this, but I was wondering if you mean ._parent_node, not .parent_node in at least 2 of these cases?

_parent_node is the underlying data structure, meant for private
(within-DendroPy) storage/manipulation.
parent_node is the managed property exposed to client code.
This is a fairly common Python convention/idiom.
https://github.com/jeetsukumaran/DendroPy/blob/development-master/dendropy/datamodel/treemodel.py#L1982-L1999
On 6/22/16 11:38 AM, hyanwong wrote:

Just looking through the source at
https://pythonhosted.org/DendroPy/_modules/dendropy/datamodel/treemodel.html#Tree.ladderize,
I see there are 3 instances where .parent_node is assigned (without
leading underscore), e.g. in _set_tail_node():
self._head_node.parent_node = node
_set_seed_node:
self._seed_node.parent_node = None
and in from_split_bitmasks():
parent_node = parent_node.parent_node
Perhaps I'm misunderstanding this, but I was wondering if you mean
._parent_node, not .parent_node in at least 2 of these cases?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jeetsukumaran/DendroPy/issues/59, or mute the
thread
https://github.com/notifications/unsubscribe/AABmR713HabkXzYOkKTXgNsigOIGhYztks5qOVblgaJpZM4I769I.

--

Jeet Sukumaran
jeetsukumaran@gmail.com
Blog/Personal Pages:
http://jeetworks.org/
GitHub Repositories:
http://github.com/jeetsukumaran
Photographs (as stream):
http://www.flickr.com/photos/jeetsukumaran/
Photographs (by galleries):
http://www.flickr.com/photos/jeetsukumaran/sets/

Ah, I was wondering about that. The thing is, I was surprised to see the managed property seemingly inconsistently used within the Dendropy code base. But I guess either works.

Some of the code pre-dates the transition of parent_node to a property.

authors: hyanwong jeetsukumaran


text:
highlight lines

Highlight the whichever line the cursor is on, in both the hex and comments text boxes (probably via Select).

Resolved with commit 9009a5ce89fcecc9754f7597b4e4a4610d3b5100.
(Rather than Select, the Background property of the Run representing the line is set.  This allows highlighting without hindering the ability to select arbitrary text.)

Effective with commit 53e89a0c567c4b761169b2b81dc782913e304448, it was actually decided to convert back to text boxes and use Select after all, as rich text boxes introduced too many performance issues.

repo: jeffbourdier/MIDIopsy


text:
refactor: Support using as direct dependency (move functionality)

In order to use all the libraries functionality, we can move some code into the main library, to not need to duplicate code, if use the lib as direct dependency.
# pubspec.yaml
dependencies:
  #...
  flutter_to_debian: ^2.0.0

@jeffrey0606 I would also be happy to support you releasing the stuff on pub.dev, if you're interested :) Would be a pity to let the project die.

@jeffrey0606 any chance to help you out here?

@jeffrey0606 any chance to help you out here?

Hi @Gustl22 , sorry mate. actually seeing your previous comment now. Will be very happy to receive some help here of course.
Here is my email: darrelntangu@gmail.com
Send me a DM so I can get your email to give you the necessary access to the github repo and pub.dev releasing(hope this is possible).

@jeffrey0606 thank you! I dropped you a mail ;D


text:
HTML encode ellipsis

This hurts my heart a bit, but it is better than hard to diagnose build failures.
Fixes #139

@jekyllbot: merge +minor.

authors: benbalter pathawks

repo: jekyll/jekyll-redirect-from


text:
chore: bdd-spring-1573642716 to 0.0.1

chore: Promote bdd-spring-1573642716 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
Delete application bdd-spring-1575039240 from this environment

The command jx delete application was run by  and it generated this Pull Request

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
identity.key.enc recovery

The stacktrace below suggests that identity.key.enc was present somehow malformed.
javax.crypto.BadPaddingException: Given final block not properly padded
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:811)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
    at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313)
    at javax.crypto.Cipher.doFinal(Cipher.java:2087)
    at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.<init>(InstanceIdentity.java:60)

This pull request allows to recover from a malformed identity.key.enc creating a new identity file.
@reviewbybees

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

I also see no test here, which is a red flag. Whether InstanceIdentityTest actually reflects changes to InstanceIdentity (overriding the component bundled with jenkins.war), I am not sure; Jenkins modules behave differently from plugins. But at worst an @Ignored test demonstrating the bug could be added to jenkinsci/jenkins/test, with the annotation deleted when the new version of the module is integrated.

@jglick I think it should be at least better now. Maybe in line 63 in = null is not needed.
Regarding the test in jenkinsci/jenkins/test, to be honest I have no clue about:

The exactly path in jenkins-core I should use.
How to point the module from the jenkins-core in order to delete the annotation when the new version of the module is integrated.
Also, not sure once the test is done, how to test it since I don't see in jenkins-core any bind with this instance-identity-module, so not sure how it is later integrated.

Sorry, but I have never worked on such things.

Is there any similar example I can take a look at?

Start by seeing if the existing InstanceIdentityTest really works: i.e., if it is testing edited code in src/main/java/org/jenkinsci/main/modules/instance_identity/InstanceIdentity.java, rather than the version bundled in jenkins-war-for-test-1.532.2.war. Only if that does not work should you need to think about writing a test in jenkinsci/jenkins.

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to find out more about our process please see this note

@jglick Tests created and modifications done. I was wrong, tests were working inside the module.
@varmenise in case you want also to review

:bug: the dancing games with reading the file make it harder to follow the flow, which is an increase in technical debt. I suggest that instead the reading is refactored so that the existence check is embedded in the reading

@stephenc @tfennelly Do you like it more?
@reviewbybees

:bee: not perfect but better (and perfect is the enemy of better)

@tfennelly Can you review now when you have the chance?

@reviewbybees done

:+1: as a maintainer

authors: fbelzunc jenkinsadmin jglick reviewbybees stephenc

repo: jenkinsci/instance-identity-module


text:
Add stop timeout

Description

Added stop timeout option
Related Issue

#786
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Alternate Designs

Possible Drawbacks

Verification Process

Release Notes

Contributing checklist

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING and LICENSE document.
[x] I fully agree to distribute my changes under Apache 2.0 license.

On which master branch is this PR based? Because have a look at the following line, the current deploy.sh already has the --stop-timeout option which I added some commits before you:
https://github.com/jens-maus/RaspberryMatic/blob/master/buildroot-external/board/oci/deploy.sh#L112
So please have a look and perhaps change it accordingly. And I am perfectly fine in having it added as a dedicated OCI_XXXX variable in the script.

On which master branch is this PR based? Because have a look at the following line, the current deploy.sh already has the --stop-timeout option which I added some commits before you:
https://github.com/jens-maus/RaspberryMatic/blob/master/buildroot-external/board/oci/deploy.sh#L112
So please have a look and perhaps change it accordingly. And I am perfectly fine in having it added as a dedicated OCI_XXXX variable in the script.

rebased on latest master - not sure why github shows one of your patches in addition (the git CLI does not...)

rebased on latest master - not sure why github shows one of your patches in addition (the git CLI does not...)

Sorry, missed your comment on the variable being called OCI_xxxx. Do you want to change it?
There is no OCI standard for it -> it is a Docker specific setting. In Kubernetes, for example, it has a different name.

Sorry, missed your comment on the variable being called OCI_xxxx. Do you want to change it?
There is no OCI standard for it -> it is a Docker specific setting. In Kubernetes, for example, it has a different name.

authors: angelnu jens-maus

repo: jens-maus/RaspberryMatic


text:
Fix missing method

Share method will be removed as of Laravel 5.4
https://github.com/laravel/framework/commit/1a1969b6e6f793c3b2a479362641487ee9cbf736#diff-52441e04e14c52275cd5d09e8f958981L300

I don't think this method is available in older Laravel versions.

@jenssegers Seems to be available since 4.0 at least
https://github.com/laravel/framework/blob/4.0/src/Illuminate/Container/Container.php

@jenssegers could you please tag a new release on github that includes this PR?
Composer won't pull this update unless I specify version "dev-master".

authors: SebastianS90 jenssegers micaelpdias

repo: jenssegers/agent


text:
🛑 Wanted Gigs is down

In d9e427c, Wanted Gigs (https://www.wanted.co.kr/gigs) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wanted Gigs is back up in 2c39bef.

repo: jeongsk/upptime


text:
support non 64 bits encode

The underlying libraries should now support not needing to use 64 bits encode :) . Bump the code to allow that. Put some version check to make sure the user is warned if trying to use it while not supported.

Confirmed that this should work: zbarimg on UB 20.04 is now .23, which should offer full support :) .

Working now and tested on my laptop, but this requires a high enough version of zbarimg, which is only available on Ubuntu 21.04 and higher.

Keep open until can deploy tests for the binary encoding.

Done.


text:
CVE-2022-25857 flagged on snakeyaml 1.30, which appears to be a dependency of the Detekt Grade plugin

See also https://github.com/detekt/detekt/issues/5271
The OWASP Dependency Check Gradle plugin version 7.1.2 flags vulnerability CVE-2022-25857 in dependency snakeyaml v1.30 on a project that also has the Detekt Gradle plugin configured. The ./gradlew -q dependencies command shows that snakeyaml is a transitive dependency of the Detekt plugin. The ./gradlew buildEnvironment doesn't list this dependency at all.
I've tried suppressing this issue, both by CPE and by CVE, but that didn't appear to work.
Also, overriding plugin dependencies is apparently not trivial in Gradle. See this discussion: https://discuss.gradle.org/t/how-to-change-the-version-of-dependency-of-a-gradle-plugin-as-an-end-user/32456
I think I remember having a similar conversation here before, but is there truly no way to configure the OWASP Dependency Check Gradle plugin to disregard plugin-related vulnerabilities that do not affect the build artifacts, or merely log such vulnerabilities as warnings, without failing the build?
Thanks.

un-suppresable  dep-check cves come up from time-to-time, but the work-around is fairly generic:
configurations.all {
    resolutionStrategy.eachDependency {
        if ((requested.group == "org.yaml") and (requested.name == "snakeyaml")) {
            useVersion("1.31")
            because("https://github.com/jeremylong/DependencyCheck/issues/4802")
        }
    }
}

(using the kotlin dsl — groovy can do the same)

Since my service is not processing YAML files my workaround was to exclude snakeyaml from being imported as transient dependency from any dependency by adding the following lines to my build.gradle:
configurations.implementation {
    exclude group: 'org.yaml', module: 'snakeyaml'
}

Unfortunately, another CVE is being flagged by 1.31 as well, for which no fix or mitigation is available. This is CVE-2022-38752. And the snakeyaml developers apparently consider it a non-issue, so it's not expected to be "fixed".
@jeremylong This isn't the first time that the OWASP Dependency Check Gradle plugin flags a vulnerability in the dependency of a Gradle plugin, which is not part of the actual build. Is there really no way to improve the plugin so it can be configured to ignore plugin dependencies?

there is now a 1.32 that doesn't trigger for CVE-2022-25857

Unfortunately, 1.32 does not prevent CVE-2022-38752 from being triggered, snice that CVE neglected to specify an affected version range. :confused: See https://github.com/jeremylong/DependencyCheck/issues/4839

CVE-2022-38751 is still reported for cpe:2.3:a:snakeyaml_project:snakeyaml:1.31:*:*:*:*:*:*:* in dependency-check 7.2.1 even though the NIST data says "Up to (excluding) 1.31".

I think the bigger weirdness is why suppression isn't working here. I was able to suppress fine in one Gradle groovy project but couldn't in a different Kotlin one with detekt. Didn't dig into why, but seems a bug somehwere with the suppressions.
As to the wider question, you can normally use skipConfigurations to skip plugin related dependencies where those plugins define a configuration (e.g detekt) if you are only concerned with things that affect the built artifacts.

why suppression isn't working here

This suppression as been working fine for me:
<suppression>
  <note>Not parsing user input with snakeyaml</note>
  <cve>CVE-2022-38751</cve>
  <cve>CVE-2022-38752</cve>
</suppression>

Yeah, as I mentioned, an identical suppression rule is working fine on one project but not another so there must be something specific to the Gradle project, plugin or configuration that is preventing the suppressions from working in some cases.
FWIW 38751 isn't being reported on 1.31 from NVD CVE data now, so perhaps you had/have cached data at the time. Hopefully they fix affected versions for 38752 soon.

For me, also 1.33 is still detected as being affected by CVE-2022-38752
Using 7.2.1 / snakeyaml 1.33
snakeyaml-1.33.jar (pkg:maven/org.yaml/snakeyaml@1.33, cpe:2.3:a:snakeyaml_project:snakeyaml:1.33:*:*:*:*:*:*:*, cpe:2.3:a:yaml_project:yaml:1.33:*:*:*:*:*:*:*) : CVE-2022-38752

Scanning mvn

@EugenMayer assuming you have confirmed it is coming from NVD rather than, say, OSSIndex could it be NVD cached data being different between your mvn and Gradle examples? Fix version for 38752 was only corrected to 1.32 in NVD a few days ago.

@chadlwilson i would not say i confirmed that, sorry. I would rather say i'am not even sure how. I ensure to wipe the CI cache / local cache to have a clean scan with refreshed indexes. But i'am not sure this is what you asked for.
I'am not yet DependencyCheck bullet proof so there is a good chance i did miss something that is needed by protocol - if so, please bear with me.
So by https://nvd.nist.gov/vuln/detail/CVE-2022-38752 - which is what i checked, versions from 1.32 should no longer be affected. This is what i checked, but i cannot confirm that this actually is my result, hence the notice here. Anything i did wrong?

I have not looked at this specific issue - however, the question around suppressing items that are not actually part of the build artifacts may come down to not scanning specific configurations in gradle. See https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration.html for skipConfigurations and scanConfigurations.

@chadlwilson i would not say i confirmed that, sorry. I would rather say i'am not even sure how. I ensure to wipe the CI cache / local cache to have a clean scan with refreshed indexes. But i'am not sure this is what you asked for.

@EugenMayer  Not sure if your setup would allow the cache to be retained across builds, but you could try mvn dependency-check:purge per the docs. I cant recall the location that the mvn plugin caches the NVD data. If you don't override cveValidForHours to a larger cache number (4 hours by default), and there is nothing retained in your env across attempts.

So by https://nvd.nist.gov/vuln/detail/CVE-2022-38752 - which is what i checked, versions from 1.32 should no longer be affected. This is what i checked, but i cannot confirm that this actually is my result, hence the notice here. Anything i did wrong?

IIRC the text report output doesn't clarify which component of dependency check is complaining about a given issue. Could be OSSIndex, could be NVD... or others. Since OSSIndex and NVD both typically refer to Java vulnerabilities via their CVE identifier, I don't think the output above doesn't tell you where the false positive is coming from. You can confirm that from the full HTML report. Usually I look at the suggested suppression fragment to determine, as OSSIndex ones will have <vulnerabilityName> instead of <cve> in the suppression fragment, but there might be a smarter way.
The reason I suggest checking is that sometimes the same false positive is coming from two datasources, and the suppression rule needs to be adjusted to reflect that (and this issue is about suppressions not working, although likely has several possible root causes different to the one being discussed here regarding detekt as a Gradle plugin).

Here is the full screenshot of the HTML report:

I guess the part
CVE-2022-38752 (OSSINDEX)  suppress

I what you are looking for, seems like the OSSINDEX is the cause.
I ran mvn dependency-check:purge and then ran mvn verify again and it failed the same way (and i have seen it downloading all the indexes for the usual long time).
Does this help?

@EugenMayer As the docs indicate, only NVD data is cached. So purging it won't help if the issue is OSSIndex. You'll have to suppress until https://github.com/OSSIndex/vulns/issues/328 is addressed. Anyway, CVE-2022-38752 currently comes up via OSSINDEX with 1.33 on Gradle for me, so if it's not appearing for you there must be something different in your setup between Maven and Gradle. In any case it doesn't sound like your issue has anything to do with this specific problem with Dekekt and Gradle. I believe this is supposed to be about suppression not working in some cases, not about false positives per se.

As to the root problem here, it's possible to have something very strange going on. It seems like in some cases Dependency Check or its Gradle plugin is not actually updating when there are any updates to the suppression file, so when one adds suppressions it doesn't see them and it seems like it's not working and keeps using the old values.
Not sure if that is what was going on here, but I can't replicate exactly the same issue I was having with detekt now; but did get something similar happening with changes to suppressions seemingly being ignored. I seemed to be able to fix it by removing the local .gradle folder and trying again. 🤷♂

@EugenMayer As the docs indicate, only NVD data is cached. So purging it won't help if the issue is OSSIndex. You'll have to suppress until OSSIndex/vulns#328 is addressed. Anyway, CVE-2022-38752 currently comes up via OSSINDEX with 1.33 on Gradle for me, so if it's not appearing for you there must be something different in your setup between Maven and Gradle. In any case it doesn't sound like your issue has anything to do with this specific problem with Dekekt and Gradle. I believe this is supposed to be about suppression not working in some cases, not about false positives per se.

I was entirely unware of https://github.com/OSSIndex/vulns/issues/328 and the entire existence of OSSindex as a second source. Thank you for bringing this up, helped me a lot.
Suppressing is not an issue, my point here was, that i was not expecting to be in need of an suppression - now i know better. Next time i check OSSindex in addition before posting FUD. Sorry!

authors: 0x6a77 EugenMayer OrangeDog chadlwilson jeremylong lackovic volkert-fastned

repo: jeremylong/DependencyCheck