Is it possible to set the position of the menu item in the context menu?

Version of SharpShell used: 2.7.1
Related type(s) of SharpShell-Server: Directory, DirectoryBackground
As you can see below, the menu item sits at the very top of the context menu, which while nice, breaks a bit UX. Ideally, I would like it to sit below View, Sort by, Group by, Refresh, Customize this folder..., Paste, i.e. where all non-system menu items are.

Here's current code:
using System.Linq;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using DOSBoxCTX.Properties;
using SharpShell.Attributes;
using SharpShell.SharpContextMenu;

namespace DOSBoxCTX
{
    [ComVisible(true)]
    [COMServerAssociation(AssociationType.Directory)]
    [COMServerAssociation(AssociationType.DirectoryBackground)]
    public class DosBoxContextMenu : SharpContextMenu
    {
        protected override bool CanShowMenu()
        {
            return true;
        }

        protected override ContextMenuStrip CreateMenu()
        {
            var menu = new ContextMenuStrip();

            var root = new ToolStripMenuItem
            {
                Name = "DOSBox-X", // prevents double menu items: https://github.com/dwmkerr/sharpshell/issues/277
                Text = @"DOSBox-X",
                Image = Resources.DosBox
            };

            var pick = new ToolStripMenuItem("Pick as C drive");
            pick.Click += (sender, args) =>
            {
                var path = SelectedItemPaths?.FirstOrDefault() ?? FolderPath;

                MessageBox.Show(path);
            };

            root.DropDownItems.Add(pick);

            menu.Items.Add(root);

            return menu;
        }
    }
}

Is this possible somehow?
Thank you.

Hey @aybe, good question, sadly yet there is no clear way to do this.
From the just closed duplicate issue:

You can sort of define the position of an item manually in the registry subkey via a "Position" REG_SZ" attribute,
like so for the directory background:
HKEY_CLASSES_ROOT
   Directory
      Background
         shell
            Test {Position=Bottom}

This should be more or less directly above the "Properties"-entry (above the line).
Don't know if you can define the position further, haven't found a way yet.
Source:
docs.microsoft.com

Also, reading a bit more at MS docs, these resources could help you do it.
I don't think there is yet a feature that supports that, but if possible, we can add that.

IContextMenu with IContextMenu::QueryContextMenu implemented in SharpShell here
The second argument, "indexMenu" isn't used at all, which should specify the position of the menu(-item).
This argument should be used in the helper class-method calling User32.InsertMenuItem
InsertMenuItemA is the function to add the actual item,

If you can, try to overwrite/change the implementation to use the index and set the index where you want it to be. Never tryed yet. Maybe you want to try it and make a PR implementing that feature if working, would help tons ❤.

There you go:
#314
Needs more testing but so far works as expected!

Great 👍 will look into it more tomorrow as it's almost midnight here :D
Question: How do you specify "uint itemIndex" now? Or is the one from the system okay for you?
Can you show an example code/registry?

To me, the value IContextMenu.QueryContextMenu gets from the system is just fine.
Not sure I understand what you mean, I did nothing more than implementing a context menu, nothing at all in registry (it just works out of the box).
I did a quick test, copy pasted a context menu many times, looks like it's working fine:

I think it's just best to leave it as it is, it addresses most cases if not all, so why bother ? :)

Hey @aybe thanks for clearing that in your PR.
I want to keep this open to add it (how to position items) to the docs with a reference to your comment (314), why specifying the index manually is usually a bad idea. I will close it, after checking the docs.

OK
Le 5 nov. 2019 19:47, Pascal Ried<EMAIL_ADDRESS>a écrit :
Hey @aybehttps://github.com/aybe thanks for clearing that in your PR.
I want to keep this open to add it (how to position items) to the docs with a reference to your comment (314)https://github.com/dwmkerr/sharpshell/pull/314#issuecomment-549924990, why specifying the index manually is usually a bad idea. I will close it, after checking the docs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dwmkerr/sharpshell/issues/313?email_source=notifications&email_token=AALXMNZCVD4ZUQLYBDSITNDQSG5TBA5CNFSM4JIXQDA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDD4QEY#issuecomment-549963795, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AALXMN3YDVDSSQN3IKDLAXTQSG5TBANCNFSM4JIXQDAQ.

ure I understand what you mea

To me, the value IContextMenu.QueryContextMenu gets from the system is just fine.
Not sure I understand what you mean, I did nothing more than implementing a context menu, nothing at all in registry (it just works out of the box).
I did a quick test, copy pasted a context menu many times, looks like it's working fine:

I think it's just best to leave it as it is, it addresses most cases if not all, so why bother ? :)

Have you tried in windows 11? . I am struggling to set option in window 11. It is showing context menu but I need to click on  show more options.


Documentation generation polish

Follow up from #316

[ ] figure out fonts
[ ] figure out personalization (eg. "forking" the pages)
[ ] add different languages for the code examples
[ ] generate social cards for component pages (when sharing on twitter, slack, etc.)
[ ] generate an appcast for the sketch library and add a button to add it as a library directly (instead of downloading the file)

I had an interesting idea for personalization. It'd be interesting if we generated actual md/mdx files for each page, and then people who don't use gatsby or who want completely custom styles/layouts could load those into their existing site however they want. We would also make the components that we use within the mdx files available for import. It'd be nice if there were also an easier way to make smaller customizations, but this seems like a powerful option for major customizations.

We would also make the components that we use within the mdx files available for import

That's def something we need to do yes
One idea I had was to provide:

