Multiple servers setup failing with Pl3xmap and Dynmap, working with squaremap and Overviewer

In the progress of setting up a Multiple Servers instance, followed the instructions at https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers
Have a Pl3xmap, squaremap, Overviewer and Dynmap server that I'm trying to also show on a LiveAtlas instance.
I run a Caddy webserver that hosts all files for the individual maps and the LiveAtlas instance, all of the individual maps are publicly accessible (through https)
Got it mostly set up, LiveAtlas is accessible and server switching works, squaremap and Overviewer are accessible without issues.
But am currently stuck on specifically Pl3xmap and Dynmap having issues.
Pl3xmap throws a Failed to load server configuration for 'Pl3xMap' No current world error.
and Dynmap a Failed to load server configuration for 'Dynmap' Error: Request returned invalid json error
Skimming through the browser console it looks like Pl3xmap is also failing on loading its json files.
I'm thinking there is something misconfigured in my webserver forwarding specifically those files, the gz encoding by Pl3xmap for example?
Grasping at straws here, and I made it harder for myself by using Caddy which is not included in the example on the wiki :P
LiveAtlas url: https://map.roanv.nl/LiveAtlas
Individual maps are accessible through this page: https://map.roanv.nl/
The multiserver part of the LiveAtlas index.html:
            servers: {
                Pl3xMap: {
                    label: 'Pl3xMap',
                    pl3xmap: 'https://map.roanv.nl/pl3xmap/'
                },
                squaremap: {
                    label: 'squaremap',
                    squaremap: 'https://map.roanv.nl/squaremap/'
                },
                Overviewer: {
                    label: 'Overviewer',
                    overviewer: 'https://map.roanv.nl/overviewer/'
                },
                Dynmap: {
                    label: 'Dynmap',
                    dynmap: {
                        configuration: 'https://map.roanv.nl/dynmap/standalone/MySQL_configuration.php',
                        update: 'https://map.roanv.nl/dynmap/standalone/MySQL_update.php?world={world}&ts={timestamp}',
                        sendmessage: 'https://map.roanv.nl/dynmap/standalone/MySQL_sendmessage.php',
                        login: 'https://map.roanv.nl/dynmap/standalone/MySQL_login.php',
                        register: 'https://map.roanv.nl/dynmap/standalone/MySQL_register.php',
                        tiles: 'https://map.roanv.nl/dynmap/standalone/MySQL_tiles.php?tile=',
                        markers: 'https://map.roanv.nl/dynmap/standalone/MySQL_markers.php?marker='
                    }
                }
            },

