[BUG] Wonky Behavior With VPN

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v2.8.1
What problem did you encounter?
When using a VPN (Specifically Mullvad VPN on us-chi-wg-002 with the issue across several servers), some things break. Initially Roblox refused to launch at all, leading me to think it was Byfron blocking it. But, now it seems to launch properly (albeit with the basic lag expected with a VPN) with the newer Bloxstrap versions. However, Bloxstrap updated just today, and, now every time I launch Roblox whilst connected to any VPN server, Discord Rich Presence and server info do not work properly. I have attached a screenshot and log of this.
EDIT: Now it appears to say "Bloxstrap is unable to connect to Roblox" but connects and then shows the two error popups in the screenshot below.

Bloxstrap Log
2024-11-03T22:54:10Z [App::OnStartup] Starting Bloxstrap v2.8.1
2024-11-03T22:54:10Z [App::OnStartup] Compiled Tuesday, 29 October 2024 at 6:35:23 PM from commit 2be2f4d0d275e60eabf2f63ecbbe4e38b2aa0773 (tag/v2.8.1)
2024-11-03T22:54:10Z [App::OnStartup] Loaded from %UserProfile%\AppData\Local\Bloxstrap\Bloxstrap.exe
2024-11-03T22:54:10Z [App::OnStartup] Temp path is %UserProfile%\AppData\Local\Temp\Bloxstrap
2024-11-03T22:54:10Z [App::OnStartup] WindowsStartMenu path is %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
2024-11-03T22:54:10Z [LaunchSettings] Identifier 'watcher' is active with data
2024-11-03T22:54:10Z [Logger::Initialize] Initializing at %UserProfile%\AppData\Local\Bloxstrap\Logs\Bloxstrap_20241103T225410Z.log
2024-11-03T22:54:10Z [Logger::Initialize] Finished initializing!
2024-11-03T22:54:10Z [JsonManager<Settings>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Settings.json...
2024-11-03T22:54:10Z [JsonManager<Settings>::Load] Loaded successfully!
2024-11-03T22:54:10Z [JsonManager<State>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\State.json...
2024-11-03T22:54:10Z [JsonManager<State>::Load] Loaded successfully!
2024-11-03T22:54:10Z [FastFlagManager::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Modifications\ClientSettings\ClientAppSettings.json...
2024-11-03T22:54:10Z [FastFlagManager::Load] Loaded successfully!
2024-11-03T22:54:10Z [NotifyIconWrapper::NotifyIconWrapper] Initializing notification area icon
2024-11-03T22:54:11Z [ActivityWatcher::Start] Opened %UserProfile%\AppData\Local\Roblox\logs\0.649.0.6490878_20241103T225410Z_Player_11DA6_last.log
2024-11-03T22:54:11Z [ActivityWatcher::ReadLogEntry] Read 50 log entries
2024-11-03T22:54:13Z [ActivityWatcher::ReadLogEntry] Joining Game<PHONE_NUMBER>9/7a243426-60f0-4cb3-91ac-fdde1db4629b)
2024-11-03T22:54:13Z [HttpClientLoggingHandler::ProcessRequest] GET https://ipinfo.io/<IP_ADDRESS>/json
2024-11-03T22:54:13Z [ActivityWatcher::ReadLogEntry] Server is UDMUX protected<PHONE_NUMBER>9/7a243426-60f0-4cb3-91ac-fdde1db4629b)
2024-11-03T22:54:13Z [ActivityWatcher::ReadLogEntry] Read 100 log entries
2024-11-03T22:54:13Z [ActivityWatcher::ReadLogEntry] Joined Game<PHONE_NUMBER>9/7a243426-60f0-4cb3-91ac-fdde1db4629b)
2024-11-03T22:54:13Z [DiscordRichPresence::SetCurrentGame] Setting presence for Place ID<PHONE_NUMBER>9
2024-11-03T22:54:13Z [HttpClientLoggingHandler::ProcessRequest] GET https://games.roblox.com/v1/games?universeIds=6188934843
2024-11-03T22:54:13Z [DiscordRichPresence::SetCurrentGame] (0x80004005) System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions. (games.roblox.com:443)
 ---> System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Bloxstrap.Utility.Http.GetJson[T](String url)
   at Bloxstrap.Models.Entities.UniverseDetails.FetchBulk(String ids)
   at Bloxstrap.Integrations.DiscordRichPresence.SetCurrentGame()
2024-11-03T22:54:13Z [Frontend::ShowMessageBox] Your current game will not show on your Discord presence because an error occurred when loading the game information.

An attempt was made to access a socket in a way forbidden by its access permissions. (games.roblox.com:443)
2024-11-03T22:54:13Z [ActivityData::QueryServerLocation] Failed to get server location for <IP_ADDRESS>
2024-11-03T22:54:13Z [ActivityData::QueryServerLocation] (0x80004005) System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions. (ipinfo.io:443)
 ---> System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Bloxstrap.Utility.Http.GetJson[T](String url)
   at Bloxstrap.Models.Entities.ActivityData.QueryServerLocation()
2024-11-03T22:54:15Z [ActivityWatcher::ReadLogEntry] Read 150 log entries
2024-11-03T22:54:15Z [ActivityWatcher::ReadLogEntry] Read 200 log entries
2024-11-03T22:54:15Z [ActivityWatcher::ReadLogEntry] Read 250 log entries
2024-11-03T22:54:15Z [ActivityWatcher::ReadLogEntry] Read 300 log entries
2024-11-03T22:58:50Z [ActivityWatcher::ReadLogEntry] Read 350 log entries

what did you expect?


Old link to the bitcoin-dev mailinglist without proper redirection

https://bitcoincore.org/en/list/announcements/join/
The link to the bitcoin-dev mailinglist on the website above doesn't work (returns ERROR: No redirect found for https:/lists.linuxfoundation.org/mailman/listinfo/bitcoin-core-dev)

If it is very important that the bitcoin-core-dev old urls get redirected to the announcements that were cross-posted to the bitcoindev mailing lits, then someone could provide me with a mapping of the old-style urls to the new style urls. I will then update my redirection service, which in turn should cause old lists.linuxfoundation.org links to work again.


Failed to create save game error and how I'm trying to "fix" it.

I posted this to reddit as well but I think this is a better place to maybe get help.  My goal here is just simply recover my last save file, which does still load fine and works without issue but i cannot save due to the error/bug, and then convert to steam friendly save file so I can stop using the Xbox Game Pass version and use the steam version instead.
REDDIT POST 1
Been fighting this after getting to lvl 17 last night. When i booted game today getting this error. Tried everything listed here. I decided the best course of action was the converter from xbox game pass to steam and I would just buy the game there HOWEVER when I try to run the python script i get an error. The strange part is if I revert this file
C:\Users*myusername*\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\00090000039FB06A_0000000000000000000000007BF72399\containers.index
back to the default that I saved a backup of before playing (thanks bethesda, this is a trait your games created in me) it will run just the script fine not when using the file my game has created over the course of playing it. I cannot code nor do I have the patience to teach myself it to figure this issue out. Anyone got any ideas?
Here is the error
C:\Users*myusername*\Desktop\XGP-save-extractor-release-2023-09-06>python main.py
Xbox Game Pass for PC savefile extractor
========================================
Installed supported games:

Starfield