an option to specify the path to one or more templates (the components here: https://github.com/airbnb/Lona/tree/master/compiler/generate-docs/templates)
provide a command to copy paste the lona workspace of the documentation and add an option to specify its path

That way you have 2 different ways to personalize the docs: one with total control over everything, and one just changing the UI.
Then I want to create a gatsby theme which is an experimental feature to share a gatsby configuration. So they could use the theme in an existing gatsby site to add all the /u/... pages for a workspace for example

Those all sound good to me. I think if we had all of those, that'd be enough flexibility for pretty much any use case


Refactor com.google.container.. packages to com.google.kubernetes

container-tools is no longer used. The package naming should better reflect the module structure.

@ivanporty if you wanted to tackle this now, feel free. All open PRs from container-tools have been merged.


Broken menu system on Linux

VSCode Version: 1.53
OS Version: Debian Buster 10

Steps to Reproduce:

apt-get update then apt-get install code
run code, check the file menu, all menu items are improperly displayed.

Does this issue occur when all extensions are disabled?: Yes
ps- This problem happens when upgrading to VSCode Version: 1.53
to fix: Settings / window: Title Bar Style : custom

Are you able to paste a screenshot here to show what you mean by "improperly displayed"?

Are you able to paste a screenshot here to show what you mean by "improperly displayed"?

Yes, please see attached.

Does it happen when you run with --disable-gpu ?

Does it happen when you run with --disable-gpu ?

Yes, it still does the same.

Can you install https://www.electronjs.org/fiddle and check the menus on the app ?
Native menus rendering are controlled by electron, unless it can be repro'd in a minimal electron app there is nothing further actionable here.
Does it render fine when you have the following setting "window.titleBarStyle": "custom" ?

Can you install https://www.electronjs.org/fiddle and check the menus on the app ?
Native menus rendering are controlled by electron, unless it can be repro'd in a minimal electron app there is nothing further actionable here.
Does it render fine when you have the following setting "window.titleBarStyle": "custom" ?

electron fiddle has the same problem. setting titlebarstyle to custom fixes the problem.
Thanks,

@Deepak: There absolutely IS something actionable to do. YOU need to report the issue to Electron, not us, because YOU need to ensure that this issue closes when (and not before) upstream fixes are incorporated into VSCode. We can't do that.

The actual workaround, correctly described:

Select File/ {references > Settings.

Select the Window tab.

Scroll down to find "Title Bar Style", and set it to custom.

FYI- This problem may happen again when opening a new vscode instance (new window). I fixed this by:

Go to vscode settings
Under Window: New Window Demensions, select inherit


add status for reelection and end of terms

This adds new boolean fields to the sessions object for whether someone is running for reelection. I followed the pattern used for running_in_2018

I was thinking about keeping these generic so we don't need to update congress.py for future terms. they're already tied to a session, so the date is implied through that.

oh gotcha yeah that makes sense


add validation to new madmp models

Adds validation to the new madmp models Repository, License and MetadataStandard

Thanks for adding these validations @nicolasfranck


Use ros2-gbp release repository for polygon_ros.

The ros2-gbp release repository is already created and up-to-date from the creation of ROS 2 Iron.
No changes in the Rolling or Humble release artifacts have been made in either repository since. Which I verified via the following:
git ls-remote -t origin > /tmp/origin.tags
git ls-remote -t ros2-gbp > /tmp/ros2-gbp.tags
diff -u /tmp/origin.tags /tmp/ros2-gbp.tags

--- /tmp/origin.tags    2024-02-28 15:40:57.220318251 -0800
+++ /tmp/ros2-gbp.tags  2024-02-28 15:41:02.133584765 -0800
@@ -26,6 +26,14 @@
 d0a5deae14f0c0934f1ad68b729558c279e047d8       refs/tags/debian/ros-humble-polygon-utils_1.0.1-1_jammy
 baeac2003f2e6db393e6ab074fbd1d93daac25e6       refs/tags/debian/ros-humble-polygon-utils_1.0.2-1_bullseye
 ffab0d0c68d202a4b7ef460698c2341ee5c8317b       refs/tags/debian/ros-humble-polygon-utils_1.0.2-1_jammy
+2e9630780a740560290bf1bba530981168de3260       refs/tags/debian/ros-iron-polygon-demos_1.0.2-2_bullseye
+b54bdab70d82a3d16f6812e8964de26871f0d0c2       refs/tags/debian/ros-iron-polygon-demos_1.0.2-2_jammy
+0d15c9ce055480b124bc1df1bb283511ef8d2afa       refs/tags/debian/ros-iron-polygon-msgs_1.0.2-2_bullseye
+6ab02860530fbb24b47500c2e21df8d180233bf5       refs/tags/debian/ros-iron-polygon-msgs_1.0.2-2_jammy
+a3c97fbe60bd07b8c6e21191efbd531d2426efa6       refs/tags/debian/ros-iron-polygon-rviz-plugins_1.0.2-2_bullseye
+c7da87fc57df0747eb62f4644aa55525e345ef25       refs/tags/debian/ros-iron-polygon-rviz-plugins_1.0.2-2_jammy
+682304490c294659bcee3101aa76328fdeeb5899       refs/tags/debian/ros-iron-polygon-utils_1.0.2-2_bullseye
+3fbfa3b8a467c3e428a6444cf1b1046b28109ba2       refs/tags/debian/ros-iron-polygon-utils_1.0.2-2_jammy
 9dbb5bf53519cfff5b6335edcd5b01ea07295aa2       refs/tags/debian/ros-rolling-polygon-demos_1.0.2-1_bullseye
 b67d7c8b427caa3cdd811d96c9c84038e63dad9d       refs/tags/debian/ros-rolling-polygon-demos_1.0.2-1_jammy
 666f4952a147abe3814144f902671d9a9182b9de       refs/tags/debian/ros-rolling-polygon-msgs_1.0.2-1_bullseye
@@ -54,6 +62,10 @@
 fb4224084a5ddb226c20faf7b2da64f9a40ada13       refs/tags/release/humble/polygon_rviz_plugins/1.0.2-1
 fa69c3413ca0785af5030faa776bf24d02d90369       refs/tags/release/humble/polygon_utils/1.0.1-1
 9f13c71a3abad7c294bbdb474d07b537f2086c0f       refs/tags/release/humble/polygon_utils/1.0.2-1
+c06b644592bccd9178c5afa930fceebb7af33e68       refs/tags/release/iron/polygon_demos/1.0.2-2
+91e98585dd02a972f097e68c53a932e471d76a54       refs/tags/release/iron/polygon_msgs/1.0.2-2
+af7f47bce576e68823948e58921b8358033e1dad       refs/tags/release/iron/polygon_rviz_plugins/1.0.2-2
+433fed3f334e884f4f75433998bc885f505149f6       refs/tags/release/iron/polygon_utils/1.0.2-2
 982210556cf94f86987a6e6f88d831bf3e2c032b       refs/tags/release/rolling/polygon_demos/1.0.2-1
 9bd5e4c211ad71bf801aefbf6b6bd0a390fdce9d       refs/tags/release/rolling/polygon_msgs/1.0.2-1
 60ece43333603fb22025f0946883c4c5cb6f64f1       refs/tags/release/rolling/polygon_rviz_plugins/1.0.2-1
@@ -66,10 +78,14 @@
 ff945b92d789c76cc83c9b4092e06e22158694ec       refs/tags/rpm/ros-humble-polygon-rviz-plugins-1.0.2-1_8
 acde46b93dbeff5c86bbac3e3e7fd0b8ad73bfbc       refs/tags/rpm/ros-humble-polygon-utils-1.0.1-1_8
 7f60808a6d5dc1865a4d2e6a4a4a267c7713903e       refs/tags/rpm/ros-humble-polygon-utils-1.0.2-1_8
+5e99b9694b9cc455609548aa80255a10f364bdce       refs/tags/rpm/ros-iron-polygon-demos-1.0.2-2_9
+c824c54e786775f90309bee0be8d160ae5a4b04c       refs/tags/rpm/ros-iron-polygon-msgs-1.0.2-2_9
+0d7373e7f3e4db5186f28f1f0aec5f89ec5893f5       refs/tags/rpm/ros-iron-polygon-rviz-plugins-1.0.2-2_9
+cbd77aec92afa5165ce603d30bc123f955a789a7       refs/tags/rpm/ros-iron-polygon-utils-1.0.2-2_9
 dabaa3ee8a5980b608788af8e567ffbf281d9681       refs/tags/rpm/ros-rolling-polygon-demos-1.0.2-1_9
 70e74ae3d4b0a35c3a4445f3d11d457ca58697bc       refs/tags/rpm/ros-rolling-polygon-msgs-1.0.2-1_9
 0a462aed398734969385487efc366bb61863b735       refs/tags/rpm/ros-rolling-polygon-rviz-plugins-1.0.2-1_9
 a41a178c1753b2c09504230e8cee5a1495c026f5       refs/tags/rpm/ros-rolling-polygon-utils-1.0.2-1_9
 12cf8e15f0dea50f3ba9930d059b35f77661ba69       refs/tags/upstream/1.0.0
 61955b1afc9fffb26f364db10967d7eb92220d03       refs/tags/upstream/1.0.1
-27031f0d5a4ccc9bf0264ad450bb5b306f299afe       refs/tags/upstream/1.0.2
+7530963841cba7d5ba6189d902184b0cfa4d8952       refs/tags/upstream/1.0.2

Which shows the additional Iron release artifacts and a spurious change to the upstream 1.0.2 tag which is a result of bloom's internal workings. You could verify that these commits have the same contents with git cat-file commit ${COMMIT_ID} and see that the tree each commit points to is identical.

FYI @DLu

Was there something I did wrong here and with #40022 when we changed the release repository, or is it just a quirk of the infrastructure we're dealing with?

I think that we (mostly me) just left the task incomplete, after creating the ros2-gbp repositories and mirroring the contents from the MetroRobots-release ones, I should have updated the release repo urls in rosdistro and didn't.


Not all branding replaced / Issues with ISO: Need another run of replacments

We've had issues in nixos with iso uploads: https://github.com/NixOS/nixpkgs/issues/294376
The solution was to sed over the files: https://github.com/NixOS/nixpkgs/pull/294497/files
This also caught some other new instances of LXD in the code
Perhaps the patches you provide could be updated using our replacements to fix those issues

I'm confused, aren't the files you're sedding the exact same ones that we are?
https://github.com/zabbly/incus/blob/daily/.github/workflows/builds.yml#L330

I am the person who submitted the issue and the patch to sed over the files.
Just to clarify, the sed commands were taken directly from this repository, as stated in the pull request.
Is what @mkg20001 refers to, is that the changes made with the sed commands, should be implemented in patch files instead, or something like that?

The idea was to move the sed commands to the patch files. I didn't know they were from here, but also having them in patch files makes things better for us, since those commands in the github workflow slipped under my radar.

Is what @mkg20001 refers to, is that the changes made with the sed commands, should be implemented in patch files instead, or something like that?

Yes

Ah right, so no, we'd rather stick to sed as 99% of the time, the same patterns will work on newer versions of the UI.
Whereas patches basically need manual refreshing every time a new version comes out as simple things like indentation changes will break them.

How about putting the commands into a script, that the github workflow and
our packaging can call (preferrably one using set -e)? In case something
would need to be changed, since that is easier than analyzing the diff each
time.
Stéphane Graber @.***> schrieb am Sa., 9. März 2024,
19:12:

Ah right, so no, we'd rather stick to sed as 99% of the time, the same
patterns will work on newer versions of the UI.
Whereas patches basically need manual refreshing every time a new version
comes out as simple things like indentation changes will break them.
—
Reply to this email directly, view it on GitHub
https://github.com/zabbly/incus/issues/28#issuecomment-1986937940, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB3AO2MCVTKWSHX3NRYOQ7TYXNGKBAVCNFSM6AAAAABEOITU2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHEZTOOJUGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yeah, we can move those into a separate sed script.


SA Profile updates

@janjulian pls review bare bones profile. very basic settings and apps setup here.


Feature/Fix Branded Support Links [EOSF-627]

Ticket
https://openscience.atlassian.net/browse/EOSF-627
Purpose
Improve visibility of support links for agrixiv and psyarxiv.
Changes
Agrixiv -
theme-color-4 was changed to a darker green (#3e7553). This makes the support link on the not-found page dark green, as well as changes the focus background color of the navbar links to dark green. Theme-color-5 was then changed to white, which is the navbar link text color when active. On support-link hover the color does not change, but an underline is added.

Psyarxiv -
Changed theme-color-4 to a light teal (#7EA9B1). $use-theme-color-logo was changed to false, and $use-contrast-link-color was changed to true.  This makes the support link and the active background color of the navbar links this light teal color.   On support-link hover the color does not change, but an underline is added.

Side effects

Change was made in admin app instead.


doc: assign ids to many headings

without stable ids on headings we cannot generate stable links to these headings. nrd complains about this, but the current docbook workflow does not.
a few generated ids remain, mostly in examples and footnotes. most of the examples are generated by nixdoc (which has since gained MD export functions, and the MD export does generate IDs).
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

What is nrd?
I suppose the end goal is to be strict about this in the Nixpkgs manual?

Ah ok. Now I understand. Those other letters are very useful, so let's keep them.


Agent clusters

There should be a way to create a cluster of agents which can pick tasks from task queue and run in parallel.

great idea!

Deleting this as duplicate.
We are tracking this here: https://github.com/TransformerOptimus/SuperAGI/issues/572


Change how re-joining visitors are treated on public

If a user has been registered at a Clinic at some point, but now have 0 Active Subscriptions, when they log on to the Public line, they should be treated as if not registered, but skip the Language screen.

@imsickofmaps Please review.

:+1:


Fixes and cleanup of widget serialization code

As the title indicates this PR applies a minor cleanup of the widget serialization code fixing bugs hiding widgets when they should be visible.

Ready to merge.

Ok. I'll be rebasing my tutorial PR with this immediately to test it out.


Updating a Nested Object With AngularFire2

I am trying to update my data when a user clicks that they have completed a song.
I have already got that user and his array of songs from a service after he/she has logged in.
Now when the user clicks complete I want the data to persist. Currently it will only stay completed until the page refreshes. Meaning the database isn't updating fully. Basically I am needing to update a nested object in a JSON file.
Any help and explanation on this would be greatly appreciated. Thanks!
My code is below.
This will update the song until the current page is refreshed.
songCompleted(name:string) {     for (let song of this.activeUserSongs) {         if (song.name == name) {             song.completed = true;         }     } }
The Firebase Documentation says to do this...
export class AppComponent {   items: FirebaseListObservable<any>;   constructor(af: AngularFire) {     this.items = af.database.list('/messages');   }   addItem(newName: string) {     this.items.push({ text: newName });   }   updateItem(key: string, newText: string) {     this.items.update(key, { text: newText });   }   deleteItem(key: string) {         this.items.remove(key);    }   deleteEverything() {     this.items.remove();   } }
Current JSON Looks like this
"-KVMWnS8f0ZthDY5mP7G" : {   "firstName" : "Garrett",   "lastName" : "Sanderson",   "partLeader" : false,   "singingPart" : "First Tenor",   "songs" : [ {     "completed" : false,     "difficulty" : "Medium",     "name" : "America The Beautiful",     "parts" : [ {       "name" : "Baritone",       "urls" : {         "pianoWords" : "http://www.taabc.org/check-off-songs/baritone/america-the-beautiful/america-the-beautiful-piano-words.mp3"       }    ]} ]}

Hey @thegrid22593! Can you please fill out your issue with the issue template? It's really important to know the versions of Firebase, Angular, Angular CLI, and AngularFire upfront, and we can answer much faster and accurately when following the template's format. I'm closing the issue, but feel free to open a new one with the template.
Thanks :)

You got it!


Appium Server 1.6.3 not shutting down after tests

When I use the latest appium server 1.6.3, wdio-appium-service is not able to all the processes on windows.
It will be good if you can test the service on windows platform as well and also introduce something like below
var isWin = /^win/.test(this.process.platform);
if(isWin) {
kill(process.pid);
}

@rahulmr Hi, Is there any workaround for this while we wait for an official fix?
Thanks in advance!


Modified download url to use archive.apache.org so that images won't suddenly die

As I'm sure you are aware, when a version of tomcat is updated on the tomcat website, they remove the download for the previous version.
This pull request uses the archive.apache.org download link for every version of tomcat so that builds should always be successful, regardless of when they are run.

I am slightly hesitant to do this for ASF projects, since it could limit our ability to build the official images.

daily limit of 5GB per IP is being enforced on archive.apache.org
- archive.apache.org

I think we already skirt their rules by using www.apache.org, where they would rather we choose a mirror: http://www.apache.org/dyn/closer.cgi.

I wasn't aware of the daily limit per IP.
I also wasn't able to find a mirror for the archive site, so I guess this won't work.
Thanks anyway.


Remove params from PublishingAPIWithdrawer

We weren't using the flexibility of being able to construct a PublishingAPIWithdrawer with different publishing_apis. Constructing it in the class makes this more explicit.
This is similar to the changes in PR #880.

Thanks, @floehopper. I've rebased and force pushed in preparation for merging.


Cachebusting in jekyll-assets 3?

I noticed that cache-busting seems to have been removed in the latest versions of jekyll-assets.  Is that a capability you wont be supporting any longer?
Initially added from: https://github.com/jekyll/jekyll-assets/issues/11

Cache busting is unnecessary because Sprockets 3.0 tracks all assets that you use and busts it themselves as they see fit using a much more robust algorithm that we would use (or did use.) We have no plans to cache outside of sprockets as it increases complexity for very little benefit.
If you are having problems with assets not refreshing without a digest please file a ticket on jekyll/jekyll and @jekyll/core will happily consider adding a default header (though I recall that recently being brought up and fixed? I might be wrong though it might have been for another header.)
If you wish to enforce a digest you can however do that in the meantime, just send digest: true and we will respect regardless of what JEKYLL_ENV we detect and do as you wish.  If you wish to disable caching entirely you can also do that by just doing "cache: false" because our code explicitly checks if the value even exists and will only trip on true or non-string but will disable itself on nil or false.

This some background and a way to soft cache for those who need it. In my case,  hard cached file names won't work if I'm trying to reference a css file from our tumblr blog theme. On every deploy the fingerprint for all static assets changes (app-lakdsjflake.js).
Background: Basically sprockets dropped support for soft caching in the most recent version.  You can either digest all assets and hard fingerprint your files or not at all.  There was a heated discussion about it in github issues (I misplaced the link), and eventually the core team agreed they want to re-add soft caching at some point.
Work around
Until then, here is a work around, I wound up implementing my own soft caching in jekyll 3.0 with the following custom hooks.

you'll need to add uglifier to your gem file gem 'uglifier'
_plugins/cache_bust_filters.rb - adds filters for generating soft cached reference urls *.css?md5_hash
_plugins/uglifier.rb - manually compress and gzip js (causes issues on jekyll serve, use env to get around).
_plugins/env.rb - manages environment variables so we only compress/minify js on production environments.
You'll need to build your production jekyll assets w/ JEKYLL_ENV=production jekyll build

_plugins/cache_bust_filters.rb
# Note: Github doesn't allow plugins to execute (safemode). These filters won't work on github pages.
module Jekyll
  module CacheBustFilters
    # A simple class to handle md5 hexdigesting
    # Initializing params:
    # * file_name - String - required - this is both filename to which the md5
    #   hash will be appended to, and will be read for hexdigest in the absence
    #   of a passed in directory.
    # * directory - String - optional - path of directory files that will be
    #   recursively read and passed into hexdigest
    class CacheDigester
      require 'digest/md5'

      attr_accessor :file_name, :directory

      def initialize(file_name:, directory: nil)
        self.file_name = file_name
        self.directory = directory
      end

      def digest!
        [file_name, '?', Digest::MD5.hexdigest(file_contents)].join
      end

      private

      def directory_files_content
        target_path = File.join(directory, '**', '*')
        Dir[target_path].map{|f| File.read(f) unless File.directory?(f) }.join
      end

      def file_content
        FIle.read(file_name)
      end

      def file_contents
        is_directory? ? file_content : directory_files_content
      end

      def is_directory?
        directory.nil?
      end
    end

    # Gets Md5 contents of target file (assumed to be using the full path)
    # and appends a hash end of to asset file reference. Ensures deployed
    # asset files are "cachebust-ed" every time the file changes
    def md5_cache_bust(file_name)
      CacheDigester.new(file_name: file_name).digest!
    end

    # Gets Md5 contents of all sass assets (assumed to be in /_sass/ )
    # and appends a hash end of the target asset file. Ensures deployed
    # sass based CSS files are "cachebust-ed" every time the files change
    def sass_cache_bust(file_name)
      CacheDigester.new(file_name: file_name, directory: '_sass').digest!
    end

    # Gets Md5 contents of all js assets in _assets/javascripts/
    # and appends a hash end of the target asset file. Ensures deployed
    # files are "cachebust-ed" every time the files change. Using
    # jekyll-assests requires first capturing the asset_path string, and
    # passing the path to this filter in a subsequent liquid call.  Example:
    #    {% capture asset_path_string %}{% asset_path app %}{% endcapture %}
    #    <script type="text/javascript" src="{{ asset_path_string | js_cache_bust }}"></script>
    def js_cache_bust(file_name)
      file_name.gsub!('.js','.min.js') if ENV['JEKYLL_ENV'] == 'production'
      CacheDigester.new(file_name: file_name, directory: '_assets/javascripts').digest!
    end
  end
end

Liquid::Template.register_filter(Jekyll::CacheBustFilters)

_plugins/uglifier.rb
# After build uglifier
#
### WHY
# Sprokets won't allow us to digest our js and use custom
# cachebusting or fingerprinting of our files.  In order
# to allow third party services to fetch our files, we need
# assets available at stable urls - we need: app.js?xxx not
# app-xxx.js to be generated.
#
### SOLUTION
# We turn off digesting in sprokets, use a plug to create a
# custom md5 cachebusting cache, and use this plugin to
# minify assets after writing the site
if ENV['JEKYLL_ENV'] == 'production'
  Jekyll::Hooks.register :site, :post_write do |post|
    require 'uglifier'

    target_assets = Dir.glob('_site/assets/*').select {|f| File.file?(f)}
    target_assets .each do |file|
      minified_file = Uglifier.new.compile(File.read(file))
      minified_file_name = file.gsub!('.js','.min.js')
      puts 'Minfiying js manually...'
      File.open(minified_file_name, 'w') do |file|
        file.write(minified_file)
      end
      puts 'Gzipping js manually...'
      Zlib::GzipWriter.open(minified_file_name + '.gz') do |gz|
        gz.write minified_file
      end
    end
  end
end

_plugins/env.rb
class Jekyll::Site
  attr_accessor :env
end

class Env < Jekyll::Generator
  priority :highest
  def generate(site)
    site.env = ENV['JEKYLL_ENV'] || 'development'
    puts "Building w/ #{site.env} environment"
  end
end

@Rio517 I'm happy to accept this directly into Jekyll Assets if you want to form it as a pull for review!

After hearing about jekyll-assets from a number of places, I was really looking forward to using the hashed-content cache busting feature.  It seemed like I would be able to add the gem to my site and change some of my liquid templates and jekyll would take care of everything.  I'm really sad to see this feature removed.
At least, I assume it's been removed based on it no longer being mentioned on the main page.  My confusion comes from trying to read through this issue.  I have never heard of sprockets before this thread, but it seems to be some kind of ruby library/webserver.  Based on the conversation above

Sprockets 3.0 tracks all assets that you use and busts it themselves

this sounds like a dynamic thing, so it seems you are now assuming your users will be using sprockets as their web server.  I use jekyll because I want to generate a static website with no runtime dependencies.  Perhaps there is a way to use jekyll-assets to tell sprockets to generate the hashes statically, or perhaps that's what @Rio517's workaround code does.
Considering I'm new to jekyll-assets, I'm probably misunderstanding the issue, so please let me know where I'm confused.  It's also been more than a year since this issue was filed, so I'd love to know what you suggest now.  Thanks!

Sprockets is a gem (ruby library) for asset management/compilation that is a part of rails and generally a cornerstone of the ruby ecosystem. It is common in the ruby world to build upon existing libraries rather than reimplment similar fuctionality. Jekyll-assets depends on sprockets, so yes, users of this gem will be using sprockets.
While soft cache busting was removed, it was removed from sprockets, not jekyll-assets. While restoring soft cache busting/fingerprinting seemed to be on the radar for sprockets 4, I can see no mention of it looking through their github repository.
Your options are:

disable cache digesting completely
use my work around
get in touch with sprockets team and get them to support to soft cachebusting (or add it yourself in a fork).
or maybe try to find a fork of sprockets that has this soft cachebusting/fingerprinting.

Jekyll is a static site generator, so obviously there are no runtime dependencies other than a webserver capable of serving static files (basically, all of them).  The output is just static html.

I did not found discussion as well. But I don't see any problems in adding soft-caching on jekyll-assets. Jekyll-assets is a wrapper on top of sprockets, and it works with Sprockets::Assets internally when it generates links in url helpers. Asset#digest_pathis simply logical path with hexdigest (etag) injected in. So for soft-cachebusting all that is needed:
"#{asset.logical_path}?cb=#{asset.hexdigest}"

Oh cool @ixti. I didn't notice that before.  I haven't had this need in a while, but I was under the impression that the build process would write files  asset-[fingerprint].js without generating the files at the logical path unless one disabled asset digests.   If this also minifies and gzips assets, then this could be a great solution.

@Rio517 oh. I was not hacking on sprockets for quiet some time now, so I believe I probably misunderstood the initial problem. Or at least it needs second part ;))
I assume (now) that you are refering that Sprocekts::Manifest records digested (hard cache busted) assets only. If so, then this is how e solved this problem at SensorTower:
module Sprockets
  class Manifest
    module NonDigestFiles
      def compile(*args)
        filenames = super

        assets.each do |logical_path, digest_path|
          digest_path   = File.join(dir, digest_path)
          logical_path  = File.join(dir, logical_path)

          # This probably should not happen with "real" files, but it can at least with silly ones, e.g.
          #   `app/assets/javascripts/Find Results`.
          next if digest_path == logical_path

          copy_asset(digest_path, logical_path)

          digest_path << ".gz"
          logical_path << ".gz"

          copy_asset(digest_path, logical_path)
        end

        filenames
      end

      private

      def copy_asset(digest_path, logical_path)
        return unless File.exist? digest_path

        File.open(digest_path, "rb") do |src|
          File.open(logical_path, "wb") do |dst|
            IO.copy_stream(src, dst)
          end
        end
      end
    end

    prepend NonDigestFiles
  end
end

Is soft cache bust implemented?
If yes, can someone tell me how to use it successfully?
Thank you


Make Razor C# contextually live in a different assembly.

Today if you do Razor completion in a C# file it treats the C# as if it's any other type of C# in the project. For Razor files, internals should not be accessible because at runtime it would explode.
This is super low on priority but figured i'd file an issue.

Doubt we'll ever do this.


Some readme install/usage instructions

Hey there,
I was curious to try this project but sadly I can't make it work.
I work on Ubuntu 20.04 with python 3.8.10. What version do you use for that project and what are the install/usage steps ? :)
Thank you!

Hi @cocapasteque Thanks for your interest.
Have you tried following the instructions provided here? What are the issues?
Maybe @gopuvenkat can help if the errors are specified.


Theme doesn't change on safari.

Describe the bug
I am unable to change theme from light to dark and vice versa. On Safari.
To Reproduce
Steps to reproduce the behavior:

Go to website and select slider to change theme. It doesn't  work on Safari

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: iMac 2022 Monterey
Browser: Safari
Version: adaptive_theme: ^2.3.1

Additional context
I think the themes doesn't w\switch from light to dark and vice versa because of how you saved settings in cookies.

Interesting!

I think the themes doesn't w\switch from light to dark and vice versa because of how you saved settings in cookies.

@nathanblanchard12 Can you provide more information on this while I check this?

@nathanblanchard12 Can you check this with this demo? This demo is working for me!
https://adaptivetheme.codemagic.app/#/

Closing this issue because of inactivity. Feel free to re-open if you're still facing the issue.


Move opensearch-oci to the internal plugins directory in this repo

Is your feature request related to a problem? Please describe.
Today there are options to store data in hdfs, azure, and s3, implemented in internal plugins here: https://github.com/opensearch-project/OpenSearch/tree/main/plugins. For some reason, the Oracle version of this is contained in a separate repo, https://github.com/opensearch-project/opensearch-oci-object-storage
The existence of the separate repo means extra maintenance and complexity. If there is a benefit to it being external, then there shouldn't be implementations in this repo for S3 and Azure.
Describe the solution you'd like
Move the contents of https://github.com/opensearch-project/opensearch-oci-object-storage to https://github.com/opensearch-project/OpenSearch/tree/main/plugins

@wbeckler at some point we discussed the opposite [1], to move off repository plugins into external repository. AFAIK we have not made any conclusions out of it, there are pros and cons for both approaches. Probably the most annoying one is the need for monolith release even if single plugin changes (we have a few bugs sneaked in in the past). @dblock @nknize do you think it is worth resuming the discussion?
[1] https://github.com/opensearch-project/OpenSearch/issues/1754

Moving the repository plugins to external GitHub repositories seems like the right direction long term, so I'm hesitant to move the OCI plugin into the monolith. This might actually be a good place to trial the external GitHub repository approach. The first step is to get the OCI plugin into proper shape to include in the OpenSearch distribution. If we get that process working well then we can separate out the other repositories (or if it doesn't work well give up on the approach and move OCI into the monolith :) ).

