corruption/threading issues in transport layer?

Hi
tl/dr: reproducible example of instabilities: data corruption, assertions, null ref exceptions probably caused by bug within transport layer is attached.
I know you are deprecating this in favour of kestrel, but we were evaluating the library for use with an existing mono based server which needs to target quite a few obscure architectures (e.g. mono on qnap on various flavours of arm).    I'm not sure that the kestrel stuff will work for us right now for that reason.  A simple test of kestrel on mac using mono died horribly. I also didn't get as far as finding/porting the libuv stuff for qnap, so this project seemed like a good stopgap.
Anyway, long story short, some of our clients were experiencing receiving random connection closes from the server (we were never actively closing from the server!).  So I wrote a stress test app (attached) and it seems to display quite a lot of instability.
I swapped out a couple of alternative server implementations (MSHttpListener and kestrel).  They run stably, so I'm guessing that nowin is the culprit.  The owin.websocket wrapper is fairly trivial and the errors all seem to be down at the transport layers.
Errors seen include null ref on _socket in SaeaLayerCallback -  : _socket.ReceiveAsync(_receiveEvent); line 270.
I also saw an assertion followed by some corrupted websocket message data being passed up to the higher layers.  Think the assertion was
Debug.Assert(StartBufferOffset + ReceiveBufferPos == offset || _waitingForRequest); in Transport2HttpHandler, line 1039.
Anyway, it's all a bit intermittent and probably all caused by a single low level bug down in the guts of the transport layers.  I'll try and have a pop at it, but no guarantees I'll be able to find it :)
If you have any pointers towards helping me debug this / potentially weak areas etc I'd be really grateful for any input!
Cheers
Iain

socketbug.zip

Null ref on line 270 just solve by check:
            using (StopExecutionContextFlow())
            {
                var s = _socket;
                if (s == null)
                {
                    _handler.FinishReceive(null, 0, -1); // report closed socket
                    return;
                }
                willRaiseEvent = s.ReceiveAsync(_receiveEvent);
            }

Enable tracing (look at end of TraceSources.cs how to do it) and add tracing to send content like it is already in receive:
    TraceSources.CoreDebug.TraceInformation(Encoding.UTF8.GetString(buffer, offset, length));

Another option to try is to return something like 2+ years back in commits.