Failed to extract saves:
Traceback (most recent call last):
File "C:\Users*myusername*\Desktop\XGP-save-extractor-release-2023-09-06\main.py", line 255, in main
read_result = read_containers(supported_xgp_apps[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users*myusername*\Desktop\XGP-save-extractor-release-2023-09-06\main.py", line 102, in read_containers
with open(os.path.join(container_path, f"container.{container_num}"), "rb") as cf:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\myusername\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\00090000039FB06A_0000000000000000000000007BF72399\6A105BD4D7F54CFB819A80B6C046C7A5\container.2'
PLEASE NOTE - myusername is not my actual username just a placeholder. * are invalid for file names.
REDDIT POST REPLY 1
Tried recreating the folders it was looking for in the script with a container.2 file in each but we get to the end and now i am getting this error I cannot seem to solve.
C:\Users*myusername*\Desktop\XGP-save-extractor-release-2023-09-06>python main.py
Xbox Game Pass for PC savefile extractor
========================================
Installed supported games:

Starfield

Failed to extract saves:
Traceback (most recent call last):
File "C:\Users*myusername*\Desktop\XGP-save-extractor-release-2023-09-06\main.py", line 263, in main
save_paths = get_save_paths(store_pkg_name, containers, temp_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users*myusername*\Desktop\XGP-save-extractor-release-2023-09-06\main.py", line 220, in get_save_paths
with open(part_path, "rb") as part_f:
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\myusername\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\00090000039FB06A_0000000000000000000000007BF72399\6A105BD4D7F54CFB819A80B6C046C7A5\600D23C8F23D4EBBA3D9DC95152DAE2C'
REDDIT POST REPLY 2
Created a copy of container.2 and renamed it to 600D23C8F23D4EBBA3D9DC95152DAE2C and then deleted the file extension. This actually worked to move to next file and got me past that error.  I did the same to the next files it listed however ended up in a loop.  Stuck back at as of right now.
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\myusername\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\00090000039FB06A_0000000000000000000000007BF72399\6A105BD4D7F54CFB819A80B6C046C7A5\600D23C8F23D4EBBA3D9DC95152DAE2C

For Reference here is the reddit post.
https://www.reddit.com/r/Starfield/comments/167b50s/failed_to_create_save_game/

You shouldn’t be changing and file names.
Ensure that your gamepass save is on your C drive and that you have Python version 3.1 or greater installed.
Download the xgp-save-extractor.exe from https://github.com/Z1ni/XGP-save-extractor/releases

Whatever directory your xgp-save-extractor.exe is in will get a starfield zip file with all your saves in steam format.
I did what you posted prior to making my previous post.  If it wasnt
obvious I was simply trying to move past the errors in hopes the last save
file would convert and I could just move on with my life.   As you can tell
that was not  the case.    Right??
On Sat, Sep 9, 2023 at 11:28 PM Fitzpaa @.***> wrote:

You shouldn’t be changing and file names.
Ensure that your gamepass save is on your C drive and that you have Python
version 3.1 or greater installed.
Download the xgp-save-extractor.exe from
https://github.com/Z1ni/XGP-save-extractor/releases
—
Reply to this email directly, view it on GitHub
https://github.com/Z1ni/XGP-save-extractor/issues/18#issuecomment-1712706480,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCPAHL7TJQM5RO2DI753Z33XZU6VDANCNFSM6AAAAAA4R4NNKI
.
You are receiving this because you authored the thread.

Message ID: @.***>

I tried it the way you mentioned again and end up with this error.
C:\Users*myusername*\Downloads>xgp-save-extractor.exe
Xbox Game Pass for PC savefile extractor
Installed supported games:

Starfield
Failed to extract saves:
Traceback (most recent call last):
File "main.py", line 255, in main
File "main.py", line 102, in read_containers
FileNotFoundError: [Errno 2] No such file or directory:
'C:\Users\*myusername\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\00090000039FB06A_0000000000000000000000007BF72399\6A105BD4D7F54CFB819A80B6C046C7A5\container.2'

On Sat, Sep 9, 2023 at 11:33 PM Keaton K @.***> wrote:

My save files are located
in C:\Users*myusername*\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\00090000039FB06A_0000000000000000000000007BF72399
as there is no save folder in C:\Users*myusername*\Documents\My
Games\Starfield yet I can still, to this second, load my most recent save.
I did what you posted prior to making my previous post.  If it wasnt
obvious I was simply trying to move past the errors in hopes the last save
file would convert and I could just move on with my life.   As you can tell
that was not  the case.    Right??
On Sat, Sep 9, 2023 at 11:28 PM Fitzpaa @.***> wrote:

You shouldn’t be changing and file names.
Ensure that your gamepass save is on your C drive and that you have
Python version 3.1 or greater installed.
Download the xgp-save-extractor.exe from
https://github.com/Z1ni/XGP-save-extractor/releases
—
Reply to this email directly, view it on GitHub
https://github.com/Z1ni/XGP-save-extractor/issues/18#issuecomment-1712706480,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCPAHL7TJQM5RO2DI753Z33XZU6VDANCNFSM6AAAAAA4R4NNKI
.
You are receiving this because you authored the thread.

Message ID: @.***>

I have a feeling its trying to pull files that somehow got corrupted.  I only want to do the most recent save.

I'm getting the same error.  I am also emailing my zipped folder.

I get the same error as well. I wonder if its either a corrupted save or a deleted save that hasn't synced properly or something. Checked the folder it mentions and it indeed empty.
I have 708 folders in the C:\Users\<USERNAME>\AppData\Local\Packages\BethesdaSoftworks.ProjectGold_3275kfvn8vcwc\SystemAppData\wgs\000900000643B5A0_0000000000000000000000007BF72399 directory, and checking a few I notice they are empty, but no idea just how many (seems like there are more empty ones than with files inside).
All I care about is getting the most recent save of mine exported/backed up. Is there any way to just target specifically 1 save (maybe just get the most recent) or skip any that are empty?

The latest update fixed it for me.  This started happening after I deleted a lot of my old saves from the in-game UI.

I'm pretty sure that these issues are caused by in progress / interrupted Xbox cloud save syncing or too many saves.
The newest release outputs warning messages if files are missing, but you can still continue. In some cases the missing files are duplicated in the save data, so the extracted saves are complete, even though the script warns about missing files.
If you're still having this issue, please check out the newest release and reopen this issue if the error persists.


Disable failure accrual for zipkin client

fixes #510

disable failure accrual
disable fail fast
reduce timeout to 100ms

These changes allow linkerd to continue to saturate the zipkin client's connections, even when total sampled RPS is much higher than what can be sent.

:star: my comments are non-blocking since they're documentation-only; it might be good to add some information to this PR or the code indicating how these changes impacted performance. (I have some decent guesses given our discussions of the last few days, but not hard numbers, obviously).

:star: thanks!

⭐ 👍 thanks!

lgtm


[UI] Packages without exactly 3 semver digits fail

Describe the bug
The UI breaks when trying to display any package who's version does not follow the form "a.b.c".  For example a package with version "<IP_ADDRESS>".
The error comes from a call to semver.gt to sort package versions.  The semver package is very strict about version numbers, so it breaks in this case.  There is a semver.coerce function that does its best effort to turn a version string into a "valid" version, and I would recommend using that to at least keep the UI working.
To Reproduce
Steps to reproduce the behavior:

Using the latest version of BaGet
In the UI, navigate to a package that uses four-digit semantic versions (NUnit is an example)
Notice the following error in the developer console:

Failed to load package. TypeError: Invalid Version: <IP_ADDRESS>48
    at new f (semver.js:256)
    at g (semver.js:596)
    at v (semver.js:638)
    at t.value (DisplayPackage.tsx:325)
    at DisplayPackage.tsx:123

The page fails to load.

Expected behavior
No error.

Thanks for the report! This should be fixed by https://github.com/loic-sharma/BaGet/pull/436

I just got around to testing this on our servers.  Thanks!


Extra Categories for POI

@emastrosimone could you r? please

@emastrosimone could you r?
thanks!


Issue #10 PR

Pull Request
Proposed Changes

Modifies the Navbar for Elevate Lab website

Elevate Lab logo added
Relevant Nav Items added
Bulma JS scripts added for toggle effects (Bug Fixed)
Removed unnecessary default hover effects by Bulma and added custom hover effects

List the dependencies used.
Also mention the issue number [Fixes #10].

Types of changes made

[x] Fixed Bug
[x] Added new Features
[ ] Edited Documentations
[x] Enhanced the working of code
[ ] Additional Changes
Mention any Additional Change here

Additional Info
Provide additional information(if any) you want to convey.

The hrefs currently do not contain any links and should be later updated to contain the same.

Viability of Code
Describe the tests that you ran to verify the changes made. Mention the tests for easy reproducibility.

Test 1
Test 2

Mention(if any) specific Test Configurations used:

Filmware version:
Hardware:
Toolchain:
SDK:

Screenshots or GIFs (if any)
Attach screenshots of the changes made for easy reference.

Original
Updated

Checklist:

[x] My code follows the Mentioned Guidelines for the project
[x] I have self-reviewed the changes made
[x] I have made the changes easy to understand by adding comments
[x] My changes does not generate new warnings/errors
[x] I have attached relevant screenshots to display the changes made
[ ] I have made the required changes to the documentations

@all-contributors add @2802harsh for code


Change "Strategy" to "Provider"

#19
Note this builds on the changes in PR #20 and so would obviously actually go into the dev branch.
@muratg @davidfowl

:shipit:

:+1:

Merged in 4ba159afe791acda823b9564e54e628d388012b2


Plastiks

To make a submission to the Dapps Page, please complete the task lists
below; otherwise remove them.

Your Dapp:

[x] connects to Valora via WalletConnect V1 or DAppKit;
[x] must be mobile-first or mobile responsive;
[x] is in one of the existing categories; and
[x] includes a link to user documentation.

Thanks for the submission @garciapd :raised_hands:   We'll take a look in the next few days!

Thanks for submitting and sharing on Discord.  Beautiful user-facing docs, but did not see a connection about how to connect using Valora. Would love to see such a section added.

Thanks! you mean in our Gitbook?
https://plastiks.gitbook.io/plastiks-docs/rFkbTd5kDEGr1avfk2Bc/marketplace/faq

Yes, exactly.

@lisaw-valora we have added this
https://plastiks.gitbook.io/plastiks-docs/rFkbTd5kDEGr1avfk2Bc/marketplace/guides/getting-started/connect-to-marketplace-using-valora-app

The new docs look good. Thank you for adding them!

Thanks! Could you also make sure your icon is displayed when connecting in Valora?
Right now it doesn't show anything.

There is an option to set an image for the WalletConnect request. Valora supports png, jpg and ico.
Alternatively, if the image is not set Valora uses ${your_url}/favicon.ico.
But right now it's empty: https://app.plastiks.io/favicon.ico

@jeanregisser fixed!

Amazing! 👍


HTML5 setFullscreen/Icon/Title

Works, but I can not understand how to make onFullscreen.dispatch() for openfl event.
Waiting for review.
Test:
https://gist.github.com/RblSb/dfc314f9f107dd02bb3df2b840b0e4eb

Thank you!
I have added an initial implementation of fullscreen, setIcon and updating title, based on your code. Title is the same, and setIcon should be simplified a bit (an icon of a greater size than 16x16 seems to work alright for Firefox and Opera, but Edge doesn't appear to be working right. Was this necessary on another browser?)
I believe I have onFullscreen dispatching as expected as well :smile:
Let me know if we need anything more to get it working as well your original code did in your tests :smile:

I am glad that I helped with these sketches of the code =)


Cannot get /...

Regardless of what page I attempt to go to, if I try to go there directly and not through the home page, it gives me, for example:
Cannot GET /take-action
How can I navigate to these pages directly?
My router file looks like
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'hello',
      component: require('components/views/Hello')
    },
    {
      path: '/find-help',
      name: 'find-help',
      component: require('components/views/Find')
    },
    {
      path: '/take-action',
      name: 'take-action',
      component: require('components/views/Action')
    },
    {
      path: '/about',
      name: 'About',
      component: require('components/views/About')
    },
    {
      path: '*',
      name: '404',
      component: require('components/views/Hello')
    }
  ]
})

Duh there is a section about it... closing.

For those wondering, this is the section: https://router.vuejs.org/en/essentials/history-mode.html

https://router.vuejs.org/en/essentials/history-mode.html does not solve the problem

@kofimokome can you please post your router file?

`import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from "./components/index.vue"
import OfflineDemo from "./components/demo/offline.vue"
import OnlineDemo from "./components/demo/online.vue"
import Login from "./components/authentication/login.vue"
import Register from "./components/authentication/register.vue"
import Profile from "./components/user/profile.vue"
import Game from "./components/user/game.vue"
import Welcome from "./components/demo/notice.vue"
Vue.use(VueRouter)
const router = new VueRouter({
routes: [{
path: "/",
component: Index,
meta: {
title: "Kofi: Tic Tac Toe",
forVisitors: true
}
},
{
  path: "/demo",
  component: Welcome,
  meta: {
    title: "Welcome",
    forVisitors: true
  }
},
{
  path: "/register",
  component: Register,
  meta: {
    title: "Register",
    forVisitors: true
  }
},
{
  path: "/login",
  component: Login,
  meta: {
    title: 'Login',
    forVisitors: true
  }
},
{
  path: "/demo/offline",
  component: OfflineDemo,
  meta: {
    title: "Offline Demo",
    forVisitors:true
  }
},
{
  path: "/demo/online",
  component: OnlineDemo,
  meta: {
    title: "Online Demo",
    forVisitors:true
  }
},
{
  path: "/dashboard",
  component: Profile,
  meta: {
    title: "Dashboard",
    forAuth:true
  }
},
{
  path: "/game",
  component: Game,
  meta: {
    title: "Game",
    forAuth:true
  }
}

],
//linkActiveClass: 'active',
mode: 'history'
})
export default router
`