This might actually be a good place to trial the external GitHub repository approach.
@andrross we did that ~ a year ago: https://github.com/reta/opensearch-repository-plugins

@reta But we never actually used it when creating distributions, right? I think that will be the real test of the overhead involved (e.g. updating version numbers for new releases even when there are no other changes, etc).

@reta But we never actually used it when creating distributions, right? I think that will be the real test of the overhead involved (e.g. updating version numbers for new releases even when there are no other changes, etc).

Oh no, right, we basically had a repo which was 100% buildable (at the time), but we didn't push it further. I think it was a first step to estimate how hard that part would be.

+1 There is benefit to keep these plugins in their dedicated repos, it keeps OpenSearch leaner which enables us to move faster. None of these plugins shouldn't block building/releasing OpenSearch.
Moving OCI to the core will bring added baggage and generally we want to pull out these plugins from the core.

If there is a benefit to it being external, then there shouldn't be implementations in this repo for S3 and Azure.

These plugins are inherited from the fork, if we have maintainers and resources we should move them away from the core.


Prepare multi-subject v1.0.7 on openneuro

@jcohenadad Here is the plan
Changes that have to be made and mentioned in CHANGES for snapshot 1.0.7:

Renamed brno data (brno → brnoUhb & brnoPrisma → brnoCeitec)
Updated coauthors
Fixed CHANGES to descending order

