rsnapshot: 1.4.3 -> 1.4.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/rsnapshot/versions.
meta.description for rsnapshot is: "A filesystem snapshot utility for making backups of local and remote systems"
meta.homepage for rsnapshot is: "https://rsnapshot.org/"
meta.changelog for rsnapshot is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/dn7wzshihvp2c8ccm5fwb77y0z749sdk-rsnapshot-1.4.4/bin/rsnapshot passed the binary check.

/nix/store/dn7wzshihvp2c8ccm5fwb77y0z749sdk-rsnapshot-1.4.4/bin/rsnapshot-diff passed the binary check.

2 of 2 passed binary check by having a zero exit code.

2 of 2 passed binary check by having the new version present in output.

found 1.4.4 with grep in /nix/store/dn7wzshihvp2c8ccm5fwb77y0z749sdk-rsnapshot-1.4.4

found 1.4.4 in filename of file in /nix/store/dn7wzshihvp2c8ccm5fwb77y0z749sdk-rsnapshot-1.4.4

directory tree listing: https://gist.github.com/dd553603f55608b08b5287921b087a01

du listing: https://gist.github.com/f1a0974442e6fb2c32cb0c3a0a9c2da1

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

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
rsnapshot

Instructions to test this update (click to expand)

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

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/dn7wzshihvp2c8ccm5fwb77y0z749sdk-rsnapshot-1.4.4
ls -la /nix/store/dn7wzshihvp2c8ccm5fwb77y0z749sdk-rsnapshot-1.4.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

rsnapshot

Maintainer pings

Result of nixpkgs-review pr 137772 at bcfd20bf run on aarch64-linux 1

1 package built successfully:

rsnapshot

4 suggestions:

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/tools/backup/rsnapshot/default.nix:22:3:
   |