All the code can't fit into the block. Thanks

I can't help you too much @kofimokome as I am not really active with vue anymore... but check out my project, it is working:
https://github.com/openrefuge/openrefuge/blob/master/src/router/index.js
https://github.com/openrefuge/openrefuge/blob/master/src/main.js
Good luck and let me/us know if you've gotten it fixed 👍

Thanks @awitherow . I noticed that my dist  folder has just one file (build.js). I do not know if it is OK or normal because I took a look at yours and I saw other files inside?

I've seen the solution. I was using webpack simple. So, I switched to webpack and everything is working fine  https://kofitictactoe.herokuapp.com
Thanks for your help @awitherow

Nice @kofimokome glad you figured it out! Sorry I couldn't be of more help m8. Good luck with your project! Would be cool to see it turn into a nice progressive web app 👍
https://github.com/vuejs-templates/pwa

If anyone stumbles upon this problem, you can just add:
historyApiFallback: true
to your webpack.config file
read more:
https://webpack.js.org/configuration/dev-server/#devserver-historyapifallback

I activated history mode and followed these steps: https://router.vuejs.org/en/essentials/history-mode.html and configured nginx as indicated, now everything works fine except for one route (api-feed), where I get the same error message (Cannot GET /api-feed/whatever) upon refreshing the page or accessing it directly from the adress bar.
Here is my router file:
import Vue from 'vue'
import Router from 'vue-router'
import NProgress from 'nprogress'
import Home from '@/components/Home'
import Categories from '@/components/Categories'
import Products from '@/components/Products'
import Product from '@/components/Product'
import About from '@/components/About'
import Page from '@/components/Page'
import APIFeed from '@/components/APIFeed'

Vue.use(Router)

const router = new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home
        },
        {
            path: '/categories',
            name: 'categories',
            component: Categories
        },
        {
            path: '/categorie/:key_name',
            name: 'products',
            component: Products,
            props: true
        },
        {
            path: '/produit/:id-:key_name',
            name: 'product',
            component: Product,
            props: true
        },
        {
            path: '/a-propos',
            name: 'about',
            component: About
        },
        {
            path: '/api-feed/:feed',
            name: 'api-feed',
            component: APIFeed,
            props: true
        }
    ]
})

router.beforeResolve((to, from, next) => {
    // If this isn't an initial page load.
    if (to.name) {
        // Start the route progress bar.
        NProgress.start()
    }
    next()
})

router.afterEach((to, from) => {
    // Complete the animation of the route progress bar.
    NProgress.done()
})

export default router

How can I add historyApiFallback: true ?
I cannot find webpack.js file in my source code.

Remember we have the forum and the Discord chat to ask quick questions!


http://www.windowsazure.com/en-us/downloads/

I found this page a bit confusing.

The default is Mobile services.  What I expect are two dedicated pages for "Languages" and "Services", on which there are list of languages and services and some brief descriptions.  The default will be either Languages or Services.

Languages and Services are the two categories. They are in bold, but still not clear enough for me.  You might consider using indentation or bigger font size to  make them standing out.

Under Resources for each language and service, there is a "Get started tutorial".  Because the blue banner "Downloads, Get the command-line tools and SDKs you need. Fast." take the most dominant position. I got the impression that tutorial is for the command-line tools and SDK instead of for specific language or service.  For example,  instead of saying "Get started tutorial" under Mobile, say "Get started with Mobile Services".

@mumian Thank you for the suggestion.  Since you are a MSFT employee, we ask that you use the GitHub capability to contribute to the article by submitting a change and a pull request through the process.  If you need guidance on how this works, please see the contributors guide here: https://github.com/Azure/azure-content-pr/blob/master/contributor-guide/contributor-guide-index.md


Switch to blang/semver/v4

This aligns with upstream K8s changes and allows the old package to be dropped from vendor.

/remove-lifecycle stale

@deads2k, @mfojtik, any chance for a review?

/remove-lifecycle stale

/approve


Give access to source address with UDP socket

Description
There was some TODO left in the code to give access to the source address with UDP socket. Since I needed it for a personal use case, I added the support for it.
Notes for reviewers
Since I don't have a MacOS available currently, I couldn't run the tests. However, cross-compilation to x86_64-macos seems to work fine.

Looks good thanks!


Add support for OkHttp log interceptor output

-----------------
request
-----------------
request headers
-----------------
request body
-----------------
response headers
-----------------
response body

Make this more readable and compact.

mark.
If you have updated this feature, please reply to this notification.


Add LensFlarePass (ogre2 engine)

🎉 New feature
Dependency
Depends on gazebosim/gz-common#474
Ticket
Affects #730
But it doesn't close it because the ticket says ogre backend as well.
Summary
This PR does 3 things:

Adds Ogre2LensFlare
Adds tests to test this new pass to INTEGRATION_render_pass
Works for both normal Camera and WideAngleCamera.
Significantly optimizes Ogre2RayQuery

The original CPU implementation is ridiculously slow
PR #378 used a GPU implementation to address these issues. However the GPU version can't be easily used (without bigger refactors to how gz-rendering operates) because we need to render (for ray queries) while we are about to render (for lens flares). We cannot use the GPU version.
This PR adds an option to force CPU method.
LensFlare heavily relies on a lot of raycasts for occlusion (depends on the value passed to SetOcclusionSteps).

The speed up of Ogre2RayQuery comes from:

Eliminate unnecessary calls
Eliminate pointer aliasing
Removed unnecessary bound checks
Work in local space instead of world space when possible (i.e. as long as the world transform matrix is affine, which is the case most of the time) to avoid expensive 4x4 matrix multiplications vs 3D vectors
Use multithreading to evenly spread the calculations over all cores

This results in a massive performance increase.
Results of iterating 1000 rays over Ogre2_demo scene intentionally hitting the broadphase stage of duck mesh but missing every single triangle (to avoid an early out) on a Ryzen 5950X 12C/24T 32GB:

Test
Time (Debug, Lower is better)
Time (Release, Lower is better)

Original
1282ms
228ms

Optimized
421ms
100ms

Optimized + Threaded (24 threads)
83ms
33ms