Upload procedure listed here: https://github.com/sct-pipeline/spine-generic/wiki/upload-to-openneuro.
In the SOP you said : Save log file in new release of this repository. The tag of the repository should be the same release as in openeuro . Do you want to upload that log to openneuro ? or just keep it local ?

@alexfoias i think you can go ahead with 1.0.7, thanks

Sounds good so the correct list of authors for multi-center is in https://docs.google.com/document/d/1jEWCrZ2eoHWSVDoVRjxs53-Z7vUcjhlo3yYsM45XFEQ/edit ?

@jcohenadad I did all the changes and I added the authors as in the manuscript_copy. Can I go ahead and upload it to openneuro ?

Uploaded on https://openneuro.org/datasets/ds001919/versions/1.0.7

This issue can be closed.


remove unused inconsistently defined protocol upgrade activation parameters

unused params.
Also weirdly used, in one place consensus.nActivateSizeForkMajority = 750 in another it as set to 75

The difference between 750 and 75 is the difference between mainnet and testnet ;)
Thanks for finding this dead code. Always good to remove stuff!


Error Grav Update 1.5.9

Trying to update Grav to 1.5.9

In admin-plugin it's showing an Invalid Ajax Response Error.

1.5.9 was released and immediately removed. It is not available.
Please ignore it for now, it will be properly available later today.


append data to exising excel  with stream

Hey ,
Nice to use exceljs, great job!
when i use stream writer, one million data used 2.5G RAM,  can i reduce memory by  commit multiple times ,Or do you have any other suggestions?
i had trying fs.createWriteStream with 'a' flag but finaly could not open the  Generated xlsx
    var writerStream = fs.createWriteStream('./streamed-workbook.xlsx', { 'flags': 'a', autoClose: false, encoding: "utf8" });

Thanks,

@duxy-ios , are You using writerStream.end()?

Hi, I same your problem.
Can you help your sollution?
Thank!


Disallow simple passwords

like 123123, only numbers, too short ones, words like password, ...

Maybe password strength indicator


Improve Handling and Comfort of Typings

The way typings are enabled is currently clunky, needs a lot of manual work and is (for my taste) too likely to fail.

How about an automatic npm install @types/ember and update it from time to time?
If someone wants to stick to a certain version of the typings we could add an option to the ember.json file and maybe also add a command that lists all available versions where the user can select one (which will be written to the config file then).

I tried to use @types/ember today but it seems like VSCode doesn't provide intellisense if Ember was imported in a file (intellisense worked without an import statement).
I am not that familiar with tsd files but it seems to be a problem in there.
@felixrieseberg Where do the current typings come from?


EGP Boxes' parent origin is in center even after EGP:egpDrawTopLeft(1) call

Is it possible this could be closed?


Spaces in fasta headers causing BAT invokes "non-unique header" error

Dear authors,
First off, thanks for developing and maintaining this wonderful tool!
I would like to report a slight inconvenience.
I was running CAT in bins mode as follows with the following output/error:
CAT bins -b /scratch/users/snarayanasamy/membrane_cleaning/output/dereplication/test/dereplicated_bins/dereplicated_genomes -d /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database -t /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy -s fasta
# CAT v5.2.3.

BAT is running. Protein prediction, alignment, and bin classification are carried out.
Rarw!

Supplied command: /mnt/irisgpfs/users/snarayanasamy/miniconda3/envs/11b9a2cf51e8974743c3fbfb08e57906_/bin/CAT bins -b /scratch/users/snarayanasamy/membrane_cleaning/output/dereplication/test/dereplicated_bins/dereplicated_genomes -d /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database -t /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy -s fasta

Bin folder: /scratch/users/snarayanasamy/membrane_cleaning/output/dereplication/test/dereplicated_bins/dereplicated_genomes/
Taxonomy folder: /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy/
Database folder: /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database/
Parameter r: 5
Parameter f: 0.3
Log file: ./out.BAT.log

-----------------

Doing some pre-flight checks first.
[2023-10-10 09:43:26] Prodigal found: Prodigal V2.6.3: February, 2016.
[2023-10-10 09:43:26] DIAMOND found: diamond version 2.1.8.
Ready to fly!

-----------------

[2023-10-10 09:43:26] Importing bins from /scratch/users/snarayanasamy/membrane_cleaning/output/dereplication/test/dereplicated_bins/dereplicated_genomes/.
[2023-10-10 09:43:26] ERROR: BAT has encountered  twice in bin CBF1_MAGScoT_cleanbin_000004.fasta. Each fasta header should be unique in each bin.

I was a little puzzled at the error. So I went back to that exact bin to run CAT in bin mode:
$ CAT bin -b CBF1_MAGScoT_cleanbin_000004.fasta -d /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database -t /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy
# CAT v5.2.3.

BAT is running. Protein prediction, alignment, and bin classification are carried out.
Rarw!

Supplied command: /home/users/snarayanasamy/miniconda3/envs/catbat/bin/CAT bin -b CBF1_MAGScoT_cleanbin_000004.fasta -d /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database -t /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy

Bin fasta: ./CBF1_MAGScoT_cleanbin_000004.fasta
Taxonomy folder: /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy/
Database folder: /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database/
Parameter r: 5
Parameter f: 0.3
Log file: ./out.BAT.log

-----------------

Doing some pre-flight checks first.
[2023-10-10 09:57:20] Prodigal found: Prodigal V2.6.3: February, 2016.
[2023-10-10 09:57:20] DIAMOND found: diamond version 2.1.6.
Ready to fly!

-----------------

[2023-10-10 09:57:20] Importing contig names from ./CBF1_MAGScoT_cleanbin_000004.fasta.
[2023-10-10 09:57:20] ERROR: your fasta file contains duplicate headers. The first duplicate encountered is , but there might be more...

Further inspection of my fasta file shows that the headers are indeed unique:
$ # Calculate the total no. of headers
$ grep "^>" CBF1_MAGScoT_cleanbin_000004.fasta | wc -l
148
$ # Calculate the number of unique (sorted) headers
$ grep "^>" CBF1_MAGScoT_cleanbin_000004.fasta | sort | uniq | wc -l
148

I then removed the spaces in the header and rerun the command with the new file:
$ cat CBF1_MAGScoT_cleanbin_000004.fasta | sed -e 's/> />/g' > CBF1_MAGScoT_cleanbin_000004-spaceless.fasta
$ CAT bin -b CBF1_MAGScoT_cleanbin_000004-spaceless.fasta -d /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_CAT_database -t /scratch/users/snarayanasamy/catbat/CAT_prepare_20210107/2021-01-07_taxonomy
# CAT v5.2.3.
... (works perfectly) ...

It would be nice if the tool could handle these cases or even a more explicit error message would be really helpful. Let me know if you have any further questions.
Cheers,
Shaman

Hi @shaman-narayanasamy,
Thanks for bringing this to our attention! Currently we require the header (the part before the first space in the >line) to be unique. If I understand correctly your fasta names are unique because the descriptions differ (the part after the first space in the >line). I have updated the error messages to make this clear now! :)
Best wishes,
Bastiaan

Thanks @bastiaanvonmeijenfeldt !


NEST - Balance view

As a user that created successfully a Paloma address, I want to be redirected to the Balance view.
Designs: https://www.figma.com/file/ClniQyKFqN1hSpWizV5O4A/Paloma?node-id=1595%3A749
Assets: https://drive.google.com/drive/u/1/folders/1mPLJ5V6h0TVTLvNvjxZ_gCzuicBgUCT0

07/10 ISSUES/IMPROVEMENTS:

[ ] The GRAIN logo is pixelated. Please update it. The file is here (name: GRAIN.png) https://drive.google.com/drive/u/1/folders/1mPLJ5V6h0TVTLvNvjxZ_gCzuicBgUCT0