It is possible that there might some threading issues (FinishReceiveData and ReceiveAsync both call ParseWebSocketReceivedData and ReceiveAsync comes from consuming app thread, and FinishReceiveData from IO thread [IOCompleted] - I don't think this is an issue for Nowin [I have my own fork that tries to handle ping/pong and this causes threading issues]). I suggest modifying TraceSources to include (managed) thread id, you could also emit part of callstack in the trace sources to help to pin point the issues (by using StackFrame or StackTrace classes - for debugging only as they are slow).
Looking into corefx ClientWebSocket implementation (managed version) it seems that it tries to send Ping frames which might cause issues see #60 - try disabling KeepAlive in your test.
If you are only interested in WebSockets you could also look into other fully managed implementations (https://github.com/vtortola/WebSocketListener and https://github.com/StackExchange/NetGain seem to be the most promising). I am interested in having a lightweight code-only embeddable full http server thus I am sticking with Nowin (my fork though).


Still looking to stop keyboard layout syncing

Here is the superuser thread:
https://superuser.com/questions/961467/how-to-stop-windows-10-from-syncing-keyboard-layouts?newreg=1ff8313af3f54e4d9067d4ef77d5c974
The list above doesn't show where the keyboard layout can be stopped from syncing.

Any suggestions?
I already turned off 'language preferences' syncing, same problem.

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

ID: 4459a0c8-0451-bbdf-3d2f-f62f46dc2240
Version Independent ID: 7ebbbee6-1bd2-de5a-aabf-978d12099f3f
Content: Windows 10 roaming settings reference
Content Source: articles/active-directory/devices/enterprise-state-roaming-windows-settings-reference.md
Service: active-directory
Sub-service: devices
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@ijohnt Thank you for your feedback . We will investigate and update this thread further.

Email out to PG for feedback

Device identity product team is working with the Windows product team to get the feature updated. Will close for now but update when there is some new information to provide.

#please-close


Add Text File loader to builder.py

Adding support for various types of document loader so convert them into vectors  (txt) file

I want to work on this issue so please can u assign me.

You can work on it @Durgeshsejekar

Yeah Sure


Restored git update-index functionality

hey - so recently I've noticed that without that line I removed in #7 the prompt sometimes lags behind the actual git status (i.e. you need to hit enter for it to update). so I spent a few minutes combing through the git manpages (okay no, I lied, I spent 5 minutes on irc) finding a way to test if you own the git index. enjoy

Awesome!!!


Fix load failing for scripts ending with single-line comments

Landed in https://github.com/metarhia/impress/commit/29efb5e9cae07f1a5267fa2728c39456c894c596


hdf5-cpp: 1.12.0 -> 1.12.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/hdf5-cpp/versions.
meta.description for hdf5-cpp is: "Data model, library, and file format for storing and managing data"
meta.homepage for hdf5-cpp is: "https://www.hdfgroup.org/HDF5/"
meta.changelog for hdf5-cpp 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

Warning: no invocation of /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5redeploy had a zero exit code or showed the expected version

Warning: no invocation of /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/mirror_server had a zero exit code or showed the expected version

Warning: no invocation of /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/mirror_server_stop had a zero exit code or showed the expected version

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5diff passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5ls passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5dump passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5debug passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5repart passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5mkgrp passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5clear passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5import passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5repack passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5jam passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5unjam passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5copy passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5format_convert passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5stat passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5perf_serial passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/gif2h5 passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h52gif passed the binary check.

/nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin/h5watch passed the binary check.

16 of 21 passed binary check by having a zero exit code.

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

found 1.12.1 with grep in /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1

found 1.12.1 in filename of file in /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1

directory tree listing: https://gist.github.com/1a4f37e57e973d812622ba5989e6105b

du listing: https://gist.github.com/2f4a0103c8781a526e02b48abf7dc00a

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

2385 total rebuild path(s)

798 package rebuild(s)

798 x86_64-linux rebuild(s)
651 i686-linux rebuild(s)
301 x86_64-darwin rebuild(s)
635 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
EBTKS
MIDIVisualizer
adapta-gtk-theme
alembic
alfis
almanah
apacheHttpdPackages.mod_tile
apacheHttpdPackages_2_4.mod_tile
apostrophe
appcsxcad
aravis
arcan.arcan
arcan.arcan-wrapped
arcan.durden-wrapped
arcan.everyone-wrapped
arcan.ffmpeg
arcan.pipeworld-wrapped
arcan.prio-wrapped
arcan.xarcan
areca
armadillo
astroid
audio-recorder
authenticator
aws-workspaces
azureus
balsa
baresip
bicgl
bicpl
birdfont
blender
bookworm
brasero
brasero-original
bubblemail
byzanz
caffe
calls
cawbird
cdo
chrome-gnome-shell
cinnamon.cinnamon-common
cinnamon.cinnamon-control-center
cinnamon.cinnamon-gsettings-overrides
cinnamon.cinnamon-screensaver
citrix_workspace
citrix_workspace_20_04_0
citrix_workspace_20_06_0
citrix_workspace_20_09_0

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1 \
  --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 hdf5-cpp https://github.com/r-ryantm/nixpkgs/archive/2da3c4adaad27af002a7f1cab80f928ff3d83278.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/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1
ls -la /nix/store/mbqym2187wc6m9p04002b48hxm4vwfvb-hdf5-1.12.1/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings

Result of nixpkgs-review pr 129920 at 2da3c4ad run on aarch64-linux 1

24 packages marked as broken and skipped:

easyeffects
grass
gtkd
odpdown
openems
pulseeffects-legacy
python38Packages.caffe
python38Packages.datashader
python38Packages.pygmt
python38Packages.pyscf
python38Packages.python-csxcad
python38Packages.python-openems
python38Packages.tensorflowWithCuda
python39Packages.caffe
python39Packages.datashader
python39Packages.pygmt
python39Packages.pyscf
python39Packages.python-csxcad
python39Packages.python-openems
python39Packages.tensorflowWithCuda
qlandkartegt
siril
termplay
tilix

547 packages skipped due to time constraints:

EBTKS
MIDIVisualizer
adapta-gtk-theme
alembic
alfis
almanah
apostrophe
appcsxcad
aravis
arcan.arcan
...

4 packages built successfully:

hdf5
hdf5-cpp
hdf5-fortran
hdf5-threadsafe

2 suggestions:

warning: missing-patch-comment
Consider adding a comment explaining the purpose of this patch on the line preceeding.
Near pkgs/tools/misc/hdf5/default.nix:58:5:
   |
58 |     ./bin-mv.patch
   |     ^

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/tools/misc/hdf5/default.nix:69:3:
   |
69 |   meta = {
   |   ^

cc @ryantm hdf5-cpp is an override of hdf5. I don't think it's critical the name is absolutely correct, but it would be an improvement for nixpkgs-update to have the "smallest" attr be used in the commit message


chore: release v0.3.19

:robot: I have created a release beep boop
0.3.19 (2024-04-08)
What's Changed

chore(ci): remove unused actions by @coffeebeats in https://github.com/coffeebeats/gdbuild/pull/138
fix(osutil): remove accidental doubling of filepath by @coffeebeats in https://github.com/coffeebeats/gdbuild/pull/140

Full Changelog: https://github.com/coffeebeats/gdbuild/compare/v0.3.18...v0.3.19

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/coffeebeats/gdbuild/releases/tag/v0.3.19 :sunflower:


[RFC] Pass down PLASMO_PUBLIC_ environment variables from system

How do you envision this feature/change to look/work like?
Imagine in my system env, I have a PLASMO_PUBLIC_ variable injected by bash profile or https://direnv.net/
What is the purpose of this change/feature? Why?
This allows more flexibility with how env should be injected into plasmo, while still maintaining the namespace
REF: https://discord.com/channels/946290204443025438/1086172619025436712
(OPTIONAL) Example implementations
No response
(OPTIONAL) Contact Details
No response
Verify canary release

[X] I verified that the issue exists in plasmo canary release

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

closed in #507


What's your opinion on Flutter?

Related  to #37

Bhaiya given that a single code base for android and iOS works and moreover now since web apps can also be made using flutter, i probably think there is going to be a boom in coming years in flutter development. And also thanks for answering my issue. Means a lot!

According to me,
Flutter is going to be very important in upcoming years as Google is currently working on their new Operating System Fuchsia which is going to be compatible with any device and they will be interconnected and guess what, Flutter will be used to develop applications for Fuchsia.
Other than this, Flutter is currently being used for developing applications for Android and iOS with 1 codebase.
This prevents users from maintaining 2 codebases for different platforms.
Thanks!

I recorded my opinions on this just now. Will be released on IGTV and Youtube. Links are in README.

Released on IGTV. Please check.


admiral should throw an error if no serviceConfig is found in services/put.js

https://github.com/Shippable/pm/issues/10092

this is done, closing


Cannot start --hf due to uvicorn error

ℹ Starting server monitor...
Starting server with command: uvicorn src.main:app --reload
ℹ Server monitor started. Press Ctrl+C to stop.
INFO:     Will watch for changes in these directories: ['/home/ldorigo/Dropbox/projects/pybooks/src/detectron2_server']
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [135019] using StatReload
<frozen importlib._bootstrap>:488: UserWarning: enum class uv_fs_event not importable from uvloop.includes.uv. You are probably using a cpdef enum declared in a .pxd file that does not have a .py  or .pyx file.
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 78, in subprocess_started
    target(sockets=sockets)
  File "/usr/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run

Been playing with this, seems promising, but cannot start the auto-fixing mode.

@ldorigo Oh got it, I'll replicate this and update here.

Couldn't exactly replicate the issue, is the command working fine without being part of the drd --hf command as a params? @ldorigo

Oh, so the uvicorn command is something drd is using to run my project? I thought drd itself was using a uvicorn server for something internally. Then it makes sense that it doesn't work !


Update Small Improvements images and descriptions

The navigation within Small Improvements has changed since the original screenshots were taken. This PR updates the images to the current state of the application and updates the descriptions to match.

@microsoft-github-policy-service agree [company="Small Improvements GmbH"]

#sign-off


Explorer not showing all registered transcoder nodes

Describe the bug (required)
It looks like our explorer isn't showing all the transcoders for some reason. It lists only 23 active. After doing a comparison with Scout, I noticed these particular nodes are missing (in my view). Note also that Scout is missing some nodes, but it's not on us to debug their index:
Explorer is missing:
0xE9E284277648fcdb09B8EfC1832c73c09b5Ecf59
0xFb9849b0B53F66B747Bfa47396964a3FA22400A0
Scout is missing:
0x9c10672cee058fd658103d90872fe431bb6c0afa
0x9e14de5cc84e437518c2c303c88570fe13f0ad15
0xd84781e1a9b74d71ea76cda8bb9f30893bfd00d1
Expected behavior (required)
All registered nodes should be shown.
To Reproduce (required)
Steps to reproduce the behavior:

Go to https://explorer.livepeer.org
View the list of transcoders.
Observe that the above mentioned nodes are missing.

Device (required):

Device: Macbook Pro, OS X, Chrome (and Brave)

Additional Context:
Adam had mentioned that the Graph node was updated recently. This may have introduced an issue.

Eli and I upgraded the Graph Node to the latest version yesterday, which seems to now paginate graphql query results (100 results per page). Currently, the explorer queries for all transcoders and then filters out those that are registered and active client-side. Since the Graph Node now paginates results, we're excluding some from the list. I've confirmed the two missing transcoders are on the second page of results.
I think I simple fix for now would be to include a filter on our transcoders query. ie:
{
  transcoders(where:{status: "Registered"}) {
     ...
  }
}

Fixed by #435


UIKit.UIApplication:64:22: note: 'openSettingsURLString' was introduc…

…ed in Swift 4.2
change  openSettingsURLString:

This and #271 have been sitting open for a month. Please merge.

Bumping this too. Please merge.

This is a very trivial one. Please merge, breaks our building process.

Same here, just had this compile error. Please merge.

Please merge this soon.

2021 and still not merged...

2021 and still not merged...

@pedroadame - sorry to find your frustration late in the game.  Of all the people in this thread, you might still have this problem.
However I have come to realize that this is not a bug, and that the code does not need to be merged - more accurately, it SHOULD NOT be merged.  Everyone refers to this as a "bug" and "known issue", but it is not - you simply need a setting applied.
While it might seem like the maintainers are slacking by NOT merging the PR, what happened is that the module was re-written for Swift 5, and the Pull Request basically asks the maintainers to put old Swift 3 syntax back into place.  The correct thing to do (which works immediately) is to set your project to use Swift 5, rather than than trying to downgrade Swift 5 code syntax to work with Swift 3.  This is a setting in the iOS section of config.xml.
        <platform name="ios">
            <preference name="UseSwiftLanguageVersion" value="5" />

See @daneilzen's comment on March 28, 2020:
https://github.com/bitpay/cordova-plugin-qrscanner/issues/301#issuecomment-629986900 (see the first npmjs URL).  This is THE solution.
It is unfortunate that this has not been made clearer.  I am not sure why this isn't better documented, or why the installer doesn't handle this setting - but the applying of this setting could be more of an Ionic or Cordova issue, and not in the hands of the qrplugin maintainers.
Helpful tip
You may have to erase your node_modules and plugins folders before you attempt to rebuild.
I generally do this after making a major change:
rm -rf node_modules plugins # platforms
npm install
ionic cordova build ios

(I forget if it was necessary to erase platforms also...you can try without that first, if you want).
You should be all set at this point.
An alternative
If you do have problems, and want to keep your settings at Swift 3 (and want to use a version that works with Swift 3), you can try using this fork of the the March 29, 2019 3.01 edition (still the latest version) - this fork applies the patch:  https://github.com/bitpay/cordova-plugin-qrscanner/pull/271#issuecomment-605522889
npm uninstall cordova-plugin-qrscanner
npm install<EMAIL_ADDRESS>-D

@pedroadame - sorry to find your frustration with this so late in the game. Of all the people in this thread, you might still have this problem.
However I have come to realize that this is not a bug, and that the code does not need to be merged - more accurately, it SHOULD NOT be merged. Everyone refers to this as a "bug" and "known issue", but it is not - you simply need a setting applied.
While it might seem like the maintainers are slacking by NOT merging the PR, what happened is that the module was re-written for Swift 5, and the Pull Request basically asks the maintainers to put old Swift 3 syntax back into place. The correct thing to do (which works immediately) is to set your project to use Swift 5, rather than than trying to downgrade Swift 5 code syntax to work with Swift 3. This is a setting in the iOS section of config.xml.
        <platform name="ios">
            <preference name="UseSwiftLanguageVersion" value="5" />

See @daneilzen's comment on March 28, 2020: #301 (comment) (see the first npmjs URL). This is THE solution.
It is unfortunate that this has not been made clearer. I am not sure why this isn't better documented, or why the installer doesn't handle this setting - but the applying of this setting could be more of an Ionic or Cordova issue, and not in the hands of the qrplugin maintainers.
Helpful tip
You might need to erase your node_modules and plugins folders before you attempt to rebuild. I generally do this after making a major change:
rm -rf node_modules plugins # platforms
npm install
ionic cordova build ios

(I forget if it was necessary to erase platforms also...you can try without that first, if you want). You should be all set at this point.
An alternative
If you do have problems, and want to keep your settings at Swift 3 (and want to use a version that works with Swift 3), you can try using this fork of the the March 29, 2019 3.01 edition (still the latest version) - this fork applies the patch: #271 (comment)
npm uninstall cordova-plugin-qrscanner
npm install<EMAIL_ADDRESS>-D

Most important comment in github

the PR closed~!!


Add error handling, general refinement to --skip-invitation flag

Closes #6913
Closes #6914
This PR addresses feedback from previous PR, including:

Moves csv specification check to validate method in the args file
Removes unnecessary comments
Updated specific unit tests

It also adds error handling and unit testing for different scenarios as outlined by screenshots below. I've also created an issue to update error message handling here when GH is updated:
--check for duplicate claimant in same issue errror
Updates console color for confirmation request also exits more gracefully on "n":

Errors handled:
Handles duplicates (both to same and different claimants):

User not admin to EMU org:

Other errors that were already handled but mentioned in the issue:
Mannequins already claimed:

[2023-05-23 17:29:12] [ERROR] brianaj is already claimed. Skipping (use force if you want to reclaim)

Mannequins not part of target org

[2023-05-23 17:58:36] [ERROR] Mannequin gargola not found. Skipping.

Claimant not part of target org:

[2023-05-23 17:40:08] [ERROR] Failed to reclaim dpmex4527 (M_kgDOCAN3aw) to hfishback01 (MDQ6VXNlcjM4ODQ1Mjcy): Target must be a member of the hfishback01-cli-test3 organization

[x] Did you write/update appropriate tests

[x] Release notes updated (if appropriate)

[x] Appropriate logging output

[x] Issue linked

[x] Docs updated (or issue created)

[x] New package licenses are added to ThirdPartyNotices.txt (if applicable)

Thanks @hfishback01 for getting this out, can you answer if you handled if org is not emu, not sure if this was addressed or not didn't catch it in the description/screenshots. If not can you add a line item to finish as part of this PR as that's a main error scenario we'll want to handle and make sure we don't keep iterating through csv.


--cdnsips leaves my /etc/resolv.conf empty (mostly)

This is deploying an Ubuntu 14.04 host.  I can't seem to get --cdnsips and --cdnssuffix to add items to the VM at startup so it fails trying to install chef.  I'm using:
--cips 'x.x.x.11'
--cgw 'x.x.x.1'
--cdnsips 'x.x.x.10'
--cdnssuffix 'example.com'
my /etc/network/interfaces gets populated with the ip and gw.  but /etc/resolv.conf looks like:

vagrant@testhost:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
vagrant@testhost:~$

and the dns-nameserver items are not added to /etc/network/interfaces

vagrant@testhost:~$ cat /etc/network/interfaces
iface lo inet loopback
auto lo

auto eth0
iface eth0 inet static
address x.x.x.11
netmask <IP_ADDRESS>
up route add default gw x.x.x.1
vagrant@testhost:~$

Am I doing something wrong?

Hi,
The first thing to check is that the template's VMWare tools are up to date.

Fixed it with a vcenter patch.

Thanks for the update. Do you have some details about which patch you applied and the software versions you were on? Someone may come by later with the same query, so this will be helpful for the future.
Thanks.

Our guests were Ubuntu 14.04 and were not supported on our version of Vcenter based on the VMWare support matrix.  We patched Vcenter to the latest and it all works now.  The patch level we are using at the time of this fix is 'Version 5.5.0 Build 2414847' Unfortunately I don't have the previous version number we were on when it was broken, but from memory it was around build 18XXXXX.

Thanks, Bill. I'm sure there's enough there that someone with the same problem will trip over this and now know what to do.


swiftmailer: getting error "expected...code 220 but got code 451"

Hi -
I have a couple of php scripts where the script uses swiftmailer to send an email with a couple of attachments.
The script has worked fine as recently as a couple days ago. Then last night, I started getting this error:
"Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 220 but got code "451", with message "451-The server has reached its limit for processing requests from your host. 451 Please try again later. "
I talked with my web host (GoDaddy)...they see no problems on their end and have been able to successfully send test messages from my directory using php mail and smtp mail.
Using the script, I have tried sending the messages to email accounts on 3 different email services (gmail, godaddy, cox) and gotten the same error each time.
I have not touched any of the swiftmailer code.
Any assistance appreciated. Steve

@scwGit You will have to increase your SMTP relays on GoDaddy.


I am opped but I'm having a problem with ?

8:29:04] [ScriptCraft] [ERROR]: Error while trying to evaluate javascript: greet(shwansin), Error: javax.script.ScriptException: ReferenceError: "shwansin" is not defined in  at line number 1
[08:29:04] [CanaryMod] [INFO] [MESSAGE]: Error while trying to evaluate javascript: greet(shwansin), Error: javax.script.ScriptException: ReferenceError: "shwansin" is not defined in  at line number 1
[08:29:04] [ScriptCraft] [ERROR]: javax.script.ScriptException: javax.script.ScriptException: ReferenceError: "shwansin" is not defined in  at line number 1 in  at line number 623 at column number 8
[08:29:04] [CanaryMod] [INFO] [MESSAGE]: javax.script.ScriptException: ReferenceError: "shwansin" is not defined in  at line number 1 in  at line number 623 at column number 8
[
That's the error.
What is the problem?

try
greet( self )


Portable storage interface not retracting

Describe the Bug
so unless I'm going crazy, the AOF5 pack as a weird interaction with it or something changed .when the Portable storage interface has finished unloading it should retract and the build should then continue on its way.
Reproduction Steps
1.build contraption and give it and inventory with items
2.let it move up to and let the 2 Portable storage interface's connect
3.watch the items empty and them not retract
...
Expected Result
my contraptions after emptying their inventory using Portable storage interface they should retract and allow it to go on its way
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.5.0e
Minecraft Version
1.18.2
Other Mods
ALL of Fabric 5  .mod pack
Additional Context
No response

We have also run into this issue on our server, the temporary solution was to use a chute instead of a hopper.

This was fixed on 1.19 with a rework to transfer. For 1.18, the issue is limited to hoppers, and fixing it would take a lot of work.


Properly return errors in updateContext

Fixes https://github.com/istio/istio/issues/21816
root cause: if any of the initXYZ functions fail, we continue, which leads to a partial initialized push context

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
c39058ae2a0b432b16d22f83a5b5b2b5e9960c12
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

In response to a cherrypick label: new pull request created: #21840

In response to a cherrypick label: failed to push cherry-picked changes in GitHub: pushing failed, output: "To https://github.com/istio-testing/istio\n ! [rejected]              cherry-pick-21818-to-release-1.5 -> cherry-pick-21818-to-release-1.5 (non-fast-forward)\nerror: failed to push some refs to<EMAIL_ADDRESS>Updates were rejected because the tip of your current branch is behind\nhint: its remote counterpart. Integrate the remote changes (e.g.\nhint: 'git pull ...') before pushing again.\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\n", error: exit status 1

In response to a cherrypick label: failed to push cherry-picked changes in GitHub: pushing failed, output: "To https://github.com/istio-testing/istio\n ! [rejected]              cherry-pick-21818-to-release-1.5 -> cherry-pick-21818-to-release-1.5 (non-fast-forward)\nerror: failed to push some refs to<EMAIL_ADDRESS>Updates were rejected because the tip of your current branch is behind\nhint: its remote counterpart. Integrate the remote changes (e.g.\nhint: 'git pull ...') before pushing again.\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\n", error: exit status 1


add extended params

Codecov Report

Merging #221 (ac29992) into master (bbab986) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #221      +/-   ##
==========================================
- Coverage   67.83%   67.81%   -0.03%
==========================================
  Files          71       71
  Lines        5121     5123       +2
==========================================
  Hits         3474     3474
- Misses       1184     1185       +1
- Partials      463      464       +1

Impacted Files
Coverage Δ

service/init.go
61.07% <0.00%> (-0.44%)
:arrow_down:

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 bbab986...ac29992. Read the comment docs.

Codecov Report

Merging #221 (ac29992) into master (bbab986) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #221      +/-   ##
==========================================
- Coverage   67.83%   67.81%   -0.03%
==========================================
  Files          71       71
  Lines        5121     5123       +2
==========================================
  Hits         3474     3474
- Misses       1184     1185       +1
- Partials      463      464       +1

Impacted Files
Coverage Δ

service/init.go
61.07% <0.00%> (-0.44%)
:arrow_down:

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 bbab986...ac29992. Read the comment docs.


Improvement: Implement Mutex lock for IIS, so parallel deployments don't error but queue up naturally

This has been proposed here as one way of speeding up massive deployments, and doing it relatively safely.
This should shave a good amount of time from massive parallel deployments, as the scripts would stop relying on coarse grained Mutex of deployment tools.

Hi @sponte, @taliesins, I have a PR to mitigate the issue. Are you happy with the changes? If yes can this get merged?

Must say I'm not a fan of preemptive retrying, without knowing what the error is. Not a fail-fast strategy. My proposal was a mutex.

Hi @slawomir-brzezinski-at-interxion, I don't think the mutex would help in its current implementation of the Powershell.Deployment. All those deployment scripts are local to the application being shipped. In your opinion, you assume creating a 'mutex' outside of the boundaries of the applications to restrict to a single action at a time in IIS. I don't think it is desirable.

@RavindraSolanki , yes I was suggesting using a global mutex (one of inter-process synchronization primitives that operating systems offer windows, posix), but giving it a name that will identify the intent to modify IIS configuration, and use it for as small piece of code as possible. Of course this assumes everything is deployed through the same process, but I think this is the only solution that does not add new, completely unknown, undesired consequences, without making developers aware (apart from IIS providing a thread-safe API).

It might be workable with a mutex. But in the context of microservice apps, we might different apps with different versions of Powershell.Deployment. I'll try to get a mutex implemented by the retry mechanism is necessary too.

Re:

in the context of microservice apps, we might different apps with different versions of Powershell.Deployment

The retry mechanism would also rely on being deployed on all the instances to truly make the problem go away, so I don't see a difference.

the retry mechanism is necessary too.

IMHO it is too opinionated of an approach for a generic piece of software. I would certainly not recommend a commercial use of a software that takes sweeping decisions on any errors without knowing what happenned (and making sure that someone resolves the question). A retry might actually make the problem worse, be it directly, or by allowing more time to pass without anyone looking at the problems it has caused.

@slawomir-brzezinski-at-interxion is it again your 'fail fast' religion.
:) let's try to stay away from statements irrelevant to the discussion at hand. I think I was giving concrete examples so I take it that it's fine to ignore them without knowing what consequences it has.

In the case of IIS it might be recoverable.
It might or it might not. In all cases, a human should attend a deployment and make the decision to retry. It's better to learn before making decision. Better yet, understand the error and fix it, so that it never happens.

Taking into account that the guys from Octopus did think it is an acceptable one.

Hmmm, really? Where? I am actually finding them agreeing with my 'religion':

At the moment this is only possible through the use of the Guided Failure feature. This feature will stop the deployment once a step fails, allowing you to review it and then retry it, which is an approach we think is more appropriate than doing a blind retry.
There's a uservoice sugestion open for what you are asking though. Feel free to drop some votes on it and why not a comment explaining why you think this feature would be useful.

From this request

Okay, after having a closer look at the changes, I can see that the retry is performed on actions that seem to be idempotent, that is, retrying should not worsen the situation in any way.
Because of that, I'm no longer thinking that retrying implementation is a blocker, since I see that this PR makes the package only better.
Just for completeness, I do think mutex would offer better option even for the original pretext of this work - speeding up mass-deployments, since a mutex minimizes the time to wait for conflicts (by only waiting as much as needed, as opposed to the random between 2-10, and reducing tries to 1), and overall would serve more parallel deployment before hitting the 'give up' criteria (wait timeout for mutex, maximumNumberOfRetries for the retry solution).

I like the idea of a mutex. I would be thinking more along the lines of a file lock vs interprocess communication.
There is one possible drawback to the mutex. What happens if something which does not use the mutex is changing the file.
So to be truly safe and because its a "transient error" I would vote for retry block. We might be able to shorten the retry period to something between 1 to 2 seconds.
@sponte I think it's time we give these 2 contributor access. They are one of the biggest users of this powershell library.

Totally agree. Go ahead.
Kind regards,
Stanislaw Wozniak

Sent from my iPhone

On 18 Oct 2018, at 6:28 am, Taliesin Sisson <notifications<EMAIL_ADDRESS>wrote:
I like the idea of a mutex. I would be thinking more along the lines of a file lock vs interprocess communication.
There is one possible drawback to the mutex. What happens if something which does not use the mutex is changing the file.
So to be truly safe and because its a "transient error" I would vote for retry block. We might be able to shorten the retry period to something between 1 to 2 seconds.
@spontehttps://github.com/sponte I think it's time we give these 2 contributor access. They are one of the biggest users of this powershell library.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/sponte/Powershell.Deployment/issues/32#issuecomment-430879836, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAC5bKqraeZd_3Iyyc8H76sKbOFZMFquks5umBF9gaJpZM4SYK8K.

Hey @taliesins, please can you give @slawomir-brzezinski-at-interxion and @RavindraSolanki the contributor privileges.

To answer @taliesins about

I would also only catch the specific error that we want to retry and not all errors

, I've found out when trying to run at the same time multiple web-app deployments that it can fail at different places (e.g. AppPool, WebApp, setting a property of the earlier) with different error messages.
Else the second element 'Mutex or filelock', I think it does not matter.

Closing, as it's fixed by https://github.com/sponte/Powershell.Deployment/pull/36 , that just got merged


fix: remove unnecessary dep

在monorepo 的 root 中已经将 @alilc/build-plugin-lce 作为 devDeps 了，这里直接删掉就可以了

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

CLA麻烦签一下

目标分支改成 develop

sorry，改了

https://lowcode-engine.cn/site/docs/faq/faq021 CLA还有问题，参考下这个

OK

https://lowcode-engine.cn/site/docs/faq/faq021 CLA还有问题，参考下这个

现在没问题了，对吧？


Added custom partitionizer for subscribers/sinks

Added a param to pass in a function to derive the partition key for the message on the Kafka Topic. We do not use random partitioning.

Looks good. Could you addtionally format long argument lists (for KafkaActorSubscriber and ReactiveKafka.publish()) like here: http://docs.scala-lang.org/style/declarations.html ?

I have made the requested changes, long argument lists and the toString nit. We use a sbt plugin called Scalaiform here to format the code when it compiles, I will add a PR that includes a basic one that you could start using here to insure all the code is formatted correctly. IT saves us much time in our PRs

Scalariform sounds like a good idea. Thank you for this update, merging now :)

Looks like you did not merge the changes before you closed the PR

Of course. Merged now :)