Therefore this implementation achieves a 15x performance improvement on Debug builds and 6.91x improvement on Release builds.
YMMV not only because of the number of threads your system may have, but also because the threaded version is more susceptible to power state changes (Original & Optimize don't change their readings much when switching the governor from 'On Demand' to 'Performance' however Optimized + Threaded can take 1.6x longer as the CPU is not able ramp the frequency in time for all CPUs)
Test it
You can run INTEGRATION_render_pass or add this code to any sample (e.g. ogre2_demo):
RenderPassPtr pass = rpSystem->Create<LensFlarePass>();
LensFlarePassPtr lensFlarePass =
  std::dynamic_pointer_cast<LensFlarePass>(pass);
lensFlarePass->Init(scene);
lensFlarePass->SetEnabled(true);
lensFlarePass->SetLight(myLight);
camera->AddRenderPass(lensFlarePass);

https://user-images.githubusercontent.com/3395130/198903805-0089154e-ecfe-4e86-b3c2-c74fadd2bd80.mp4
Checklist

[x] Signed all commits for DCO
[x] Added tests
[ ] Added example and/or tutorial
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

I just pushed more commits. WideAngleCamera support was added.
It took me longer than I thought because my previous PR (PR #733) added Ogre2WideAngleCamera but left out the ability to add RenderPasses to it.
I had to slightly refactor how Ogre2WideAngleCamera works in order to support all kinds of RenderPasses (like LensFlare) in it.
Fortunately I was VERY thorough in the new integration tests which let me caught various bugs with Render passes in Ogre2WideAngleCamera.
It is now complete. Only ogre engine support is missing.

needs an common5 release

@osrf-jenkins run tests please

It seems the test failed only because I was too strict with some thresholds
I'll update the thresholds and try again

OK I pushed various fixes for the problems CI found.
The only problem I see is that Metal version is complaining that VisualAt test is failing on macOS. However:

GPU RayQuery was recently enabled for macOS (is it enabled in the CI version? AFAIK it should be)

That may be the reason of the failure

If CPU RayQuery is (for some odd reason?) then it could be this PR's fault.

It would be great to know if this failure happens with on CI with regular main to discard whether this is a fault from this PR.
Perhaps I should submit a PR with an innocuous change to see if macOS CI fails as well?

OK macOS test has finished again, and this time VisualAt succeeded. Which is even more anxiety-inducing.
Now macOS CI failed again; but this time it's something I recognize:
33: /Users/jenkins/workspace/ignition_rendering-ci-pr_any-homebrew-amd64/ign-rendering/test/integration/render_pass.cc:830: Failure
33: Expected: (brightness[0][0]) > (brightness[0][1]), actual: 1169621 vs 1392161
33: /Users/jenkins/workspace/ignition_rendering-ci-pr_any-homebrew-amd64/ign-rendering/test/integration/render_pass.cc:831: Failure
33: Expected: (brightness[0][0]) > (brightness[1][0]), actual: 1169621 vs 1183689
33: /Users/jenkins/workspace/ignition_rendering-ci-pr_any-homebrew-amd64/ign-rendering/test/integration/render_pass.cc:832: Failure
33: Expected: (brightness[0][0]) > (brightness[1][1]), actual: 1169621 vs 1169631
33: /Users/jenkins/workspace/ignition_rendering-ci-pr_any-homebrew-amd64/ign-rendering/test/integration/render_pass.cc:837: Failure
33: Expected: (brightness[1][1]) > (brightness[0][1]), actual: 1169631 vs 1392161
33: /Users/jenkins/workspace/ignition_rendering-ci-pr_any-homebrew-amd64/ign-rendering/test/integration/render_pass.cc:838: Failure
33: Expected: (brightness[1][1]) > (brightness[1][0]), actual: 1169631 vs 1183689

This particular test checks handedness is correct (i.e. the texture isn't upside down, mirrored, rotated). The sun should be coming from top left corner [0][0]; which means it should be the brightest part.
But only the LensFlareWideAnglePass test fails; which means the actual problem is likely in the previous PR #733 and went undetected.
I'll add another test for WideAngleCamera to detect handedness.

I tried building and running as per the instructions, I am getting this error while building. Am I doing something wrong or missing anything ?

you need the changes from https://github.com/gazebosim/gz-common/pull/474

OK macOS test has finished again, and this time VisualAt succeeded. Which is even more anxiety-inducing.

ahh weird. I thought it's my fault. I just went back to check CI for #758 and noticed that VisualAt failed there after enabling GPU ray queries. Not sure why it's no longer failing - could be flaky

Btw there is no codecov comment. I thought it would appear once the CIs successfully ran the tests... but I guess it's not?

Btw there is no codecov comment. I thought it would appear once the CIs successfully ran the tests... but I guess it's not?

I think it codecov may not work on PRs created from forks. I see that they are only run if it's a branch in this repo https://app.codecov.io/gh/gazebosim/gz-rendering/pulls

But... it's there?

AFAIK there's nothing different from how I normally submit PRs EXCEPT that this PR originally could not compile at all due to gz-common5 dependency.

ah there we go, we now have codecov report :) I retriggered a few more github actions

OK I've added a coordinate convention test to WideAngleCamera and as I suspected, the Metal version was upside down.
In the process of writing this test I discovered a bug in Ogre2Scene::SetBackgroundColor as further calls to it would be ignored after a Camera has been created. I applied the same fix that Ogre1 engine uses.
This PR includes the fix for Ogre2Scene::SetBackgroundColor as it is necessary for the WideAngleCamera coordinate convention test.
Now all tests pass on Metal, except for VisualAt, but appears to be unrelated to this PR.
All tests related to this PR are passing so I see it as 100% ready for merge.
BTW: Just to be sure, I ran our own (OgreNext) Readback Test(*) for Metal and everything appears to be OK from OgreNext side.
(*)The readback test is an OgreNext test that tries to force race conditions to come out when reading from CPU what the GPU just wrote (if this test fails, then gazebo tests like VisualAt would definitely fail at random). I originally wrote it to stress-test our Vulkan RenderSystem.

@sanjuksha here's a patch to ogre2_demo to see the effect:
patch
diff --git a/examples/ogre2_demo/Main.cc b/examples/ogre2_demo/Main.cc
index 337cf1d1..1f9bdef0 100644
--- a/examples/ogre2_demo/Main.cc
+++ b/examples/ogre2_demo/Main.cc
@@ -303,6 +303,15 @@ CameraPtr createCamera(const std::string &_engineName,
     noisePass->SetStdDev(0.08);
     noisePass->SetEnabled(false);
     camera->AddRenderPass(noisePass);
+
+    auto light = scene->LightByIndex(0u);
+    RenderPassPtr p = rpSystem->Create<LensFlarePass>();
+    LensFlarePassPtr lensFlarePass =
+      std::dynamic_pointer_cast<LensFlarePass>(p);
+    lensFlarePass->Init(scene);
+    lensFlarePass->SetEnabled(true);
+    lensFlarePass->SetLight(light);
+    camera->AddRenderPass(lensFlarePass);
   }

   return camera;

Once you launch the demo, you can press s to disable sky to better see the lens flares:

Can you see if that works for you?


Downloading does not work after update

Steps to reproduce
Update
Go to a library entry
Press download
Expected behavior
It should start downloading
Actual behavior
After starting a download it stays in a permanent paused state and I can't unpause
And I get a notification
Invalid location: content://com.android.downl..

[X] I have written a short but informative title.
[X] I have gone through the FAQ and troubleshooting guide.
[X] I have updated the app to version 0.17.0.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

First of, if possible, ask for assistance in the Discord's support channel (and close this issue).
If not, please share a screenshot of your "Data and storage" screen in Mihon, with your Mihon folder path visible.

i was able to fix it with assistance from the discord support channel by changing the location of the mihon folder


Full Pathnames while Piping!

Added a few sanity tests, works with both short and long options for
overriding. Updated the man page, the help document, and rearranged
a bit of code to make it work better (not too much though)

This not only solves #23, but it works with SSH, and allows full override with an option switch.

This is a dead path, Closing.


[Prefix] Add Check to PrefixConverter to Prevent / Prefixes

Prefixes cannot start with a slash (/) because it raises a ValueError, indicating a conflict with Discord slash commands. This check has been added to the converter to prevent the issue.

Summary by Sourcery
Prevent prefixes from starting with a slash in the PrefixConverter to avoid conflicts with Discord slash commands and update the version of the Prefix management cog.
Bug Fixes:

Add a check in the PrefixConverter to prevent prefixes from starting with a slash ('/'), which raises a ValueError due to conflicts with Discord slash commands.

Enhancements:

Update the version of the Prefix management cog from 1.0.4 to 1.0.5.

LGTM, could you run pre-commit on it @mellow-org

Done! @sravan1946


Socket closed: The URL ... does not match any allowed pattern from undefined

I get this error message when I try to visit my domain where I have cursor party enabled:

The cursor party appears to be working when I add http://localhost:4321/* to one of the allow listed sites and when I test it with my development environment. So it appears that the code I'm using (i.e. adding the script tag to before the body end tag works). But it doesn't seem to work once I deploy my static site to cloudflare.
Do you happen to know what I may be doing incorrectly?

Never mind, it appears to work when I use different devices, just doesn't show the cursors in different tabs in the same browser (although it does do that when I enabled localhost and run my local setup).
I'm still getting the warning in all cases except in the localhost setup.

Weirdly, I'm not seeing any errors on https://cursor-party.whitep4nth3r.partykit.dev/ but I am seeing errors on https://cursor-party.kdheepak.partykit.dev/

And I can see that multiple cursors works on https://whitep4nth3r.com/
I tried in a different browser as well and I'm seeing the same result.
@whitep4nth3r apologies for the ping but I'm curious if you made any changes to your cursor-party deployment for this to work?

If I run npx partykit tail I get the following log:
🎈 PartyKit v0.0.111
---------------------
Loading environment variables from .env
Successfully created tail, expires at 2024-12-09T09:52:51Z
Connected to cursor-party, waiting for logs...
GET https://cursor-party.kdheepak.partykit.dev/cursors.js - Ok @ 12/8/2024, 10:56:23 PM
GET https://cursor-party.kdheepak.partykit.dev/parties/main/REDACTED=?_pk=REDACTED&name=Anonymous+User&color=%230000f0&from=https%3A%2F%2Fdraw.kdheepak.com%2F - Ok @ 12/8/2024, 10:56:24 PM
GET https://cursor-party.kdheepak.partykit.dev/parties/main/REDACTED=?_pk=REDACTED&name=Anonymous+User&color=%230000f0&from=https%3A%2F%2Fdraw.kdheepak.com%2F - Exception Thrown @ 12/8/2024, 10:56:29 PM
  Error: Network connection lost.
GET https://cursor-party.kdheepak.partykit.dev/parties/main/REDACTED=?_pk=REDACTED&name=Anonymous+User&color=%230000f0&from=https%3A%2F%2Fdraw.kdheepak.com%2F - Exception Thrown @ 12/8/2024, 10:56:35 PM
  Error: Network connection lost.

I'm not sure what to make of that though.

@kdheepak Everything I have modified from the fork is in this list of commits all pushed to my fork on 8th November: https://github.com/whitep4nth3r/cursor-party/commits/main/

Thanks for the reply! Weirdly, when I try your repository with no changes I still get the same error message on my account.


CAMEL-14992: initial support for AWS2 Athena component

Addresses https://issues.apache.org/jira/browse/CAMEL-14992

For the label we could also add them with subsequent PRs, I guess it would be better to have the component merged and @jonchase could work on new PRs about this. What do you all think?

Fine with me @oscerd

Just pushed my last change set for some formatting clean up.  Let me know if there is anything else needed before merge. 👍

@oscerd I included the link to the Spring Boot starter docs
related PR for that - https://github.com/apache/camel-spring-boot/pull/84

I'm merging the PR.

Merged, thanks a lot!

👍


Lora FSK examples

thank you for such amazing project, please provide receiver transmitter examples for LORA FSK modem too.

maybe some OOK examples first since they are simpler?


Document matching end of line

I couldn't find an example on how I match [0-9]+[.][0-9][0-9]$ - that is, match something at the end of a line.

Use the function to match the whole line, and include the equivalent of .* at the beginning of the pattern.

Not sure if this is a good idea, as it isn't very composable.
Say I want to match "(foo($| )|bar)"  then now I have to rewrite it to
"(foo ?|bar.*)"  that last expression is no longer composable as the first one was.

Well, it is the way at the moment.
I don't have the resources to investigate whether and how this can be implemented, but you can look into it yourself if you wish.

I wanted to remove 'index.html' from string. I found out that the following code was working:
stripIndex :: String -> String
stripIndex = takeWhile (/= '\0') .
             replace ((:) <$> sym '/'
                          <*  string "index.html"
                          <*> (concat <$> many query)
                          <*  sym '\0') .
             (++ "\0")
  where
    isDelim = (`elem` ['/', '#', '?'])
    query   = (:) <$> (sym '#' <|> sym '?') <*> many (psym $ not . isDelim)

By generalizing this, can we solve this issue?

@demokritos why do this instead of https://github.com/feuerbach/regex-applicative/issues/30#issuecomment-182798229?

Did you mean this?
stripIndex :: String -> String
stripIndex str = fromMaybe str $
                 match ((\a b c -> a ++ b : c) <$> many anySym
                                               <*> sym '/'
                                               <*  string "index.html"
                                               <*> (concat <$> many query)) str
  where
    query   = (:) <$> (sym '#' <|> sym '?') <*> many (psym (/= '/'))

I didn't know that match can replace.
I wonder whether the syntax below is possible by introducing special boundary indicators.
stripIndex = replace ((:) <$> sym '/'
                          <*  string "index.html"
                          <*> (concat <$> many query)
                          <*  EndOfLine)

Thanks.

Yeah, I think it could be possible.
My answer is the same as 4 years ago (wow, time flies!): I'd consider a carefully motivated and implemented pull request, but I don't have the resources to look into this myself.


why iam ABAC not work on s3 or ec2vpc etc.

i tried tutorial from https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html.   works fine as well. but
when i do same thing for other aws services like S3, ec2VPC ( as i don't want to see all vpc to all users), aws rekognition etc, it does not work.

Thanks for the question. I don't know the answer but I am checking with the service team.

Attribute-based access control will work for services that support Authorization based on tags (as per https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html), and we are actively working on supporting tag-based access control uniformly across all services.


feat: snyk code test

Reviewer Documentation

[X] follow CONTRIBUTING rules
[X] Detailed description:
This feat PR is to add Snyk code CLI support to the azure devops pipeline Task and then render the detected snyk code vulnerabilities issues results on the Snyk Report tab within the Task upon its completion.
[X] Risk assessment: High
[X] Non-breaking API
[X] test-unit for Task arguments added with code and testType changes

ensure no problems if testType set to code and both targetFile and dockerImageName are both set
throws error if invalid severity threshold for blank testType defaulted to app
passes validation when invalid testType is specified with blank severityThreshold, codeSeverityThreshold, defaulted failOnThreshold
passes validation when invalid testType is specified with undefined severityThreshold, codeSeverityThreshold, defaulted failOnThreshold
passes validation when invalid testType is specified with undefined severityThreshold, defaulted failOnThreshold, invalid codeSeverityThreshold
passes validation if invalid testType specified with default failOnThreshold (low), default severityThreshold (low)
throws error if invalid severity threshold for code
throws error if invalid failOnThreshold for code testType
throws error if invalid failOnThreshold for container testType
throws error if invalid failOnThreshold for app testType
throws error if invalid testType specified with invalid failOnThreshold
passes validation for each test type severity threshold to its testType

[X] User-facing documentation #6050

User facing Documentation

[X] Updated Gitbook PR documentation
[X] commit to prefix with feat:
[X] No CHANGELOG.md present

Testing

[X] testcases must pass in configured CI Job

Thanks for your changes! Would it be okay if we follow the Conventional Commits specification so the commits' messages help contributors and maintainers understand the intent of the change?
This convention helps to automate CHANGELOG generation, improve the readability of our commit history and helps in quickly identifying the purpose of each change at a glance.


TS injection and baseUrl fixes

Allows ConfigurationClass to be injected.
If a configuration class is specified, it has to be added to the inject list. Otherwise, Aurelia's DI will pass an empty string for the configuration class instance. For that matter, I'm really not sure how/why you'd want to inject a string with DI.

Handles empty baseUrl
The string that is injected into the client is always empty... so the check I added here allows the base class to configure the base URL.

Thanks for the PR. Is the PR ready now?

Happy to help. PR seems ready. I'm using the code here and it works great.


Added susheelthapa

Thank you for your valuable contribution!
Make sure to leave a star ⭐ on the repo


Use "additional vars" in variant computation

There are recipes that use additional vars that are not otherwise part of the variant computation inside of Jinja expressions.
For example https://github.com/conda-forge/mpi4jax-feedstock/blob/8ea663e53bdbcf5c0d3f92a381e3daf8c54721f4/recipe/meta.yaml uses {{ mpi }} which expands to two different variants of this package.

I ran into this while trying to convert a recipe like conda-forge/lammps-feedstock to boa and using openmpi/mpich.
Each of these has a version pinned in conda_build_config.yaml.
Using it in the build/host/run section results in a python error on boa render.


implement cluster validation using indices

[x] structure this into coherent notes & subtasks
[x] implement external clustering indices
[x] visualize external indices
[x] implement internal clustering indices
[ ] #21
[ ] visualize internal indices
[ ] create issue(s) for not implemented ideas

internal cluster indices

Question to answer: Which clustering separates/groups "objectively" the data the best?
input

original data/distance matrix (which metric?!)
all clustering results
categorical metadata

output:

cluster_validation/internal_indices_clustering.csv/.png
cluster_validation/internal_indices_metadata.csv/.png
?internal_indices_ALL.png (indices & metadata combined)
consider one plot consisting of a panel of three (differently sized) heatmaps

pseudocode

determine scores for clusterings and categorical metadata (requires distance matrix)
determine rank using MCDM/MCDA e.g., TOPSIS
MCDM / MCDA python package with TOPSIS: https://pymcdm.readthedocs.io/en/master/index.html

[x] check if better alternatives exist

save ranked score matrix as CSV
visualize as heatmap w/ & w/o metadata (scale by scores)
- clusterings (and/or metadata) as rows are ordered by MCDM ranking
- indices as columns are hierarchically clustered

indices

internal clustering indices: Silhouette, Calinski-Harabasz, Tau, C-index (used in master thesis)
use Dunn index instead of Tau index
add Davis-Bouldin Score
Akaike Information Criterion (self-made in Master Thesis)
Bayesian Information Criteria (self-made in Master Thesis)

https://towardsdatascience.com/are-you-still-using-the-elbow-method-5d271b3063bd

@sreichl Master Thesis Chapter 4.2.2. Internal Indices

fast distance matrix computation (which metric?)

https://www.kaggle.com/code/cpmpml/ultra-fast-distance-matrix-computation
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.euclidean_distances.html
numba?
heatmap alternative? https://github.com/epigen/unsupervised_analysis/issues/4
knn to distance matrix from dynamo

external cluster indices

Question to answer: Which metadata explains the clustering best?

Benchmark scenario: Which clustering most resembles the ground truth?

input

all clustering results
categorical metadata

output:

cluster_validation/external_indices_{index}.csv
cluster_validation/external_indices.png

pseudocode

determine scores for clusterings vs categorical metadata
save the score matrix as CSV
visualize each index as heatmap -> panel of heatmaps

clusterings as rows are hierarchically clustered
categorical metadata as columns are hierarchically clustered

indices

ARI & NMI# metrics
from sklearn.metrics.cluster import adjusted_rand_score
from sklearn.metrics.cluster import normalized_mutual_info_score

# external cluster indices with ground truth
adjusted_rand_score(labels, partition.membership)
normalized_mutual_info_score(labels, partition.membership)

consider Variation of Information (VI) and Split/Join:
https://stats.stackexchange.com/questions/24961/comparing-clusterings-rand-index-vs-variation-of-information

internal clustering indices (self-made in Master Thesis)

Akaike Information Criterion
Bayesian Information Criteria

https://towardsdatascience.com/are-you-still-using-the-elbow-method-5d271b3063bd

# metrics
from sklearn.metrics.cluster import adjusted_rand_score
from sklearn.metrics.cluster import normalized_mutual_info_score

# external cluster indices with ground truth
adjusted_rand_score(labels, partition.membership)
normalized_mutual_info_score(labels, partition.membership)

Significance analysis for clustering with single-cell RNA-sequencing data
https://www.nature.com/articles/s41592-023-01933-9

MCDM / MCDA python package with TOPSIS: https://pymcdm.readthedocs.io/en/master/index.html

[ ] check if better alternatives exist

fast distance matrix computation

https://www.kaggle.com/code/cpmpml/ultra-fast-distance-matrix-computation
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.euclidean_distances.html

implemented external indices (because in sklearn available)

AMI
ARI
FMI
Homogeneity and Completeness and V-Measure

decisions

distance fixed euclidean? -> yes, bc no easy implementation around
sklearn with 3 or clusterCrit with many more? -> clusterCriot, bc performance is the same but more options and code
TOPSIS in R or python? -> python bc R package does not exist anymore (and not on conda)
Information Criteria approach? -> yes it adds something unique
configurable criteria? -> no

Plot internal indices

scale columns
Cluster only columns
Show all at the same time as large heatmap (metadata & clusterings)
Topsis ranked clusterings and metadata (rows)
Consider separate script for visualization

implemented internal indices from clusterCrit package:

Silhouette
Calinski-Harabasz
C-index
Dunn index
Davis-Bouldin Score
Akaike Information Criterion (self-made in Master Thesis)
Bayesian Information Criteria (self-made in Master Thesis)

https://rdrr.io/cran/clusterCrit/man/intCriteria.html
https://rdrr.io/cran/clusterCrit/f/inst/doc/clusterCrit.pdf

MCDM/A with TOPSIS using pymcdm

internal cluster index calculation does not scale to large data sets.
ideas to improve performance of clusterCrit:
increase expression in R ?
options(expressions=10000)
increase memory to e.g., 100G?
-> if data is large determine indices on the top PCs? -> how many? eg 90% variance??
ALL clusterings and 1 score in top 10 PCs: Time difference of 2.379581 mins
1 clustering and 1 score in top 10PCs: Time difference of 5.583407 secs
-> factor 25.57 and all clusterings are 26 so linear scaling O(n) -> no action
1 clustering and 5 scores: Time difference of 1.873907 mins
-> factor 20 -> more than linear, keep scores split up.
effect of more features: 1 clustering and 1 score in top 20PCs: Time difference of 8.466122 secs
-> factor 1.5 although features 2x
effect of observations: 2x observations 1 clustering 1 score top 10 PCs: Time difference of 22.43458 secs
-> factor 4 although observations factor 2x -> O(2n)
TODO: test effect of using PCA with x% e.g., 0.9 of variation vs original data in internal cluster indices in small data sets
ALTERNATIVE/combination: sample 10% of data to determine scores (with random_state to reproduce)?
-> 100% of data and 10PCs: Sil=0.1542688
-> 10% of data and 10PCs: Sil=0.1434478 -> Time difference of 0.06139326 secs
-> 10% of data and 10PCs: Sil=0.1545943
-> 10% of data and 10PCs: Sil=0.1461169
-> 10% of data and 90% of PCs: Sil=-0.05937944
data 2166x9064 with 1 clustering and 1 score -> 3.736456 minutes (factor 4000, although features are factor 900) -> TOTAL time would be 3.7*26->96m=1.5h

decision: remove AIC (arguments below)

clearly prefers more clusters over less and thereby biases the MCDM approach, which is equal weighted across scores
correlates highly with BIC (which penalizes more clusters/variables more)


Add a mechanism for a reflection service to plug in

We've discussed the idea of an interface where a reflection service can plug in and ensure that source nodes (which reference external tables) are all kept up to date with tables schemas and partition information that reflect the reality of the external tables they represent.

An open item is if this will be a push or a pull model (from the perspective of the DJ server). As I've started to look at this, I don't think a pull model is the right choice. A push model may be better but I want to propose an option that is sort of both.
An Option
Push: Using just table schema as an example ("table schema" could be replaced with "partition information"), a reflection service would query the DJ server to get information on all source nodes. It would then validate all table schemas against the actual schemas that exist in the warehouse. Some schemas may not match and need to be updated. The reflection service pushes a batch of updates to source nodes defined in the DJ server (similar to how posting AvailabilityStates work)
Pull: Additionally, there are changes that are occurring in the DJ server. Source nodes are being created and updated. If the reflection service's URL is included in the DJ config, then during those creations and updates, the DJ server would explicitly ping the reflection service to pull the table schema for a given table. That would allow features such as:

When creating a source node, just include the table(s) and we'll automatically populate the schema for the node with information from the reflection service (a feature that currently exists for tables from databases with sqlalchemy uris)
When updating a source node to change a schema, we can include an error/warning if that doesn't reflect the current state of the real table. If the user wants to do it anyway (for example they want to migrate the source node definition first before they modify the table), we can allow it to be forced and possibly a way to disable reflection)


Missing fft header include

I needed to include fft.h in studio.c to get this fork to build on Mac. Without this I was getting the following errors:
error: implicit declaration of function 'FFT_Create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        FFT_Create();
error: implicit declaration of function 'FFT_EnumerateDevices' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        FFT_EnumerateDevices(print_fft_devices, NULL);

Holy fork did I only just do that now.


Make lazy_static optional?

lazy_static is used once in the whole crate - to declare wgs84 ellipsoid. So lazy_static is not necessary for the main functionality of the crate, but is introduced as a compulsory dependency.
Having a reference ellipsoid in the crate is definitely a useful feature to not require from user to define WGS84 manually every time (and it's also useful for tests). But the introduction of a additional dependency for one object seems like a good spot for improvements.
My idea is to add pre-defined ellipsoids (and thus lazy_static) as a default feature. This way no functionality will change for users, but they will be able to use one less dependency when needed.
I can create a PR if such solution is welcome.

It's nice to trim down dependencies, but I'm wondering how many people actually want to use this library without the WGS84 ellipsoid. Do you have this use case? Can you tell me more about it?
lazy_static is a very small, common, and well maintained dependency, so I'd guess that it's unlikely to cause any real damage.
More likely, in my estimation, is that someone well meaning person will disable all the default features on their build and then wonder why this library no longer works for them.

Do you have this use case? Can you tell me more about it?

I have this exact case where lazy_static seems like suboptimal addition. I'm using geographiclib only in one part of my library, and thus I'm implementing my own Ellipsoid (much leaner) type which implements From/Into Geodesic. So I'm not using the internal geographiclib's wgs84 except for tests.

lazy_static is a very small, common, and well maintained dependency, so I'd guess that it's unlikely to cause any real damage.

That's why I'm not strongly arguing for implementing this change, but rather discussing it as something to consider.

More likely, in my estimation, is that some well meaning person will disable all the default features on their dependencies and then wonder why this library no longer works for them.

Personally, I would assume that mostly experienced Rust users disable default features and expect things to break because of that, and look for the smallest set of necessary features for their use-case.

My idea is to add pre-defined ellipsoids (and thus lazy_static) as a default feature. This way no functionality will change for users, but they will be able to use one less dependency when needed.

It is possible just pre-calculate WGS84_GEOD:
static WGS84_GEOD: Geodesic = Geodesic {
   a: WGS84_A
};

and add unit test to verify that it equals to Geodesic::new(WGS84_A, WGS84_F)
to catch need of change pre-calculate code if Geodesic::new would modified.
This also make code little faster because of there is no need for read/write atomic in every access.

It should be possible to replace the lazy_static usage with std::sync::OnceLock

Fixed in #52


Feature/replies

Added replies feature to comments and established relationships between them

looks fine. will merge after comments are merged.


STORM-3357: Bump Clojure version to 1.10

https://issues.apache.org/jira/browse/STORM-3357

@kishorvpatil Could you please review this? I don't have any clojure topology for production use case, so would like to double check if we have the env.

@kishorvpatil Could you please review this? I don't have any clojure topology for production use case, so would like to double check if we have the env.

Let me test this and get back to you.

@kishorvpatil Thanks for the quick update!


[SYSTEMML-1583] [WIP] Read caffemodel using Caffe2DML

This PR will serve as placeholder for discussion, so please donot merge.

This PR doesnot resolve SYSTEMML-1583 as it still requires caffe to be installed.
This PR converts the numpy array from caffemode directly to MatrixBlock. This works well if the array is reasonably small, but if the array is very large, then it could take long time due to P4J (~45 seconds for converting VGG model to MatrixBlocks). Also, this approach requires large driver memory.

# pyspark --driver-memory 10g
from systemml.mllearn import Caffe2DML
from pyspark.sql import SQLContext
import numpy as np
import urllib, os, scipy.ndimage
from PIL import Image
import systemml as sml

# ImageNet specific parameters
img_shape = (3, 224, 224)
num_classes = 1000

# Downloads a jpg image, resizes it to 224 and return as numpy array in N X CHW format
url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/58/MountainLion.jpg/312px-MountainLion.jpg'
outFile = 'test.jpg'
urllib.urlretrieve(url, outFile)
input_image = sml.convertImageToNumPyArr(Image.open(outFile), img_shape=img_shape)

# Download the proto files for VGG network
#urllib.urlretrieve('http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_16_layers.caffemodel', 'VGG_ILSVRC_16_layers.caffemodel')
urllib.urlretrieve('https://raw.githubusercontent.com/niketanpansare/model_zoo/master/caffe/vision/vgg/ilsvrc12/VGG_ILSVRC_19_layers_solver.proto', 'VGG_ILSVRC_19_layers_solver.proto')
urllib.urlretrieve('https://raw.githubusercontent.com/niketanpansare/model_zoo/master/caffe/vision/vgg/ilsvrc12/VGG_ILSVRC_19_layers_network.proto', 'VGG_ILSVRC_19_layers_network.proto')
urllib.urlretrieve('https://raw.githubusercontent.com/niketanpansare/model_zoo/master/caffe/vision/vgg/ilsvrc12/VGG_ILSVRC_19_layers_deploy.prototxt', 'VGG_ILSVRC_19_layers_deploy.prototxt')
urllib.urlretrieve('https://raw.githubusercontent.com/niketanpansare/model_zoo/master/caffe/vision/vgg/ilsvrc12/VGG_ILSVRC_19_pretrained_weights/labels.txt', 'labels.txt')

# Load the pretrained model and predict the downloaded image
home_dir = os.path.expanduser('~')
vgg_pretrained_weight_dir = os.path.join(home_dir, 'VGG_trained_models', 'VGG_ILSVRC_19_layers.caffemodel')
vgg = Caffe2DML(sqlCtx, solver='VGG_ILSVRC_19_layers_solver.proto', deploy_net='VGG_ILSVRC_19_layers_deploy.prototxt', labels='labels.txt', weights=vgg_pretrained_weight_dir, input_shape=img_shape)
vgg.predict(input_image)

@frreiss @asurve @bertholdreinwald  @dusenberrymw

Refer to this link for build results (access rights to CI server needed):
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/1453/

What are the alternative options?

The alternative option is to read caffemodel directly from our Scala class thus avoiding py4j overhead.

Duplicate of the commit https://github.com/apache/systemml/commit/d69f3441c8243ddd13dd3da6aab9c2d5701c6e50


/usr/bin/time: Command not found in CMAQ v.5.3.3

Good day,
I am trying to apply use the standalone CMAQ v. 5.3.3 but need help to resolve the above error that seems like the runscript not starting mpirun (There are no rsl.* files). I have it attached here, together with the job*.err.txt and job*.out.txt files. I think user-specific syntax is needed for mpirun, but unsure how to go about it.
job.12760.err.txt
job.12760.out.txt
run_cctm_Bench_2016_12SE1.txt

@bismarck99 we ask that you please post your question to the CMAS Center Forum: https://forum.cmascenter.org/
We would like this question to be documented on the forum to help other users that may run into similar issues.  We use the forum as a central location to track issues across different software tools supported by the CMAS Center.
Please start a 'New Topic' with an informative title and choose 'CMAQ' as the category.


Unable to upgrade from 1.40.0 to 1.40.1 on Fedora 31. Error: GPG check FAILED.

Hi.
The following error GPG check FAILED is raised when trying to upgrade VSCode from 1.40.0 to 1.40.1 on Fedora 31 Workstation:
➜  ~ sudo dnf check-update
Last metadata expiration check: 0:14:17 ago on Wed 13 Nov 2019 10:12:28 PM -03.

code.x86_64                      1.40.1-1573664332.el7                      code
➜  ~ sudo dnf upgrade code
Last metadata expiration check: 0:14:31 ago on Wed 13 Nov 2019 10:12:28 PM -03.
Dependencies resolved.
================================================================================
 Package      Architecture   Version                         Repository    Size
================================================================================
Upgrading:
 code         x86_64         1.40.1-1573664332.el7           code          78 M

Transaction Summary
================================================================================
Upgrade  1 Package

Total size: 78 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] code-1.40.1-1573664332.el7.x86_64.rpm: Already downloaded
Package code-1.40.1-1573664332.el7.x86_64.rpm is not signed
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

The previous version was installed from the official steps.
Thank you!

Related to https://github.com/microsoft/vscode/issues/84752.


An option to align images in diff

Description
Currently, when showing a diff between two images, Github will center them both vertically. It'd be useful for some use cases (like comparing screenshot tests) to align both images to top or to bottom
Example URLs
https://github.com/mapbox/pixelmatch/pull/51/files#diff-af5ab23f506c169eda6e5e78d0b38b92825a0cade6267e76ba2e3019e4aef13e here the images are the same size, but if they were to differ, both would be centered.

I think this is too niche for Refined GitHub, sorry. The good news is that this can already be achieved with a couple lines of CSS.

Thanks for the response! It turns out this can't be achieved with Refined Github's CSS box due to https://github.com/refined-github/refined-github/issues/6507 (it's the exact same use case btw), and I suppose the solution for me is the same as for the other poster — use a different tool :slightly_smiling_face:


[RFE] Generate openapi spec for rancher

SURE-6822
Is your feature request related to a problem? Please describe.
Docs need a way to generate openapiv3 spec for all publicly supported CRDs created by Rancher
Describe the solution you'd like
Create a script to pull Rancher's generated CRDs and create valid openapiv3 specs
Additional context
This file is needed to display reference guides for Rancher CRDs, the location of this code is still TBD.

I know Caleb added it, but Kevin when you get around to it, please follow this process https://confluence.suse.com/display/RANQA/Neo+dev-validate+Process regarding the dev-validate label

@gunamata I created the above swagger.JSON can someone from the docs team validate that it works with our current docs tools.

Thanks @KevinJoiner
@btat, Can you please try the swagger JSON with the API docs plugin you have identified.

@KevinJoiner @gunamata Confirming it works with our current tooling.


Library maintenance helper stats

Is your feature request related to a problem? Please describe.
My basic problem is that it's difficult for me to maintain the libraries of films and series. Users can request content through jellyseerr, so I know who requested a particular series or film. However, I don't know whether the user has already watched it or not, or if other users are also watching the same series, for example. Therefore, it's hard for me to decide whether I can delete a particular film or if someone is still watching a particular series, and if so, which season they are on.
Describe the solution you'd like
A solution to the above problem would be if, when listing the series or movies, I could see how many different users watched them. On the detailed page of a specific film or series, it would also show who these users were, and in the case of series, it would indicate which was the last episode they watched. From this, I could more easily decide whether the requested film has been watched by the requester, or where viewers are in the series, and whether I can delete, for example, the first 1-2-3-x seasons.
Describe alternatives you've considered
The alternative is asking always around every users, can I delete this or that?

I'm also looking for this kind of feature, but rather maybe add a filter to the page that allows user's to filter by "added x months ago" and "unwatched in x months"?
That way, if a user adds a series via jellyseer, watches 1 or 2 episodes and doesn't enjoy it, they could be caught in the filter. Rather than just seeing they have watched 3/12 episodes, but that was 6 months ago, chances are they won't continue.


Retry after timeout fails due to protection range already present

Environment details

Python version: 3.6.8
pip version: 20.0.2
google-api-python-client version: google-api-python-client==1.10.0

Steps to reproduce

Request to google API to addprotection sheets
Eventually you hit fail - protection range is already present

I've hit this issue a couple of times, in August, September, October (basically from time to time when since I started using it)
// I've faced also once
// returned "Invalid requests[0].deleteProtectedRange: No protected range with id:<PHONE_NUMBER>
// but cannot be 100% sure for this one
Code example
return request.execute(num_retries=5)

Stack trace
    return request.execute(num_retries=5)
  File "python3.6/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "python3.6/site-packages/googleapiclient/http.py", line 907, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://sheets.googleapis.com/v4/spreadsheets/[cleared]:batchUpdate?alt=json returned "Invalid requests[0].addProtectedRange: Sheet "Domains" already has sheet protection.">

Logs
06/Aug/2020 08:15:41 AM - SheetManager - DEBUG - Cleaned all ranges I could have ever put here before
06/Aug/2020 08:16:41 AM - googleapiclient.http - WARNING - Sleeping 0.68 seconds before retry 1 of 5 for request: POST https://sheets.googleapis.com/v4/spreadsheets/[cleared]:batchUpdate?alt=json, after The read operation timed out
06/Aug/2020 08:17:36 AM - root - ERROR - <HttpError 400 when requesting https://sheets.googleapis.com/v4/spreadsheets/[cleared]:batchUpdate?alt=json returned "Invalid requests[0].addProtectedRange: Sheet "Domains" already has sheet protection.">

Comments
06/Aug/2020 08:15:41 AM - In the app, I 1st remove all ranges - in case my program crashed or anything - just to have clean stage
after
06/Aug/2020 08:15:41 AM till 08:16:41 AM - default 60s http timeout. Put protection range on Sheet(Tab) "Domains"
06/Aug/2020 08:17:36 AM - failed in the library handled retry

Hi @Woytek-Polnik,
If I'm understanding correctly, you've removed all the protection ranges but still see errors about the protection range already existing? Does this error happen every single time or is there some other pattern?

I started to see this almost every day, even 2 times a day....
1 more time while in wrapper _helpers.py for retries, request timeouts after n-th try, in next retry it gets invalid request

Hi @Woytek-Polnik,
It looks like this is an issue at the API level rather than in the library. Please use one of the Google Sheets support channels. https://developers.google.com/sheets/api/support

Submitted ticket to the API support https://issuetracker.google.com/issues/172737443

solved?
Same issue happening here.

and here

+1


Take over OS env variables in the GitExecutor

With the current setup the GitExecutor does NOT take over the OS environment variables. Because of this it fails to pull the configured SCM URL as it doesn't take into account the http_proxy settings from in the environment variables.
This PR makes sure the GitExecutor runs with the same environment variables as the main process.

Hello @robinvalk We really appreciate your contribution but the current implementation was done on purpose to keep the control over the environment and prevent potential side effects. In other words, passing through the whole environment to the command is more like using a sledgehammer to crack a nut.
The real solution to this issue should be support directly an optional http_proxy for projects and inject the respective environment variables or modify the git configuration accordingly. We already have a request feature for this and we will eventually implement it. Would you be interested in implementing this feature yourself?


Fix capability checking for gencap-constrained type parameters.

This PR fixes the type system bug described in #1328.

This is a pretty important bug fix, since the compiler is currently allowing some very unsafe forms when using generics.  Due to that, it would be nice to squeeze this into the 0.11.0 release (#1543) if possible.
However, I do want @sylvanc to review this first to make sure that my type system choices here were sound from a formal perspective.

I haven't followed the investigation made on this bug ; out of curiosity, what was causing the bad type checking?

@Praetonus the core of the issue was a conceptual conflation of how type parameter rcaps are checked in subtype.c.  Compared to the normal logic for rcap subtype checking, we need special logic for checking constraint rcaps (implemented in this PR as is_cap_sub_cap_constraint), and we need yet a different kind of special logic for checking varying caps of a type parameter reference against eachother (is_cap_sub_cap_bound).
Previously these two different special case rcap checking rules were conflated as one, leading to the over-permissiveness in the previous logic for is_cap_sub_cap_bound, which you found and demonstrated in your snippet.
This PR separates the different cases into different functions in cap.c, makes sure that each case is following the correct (I hope!) rules, and reworks subtype.c so we can keep track of what kind of check we want to do when we finally get to the point of invoking the functions from cap.c.

As a side note, GitHub made the diff view of cap.c really impossible to read by jumbling all the lines together from different functions, so when reviewing I suggest maybe just looking at the final revision of the file here instead.

This looks great. Only problem is my bad choice of names for #read lead you to the conclusion that it should be demanding something... readable. But really it wants "readable and aliasable". Sorry about that.

@sylvanc Thanks for the quick review.
Yes, my mistaken understanding of what #read is makes me quite glad I added the comments showing the set of what I thought it was, since it made it easy for you to see the mistake that tripped me up.

Yup, the comments served an immediate and highly useful purpose :)

@sylvanc I made the fixes you mentioned in 36e032d.
However, I'm now a bit uneasy about this, because I observed the following about this rule for is_cap_sub_cap_bound:
Using the rule: "every instantiation of the super rcap must be a supertype of some instantiation of the sub rcap"

#any includes iso
iso is a subtype of every rcap
therefore, #any is a subtype of every rcap (by the above rule).

Same would be true for #send, which also includes iso
I don't think this is desirable though, because it leads to the allowing the very same unsafe cases that we are intending to disallow in this PR.  In fact, when I tried adding that clause, my test case for violating capabilities via #any started failing (successfully violating) again.
This leads me to believe that the rule is still wrong.  Can you do some more thinking about this, (I trust your thinking more than mine on disentangling these ideas)?

So, I've revised this branch based on lengthy discussion in this week's sync call in which we finished ironing out the logic together.
The original rule for is_cap_sub_cap_bound was correct (only for cases where we compare gencap to gencap - more on this later), but the way it was worded ("some instantiation of sub must be a subtype of  every instantiation of super") was somewhat ambiguous, in that it could be read to mean either "there exists some instantiation of sub which is a subtype of every instantiation of super", or "for every instantiation of super, there exists some instantiation of sub which is a subtype of it" - the former is how I was reading it, but the latter is the correct interpretation.  I believe that my rephrasing ("every instantiation of super must be a supertype of some instantiation of sub") makes the correct interpretation a bit clearer and more obvious.
However, for cases where either sub or super is a single/specific cap, we want to abandon the above rule and fall back to the original rule for is_cap_sub_cap.  This logic is now encoded in the switch/case "truth table" for is_cap_sub_cap_bound.
The PR should be ready for final review, and merging.


Make Office Hours table rows alternate in color like Admin Panel table

User Story
As a user I can alternating color rows in the Office hours table, so that it is easier to differentiate between consecutive rows
Acceptance Criteria

[ ] The office hours table should have alternate-color rows

Implementation Todos
Front end:

[ ] Add  striped={true} on the <BootstrapTable>  open tag in the component that implements this table (following https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/table-props.html#striped-bool )

Testing:

All previous tests still pass

Branch name: 6pm-1-officeHoursTable

Added 'striped={true}' to OfficeHourTable.js and committed the changes to the branch.


Template ingestion error: undefined function template/0

Environment

Elixir / Hex version (mix hex.info):

Hex:    0.15.0
Elixir: 1.3.4
OTP:    19.1.5

Built with: Elixir 1.3.4 and OTP <IP_ADDRESS>

Node / NPM version (node -v) (npm -v):

node: v6.9.2
npm: 3.10.9

Operating system:

ubuntu 16.10 Yakkety Yak

Current behavior
I have followed all the steps, but it is possible that something was missed inadvertently due to which the sample template is not getting ingested into the layout. I have also checked the demo app and testing it resulted into the template correctly getting ingested. Any pointers will be helpful, as i not sure as to what i am doing wrong. The below is the debug trace:
[info]  Starting assets watcher at: <IP_ADDRESS>:8080
[info] Starting Kitto server, listening on ....:4003
[info] GET /
[info] Sent 301 in 6ms
[info] GET /dashboards/sample
[error] Ranch listener Kitto.Router.HTTP had connection process started with :cowboy_protocol:start_link/4 at #PID<0.297.0> exit with reason: {{%CompileError{description
: "undefined function template/0", file: "../dashboards/layout.html.eex", line: 16}, [{Kernel, :<>, 2, [file:
'expanding macro']}, {:elixir_compiler_0, :__FILE__, 1, [file: 'dashboards/layout.html.eex', line: 1]}, {Kernel, :
<>, 2, [file: 'expanding macro']}, {:elixir_compiler_0, :__FILE__, 1, [file: 'dashboards/layout.html.eex', line:
1]}]}, {Kitto.Router, :call, [%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{},
before_send: [], body_params: %Plug.Conn.Unfetched{aspect: :body_params}, cookies:
%Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "...", method: "GET", owner: #PID<0.297.0>,
params: %Plug.Conn.Unfetched{aspect: :params}, path_info: ["dashboards", "sample"], path_params: %{},
peer: {{, , , }, 58932}, port: 4003, private: %{}, query_params: %Plug.Conn.Unfetched{aspect:
:query_params}, query_string: "", remote_ip: {, , , }, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [{"host", "...:4003"}, {"connection", "keep-alive"}, {"upgrade-insecure-requests", "1"}, {"user-
agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87
Safari/537.36"}, {"accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"}, {"accept-encoding",
"gzip, deflate, sdch"}, {"accept-language", "en-US,en;q=0.8"}, {"cookie",
"_ga=GA1.1.216201135.1482994200"}], request_path: "/dashboards/sample", resp_body: nil,
resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}], scheme: :http,
script_name: [], secret_key_base: nil, state: :unset, status: nil}, []]}}