[ ] Font sizing needs to be updated.

[ ] Wallet name 16 PX

[ ] Wallet address 14PX

[ ] Options 14px and change to "Rock Star Regular."

[ ] Token options to 14px

[ ] Footer Menu to 14px and incresead also icon size.

Icons and assets here: https://drive.google.com/drive/u/1/folders/1mPLJ5V6h0TVTLvNvjxZ_gCzuicBgUCT0


Using XLButtonBarView labelFont Doesn't Seem to Work

I'm using a XLPagerTabStripViewController programically (without a XIB or storyboard) however am I unable to change the font of the XLButtonBarView,
There is a labelFont property on XLButtonBarView but setting this doesn't seem to have the desired effect.  The font displayed is always the font thats defined in the XIB.

Address in pull request #135

@OliverPearmain pull request was already merged! thanks for contributing!


WIP CSLC product size optimization

This PR is to optimize the product size of CSLC-S1, especially azimuth carrier phase, and flattening phase layers that are currently in full resolution.
At the moment, the simplest thing to apply is to reduce the precision (i.e. float64 -> float32) of the azimuth carrier phase (unwrapped). In case of flattening error (unwrapped), the precision reduction is not suggested because doing it will cause significant truncation error due to its magnitude and range. Detailed information is presented in the PPTX in google drive.
Other optimization algorithm will be added in this PR after discussion.

Wondering if you tested this approach in combination with the production of CSLC in array mode. Do you see any extra reduction in data size by combining the two?

Wondering if you tested this approach in combination with the production of CSLC in array mode. Do you see any extra reduction in data size by combining the two?

What I've found so far is that truncate_mantissa() causes significant truncation error when processing the unwrapped flattening phase and azimuth carrier phase (1st screenshot below). Wrapping and zeroing-out the value has gave reasonable truncation error (2nd screenshot below).

Regarding the combination: Below are my thoughts about the optimization strategy and/or their combination.

I don't think precision reduction is not relevant when we apply mantissa truncation.
sub-sample carrier phase, leave it unwrapped, and truncate_mantissa(): The magnitude of the subsampled values will be in the same order of magnitudes for the original signal. Therefore doing it will cause truncation error that mentioned above.
sub-sample carrier phase, wrap, and truncate_mantissa(): re-sampling this signal will give wrapped phases. We will lose high frequency signals of the phase in that case.
phase quantization and truncate_mantissa(): The idea of mantissa truncation is for floating data.

What I see from PR #127 is that we can selectively apply mantissa truncation for each full-res layers. Maybe it's a good idea to implement the optimization algorithm on top of that PR.

@seongsujeong I have looked at your presentation and understood the conclusions. I think is a good idea starting developing on the array mode. Given the significant reduction in size that we get, it seems that is the way to go.


Live Run Current View - fail Xamarin.Forms Android

Live Player 1.3.117(617)
VS2017 Entreprise preview
Xamarin.Forms <IP_ADDRESS>934 shared project
MainPage.xaml (elcome to Xamarin.Forms!)
Running the Live Player works (LP loads the ManPage.Xaml)
..but NOT the Live Run Current View (LP looses connetion and try to reconnect, fail)
I mean this is the Hello world page, and even that wont work.

iOS Live Player - Live Current View ..works better,


ZabbixConn class not instantiated

I've been working on getting our users inputted into Zabbix. However, whenever I run the script, the LDAPConn class fires, I'll paste the output below. What I can't figure out is after the zabbix-ldap-sync script is ran, it doesn't seem to get to the ZabbixConn part. I've already confirmed that I can successfully make API calls, the script queries LDAP.. But it just doesn't seem to make it to the point of actually creating the users in Zabbix.
Any help would be amazing!
Thanks!
LDAPConn output:
2021-01-27 15:36:09,563 - LDAPConn - DEBUG - Searching LDAP with filter >>>(&(&(objectClass=user)(sAMAccountName=%s)))<<<
ldap_search_ext
put_filter: "(&(&(objectClass=user)(sAMAccountName=%s)))"
put_filter: AND
put_filter_list "(&(objectClass=user)(sAMAccountName=%s))"
put_filter: "(&(objectClass=user)(sAMAccountName=%s))"
put_filter: AND
put_filter_list "(objectClass=user)(sAMAccountName=%s)"
put_filter: "(objectClass=user)"
put_filter: simple
put_simple_filter: "objectClass=user"
put_filter: "(sAMAccountName=%s)"
put_filter: simple
put_simple_filter: "sAMAccountName=%s"
ldap_build_search_req ATTRS: sAMAccountName
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x55a7da0307d0 msgid 47
wait4msg ld 0x55a7da0307d0 msgid 47 (infinite timeout)
wait4msg continue ld 0x55a7da0307d0 msgid 47 all 1
** ld 0x55a7da0307d0 Connections:
* host: $(ldapserver).$(domain).com  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Jan 27 15:36:09 2021

** ld 0x55a7da0307d0 Outstanding Requests:
 * msgid 47,  origid 47, status InProgress
   outstanding referrals 0, parent count 0
  ld 0x55a7da0307d0 request count 1 (abandoned 0)
** ld 0x55a7da0307d0 Response Queue:
   Empty
  ld 0x55a7da0307d0 response count 0
ldap_chkResponseList ld 0x55a7da0307d0 msgid 47 all 1
ldap_chkResponseList returns ld 0x55a7da0307d0 NULL
ldap_int_select
read1msg: ld 0x55a7da0307d0 msgid 47 all 1
read1msg: ld 0x55a7da0307d0 msgid 47 message type search-result
read1msg: ld 0x55a7da0307d0 0 new referrals
read1msg:  mark request completed, ld 0x55a7da0307d0 msgid 47
request done: ld 0x55a7da0307d0 msgid 47
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 47, msgid 47)
ldap_parse_result
ldap_msgfree
ldap_free_connection 1 1
ldap_send_unbind
ldap_free_connection: actually freed

API Connection:
2021-01-27 15:38:32,513 - pyzabbix - DEBUG - Sending: {
    "jsonrpc": "2.0",
    "method": "usergroup.get",
    "params": {
        "status": 0,
        "output": "extend"
    },
    "id": 2,
    "auth": "0994ff5fcd5eb4350fa1973319ac5c6a"
}

Do you still experience this problem. Did you find the reason for it? Please reopen if it still exists.


Substring not found / Index out of bounds

Writing ./data/train.tfrecords
Traceback (most recent call last):
File "captcha_records.py", line 123, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "~/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "captcha_records.py", line 102, in main
conver_to_tfrecords(training_data, TRAIN_FILE)
File "captcha_records.py", line 62, in conver_to_tfrecords
label_raw = label_to_one_hot(label).tostring()
File "captcha_records.py", line 42, in label_to_one_hot
index.append(CHAR_SETS.index(c))
ValueError: substring not found

Before adding _1 to all of my training captchas I've got this error:

Traceback (most recent call last):
File "captcha_records.py", line 123, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "~/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "captcha_records.py", line 102, in main
conver_to_tfrecords(training_data, TRAIN_FILE)
File "captcha_records.py", line 62, in conver_to_tfrecords
label_raw = label_to_one_hot(label).tostring()
File "captcha_records.py", line 44, in label_to_one_hot
one_hot_label[one_hot_index] = 1.0
IndexError: index 5 is out of bounds for axis 0 with size 5

I am having the same issue.

@EzequielAdrianM And how are your filenames like?
Image width and height are correct, CHARS_NUM = 6, but the script just doesn't want to process 2BFG6C_1.jpg!

@moermann Hi,I had the same issue. Maybe you can check CHAR_SETS in config.py and you'll find there is a O lost ,just add O here and try again.


fix: remove console warnings

:tada: This PR is included in version 1.5.0-beta.7 :tada:
The release is available on:

v1.5.0-beta.7
GitHub release

Your semantic-release bot :package::rocket:


Mod Combo Crash on flight take off

Log:
crash-2022-03-28_13.17.49-server.txt
Minecraft 1.12.2, Forge <IP_ADDRESS>59
I've whittled it down to this list of 19 mods. Remove any one and the crash goes away. ParticleCulling just so happens to be the last one added to my pack.