Added AsHashTable to New-BicepParameterFile

Added AsHashTable to New-BicepParameterFile

The -AsHashtable switch does not work as expected. The hashtable returned contains the ARM template in HashTable format which is the same as running Build-Bicep -AsHashtable. You need to update the private function GenerateParameterFile in order to sort this out.

Closing this one. Lets give it another go when you are ready.


General - Increase the length of the Toastify notification (required during locking/ unlocking vault process)

Unlocking and locking vaults take too long, a refresh is required almost each time (would need a toastify notification for this (this is probably quicker) or optimisation fix)

@oshioked is this already finished?
checking if I can close this issue.


Having trouble plotting high-density ImPlot widgets

Hi.
I've been able to get Implot working together with imgui-sfml and just learned that ImGui uses 16-bit indexing by default which isn't enough for large meshes.
I've tried the first fix i.e  uncommenting  #define ImDrawIdx unsigned int in the ImGui imconfig.h file but with no success, as the ImGui window becomes seriously distorted.
Was wondering if imgui-sfml implements the second fix described in this issue
Great work mates

Hello
#178 should do it. Might do a release after it gets merged.

It's now merged. Please check the master branch and if #178 solves the problem for you.

Yup, problem solved. Thanks mates


Browser crashed

Browser get crashed while trying to upload a small file in fineuploader demo site(http://fineuploader.com/demos). Tried in all browsers(chrome/IE/firefox) same issue is coming. Even I added this plugin in my website, my site also throwing the same issue when I try to upload any file using this extension, it closes browser.
Help me to track this issue, it is plugin issue or something else.

What issue? What plugin? What extension? Please provide steps to reproduce.

You haven't provided any information here that would help us to reproduce or even look into the issue. Useful information would include the browser, version of fine uploader, properties of the file causing the issue, or any steps at all required to reproduce.
It does indeed sound like a browser extension is causing your problem. I suggest you start removing or disabling extensions until you locate the offending extension.


Seemingly wrong arguments object when both es6 and commonjs options are present

TypeScript Version:  2.4.2
Code
export const foo = (bar: number) => {
    console.log(arguments)
}

Expected behavior:
The code either produces errors or prints the arguments object of foo consistently in all targets and module types
Actual behavior:

When the module is built with tsc bug.ts command line,  error TS2496: The 'arguments' object cannot be referenced in an arrow function is produced and no code is generated.
With tsc -t es6 bug.ts it builds an es6 module and the code prints the arguments of foo at runtime
With tsc -t es6 -m commonjs the generatesd commonjs module prints a strange object with 4 arguments, which seems to be an implementation detail of commonjs modules in node.js.

So I'd like at least to produce a warning in the third case, because I hit this problem in my program and the resulting bug was hard to locate.

This is the correct behavior. In an arrow function, arguments refers to the arguments of the outer function, which in commonjs is the wrapping call to your module. We have no way to know that that isn't what you wanted.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

Arrow functions do not bind an arguments object. Thus, in this example, arguments is simply a reference to the same name in the enclosing scope

Regarding this

it builds an es6 module and the code prints the arguments of foo at runtime

How did you run the resulting file? This is not compliant behavior.

I would argue that this is incorrect behavior (assuming that initial source file is ES6 module). Per spec: ModuleDeclarationEnvironmentSetup sets lexical environment for the module to be NewModuleEnvironment parented by GlobalEnvironment and non of these will have bindings to arguments object (that is created only during FunctionDeclarationInstantiation). The fact that in cjs case instantiation of the module happens inside some function call and arguments is available is an implementation details which should not be applied to behavior described in spec.

Good points @vladima

How did you run the resulting file? This is not compliant behavior.

Now I cannot reproduce this case. But I do see
[andy@arch ~]$ node
> a = require('./bug')
{ __esModule: true, foo: [Function] }
> a.foo(42, 911)
{ '0': 42, '1': 911 }

in my terminal scrollback :( So let's forget about this part for now.

According to the specification, the output of
export = (function (z = 1) {
  const foo = () => {
    console.log(arguments)
  }
}());

seems like it should alias arguments and bind it to the outermost non-arrow function under --target < es2015.
(function () {
  var _arguments = arguments;

  var foo = function foo() {
    console.log(_arguments);
  };
})();

and that it should only be an error at top level.

We introduced the error rather than alias arguments because early versions of TS (created before the arrow function spec was finalized) did allow use of arguments in arrow functions, so changing to capturing the outer arguments value instead would have changed the behavior of the emitted code (extremely subtle and dangerous).
The plan was to introduce this error, wait "a while", then see if anyone cared enough for us to bother implementing the aliasing (seems like the answer is 'no').

Thank you for the explanation.
Personally I don't think there is any value in changing it at this point since using a rest parameter offers such comparatively superior readability that arguments should no longer be used in the vast majority of cases.


Add "Help with Citations" to Help for Researchers

Text added to a draft page (under About) in test3 .

Draft text added to the Help page.  Will need:
-[ ] link to the section of About page or sub-page rather than the current link (just to the About page
-[ ] Caution on use during the testing Phase of FreeBMD2 (i.e. that the link is to the url currently occupied by FreeBMD1).

@ComfE-2662 could the Development team review please

@ComfE-2662 any update on this in terms of it being tested?

@PatReynolds could you clarify specifics of this story for Taylor please?

@taylorjgolden  could you look at the help for researchers page on test3 and check that it includes a section on citations - check using the Checklist A and Checklist B in  the Protocol for creating and editing in Refinery  - please let me know if you have difficulty accessing the documents, or need something more specific.  With thanks, Pat

I would note that there are two such draft pages, quite different in their level of detail. On Test3, they are About Citations and Citing FreeBMD, respectively. They don't comply with those Checklists in one aspect at least: hyperlinks exist and are working, because the Checklists are incompatible with the Protocol for creating and editing in Refinery:- the latter has Don't hyperlink to draft pages.
The more I work with Help the less I like it. Reading the text, it comes across quite well (but Test2 has a note stating that it was copied mostly from FreeReg). But: a lot of it was copied from other sub-pages, resulting in three-levels of duplication; and there are/were level-three headers that include CSS to make them look like level-two headers. I would suggest that it is far easier to change h3 and /h3 tags to h2 and /h2 tags than to add css.

I would note that there are two such draft pages, quite different in their level of detail. On Test3, they are About Citations and Citing FreeBMD, respectively. They don't comply with those Checklists in one aspect at least: hyperlinks exist and are working, because the Checklists are incompatible with the Protocol for creating and editing in Refinery:- the latter has Don't hyperlink to draft pages.
The more I work with Help the less I like it. Reading the text, it comes across quite well (but Test2 has a note stating that it was copied mostly from FreeReg). But: a lot of it was copied from other sub-pages, resulting in three-levels of duplication; and there are/were level-three headers that include CSS to make them look like level-two headers. I would suggest that it is far easier to change h3 and /h3 tags to h2 and /h2 tags than to add css.

@PhilipClarke712 yes, there is information about citations (in detail) in About, but what someone needs to know to use the buttons on the website.
Headings should always be tags, although the styling will be in the CSS (and we do not need to deal with that).
I will go through Help and make sub-pages for those elements that I think are too wordy to be here,.

@PhilipClarke712 yes, there is information about citations (in detail) in About, but what someone needs to know to use the buttons on the website.
Headings should always be tags, although the styling will be in the CSS (and we do not need to deal with that).
I will go through Help and make sub-pages for those elements that I think are too wordy to be here,.

@PatReynolds
Sorry, I did a bad job of explaining what I meant.
I should have said that the CSS was being over-ridden by adding font sizes and other means of changing the text appearance into some of the tags make level 3 tags look like level 2 tags. It's far easier to change an h3 to an h2 at both ends of the paragraph.
We have perfectly good subpages on Refinery, sitting under Help: "Age at death", "how best to search" and "searching", etc.  The page seems to be put together by taking it wanted out of existing subpages, but making no reference to them and missing out the things that FreeReg does not use. There is no reference to Postems, nor ordering certificates, nor help with marriages,  nor Late Entries, nor Advanced search facilities: perhaps because FreeReg does not use them. So these things are on the FreeBMD(1) but not on FreeBMD2 because they were left out.
Comfort had done quite a passable How best to Search page, which was missing a side navigation panel, but that page could have been expanded to create a Help page which would included most of the FreeBMD-related help material.

@PatReynolds
Sorry, I did a bad job of explaining what I meant.
I should have said that the CSS was being over-ridden by adding font sizes and other means of changing the text appearance into some of the tags make level 3 tags look like level 2 tags. It's far easier to change an h3 to an h2 at both ends of the paragraph.
We have perfectly good subpages on Refinery, sitting under Help: "Age at death", "how best to search" and "searching", etc.  The page seems to be put together by taking it wanted out of existing subpages, but making no reference to them and missing out the things that FreeReg does not use. There is no reference to Postems, nor ordering certificates, nor help with marriages,  nor Late Entries, nor Advanced search facilities: perhaps because FreeReg does not use them. So these things are on the FreeBMD(1) but not on FreeBMD2 because they were left out.
Comfort had done quite a passable How best to Search page, which was missing a side navigation panel, but that page could have been expanded to create a Help page which would included most of the FreeBMD-related help material.

Thanks, Philip, we have almost finished the standards page (wish we had started that in 2018 .....) and the next thing @DeniseColbert and I are going to work on is the document on how to bring html text from FreeBMD1 to FreeBMD2 so hopefully in future it will come over clean.
I think it would be great to use Comfort's page as the basis for Help for Researchers (different Help will appear for logged-in volunteers, once more functions for them are reached via FreeBMD2 - but that is far in the future, and may only be a small amount of things, eg things currently on on FreeBMD1).

Thanks, Philip, we have almost finished the standards page (wish we had started that in 2018 .....) and the next thing @DeniseColbert and I are going to work on is the document on how to bring html text from FreeBMD1 to FreeBMD2 so hopefully in future it will come over clean.
I think it would be great to use Comfort's page as the basis for Help for Researchers (different Help will appear for logged-in volunteers, once more functions for them are reached via FreeBMD2 - but that is far in the future, and may only be a small amount of things, eg things currently on on FreeBMD1).

So you are the Latin expert. I saw it earlier today and assumed that Alison had done that. Note: I did Latin and (Castellano) Spanish at night school about  8 to 10 years ago: same teacher, but she was a Basque. I was better at Latin than Spanish, but with that mixture I could understand about half of what Inspector Montalbano said (a Sicilian detective series that was on BBC4 on Saturday nights a few years ago - it ran for about two or three years).
Yes, I ran out of work for a few months in the Summer, if the standard (or at least the need to use active-verbs) had been available then it would have taken off some of the time pressure that has arisen now.

So you are the Latin expert. I saw it earlier today and assumed that Alison had done that. Note: I did Latin and (Castellano) Spanish at night school about  8 to 10 years ago: same teacher, but she was a Basque. I was better at Latin than Spanish, but with that mixture I could understand about half of what Inspector Montalbano said (a Sicilian detective series that was on BBC4 on Saturday nights a few years ago - it ran for about two or three years).
Yes, I ran out of work for a few months in the Summer, if the standard (or at least the need to use active-verbs) had been available then it would have taken off some of the time pressure that has arisen now.

Protocol for editing and creating in refinery: https://docs.google.com/document/d/1hox-YaO3YctWDTzr9yr30jdyPwZ30lyNZb4qnZs5Xf4/edit?usp=sharing

@taylorjgolden @DeniseColbert any update on this story?

This looks to have moved on a bit since I was assigned, it's not clear what needs doing.

I would note that this topic of citations is covered twice from different viewpoints: (1) the detail of citing FreeBMD in e.g. Harvard, Chicago, or MLA "house-style" appears on the About page https://test3.freebmd.org.uk/cms/about ; and (2) a statement of FreeBMD auto-generated citations appears on the Help page https://test3.freebmd.org.uk/cms/help#cite  and this section has a link to the section in the About page (but not the other way round).
Those two pages are likely to go unchanged onto Beta (well unless there is a strong desire to change them - that would mean getting any changes "signed off"). These two pages are not draft pages, so they appear to have been signed off.
So, is there a desire for change / improvement to what is on those two pages?
There is no example of a real citation: I got this one from a search on FreeBMD(1)

I just tried test3 and I've not found any citations (Note: there does not appear to be a means of viewing an image, which was there last time I used it). I'm not sure where citations would / should appear on test3; and / or what they look like.

@PhilipClarke712 @DeniseColbert These pages have not been signed off for HTML — even a cursory look at both "Help" and "About" shows issues including bad syntax, links to non-existent pages and to one very out-of-date page (the "News" page has nothing later than 2015!), non-standard formatting of sub-menus and typographical errors.
If the content is complete then I suggest we stop treating them as draft pages, do a full check of the HTML and any other issues, and then make any further edits using copies as properly-named draft pages, as per our protocol.
Is it too soon to treat them as content-complete? How do we want to proceed?

Hi @AlOneill  @DeniseColbert
Sorry, I can't comment on whether they are sign off or not: I did not write either of them so I was not involved in their production. However they do not have the prefix Draft in their names. So by definition they are not draft pages and that means that I can't work on them, only on copies that I make of them.  Note: "splitting hairs" I can't (I think) work on live pages -those are live pages, because can get them without being signed on in Refinery.
I respect of the Help page I would refer to issue #173 where back in January of this year Pat requested that I switch the order of the first two sections. From memory there was off-topic correspondence between me and Alison, and the advice was that I could only make the changes to a copy so that is why there is a draft DRAFT - Help (edited original) - DRAFT and that is what I stated on #173 at that time. Note: There is also another draft DRAFT Help (W-i-P) , which predates the other draft and to which I was intending to make significant changes, but never got to it.
So far I've tended to stay away from these top level pages and work on individual pages within Help and Coverage.
Now given a "freehand", which I don't have, I would rewrite the Help page to add in-page hyperlinks and a side menu. The side menu would link to the (what are at the moment, draft individual pages) Late Entries, Help with Marriages, Postems and Frequently Asked Questions (Researchers)  because there is a need (and a story raised by other people who want them). That would be only the first set of changes. I can't do Help and About at the same time, so I need to choose one: Help is the biggest one, so that might indicate that I should re-think the order.
The current Help page appears to have been made by (this is rather an unkind comment) by copy and paste from other help pages either on test3 or FreeBMD(1), for example from Age at Death, etc so draft pages like this are semi-redundant (or in limbo) as much of their content is also now on the Help page. However, this Help page does have the advantage of being comparable with FreeREG and FreeCEN (and currently almost no hyperlinks to other test3 pages).
The current About page includes some of the About FAQs, but not all of them; and as stated above is out of date. So there are three FAQ that we need to include somehow into About and Help, without over-repeating ourselves. Doing that is not a trivial task.
The biggest problem (in my view) is the signing off process, which I think probably works well on a stable / mature system, but test3 is not stable and not mature. Alison reviewed, my draft Help with Marriages page back in February and greatly improved it. But: it can't be signed off until all the hyperlinked pages and subpages are sign off  (I think at the top level that is only another two pages),  One of these is another draft page  Ordering Certificates which has also been reviewed, but can't be signed off for the same reason (and some of its links are to a FAQ page which has a large number of outline-hyperlinks links to other pages as well as to District pages, some of which need to be done by D&T.
So, if I were to make, say, just a simple change to one of my copies of say the Help page, just adding a side menu to Help with a reference to Marriages and Ordering Certificates sub-pages, none of those pages (assuming they are fit for purpose) can be be sign off until every page hyperlinked or referenced within them are also signed off. That is a very large incentive not to change anything.
Sorry for the long rant:
My proposal would be to produced another draft of the Help page (using one of its two current working drafts), put out-line hyperlinks in it and a side menu so that I can link into Help with Marriages, Late Entries, Postems, Citations (some of which will be on Help and some on About).
I may need to link to a new version of How best to Search (after removing duplication between it and the Help page. At a later date other things might need to be added.
There are problems, some of the things to be described are not yet implemented on test3 (but being worked on by others, especially Vino-S ) and some of the hyperlinks will only be in outline form to draft pages (either not finished, or reviewed by awaiting other pages to be signed off, etc).
Doing all of these, reviewing them and signing them off, appears to be another large Brexit-type process (fortunately without the European Commission and 27 other nations)  but - slow, very slow.

Hi @AlOneill , @DeniseColbert
It is my intention:
(1) to submit fairly soon (days, not not hours) a reworked draft of the Help page (it will not have any new info added to what is there now). That can be covered by other stories.
(2) look at the https://test3.freebmd.org.uk/cms/help/draft-citing-freebmd with a view to getting it signed off
"About" is a live page and in respect of this story it has the majority of the citation information. Some of About's defects, mentioned above, can be fixed by editing a new draft copy, but some of its hyperlinks are to, e.g. FreeBMD(1) pages, FAQ's and the Coverage charts in particular, that are either  not anywhere near to being sign off,  or non-existent, on test3. So, it might have to be updated in several stages, e.g. signed off more than once; and there are other stories covering this.
Note: Providing more up-to-day news is not an intrinsic part of help with citations (that issue has it's own story #306 ) and it's a live sub-page of "About" called from the side menu, so it's really outside this story. [I can't comment on whether the History sub-page is signed off, I don't have access to that information.]

We think this is now complete but will check

Hi @DeniseColbert ,
This dropped into my in box, because I'm on the list.
I'm not giving to give you a yes or no answer, sorry about that. Jump to the final paragraph it you want the quick answer.
I think at some point my fingers and brain got disconnected; there is no https://test3.freebmd.org.uk/cms/help/draft-citing-freebmd .  I think it should have been Help with marriages - but that help sub-page is no longer called up by the MVP Help page - so ignore that comment particular comment of mine above.
I'm think I am correct in saying that the only reference to Citations is now to be the found on its own section on the About page and that is quite detailed from an academic viewpoint, but probably not for a researcher. It talks about auto-generation (see later) which I suspect is not running on test3.
FreeBMD1 and the various test3 draft Help  pages did have a Citations section which was concerned with the citations you could get (on BMD1) using a "permanent" (if that is the right term) URL - which I believe in not yet functional on test3.
My draft Interim Help did have a Help section and a hyperlink to the citations section on the About page.  After it recent review and rewrite, that become three pages, the top on being Draft Help (for MVP) . This main page no longer has a Citations section, and it looks like the two sub-pages don't.
So, the main question becomes is the Citations section in the About page all that is needed? If it is thought that the Help (for MVP) page needs to cover the topic as well, then someone else will need to put it in ('ve been asked not to work on it, but requests can be left on its Story page #173 ).

Citations are covered in the DRAFT Help (soon to be plain Help) at:
https://test3.freebmd.org.uk/cms/draft-help-for-mvp#share
This part of Help will need to be updated when the automatic citations feature and button are implemented.
There is a link, in that same part of Help, to the section of About that (currently) covers the citing of FreeBMD. It is not quite accurate as things stand, because it states that automatic citations are available. It will be corrected ASAP.

@AlOneill to check

Page has been updated re citations button not being available yet.

Final item to do: add a line of text with a link to the Citation info on About page

@DeniseColbert Sorry, Denise, you probably meant to add a link on Entry information page, as we discussed, because we have Citation info on About page.


Update flexmark-all to 0.64.2

About this PR
📦 Updates com.vladsch.flexmark:flexmark-all from 0.35.10 to 0.64.2
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.vladsch.flexmark", artifactId = "flexmark-all" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.vladsch.flexmark", artifactId = "flexmark-all" }
}]

labels: test-library-update, early-semver-major, semver-spec-minor, commit-count:1

Superseded by #266.


[ibus] Default config (layout: "default") seems to ignore layout_variant in certain cases, breaking non-mozc layout.

Description
I have a problem that requires the following example workaround in ibus_config.textproto on Ubuntu 24.04 with Gnome (Wayland):
engines {
  name : "mozc-jp"
  longname : "Mozc"
  layout : "us"
  layout_variant: "altgr-intl"
}

Steps to reproduce
Steps to reproduce the behavior:

Have us+altgr-intl as a first layout (I believe it's not specific to altgr-intl variant), mozc-jp as second layout
Switch to mozc-jp normally
Use some tool like ydotool to generate a keypress from virtual keyboard, that triggers layout switch shortcut in Gnome. May require changing custom shortcuts to reproduce.

Expected behavior
Should switch to us+altgr-intl like expected (or any other layout that is set up). It does normally happen, but under some cirtumstances, it does not.
Actual behavior
Layout becomes simple US layout, without any AltGr layers. More importantly, it doesn't go back, no matter what I do. Only logout helps.
Screenshots
Not necessary, I believe.
Version or commit-id
Mozc-2.28.4715.102+24.11.oss
Environment

OS: Ubuntu 24.04
IMF (for Linux): Ibus
Related Applications: Any

Investigations

Whether this issue happens on both Ibus and other IMF (e.g. Fcitx, uim).

N/A

Whether this issue happens on other IMEs (e.g. Anthy, SKK).

N/A

What applications this issue happens on (e.g. Chromium, gedit).

seemingly any

What applications this issue does not happen on (e.g. Chromium, gedit).

not-found

(optional) What versions or commit-ids this issue did not happen on
(e.g. Mozc-2.28.4960.100+24.11.oss).

no-investigation.

Additional context
Add any other context about the problem here.

I have a problem that requires the following example workaround in ibus_config.textproto on Ubuntu 24.04 with Gnome (Wayland):
 name : "mozc-jp"
 longname : "Mozc"
 layout : "us"
 layout_variant: "altgr-intl"
}```

Hmm, was there any way to solve your issue without hard-coding us and  altgr-intl?  If that's the only way that is currently available, it sounds like there is nothing we can do in the Mozc repository. Can you check if the same behavior is observed or not with other ibus-based IMEs? If other IMEs behave in the same way, I believe this would be one of the use cases that needs to be recognized and officially supported by the Gnome (and ibus) community.
Let us know if you find a way to solve your issue with reasonable default values.


What is the point of this repo?

k.

No work can be started until we research further. Repo was made because I wanted to.

Will this still be a thing now that Yuzu has been created? I assume not considering there has been no activity here in around a year.


Non-GPU tensorflow:1.15.0 docker image fails when it can't find CUDA

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Official tensorflow docker image (4.19.76-linuxkit...?), running in Docker Desktop on Windows 10
TensorFlow installed from (source or binary): docker image tensorflow/tensorflow:1.15.0
TensorFlow version: 1.15.0
Python version: 2.7.15+
Installed using virtualenv? pip? conda?: docker
CUDA/cuDNN version: none
GPU model and memory: host has NVIDIA card, but not applicable to docker guest

Describe the problem
I am attempting to run the CPU-version of tensorflow with the object_detection pets tutorial. I'm trying to do it using Docker Desktop for Windows, but using the CPU since nvidia-docker doesn't support windows. But when I run a simple example it gives me errors about failing to find CUDA. I'm not sure if these are fatal errors or ignorable warnings. The pets object detection job I'm trying to run stops shortly after these errors. I'm using the official tensorflow docker image tensorflow/tensorflow:1.15.0.
I've also honed down a minimal example:
Provide the exact sequence of commands / steps that you executed before running into the problem
Dockerfile:
FROM tensorflow/tensorflow:1.15.0
COPY test-tf.py /tensorflow/test-tf.py
WORKDIR /tensorflow

test-tf.py:
#!/usr/bin/env python

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()

Steps:

docker build --tag detect-tf-generic .
docker run --rm -it --privileged -p 6006:6006 detect-tf-generic
./test-tf.py

Output:
WARNING:tensorflow:From ./test-tf.py:5: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2020-06-19 00:48:56.905823: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2020-06-19 00:48:56.905858: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
2020-06-19 00:48:56.905987: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (c0e8a9783c35): /proc/driver/nvidia/version does not exist
2020-06-19 00:48:56.906459: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-06-19 00:48:56.913014: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2020-06-19 00:48:56.913329: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5583d4015850 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-06-19 00:48:56.913358: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version

I can't tell if this is a fatal error that I need to fix or just a warning. As mentioned my object detection job completes early a few output lines after this. It doesn't seem like it should be looking for CUDA at all, but what do I know.

@xdhmoore Can you please check whether the version you are importing is TF1.x or TF2.x. After importing, can you print print(tf.version). It looks like it is importing TF2.x and complaining about tf.Session. Thanks!

The following code gives me this output:
test-tf.py:
#!/usr/bin/env python

import tensorflow as tf
print(tf.version)
print(tf.__version__

Output:
<module 'tensorflow._api.v1.version' from '/usr/local/lib/python2.7/dist-packages/tensorflow_core/_api/v1/version/__init__.pyc'>
1.15.0

I just rebuilt my docker image against tensorflow/tensorflow:1.14.0 and did not get the CUDA error. Perhaps it's a bug introduced in 1.15.0?

Confirmed that I don't get the error in the 1.15.2 image.


How to force git deployment after previous failure

There are times when the git push to kudu succeeds, but the deployment fails for some reason (e.g. #878). When this happens, and you try to do push again, you simply get "Everything up-to-date" and no deployment.
Other than making another commit to the repo and re-pushing, is there some way to trigger the deployment?

Indeed, that is an annoying situation, and I don't believe we have a great way of getting out of it today, short of a dummy push.
In theory, this only happens in very abnormal situations, like the weird Cygwin error.

I don't know how abnormal the situations are... One instance was when I was troubleshooting private nuget packages. I was using the nuget command from the console to add a custom nuget package repository (a local directory)... if I didn't set that up right, the deploy would fail (not finding the nuget packages)...
Another instance is when you are experimenting with msbuild settings using the AppSettings.
Basically, any time when it's an environmental issue that could have an affect on the success or failure of the deployment.
It would be nice if there was some API call or something we could make to force a redeployment from the current contents of the git repo. Feature request?

That does not sound right, and we should look more into the details of those failures. In theory, if the deployment logic is able to start in any way, there should be a failed deployment showing up in Portal that can be retried. But in rare cases like Cygwin error, it doesn't happen because it fails so early.
Are you sure that you see no deployment item that you could retry in your scenarios?

@dprothero isn't the /api/deployments endpoint what you are looking for (ref. https://github.com/projectkudu/kudu/wiki/REST-API#deployment)?
If you send an empty PUT request to the above endpoint it will deploy the HEAD of the repository: PUT /api/deployments {}

That should do the trick, thanks!


Also, when moving direction is changing noticeably - it's better to increase photo frequency. I'd expect about 6-10 images while going around an average (30m diameter) roundabout.
Using  2.7.1 andoid app.

I would like to see this as well, in the meantime try setting it to take an image every 1 second and just go slower if possible. Obviously, in some cases, it will not be possible to slow down as there is traffic that will be frustrated with you so being able to change it in the app would be best.


Retain casing of required package names

Resolves #242.
It seems that the problem lies here:
https://github.com/tox-dev/pipdeptree/blob/5bf5ed06e014abdc5516a56ad0d0c3b817b7d3c0/src/pipdeptree/__init__.py#L273
More specifically with the return value of p.requires(). I don't quite understand what goes on internally, but my best guess is that pip's _vendor.packaging.requirements.Requirement would return a package name as it was given in a project's config file (e.g. setup.py) when accessing its project_name variable. And since project names are case insensitive, the casing in the config shouldn't matter. Looking at precommit's config:
https://github.com/pre-commit/pre-commit/blob/5da4258b17dea7bd4601358de200e185699f9997/setup.cfg#L25
It has its PyYAML package dependency lowercase, hence why I believe when we render it it is lowercase.
An example of pre-commit with the previous commit:
pre-commit==3.3.3
├── cfgv [required: >=2.0.0, installed: 3.3.1]
├── identify [required: >=1.0.0, installed: 2.5.24]
├── nodeenv [required: >=0.11.1, installed: 1.8.0]
│   └── setuptools [required: Any, installed: 65.5.0]
├── pyyaml [required: >=5.1, installed: 6.0]
└── virtualenv [required: >=20.10.0, installed: 20.23.0]
    ├── distlib [required: >=0.3.6,<1, installed: 0.3.6]
    ├── filelock [required: >=3.11,<4, installed: 3.12.2]
    └── platformdirs [required: >=3.2,<4, installed: 3.5.3]

An example using my changes:
pre-commit==3.3.3
├── cfgv [required: >=2.0.0, installed: 3.3.1]
├── identify [required: >=1.0.0, installed: 2.5.24]
├── nodeenv [required: >=0.11.1, installed: 1.8.0]
│   └── setuptools [required: Any, installed: 65.5.0]
├── PyYAML [required: >=5.1, installed: 6.0]
└── virtualenv [required: >=20.10.0, installed: 20.23.0]
    ├── distlib [required: >=0.3.6,<1, installed: 0.3.6]
    ├── filelock [required: >=3.11,<4, installed: 3.12.2]
    └── platformdirs [required: >=3.2,<4, installed: 3.5.3]

Going to make a quick comment change so that it can reflect his

Added a test case, let me know if this is not adequate enough


[S] Populate content (working life)

[x] populate copy into MDX files for each page
[x] set up config required for ResearchNavigation (i.e. pills) to work

Spacing between the graphs is a bit too much on mobile

@carinapope13 @tkeburia

spacing between paragraphs + graphs on mobile is 36px (72 on tablet/desktop)


libinput: 1.10.0 -> 1.10.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/libinput/versions.
These checks were done:

built on NixOS
ran /nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3/bin/libinput -h got 0 exit code
ran /nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3/bin/libinput --help got 0 exit code
found 1.10.3 with grep in /nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3
directory tree listing: https://gist.github.com/27c5534de9dd9c8e7237f21c2dc8e824

cc @codyopel @wkennington for review

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: libinput
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: libinput
Partial log (click to expand)
/nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3/libexec/libinput/libinput-measure-trackpoint-range: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/azw9ys2m2fpfzf730xjcxja890gpyp58-python3-3.6.4/bin/python3"
/nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3/bin/libinput-list-devices: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3/bin/libinput-debug-events: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3...
shrinking RPATHs of ELF executables and libraries in /nix/store/l3aawm85vzh7f2j20cx1cqkq528m6aq1-libinput-1.10.3-dev
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/l3aawm85vzh7f2j20cx1cqkq528m6aq1-libinput-1.10.3-dev/lib
patching script interpreter paths in /nix/store/l3aawm85vzh7f2j20cx1cqkq528m6aq1-libinput-1.10.3-dev
checking for references to /build in /nix/store/l3aawm85vzh7f2j20cx1cqkq528m6aq1-libinput-1.10.3-dev...
/nix/store/h8pwbpjg88axygjj65y4y7lbq2z0m5lp-libinput-1.10.3

Success on aarch64-linux (full log)
Attempted: libinput
Partial log (click to expand)
/nix/store/gj4640c2526g9ga4ni6i99swk9r53cn8-libinput-1.10.3/libexec/libinput/libinput-measure-touch-size: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/dm6n8imydr8bdhr4j6l6wwfx8h99h781-python3-3.6.4/bin/python3"
/nix/store/gj4640c2526g9ga4ni6i99swk9r53cn8-libinput-1.10.3/libexec/libinput/libinput-measure-touchpad-pressure: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/dm6n8imydr8bdhr4j6l6wwfx8h99h781-python3-3.6.4/bin/python3"
/nix/store/gj4640c2526g9ga4ni6i99swk9r53cn8-libinput-1.10.3/libexec/libinput/libinput-measure-touchpad-tap: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/dm6n8imydr8bdhr4j6l6wwfx8h99h781-python3-3.6.4/bin/python3"
checking for references to /build in /nix/store/gj4640c2526g9ga4ni6i99swk9r53cn8-libinput-1.10.3...
shrinking RPATHs of ELF executables and libraries in /nix/store/1vww4j4sdg7v24dsnwcvriqfsdsrylpm-libinput-1.10.3-dev
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/1vww4j4sdg7v24dsnwcvriqfsdsrylpm-libinput-1.10.3-dev/lib
patching script interpreter paths in /nix/store/1vww4j4sdg7v24dsnwcvriqfsdsrylpm-libinput-1.10.3-dev
checking for references to /build in /nix/store/1vww4j4sdg7v24dsnwcvriqfsdsrylpm-libinput-1.10.3-dev...
/nix/store/gj4640c2526g9ga4ni6i99swk9r53cn8-libinput-1.10.3

Success on x86_64-linux (full log)
Attempted: libinput
Partial log (click to expand)
/nix/store/6akzynwv37qig6nljxp3f45z1dg1083w-libinput-1.10.3/libexec/libinput/libinput-measure-trackpoint-range: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/33v7rg3qmwfj3smvhna5634n7x286wl6-python3-3.6.5/bin/python3"
/nix/store/6akzynwv37qig6nljxp3f45z1dg1083w-libinput-1.10.3/bin/libinput-list-devices: interpreter directive changed from "/bin/sh" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/sh"
/nix/store/6akzynwv37qig6nljxp3f45z1dg1083w-libinput-1.10.3/bin/libinput-debug-events: interpreter directive changed from "/bin/sh" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/6akzynwv37qig6nljxp3f45z1dg1083w-libinput-1.10.3...
shrinking RPATHs of ELF executables and libraries in /nix/store/bjawln1fa2sfx8p91bc8kwvlfg14ja6v-libinput-1.10.3-dev
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/bjawln1fa2sfx8p91bc8kwvlfg14ja6v-libinput-1.10.3-dev/lib
patching script interpreter paths in /nix/store/bjawln1fa2sfx8p91bc8kwvlfg14ja6v-libinput-1.10.3-dev
checking for references to /build in /nix/store/bjawln1fa2sfx8p91bc8kwvlfg14ja6v-libinput-1.10.3-dev...
/nix/store/6akzynwv37qig6nljxp3f45z1dg1083w-libinput-1.10.3

Success on aarch64-linux (full log)
Attempted: libinput
Partial log (click to expand)
/nix/store/n8n0mni9napp22iysmlbmn3nsmjinkmf-libinput-1.10.3/libexec/libinput/libinput-measure-touch-size: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/ak3w5lrmzkznhkqmickq5km0adx53x2l-python3-3.6.5/bin/python3"
/nix/store/n8n0mni9napp22iysmlbmn3nsmjinkmf-libinput-1.10.3/libexec/libinput/libinput-measure-touchpad-pressure: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/ak3w5lrmzkznhkqmickq5km0adx53x2l-python3-3.6.5/bin/python3"
/nix/store/n8n0mni9napp22iysmlbmn3nsmjinkmf-libinput-1.10.3/libexec/libinput/libinput-measure-touchpad-tap: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/ak3w5lrmzkznhkqmickq5km0adx53x2l-python3-3.6.5/bin/python3"
checking for references to /build in /nix/store/n8n0mni9napp22iysmlbmn3nsmjinkmf-libinput-1.10.3...
shrinking RPATHs of ELF executables and libraries in /nix/store/s4961qr594d5iw45lc8rcb2zf57fak1p-libinput-1.10.3-dev
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/s4961qr594d5iw45lc8rcb2zf57fak1p-libinput-1.10.3-dev/lib
patching script interpreter paths in /nix/store/s4961qr594d5iw45lc8rcb2zf57fak1p-libinput-1.10.3-dev
checking for references to /build in /nix/store/s4961qr594d5iw45lc8rcb2zf57fak1p-libinput-1.10.3-dev...
/nix/store/n8n0mni9napp22iysmlbmn3nsmjinkmf-libinput-1.10.3

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: libinput
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


[Event Request] Codeunit 97 "Blanket Purch. Order to Order"

please implement the same trigger PurchOrderLineValidateQuantity with OnBeforePurchOrderLineValidateQuantity in codeunit 97. This Routine has just been implemented with 16.1 in codeunit 87 "Blanket Sales Order to Order":
OnRun:
...
PurchOrderLine := PurchBlanketOrderLine;
ResetQuantityFields(PurchOrderLine);
PurchOrderLine."Document Type" := PurchOrderHeader."Document Type";
PurchOrderLine."Document No." := PurchOrderHeader."No.";
PurchOrderLine."Blanket Order No." := "No.";
PurchOrderLine."Blanket Order Line No." := PurchBlanketOrderLine."Line No.";
  IF (PurchOrderLine."No." <> '') AND (PurchOrderLine.Type <> 0)THEN BEGIN
    PurchOrderLine.Amount := 0;
    PurchOrderLine."Amount Including VAT" := 0;
    PurchOrderLineValidateQuantity(PurchOrderLine ; BlanketOrderPurchLine)

LOCAL PurchOrderLineValidateQuantity(VAR PurchOrderLine : Record "Purchase Line";BlanketOrderPurchLine : Record "Purchase Line")
IsHandled := FALSE;
OnBeforePurchOrderLineValidateQuantity(PurchOrderLine, BlanketOrderPurchLine, IsHandled);
IF IsHandled THEN
EXIT;
PurchOrderLine.VALIDATE(Quantity, BlanketOrderPurchLine."Qty. to Receive");
LOCAL [IntegrationEvent] OnBeforePurchOrderLineValidateQuantity(VAR PurchOrderLine : Record "Purchase Line";BlanketOrderPurchLine : Record "Purchase Line";VAR IsHandled : Boolean)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Loose catch check

Operation is on each try statement:

See if any catch blocks are for Exception or OperationCanceledException, if not we don't care. Capture these in a data structure.
Determine if any of the following are true and capture the expression that represents the token or context involved:

An invocation in the try block passes a CancellationToken or an ICancellableContext
cancellationToken.ThrowIfCancellationRequested() is called in the try block

Go through the captured catch blocks in order.
If catch (OperationCanceledException) is encountered, it must have a filter when (token.IsCancellationRequested)

If valid filter, exit with no diagnostic. Otherwise, raise a diagnostic PS0020

If catch (Exception) (or equivalent catch { }) is encountered, that means OperationCanceledException has not been encountered, so the catch block must include a filter which does all the following, otherwise raise a diagnostic:

Involves the same exception variable as in the catch, e.g. if catch (Exception ex) then filter must include something like !(ex is OperationCanceledException)
Includes the cancellation token, such as token.IsCancellationRequested, but the implementation is left loose to allow for constructs like when (ex.IsCausedBy(token))

There are a hundred ways to implement this pattern so it's impossible to be rigid in the implementation check. Therefore the diagnostic serves as more of a reminder and links to documentation (implemented as a redirect URL) to acceptable practices for exception handling with cancellation.

Regarding RS2008, we don't even list the package on NuGet, so…


Can read ADX (free tier) from Databricks but cannot write rows to ADX

Describe the bug
I am experimenting with ADX/Kusto using a free tier cluster.   My authentication and read commands work quickly but the write command runs for days without sending any rows.    The table is created in the Kusto DB.
To Reproduce
Run the Databricks notebook below
import org.apache.spark.sql
//import org.apache.spark.sql.{SaveMode, SparkSession}
//import org.apache.spark.sql.types.{StringType, StructType}

import com.microsoft.kusto.spark.datasource.{KustoSourceOptions}
import com.microsoft.kusto.spark.sql.extension.SparkExtension.DataFrameReaderExtension
import com.microsoft.kusto.spark.utils.{KustoDataSourceUtils => KDSU}

KDSU.setLoggingLevel("all")

val cluster = ""
val tenant = "";

//
// Authenticate
val deviceAuth = new com.microsoft.kusto.spark.authentication.DeviceAuthentication(cluster, tenant);

deviceAuth.getDeviceCodeMessage;

val token = deviceAuth.acquireToken();

// Verify connectivity
val database = "CSF"
val table = "junk"

val conf: Map[String, String] = Map(
      KustoSourceOptions.KUSTO_ACCESS_TOKEN -> token
    )

val query = "junk | where autonomous_system_organization startswith \"c\""
spark.read.kusto( cluster, database, query, conf)
  .show();

//
//  Select a few rows to send to ADX
val tableNamePR2 = "ProcessRollup2";

val df  = spark.sql(s"""
  SELECT *
  FROM silver.$tableNamePR2
  WHERE event_date BETWEEN '2023-01-26' AND '2023-01-27'
  LIMIT 10
""");

df.count();

df.write
  .format("com.microsoft.kusto.spark.datasource")
  .option("kustoCluster", cluster)
  .option("kustoDatabase", database)
  .option("kustoTable", tableNamePR2)
  .option("accessToken", token)
  .option("tableCreateOptions","CreateIfNotExist")
  .mode("Append")
  .save();

Expected behavior
Rows to be written to Kusto cluster's DB
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Databricks cluster,  personal mode,  12.1 ML (includes Apache Spark 3.3.1, Scala 2.12)
com.microsoft.azure.kusto:kusto-spark_3.0_2.12:3.1.11

Additional context
I am new to ADX so this may be a rookie error or a limitation of the ADX free tier.
https://learn.microsoft.com/en-us/azure/data-explorer/start-for-free

We need more details - Are there any errors raised?
Run ".show ingestion failures" on your cluster and see if errors pop up.
Also, the default ingestion policy batches the data for a few minutes before ingesting it and the connector waits for the ingestion to complete (by default).
Try running it with a shorter ingestion batching policy - https://learn.microsoft.com/en-us/azure/data-explorer/kusto/management/batchingpolicy

Thank you for the troubleshooting steps.  Apparently this is a resource issue on the free tier ADX.
The cluster has reached its full data capacity of 10,468,982,784 bytes, to ingest more data please reduce the data size by either deleting some of the data or adjusting the retention policy.

I thought (based on this page) that the limit was 100 GB,  but in any case, the issue is not with the connector.
I appreciate the guidance on the batching too.

One thing that can be related to the connector and if your cluster is low on resources its worth considering - the connector can create leftovers which are supposed to be cleaned at the end of each run - if not they are auto-cleaned by the service after a week (this can happen if a 'write' run is canceled before fully waited). Read here about stagingResourcesAutoCleanupTimeout
https://github.com/Azure/azure-kusto-spark/blob/master/docs/KustoSink.md
This cannot happen in the connector 'Queued' mode.

Would this be the "on demand" equivalent of the staging resources auto cleanup?  This seems to trigger an IndependentGarbageCollectionRequested in the cluster.
.clean databases extentcontainers


How do I get raw objects from pro::proxy?

How do I get raw objects from pro::proxy?
Example: raw obj = pro.get();

@qq978358810 Thank you for asking. It depends on the definition of raw, i.e., how is it expected to use raw in your code?
If all you need is a const void* for whatever reason, you can add a convention in your facade, e.g.,
#include
#include "proxy.h"
struct MyFacade : pro::facade_builder
::add_convention<pro::operator_dispatch<"&">, const void*() const noexcept>
::build {};
int main() {
int a = 123;
pro::proxy p = &a;
const void* pa = &*p;
printf("&a = %p\n", &a);
printf("pa = %p\n", pa);  // pa and &a yield the same value at runtime
}
If you know the exact type of the contained value and want to do something like "dynamic_cast()" or "typeid()", proxy does not offer direct support for now. However, we are currently developing an extension that offers new proxy_cast() and proxy_typeid() syntax. If you are interested in this work, please see this discussion for more details. Please let us know if there is any further comment or feedback!

Thanks,I need this way proxy_cast().

@qq978358810 Thank you for asking. It depends on the definition of raw, i.e., how is it expected to use raw in your code?
If all you need is a const void* for whatever reason, you can add a convention in your facade, e.g.,
#include
#include "proxy.h"
struct MyFacade : pro::facade_builder
::add_convention<pro::operator_dispatch<"&">, const void*() const noexcept>
::build {};
int main() {
int a = 123;
pro::proxy p = &a;
const void* pa = &*p;
printf("&a = %p\n", &a);
printf("pa = %p\n", pa);  // pa and &a yield the same value at runtime
}
If you know the exact type of the contained value and want to do something like "dynamic_cast()" or "typeid()", proxy does not offer direct support for now. However, we are currently developing an extension that offers new proxy_cast() and proxy_typeid() syntax. If you are interested in this work, please see this discussion for more details. Please let us know if there is any further comment or feedback!

I need this way proxy_cast<>()

@qq978358810 Thank you for asking. It depends on the definition of raw, i.e., how is it expected to use raw in your code?
If all you need is a const void* for whatever reason, you can add a convention in your facade, e.g.,
#include
#include "proxy.h"
struct MyFacade : pro::facade_builder
::add_convention<pro::operator_dispatch<"&">, const void*() const noexcept>
::build {};
int main() {
int a = 123;
pro::proxy p = &a;
const void* pa = &*p;
printf("&a = %p\n", &a);
printf("pa = %p\n", pa);  // pa and &a yield the same value at runtime
}
If you know the exact type of the contained value and want to do something like "dynamic_cast()" or "typeid()", proxy does not offer direct support for now. However, we are currently developing an extension that offers new proxy_cast() and proxy_typeid() syntax. If you are interested in this work, please see this discussion for more details. Please let us know if there is any further comment or feedback!

Thanks, I need this way proxy_cast《Type》()

Thank you very much.


Add support for multi-attribute (4.5.5)

Support for multi-attributes should be added as follow:

Create and retrieve entities (entity service)
Update entity attributes (entity service)
Append entity attributes (entity service)
Delete entity attributes (entity attributes)
Integration in search service (search service)
Integration in subscription service (subscription service)

@bobeal can we discuss the priorities ?

Go for next iteration: support for relationships.


Inclusion of hard coded session IDs into various urls in the codebase

An example:
https://github.com/hikaruAi/FacebookBot/blob/fe3adc1dfbc0babb0b54b8265b0c27eadbe22422/FacebookWebBot.py#L143
There are a few other instances of this.
This isn't very good. Would be pretty trivial for Facebook to identify users of this bot from this.

Closing because this project is dead.


fix SendInvoice parameters

'send_phone_number_to_provider' and 'send_email_to_provider' parameters have been added to requset.
see: https://core.telegram.org/bots/api#sendinvoice

Thanks for your contribution . Could you change a few things?

Retarget PR to develop branch
Put all new parameters at the end of SendInvoiceAsync's parameter list to not break backward compatibility
Revert chatId type from long to int to not break compatibility

Thanks for your contribution . Could you change a few things?

Retarget PR to develop branch
Put all new parameters at the end of SendInvoiceAsync's parameter list to not break backward compatibility
Revert chatId type from long to int to not break compatibility

Done!
check plz


Additional xdebug config info

Including more details to make required steps clearer for what steps are required to get xdebug going on phpstorm.

Thanks for the contribution @ryantfowler. Good stuff