Caddyfile part pertaining to LiveAtlas:
    handle_path /LiveAtlas/* {
        root * /mnt/data/LiveAtlas/
        try_files {uri} /index.html
        file_server
    }

I tried running Pl3xmap with a normal LiveAtlas gui today (non multiple servers)
Apparently Pl3xmap V2 just doesn't work at all with LiveAtlas currently, so that explains the Failed to load server configuration for 'pl3xmap' No current world error for Pl3xmap.
Question for Dynmap still stands though


Will you provide a Google Colab notebook tutorial?

Thank you for your suggestion. We will add a Google Colab notebook tutorial soon.


Paths should have arrow heads.

This may be waiting on proper graphviz path drawing, but just going to add it here before someone else does.

On Mon, Nov 28, 2016 at 01:24:20PM -0800, Juan Benet wrote:

This may be waiting on proper graphviz path drawing…

Graphviz edges are #24.  The Graphviz edges have arrow heads, but they
may not be particularly useful unless we do a very good job telling
Graphviz the shape of our nodes.  I expect it's better to keep the
current approach that terminates edges at the box center, and relies
on a masking white rectangle to hide the edge which lies under the
box.  I'm not sure how to handle arrows in that case though, since you
want the arrow tip at the intersection between the edge path and the
card border.  There may be an SVG incatation for that, but I'm not
sure what it is.
Since all directed edges will flow downward, arrow heads should not be
particularly important.  I'm fine with having them, but they currently
feel like more work to get right then they're worth.


Its a shame as its  very cool software but no recent implementations so I guess any new versions are in some corporate lab somewhere..


[Calendar][Sample App Update]

Signed-off-by: Sameer Prakash Pradhan<EMAIL_ADDRESS>

Please Review.


Bugfix: Server Error (500) after adding but it worked

Describe the bug
After adding a page (for example https://en.wikipedia.org/wiki/Internet_Archive), I get a Server Error (500)
If I refresh, it is there and it worked.  HTTP/1.0" 500 145

Steps to reproduce
Here is my config. Note that the first three export lines shouldn't matter and relate to another issue I will be adding after this one
#!/usr/bin/env bash
# Run and start archivebox

cd /home/jwink3101/webapps/archivebox/data/

# Python versions, etc for sqlite3
export PATH=/home/jwink3101/webapps/archivebox/sqlite/bin/:$PATH
export LD_LIBRARY_PATH=/home/jwink3101/webapps/archivebox/sqlite/lib
export LD_RUN_PATH=/home/jwink3101/webapps/archivebox/sqlite/lib/

# Settings for public view:
export PUBLIC_INDEX=False
export PUBLIC_SNAPSHOTS=False

# My settings for archivebox
export SUBMIT_ARCHIVE_DOT_ORG=False

# No chrome
export FETCH_SCREENSHOT=False
export FETCH_DOM=False
export FETCH_PDF=False

#### Run

# Kill the old one if it's running
cat ../logs/run.pid 1> /dev/null 2>&1 && kill $(cat ../logs/run.pid) 2>/dev/null

nohup archivebox server <IP_ADDRESS>:26186 > ../logs/out 2> ../logs/err & echo $! > ../logs/run.pid

Add a URL
Screenshots or log output
See above
Software versions

OS:     Running on Webfaction. I don't administer the server but running some commands it is centOS7 with kernel 3.10.0-1062.18.1.el7.x86_64
ArchiveBox version:        0.4.9 (installed vis pip)
Python version:          3.7.8
Chrome version:          N/A

@Jwink3101 https://github.com/pirate/ArchiveBox/issues/409 Can you please confirm if it the same issue?

@Jwink3101 #409 Can you please confirm if it is the same issue?

Yes with the exception that I am not running in Docker. Very likely unrelated.
Sorry for the duplication.

Latest version fixed my 500 error too.


Make it easier to integrate with Azure web sites

It adds a reference link on how to configure client certificates in Azure Websites. I spent the full day getting this to work due to lack of knowledge about how to do it on websites (misleading that we can remote into IIS Manager and activate it there, even though that is the wrong way to do it). Until I finally found the link referenced and got it to work. If this link would have been part of the article, I would have finished configuring in 1 hour and not 8.

Hi @mxa0079, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@steved0x can you please verify this customer's contribution?

@ggailey777 Please add this note.
@mxa0079 Thank you for your contribution, this link is a great addition to the article. Sorry that you had a struggle before finding that information.

@steved0x Glad to help!

Merged! Thanks @mxa0079 for your contribution to improving Azure docs and @steved0x for your fast response.


kernel command parser null deref exception bug found

Describe the bug
Please provide as much information as you can.
Debugging in dotnet-repl, I was able to find a bug with the command parser in Microsoft.DotNet.Interactive.Kernel.TryAdjustLanguageServiceCommandLinePositions(...), where the out param is being set to null but the method call is not returning false to indicate failure (see src/Microsoft.DotNet.Interactive/Kernel.cs, line 260)
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
N/A

OS

[ ] Windows 11
[ ] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[ ] Visual Studio Code
[ ] Visual Studio Code Insiders
[x] Visual Studio
[ ] Other (please specify)

Screenshots
If applicable, add screenshots to help explain your problem.

fixed with #3275


List of street name for a city ?

Hey, i try to list all street's name for a city.
For Bordeaux i try this :
result = api.query("""
    area[name="Bordeaux"];way(area)[highway][name];out;
    """)
len(result.ways) #17332

This should be more more or less 2K streets.
Did i do something wrong ? :)

If I am correct, your result should have multiple ways that correspond to the same street.
waynames = set([way.tags['name'] for way in result.ways]) narrows it down, not to two thousand, like you wanted. (where do you get this figure of 2K anyways?)


Router fix to handle url encoded form payload

Fix for the issue https://github.com/StackStorm/st2/issues/5512
When there is a POST request with payload type "application/x-www-form-urlencoded" , Input body is of type bytes. We need to convert it to string before processing

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Sravanthi Konduru seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@sravs-dev Thanks for the contrib! Can you add a unit test at https://github.com/StackStorm/st2/blob/master/st2api/tests/unit/controllers/v1/test_base.py?

Sure, will add

@sravs-dev Thanks for the contrib! Can you add a unit test at https://github.com/StackStorm/st2/blob/master/st2api/tests/unit/controllers/v1/test_base.py?

Sure, will add

@m4dcoder Is there a setup guide that I can follow for running tests? I guess the tests expect mongo DB to be running in the localhost?

@m4dcoder  I see that my change is already covered in an existing test case here. I see that the unit test is temporarily disabled by @Kami in this commit . I have enabled the unit test as part of this PR. We can see if the existing test passes with my router fix.

@sravs-dev Thanks for the fix!
From the CI issues (https://github.com/StackStorm/st2/runs/4706277178), only the lining is failed for the test_sso.py, please reformat it with Black.
Could you please also update the CHANGELOG.rst with the description for this fix?

@sravs-dev Thanks for the fix!
From the CI issues (https://github.com/StackStorm/st2/runs/4706277178), only the lining is failing for test_sso.py, please reformat it with Black.
Could you please also update the CHANGELOG.rst with the description for this fix?

@armab Thanks for checking, I fixed the format issue and updated changelog. Need approval to run CI checks.

@sravs-dev Thanks! All good, the only missing is the CLA check. Looks like your github account wasn't associated with the commits.

Sravanthi Konduru seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

Could you try that? See more details in the: https://github.com/StackStorm/st2/pull/5513#issuecomment-998176843

@armab CLA check was failing due to wrong email associated with git commits. Corrected email and submitted new PR https://github.com/StackStorm/st2/pull/5536 . Need approval in new PR to run CI checks.


Freezing using router.navigate

Why not include framework specific documentation along side the configuration documentation?
Here's a good one:
https://stackoverflow.com/questions/40868034/angular-2-final-release-router-navigate-unit-test-error

Karma is a general-purpose test runner; integrations with Angular are maintained by the Angular team, not Karma.


Phrase level replacement is not working

Set Name -: NGMA_5_1
Link- https://github.com/UdaanContentForLogging/NGMA_5_1 (Shared with Sujay)
Phrase -  नंदलाल के रेखाचित्र और रेखाचित्र' changed to 'ड्राइंग्स एंड स्केचेस ऑफ़ नंदलाल'
Page No-  24, 25 ,67 -111

Anjani I want this issue fixed urgently. Ajit And Sujay will assist.

Please refer to the commit number 47dd1ad265e17a69c4ab0791d1610677a27f96c7.


Orm

OK Andy - this one is ready to merge tomorrow - wanted to give you discretion of when to merge it into your branch


Error in api/webhook/.assistantRequest.ts

Whenever I try to follow the tutorial to get the server up I get the following error.
Error: api/webhook/.assistantRequest.ts(60,27): error TS2322: Type '{ name: string; model: { provider: string; model: string; temperature: number; messages: { role: string; content: string; }[]; functions: { name: string; description: string; parameters: { type: string; properties: { ...; }; required: string[]; }; }[]; }; voice: { ...; }; firstMessage: string; }' is not assignable to type 'Assistant'.
  The types of 'model.messages' are incompatible between these types.
    Type '{ role: string; content: string; }[]' is not assignable to type 'ChatCompletionMessageParam[]'.
      Type '{ role: string; content: string; }' is not assignable to type 'ChatCompletionMessageParam'.
        Property 'name' is missing in type '{ role: string; content: string; }' but required in type 'ChatCompletionFunctionMessageParam'.

This error shows up in editor, VSCode, or whenever I ignore the error and attempt pnpm deploy:prod.
The error seems to be in the defined types found in server-side-example-serverless-vercel/types/vapi.types.ts  and used in server-side-example-serverless-vercel/api/webhook/.assistantRequest.ts
Is there anything I'm missing her to resolve this issue?

Thanks for the response @nikhilro . It's good to know where the ground truth api is. But it doesn't help the current problem which is is the example code won't deploy/run. So at this point I'm not even using the actual api.

cc @kaustubhkagrawal

@leeparnell Pushed the changes. The typescript wasn't able to resolve types for messages of the plain javascript defined in api/webhook/.assistantRequest.ts file.


Issue with Poetry install

Poetry install runs into the following error:
Note: This error originates from the build backend, and is likely not a problem with poetry but with twofish (0.3.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "twofish (==0.3.0)"'.

Hello,
Are you using the same version of Poetry as the one used in the course?


feat(amt features): wsman messaging

PR Checklist

[x] Unit Tests have been added for new changes
[x] API tests have been updated if applicable
[x] All commented code has been removed
[x] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. open-amt-cloud-toolkit/repo#365 )

closing in favor of #706


Use github.com/alecthomas/assert/v2 for tests

Another draft PR...
github.com/alecthomas/assert/v2 is a modern testing assertion library that uses Go generics. It has a smaller API than github.com/stretchr/testify but -- more importantly -- better type safety. Specifically, stretchr/testify performs many silent type conversions that may conceal type errors, whereas alecthomas/assert uses Go generics to ensure type safety at compile time.
This draft PR switches to the core statedb tests to use alecthomas/assert so you can see what the changes look like. I would be happy to port the remaining tests if you are interested.

I would like to stick with testify for now to align with cilium/cilium's choice of test assertion library. It'll avoid pulling in a new dependency into the project.

Ack, makes sense.


[Question] Issue running in background

Running this script in the background isn't working for me both on macOS and Windows.
On macOS (and Linux) you're able to run commands in the background with & and then detach them from the terminal instance with disown. So the command I used is python3 main.py & disown. After doing this I get 1 line of output ([21-05-2022 08:43:26 PM] [INFO] Discord Rich Presence for Plex - v2.2.2) and then nothing else. When I play something in Plex, the RPC doesn't show up, so I'm guessing the script either isn't running or is failing. I do see the main.py process in the output of ps -ax | grep Python, however I'm not sure what I can conclude from this this. Trying this same command ( & disown) with a simple test Python script that just prints something every 2 seconds, output is generated every 2 seconds until I kill the process.
On Windows, I did as this issue comment suggested, but it also isn't seeming to work. Specifically, I tried both pythonw main.py and then I tried renaming the file extension of main.py to .pyw, as I was told to in some article I read, so pythonw main.pyw and neither of these worked. I made sure pythonw.exe is in my path variable, and also just tried replacing pythonw with the path of the .exe.
Has anyone else gotten it to work? Is there something I'm doing wrong? Any other suggestions for making the use of this script more convenient are also welcome.

I have just committed a fix. Update your version of the script and let me know if the issue is fixed.

Thanks for the quick fix and response!
pythonw main.py works on Windows now. I tried on macOS and it's still doing the same thing. I turned on logging to file and only this line shows up:
[21-05-2022 10:30:29 PM] [INFO] Discord Rich Presence for Plex - v2.2.3

Thanks for the quick fix and response! pythonw main.py works on Windows now.
I tried on macOS and it's still doing the same thing. I turned on logging to file and only this line shows up:
[21-05-2022 10:30:29 PM] [INFO] Discord Rich Presence for Plex - v2.2.3

I've made a couple changes to try to debug it. Update your copy of the script again and see if anything more gets logged.

Now I get 2 lines of output:
[22-05-2022 10:47:49 AM] [INFO] Discord Rich Presence for Plex - v2.2.4
[22-05-2022 10:47:49 AM] [INFO] [laptop/CD933] Signing into Plex

And the RPC doesn't seem to be working (when using  & disown).

It appears to be freezing on this line after the "Signing into Plex" message:
self.account = MyPlexAccount(token = self.token)

I'm not sure what the issue is since MyPlexAccount is imported from the PlexAPI module which is out of my control. I don't see any reason for it to act differently while the script is running in the background. I'm on Windows so I'm unable to test this on macOS.

personally I use a scheduled task :
start.cmd :
echo off
c:
cd C:\discord-rich-presence-plex-master
start plex_rich_presence-noconsole.vbs
exit
plex_rich_presence-noconsole.vbs :
strCommand = "cmd /c python main.py"
For Each Arg In WScript.Arguments
strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
Next
CreateObject("Wscript.Shell").Run strCommand, 0, false
cordially

personally in Windows I use a scheduled task :
in scheduler when starting the computer : start.cmd :
echo off
c:
cd C:\discord-rich-presence-plex-master
start plex_rich_presence-noconsole.vbs
exit
plex_rich_presence-noconsole.vbs :
strCommand = "cmd /c python main.py"
For Each Arg In WScript.Arguments
strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
Next
CreateObject("Wscript.Shell").Run strCommand, 0, false
==
cordially

When using ctrl+z to suspend the script, then using bg, the script does not start up again and update the rich presence in Discord. It just continues to use the last updated information. (e.g. Shows old song even after new song is played)

On Windows I run it in the background by renaming main.py to main.pyw. Then just make a shortcut out of it and place this shortcut in your Startup folder. You can do this by opening Run with Win+R and then type shell:startup. Works on every version of Windows for me with a basic Python install.

I tried using your method but this shows up on my console.txt
[29-10-2023 11:16:19 PM] [INFO] Discord Rich Presence for Plex - v2.3.4
[29-10-2023 11:16:19 PM] [INFO] [myServer/69AA2] Signing into Plex
[29-10-2023 11:16:19 PM] [ERROR] An unexpected error occured
Traceback (most recent call last):
File "C:\discord-rich-presence-plex\main.pyw", line 65, in
if sys.stdin.isatty():
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isatty'

@TsunaSetsu That issue should be fixed now. Try the new version (2.3.5).

Actually on my Windows 11 :
Scheduled Task :
Start a program : "C:\discord-rich-presence-plex\start_plex_rich_presence.cmd"
start_plex_rich_presence.cmd :
cd C:\discord-rich-presence-plex
start pythonw main.py

Test : OK

I'm closing this as stale.
Feel free to post a comment if you are still facing this issue, after testing again using the latest version.

It's still happening, I actually just started using this project again a few days ago :) I updated the post with a workaround I'm using.

You tried v2.6.0? It still freezes after the "Signing into Plex" line?

So I decided to ask ChatGPT and I think it found the issue lol: https://chat.openai.com/share/0ab59919-d751-41f4-adad-bda038a7f855
The issue no longer happens with python3 main.py </dev/null & disown
As you said before, it seems to be out of this project's control and is an issue in the Python Plex API. Here's a starting point for where to look, but I'm satisfied with the solution above.


Semantics for non-regexp arguments

Semantics for non-regexp arguments seem fairly useless to me, as they always return an iterator with containing a single element (which is identical to the value returned by RegExp.p.exec). Likewise for a non-global regexp argument.
I know there's precedent for the Let R be ? RegExpCreate(regexp, undefined). behavior in String.p.match and String.p.search, but these methods have useful behavior for non-global-regexp arguments.
Is matchAll intended to only be used with global regexps?

That's the primary use case, but it will accept any regex it's passed. The string → regex coercion behavior was added as a result of committee feedback; they preferred the consistency over my preference, which was strict type checking - ie, throwing a TypeError when a non-regex was passed.
The usefulness with a non-global regex remains that you can get a consistent iterator interface around match objects, even if there's only one of them.

It'd be nice to have a more useful behavior for non-regexp args, but I see the reasoning behind the decision. Thanks.

There's another behavior that would be possible here, which is matching String.prototype.split and String.prototype.replace in searching for the actual string value. Was this considered? I think this would be useful when trying to match a particular string value (given the lack of a RegExp.escape--similar issue that the replaceAll proposal is working on).

The method that matchAll should … match … is match, not split or replace.
I think the committee needs a generic solution to that problem; I don't think piecemealing new methods with this support (including replaceAll) is really viable.


Convert Viscous damping matrix to Morison equation in HydroDyn Model

Dear guys,
I would like to ask a question about the viscous effects of 15MW platform in OpenFAST.

As shown in the figure above, the UMaine VolturnUS-S reference platform adopts a viscous damping matrix.

As shown in the figure above, the influence of viscous effects on the OO-Star Semi floating substructure are modelled through the Morison equation.
I would like to ask how to convert the original viscous damping matrix in 15MW into Morison equation similar to 10MW to simulate the viscous effect.
Best wishes!
Leo

Dear @LeoHongLiZuo,
I would say that the is no general way for upgrading a viscous drag matrix into a strip-theory formulation--there is no unique solution because many combinations of drag coefficients distributed across the floater could result in the same viscous drag matrix.  More information would have to be known about the drag distribution to derive the strip theory model, e.g., as identified through the CFD solution used to derive the viscous drag matrix or based on assumptions or an understanding of the viscous drag coefficients expected along each member of the floater.
Best regards,

Dear @jjonkman
Thank you very much for explaining in detail!
But I still want to know how the "AxCd" 14.99 and 38.34 in the 10MW banding strip-theory are calculated.

As shown in the following figure, there seems to be no specific relevant introduction in D4.2.

Best wishes!
Leo

Dear @LeoHongLiZuo,
I was not the one who put this OpenFAST model of the OO-Star Wind Floater together, so, I can't answer your question.  I'm also not sure what report you are quoting from, but I would suggest reaching out to the authors of that report.
Best regards,

Dear @jjonkman
Thanks again for your patience.
Ok, let me find out again how do I set this parameter.
Best wishes!
Leo


Add libelf-dev to dependency list

@fredrik-jansson-se Thanks for your contribution!
But redbpf repository requires all developers to conform Developer Certificate of Origin (DCO).

Is it ok now?

Thank you @fredrik-jansson-se


Adjustments to how NIL ranks apps

Indexers or no-indexers and how Radiks fits into that...

@jeffdomke with Digital Rights Reviewer on-boarded this can be closed.

Tagging @larrysalibra  // @jeffdomke // @pstan26  on this one.
Is there a scoring criteria for Digital Rights Gaia?
I just browsed a top 5 app who got full marks on the gaia (auth and storage).  I spent about 20 minutes updating my info, editing information, etc and NONE of it makes a gaia requests.
Can I just build a centralized app, enable gaia auth, and have < 1% of my features implement gaia storage?  If so, this is very concerning.  The Blockstack team is selling this notion of #cantbeevil but if a majority of an application is centralized, what are we actually promoting?
I believe that we need to be a bit more stringent on this review process and really narrow down which apps are truly Blockstack apps vs. apps that kinda use Blockstack.

@kkomaz
The scoring criteria during the March pilot run was 4 points for using only gaia, 2 points for using gaia plus some other server, 0 points for not using gaia and -1 if the app was broken.
We got a lot of pushback on that scoring mechanism because it meant that apps that use indexers got penalized in addition to penalizing apps that used traditional centralized databases. As a result, in April we changed the scoring algorithm so that it doesn't differentiate between apps using gaia alone and apps that use gaia plus some sort of other server. (see https://github.com/blockstack/app-mining/issues/58#issuecomment-477451480)
The challenge we face is that when an app makes calls to servers that aren't the user's gaia hub, without having knowledge of the inner functioning of the app, we have no easy way to tell if data is being stored by those servers and if that data is critical to the functioning of the app.
I am in favor of more strict approach that awards apps that figure out how to make it very clear to users that they have control over their data - ie by clearly not using any other 3rd party servers besides the user's or the gaia hub of another user with which the user has chosen to interact with.

Can I just build a centralized app, enable gaia auth, and have < 1% of my features implement gaia storage? If so, this is very concerning. The Blockstack team is selling this notion of #cantbeevil but if a majority of an application is centralized, what are we actually promoting?

I agree.

Thanks for the feedback @larrysalibra.
In my mind the discussion of using an indexer vs. a centralized database in my opinion are two very intentional differences.
In the case of an app using a service like Radiks, the app is at least making an effort to make a gaia call prior to updating the indexer.  Indexing only stands as record keeping and should not make write privileges until a gaia post request has been made.
On the contrary, there are apps that do exist that are centralized, contain blockstack auth, and does not make any effort to utilize the gaia.  I know it's hard to test on some of these apps but like I said with some due diligence I think this can be resolved.  I spent 20 minutes on a top 5 app and did not see a single gaia request when updating my information.  After talking with the individual from their team, I learned that most of their data is centralized/stored in a db.  Secondary feature was using gaia.  (in my opinion not core to the business model)
Personally, I would not group indexer vs. centralized db together.  With that being said, I think a simple form where app developers identify areas where they are using gaia could go a long way.  Then based on the submission, your team can confirm it via testing and make the call of whether or not this integration is crucial to the overall impact of the application.  Some will be more obvious than others and that could require a bit more follow up.

Personally, I would not group indexer vs. centralized db together.

How can a 3rd party (or software) observing the behavior of an app determine the difference between the two?
I can make an api that looks exactly radicks and stores data that is critical to the functioning of the app that can't be replicated by someone running their own indexer.
It seems like one way to test for this would be to have an api for users to specify their own indexers.

In my mind the discussion of using an indexer vs. a centralized database in my opinion are two very intentional differences.

Determining developer intentions seems...challenging...to say the least.

I understand Radiks is not a perfect solution.  As it stands right now, I have not seen a good way in building an application that requires interaction between two blockstack users WITHOUT an indexer.
By utilizing Radiks, I would think developers are trying to come up with the best middle ground between full gaia and some sort of centralization for the sake of building complex applications.  My major concern is that there are apps that are completely centralized without really using gaia at all.
However, from the sounds of it, it looks like you want to group an application that is primarily centralized and an app that uses with gaia + indexer together.
As great as Radiks has been for debut, it's still not comparable to going full centralization.  Beyond the principle of trying to do the right thing, as it stands, are there any restriction of what I asked before?

Can I just build a centralized app, enable gaia auth, and have < 1% of my features implement gaia storage? If so, this is very concerning. The Blockstack team is selling this notion of #cantbeevil but if a majority of an application is centralized, what are we actually promoting?

Should there be a distinction between an app using an indexer vs. a complete centralized db /w a few gaia features?
If not, and debut, which uses a Radiks indexer falls into the same category as a centralized db, what gains do I get from trying to integrate gaia calls with my indexer via Radiks?

It would be good to know because as app developers we should be realistic about what types of apps we can build based on the foundation that is set.

You can build any type of apps with blockstack. It is just that they might be rewarded differently.
To address the question about intentions of developers, I reference #11 here and encourage to think about the advantages of limit rewards to open source apps.

@larrysalibra any updates here?

Had a talk with Larry during consensus.  I personally don’t want this discussion between indexers vs not but more towards app that aren’t making the effort to utilize gaia in a meaningful way.  Top apps are STILL being rewarded in app mining and is centralized.  If radiks supports running your own indexer in the future with a good transfer system I will definitely implement it.

Next step here is @larrysalibra and @hstove will brainstorm on how to detect partial vs. full Gaia reads and writes.

I've been thinking about this. The only possible option, I think, is to have some arbitrary threshold where NIL can detect if all writes are going to Gaia. Determining if every single write on the site goes through Gaia is not possible - both practically and fundamentally (the "halting problem"). So, in my mind, the next step forward is to determine if this is useful.
So the proposal would be something like:

NIL will use the application for X minutes, and inspect network requests. If all requests to save data are written to Gaia (in addition to any indexers), then it will get full points for "writing data to Gaia".

@hstove we should try to re-schedule 30 minutes to chat about this

I tried to read all the comments about NIL Gaia points, and it seems fair what you've done with removing the limit for index-using apps. Although in making BlackHole, we acted very strict and did not use any independent server for users data, beside Blockstack for Auth and chosen Gaia provider for storage, as @larrysalibra checked the system,
Making many features is harder this way, like short links, crash reports, or even OpenGraph for share links.
I wanted to ask if you will add more points for apps that use Gaia more strictly and respect decentralization more. It is not a question about fairness, we knew using indexing systems and independent servers will ease many things very much, but we want to push the limits, as long as it does not hurt user experience, and take more steps in the way of decentralization.
For now this binary 0,1 score is weakening NIL importance in final score. My suggestion is to make the score value bigger from 0 to 10. Zero will be no Gaia and 10 will be only Gaia. Testing like @hstove suggests can be a good way to choose the value.
Because for now, I see many apps that say they are "decentralized", but at the best they are just "encrypted".
As I said here too, I think with these changes, everything seems too comfy for people who want to make Next Level of a powerful world.
And not many people will have an issue with this, who has a problem with easy?
Respectfully I think managers like you @larrysalibra and @hstove should push these limits and encourage others to come far with you.
After all, we call our apps, dapps and we want to it means more.

Sound like @larrysalibra is working on some building some tools that could help here. We should put this on hold until he follows up on next steps.

Yes - I'll have something to share with the community very soon. Agree with @Walterion1 we should push the limits of dapps so that they can't be evil.


Make Sidebar index follows (scroll to) the current visible page

When viewing a section in the wiki that's in the lower section in the index, it doesn't appear by default in the sidebar.
for example, when viewing the nix-related instructions, every time I need to go to another page (not the next one necessarily) in the nix section I have to scroll down to be able to see the rest of the section's pages.

it's not much of an issue, but it's inconvenient UX.

I'm aware of this, and have raised an issue a while ago https://github.com/imfing/hextra/issues/395.

Updated the theme yesterday, and the behaviour is present.


Add Javadocs

 Add Interfaces and Javadocs to all classes that appear in the class diagram (where appropriate)


Disable tls listener for libvirtd

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Unable to create an app because of the flipper in debug mode (iOS) - [0.65.1]

Description
Bug Report
Good morning people, everything fine? I come here to report a supposed bug that is happening in the build of my react-native application that is in version 0.65.1.
I've been trying to build the application for a long time and I haven't come up with any solution. I've checked many issues here and in the Flipper repository, hoping to find a solution. But unfortunately I didn't get anything.
I don't know exactly what is causing this problem. Basically, I'm trying to build the application in debug. However, I'm being prevented by Flipper, even disabling it.
I build the app in launch mode and it works perfectly. But in debugging it breaks at the end of compilation. Returns a huge error saying that several modules were reset or that the module could not be built. Below is an example of the error:
fatal error: redefinition of module 'fmt'
fatal error: redefinition of module 'folly'
fatal error: could not build module 'Darwin'
fatal error: could not build module 'CoreFoundation'
fatal error: could not build module 'Foundation'
fatal error: could not build module '_Builtin_stddef_max_align_t'

Note: I'm not sure if this bug is related to my react-native version or is a bug of the flipper itself.
Version
0.65.1
Output of npx react-native info
System:
    OS: macOS 12.4
    CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
    Memory: 37.15 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.18.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.2 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce
To reproduce the error, I believe it is enough to insert the same code snippets that I made available, such as those of my Podfile and my AppDelegate.m, and download and configure the same dependencies that are in my application in a react-native project in version 0.65.1.
Snack, code example, screenshot, or link to a repository
Note: Something important to note here is that, even though I have a react-native app version 0.65.1, my Podfile has the Flipper settings for react-native version 0.62.x and not version 0.63.x. I did this, because when I put the settings that Flipper made available for version 0.63.x or more, my Podfile was not even generated.
Below is how mine is Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

def flipper_post_install(installer)
  file_name = Dir.glob("*.xcodeproj")[0]
  app_project = Xcodeproj::Project.open(file_name)
  app_project.native_targets.each do |target|
    target.build_configurations.each do |config|
      cflags = config.build_settings['OTHER_CFLAGS'] || '$(inherited) '
      unless cflags.include? '-DFB_SONARKIT_ENABLED=1'
        puts 'Adding -DFB_SONARKIT_ENABLED=1 in OTHER_CFLAGS...'
        cflags << '-DFB_SONARKIT_ENABLED=1'
      end
      config.build_settings['OTHER_CFLAGS'] = cflags
    end
    app_project.save
  end
  installer.pods_project.save
end

target 'my_app' do
  config = use_native_modules!
  use_modular_headers!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  pod 'RNDateTimePicker', :path => '../node_modules/@react-native-community/datetimepicker'
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'simdjson', path: '../node_modules/@nozbe/simdjson'
  pod 'react-native-camera', path: '../node_modules/react-native-camera', subspecs: ['BarcodeDetectorMLKit']
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
  pod 'react-native-image-editor', :path => '../node_modules/@react-native-community/image-editor'
  pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

  target 'my_appTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  use_flipper!() # should match the version of your Flipper client app

  post_install do |installer|
    react_native_post_install(installer)

    # Apple Silicon builds require a library path tweak for Swift library discovery or "symbol not found" for swift things
    installer.aggregate_targets.each do |aggregate_target|
      aggregate_target.user_project.native_targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(SDKROOT)/usr/lib/swift', '$(inherited)']
        end
      end
      aggregate_target.user_project.save
    end

    # Flipper requires a crude patch to bump up iOS deployment target, or "error: thread-local storage is not supported for the current target"
    # I'm not aware of any other way to fix this one other than bumping iOS deployment target to match react-native (iOS 11 now)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
       end
    end

    # ...but if you bump iOS deployment target, Flipper barfs again "Time.h:52:17: error: typedef redefinition with different types"
    # We need to make one crude patch to RCT-Folly - set `__IPHONE_10_0` to our iOS target + 1
    # https://github.com/facebook/flipper/issues/834 - 84 comments and still going...
    `sed -i -e  $'s/__IPHONE_10_0/__IPHONE_12_0/' Pods/RCT-Folly/folly/portability/Time.h`
  end
end

Follow below my AppDelegate.m:
#import "AppDelegate.h"

#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <React/RCTLinkingManager.h>

#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>

static void InitializeFlipper(UIApplication *application) {
 FlipperClient *client = [FlipperClient sharedClient];
 SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
 [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
 [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
 [client addPlugin:[FlipperKitReactPlugin new]];
 [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
 [client start];
}
#endif

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#ifdef FB_SONARKIT_ENABLED
 InitializeFlipper(application);
#endif

  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"my_app"
                                            initialProperties:nil];

  if (@available(iOS 13.0, *)) {
      rootView.backgroundColor = [UIColor systemBackgroundColor];
  } else {
      rootView.backgroundColor = [UIColor whiteColor];
  }

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  return YES;
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}

- (BOOL)application:(UIApplication *)application
   openURL:(NSURL *)url
   options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  return [RCTLinkingManager application:application openURL:url options:options];
}

@end

Finally, my package.json below, if you want to see:
{
  "name": "my_app",
  "version": "2.3.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint --fix .",
    "pretty": "prettier --write .",
    "release": "yarn android --variant=release",
    "clean:android": "cd android && ./gradlew clean && cd ..",
    "apk": "cd android && ./gradlew assembleRelease && cd ..",
    "aab": "cd android && ./gradlew bundleRelease && cd ..",
    "devtools": "react-devtools"
  },
  "dependencies": {
    "@nartc/react-native-barcode-mask": "^1.2.0",
    "@nozbe/watermelondb": "^0.23.0",
    "@react-native-async-storage/async-storage": "1.17.10",
    "@react-native-community/datetimepicker": "^3.5.2",
    "@react-native-community/image-editor": "^2.3.0",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "^7.1.3",
    "@react-navigation/drawer": "^6.4.1",
    "@react-navigation/native": "^6.0.10",
    "@react-navigation/native-stack": "^6.6.2",
    "@react-navigation/stack": "^6.2.1",
    "axios": "^0.21.4",
    "date-fns": "^2.24.0",
    "metro-minify-terser": "^0.66.2",
    "native-base": "3.3.11",
    "react": "17.0.2",
    "react-native": "0.65.1",
    "react-native-animatable": "^1.3.3",
    "react-native-camera": "^4.2.1",
    "react-native-document-picker": "^6.0.4",
    "react-native-fast-image": "^8.5.11",
    "react-native-fs": "^2.18.0",
    "react-native-geolocation-service": "^5.3.0-beta.2",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-image-crop-picker": "^0.37.2",
    "react-native-map-link": "^2.10.1",
    "react-native-modal": "^13.0.1",
    "react-native-modal-datetime-picker": "^13.0.0",
    "react-native-paper": "^4.9.2",
    "react-native-reanimated": "2.2.1",
    "react-native-responsive-fontsize": "^0.5.1",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "3.4.0",
    "react-native-signature-canvas": "^4.1.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-svg": "^12.3.0",
    "react-native-webview": "^11.13.0",
    "rn-fetch-blob": "^0.12.0",
    "rn-swipe-button": "^1.3.6",
    "styled-components": "^5.3.5",
    "styled-system": "^5.1.5",
    "vanilla-masker": "^1.2.0",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/plugin-proposal-class-properties": "^7.14.5",
    "@babel/plugin-proposal-decorators": "^7.15.4",
    "@babel/plugin-transform-runtime": "^7.15.0",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "@testing-library/jest-native": "^4.0.1",
    "@testing-library/react-native": "^7.2.0",
    "@types/axios": "^0.14.0",
    "@types/jest": "^27.5.1",
    "@types/react": "^17.0.14",
    "@types/react-native": "^0.65.1",
    "@types/react-native-snap-carousel": "^3.8.5",
    "@types/react-test-renderer": "^17.0.1",
    "@types/styled-components": "^5.1.25",
    "@types/styled-components-react-native": "^5.1.3",
    "@types/vanilla-masker": "^1.2.1",
    "@typescript-eslint/eslint-plugin": "^5.32.0",
    "@typescript-eslint/parser": "^5.32.0",
    "@typescript-eslint/typescript-estree": "^4.28.3",
    "babel-jest": "^27.2.1",
    "babel-plugin-module-resolver": "^4.1.0",
    "detox": "^18.20.0",
    "eslint": "8.21.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-react": "^7.30.1",
    "eslint-plugin-simple-import-sort": "^7.0.0",
    "jest": "^27.2.1",
    "jest-circus": "^27.0.6",
    "metro-react-native-babel-preset": "^0.66.2",
    "prettier": "2.7.1",
    "react-native-codegen": "^0.0.11",
    "react-native-flipper": "^0.142.0",
    "react-native-flipper-databases": "^2.3.2",
    "react-native-svg-transformer": "^1.0.0",
    "react-test-renderer": "17.0.2",
    "typescript": "4.7.4"
  }
}

Some similar issues with what's happening to me:

https://github.com/facebook/flipper/issues/834
https://github.com/facebook/react-native/issues/29133
https://github.com/facebook/react-native/issues/32046
https://github.com/facebook/react-native/issues/31733

Debug info:

XCode version: 13.4.1.
Device type: Physical device.
Device version: iOS 15.6.

Hello! Apparently the problem was solved by upgrading the React Native version from 0.65.x to 0.66.4.


extension is trying to process .html files

This is a fresh install of Atom and of the extension. The only config change I've made was to disable Compile Compressed and enable Compile Expanded.
Every time I save an .html file, I see a SASS-Autocompile Compiltion error Error: Invalid CSS after "": expected 1 selector or at-rule, was "<!doctype html>"

I was mistaken about the cause of this problem. I'm closing this issue and creating a new one.


Add support for whitelisting tables which can be written to

I've also written some tests.

It looks like this pull request has lingered for a while. Whitelisting tables is so useful and a must-have when db-backed sessions are used. Do you have any progress or update on this?

I haven't looked at this in a while. I think if we solve the merge conflicts in the PR, I should be able to get it merged though.


Update resource module to standard

Changes to xBitlocker

Added Codecov support.
Updated appveyor.yml to use the one in template.
Added folders for future unit and integration tests.
Added Visual Studio Code formatting settings.
Added .gitignore file.
Added markdown lint rules.
Fixed encoding on README.md.
Added PowerShellVersion = '4.0', and updated copyright information, in the
module manifest.

This change is

Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Codecov Report

:exclamation: No coverage uploaded for pull request base (dev@f718d81). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff          @@
##             dev     #15   +/-   ##
=====================================
  Coverage       ?   3.48%
=====================================
  Files          ?       3
  Lines          ?      86
  Branches       ?       0
=====================================
  Hits           ?       3
  Misses         ?      83
  Partials       ?       0

Continue to review full report at Codecov.

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


OCPBUGS-1361: Fix propagation of check errors to Available condition

Pass overall check error to Available condition of Storage CR. The code was already prepared to do so, just runChecks() must return the actual error (or list of errors).
When at it, fix Collect() to actually return list of all checks instead of empty []checkResult. As consequence, the detector will emit events on all check success or failures.
@openshift/storage

/jira refresh

The verify failure appears to be genuine:
pkg/operator/operator_test.go:332:11: github.com/openshift/api/operator/v1.StorageSpec composite literal uses unkeyed fields
pkg/operator/operator_test.go:337:13: github.com/openshift/api/operator/v1.StorageStatus composite literal uses unkeyed fields

The verify failure appears to be genuine

Fixed

/lgtm
/retest


Option to allow passing value to bool flag

When AllowBoolValues Option is given, allow passing a true/false value to a boolean.
This is useful when a user is calling a program from a shell script and
wishes to programatically set the flag by passing along an existing
variable from bash.
This addresses https://github.com/jessevdk/go-flags/issues/366
Signed-off-by: Alex Couture-Beil<EMAIL_ADDRESS>

any chance of a review @jessevdk ?

please have a look on this @jessevdk


If possible, optimize Rebus dispatcing with a direct call to the one-and-only rebus message handler

Avoiding useless slow polymorphic handler discovery.

There is no one and only rebus message handler. A strongly typed message handler is generated at runtime for every known message type, then injected into the IoC. An exact match will be more efficient than an object match with polymorphism.


python311Packages.accelerate: 0.26.1 -> 0.27.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.accelerate is: A simple way to train and use PyTorch models with multi-GPU, TPU, mixed-precision
meta.homepage for python311Packages.accelerate is: https://huggingface.co/docs/accelerate
meta.changelog for python311Packages.accelerate is: https://github.com/huggingface/accelerate/releases/tag/v0.27.0
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.27.0 with grep in /nix/store/nnywjn825y251vk0cahzs7j00wkg47bl-python3.11-accelerate-0.27.0
found 0.27.0 in filename of file in /nix/store/nnywjn825y251vk0cahzs7j00wkg47bl-python3.11-accelerate-0.27.0

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

13 package rebuild(s)

First fifty rebuilds by attrpath
libretranslate
python311Packages.accelerate
python311Packages.argos-translate-files
python311Packages.argostranslate
python311Packages.diffusers
python311Packages.k-diffusion
python311Packages.libretranslate
python311Packages.manifest-ml
python311Packages.openllm
python311Packages.peft
python311Packages.stanza
python311Packages.translatehtml
tts

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/nnywjn825y251vk0cahzs7j00wkg47bl-python3.11-accelerate-0.27.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.accelerate https://github.com/r-ryantm/nixpkgs/archive/daf29b293ffef0b86fc125a5e2287afc88875217.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/daf29b293ffef0b86fc125a5e2287afc88875217#python311Packages.accelerate

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/nnywjn825y251vk0cahzs7j00wkg47bl-python3.11-accelerate-0.27.0
ls -la /nix/store/nnywjn825y251vk0cahzs7j00wkg47bl-python3.11-accelerate-0.27.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @bcdarwin for testing.

@ofborg build python311Packages.accelerate python311Packages.accelerate.passthru.tests

#294305


Hangs indefinitely at sess.run() and ValueError: attempt to get argmax of an empty sequence

I am unable to start training since it hangs and never returns at this line. Any thoughts?
https://github.com/DetectionTeamUCAS/FPN_Tensorflow/blob/9ea554665a127af72698ed7e3bedd5a3fd5db253/tools/multi_gpu_train.py#L326
I am using tensorflow 1.10.0, Cuda 9.0 and Cudnn 7.0 on Ubuntu 16.04.

I got past this issue when I reset and reinstalled my environment, but now I have the same problem as #53 on a custom dataset, do you think it's a problem with my tfrecord?

1

hello, I have the same problem as #53 on a custom dataset,how did you solve it?

@dsj1840923452 Turns out my tfrecord was corrupt when I tried that. I regenerated it and it worked.

I have been trying out this code for my custom and keep getting the same error. I regenerated the tfrecord file but no use. Any suggestions?
The error is as follows:
**File "../libs/detection_oprations/anchor_target_layer_without_boxweight.py", line 53, in anchor_target_layer
argmax_overlaps = overlaps.argmax(axis=1)
ValueError: attempt to get argmax of an empty sequence**


Function and prep function deployment error

Dear Company Communicator-team,
one of my customers recently tried to deploy the Company Communicator but ran into the same issue multiple times.
In detail, they deployed the template and multiple times ran into the issue that the function as well as the prep function failed to deploy with a "Bad Request" support.
Could you please advise on how to deploy the app template without running into this error?
Thanks in advance!

Hi @apptemplatequestions ,
User can manually fix the issue by following the below steps:
•	Go to the Azure portal--> Resource group which got created-->Go to App Service
•	Go to the "Deployment center" section of the app service that failed to deploy.
•	Click on "Sync" to restart the deployment.

•	Post successful deployment of app service the Status will change as “Success”.
•	If you don’t see the Git URL mapped to app service, then please add External Git repo URL and then click on Sync.
•	Repeat the same steps for the failed Azure functions as well.
Since deployment failed, users may not have received the authorBotId, userBotId  and appDomain values at the end of the deployment. To find them, go to the "Configuration" section of your App Service.
•	authorBotId : It can be found in the "AuthorAppId" field of your configuration.
•	userBotId : It can be found in the "UserAppId" field of your configuration.
•	appDomain : It is the value in the "AzureAd:ApplicationIdURI" field of your configuration without the "api://" e.g. appName.azurefd.net. For the following steps, it will be referred to as %appDomain%.
From here you can continue with the further steps of deployment.


Align PDF icon with the standard (no period)

While documenting engineering components for our Design System, I noticed that the PDF icon used on Drought differs from the standard one used on COVID-19 and in the Design System.
It's the content team's consensus that this icon should be just the letters PDF contained in a box. There should be no period before the letters.

I will have to update design system component. Will try to update it this week

Quick note. We have a related Issue at #221.

@thepegisin please review in staging: https://staging.drought.ca.gov/


Ch  store regist form css

Description
Updated welcome screen form UI.
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

Checklist
Remove any items which are not applicable.

[x] I have performed a self-review of my own code

Link to Trello card
https://trello.com/c/4OQUY2NP/113-store-registration-form-css

I fixed button functionality. But font-size looks normal on my branch.

First off, I wanted to say a great job of getting the form up to a bigger size and looking clean in general. There are a few things I noted while looking through your application, first is that the "Add Information" Button is a wee bit too small and the text is extremely tiny, I need those to be updated. Seconded thing is that there no longer seems to be any sort of onSubmit on that button, so it's a dead form right now.
These are the main things I saw while going through it, but there might be more, later on, I also need you to pull from develop as well, since the rest of the app is quite out of date right now.

There isn't supposed to be an onSubmit on this (Long story short back end issues didn't allow us to POST and then PUT because of CORS issues so the workaround POST was moved to the 'brandview/next screen' to just send the one single object and include that form data from welcome screen.

I fixed button functionality. But font-size looks normal on my branch.

It was small on mine as well, I was thinking it was because you fixed the sizing on another branch though? Maybe after all these are merged we can re-assess and go from there.

Cool, looks good, I remember that work around you guys had to do, the button wasn't linked to the next component but now it is so we're all good!
I just need you to pull from develop and we'll be all good. Button sizing still looks small, but maybe it gets fixed in another current PR that's waiting to get merged so we should be good with that.


enable scrollbar

Hello!I want to hide the listView's scrollbar.I had modify the code,but I don't have the authority to commit.
Would you modify the code,please.
Thanks.

I didn't add a method to hide the scrollbar but now you can do it programmatically. Example:
spinner.getListView().setVerticalScrollBarEnabled(false);


Library to repository

Hello. Could u please push ur lib to maven repostiry to add ur lib in my project?

https://jitpack.io/


EDIT: Refresh colorpicker

Hello! nice component!
Question: Is there a way to update the component (input background, etc) after modifiying the input content by code?
Initialize:
$('#colorpick').colorPicker();

Modify input:
$('#colorpick').val('#FF0000');

The value changes but the background stays.
some ideas?

Hi @ibsenleo ,
there is an option doRender, so setting it to false disables the color and background-color rendering.
In renderCallback you can find out if the colorPicker just opened or closed and start painting your background there:
$('#colorpick').colorPicker({
    doRender: false,
    renderCallback: function($elm, toggled) {
        var colors = this.color.colors;

        if (toggled === false) { // hiding color picker
            $elm.css({
                'background-color': '#' + colors.HEX,
                'color': colors.rgbaMixBGMixCustom.luminance > 0.22 ? '#222' : '#ddd'
            });
        }
    }
});

Good luck

Hello again!
Sorry, i re-read my question and it was not so clear. I was just wondering if there is a function that you use for force to "refresh" the component once you change the text input value.
Anyways, with your code i could adapt mine to make it work. Just wandering...
By the way, I have 3 textbox working with colorpicker. Want to know if every one is independent instance or they use the same instance of the component internally?
Thanks for your time!
And again, nice job!

Hi @ibsenleo again,
I think I now understand... No, there is no listener for 'onchange' but you can definitely realize this in many different ways. The most performant one would be:
var $myColorPicker = $('#colorpick').colorPicker(); // if that's your starting point
...
var value = 'FF0000';
var colorInstance = $myColorPicker.colorPicker.color;
var colors = colorInstance.colors;

colors.HEX = value; // first set the value in the color model
colorInstance.setColor(null, 'HEX'); // then trigger a color conversion for all colors
$('#colorpick'). // $myColorPicker. or just the selection
    val('#' + value).
    css({
        'background-color': '#' + colors.HEX,
        'color' : colors.rgbaMixBGMixCustom.luminance > 0.22 ? '#222' : '#ddd'
    });

To answer your second question:
No, colorPicker tries to use as little memory as possible, thats why it renders and instantiates the first time it is needed (click on input field) and only has one single shared instance. Unless you really need to see more than 1 colorPicker at a time, you actually never need more instances. If you need more color pickers at a time,... you need to tweak the color picker.
Hope this answers your questions.
Cheers
Peter

Hello there! Great!, with this i could modify manually the plugin value. This is what i was looking for. Thanks.


scikit-bio 0.5.0 is not compatible with py2

scikit-bio 0.5.0 was uploaded to PyPI on 2016-06-14

Note: scikit-bio is no longer compatible with Python 2. scikit-bio is compatible with Python 3.4 and later.

Do you want to fix the version to be 0.4.2 then?

Interesting move by scikit-bio; context: https://github.com/biocore/scikit-bio-rfcs/pull/6 https://github.com/biocore/scikit-bio/pull/1315
Thoughts on dropping py2?

Thoughts on dropping py2?

I'd be pro dropping Python though!

@tavinathanson I've been using almost exclusively py3 for the past year and I don't love the unicode mixups and verbosity of py2+py3 development, but it would probably frustrate a lot of potential users to drop py2 (since 80-95% of Python users are still on py2). I don't want to get into the business of policing the flawed Python Version Bump.
We should probably drop skbio and either switch to Bio.Python or write something lighter-weight for dealing with DNA, amino acids, and translations between the two.

I don't want to get into the business of policing the flawed Python Version Bump.

I think this is a solid argument against dropping py2.
I like the idea of writing something lighter-weight instead of relying on huge libraries for minimal functionality.


Make pgcrypto extension installation consistent with the Action service

Motivation and Context
Whilst porting RM to Kubernetes running on Google Kubernetes Engine (GKE), I ran into problems with the database migrations and the installation of the pgcrypto PostgreSQL extension. Both the Action and Sample services use this extension and contain database migrations to install it. The problem is that as each service currently tries to install the extension in its own service schema it isn't accessible from the other service. The correct solution is to install the extension in the public schema, which is accessible everywhere by default.
Additionally the way the Sample service installs the extension isn't consistent with the way the Action service installs it. The Action service contains code to install the extension in various other database scripts.
What has changed

Create the extension in schema.sql (explicitly specifying the public schema) before setting the search path
Create the extension in schema-cloud.sql to be consistent with the Action service
Create the extension in groundzero.sql to be consistent with the Action service
Explicitly specify the public schema in the extension creation statement in sample_add_uuids.sql

How to test?
I created new Action and Sample service Docker images tagged census and was able to test them successfully creating new pods in GKE. I have not tested on Cloud Foundry, nor have I tested what happens if the extension is already installed in the Action or Sample service schemas. To do so would have been far beyond my scope of getting RM working from scratch on Kubernetes.
Links
N/A

We are thinking about closing this PR, because it's quite old and the Travis build was problematic when this was tried in its partner PR. Can we either get it working or close it?

Are you planning on addressing the problem, or does it just go away anyway because there isn't a Sample service for census?

I guess we should bite the bullet, so we have the option to use GC as well as AWS. What do you think @davidmort ?

I'm not sure if this is ready to be approved. Doesnt the 'how to test' section comments mean we have to test this out more thoroughly first ?

The thing that stops me approving this is this bit:

I have not tested on Cloud Foundry
We need a strategy for how we can as team work out how we'll handle this.  I think @johntopleyons says fairly that it's out of his scope, but we should maybe block this with a task to test it on CF for a team whose scope it is within.

Closing this PR but keeping the branch. Have created a new Trello card to look at this again when we have time: https://trello.com/c/qDqT4SQ9/747-sample-service-future-proof-for-kubernates-google-cloud


MWPW-119010 - Fix card race condition

Fix race condition in Card block

Resolves: MWPW-119010
Test URLs:

Before: https://main--milo--adobecom.hlx.page/drafts/methomas/half-height?martech=off
After: https://methomas-card-race-condition--milo--adobecom.hlx.page/drafts/methomas/half-height?martech=off

@meganthecoder is this really a DNM? Or can we merge it now?

@auniverseaway Dennis needs to test before merging

I've verified the cards no longer display out of order. Thanks @meganthecoder!
@auniverseaway  This is ready to be merged. I can't update the labels, so if you could please.

@Dli3 @meganthecoder FWIW: the person who verifies the solution should be the one who adds the label.

@auniverseaway Sure, it sounds like there's an access issue though. Can you make sure @Dli3 has permission to change labels?


API Tracer auto-promotion to SDK Tracer

Currently, if a Tracer instance is requested from OpenTelemetry.tracer_provider before the SDK is installed, a no-op API Tracer is returned. This instance will create no-op API Span instances in #start_span. Those spans will not be recorded, thereby breaking traces (child and parent spans may be recorded if their Tracer instances are "real" SDK tracers).
This is going to be a common situation for first-party instrumentation (e.g. if the redis gem is instrumented directly rather than being patched by the opentelemetry-instrumentation-redis gem).
We should consider "promoting" API Tracer instances to SDK Tracer instances when the SDK is installed (this should be true even if an SDK other than opentelemetry-sdk is installed).
Things to consider:

[x] Survey other language SIGs to see how they handle this situation (proxy tracers?)
[ ] What's the performance impact of always checking the global tracer_provider and forwarding?
[x] Smalltalk's #become: would be lovely here, but this is Ruby 😞
[ ] We should only adapt API Tracer instances returned by the global OpenTelemetry.tracer_provider - perhaps this means we want to introduce special GlobalTracerProvider and ProxyTracer classes in the API? If someone steps off the beaten path and explicitly creates a TracerProvider that returns API Tracer instances, those Tracer instances should NOT be promoted
[ ] Should we move span creation to the TracerProvider? If so, we need to document this behaviour for other SDK implementations to follow
[ ] Whatever we do here, if it adds API, should be clearly documented for both users and other SDK implementations

Survey of other language SIGs
Go has a default TracerProvider implementation that delegates Tracer calls once the "real" TracerProvider is installed. It returns Tracer instances that delegate as well, after the "real" TracerProvider is installed: https://github.com/open-telemetry/opentelemetry-go/blob/main/internal/global/trace.go
Swift doesn't do anything special.
Python has a ProxyTracerProvider and ProxyTracer similar to Go. Unlike Go's implementation, it only permits the global tracer provider to be set once: https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-api/src/opentelemetry/trace/init.py
JS has a ProxyTracerProvider and a similar registration process to plugin the real one: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/src/api/trace.ts
C++ doesn't do anything special.
Java doesn't appear to do anything special. It only allows the TracerProvider to be set once. It tries to initialize the SDK early through reflection, and otherwise recommends that the SDK be configured as early as possible.
Rust does not seem to do anything special.
.NET does not seem to do anything special.

Questions

[ ] Should we permit the global TracerProvider to be set only once or many times?
[ ] Should the default Tracer and TracerProvider instances be upgraded once or repeatedly (i.e. should they delegate to an instance variable or to whatever global instance is currently installed)?

Implementations MUST NOT require users to repeatedly obtain a Tracer again with the same name+version to pick up configuration changes. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#get-a-tracer

This language seems to imply that the Tracer object instance must inherit the traits of any configuration changes, which I assert would mean the Tracer would likely need to have it's underlying implementation changed in a thread-safe way.
I have not read the spec very closely but what is unclear to me here is how this Tracer should behave if it is "switched" in mid-trace. E.g. if a trace is started by a no-op tracer and then the tracer is promoted, should the child span be generated by the newer configuration or the previous config?

Notwithstanding any global TracerProvider, some applications may want to or have to use multiple TracerProvider instances, e.g. to have different configuration (like SpanProcessors) for each (and consequently for the Tracers obtained from them), or because its easier with dependency injection frameworks. Thus, implementations of TracerProvider SHOULD allow creating an arbitrary number of TracerProvider instances.

Hmm... so does that mean we should only be updating a Tracer and not a TracerProvider? And does that mean a Tracer can be upgraded in any tracer provider at any point?

I have not read the spec very closely but what is unclear to me here is how this Tracer should behave if it is "switched" in mid-trace. E.g. if a trace is started by a no-op tracer and then the tracer is promoted, should the child span be generated by the newer configuration or the previous config?

The tracer really only participates in span creation. If a tracer is "promoted" mid-trace, then the trace will be broken (valid child spans may be created and recorded with a no-op parent span). This is an acceptable risk IMO because the alternatives are: create valid spans all the time, even if they're not going to be exported; or don't promote tracers and potentially always have broken traces.
In practice, the configuration described in this part of the spec  is picked up from the tracer provider (e.g. changing the sampler), and the spec suggests that this may be achieved by keeping a reference from the tracer to the tracer provider that created it.

Notwithstanding any global TracerProvider, some applications may want to or have to use multiple TracerProvider instances, e.g. to have different configuration (like SpanProcessors) for each (and consequently for the Tracers obtained from them), or because its easier with dependency injection frameworks. Thus, implementations of TracerProvider SHOULD allow creating an arbitrary number of TracerProvider instances.

Hmm... so does that mean we should only be updating a Tracer and not a TracerProvider? And does that mean a Tracer can be upgraded in any tracer provider at any point?

This is the "escape hatch" that we talked about on the call. If you create several TracerProviders that are not installed as the global tracer provider, then you're off the beaten path, you presumably know what you're doing, and we're not going to mess with your tracer providers under the covers.
The only case we care about here is the "golden path" of acquiring tracers from the global tracer provider, where some of those tracers may be acquired before a SDK (not necessarily the SDK) has installed itself.

This is the "escape hatch" that we talked about on the call. If you create several TracerProviders that are not installed as the global tracer provider, then you're off the beaten path, you presumably know what you're doing, and we're not going to mess with your tracer providers under the covers.
The only case we care about here is the "golden path" of acquiring tracers from the global tracer provider, where some of those tracers may be acquired before a SDK (not necessarily the SDK) has installed itself.

Understood, but I think this constraint still applies though in those scenarios as well:

Implementations MUST NOT require users to repeatedly obtain a Tracer again with the same name+version to pick up configuration changes. This can be achieved either by allowing to work with an outdated configuration or by ensuring that new configuration applies also to previously returned Tracers.

It does. The API tracer provider has no configuration state, whereas the SDK tracer provider does have config state. The SDK tracers keep a reference to the tracer provider that created them. If you look at #708 the proxy tracer will delegate to a corresponding SDK tracer after the SDK tracer provider is plugged in. This is done behind the scenes and does not require the user to acquire a tracer again with the same name+version.


Fastnlight: Watch Walmart[\W_]+gift[\W_]+card

Fastnlight requests the watch of the watch_keyword Walmart[\W_]*+gift[\W_]*+card. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Walmart[\W_]*+gift[\W_]*+card has been seen in 3 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