(Note that mixins is being handled by either Sledgehammer, Randompatches, or FoamFix I can't remember which.)
Equip a normal vanilla Elytra on your back, and a Magic Feather in the bauble slot.

While standing on the ground use a firework to take off. Creative mode is fine and makes it so you can survive. The important part seems to be only on take off and only randomly, so spamming it quickly by taking off and landing makes it crash the quickest.
It would appear that something about either the player entity or firework entity is running a foul with the normal vanilla functions. The best guess I have is that between all the patching there is a null value being passed along crashing the game.
Anywho! I noticed that you have an ignore list for particles. I wonder if I should start by ignoring the firework particles? Would you happen to know what to add to that list to ignore the proper particle?

Hey thanks for the clarification! Sure enough even removing ParticleCulling it still crashes.


Remove deprecated freegeoip.net

Remove the implementation of the freegeoip.net geocoder, discontinued the 1st of July in favour of IPStack, already implemented here.

Thanks @dsantosmerino


feat: make it possible to use dot notation in m! strings

This default instance makes it possible to write things like m!"the constant is {.ofConstName n}".
Breaking change: arithmetic expressions in m! strings may need a type ascription, for example m!"... {i + 1} ..." -> m!"... {(i + 1 : Nat)} ...".

Breaking change: arithmetic expressions in m! strings may need a type ascription, for example m!"... {i + 1} ..." -> m!"... {(i + 1 : Nat)} ...".

Is that only when the type of i is otherwise unknown, or now always? Does it affect plain m!"{i}"?
(Maybe include the answers in the description so that they make it to the release notes.)

It affects {i} too when the type of i is unknown, but only if it's still unknown by the time default instances apply. The mathlib breakage so far has been a case where the default instance chose to apply, causing i to become MessageData, causing the let binding for i to fail to elaborate.
For i + 1, the special thing here is that the binop elaborator isn't able to do postponement if it fails to calculate a type for the expression, so it falls back to letting HAdd.hAdd elaborate like usual.

Ok, sounds reasonable and matches the expectation that interpolatoin behaves like an implicit toMessageData.


Evaluating BART on CNN/DM : How to process dataset

From the README of BART for reproducing CNN/DM results :

Follow instructions here to download and process into data-files such that test.source and test.target has one line for each non-tokenized sample.

After following instructions, I don't have files like test.source and test.target...
Instead, I have test.bin, and chunked version of this file
(chunked/test_000.bin ~ chunked/test_011.bin).

How can I process test.bin into test.source and test.target ?
@ngoyal2707 @yinhanliu

thanks for the interest. you need to remove  https://github.com/abisee/cnn-dailymail/blob/b15ad0a2db0d407a84b8ca9b5731e1f1c4bd24b9/make_datafiles.py#L235
and comment out all the tf code in function write_to_bin.
You need to keep the raw data (no tokenization) to gpt2 bpe.

Note
I also had to modify this line :
https://github.com/abisee/cnn-dailymail/blob/b15ad0a2db0d407a84b8ca9b5731e1f1c4bd24b9/make_datafiles.py#L145
In order to remove  and  from the target file.

Note 2
To get better results, I also had to keep text cased. In order to do this, I removed this line :
https://github.com/abisee/cnn-dailymail/blob/b15ad0a2db0d407a84b8ca9b5731e1f1c4bd24b9/make_datafiles.py#L122

I followed these instructions but I'm getting .bin files instead of .source and .target files. Am I missing something? I'm also trying to reproduce these results.

I modified the write_to_bin function to the following. Is this the correct data format?
def write_to_bin(url_file, out_file, makevocab=False):
  """Reads the tokenized .story files corresponding to the urls listed in the url_file and writes them to a out_file."""
  print "Making bin file for URLs listed in %s..." % url_file
  url_list = read_text_file(url_file)
  url_hashes = get_url_hashes(url_list)
  story_fnames = [s+".story" for s in url_hashes]
  num_stories = len(story_fnames)

  if makevocab:
    vocab_counter = collections.Counter()

  with open('%s.target' %(out_file), 'wb') as target_file:
      with open('%s.source' %(out_file), 'wb') as source_file:
        for idx,s in enumerate(story_fnames):
            if idx % 1000 == 0:
                print "Writing story %i of %i; %.2f percent done" % (idx, num_stories, float(idx)*100.0/float(num_stories))

            # Look in the tokenized story dirs to find the .story file corresponding to this url
            if os.path.isfile(os.path.join(cnn_tokenized_stories_dir, s)):
                story_file = os.path.join(cnn_tokenized_stories_dir, s)
            elif os.path.isfile(os.path.join(dm_tokenized_stories_dir, s)):
                story_file = os.path.join(dm_tokenized_stories_dir, s)
            else:
                print "Error: Couldn't find tokenized story file %s in either tokenized story directories %s and %s. Was there an error during tokenization?" % (s, cnn_tokenized_stories_dir, dm_tokenized_stories_dir)
                # Check again if tokenized stories directories contain correct number of files
                print "Checking that the tokenized stories directories %s and %s contain correct number of files..." % (cnn_tokenized_stories_dir, dm_tokenized_stories_dir)
                check_num_stories(cnn_tokenized_stories_dir, num_expected_cnn_stories)
                check_num_stories(dm_tokenized_stories_dir, num_expected_dm_stories)
                raise Exception("Tokenized stories directories %s and %s contain correct number of files but story file %s found in neither." % (cnn_tokenized_stories_dir, dm_tokenized_stories_dir, s))

            # Get the strings to write to .bin file
            article, abstract = get_art_abs(story_file)

            target_file.write(abstract + '\n')
            source_file.write(article + '\n')

here is my modification,  it replace '0D' by ' ', but I can not fix the overlength of  train.bpe.source  caused by asciii "0D"
 11490 test.bpe.source
 11490 test.bpe.target
 11490 test.source
 11490 test.target
287474 train.bpe.source
287227 train.bpe.target
287227 train.source
287227 train.target
 13368 val.bpe.source
 13368 val.bpe.target
 13368 val.source
 13368 val.target

import sys
import os
import hashlib
import struct
import subprocess
import collections
import tensorflow as tf
from tensorflow.core.example import example_pb2
dm_single_close_quote = u'\u2019' # unicode
dm_double_close_quote = u'\u201d'
END_TOKENS = ['.', '!', '?', '...', "'", "`", '"', dm_single_close_quote, dm_double_close_quote, ")"] # acceptable ways to end a sentence
We use these to separate the summary sentences in the .bin datafiles
SENTENCE_START = ''
SENTENCE_END = ''
all_train_urls = "cnn-dailymail/url_lists/all_train.txt"
all_val_urls = "cnn-dailymail/url_lists/all_val.txt"
all_test_urls = "cnn-dailymail/url_lists/all_test.txt"
cnn_tokenized_stories_dir = "cnn_stories_tokenized"
dm_tokenized_stories_dir = "dm_stories_tokenized"
cnn_tokenized_stories_dir = "cnn/stories"
dm_tokenized_stories_dir = "dailymail/stories"
finished_files_dir = "finished_files"
finished_files_dir = "cnndm"
chunks_dir = os.path.join(finished_files_dir, "chunked")
These are the number of .story files we expect there to be in cnn_stories_dir and dm_stories_dir
num_expected_cnn_stories = 92579
num_expected_dm_stories = 219506
VOCAB_SIZE = 200000
CHUNK_SIZE = 1000 # num examples per chunk, for the chunked data
def chunk_file(set_name):
in_file = 'finished_files/%s.bin' % set_name
reader = open(in_file, "rb")
chunk = 0
finished = False
while not finished:
chunk_fname = os.path.join(chunks_dir, '%s_%03d.bin' % (set_name, chunk)) # new chunk
with open(chunk_fname, 'wb') as writer:
for _ in range(CHUNK_SIZE):
len_bytes = reader.read(8)
if not len_bytes:
finished = True
break
str_len = struct.unpack('q', len_bytes)[0]
example_str = struct.unpack('%ds' % str_len, reader.read(str_len))[0]
writer.write(struct.pack('q', str_len))
writer.write(struct.pack('%ds' % str_len, example_str))
chunk += 1
def chunk_all():
Make a dir to hold the chunks
if not os.path.isdir(chunks_dir):
os.mkdir(chunks_dir)
Chunk the data
for set_name in ['train', 'val', 'test']:
print "Splitting %s data into chunks..." % set_name
chunk_file(set_name)
print "Saved chunked data in %s" % chunks_dir
def tokenize_stories(stories_dir, tokenized_stories_dir):
"""Maps a whole directory of .story files to a tokenized version using Stanford CoreNLP Tokenizer"""
print "Preparing to tokenize %s to %s..." % (stories_dir, tokenized_stories_dir)
stories = os.listdir(stories_dir)
make IO list file
print "Making list of files to tokenize..."
with open("mapping.txt", "w") as f:
for s in stories:
f.write("%s \t %s\n" % (os.path.join(stories_dir, s), os.path.join(tokenized_stories_dir, s)))
command = ['java', 'edu.stanford.nlp.process.PTBTokenizer', '-ioFileList', '-preserveLines', 'mapping.txt']
print "Tokenizing %i files in %s and saving in %s..." % (len(stories), stories_dir, tokenized_stories_dir)
subprocess.call(command)
print "Stanford CoreNLP Tokenizer has finished."
os.remove("mapping.txt")
Check that the tokenized stories directory contains the same number of files as the original directory
num_orig = len(os.listdir(stories_dir))
num_tokenized = len(os.listdir(tokenized_stories_dir))
if num_orig != num_tokenized:
raise Exception("The tokenized stories directory %s contains %i files, but it should contain the same number as %s (which has %i files). Was there an error during tokenization?" % (tokenized_stories_dir, num_tokenized, stories_dir, num_orig))
print "Successfully finished tokenizing %s to %s.\n" % (stories_dir, tokenized_stories_dir)
def read_text_file(text_file):
lines = []
with open(text_file, "r") as f:
for line in f:
lines.append(line.strip())
return lines
def hashhex(s):
"""Returns a heximal formated SHA1 hash of the input string."""
h = hashlib.sha1()
h.update(s)
return h.hexdigest()
def get_url_hashes(url_list):
return [hashhex(url) for url in url_list]
def fix_missing_period(line):
"""Adds a period to a line that is missing a period"""
if "@highlight" in line: return line
if line=="": return line
if line[-1] in END_TOKENS: return line
print line[-1]
return line + "."
def get_art_abs(story_file):
lines = read_text_file(story_file)
Lowercase everything
lines = [line.lower() for line in lines]
Put periods on the ends of lines that are missing them (this is a problem in the dataset because many image captions don't end in periods; consequently they end up in the body of the article as run-on sentences)
lines = [fix_missing_period(line) for line in lines]
Separate out article and abstract sentences
article_lines = []
highlights = []
next_is_highlight = False
for idx,line in enumerate(lines):
if line == "":
continue # empty line
elif line.startswith("@highlight"):
next_is_highlight = True
elif next_is_highlight:
highlights.append(line)
else:
article_lines.append(line)
Make article into a single string
article = ' '.join(article_lines)
Make abstract into a signle string, putting  and  tags around the sentences
abstract = ' '.join(["%s %s %s" % (SENTENCE_START, sent, SENTENCE_END) for sent in highlights])
abstract = ' '.join([" %s " % (sent) for sent in highlights])
return article, abstract
def write_to_bin(url_file, out_file, makevocab=False):
"""Reads the tokenized .story files corresponding to the urls listed in the url_file and writes them to a out_file."""
print "Making bin file for URLs listed in %s..." % url_file
url_list = read_text_file(url_file)
url_hashes = get_url_hashes(url_list)
story_fnames = [s+".story" for s in url_hashes]
num_stories = len(story_fnames)
if makevocab:
vocab_counter = collections.Counter()
with open(out_file, 'wb') as writer:
for idx,s in enumerate(story_fnames):
if idx % 1000 == 0:
print "Writing story %i of %i; %.2f percent done" % (idx, num_stories, float(idx)*100.0/float(num_stories))
  # Look in the tokenized story dirs to find the .story file corresponding to this url
  if os.path.isfile(os.path.join(cnn_tokenized_stories_dir, s)):
    story_file = os.path.join(cnn_tokenized_stories_dir, s)
  elif os.path.isfile(os.path.join(dm_tokenized_stories_dir, s)):
    story_file = os.path.join(dm_tokenized_stories_dir, s)
  else:
    print "Error: Couldn't find tokenized story file %s in either tokenized story directories %s and %s. Was there an error during tokenization?" % (s, cnn_tokenized_stories_dir, dm_tokenized_stories_dir)
    # Check again if tokenized stories directories contain correct number of files
    print "Checking that the tokenized stories directories %s and %s contain correct number of files..." % (cnn_tokenized_stories_dir, dm_tokenized_stories_dir)
    check_num_stories(cnn_tokenized_stories_dir, num_expected_cnn_stories)
    check_num_stories(dm_tokenized_stories_dir, num_expected_dm_stories)
    raise Exception("Tokenized stories directories %s and %s contain correct number of files but story file %s found in neither." % (cnn_tokenized_stories_dir, dm_tokenized_stories_dir, s))

  # Get the strings to write to .bin file
  article, abstract = get_art_abs(story_file)
  if os.path.isfile(os.path.join(cnn_tokenized_stories_dir, s)) and article[:5] == '(CNN)':
    article = article[5:]
  article.replace('0D', ' ')
  with open(out_file+'.source', 'a+') as src:
    src.write(article+'\n')
  with open(out_file+'.target', 'a+') as tgt:
    tgt.write(abstract+'\n')
  # Write to tf.Example
  # tf_example = example_pb2.Example()
  # tf_example.features.feature['article'].bytes_list.value.extend([article])
  # tf_example.features.feature['abstract'].bytes_list.value.extend([abstract])
  # tf_example_str = tf_example.SerializeToString()
  # str_len = len(tf_example_str)
  # writer.write(struct.pack('q', str_len))
  # writer.write(struct.pack('%ds' % str_len, tf_example_str))

  # Write the vocab to file, if applicable
  if makevocab:
    art_tokens = article.split(' ')
    abs_tokens = abstract.split(' ')
    abs_tokens = [t for t in abs_tokens if t not in [SENTENCE_START, SENTENCE_END]] # remove these tags from vocab
    tokens = art_tokens + abs_tokens
    tokens = [t.strip() for t in tokens] # strip
    tokens = [t for t in tokens if t!=""] # remove empty
    vocab_counter.update(tokens)

print "Finished writing file %s\n" % out_file
write vocab to file
if makevocab:
print "Writing vocab file..."
with open(os.path.join(finished_files_dir, "vocab"), 'w') as writer:
for word, count in vocab_counter.most_common(VOCAB_SIZE):
writer.write(word + ' ' + str(count) + '\n')
print "Finished writing vocab file"
def check_num_stories(stories_dir, num_expected):
num_stories = len(os.listdir(stories_dir))
if num_stories != num_expected:
raise Exception("stories directory %s contains %i files but should contain %i" % (stories_dir, num_stories, num_expected))
if name == 'main':
if len(sys.argv) != 3:
print "USAGE: python make_datafiles.py <cnn_stories_dir> <dailymail_stories_dir>"
sys.exit()
cnn_stories_dir = sys.argv[1]
dm_stories_dir = sys.argv[2]
Check the stories directories contain the correct number of .story files
check_num_stories(cnn_stories_dir, num_expected_cnn_stories)
check_num_stories(dm_stories_dir, num_expected_dm_stories)
Create some new directories
if not os.path.exists(cnn_tokenized_stories_dir): os.makedirs(cnn_tokenized_stories_dir)
if not os.path.exists(dm_tokenized_stories_dir): os.makedirs(dm_tokenized_stories_dir)
if not os.path.exists(finished_files_dir): os.makedirs(finished_files_dir)
Run stanford tokenizer on both stories dirs, outputting to tokenized stories directories
tokenize_stories(cnn_stories_dir, cnn_tokenized_stories_dir)
tokenize_stories(dm_stories_dir, dm_tokenized_stories_dir)
Read the tokenized stories, do a little postprocessing then write to bin files
write_to_bin(all_test_urls, os.path.join(finished_files_dir, "test"))
write_to_bin(all_val_urls, os.path.join(finished_files_dir, "val"))
write_to_bin(all_train_urls, os.path.join(finished_files_dir, "train"), makevocab=True)
write_to_bin(all_train_urls, os.path.join(finished_files_dir, "train.bin"))
Chunk the data. This splits each of train.bin, val.bin and test.bin into smaller chunks, each containing e.g. 1000 examples, and saves them in finished_files/chunks
chunk_all()

@zhaoguangxiang Thank you!

Hi thank you for providing the code for preprocess.
I am looking for the right preprocess-scripts. Does this script can reproduce the result mentioned in paper?
I run the code in windows and encounter many encoding-problem. After fix that, i found the dataset format is abnormal
eg. strange blank in head of lines, and large margin between sentence.

I forgot my reproduction result.  I will reply to you after trying again.

@zhaoguangxiang Hi thank you for providing the code for preprocess. I am looking for the right preprocess-scripts. Does this script can reproduce the result mentioned in paper? I run the code in windows and encounter many encoding-problem. After fix that, i found the dataset format is abnormal eg. strange blank in head of lines(everylines), and large margin between sentence(for example in line5).

I forgot my reproduction result. I will reply to you after trying again.

Thank you very much~~ It will help a lot

If anyone still has problems about:

download and preprocess CNN/DM
evaluate fine-tuned BART on CNN/DM
You might want to check my reproduction repository https://github.com/BaohaoLiao/NLP-reproduction

@zhaoguangxiang Hi thank you for providing the code for preprocess. I am looking for the right preprocess-scripts. Does this script can reproduce the result mentioned in paper? I run the code in windows and encounter many encoding-problem. After fix that, i found the dataset format is abnormal eg. strange blank in head of lines(everylines), and large margin between sentence(for example in line5).

I forgot my reproduction result. I will reply to you after trying again.

Thank you very much~~ It will help a lot

I forgot my reproduction experience.


Add documentation for Pivotal deployment of WSO2 API Manager

This PR contains the documentation for Pivotal deployment of WSO2 API Manager.

Merged and will review this in our staged environment now, thanks @ThilinaManamgoda


Fixed README

Modified the comments for the hsl function return values.

Hey thanks for the PR :) In the future, do git pull --rebase origin master so we don't get the Merge remote-tracking branch 'MoOx/master' commits ;)
I'll merge this in the morning :+1: Thank you again!

I'm still learning git. I'll do that from now on. Thanks.
On Sep 30, 2015 9:44 AM, "Josh Ballard"<EMAIL_ADDRESS>wrote:

Hey thanks for the PR :) In the future, do git pull --rebase origin master
so we don't get the Merge remote-tracking branch 'MoOx/master' commits ;)
I'll merge this in the morning [image: :+1:] Thank you again!
—
Reply to this email directly or view it on GitHub
https://github.com/MoOx/color-string/pull/21#issuecomment-144276747.