Expected behavior
The sample template should be ingested into the layout

Hi @mukulashokjoshi it seems like you're using the latest Kitto but have generated a dashboard using an older installer.
See: https://github.com/kittoframework/kitto/wiki/Upgrading-Guide#layout about this issue.
What you have to do:
In /dashboards/layout.html.eex (which is the default layout) change <%= template %> to <%= @template %>.
Let me know if this did the trick.

@Zorbash thanks very much
Your suggestion worked and the template has been ingested successfully!
And yes was looking at the installer code and it showed an @ against the template, but i thought it must be getting replaced when generating the kitto app.
Will now start customising kitto!


Test mariadb

Thanks for this @eladeyal-intel -- bummed this is a Sequelize issue. That library has a growing backlog of open PRs which is unfortunate to see.

I am not sure why you merged this. Now ci will fail. Unfortunately I have no idea how to fix (except documenting unsupported mariadb version)
@rickbergfalk

I merged because it reflects the current state of things.

Oh and as for fix... I'm not super excited to do this but I'm contemplating forking sequelize...


Create Smart Pricing Framework Execution Module

This feature gives big advantage in options trading:

Smart Pricing
In the example above, you may have noticed no price was specified. Alta5's Smart Pricing feature automatically calculates the optimal price(s) when opening opportunities. This is particularly useful when opening an option or spread opportunity as Smart Pricing will automatically attempt to fill at prices between the bid/ask spread.
For example, suppose you wanted to open a call option opportunity and the bid price is
$1.20
and the ask price is
$1.45
. Smart pricing will automatically try multiple timed limit orders between the bid/ask prices (e.g.
$1.25
,
$1.30
,
$1.35
, etc) until the order fills.