22 |   meta = with lib; {
   |   ^

warning: stale-substitute
Stale substituteInPlace detected.
substituteStream(): WARNING: pattern '/usr/bin/pod2man' doesn't match anything in file 'Makefile.in'
Near pkgs/tools/backup/rsnapshot/default.nix:23:0:
   |
23 |     description = "A filesystem snapshot utility for making backups of local and remote systems";
   | ^

warning: patch-phase
patchPhase should not be overridden, use postPatch instead.
Near pkgs/tools/backup/rsnapshot/default.nix:17:3:
   |
17 |   patchPhase = ''
   |   ^

error: no-flags-spaces
configureFlags cannot contain spaces, please use configureFlagsArray in Bash.
Near pkgs/tools/backup/rsnapshot/default.nix:14:3:
   |
14 |   configureFlags = [ "--sysconfdir=/etc --prefix=/" ];
   |   ^


Update changing-a-commit-message.md

Why: External resources should not be surrounded in quotes, per this issue
Closes: https://github.com/github/docs/issues/35286

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

[x] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.

[x] For content changes, I have completed the self-review checklist.

@Dusch4593 Thank you so much for this fix! ✨


openai key leak

https://github.com/DARPA-CRITICALMAAS/sri-ta2/blob/main/sessions/0000000/params.json#L1
You should probably rotate this key if you haven't already.

Key has been disabled. Thanks for pointing out!

Closing issue.


don't create empty parts in a multi part email

Tested fix for #106
If the user has enabled click tracking but doesn't send a HTML part, they don't get click tracking on their message so what I've done is consistent with how postal behaves currently.
If you decide that postal should auto generate a HTML part, that could be done in this part of the code too.

@adamcooke thanks for merging but this change doesn't come through the install file from postal.atech.media...


chore(FX-3523): copy change filter on searchableartworkgrid

The type of this PR is: Enhancement

This PR resolves FX-3523
Description
This pr changes the label of the Filter Button under SearchableArtworkGrid from Sort & Filter to Filter since we don't provide a sorting functionality on artwork grids with keyword search yet.

Add title optional prop to FilterHeader2 component that resolves to "Sort & Filter" when not passed
Pass title = "Filter" when on Searchable Artwork Grid under mobile search

more context here slack thread

Before
After

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have tested my changes on iOS and Android.
[x] I have added tests/stories for my changes, or my changes don't require testing/stories, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

change filter title under searchable artworks grid - gkartalis

iOS user-facing changes

Android user-facing changes

Dev changes

This PR contains the following changes:

Cross-platform user-facing changes (change filter title under searchable artworks grid - gkartalis)

  Generated by :no_entry_sign: dangerJS against 7717c78a075a1838be0583363f05239378282daf

#squashOnGreen


Style/ExplicitBlockArgument cop fails for safe navigation operator

I am having an issue with inspecting this part of the code:
results['results']&.each do |row|
  yield row
end

An error occurred while Style/ExplicitBlockArgument cop was inspecting
It inspects a code fine if remove & safe navigation from the code.


[Documentation Update]: Add Admin-guide

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
This structure provides a comprehensive guide for administrators on managing various aspects of the OnlineBookStores website, from product management to customer support. Adjust and expand each section as per your specific operational processes and policies.
Suggested Change
This structure provides a comprehensive guide for administrators on managing various aspects of the OnlineBookStores website, from product management to customer support. Adjust and expand each section as per your specific operational processes and policies.
Rationale
This structure provides a comprehensive guide for administrators on managing various aspects of the OnlineBookStores website, from product management to customer support. Adjust and expand each section as per your specific operational processes and policies.
Urgency
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@Trisha-tech Please assign me this issue


Using client secret credentials

When I try this feature(Using client secret credentials) using the latest version of MS Graph with PowerShell 5.1 it is not working
Get-InstalledModule Microsoft.Graph
Version    Name                                Repository           Description

2.4.0      Microsoft.Graph                     PSGallery            Microsoft Graph PowerShell module
After doing some research and updating to the Powershell 7 it is working as expected
Only this feature using secret is not working on PowerShell 5  as per the observation it only runs on PowerShell 7.So it should good idea to put a note, especially for this
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 26caa942-e06a-6467-3a31-fa19104801f7
Version Independent ID: 1f00beaa-439f-9e27-81de-7a35cccca4e8
Content: Using Microsoft Graph PowerShell authentication commands
Content Source: microsoftgraph/docs-conceptual/authentication-commands.md
Product: non-product-specific
Technology: microsoft-graph-powershell
GitHub Login: @msewaweru
Microsoft Alias: eunicewaweru

Thank you, @nukala29 for highlighting this issue. I will be updating docs to capture this.

Closing this following the docs update.


Scheduled activity instances in plan UI disappear after simulation

Checked for duplicates
No - I haven't checked
Is this a regression?
No - This is a new bug
Version
1.5.0
Describe the bug
This bug has showed up several times when I have activity instances in a plan placed via scheduling goals and then after run the simulation. After the simulation finishes I reload the page (as it doesn't automatically update on the timeline view) and only a subset of the activities show up on the timeline view. However, all of the expected simulated activities are present in the "Simulated Activities Table".  It should be noted that after running the scheduler all expected activity directives are placed on the timeline and visible.
This bug is not consistent as some scheduling + simulation runs work as expected and all activities are visible in the UI, but occasionally this bug shows up.
Below I've attached a screen recording of what my UI looks like after scheduling + simulating a set of three Clipper instrument goals. Only two activities out of the 28 simulated activities show up on the plan post-simulation. You can see that when I reload my page for a split second all of the activity types show up in the UI but quickly disappear. You can also see some of the missing activities in the Activity Directives Table.
https://user-images.githubusercontent.com/40210944/236342166-5d79ae1c-9dbc-490d-8f17-5efdf5fb230e.mov
Reproduction

Create a set of scheduling goals (in my case I had three separate goals that placed 9 activity instances of various types)
Run the scheduler followed by a simulation run
Reload the page and see if all activity instances are placed on the plan view or not. Additionally check the Simulated Activities Table and note if all activities expected are there.

Logs
No response
System Info
Observed in Aerie 1.5.0

Severity
Annoyance

not reproducible with timeline density improvements rework


Phase Line Feature request

Hello,
I am a developer using Chart.js and an Angular wrapper for them ng2-charts. One feature that we cannot seem to find in any charting library is the ability to add what Applied Behavior Therapists call "Phase Lines". For example when tracking behavior data there are three phases, Baseline, Treatment, and Generalization. These required graphs all use line charts with the X-axis being dates of treatment sessions, and the feature we would like to see is the ability to add a vertical line, be it styled for other wise from the Y-origin, to Y max, along any given point in the X axis, to separate the homogenous data into three distinct sections visually to convey different sections of time. I would like to request this feature if possible.
Thanks,
Dwayne Etchison
Lead Developer
ABADesk.com

Plugins are definitely the right way to implement this. There is an annotation plugin, but it's unmaintained now. Writing a custom plugin is easy enough


Not rendering/ Takes too long to render

I am trying to load a graph with 22k edges with at least 7k nodes and using Mac. The graph isn't rendering at all. Is there any way around to solve this issue?

There might be something wrong with your graph. Did you check the JS console to see if there is any error there?

No. There are no errors on the console. Maybe I set the node size too
large. Can that be the reason for that? I set the node size ranging from 25
to 375.
On Thu, Jul 28, 2022 at 1:37 AM Guillaume Plique @.***>
wrote:

There might be something wrong with your graph. Did you check the JS
console to see if there is any error there?
—
Reply to this email directly, view it on GitHub
https://github.com/jacomyal/sigma.js/issues/1264#issuecomment-1197838943,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALUAQ2HQASHXOVKVIYRA3ELVWJBEFANCNFSM544MPY4A
.
You are receiving this because you authored the thread.Message ID:
@.***>

That's possible indeed. Note that node size has to be specified in pixels unzoomed. 375 clearly exceeds the webgl points capabilities and I am unsure what it would produce, depending on your graphics card. Can you try rescaling your sizes and report back?

I tried rescaling the size of the nodes to 15.85 (for all nodes). It still
doesn't work. The localhost is not able to render anything. Here's a
glimpse of my data:
{"nodes": [{"key": "0.0", "attributes": {"x": 0.9212508743606571, "y":
7.946779022125236, "size": 15.85, "label": "A A A A A A A", "color":
"gray"}}, {"key": "1.0", "attributes": {"x": 0.9064700044534932, "y":
7.948478604803946, "size": 15.85, "label": "B B B B B B B B", "color":
"gray"}}],
"edges": [{"key": "2649", "source": "218.0", "target": "4448.0",
"attributes": {"size": 2}}, {"key": "2650", "source": "218.0", "target":
"4394.0", "attributes": {"size": 1}}, {"key": "2651", "source": "218.0",
"target": "219.0", "attributes": {"size": 10}}]}
On Thu, Jul 28, 2022 at 8:18 AM Guillaume Plique @.***>
wrote:

That's possible indeed. Note that node size has to be specified in pixels
unzoomed. 375 clearly exceeds the webgl points capabilities and I am unsure
what it would produce, depending on your graphics card. Can you try
rescaling your sizes and report back?
—
Reply to this email directly, view it on GitHub
https://github.com/jacomyal/sigma.js/issues/1264#issuecomment-1198298880,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALUAQ2HAUXYFNADLTD6BH5TVWKQETANCNFSM544MPY4A
.
You are receiving this because you authored the thread.Message ID:
@.***>

How many nodes and edges can Sigms.js render?

More than what you are feeding it. I suspect there is an error in the code somewhere. Did you ensure your HTML container has a fixed height for instance? Else, the container will basically be invisble. Can you provide your code?

So I was using these two lines to render the graph. I commented out these two lines and now it works just fine.
const layout = new ForceSupervisor(graph);
layout.start();


Added support for a Notes field in IP Filters

Closes #4140
Hosts can now set a note with each IP Filter rule to remind them about the purpose of each rule.

/azp run

Nice one. Did you notice, @Tychodewaard ?


HADOOP-17898. Upgrade BouncyCastle to 1.69

Description of PR
HADOOP-17898 . BouncyCastle to 1.69

CVEs are reported for releases lower than 1.66
CVE-2020-26939 moderate severity
CVE-2020-15522 moderate severity

How was this patch tested?

build locally succeeded
mvn dependency:tree
Looked into linked Jiras of HADOOP-15832 and reviewed the dependencies affected by the upgrade
I verified that they have no class errors as reported in YARN-8919 and YARN-8899

mvn test -Dtest=TestFileArgs,TestMultipleCachefiles,TestStreamingBadRecords,\
TestSymLink,TestMultipleArchiveFiles,TestGridmixSubmission,TestDistCacheEmulation,\
TestLoadJob,TestSleepJob,TestDistCh,TestCleanupAfterKIll

### For code changes:

- [X] the title or this PR starts with the corresponding JIRA issue id
- [X] updated `LICENSE-binary`

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 59s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
shelldocs
0m  0s

Shelldocs was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
12m 26s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
23m 36s

trunk passed

+1 :green_heart:
compile
24m 50s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
compile
20m  6s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
mvnsite
26m 22s

trunk passed

+1 :green_heart:
javadoc
8m 18s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
7m 50s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
shadedclient
31m 39s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 30s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
22m 35s

the patch passed

+1 :green_heart:
compile
22m 14s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javac
22m 14s

the patch passed

+1 :green_heart:
compile
19m 19s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
javac
19m 19s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
21m 12s

the patch passed

+1 :green_heart:
shellcheck
0m  0s

No new issues.

+1 :green_heart:
xml
0m  1s

The patch has no ill-formed XML file.

+1 :green_heart:
javadoc
7m 47s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
7m 52s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
shadedclient
32m 20s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
1052m 57s
/patch-unit-root.txt
root in the patch passed.

+1 :green_heart:
asflicense
1m 44s

The patch does not generate ASF License warnings.

1316m 21s

Reason
Tests

Failed junit tests
hadoop.tools.dynamometer.TestDynamometerInfra

hadoop.hdfs.rbfbalance.TestRouterDistCpProcedure

hadoop.hdfs.server.blockmanagement.TestBlockTokenWithDFSStriped

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3398/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3398

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell xml shellcheck shelldocs

uname
Linux 5bf1ece7695f 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / b62b97debf7fa25bbd71bde918070c200ea37d55

Default Java
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3398/1/testReport/

Max. process+thread count
2429 (vs. ulimit of 5500)

modules
C: hadoop-project . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3398/1/console

versions
git=2.25.1 maven=3.6.3 shellcheck=0.7.0

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.


GlobalState.lua: luacheck fixes

Misc issues.

These changes make sense, but since I force-pushed it added some other changes I just went ahead and implemented the changes in<PHONE_NUMBER>12d33dead387d6e38a13f66efe01ae.
Sorry about the force push and I'll make sure I don't do that again. I think you'll need to rebase your PRs on main to fix the diffs.


Launch personal chat from channel button

When the conversation is started in a Teams channel it should show a message with a button like this:
Try the calendar skill now!
[ Launch ]

When the user clicks that button, it should start a personal chat with the normal calendar flow


Backup compression

"13.On the Backup policy menu, choose whether to enable SQL Backup Compression.

Compression is disabled by default.
On the back end, Azure Backup uses SQL native backup compression."

Does the first bullet-point refer to the fact that even if INSTANCE-level compression turned on, SQL Server will still send an uncompressed backup stream to the VDI? Therefore, the control in Azure is the one which will explicitly specify whether SQL should send a compressed or uncompressed backup stream to the VDI?
(See: https://techcommunity.microsoft.com/t5/SQL-Server/Backup-compression-and-Virtual-Device-Interface-VDI/ba-p/383600)
It's also not clear what the second bullet-point means.
Normally, SQL backup compression happens on the SQL VM, not on the back-end.
(https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/backup-compression-sql-server)
So, Azure can't really apply SQL native compression as this is done by the SQL Server instance.
Unless you mean that Azure applies the same compression algorithm to the backup stream which is received via the VDI?

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9dd4ffd9-cc54-a3cd-788f-e94416ab75ae
Version Independent ID: 12d96388-d643-414b-f913-9c1dce0cc66f
Content: Back up SQL Server databases in Azure VMs
Content Source: articles/backup/backup-sql-server-database-azure-vms.md
Service: backup
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

#assign:pvrk

@banzaisi Thanks for your comment.

#assign:sachdevaswati

#reassign:sachdevaswati

That’s right. We override instance level defaults with COMPRESSION / NO_COMPRESSION clause depending on that check box.
Fair point. Language can be improved. SQL does it in the VM for us, we don’t compress the stream.

The documentation has been updated.
#please-close


Unable to create data loaders ad pass the input in the batches

Hi ,
Thanks for the code. I am trying to pass the data in batches to the ensemble model and train it.
But while creating data loaders, it is not working as str is not accepting.
"TypeError: new(): invalid data type 'str'
class CommentsDataset(torch.utils.data.Dataset):
def init(self, encodings, labels):
self.encodings = encodings
self.labels = labels
def __getitem__(self, idx):
    item['text'] = torch.tensor(self.encodings[idx])
    item['labels'] = torch.tensor(self.labels[idx])
    return item

def __len__(self):
    return len(self.labels)

train_dataset = CommentsDataset(X_train, y_train)
#val_dataset = CommentsDataset(val_encodings, y_val_en)
test_dataset = CommentsDataset(X_test, y_test)
train_loader = DataLoader(train_dataset, batch_size=64, shuffle=True)
#val_loader = DataLoader(val_dataset, batch_size=16)
test_loader = DataLoader(test_dataset, batch_size=64)

Can you pls share pipeline to train the models

Hi @abharika725, sorry for the belated reply. I will try to find some bandwidth soon to create a training demo script. Thank you for your patience.


Is it possible to prevent the Client from automatically bringing the application in foreground ?

I've tried looking over the .js code to see if something was getting my attention but there's a lot more code than I expected and I can't really find what I'm looking for.
I'm looking for the code that's responsible for bring the application in the foreground when we have to accept queue. Because I made a plug-in to automatically accept it (I posted it here https://github.com/nomi-san/league-loader/issues/4#issuecomment-1399453857) but if the applications pops up then it makes it not really useful.
If anyone has ideas

You can try this API:
POST /riotclient/ux-allow-foreground

I don't know how can it do and its request body. But here is the hint.
"PostRiotclientUxAllowForeground": "Allows the background process to launch the game into the foregound.",
"PostRiotclientUxFlash": "Flash the ux process' main window and the taskbar/dock icon, if they exist."

Flashing the Ux always appears when receive chat message or change runes during champ-select.

You can try this API:
POST /riotclient/ux-allow-foreground

I don't know how can it do and its request body. But here is the hint.
"PostRiotclientUxAllowForeground": "Allows the background process to launch the game into the foregound.",
"PostRiotclientUxFlash": "Flash the ux process' main window and the taskbar/dock icon, if they exist."

Flashing the Ux always appears when receive chat message or change runes during champ-select.

I searched a bit and apparently these endpoint don't expect a body, they are simply used to bring the app in the foreground and flash the app's icon.
The name ux-allow-foreground is misleading as itsn't used to "allow" or not the app to be bring in Foreground. It's used to bring the app in the Foreground and nothing else.
I'm looking at a tutorial on memory dumping, and I'm trying to do it on every league*.exe I find, because I suspect this endpoint is called in one of them. I'll notify you if I find anything :)

I'm looking at a tutorial on memory dumping, and I'm trying to do it on every league*.exe I find, because I suspect this endpoint is called in one of them. I'll notify you if I find anything :)

You can put these EXEs into Dependencies Walker or monitor them with API Monitor to get OS APIs are used.
There are many win32 functions able to achieve the same behaviours.
ShowWindow();
SetWindowPos();
BringWindowToTop();
SetForegroundWindow();
SetActiveWindow();


Postgres: force generic plan for better nullability inference.

breaking change
Currently when using the query! and query_as! macro's sqlx uses explain (verbose, format json) execute {statement_id} to get the query plan of a prepared statement/query. Then looks through the plans and tries to be more accurate with the type inference.
If a prepared statement has query parameters it needs to fill then in with a valid argument and uses NULL for every one because it is always a valid argument.
This causes the query planner to give a query plan back that is optimized when the function arguments are all NULL, this is not always correct.
This pr forces postgres to use a generic execution plan when describing a prepared statement with function arguments. That way it won't make optimizations based on the given parameters.
Fixes #3539, #1265, https://github.com/launchbadge/sqlx/issues/2796#issuecomment-1923456127, #3408, #2127

I think providing a constant value may end up with the same problem in different queries.
I'm wondering if at a certain point, it would be easier to parse the SQL, just to get an idea of its structure. We'd still want to use the database for type analysis though.

I think providing a constant value may end up with the same problem in different queries.
I'm wondering if at a certain point, it would be easier to parse the SQL, just to get an idea of its structure. We'd still want to use the database for type analysis though.

I just found out about force_generic_plan which gets the same result without providing a random value for a type.

That sounds like it has potential, yeah. Reducing the planning overhead might help with compile times a bit too.
Make sure to do SET LOCAL so it doesn't persist for the lifetime of the connection. describe() can be called at runtime too.

Technically breaking since it can change the output of analysis.
Also kind of why I'm starting to think maybe we should parse the SQL. The output of EXPLAIN isn't meant to be stable at all.

I think that's going to make the macro's quite a bit slower though

It'd be on-par with parsing the EXPLAIN output, and one less round-trip to the server (which is going to be where most of the overhead is anyway).

It'd be on-par with parsing the EXPLAIN output, and one less round-trip to the server (which is going to be where most of the overhead is anyway).

I had some time on my hands the last few weeks so I thought I'd try and experiment a bit with parsing the sql myself.
Currently sqlx needs to:

Prepare the query.
Fetch the attnotnull option.
Get the query plan from the database (for Postgres).

Which is 3 queries per macro invocation.
Step 2 and 3 combined take roughly between 750μs-3ms from what i've tested (Postgres on localhost).
With my implementation:

Prepare the query.
Fetch the database tables and cols (1 query that can be cached.)
Parse and go through the query.

So this means 1 query for every macro invocation and 1 query once for all the macro's (per database).
My implementation takes between 10μs-250μs in debug mode (depending on how big the query is).
So it's quite a bit faster and this also gives a lot more control over nullability which make the macro's more correct. My implementation is however not complete and far from ready, it doesn't support schema's also the integration in sqlx with query parameters is difficult but it's enough to experiment a bit.
so it's definitely feasible but a lot of work to get right.
Link to repo
Implementation in sqlx


Cap'n Proto instead of Protocol Buffers

In README, there is a note about Protocol Buffers. They are great, but still can't compete with Cap'n Proto (also from the creator of Protocol Buffers).
After applying brotli and zlib compression to the content "serialized" by Cap'n Proto, we should end up with (significantly) lower power consumption on small devices while maintaining higher throughput than Protocol Buffers.

Would need go bindings first so we can implement this.

https://github.com/zombiezen/go-capnproto2

Didn't see that :3


Added testcases for Tokens & TotalAmount Component

I've added testcases for Tokens & TotalAmount Components which have increased code coverage of those components.
Before PR:

After PR:

Fixed the snapshot testcases to compare HTML instead of vm of the component.

In general, I would skip matching the snapshot and would rather test the logic of the component, because:

if we will change the class name the snapshot matching would fail;
we would need to update it none structure based tests less often

@NitinRamnani There are few suggestions, would you work on fixing it? We can merge this once the PR is approved.


Add build logs to database.

Checklist

[ ] I tested all changes and all related features with different users (student, tutor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.
[x] Server: I added multiple integration tests (Spring) related to the features (with a high test coverage)
[x] ~Server: I added @PreAuthorize and check the course groups for all new REST Calls (security)~
[x] Server: I implemented the changes with a good performance and prevented too many database calls
[x] Server: I documented the Java code using JavaDoc style.

Motivation and Context
See #2067:
Currently, Artemis has to fetch the build logs from the CI server (like Bamboo) every time the client requests these logs.
This is not optimal as on the one hand, it causes additional requests to the CI server. On the other hand, the build logs might be cleaned on the CI server and are thus not available anymore.
Description
We store the build logs of failed builds within Artemis. If the build plans are cleaned on the CI server, they are still persisted in Artemis.
We do not have to store logs of builds that did not fail as the feedback is then displayed directly within Artemis.
Artemis will still include the current behavior (fetching the build logs) as existing submissions do not have build logs stored in the database and we currently only plan to implement this behavior for Bamboo, not for Jenkins.
Steps for Testing

Participate in a programming exercise using the online code editor
Produce a failed build -> The build log should be shown & should be correctly formatted
If testing locally (requires setup for the programming exercises): Ensure that the build logs are persisted in the database

Test Coverage

ExerciseService.java: 85%
programming-exercise.component.ts 95%

The database changes look good to me and are approved 👍
Before we merge, we should make sure to store the logs in the database and to show them in the client

@krusche
The logs get now stored in the database and will only be fetched from Bamboo if no entries could be found.
We filter these logs (the avoid unnecessary information for students, that makes the log hard to read), currently when the client requests the logs.
This means that all logs are persisted into the database and filtered every time the client requests them.
Should we only store the filtered logs? This would reduce the number of logs stored in the database and would also only requiring the filtering once, but in case we might need ALL logs later at some point, we don't have them anymore.

@krusche
The logs get now stored in the database and will only be fetched from Bamboo if no entries could be found.
We filter these logs (the avoid unnecessary information for students, that makes the log hard to read), currently when the client requests the logs.
This means that all logs are persisted into the database and filtered every time the client requests them.
Should we only store the filtered logs? This would reduce the number of logs stored in the database and would also only requiring the filtering once, but in case we might need ALL logs later at some point, we don't have them anymore.

Please only store the filtered logs in the database. There are so many logs (especially all the downloading entries by Maven) which are not interesting at all and which would simply pollute the database!

@krusche

Please only store the filtered logs in the database. There are so many logs (especially all the downloading entries by Maven) which are not interesting at all and which would simply pollute the database!

I've changed it.

I was able to get compilation errors however when I tried throwing runtime errors: throw new RuntimeException() they were not shown in the build log.

That's not the idea of the build logs. They are only meant to show compile errors.
Runtime errors would be part of the test execution. The test case would then decide whether those are handled or not and what kind of feedback is shown

@sascha11110 Could you test it again on TS1?


Question: is lazy loading Slate and volto-slate possible?

@tiberiuichim I was wondering if it would be possible to lazy load volto-slate and slate itself?
We are checking out custom bundles regularly and volto-slate and slate are roughly 200k that might make a difference on loading times. Here is the lighthouse treemap report from one of our projects.

I'd just like to understand what's needed to accomplish lazy loading and how much effort it would cost. cc @sneridagh

we might lazy load some stuff in volto-slate, but not slate.js, unless we store html in the slate blocks.
draft-js is even worse, though, it's about double the total payload of volto-slate + dependencies, as far as I can recall (if you count all the draft/redraft/immutable libs). So short term, getting rid of draft would be even better.


Cannot build Jupyter Book documentation

All of the docs_check.yml and deploy_docs.yml tests are currently passing in the OG-Core repository. However, I cannot get the documentation to build in OG-Core or any of the other country calibrations using the jb build ./docs/book command.
Because jupyter-book and sphinxcontrib-bibtex are not in the environment.py or setup.py files, I do the following steps.

Create ogcore-dev conda environment: conda env create -f environment.yml
Activate ogcore-dev conda environment: conda activate ogcore-dev
Install ogcore package to conda environement: pip install -e .
Install jupyter-book package: pip install jupyter-book
Install sphinxcontrib-bibtex package: pip install sphinxcontrib-bibtex
Build Jupyter Book documentation: jb build ./docs/book

When I first did this, I got the following error.
exception: jsonschema 3.2.0 has no such extra feature 'format-nongpl'

This jupyter-book GitHub issue proposed setting the _config.yml execute setting to force instead of cache.
# Execution settings
execute:
  execute_notebooks      : force

This issue gives an even more detailed discussion of how and why the original error arises and that the cache option can be used again once a new version of jupyter-book is merged.
Once I made that change to _config.yml, that error went away and I started getting this new error, which I cannot get to go away.
  File "/opt/anaconda3/envs/ogcore-dev/lib/python3.10/site-packages/jupyter_client/kernelspec.py", line 287, in get_kernel_spec
    raise NoSuchKernel(kernel_name)
jupyter_client.kernelspec.NoSuchKernel: No such kernel named ogcore-dev

I tried installing ipython and I tried installing jupyter (general notebooks), but none of those packages solved this issue.
cc: @jdebacker

@rickecon Confirmed a failure on my machine with Jupyter Book 0.11.3:
(base) jason.debacker@JDEBACKER docs % jb build ./book
Running Jupyter-Book v0.11.3
Source Folder: /Users/jason.debacker/repos/OG-Core/docs/book
Config Path: /Users/jason.debacker/repos/OG-Core/docs/book/_config.yml
Output Path: /Users/jason.debacker/repos/OG-Core/docs/book/_build/html
Running Sphinx v5.0.2
loading translations [None]... not available for built-in messages
WARNING: cannot override config setting 'html_add_permalinks' with unsupported type, ignoring
WARNING: The config value `language' has type `NoneType'; expected `str'.

Extension error (sphinx.config):
Handler <function check_confval_types at 0x7fa33877f5f0> for event 'config-inited' threw an exception (exception: 'NoneType' object has no attribute 'startswith')
Traceback (most recent call last):
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/sphinx/events.py", line 94, in emit
    results.append(listener.handler(self.app, *args))
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/sphinx/config.py", line 431, in check_confval_types
    default = default(config)  # evaluate default value
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/sphinx/builders/latex/__init__.py", line 468, in default_latex_engine
    elif config.language.startswith('zh'):
AttributeError: 'NoneType' object has no attribute 'startswith'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/jupyter_book/sphinx.py", line 128, in build_sphinx
    keep_going=keep_going,
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/sphinx/application.py", line 247, in __init__
    self.events.emit('config-inited', self.config)
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/sphinx/events.py", line 103, in emit
    (listener.handler, name), exc, modname=modname) from exc
sphinx.errors.ExtensionError: Handler <function check_confval_types at 0x7fa33877f5f0> for event 'config-inited' threw an exception (exception: 'NoneType' object has no attribute 'startswith')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/jason.debacker/anaconda3/bin/jb", line 8, in <module>
    sys.exit(main())
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/jupyter_book/cli/main.py", line 320, in build
    result, builder, OUTPUT_PATH, build_type, PAGE_NAME, click.echo
  File "/Users/jason.debacker/anaconda3/lib/python3.7/site-packages/jupyter_book/cli/main.py", line 519, in builder_specific_actions
    raise RuntimeError(_message_box(msg, color="red", doprint=False)) from result
RuntimeError:
===============================================================================

There was an error in building your book. Look above for the cause.

===============================================================================

@rickecon Have you tried making a kernel of the ogcore-dev virtual environment.
In the command line, and after installing ipykernel, you can do:
python -m ipykernel install --user --name=ogcore-dev

Follow up -- after creating the ogcore-dev kernel, the book built, though there are some warnings:
(ogcore-dev) jason.debacker@JDEBACKER docs % jb build ./book
Running Jupyter-Book v0.13.1
Source Folder: /Users/jason.debacker/repos/OG-Core/docs/book
Config Path: /Users/jason.debacker/repos/OG-Core/docs/book/_config.yml
Output Path: /Users/jason.debacker/repos/OG-Core/docs/book/_build/html
Running Sphinx v4.5.0
[etoc] Changing master_doc to 'content/intro/intro'
checking bibtex cache... out of date
parsing bibtex file /Users/jason.debacker/repos/OG-Core/docs/book/OGCore_references.bib... parsed 28 entries
parsing bibtex file /Users/jason.debacker/repos/OG-Core/docs/book/citations.bib... parsed 18 entries
myst v0.15.2: MdParserConfig(renderer='sphinx', commonmark_only=False, enable_extensions=['colon_fence', 'dollarmath', 'linkify', 'substitution', 'tasklist'], dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', disable_syntax=[], url_schemes=['mailto', 'http', 'https'], heading_anchors=None, heading_slug_func=None, html_meta=[], footnote_transition=True, substitutions=[], sub_delimiters=['{', '}'], words_per_minute=200)
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 30 source files that are out of date
updating environment: [new config] 30 added, 0 changed, 0 removed
Executing: content/theory/demographics in: /Users/jason.debacker/repos/OG-Core/docs/book/content/theory
Executing: content/theory/households in: /Users/jason.debacker/repos/OG-Core/docs/book/content/theory
reading sources... [100%] content/theory/stationarization
/Users/jason.debacker/repos/OG-Core/ogcore/aggregates.py:docstring of ogcore.aggregates.revenue:50: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/aggregates.py:docstring of ogcore.aggregates.revenue:51: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/aggregates.py:docstring of ogcore.aggregates.revenue:55: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/aggregates.py:docstring of ogcore.aggregates.revenue:59: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/aggregates.py:docstring of ogcore.aggregates.revenue:60: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/elliptical_u_est.py:docstring of ogcore.elliptical_u_est:1: CRITICAL: Missing matching underline for section title overline.

------------------------------------------------------------------------
This script takes a Frisch elasticity parameter and then estimates the
parameters of the elliptical utility fuction that correspond to a
/Users/jason.debacker/repos/OG-Core/ogcore/elliptical_u_est.py:docstring of ogcore.elliptical_u_est.estimation:11: ERROR: Unexpected indentation.
WARNING: missing attribute mentioned in :members: option: module ogcore.firm, attribute get_KLratio_old
WARNING: missing attribute mentioned in :members: option: module ogcore.firm, attribute get_K_from_Y
WARNING: missing attribute mentioned in :members: option: module ogcore.firm, attribute get_K_from_Y_and_L
WARNING: missing attribute mentioned in :members: option: module ogcore.firm, attribute get_K_new
WARNING: missing attribute mentioned in :members: option: module ogcore.household, attribute get_cm
/Users/jason.debacker/repos/OG-Core/ogcore/output_plots.py:docstring of ogcore.output_plots.plot_aggregates:17: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/output_plots.py:docstring of ogcore.output_plots.plot_aggregates:18: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/output_plots.py:docstring of ogcore.output_plots.plot_aggregates:20: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/output_plots.py:docstring of ogcore.output_plots.plot_aggregates:22: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/output_plots.py:docstring of ogcore.output_plots.plot_gdp_ratio:17: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/output_plots.py:docstring of ogcore.output_plots.plot_gdp_ratio:18: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/docs/book/content/api/output_tables.rst:6: WARNING: Inline strong start-string without end-string.
/Users/jason.debacker/repos/OG-Core/ogcore/output_tables.py:docstring of ogcore.output_tables.dynamic_revenue_decomposition:49: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/output_tables.py:docstring of ogcore.output_tables.dynamic_revenue_decomposition:51: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/output_tables.py:docstring of ogcore.output_tables.dynamic_revenue_decomposition:61: WARNING: Enumerated list ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/output_tables.py:docstring of ogcore.output_tables.macro_table:17: ERROR: Unexpected indentation.
/Users/jason.debacker/repos/OG-Core/ogcore/output_tables.py:docstring of ogcore.output_tables.macro_table:18: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/parameters.py:docstring of ogcore.parameters.Specifications.update_specifications:24: ERROR: Unexpected indentation.

/Users/jason.debacker/repos/OG-Core/docs/book/content/api/public_api.rst:11: WARNING: toctree directive not expected with external-toc [etoc.toctree]
/Users/jason.debacker/repos/OG-Core/ogcore/tax.py:docstring of ogcore.tax.get_biz_tax:6: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/Users/jason.debacker/repos/OG-Core/ogcore/txfunc.py:docstring of ogcore.txfunc:1: CRITICAL: Missing matching underline for section title overline.

------------------------------------------------------------------------
This script reads in data generated from the Tax Calculator model.
It then estimates tax functions tau_{s,t}(x,y), where
/Users/jason.debacker/repos/OG-Core/ogcore/txfunc.py:docstring of ogcore.txfunc.txfunc_est:30: WARNING: Bullet list ends without a blank line; unexpected unindent.
WARNING: missing attribute topshare in object ogcore.utils.Inequality
/Users/jason.debacker/repos/OG-Core/ogcore/utils.py:docstring of ogcore.utils.get_initial_path:23: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/Users/jason.debacker/repos/OG-Core/docs/book/content/contributing/contributor_guide.md:0: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/equilibrium.md:353: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/financial.md:17: WARNING: duplicate label of equation EqMarkClr_zetaD2, other instance in content/theory/financial
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/financial.md:: CRITICAL: Duplicate ID: "equation-eqmarkclr-zetad2".
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/financial.md:53: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/firms.md:112: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/government.md:34: WARNING: Non-consecutive header level increase; 4 to 6 [myst.header]
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/government.md:561: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/households.md:205: WARNING: duplicate label of equation EqHHBC2, other instance in content/theory/government
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/households.md:235: WARNING: duplicate label of equation EqMTRx_derive, other instance in content/theory/government
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/households.md:240: WARNING: duplicate label of equation EqMTRy_derive, other instance in content/theory/government
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/households.md:294: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/households.md:16: WARNING: duplicate label glue, other instance in /Users/jason.debacker/repos/OG-Core/docs/book/content/theory/demographics.md
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/intro.md:2: WARNING: duplicate label chap_intro, other instance in /Users/jason.debacker/repos/OG-Core/docs/book/content/intro/intro.md
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/market_clearing.md:140: ERROR: Document or section may not begin with a transition.
/Users/jason.debacker/repos/OG-Core/docs/book/content/citations.md:3: WARNING: duplicate label "DEP19" for keys "DeBackerEtAl:2019" and "DEP:2019"
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] content/theory/stationarization
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/equilibrium.md:93: WARNING: equation not found: EqHH_cmDem
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/equilibrium.md:199: WARNING: undefined label: chap_calibr
/Users/jason.debacker/repos/OG-Core/docs/book/content/theory/equilibrium.md:331: WARNING: equation not found: EqHH_cmDem
generating indices... genindex py-modindex done
highlighting module code... [100%] ogcore.utils
writing additional pages... search done
copying images... [ 85%] _build/jupyter_execute/content/theory/households_1_1.pncopying images... [100%] content/theory/images/EllipVsCFE_MargUtil.png
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 51 warnings.

The HTML pages are in book/_build/html.

===============================================================================

Finished generating HTML for book.
Your book's HTML pages are here:
    book/_build/html/
You can look at your book by opening this file in a browser:
    book/_build/html/index.html
Or paste this line directly into your browser bar:
    file:///Users/jason.debacker/repos/OG-Core/docs/book/_build/html/index.html

===============================================================================

@jdebacker. Yes. That works for me. And I guess we don't have to worry about this for the CI testing for some reason.

@jdebacker. I am marking this as resolved. Thanks for finding the ipykernel solution.

@jdebacker. I reopened this issue because these same problems are now occurring in the docs_check.yml and deploy_docs.yml tests (see PR #850).


[Bug] Global state root not found

🐛 Bug Report

Snarkos is trying to do fee verification for the invalid prover solution transactions and errors with Fee verification failed: global state root not found.
Steps to Reproduce

git commit:               4896a1200a4605d1de6fe6cb53e1efa9ccdb6152
Sanrkos Command: snarkos start --nodisplay --verbosity 1  --private-key-file private.key --validator --validators ${local.peers}
Expected Behavior
Ignoring unconfirmed transaction since it is invalid prover solution

Error Logs
2023-12-11T07:39:40.661637Z  WARN Failed to add unconfirmed solution 'puzzle1748a7tsl9..' to the memory pool - Invalid unconfirmed solution 'puzzle1748a7tsl9..': Invalid prover solution 'puzzle1748a7tsl9ahgvu54gr32wuygx7zhlfrd8hascu5k5p43323ygn770qky4qwlfggsc7yjpd2n7paqqsr56dw' for the current epoch.
2023-12-11T07:39:41.538010Z  WARN Failed to add unconfirmed transaction 'at1jwkwhx9lvrays..' to the memory pool - Invalid unconfirmed transaction 'at1jwkwhx9lvrays..': Fee verification failed: global state root not found

Your Environment

snarkOS Version: 4896a1200a4605d1de6fe6cb53e1efa9ccdb6152 on testnet3 branch

Rust Version

rustup 1.26.0 (5af9b9484 2023-04-05)
cargo 1.74.1 (ecb9851af 2023-10-18)
rustc 1.74.1 (a28077b28 2023-12-04)

Computer OS

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

I'm afraid you misunderstood: the invalid prover solution is not included in the unconfirmed transaction

Those 2 errors are actually 2 different errors - prover solutions are not transactions. Also I'm not sure what's the "bug" here - the node is supposed to verify incoming prover solutions and transactions, and those invalid ones will be ignored by the node.

Thank you for the responses. Agreed on the invalid prover solutions not being included but I see Fee verification failed: global state root not found for invalid transactions. I am trying to understand Should the node be persisting the state root info? or should it verify fee for invalid transactions?

The "global state root" is the root of block hash merkle tree and indicates the reference point of the transaction. It is tracked by nodes.

should it verify fee for invalid transactions?
You can't tell if the transaction is valid if you don't verify the fee - this error indicates the invalid fee transition caused the transaction to be invalid.


[SPARK-47504][SQL] Resolve AbstractDataType simpleStrings for StringTypeCollated

What changes were proposed in this pull request?
Renaming simpleString in StringTypeAnyCollation. This PR should only be merged after https://github.com/apache/spark/pull/45383 is merged.
Why are the changes needed?
SPARK-47296 introduced a change to fail all unsupported functions. Because of this change expected inputTypes in ExpectsInputTypes had to be changed. This change introduced a change on user side which will print "STRING_ANY_COLLATION" in places where before we printed "STRING" when an error occurred. Concretely if we get an input of Int where StringTypeAnyCollation was expected, we will throw this faulty message for users.
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
Existing tests were changed back to "STRING" notation.
Was this patch authored or co-authored using generative AI tooling?
No.

@cloud-fan Could we merge this in? So some new PR does not conflict with it again.

thanks, merging to master!


Fixed Invalid CEN extra data field on recent JVM

Jar crafted with BND raise an error when opened by the JVM jar tools:
https://bugs.openjdk.org/browse/JDK-8313765
It seems that this state of things won't be changed on the JVM side. This patch exposes an boolean settings to build the jar produced by sbt-osgi using the JVM tools instead of the one of BND. This result in bundle supported by the the build tools with no extra flags passed to the JVM.

@eed3si9n Would it be possible to review + merge this and release a new version? We are also experiencing this in Pekko

@romainreuillon Do you want to rebase this PR against main to bring in the latest changes? Also do you think it would be possible to add tests (not a deal breaker but would be good to verify that everything is working correctly).

So I can confirm that the feature that this PR implements doesn't work on Windows, see https://github.com/sbt/sbt-osgi/pull/115 for more details


Corrections (day 4 and 9)

Summary
Making corrections to achieve the gold star.
Day 4
My original solution had a few errors including not searching for multiple matches in an input and double counting the diagonal starting at 0,0. Once those were fixed, The correct solution was still not coming, so I reproached the problem. Rather than collecting all the various slices of input and searching them for the correct word, I walk the puzzle and for each space look in each direction for a match.
Day 9
The larger input puzzle revealed that as the number of files grows past ten, inserting a single rune to represent the file is a challenge. Shifting to using a struct solved the issue.

This fixes code from #4 and #10


Feature Request: Support for Always-On VPN Tunneling with Netbird on Android

Dear GitHub Team,
I hope this message finds you well. I would like to request a new feature for the Android platform that would significantly enhance the security and flexibility of VPN usage. The feature I'm proposing is the ability to have an always-on VPN connection while using Netbird Android client to tunnel through the my primary VPN.
Feature Details:
Always-On VPN: Ensure that the primary VPN connection is always active, providing continuous security and privacy protection.
Secondary VPN Tunneling (Netbird): Allow users to establish a secondary VPN connection that tunnels through the always-on primary VPN. This feature would enable users to add an extra layer of encryption and route their traffic through multiple VPN servers.
User Interface: Integrate a simple and intuitive user interface within the VPN settings on Android, allowing users to configure and manage both the primary and secondary VPN connections easily.
Compatibility: Ensure compatibility with a wide range of VPN protocols and services to provide users with flexibility in choosing their preferred VPN providers.
Performance Optimization: Implement performance optimizations to minimize any potential latency or bandwidth issues that might arise from using multiple VPN connections simultaneously.
Use Case:
This feature would be particularly beneficial for users who require an additional layer of security and privacy, such as journalists, activists, and users in regions with strict internet censorship. By allowing a secondary VPN to tunnel through the primary always-on VPN, users can enhance their online anonymity and protect their data from potential threats.
Conclusion:
Implementing this feature would provide a significant security enhancement for Android users and cater to those who need advanced VPN configurations. I believe this addition would make the Android platform more robust and secure for all users.
Thank you for considering this feature request. I look forward to the possibility of seeing this implemented in future updates.
Best regards,
~ Johnny

Double VPNs mode will not be more security than single VPN mode.

I'm more interested in routing traffic through Netbird without interrupting my primary VPN connection than in security. I understand that double VPN can offer additional layers of privacy, but it doesn't always translate to significantly greater security. For most users, a single, well-configured VPN connection from a reliable provider is sufficient for both security and performance.


[MINOR] Add third-part dependencies licenses

Add third part dependencies licenses
Copy the licenses into dist/licenses

@xwm1992 Please take a look.


docs: make example follow ctp style guide

It's literally a rice brother. Rices dont need to follow the spec 💀
but whatever


Spark: Allow setting arbitrary options for ClickHouseClient

https://github.com/housepower/spark-clickhouse-connector/issues/201#issuecomment-1308198643

Would these options accept SSL, or is extra work required to use https when specifying HTTP protocol?

It should support all keys defined in com.clickhouse.client.config.ClickHouseClientOption


JUST APIs with response 200 are logged?

Hi, thank you for this amazing package.
Following your set-up it looks like I am able to log just APIis that have 200 errors;
Any idea?
(A part from adding it in middleware and installeds app)
Store API Logger to Database
DRF_API_LOGGER_DATABASE = True  # Default to False
DRF_LOGGER_QUEUE_MAX_SIZE = 100
DRF_LOGGER_INTERVAL = 10
hide sensitive information from being exposed in the logs
DRF_API_LOGGER_EXCLUDE_KEYS = ['password', 'token', 'access', 'refresh']
@vishalanandl177

Is it happening over the server or locally?
Is DEBUG on?
There may be a high chance that it is not returned the content-type 'application/json'. This can happen due to API failure and returning HTML response.

Closing due to inactivity. Feel free to reopen.

Fund that the problem was frok my side.
This logger logs just Jason Response, and not Response, and needs the explicit attribute status=


DOC: add bleeding-ci badge

Also fixup a left over from my copypasta (cmyt -> amical)

The build is failing on master, now working on a fix with this branch while I'm at it
see my fork for progress:
https://github.com/neutrinoceros/AMICAL/actions/workflows/bleeding-edge.yaml


[GOBBLIN-1573]Fix the ClassNotFoundException in streaming test pipeline

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1573

Description

[ ] Here are some details about my PR, including screenshots (if applicable):
Now when user run kafka to hdfs streaming pipeline, there is one missing class and cause java.lang.ClassNotFoundException: org.apache.gobblin.converter.string.KafkaRecordToStringConverter, this is the PR to add that missing part

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason: build succeed

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3425 (7b95001) into master (5bc22a5) will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #3425      +/-   ##
============================================
+ Coverage     43.29%   43.31%   +0.02%
- Complexity     2017     2019       +2
============================================
  Files           402      402
  Lines         17325    17325
  Branches       2121     2121
============================================
+ Hits           7500     7504       +4
+ Misses         8987     8981       -6
- Partials        838      840       +2

Impacted Files
Coverage Δ

...lin/util/filesystem/FileSystemInstrumentation.java
85.71% <0.00%> (-7.15%)
:arrow_down:

.../java/org/apache/gobblin/cluster/SleepingTask.java
39.39% <0.00%> (-6.07%)
:arrow_down:

...a/org/apache/gobblin/cluster/GobblinHelixTask.java
60.21% <0.00%> (-2.16%)
:arrow_down:

.../org/apache/gobblin/cluster/GobblinTaskRunner.java
63.78% <0.00%> (+0.32%)
:arrow_up:

...main/java/org/apache/gobblin/util/HadoopUtils.java
30.26% <0.00%> (+0.32%)
:arrow_up:

...in/java/org/apache/gobblin/cluster/HelixUtils.java
33.33% <0.00%> (+5.07%)
:arrow_up:

Continue to review full report at Codecov.

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


Num.absDiff overflow on linux aarch64 (rpi 4, rpi 5)

app "helloWorld"
    packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br" }
    imports [pf.Stdout]
    provides [main] to pf

main =
    largeNum : U128
    largeNum =<PHONE_NUMBER>60469231731687303715884105728
    dbg "num set"

    diff = Num.absDiff largeNum largeNum
    dbg "diff done"

    diff
    |> Num.toStr
    |> Stdout.line

running with roc dev results in:
[examples/helloWorld.roc:9] "num set" = "num set"
Roc crashed with:

        Integer subtraction overflowed!

Here is the call stack that led to the crash:

The same program works without issues on linux x86-64.
Using diff = largeNum - largeNum instead works, which is pretty strange, given that the implementation of absDiff is:
absDiff = \a, b ->
    if a > b then
        a - b
    else
        b - a

    largeNum =<PHONE_NUMBER>60469231731687303715884105728

    a = largeNum
    b = largeNum

    diffA =
        if a > b then
            a - b
        else
            b - a

    dbg "diffA good"

    diffB =
        absDiff largeNum largeNum

    dbg "diffB good"

    Stdout.line (Num.toStr diffB)

absDiff = \a, b ->
    if a > b then
        a - b
    else
        b - a

diffA works fine, but diffB crashes

The assembly looks strange, there is some seemingly pointless shifting around of the same data between different registers. One of the registers used for the subtraction is set to 0 instead of the argument (1), so that's why it doesn't work :smile:
Now I have to figure out why this borked assembly is generated.
I'm currently looking at using lldb's python API to generate execution traces so I don't need to jump around interactively all the time.

Comparing the good assembly on apple silicon vs the bad one on pi and comparing the LLVM IR for both as well, it's increasingly likely that this is an LLVM bug. I'm going to try and set up a minimal reproduction that does not use Roc.

Replacing the tail calls with call worked :tada: :tada: :tada:
This was my code change to do the replacement in crates/compiler/build/src/program.rs:
    let memory_buffer = {
        let dir = tempfile::tempdir().unwrap();
        let dir = dir.into_path();

        let app_ll_file = dir.join("app.ll");
        let app_bc_file = dir.join("app.bc");
        let app_o_file = dir.join("app.o");

        // write the ll code to a file, so we can modify it
        module.print_to_file(&app_ll_file).unwrap();

        let mut file_content = fs::read_to_string(&app_ll_file).unwrap();

        // Replace all occurrences of "tail call" with "call".
        file_content = file_content.replace("tail call", "call");

        // Open the file in write mode to overwrite it with the modified content.
        let mut file = File::create(&app_ll_file).unwrap();

        // Write the modified content back to the file.
        file.write_all(file_content.as_bytes()).unwrap();

        // Convert .ll to .bc
        use std::process::Command;
        let mut llvm_as_command = Command::new("llvm-as");
        llvm_as_command.args([
            app_ll_file.to_str().unwrap(),
            "-o",
            app_bc_file.to_str().unwrap(),
        ]);

        llvm_as_command.output().unwrap();

        // write the .o file. Note that this builds the .o for the local machine,
        // and ignores the `target_machine` entirely.
        //
        // different systems name this executable differently, so we shotgun for
        // the most common ones and then give up.
        let bc_to_object = Command::new("llc")
            .args([
                "-relocation-model=pic",
                "-filetype=obj",
                app_bc_file.to_str().unwrap(),
                "-o",
                app_o_file.to_str().unwrap(),
            ])
            .output()
            .unwrap();

        assert!(bc_to_object.status.success(), "{bc_to_object:#?}");

        MemoryBuffer::create_from_file(&app_o_file).expect("memory buffer creation works")
    };

This could be https://github.com/llvm/llvm-project/issues/70207, the fix for which seems to have landed in llvm 17.


Prevent more common spam

i.e.

[ ] a channel that posts the same comment on multiple claims
[ ] the same comment being posted in a short period of time by different channels on the same/different claims

this entails tracking the comments being sent in and if we start seeing similar comments coming it, we should block that user automatically, using a global blocked entry.

We should take a look at this soon as it's being abused/ automated more. The channels are created in the same timeframe, and all are used to react to comments in the same timeframe also. We should be able to detect this happening and autoban / stop the spammers.
This is becoming a bigger issue as this technique is used to maliciously slime comments or boost own spammy comments.

What if the internet connection is slow. And before the comment is sent, the user was able to press send twice. Or it's sent but doesn't appear, so user send it again. Making two similar comments. What if the comment is fine. Maybe one of them should still stay. And the other one just be merged to the first one.


Network errors with many resources being applied greater than soft file descriptor limit

What happened:
When running kubectl with several hundred resources, we started seeing interesting behavior:
error when deleting "ingresses.yaml": Delete "https://SOME_ID.TEST.SOME_REGION.eks.amazonaws.com/apis/networking.k8s.io/v1/namespaces/default/ingresses/minimal-ingress-295": dial tcp: lookup SOME_ID.TEST.SOME_REGION.eks.amazonaws.com: no such host

We were able to reproduce the apparent issue by creating a bunch of "dummy" resources - in this case ingresses - and applying them all.
If the number of resources is greater than the currently configured file descriptor soft limit, you should start seeing errors.
If you increase your soft limit, the errors will not appear.
Interestingly, we created this test using namespaces and once above the soft limit we did not experience errors, just a marked slowdown in the CLI.
What you expected to happen:
No errors or performance impact with many resources (ideally). No need to increase file descriptor soft limit.
How to reproduce it (as minimally and precisely as possible):

Check ulimit count ulimit -n
Create number of resources in a yaml (apparently resources need to be ingress/daemonset/deployment in our case) > ulimit by creating a file with the following content called ingresses-test.yaml.jinja

{% for iter_value in range(300) %}apiVersion: v1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-ingress-{{ iter_value }}
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
      - path: /testpath/{{ iter_value }}
        pathType: Prefix
        backend:
          service:
            name: test
            port:
              number: 60{{ iter_value }}
---
{% endfor %}

Generate the yaml jinja ingresses-test.yaml.jinja -o ingresses.yaml
Apply the yaml kubectl apply -f ingresses.yaml
Experience unexpected network errors

WORKAROUND:

Increase soft limit for your OS (for example macOS):
sudo launchctl limit maxfiles 10000 200000
Completely re-launch your terminal, confirm ulimit actually increased with ulimit -n
Run kubectl apply step from above
There should be no errors

Anything else we need to know?:

Use lsof -a -p PROCESS_ID to see the network connections in TCP CLOSED state (not sure why this would still cause issues - maybe they aren't getting cleaned up completely). Add wc -l to see the count grow as you run kubectl apply until reaching the soft limit.

Environment:

Kubernetes client and server versions (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:41:42Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.2-eks-06eac09", GitCommit:"5f6d83fe4cb7febb5f4f4e39b3b2b64ebbbe3e97", GitTreeState:"clean", BuildDate:"2021-09-13T14:20:15Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}

Cloud provider or hardware configuration:

AWS EKS 1.21 w/EC2 Node Groups

OS (e.g: cat /etc/os-release):

macOS Big Sur 11.6.1

This might be related ? https://github.com/kubernetes/kubectl/issues/1128

Let's track this at #1128
/close

posted a PR with a fix https://github.com/kubernetes/kubernetes/pull/108274
until that gets accepted a following workaround can be used:
TOKEN="`AWS_PROFILE=my-profile aws --region my-region eks get-token --cluster-name my-cluster | jq ".status.token" | sed 's/"//g'`"

kubectl apply -f ingresses.yaml --token=$TOKEN


Error when using ballerinax/kubernetes

Description:
Trying to run the given code snippet after installing Ballerina 1.0.0 Alpha by the installer, it gives an error saying error: invoking main method failed due to java.lang.NoClassDefFoundError: ballerinax/kubernetes/___init
Steps to reproduce:
import ballerina/io;
import ballerinax/kubernetes;

public function main() {
    io:println("Hello, World!");
}

Affected Versions:
Ballerina 1.0.0 Alpha

This issue exists in the all extensions and we will be fixing this in next immediate release.
As a work around, you need to replace the .jar file manually.
These are steps

Download docker-extension-balo-1.0.0-alpha.zip file from nexus [1] and unzip it.
Copy docker-artifacts/docker.jar and paste at <B7A_HOME>/bre/lib

You need to do the same steps for k8 as well.
[1] http://maven.wso2.org/nexus/content/repositories/releases/org/ballerinax/docker/docker-extension-balo/1.0.0-alpha/docker-extension-balo-1.0.0-alpha.zip

Following PRs will fix the above issue
https://github.com/ballerinax/kubernetes/pull/352
https://github.com/ballerinax/docker/pull/237
https://github.com/ballerinax/awslambda/pull/33
https://github.com/ballerina-platform/ballerina-distribution/pull/151


For elastcialert2 metrics

Hello  Karql . As we known, there are some metrics in the elastalert2 . is it possible to expose the metrics with our elastalert2-server.  it used the promethues-port to switch if it expose the metrics.

Hi @KevinLiangX !
Currently, the elastalert2-server does not have the capability to enable these metrics.
The easiest way would be to add the --prometheus_port parameter to startArguments in process.service.ts here: https://github.com/Karql/elastalert2-server/blob/5.8.0/src/services/process.service.ts#L105
The port should be different from the one used by the API for managing rules.
To have it work on the same port it requires more work.
An additional endpoint would need to be added to proxy requests.
IMO two ports it is ok.
When I find some time, I'll add the possibility to configure it via config.json file.

I've prepared a draft https://github.com/Karql/elastalert2-server/pull/96 but not tested it yet.

Done 😉

You need to add "prometheus_portinconfig/config.json`.
https://github.com/Karql/elastalert2-server/blob/5.9.0/README.md?plain=1#L102

https://github.com/Karql/elastalert2-server/releases/tag/5.9.0


[Cosmos] ConnectionStateListener reliability when no-activity connections

Describe the solution you'd like
Currently connectionStateListener act based on the response of a request. But when there is no request on the channel, we are going to miss the close channel event. This fix will improve this part.
CTL and benchmark validation
ETA: May/2022
Main feature #28266

PR merged in and released.


🐛 bump new release in order to push DNT packages

Motivation
One of the reasons that we're migrating to Deno is that our current process releases bad types for our packages. Instead, we want to leave off trying to hand roll a bunch of package.json and tsconfigs, and instead generate well-formed NPM packages by default with an automated tool like DNT. Now that we're migrated to Deno, we can fix those types.
Approach
Make some trivial changes, and bump the versions for all the packages.

with-cypress package.json is broken

with-cypress package.json is broken

😁  https://github.com/thefrontside/interactors/pull/281


feat: add blog tags

Fixes: #470
Changes:
Add a tag to a blog post.
Screenshots of the change:

may I ask if we can move the tag to the top of the article? @bzp2010


@kanaabe => Session id for users

cc: @nicholassewitz
Adds a force-session-id cookie to anonymous and logged in users.
We need to pass the param as a cookie in order to bypass Marketo requirements, where fields called 'session_id' are not accepted for anonymous users.

yay!!!!!!!
cc @anipetrov
we are adding session_id on form submittal. The field can be found on the lead, contact, or application object moving forward in Salesforce.

we will need to also add this same session_id on the event level, possibly as part of the identify event

@anipetrov We send the session_id on all identify calls as well as the tracking call when the embedded form is submitted. Is that enough?
https://github.com/artsy/force/blob/master/desktop/analytics/partner_application.js
https://cl.ly/0w2l1B380k37

if i am not mistaken if we add that session_id to the identify event, it will automatically be a field on any event sent by that user. i do have questions about the assigning and expiration conditions for that force_session_id cookie tho, how exactly does it work?

The problem is that marketo wouldn't accept the session_id's from that event for anonymous users.
Adding this cookie allows us another method to grab ids for the logged out users.

do you mean that marketo does not accept the segment generated cookie which lives under anonymous_id or are you talking about another session_id

adding onto Eve's comment in my research it seems like we send session_id with pretty much any analytics event we call.
Eve and I tried researching how and when session_id is set and expired, but we had not luck in figuring it out. In this implementation however we do guaruntee that the session_id passed in the analytics call will always match the session_id passed in the cookie
Marketo does not accept segment's anonymous_id if the user is anonymous

sounds good, thanks both of you for the context!

👍  Thanks for moving out of global and the rename. Looks like you have a ❌  but the rest looks good.

heads up @nicholassewitz, we've moved this into the partnerships app and the cookie is now called 'marketo-session-id'

is there a reason we are calling it marketo-session-id. it seems like that
could cause confusion since it is actually the force session_id?
On Fri, Mar 17, 2017 at 5:35 PM, Eve Essex<EMAIL_ADDRESS>wrote:

heads up @nicholassewitz https://github.com/nicholassewitz, we've moved
this into the partnerships app and the cookie is now called
'marketo-session-id'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/artsy/force/pull/1039#issuecomment-287477199, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKaPgpxdYDkSfYWECA8mrvFnH5-AsUcTks5rmvyZgaJpZM4Mg92-
.

i also sort of already implemented the changes on like 12 marketo forms but
np if there is a good reason to change it back.
On Fri, Mar 17, 2017 at 5:36 PM, Nicholas Sewitz<EMAIL_ADDRESS>wrote:

is there a reason we are calling it marketo-session-id. it seems like that
could cause confusion since it is actually the force session_id?
On Fri, Mar 17, 2017 at 5:35 PM, Eve Essex<EMAIL_ADDRESS>wrote:

heads up @nicholassewitz https://github.com/nicholassewitz, we've
moved this into the partnerships app and the cookie is now called
'marketo-session-id'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/artsy/force/pull/1039#issuecomment-287477199, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKaPgpxdYDkSfYWECA8mrvFnH5-AsUcTks5rmvyZgaJpZM4Mg92-
.

@kanaabe recommended that we not use a global cookie, and only set and reset them on pages where they are used.

hmm im not disputing moving them to specific page just the naming of the cookie being slightly confusing since it is not a unique session_id for marketo, but IS the force session_id.  @kanaabe  what do you think?

@eessex a cookie is "global" in the sense that it will remain on the user's browser from page to page unless you expire them immediately after -- which seems like a bad use case for a cookie. I'm looking at our cookies again tho, and how come we can't use force-NODE_ENV.session @eessex? Isn't it the same thing?
@nicholassewitz if we only add cookie logic/refreshes to a specific page, it means that we can't guarantee that the cookie will be up to date on every page. If another developer comes along and sees force_session_id they might assume it's an accurate session id when it might not be. If on the other hand we were to set the session id on each page load, i would call it something like force_session_id. Lmk if I'm not making sense -- basically i can just see someone assuming it's an id that's ok to use when it's actually not. Also tangent: I'm curious how the Marketo form gets the cookie details?

@kanaabe, we can't use the force-NODE_ENV.session because it doesn't match the actual session ID -- seems to be hashed.  Looking at the browser now my force-production.session is
"eyJpbk1lcmdlZEZvcmNlIjpmYWxzZSwicGFzc3BvcnQiOnt9LCJpZCI6ImUyZTUxMjIwLTBiNGQtMTFlNy05MzYzLTI3N2ZkNjA2ZDE1ZCIsImZsYXNoIjp7fX0"
The sd.SESSION_ID is "e2e51220-0b4d-11e7-9363-277fd606d15d"

Ah i didn't know the session was encrypted -- well that leads me down another path of, why? It's probably encrypted for a good reason, right? I'm going to guess it's related to session hijacking. We use HTTPS on our site so sniffing will not be a problem but what's the risk in not encrypting the id? Do you mind looking into this and determining if it's safe for us to pass the raw id through a cookie?

so it seems like passing the session_id to a cookie is a bad idea....https://en.wikipedia.org/wiki/Session_hijacking

Ok I am going to close this for now, sounds like the strategy needs reevaluated.

@eessex @kanaabe do you think we will run into the same issues of security if we pass the session id as a utm_param?


How can I act on a selection as soon as it is made, without requiring a button click?

I'm trying to do something which seems like it should be very straightforward, but just can't figure it out. I'm pretty new to JavaScript, so I may be missing something obvious. I would like to act on the newly selected value as soon as it is chosen (e.g. with a click or Enter), without requiring a button press. But I can't figure out which event to use. "oninput" fires whenever anything is typed in the input field, but not when the input field value is changed by picking an option from the list of suggestions. The "awesomplete-select" event seems like it should work, but it doesn't. I suspect that's because of event.preventDefault(), but if so I don't know how to override that and make the event fire. Thanks for any assistance anyone can offer!

How do I add a label to this issue?

You can use awesomplete-selectcomplete event which is fired when selection is made. See https://github.com/LeaVerou/awesomplete/issues/16438#issuecomment-195921708
The awesomplete-select event is here to allow cancelling awesomplete-selectcomplete event, so if you use evt.preventDefault() in awesomplete-select handler then awesomplete-selectcomplete event won't be triggered.

Thanks, I really appreciate the reply. I'm having difficulty following what is going on there with the jquery and the bind. Here is the code I have that is not working:
input = document.getElementById("districtPicker1");
var awesomplete = new Awesomplete(input);
awesomplete.list = districtNameArray;
input.setAttribute("awesomplete-selectcomplete", "selectDistrictWithPicker()");
input.setAttribute("oninput", "selectDistrictWithPicker()");
The "oninput" event gets fired whenever a character is typed into the input field.
But the "awesomeplete-selectcomplete" event doesn't get fired at all.
Do I need to do something analogous to
Awesomplete.$.bind(input, {
"awesomplete-selectcomplete": function(evt) {
console.log(evt.text); // String {label: "Java", value: "Java", valueOf: function, toString: function}
}
});
? Is there a vanilla JS way to do this? I am not currently using jQuery. Or could you help me to understand what that code is doing?
Thanks again.

It looks like you need something like this:
input = document.getElementById("districtPicker1");
var awesomplete = new Awesomplete(input);
awesomplete.list = districtNameArray;
Awesomplete.$.bind(input, { "awesomplete-selectcomplete": selectDistrictWithPicker });

The Awesomplete.$.bind function (which is part of Awesomplete) attaches selectDistrictWithPicker event handler to the awesomplete-selectcomplete event.
function selectDistrictWithPicker(evt) {
  console.log(evt.text);
}

Fantastic, that did the trick. Thank you! I still don't quite follow how it's working, but with the explanation you provided and a bit of time I should be able to get there.

Please note that Awesomplete does not use jQuery. JQuery is not the only thing that can define a $ function.
Closing this, since the issue seems to be fixed.

It looks like you need something like this:
input = document.getElementById("districtPicker1");
var awesomplete = new Awesomplete(input);
awesomplete.list = districtNameArray;
Awesomplete.$.bind(input, { "awesomplete-selectcomplete": selectDistrictWithPicker });

The Awesomplete.$.bind function (which is part of Awesomplete) attaches selectDistrictWithPicker event handler to the awesomplete-selectcomplete event.
function selectDistrictWithPicker(evt) {
  console.log(evt.text);
}

This actually worked perflectly for my case.
Thanks a lot!


Build error on docs

build error docs build in vercel
`

./pages/index.tsx:1:24
23:13:17.125 | Type error: Cannot find module '@web3-ui/components' or its corresponding type declarations.
23:13:17.125 |
23:13:17.125 | > 1 | import { Button } from '@web3-ui/components';
23:13:17.126 | |                        ^
23:13:17.126 | 2 |
23:13:17.126 | 3 | export default function Docs() {
23:13:17.126 | 4 |   return (

`

I haven't seen this error from the last few PRs, closing this


dialogs.CreateContext(turnContext, state) Error Value cannot be null. Parameter name: state

I am sure i am missing some basics but I am just following some out of the box simple sample code.  below sample code throws error of Value cannot be null. Parameter name: state.
public async Task OnTurn(ITurnContext turnContext)
{
if(turnContext.Activity.Type == ActivityTypes.Message)
{
var state = turnContext.GetConversationState<Dictionary<string,object>>();
var dialogCtx = dialogs.CreateContext(turnContext, state);
await dialogCtx.Continue();
}
}
but if i have state like below, it works.
var echobotstate = turnContext.GetConversationState < MyCustomStateClass >();
do i need to always initialize dictionary with sample value, if yes, samples code needs to be updated.

Ignore, it worked.  i has to add below in startup.cs.
options.Middleware.Add(new ConversationState<Dictionary<string, object>>(new MemoryStorage()));


feat(2892331342): Add "mainnet / goerli" dropdown switch to main navbar

Description of the Changes
Please add a detailed description of the change, whether it's an enhancement or a bugfix.
If the PR is related to an open issue please link to it.
Checklist

[ ] Changes have been done against master branch, and PR does not conflict
[ ] New unit / functional tests have been added (whenever applicable)
[ ] Test are passing in local environment
[ ] Docs have been updated
[ ] PR title is follow the Conventional Commits convention: <type>[optional scope]: <description>, e.g: fix: prevent racing of requests

This change is

@yairans-starkware please add description and fix linting

:tada: This PR is included in version 1.7.0-dev.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.7.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Does disabling Microsoft Search stop the deployment of the browser add in?

If Microsoft Search is disabled at https://admin.microsoft.com/Adminportal/Home#/MicrosoftSearch -> Set up, does the add in still deploy as part of the Office 365 Pro Plus install.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 77fb57a0-9af1-8ade-5846-4a44c6e1a702
Version Independent ID: 24c49cab-e850-df1f-5050-bac2c37c96bd
Content: Microsoft Search in Bing and Office 365 ProPlus
Content Source: DeployOffice/microsoft-search-bing.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

Nope - Microsoft = greedy piglets with no respect for people’s choice

Yes, @DHB-MSFT is happy to lock threads and answer other questions unrelated to this "feature," but does nothing about a MSFT employee spamming the entire tree with downvotes, nor do they bother even addressing the concerns voiced by so many people.  Not even a "we hear you, and he's  a contact to discuss this" response.

Based on customer feedback, we're making some changes to the plan to roll out the extension for Microsoft Search in Bing. For information about the changes, read this announcement. This article will be updated when more details are available.


WIP Add multiple Routers support

I started adding multiple routers support for #46. Idea is to query OTP server for a list of routers. And when one is chosen query to see which region it supports to show only map in correct location.
I added request and response object but I'm not sure how to add the rest of the code.

Currently this PR contains only the domain model classes. @trevorgerhardt, @buma has reviewed backbone documentation but is unsure how/where to actually trigger the request to the OTP server. This is something that would need to happen only at page load/startup.

@trevorgerhardt, more generally we need to add some new functionality to the client, but it's not clear how/where to insert code to update UI details based on information from the OTP server (e.g. get the list of available regions, get the list of available transportation modes on the server). Would you be able to give a quick course on how this works, or even implement these changes if they're minor?

Do we want the user to be able to switch between routers? With a dropdown for example?

Yes.
2015-07-31 15:58 GMT+02:00 Trevor Gerhardt<EMAIL_ADDRESS>
Do we want the user to be able to switch between routers? With a dropdown
for example?
—
Reply to this email directly or view it on GitHub
https://github.com/conveyal/otp.js/pull/67#issuecomment-126699578.

If we want to change which router we're querying then we need to expose that setting for other parts of the library that will want to use it. Have a default router, on page load query OTP, if there is more than one router expose the dropdown, on selection set the router and re-position the map. Save that selection for future usage.
Not sure if we need full blown router models/collections. I'd split it up into a simple view that controls the dropdown, a static configuration value that we can access throughout the library, and a function that we can call from client.js to kick off the query/population process and does all of the checking and setting of values.


Kill celcius with fire, replacing it with celsius

Description: Finally replaces all occurrences of "celcius" with "celsius".
Related issue (if applicable): fixes #1860
Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

lol how did that happen

:cookie:!!


Update DS to v60

What is the context of this PR?
Updates the DS version to v60
How to review

Tests pass
Schemas launch and surveys look as expected

Checklist

[ ] New static content marked up for translation
[ ] Newly defined schema content included in eq-translations repo

 Update DS to v60 (2 SP)


How are you ?

This is not an issue, I love this package, I discovered it 2 years ago and have been using it ever since. I just realized that your last online activity (github and twitter) was about a year ago, I was wondering if everything was ok. I hope everything is ok and you are doing well, thanks.

I was just about to ask the same thing @Koed00, do you need any help with the maintenance of the project?

Thanks for asking how I'm doing. I've been offline for a while due to some real life events that I had to deal with. This has led to me not being active at all with any of my online projects unfortunately.
Great to see that so many people are using Django-Q and I would love to find a way for it to be maintained better.
I would be open to having more people join as maintainers and hopefully that way keep the project alive.

@Koed00 Good to hear you are okay :).
As much as I'd like to help out, I do not have the capacity at the moment.
But there are some options!

Pin the message about looking for maintainers in the readme. And later on, move the project under its own organisation - so it is easier to add maintainers.

Ask https://jazzband.co/ to help with the maintenance - as far as I know, they maintain many django-related projects.

Eventually, I could help to spread the word in the community.

@Koed00 I hope that your problems have been completely resolved and if not, that you are at least getting there. Thanks for your work on django-q. I think @1oglop1's suggestions are worth considering, especially the jazzband one. As far as helping to maintain the project, I'd be happy to help, but it might take me a while to be helpful, I'm not at all familiar with django-q code or building task queue managers.

I actually started the process of moving to jazzband, but never got to finish it.
I'll try to make some time this weekend to do some cleanup and see if it is transferable in its current state.

@Koed00 I volunteer to help. I use django-q on a number of projects, I'm proficient in Python and I have some experience in open source (https://en.wikipedia.org/wiki/Jim_Jagielski).

@Koed00 It's good to read that you are still there and to see a sign of life ❤ . I hope for you that you will manage to deal with the things you have to deal with and can find the energy again in the future to do things that make you happy.
Let us know if we can do anything to migrate this project to jazzband, maybe you could add some issues in the project tracker of this repo
I will be open for helping out as well.

I was ready and pumped to go, and then my entire family caught Corona.
Everyone is doing fine now, I just need to find time to work on this.
I really appreciate all the offered support.
On Tue, Aug 9, 2022 at 10:25 AM Martijn Jacobs @.***>
wrote:

@Koed00 https://github.com/Koed00 It's good to read that you are still
there and to see a sign of life ❤ . I hope for you that you will manage
to deal with the things you have to deal with and can find the energy again
in the future to do things that make you happy.
Let us know if we can do anything to migrate this project to jazzband,
maybe you could add some issues in the project tracker of this repo
https://github.com/Koed00/django-q/projects
I will be open for helping out as well.
—
Reply to this email directly, view it on GitHub
https://github.com/Koed00/django-q/issues/664#issuecomment-1209072328,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6AQNLGP2WCQ7Z3GUGA2VLVYIIW3ANCNFSM5R6APRBA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I hope you are well. This project needs maintenance: 245 issues can be quite ok, but 53 PRs seems too much work done by community and not appreciated.
Django-Q dependencies are also getting too old. Please @Koed00 let us help this project.

Move the project to a dedicated (even django-q is good) organization like @1oglop1 has proposed
Check some PRs and it they are good, ask their developers to join your organization
Update dependecies and docs and fix issues together

from that moment on PRs can be reviewed by anyone in the team.
Thank you @Koed00, please don't let this simple and effective project to expire


Cleaning Collection

Hi,
I started using Dexie it recently, how do I clean a collection ?
Example:
Collection.clear();

Table.clear()
let db = new Dexie ('mydb') ;
db.version (1).stores ({friends: 'name, age'}) ;
db.friends.clear().then(...).catch (...)

@dfahlander there's a way to debug, since the table does not erase the data with this method

I've not heard about any such issue in Dexie. Try to create a reproduction of this and post the entire code here, including to seed the table with data so that we can reproduce it.
Yes you can debug the usual way with for example chrome debugger. Put breakpoints in your promise callbacks and don't forget to check the console for unhandled rejections. Call stacks will be easier to follow when Dexie is in debug mode (set Dexie.debug = true)