No problem :) I didn't know about git pull --rebase until a little bit ago, too.

Sorry I'm just now getting to this.
In the future, try to put new things on their own branch as well ;)

Thanks! Landed in 4565f55257b5b0a43828942014264c85f9f4ed42.


Basic questionnaire documentation including

How to make a new one in the Medplum app, how to use the builder, how to use it in the Medplum app from the "Apps" tab and how to embed it in an application.
Also should include how to hook up questionnaire + subscription + bot to drive workflow

Fixed by #2039


Need to add scaled model tour

Scaled model tour consisting of VR version with XR integration toolkit should be added instead of simple first person POV

Resolved, need to add fbx of intial poly set.
Assets\Scenes\Final_lowpolyFBX.fbx
Currently in .gitignore


feat: add support for node-gyp --jobs option to parallelize an indivi…

Hi,
I have a native module with a couple hundred c++ files. Electron-rebuild does have a "parallel" option but this doesn't actually run make in parallel WITHIN one module. This adds support for node-gyp's --jobs option, so that users like me can run electron-rebuild --jobs=max from the command line
Thanks

Codecov Report

Merging #1106 (222c06b) into main (bed3539) will decrease coverage by 3.27%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1106      +/-   ##
==========================================
- Coverage   76.30%   73.03%   -3.27%
==========================================
  Files          21       21
  Lines         726      727       +1
  Branches      136      137       +1
==========================================
- Hits          554      531      -23
- Misses        121      146      +25
+ Partials       51       50       -1

Files
Coverage Δ

src/module-type/node-gyp/node-gyp.ts
83.87% <ø> (ø)

src/rebuild.ts
73.11% <100.00%> (+0.29%)
:arrow_up:

src/types.ts
100.00% <ø> (ø)

... and 3 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Hi,
Are you guys not accepting submissions? I'm pretty
Sure this is a useful feature for everyone

ref https://github.com/electron/rebuild/issues/303

References #303.


Shutdown gracefully when ctrl-c is pressed

Will have to catch the signal and set a global flag, then, when indexing, check if that flag is set after every block and if it is, halt. This is actually important to have because if we don't close gracefully, we might have an expensive db repair to perform on next run.

This is done.


JBPM-5693 - Starting multiple Kie server nodes simultaneously, 	JBPM-5677 - Kie server router URL format

@sutaakar could you please have a look?

Looks good, +1


Adding script for EDA

After advice from the last 522 lecture, I have decided to change the test and train data to .csv files rather than pickle. Please change how the data data is read into the EDA.py file and EDA file
Make sure the x scale is no longer the sqrt scale when looking at 0 and 1 values (see plot before categorical column title)
please delete the src/geckodriver.log file so we don't commit it to the project.

@hatefr you have a merge conflict in the EDA notebook. Can you resolve the conflict?


Different behavior for single and double quotes

I came across a bug that was rooted in what seems to be a curious feature of Parsley: changing from single to double quotes leads to a parsing error:
import sys
print(sys.version_info)
# sys.version_info(major=3, minor=5, micro=1, releaselevel='final', serial=0)

import parsley
print(parsley.__version__)
#1.3

grammar = parsley.makeGrammar("""
add = <digit+>:left sp "+" sp add:right -> ('add', left, right)
      | <digit+>:child                  -> child

sp = ' '*
""", {})

grammar('4 + 3').add()
# ('add', '4', '3')

But if we change sp = ' '* to sp = " "* and keep everything else constant, we get an error:
grammar = parsley.makeGrammar("""
add = <digit+>:left sp "+" sp add:right -> ('add', left, right)
      | <digit+>:child                  -> child

sp = " "*
""", {})

grammar('4 + 3').add()