For interactive brokers this could be the adaptive algorithm order type.
Generically it could be a great execution model for the framework.
Sadly closing as we cannot create issues for every execution algorithm to implement.
We can reopen when having more bandwidth to execute the feature.


Rename and refactor package

Before the official release, we need to decide on renaming the package and refactoring it.

[ ] Rename package from Datasnakes-Scripts to ortho-evol
[ ] Refactor Datasnakes to OrthoEvol

Feel free to change the name of this.

I like OrthoEvol!  Lets discuss this tomorrow during our meeting.

I like OrthoEvol.  It sounds good, and it's on point for this project.  If we link to this package in a publication, then it will make more sense for people as well.  But we could also give at more general name and a more general function, and add more to it as we develop our other projects.  What do you think?  @sdhutchins.
For the short term I really like OrthoEvol, especially for publication.  But if we decide to keep developing this package, we may pigeon hole ourselves with the name, and it could become confusing for users.  So for the long term, the question remains..  How will we continue developing this package, and how will our future projects use it?

lol at Genie in a flask. That made my day. I needed to smile.

I like OrthoEvol. It sounds good, and it's on point for this project. If we link to this package in a publication, then it will make more sense for people as well. But we could also give at more general name and a more general function, and add more to it as we develop our other projects. What do you think? @sdhutchins.
For the short term I really like OrthoEvol, especially for publication. But if we decide to keep developing this package, we may pigeon hole ourselves with the name, and it could become confusing for users. So for the long term, the question remains.. How will we continue developing this package, and how will our future projects use it?