---------------------------------------------------------------------------
ParseError                                Traceback (most recent call last)
<ipython-input-20-5d4b7ce9eeba> in <module>()
      6 """, {})
      7
----> 8 grammar('4 + 3').add()

/Users/jakevdp/anaconda/envs/python3.5/lib/python3.5/site-packages/parsley.py in invokeRule(*args, **kwargs)
     96                     err = ParseError(err.input, err.position + 1,
     97                                      [["message", "expected EOF"]], err.trail)
---> 98             raise err
     99         return invokeRule
    100

ParseError:
4 + 3
^
Parse error at line 2, column 0: expected EOF. trail: []

Is the semantic difference between " " and ' ' intended? I couldn't find any discussion of this in the documentation. Thank you!

I ran into this same issue recently.


Adjust position of successor after animation finished

When closing a growl, adjust the position of the successors only after the animation has finished (if there is an animation taking place).
Also very minor whitespace cleanup.

I currently like the fact the way the current system works. Thank you for the input though.


[Feliz.Lit] Static templates in lit-html 2.0

I tried the Fable.Lit and at the beginning they seemed to be working but then I realized the whole DOM was updated for every render. Some debugging revealed the reason is in lit-html 2.0 (currently rc-004) they're using a WeakMap to identify templates already rendered. I think I've managed to fix this in Fable by compiling to JS template strings (even if I've to wrap them again to conform to FormattableString API), but with Feliz.Lit.toLit this is not possible because templates are generated on-the-fly.
A workaround is tricky. Even if we could keep a "static" reference (but that can be garbage collected) per toLit call and have our own WeakMap, we cannot be sure the template will be the same every time because Feliz code is dynamic. The only solutions I can think of atm are:

use a lit-html directive to render to mount directly on the DOM, but then we don't have the diffing unless we import a virtual dom like Snabbdom or a similar technique
focus on interaction with React so we can use "real" Feliz
try to "pre-compile" Feliz.Lit templates somehow
just forget about converting Feliz.Lit code to Lit (except maybe for the styles).

What do you think @AngelMunoz?

this might sound silly (and let me know if it is) and I might not be understanding Lit's code there but if we produce a string without holes would that allow Lit's caching to prevent re-rendering all of the time until said string changed?
I would think that if in the end we produce a different string it would create a different cache entry and so on
also what about getting a hash of the whole node and using it as the only whole on that template?
the hash would need to be reproducible, I'm not sure if that can be done with Feliz.Lit
otherwise I don't think there might be an easy solution here ('ill try to think on something else) anyways  if that's not the case, we can always point to Sutil if the users want a type safe DSL that uses DOM nodes under the hood (making it as compatible as Lit with the rest of the ecosystem)

If I understand the code of lit-html 2.0 correctly, instead of building the TemplateResult directly in the html function they pass the deconstructed template more or less as is (the strings parts and the holes) with some metadata, then parse the template in render and cache the result in a WeakMap cache. It's important to note they use the strings array as the keys of the cache for two reasons: first it's ok the holes change, and second WeakMap keys must be objects (not strings or numbers).
Sorry I forgot to include it in the solutions above, but a possibility is to use our own cache for example with a hash as you said. The problem is we cannot use a WeakMap because we don't have a static object reference. So the cache would grow indefinitely as the app runs. Probably it wouldn't be an issue in real apps with not many Feliz templates embedded in Lit, and we could clean it up from time to time, but still it's not a nice design.

but still it's not a nice design

I agree

Probably it wouldn't be an issue in real apps with not many Feliz templates embedded in Lit

Hmm that could be a problem then from feedback I've got over the last few days there are people who want to run pure Feliz.Lit

Hmm, I'm more and more convinced that we shouldn't put too much effort on haunted virtual components. The library author doesn't seem to use them so that's a sign they won't see a lot of love in the near future. Probably we can remove the VirtualComponent from Fable.Haunted (sorry!) and just recommend the library for users who want to declare web components in a React fashion. At one point we should also make it possible to declare web components à-la-Lit (or even the standard way).
If users want to keep some local state between lit-html renders (without declaring an actual web component), this simple hook implementation seems to work and doesn't require extra dependencies so hopefully that's enough for now.
I've written many adapters for cool JS libraries (Vue, Svelte) but none has wide adoption. I believe the reason is that most users have already written big apps with React and it's too painful to rewrite them. Even for new projects it's difficult to use a new library if you've already many components (and workflows) written in React. I think being able to write HTML in F# is hugely beneficial for Fable apps but we need to focus on integration and minimize the steps for that 👍
I've published the packages with the new names. Note the package ids are prefixed with Fable. but the projects are Lit/Lit.React/Lit.Elmish/Lit.Feliz.

Hmm, I'm more and more convinced that we shouldn't put too much effort on haunted virtual components

I agree, all of the scheduler stuff seems un-intuitive at best and I think providing better integration with Lit could prove to be a better option

At one point we should also make it possible to declare web components à-la-Lit (or even the standard way).

I could re-invest time on the function based web components I was thinking in Sutil but adding a couple of inspirations from haunted
what do you think about actually allowing class style components here? I know classes are sometimes... too much for some people
and other kind of annoying topic are decorators but there are javascript API's and with the tagged templates classes are more JSX/TSX stylish I'll explore this area but I don't think I'll spend an extra amount of time for that

I've written many adapters for cool JS libraries (Vue, Svelte) but none has wide adoption. I believe the reason is that most users have already written big apps with React and it's too painful to rewrite them.

I wouldn't expect react users to move, but Ideally I'd expect new users or users familiars with other common frameworks to pick up the familiar html syntax and then move on to more F# flavored stuff either with Feliz.Lit or the original Feliz

I think being able to write HTML in F# is hugely beneficial for Fable apps but we need to focus on integration and minimize the steps for that 👍

I think I'll spend some time here to put out resources regarding these, either docs or samples and blog entries if the information is there hopefully it will be easier for new users to pick up

I've published the packages with the new names. Note the package ids are prefixed with Fable. but the projects are Lit/Lit.React/Lit.Elmish/Lit.Feliz.

I'll update the haunted bindings to use lit2 (remove the virtual components, /sadpanda) and the dotnet templates as well
Thank you very much for your time on this!
I really appreciate it I'll try to make it worth it 😆 with more content targeted to userland

I updated all of the samples and templates plus a blog post :) at least what I have been sampling hasn't broken with lit-html v2
also btw I did some cursed experiments here to see how dificult class style components with lit can be (i.e the the standard way) because some people (outside F#) really seem to like the JSX style but I don't think I'll pursue that goal too much I think at least for now the standard way for F# (data and functions) is good enough
in case you want to check those as well here they are
https://github.com/AngelMunoz/cursed-lit-experiments/blob/73fa896b9362cc91c103e1edb5ef560241c5372f/src/Main.fs#L92-L113

In principle it shouldn't be an issue to use classes for web components. Although I'm checking Lit components and they seem to be very Typescript-oriented so not sure whether they will be a good fit for F#, moreover as Lit's website recommends mixins and controllers to organize (which reminds me a bit of the problems we had with React classes and Higher-order-components). We also need to take into account the upgrade path: that's how many
Fable 3.3 will include decorators, not exactly the same as in Typescript but will work in a similar fashion. We could use to define web components out of a function

The javascript docs are quite late but they are comming, AFAIK Lit will support javascript only components as well, the decorators get translated into static properties I had some success on that repository I think If you don't mind we could release class based bindings as part of an extensions package, I don't think people will opt in for that too much
Haunted actually uses the same approach I had in mind with https://github.com/davedawkins/Sutil/issues/32 albeit in a more formalized fashion, I think if we wanted to go that route we could simply provide our own factory function that does that I'll see if I can get something later on but I feel we're very much on route to have most things supported in this package

Regarding function based components with Lit@2 check this https://github.com/alfonsogarciacaro/Fable.Lit/pull/7#issuecomment-909549075

The javascript docs are quite late but they are comming

The Lit JS documentation samples is in preview you can access it with the following link https://lit.dev/docs/?mods=jsSamples

Let's keep the Lit.Feliz project in the repo just in case, but we can "deprecate" it by removing it from the sample and the readme. We can revisit this if we still feel the need of using Lit with a typed API.

sounds good, I will update the dotnet templates as well


Make HTTP request methods as const strings

Make HTTP request methods as const strings as it should never be changed.

 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.:x: cpp11nullptr sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for looking at this, but this behavior was intentional. Using statics allows us to use ReferenceEquals for quick equality checks. Consts get embedded in the calling code and no longer ref-equal.

Since there's nothing in the code to make it clear that this was intentional, I filed https://github.com/aspnet/AspNetCore/pull/12441 to add a comment describing this.

Thanks, @anurse.

No problem! Without that additional context, your proposal to switch to const was entirely valid! Hopefully this helps clarify things.

I thought the runtime did ensure that string literals and constants were interned and ReferenceEqual except for a few corner cases involving things in generic types.  Is that no longer the case?

That does appear to be the case, I did some rough testing. There may be more complicated stuff at play though. I know @benaadams did some comparison of JIT-generated ASM when he made the change in HeaderNames (https://github.com/aspnet/AspNetCore/pull/9341) and saw a noticeable performance improvement from switching const to static readonly.
In general, I think we prefer to be specific here rather than rely on runtime behavior that we can't clearly assert.

In general, I think we prefer to be specific here rather than rely on runtime behavior that we can't clearly assert.

Definitely agree here.

I thought the runtime did ensure that string literals and constants were interned and ReferenceEqual except for a few corner cases involving things in generic types.

In the same assembly.
Public consts are compiled directly into the il of the referencing assembly if used in default parameters or attributes, so don't share the reference across assemblies; whereas behind a static readonly field or method it uses a reference into the referenced assembly.
I believe the runtime can intern and dedupe across assembly but it doesn't do it aggressively (would cause start-up/jit perf impact) and a cross-assembly string const in a method body also prevents inlining https://github.com/dotnet/coreclr/issues/23969

In general, I think we prefer to be specific here rather than rely on runtime behavior that we can't clearly assert.

Ah, know I remember the issue.  Thanks @benaadams! Glad we have a comment there now so people understand why the change was made.


chore(switch): add github build deps for deprecated switch

Needed for https://github.com/material-components/material-components-web-components/pull/2529


feat: add description of breaking changes inside js sdk in changelog.md

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


Minor README edit

Failure to place the import at the top of alacritty.toml may reject the loading of the theme, causing a warning: "Unused config key: import". Fix: https://github.com/alacritty/alacritty/issues/6996#issuecomment-1902089267

Apparently this has already been discussed


use scope guards in textures example

(haven't actually tried out the code, but should work like this)

Examples are translated directly from the C examples, but your version is better (more d-style)
Thank you


Publish 08/16/2021, 10:30 AM

Docs Build status updates of commit 9272266:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Set-OrganizationConfig.md
:bulb:Suggestion
View (exchange-ps)
Details

exchange/exchange-ps/exchange/New-DlpComplianceRule.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/New-LabelPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-DlpComplianceRule.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-LabelPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-OrganizationConfig.md

Line 0, Column 0: [Suggestion-disallowed-html-tag] HTML tag 'CountryOrRegion' isn't allowed. Disallowed HTML poses a security risk and must be replaced with approved Docs Markdown syntax.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Backporting StandardData from develop

This pull request will pull in the Data\StandardData directory from the develop branch in order to  allow a pull, compile and install of the latest release version of DSSAT CSM that works.

Incorrect repository. Sorry!


Neo.TransientError.Transaction.DeadlockDetected

I get below deadlock error when uploading multiple files or trying to generate graph for multiple files. Please advise
Traceback (most recent call last):   File "/Users/dhirajnair/Documents/Projects/code/xx/llm-graph-builder/backend/score.py", line 163, in extract_knowledge_graph_from_file     result = await asyncio.to_thread(   File "/Users/dhirajnair/miniconda3/envs/rag10/lib/python3.10/asyncio/threads.py", line 25, in to_thread     return await loop.run_in_executor(None, func_call)  ..... neo4j.exceptions.TransientError: {code: Neo.TransientError.Transaction.DeadlockDetected} {message: ForsetiClient[transactionId=11273, clientId=33] can't acquire ExclusiveLock{owner=ForsetiClient[transactionId=11276, clientId=35]} on NODE(505) because holders of that lock are waiting for ForsetiClient[transactionId=11273, clientId=33].

Hi @dhirajnair this happens when backend tries to write same node concurrently with multiple workers backend.

shouldnt there be some locking mechanism or retry-with-timeout? Do we have to handle this in code ourselves? @kartikpersistent

Yes it must be handled in the code I guess. @aashipandya and @praveshkumar1988 have the better idea

we already created issue link


[BUG] JDBC driver incorrectly reports it's user-agent and version

What is the bug?
JDBC driver sets User-Agent HTTP parameter to openes-jdbc/<IP_ADDRESS>.
The version is wrong and the moniker should probably be opensearch-jdbc.
What is the expected behavior?

String moniker to identifier JDBC driver as an OpenSearch client (opensearch-jdbc maybe?)
User-Agent version to match the version of the jar file (set in build.gradle).

Do you have any additional context?
Version is set here. The comment says "keep in sync with gradle." It clearly hasn't been -- it'd be great if it can be kept in sync automatically.

Code related: https://github.com/opensearch-project/sql/blob/2.x/sql-jdbc/src/main/java/org/opensearch/jdbc/internal/Version.java#L12

Fixed in #941


Grammar improvement: "help out" should be "help" in README

⚠ Open Source Workshop ⚠
(see title)

This should be g2g

Woot thanks @danalamo!