I'll say this much...I agree about it for making the process of publishing a paper about the software easy. I think it's key we decide what we ultimately want out of this.  For the GPCR and KARG projects, this is perfect and it's also perfect for other subsequent genomics or phylogenomics projects.
I think it's always possible to create a new package for other projects and/or turn something like the tools, manager, or cookies module of this project also into pypi projects...It'd actually be easy to do that and could garner more attention as well as allow us to use those packages in subsequent projects. It just all depends on how you see it.
We could have a genomics-project-manager package that includes Manager and Cookies. I'm just spitballing here. I see it a number of ways...all of which I'm cool with.
I've been looking over ete's paper and repo for some guidance. I'm not the biggest fan of the actual code in the project, but I enjoy the functionalities and their website.

Ok.  I mean you're right.  We could make a sort of utilities/tools PyPi package that includes:

Cookies
Manager
Pipeline
Tools

And a separate package for everything else:

Orthologs
RNA-seq
Microbiome
Etc...

This would allow us to develop our BioInformatics stuff outside of our Tools/Utilities stuff that we (and others) could develop for a wide genre of projects.
If we make that split we have got to do ASAP.  But first we need to get our package stable:

[ ] #88
[ ] #85
[ ] #83
[ ] #77
[ ] #76
[ ] #75
[ ] #74
[ ] #59
[ ] #38
[ ] #37
[ ] #35
[ ] #32
[ ] #25
[ ] #21
[ ] #20

We could call the Utilities/Tools:

Plumber
PiedPiper
Drano
Yoshi
Wario
Mario
PipeLabyrinth

Idk lol.  Ideas @sdhutchins

I can think we can keep this package as is and still make packages for the tools. Yes, I'm being lazy lol

Lol.  Alright.  So keep everything inside, and when we get ready, we can basically carbon copy our "Plumber" modules into a new package.  We'll just have to make sure those tools only depend on each other.  I think that's how they are functioning at the moment as far as I'm aware.

lol Yes, if that's okay. I mean, we can do that at any time if wanted.

We could call the Utilities/Tools:
Plumber
PiedPiper
Drano
Yoshi
Wario
Mario
PipeLabyrinth
Idk lol. Ideas @sdhutchins

LMAO

I love all those names though.

@grabear Thought about this a few days ago. I really do think we should keep it designed for orthology inference or phylogenetics.
I think trying to incorporate rnaseq (and likely R) would be more complex. Also, I think we've created tools within this tool that we can offer as standalone tools from the Manager module to sge to the Cookies template to ftp. It'd improve our skills to develop more packages, and we'd also improve our resumes. By all means, we could take on these packages as individuals which would also be something to tout on our resumes or in future interviews (showing we can develop software in a collaborative manner and independent manner).
Just my thoughts.
I also think for the science community...having more and simpler tools that do great things can be more valuable than 1 big-complex tool (which can scare people off).
Let me know what you think. It'd be also great to get input from others about it as well.

Yea I can see that.  I still like this idea though...

We could make a sort of utilities/tools PyPi package that includes:
Cookies
Manager
Tools

And a separate package for everything else:
Orthologs
RNA-seq
Microbiome
Etc...

What if we do a "bio-utilities" package and then an "ortho-evol" package that takes bio-utilities as a dependency?

For above though ortho-evol would be separate from anything we did with RNA-seq data or micro-biome data.

Yeah, I think we can keep the current package as is and convert it to ortho-evol.
We can make those utilities you mentioned (Cookies, Manager, Tools) still separate or we can do it how you laid out. I really think each deserves their own pypi package or multiple ones - particularly the concepts.
I'm all for us having like 5 packages that we can use and put out there into the world. It was sort of where I was going with the py3utils and biosnips repos.
Manager could be designed as such that you could port in multiple projects into one project manager. You could call it bioproject or biomanager. Idk. We can get creative.
I mean the BioSQL stuff you've done should for sure be a pypi package. It can still be in this, but a package as well would be great.
One of the features of this package is project management and I think it's important it stays, but remains more specific to what we need to finish this project.

Ok.  I'm going to think about this.  I'll look at the dependencies for everything tomorrow.

Addressed by #128

#127


add clickable heading to themes / perhaps a code block that does that

Not sure we could make an element that just provided this behavior but I want any time the user makes a heading that it just knows to create an anchor to that area of the page dynamically. This is something we had in ELMS:LN and its a fantastic piece of capability from a UX side, especailly w/ big pieces of content

Css ::slotted and event handlers applied via haxcms based on things being inserted into the body area. Simple mutation observer. Hit h tags and this should be pretty easy actually

[ ] inject id on adding headers to the page
[ ] on save and presenting page normally, add hover listener for h tags
[ ] on hover add a visual link for those wanting to obtain a link to directly jump to the element
[ ] on page load, if there's a hash scroll to it

need to visualize it but the basic mechanics are now there in hax and haxcms to handle this. Just need the hover / click to obtain anchor link / jump to heading style functionality

clean-two does this; shouldn't happen automatically tho

clean-two does this; shouldn't happen automatically tho


Optimizer: operator method refactor

Cleaning up the code involving operators in the optimizer.

Coverage decreased (-76.8%) to 0.0% when pulling 6ca129b6521be8fdd03007b49db128f92d59dcc1 on GustavoAngulo:master into 93f5e0e5c210ead1acc3ecfab5c72df278cd47fb on cmu-db:master.

Code from this PR was instead included in #1150


Incorrect use of ServletFileUpload (common-fileupload) results in NPE

We implemented a lambda function (proxy to API Gateway method which consumes multipart content) using the aws-serverless-java-container library.
However, during the testing we found out that it didn't work: all requests were failing with java.lang.NullPointerException: No FileItemFactory has been set.
It seems like the no-args constructor was used in https://github.com/awslabs/aws-serverless-java-container/blob/master/aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsProxyHttpServletRequest.java#L658
ServletFileUpload upload = new ServletFileUpload();
Javadoc of that constructior says:
Constructs an uninitialised instance of this class. A factory must be
configured, using setFileItemFactory(), before attempting
to parse requests.
However, we haven't found any setFileItemFactory() calls in the code.
So we changed line 658 to ServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory()); and it worked fine.
Can you confirm if that is a problem/bug?
Also it would be great to add a test case for this code.
Thanks,
Greg

It certainly looks like a bug. I'll make the change and add some unit tests for this in the next release. Thanks!

The fix for this has been merged into master. Release 0.5 will go out later today.


Adds attack

Adds attack.py file with the ML leaks 1 and 3 implementations and includes this new file to be loaded in cyphercat init file to be loaded.

@mlomnitz Thanks for the addition and the nice doc strings. Has my approval.
@MaAleBarr Awaiting your review and approval for changes.

Great documentation, really appreciate it. Let's keep this up.