Mccalluc/try npm ci

Description
What was changed in this pull request?

npm ci rather than npm install, and upgrade npm to support npm ci: It is faster, and it can catch inconsistencies.
Upgrade node... (I thought that would upgrade npm, but since it doesn't, I could revert?)
Start generating package.lock (rm .npmrc), and stop ignoring it (.gitignore). Fix #624.
Pin webpack-dev-server: Fix #623. (I could look harder, but I could not determine what changes after than that cause only one example directory to be served.)

Why is it necessary?

package-lock.json and npm ci are best practice.
dev server examples were not working if you installed fresh.

Checklist

[ ] Unit tests added or updated
[ ] Documentation added or updated
[ ] Example added or updated
[ ] Screenshot for visual changes (e.g. new tracks)
[ ] Updated CHANGELOG.md

For TravisCI this looks fine.
Regarding the webpack-dev-server version, I am curious why you changed it at all? Was something broken? I know the examples broken when you updated but to 3.2.1 but were they also broken in 3.3.x?
FYI, there was a reason why we ignore package-lock.json. It led to numerous issues before, which required us to re-install and re-generate the lock file. Because that annoyed us we simply stopped using it. Maybe this has changed.

@flekschas :

Regarding the webpack-dev-server version, I am curious why you changed it at all? Was something broken? I know the examples broken when you updated but to 3.2.1 but were they also broken in 3.3.x?

Yes: I first updated all the way, and then had to work backwards to figure out where it broke:
higlass$ git status
On branch develop
Your branch is up to date with 'origin/develop'.

nothing to commit, working tree clean
higlass$ rm -rf node_modules/
higlass$ npm install
...
higlass$ npm view webpack-dev-server version
3.3.1
higlass$ npm run start
...
ℹ ｢wds｣: Content not from webpack is served from /Users/chuck/github/higlass/higlass/app

I hope we can understand why it isn't serving our static directories with the 3.2.1 and above, but after a quick look at that the changelog for that release and the diff, nothing popped out at me, and I would like to get the examples working as a first step.

Maybe this has changed

I'm not sure if it's exactly the problem you were having but there is this note at the bottom of the package lock docs:

Occasionally, two separate npm install will create package locks that cause merge conflicts in source control systems. As of<EMAIL_ADDRESS>these conflicts can be resolved by manually fixing any package.json conflicts, and then running npm install [--package-lock-only] again....


move register new component into context menu

We noticed that less than 1% of our users are creating new templates.
Thus I don't think this button should use such a prime real state
We also performed a small usability test and we observed that
users expect the search box to be in this area.
So I would like to move the "Register New Component" button inside
the context menu, and call it "Add Template" instead.
This will also clear the space for the search box.
Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Sorry, busy days 😅
@paulpach yep, let's add the option. The register but isn't only for templates though, in many cases it's used to register any kind of entities.


how can I get the gating signals in LSTM with keras 2? please

from keras import backend as K
K.get_value(layer.W_f)
it is not working

from keras import backend as K
K.get_value(layer.W_f)
it is not working.

If what you are looking for the is the weights of the LSTM layer, they are at layer.kernel and layer.recurrent_kernel. Each kernel is the concatenation of the weights for the W_* gates, and U_* gates, respectively.


Passing Username to New-CsOnlineSession when authenticating with MFA?

Hello,
with the Command New-CsOnlineSession now moving into MicrosoftTeams, the Username Parameter was removed.
In order to establish a Connection with MFA, I must not use the Credential parameter.
Calling New-CsOnlineSession without parameters provides a path to do that, though I cannot "pre-fill" the Username anymore.
Is there any way to pass a Username to the command (like Connect-MicrosoftTeams -AccountId does?)
I am trying to reduce the number of Authentication windows to 1 when connecting to multiple services?
I have raised an issue on the Docs that outline multiple connections to 365 services, but these do not cater for MFA.
https://github.com/MicrosoftDocs/microsoft-365-docs/issues/3759
Thanks,
David

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

ID: d2abd383-7815-9404-41ba-72bbedb5208a
Version Independent ID: 88342584-33e2-47c6-baf1-81644d5cc7a5
Content: New-CsOnlineSession (SkypeForBusiness)
Content Source: skype/skype-ps/skype/New-CsOnlineSession.md
Service: skypeforbusiness-powershell
GitHub Login: @tomkau
Microsoft Alias: tomkau

Hello @DEberhardt David, how are you?
I tested this on my lab, enabled MFA, connected to teams using Connect-MicrosoftTeams -AccountId<EMAIL_ADDRESS>approved on the authenticator app and then issued $sfbSession = New-CsOnlineSession and Import-PSSession $sfbSession
I didn't need to specify an Account for New-CsOnlineSession, it took the already validated token of the Connect-MicrosoftTeams.
Hope this information helps you,
Andrés

Ah! - This is interesting. I have found out that creating a session with New-CsOnlineSession from the MicrosoftTeams module will create a connection to Teams as well as for SkypeOnline...
Never tried it the other way round!
I shall go back to my Code and re-order its execution then.
Can probably confirm within the next two days as I have some time to tinker 👍
Cheers!

Follow-up question. OverrideAdmin domain is then also not needed anymore, I wager?
I mean, I could read it once connected to AzureAd anyways 😄

Ok. More testing has commenced. OverrideAdminDomain is able to be read after AzureAdConnection, not a problem.
The Single Sign On however only works if there is only one sign-in available.
I get a popup where I have to select the right account. No Authentication required (already signed-in) though in my request this list is already 10 Tenants long (and growing).
To really ensure connecting to the same service as the AzureAd and MicrosoftTeams connections, I would need to pass the Username to the command.

Hello again,
I see a few PRs have been introduced already, thank you! 👍
Recently I found a Sku I could not remove with my script as it was spelled slightly differently than advertised (Domestic Calling Plan 120 Minutes). I think there are two products out there: MCOPSTN5 and MCOPSTN_5 - This might not be intentional...

@get-itips

@get-itips

Ok. More testing has commenced. OverrideAdminDomain is able to be read after AzureAdConnection, not a problem.
The Single Sign On however only works if there is only one sign-in available.
I get a popup where I have to select the right account. No Authentication required (already signed-in) though in my account list is already 10 Tenants long (and growing).
To really ensure connecting to the same service as the AzureAd and MicrosoftTeams connections, I would need to pass the Username to the command.

Thanks for the feedback @DEberhardt David.

Ok. More testing has commenced. OverrideAdminDomain is able to be read after AzureAdConnection, not a problem.
The Single Sign On however only works if there is only one sign-in available.
I get a popup where I have to select the right account. No Authentication required (already signed-in) though in my account list is already 10 Tenants long (and growing).
To really ensure connecting to the same service as the AzureAd and MicrosoftTeams connections, I would need to pass the Username to the command.

Thanks for the feedback @DEberhardt David.

@yogkumgit This issue can be closed now. Thanks

@yogkumgit This issue can be closed now. Thanks


doesn't compile - clap issue

Hi,
I'm not a rust programmer so I might be doing something wrong here but I couldn't compile frawk.
I tried following ways to install
cargo +nightly install --path .
cargo  install frawk
cargo +nightly install --path . --no-default-features --features use_jemalloc,allow_avx2,unstable
cargo +nightly install --path . --no-default-features --features allow_avx2,unstable

all failed with the following message:
error[E0599]: no method named `multiple` found for struct `clap::Arg` in the current scope
   --> src/main.rs:306:15
    |
306 |              .multiple(true)
    |               ^^^^^^^^ method not found in `clap::Arg<'_>`

error[E0599]: no method named `multiple` found for struct `clap::Arg` in the current scope
   --> src/main.rs:329:15
    |
329 |              .multiple(true)
    |               ^^^^^^^^ method not found in `clap::Arg<'_>`

error[E0599]: no method named `multiple` found for struct `clap::Arg` in the current scope
   --> src/main.rs:350:15
    |
350 |              .multiple(true))
    |               ^^^^^^^^ method not found in `clap::Arg<'_>`

For more information about this error, try `rustc --explain E0599`.
warning: `frawk` (bin "frawk") generated 2 warnings
error: failed to compile `frawk v0.4.2 (/usr/src/myapp)`, intermediate artifacts can be found at `/usr/src/myapp`

I'm using ubuntu 20.04 and I ran rustup default nightly for nightly compilation. Here are the version numbers in case they are needed:
# cargo --version
cargo 1.56.0-nightly (e96bdb0c3 2021-08-17)
# rustc --version
rustc 1.56.0-nightly (ad02dc46b 2021-08-26)
# rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.56.0-nightly (ad02dc46b 2021-08-26)`

Thanks for the detailed report! Providing binaries for frawk is absolutely on my roadmap, so far I've had trouble producing static binaries with comparable performance but it is something I'm looking into. Your earlier comments are also a good reminder for me to update the LLVM dependency.
In the short term I'll work to fix the clap compilation issue. This is not something I'd generally expect to be a barrier to compiling from source, but the dependency frawk has is clap v3, which is in beta and hence less stable. If this continue to happen I may migrate back to clap v2, which will make this less common.
Thanks again, I'll try to get this sorted soon.

hi, clap issue has been resolved with commit 81a67738. Also, I was able to build it within Docker successfully.
 The official rust-lang images were based on Debian images and they didn't have llvm-10. So, I had to create an image based on Ubuntu.
After cloning the repo, the compiling can be done with the following command (replace the image name before running):
docker run --rm -it --user "$(id -u)":"$(id -g)" -e CARGO_TARGET_DIR=/tmp/myapp -v "$PWD":/tmp/myapp -w /tmp/myapp alperyilmaz/rust-nightly-llvm cargo +nightly install --path .

The executable file frawk  is around 48MB big. I thought it was because the executable is static but I checked it and it's dynamically linked.
Thanks for this great piece of software. Awk was already great and now it will be greater when it's running faster and in parallel.

Glad this works, and thanks for the kind words! I've uploaded 0.4.3 to crates.io for good measure. And thanks as well for the Docker commands; those look extremely useful. I'll close this issue for now; let me know if you run into more issues with frawk.

Thank you for updating these instructions! I'll look into linking to your comments on this thread from the README.

that would be great.. I'll try to maintain it as well. But, can not promise 100% success since llvm is kind of tricky.

@alperyilmaz I'm curious, so I'll ask why do you delete /var/lib/apt/lists/*? I am wondering if it is for speed.

Hi, it's for making images slightly smaller. When you run "apt update" it
downloads bunch of files which might take up 300-500 minutes of space
depending on your repo list. So, I was trying to make the image as small as
possible.
14 Eyl 2021 Sal 07:47 tarihinde haruna @.***> şunu
yazdı:

@alperyilmaz https://github.com/alperyilmaz I'm curious, so I'll ask
why do you delete /var/lib/apt/lists/*? I am wondering if it is for speed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ezrosent/frawk/issues/63#issuecomment-918798032, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADEH5YHCJQI5OTJ5KQKPGTUB3HWDANCNFSM5C47JZMA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Module is outdated

I try to run opendistro-for-elasticsearch on a openshift-container but I get this error:
Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist

@TobiasK22 are you still having this problem? Did you upgrade to Open Distro 1.2.0. Let us know and we can take a look if you're still running into setup issues.

Hi, we are having the same problem with 1.2.1
{"type":"log","@timestamp":"2019-12-17T13:39:25Z","tags":["info","optimize"],"pid":1,"message":"Optimizing and caching bundles for opendistro-alerting, security-login, security-customerror, security-multitenancy, security-accountinfo, security-configuration, kibana, stateSessionStorageRedirect, status_page and timelion. This may take a few minutes"}
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

We are running the docker image "amazon/opendistro-for-elasticsearch-kibana:1.2.1"
Could you help us fixing it?
Best regards

This is very old issue. I don't see the same error in the latest version. close this one. If you do see the issue, feel free to reopen it.


$ is not defined

It might has some issues on the web version, the console says: $ is not defined.

Please give me a screenshot and the parameters you passed in

It's a normal link from douyin, which my clients send to me several months ago.

5.35 xfo:/ 只要思想不滑坡，办法总比困难多😂%搞笑视频 %万万没想到 %看一遍笑一遍   https://v.douyin.com/NSBmxhE/ 复制此链接，打开Dou音搜索，直接观看视频！

I just checked the link, the video was deleted, sorry...
I used another link and it works.
I guess it would be really nice to remind user that the links they are trying to parsing is valid or not.

"I guess it would be really nice to remind user that the links they are trying to parsing is valid or not."

Maybe in a future version I'll add this feature, thanks for your feedback.


Allow the source Dataset to flow through to Histogram elements

When used with HoloViews https://github.com/pyviz/holoviews/pull/3919, this PR ensures that a resulting Histogram element has a .dataset property containing all of the dimensions in the original dataset.  No change in behavior for prior HoloViews versions.

LGTM. Thanks!


Polybar returns nothing but "polybar: symbol lookup error: polybar: undefined symbol: _ZN4Json5ValueC1ERKSs" on execution

I noticed my bar didn't start today and decided to try running polybar from the terminal.
polybar: symbol lookup error: polybar: undefined symbol: _ZN4Json5ValueC1ERKSs
was the only output and the bar did not start. I updated before my last reboot, so I would assume this is a compatibility issue with a newer package, however I could be completely wrong. Interestingly, I can't even check polybar's version as it still spits out the same error, but I still know that I'm running 3.1.0 from the Void Linux repository. Any help is appreciated, here's to hoping that this is just the result of a mistake I made.

Please try to build polybar from source, as described here. If you the executable you compiled yourself works fine, then it's a problem with the build file for void linux and you should report it there. In any case, please report back your findings.

building from source fails returning
/home/dexter/polybar/lib/i3ipcpp/include/i3ipc++/ipc.hpp:12:10: fatal error:        'i3/ipc.h' file not found #include <i3/ipc.h>          ^~~~~~~~~~
but I think this is unrelated.

So I tried building without the i3 module and it worked, but I kind of depend on that module as I use i3-gaps. I saw somewhere else that you said that this could be a result of cmake incorrectly detecting which version of i3 I have installed. Is there a workaround to this beyond disabling the i3 module?

That error shouldn't occur when you actually have i3 installed. Chances are that the variant of polybar that you built using the void linux build file didn't have i3 enabled either. Make sure that the i3-gaps package provides a ipc.h file (probably in /usr/include/i3/ipc.h)
For the original error, I think it is related to jsoncpp. Is it possible that in the last update jsoncpp was updated but it was updated after polybar was updated? If so, this could explain it. Try to rebuild polybar using the void linux template, this will make polybar compile against the latest jsoncpp version.

So the i3-gaps package in the Void repository doesn't appear provide ipc.h for some reason, so I ended up just building i3-gaps from source. After doing so I was able to successfully build Polybar. Thanks for your help!

@shizonic this is error is not jsoncpp related.
See Known-Issues

@patrick96 Thanks! I see you are using voidlinux too. So did you find a way to change the xbps-src template file to fix this is issue and to successful build it?

Yes there is a pre_build function. The problem is that the xbps package isn't build from the git version. Instead it uses the release tarbal and I can not execute a git checkout. So do you have any idea to fix it using the release tarbals instead of the git version?

You can use the xpp tarball at https://github.com/jaagr/xpp/archive/00165e1a6d5dd61bc153e1352b21ec07fc81245d.zip instead of using the one that depends on _i3ipcpp_version

@patrick96 Perfect. Thank you! I will give this a try.


DeserialiseFailureInfo does not account for Flat

https://github.com/IntersectMBO/plutus/blob/0114f6d66cf2dd23debe1928a320235a2250b39d/plutus-core/plutus-core/src/Codec/CBOR/Extras.hs#L77-L86
Also we switched to new cborg 2.10 version

I decided to not exactly do what the original issue was about. Instead I added a comment that Flat errors are propagated into OtherReason and I refactored related functions I found

[Not directly related to this PR, but it reminded me of something annoying.]
I wonder if we could try to intercept the flat errors and try to make them more informative.  We often get questions from people who get errors like
Flat deserialisation failure: TooMuchSpace (0x00000042005e82c8,S {currPtr = 0x00000042005e701d, usedBits = 3})

and it usually turns out that what's happened is that there's an extra layer of CBOR encoding round a flat-encoded script.  What that error actually means is that the decoder's got to what it thinks is the end of a buffer and there's still some input left. Maybe it's not helpful to report the full flat error and we should just say "Bad flat encoding" or something. Maybe not though: we cold genuinely have messed something up.

That was my initial plan: intercept Flat errors and propagate/lift them to this DeserialiseFailureInfo. To do that, I would rely to even more string encoding/decoding which I detest


All cmp sources treated as Variable in cmdline mode

I've been using lspkind for awhile, and recently started trying to cmp's cmdline mode, ie:
			cmp.setup({
                                 --
				formatting = {
					format = lspkind.cmp_format({
						mode = "symbol_text", -- show only symbol annotations
						-- maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
						ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)
						symbol_map = {
							Copilot = "󱜙",

						},
					}),
				},
                                 --- ...
			}
			cmp.setup.cmdline(':', {
				mapping = cmp.mapping.preset.insert({
				}),
				sources = {
					{ name = 'cmdline' },
					{
						name = 'path',
						keyword_length = 2,
						option = {
							trailing_slash = true,
						}
					}
			})

it seems like both cmdline and path end up treated as variables, ie:

I think either I would want:

to not show any lsp kind info
map path and cmdline to a kind that makes sense (File and Function?)

I do see a before callback that runs first
https://github.com/onsails/lspkind.nvim/blob/1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf/lua/lspkind/init.lua#L189-L191
... but I haven't figured out what to try to fill in to get it to skip the rest of the formatting. I do know that vim.fn.getcmdtype() returns an empty string if it's not in a command mode, so figure that could be used somehow.

It's ugly, but I've managed to remove the kind icon and text in the cmdline by wrapping the result of lspkind.cmp_format when registering it during nvim-cmp's setup:
-- Using lazy.nvim
spec = {
  { "hrsh7th/nvim-cmp",
    -- ...
    config = function()
      local cmp = require("cmp")
      -- Configure however you want
      local lspkind_opts = {}
      local lspkind_format = require("lspkind").cmt_format(lspkind_opts)
      -- ...
      require("cmp").setup({
        -- ...
        formatting = {
          format = function(entry, vim_item)
            if vim.fn.getcmdtype() == "" then
              return lspkind_format(entry, vim_item)
            end
          vim_item.kind = nil
          return vim_item
          end,
        },
        -- ...
      })
    end,
  }
}

Before

After


server: add error HTML templates with error description.

Tested the change with the example-app, it successfully displays an error template with error type and error description.
closes #657
@ericchiang

Improved "error type" message that gets displayed.

lgtm. we can continue improving the exact error messages later.


Release Google.Cloud.DocumentAI.V1Beta2 version 1.0.0-beta03

Changes in this release:
No API surface changes; just dependency updates.

Created release for Google.Cloud.DocumentAI.V1Beta2-1.0.0-beta03


apolipoprotein B mRNA editing enzyme complex as a child of  mRNA editing complex

Hi,
shouldn't apolipoprotein B mRNA editing enzyme complex  be a child of mRNA editing complex as it is defined for its substrate specificity.
Thanks

apolipoprotein B mRNA is a product of the APOB gene. Thus perhaps apolipoprotein B mRNA editing enzyme complex is too specific and should be merged into mRNA editing enzyme. This term has only 1 EXP annotation from UniProt.
@pgaudet does this fit our guidelines or are protein complexes different?

From what I read there is not a single complex able to process APOB mRNA and such complex is not specific of a single mRNA. PubMed=24916387 and PubMed=30844405.
APOB mRNA is a well studied case of mRNA editing often used as a reference.

I see. Does this mean that apolipoprotein B mRNA editing enzyme complex is a misnomer, using an enzymatic assay as the name for some function (and the complex)? If this all seems OK per field standard practices, I can add the parent. Thanks.

Yes, for me kind of misnomer based on the first target mRNA identified, though I cannot exclude yet there is no RNA-editing complex specific for APOB mRNA.

Evelyn requested that about 20 years ago: https://github.com/geneontology/go-ontology/issues/1192
She wrote that we dont know all the components of the complex. There is a single EXP annotation. I would not object to obsoletion (I thought maybe it represented a different complex, but it doesn't seem this is the case).
Thanks, Pascale

I think we should keep it. This is a type of editosome (GO:0045293 mRNA editing complex) that contains a deaminase APOBEC-1 and an RNA-binding protein ACF. PMID:12683974

ASP = APOBEC1 complementation factor 1 (by blast), aka a1cf, acf
KSRP = Khsrp (KH-type splicing regulatory protein)


Not working on Redmine 1.3

Hello, it stop working on Redmine 1.3
can you add a fix for it?
Thanks

Sure, it does not work redmine 1.3.
fix it?

I'm currently using it on a 1.3 installation, and it's working, although it's relatively slow.

I will try it again, thanks.


Can not implement child_removed event with angularfire2

I created a question on stack overflow and no one answered but someone made a comment to post here the issue.
stack overflow
Firebase data structure
{
  markers:
      key1 : {lat:1, lng:2}
      key2 : {lat:3, lng:4}
}

with JS + firebase, all 3 events works well.
var markers = database.ref('markers');
markers.on('child_added',  function(snapshot) {
    addMarkerUI(snapshot);
});
markers.on('child_changed', function(snapshot){
    updateMarkerUI(snapshot);
});
markers.on('child_removed', function(snapshot, prevChildKey) {
    removeMarkerUI(snapshot); // when delete child from server, this event is triggered
});

But with angularfire2, it behaved very differently.
    this.items$ = this.db.list('markers');
    this.items$.snapshotChanges(['child_added', 'child_changed', 'child_removed'])
      .subscribe(actions => {
        console.log(actions);
        actions.forEach(action => {
          if (action.type === 'child_added') {// works
            console.log('I was added', action, action.payload.val())
          }

          if (action.type === 'child_changed') {// works
            console.log('I was modified', action, action.payload.val())
          }

          if (action.type === 'child_removed') {// does not works
            console.log('I was deleted', action, action.payload.val())
          }
        });
      });

Version info
https://stackblitz.com/edit/angular-um7hbv
How to reproduce these conditions
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
https://stackblitz.com/edit/angular-um7hbv
Debug output
go to https://stackblitz.com/edit/angular-um7hbv and see console please.
Expected behavior
child_removed event does not occur in angularfire2 snapshotChanges

Actual behavior
"child_removed" event just returns actions without deleted child

snapshotChanges() is the state of your list, therefore you will never receive a child removed event because the item is gone from the state. If you want events use stateChanges(['child_removed').

Great, thank you.
On Sun, Mar 18, 2018 at 2:49 PM, David East<EMAIL_ADDRESS>wrote:

snapshotChanges() is the state of your list, therefore you will never
receive a child removed event because the item is gone from the state. If
you want events use stateChanges(['child_removed').
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/1513#issuecomment-373970887,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAuzKGsbYBNG8dM0ao707e5N8fVV3g4Fks5tfdlCgaJpZM4SrrNW
.

--
Regards
John, Cho
王言, 趙
Wang Eon, Cho


Create Thoughts on Django's license...

Essentially a little blog post about licenses!

Maybe you want to write to django-users or something, but pull requests are for contributing code to Django, not for blogging.

I don't think promoting yourself that way on django-users would be appropriate. Please refrain from using Django's audience to toot your own horn.


Watch multiple cluster/contexts at once?

I use kubewatch from where I run kubectl (not within the cluster), I have multiple clusters/contexts.  Would it be possible to make kubewatch watch all my clusters at once?

Could you describe why running kubewatch into multiple clusters doesn't work for you?


[💡 FEATURE REQUEST]: RR as a Caddy module

Plugin
No response
I have an idea!
Implement a RR as a Caddy module.
Draft notes:
Implement a RoundTripper to have a RR as a Caddy transport (http). Since this is good for the HTTP, other plugins, such as rr-temporal or those, that don't use an HTTP as a transport can't be easily integrated (for example, the whole queues bundle (jobs, sqs, beanstalk, etc.), rr-temporal integration. So, basically, we should find a way to use the RR plugins inside the Caddy.
OR:
Just use a classic approach, like, reverse_proxy to the RR endpoint.

config:
{
	# the roadrunner app
	roadrunner {
		rpc tcp://<IP_ADDRESS>:6001 # remove ??
		server {
                        on_init: # Do we need that inside the Caddy ???
                        pool: # we need a pool config inside the server
                            debug: false
                            command php psr-worker.php
                            num_workers: 0
                            max_jobs: 64
                            allocate_timeout: 60s
                            destroy_timeout: 60s
                                supervisor:
                                    watch_tick: 1s
                                    ttl: 0s
                                    idle_ttl: 10s
                                    max_worker_memory: 128
                                    exec_ttl: 60s
		}
		...
	}
}

app.example.com {
	root * /srv
	encode gzip
	mercure {
		...
	}
	php_fastcgi roadrunner {
		transport roadrunner
	}
	file_server
}

We can't use RR plugins (at least in the initial implementation), until we properly cover all plugin's functionality by tests.
We should use a pool configuration inside the server section (this is not the same as the RR configuration server section).
We don't need to use a roadrunner repository. I guess, we only need to use a RR SDK, especially: link
I guess, we also don't need an RPC plugin, since we don't use RPC.

Part of the discussion is here: https://github.com/roadrunner-server/roadrunner/issues/917

Following. Let me know if you have any questions!

Hey guys 👋🏻
I investigated the possibility of adding RR and the module to the Caddy web server, and unfortunately, this is not possible because RR will lose almost all its features. I mean, no Queues support, temporal, gRPC, etc. Using the fCGI/http2/h2c/http reverse proxy is better to pass the request to the RR.

@rustatian Are you sure? Why would it have to lose all its features?

@rustatian The suggestion was that it should run as an App Module, see https://caddyserver.com/docs/extending-caddy#app-modules. That would have Caddy start up RR as a dependency, then you'd also have an HTTP handler module that would send the request through RR's pipeline.

RR is a little bit more than an HTTP handler 😃
HTTP is only one of the various ways to deliver the payload. Others are: temporal server handlers, various jobs handlers (RPC): Kafka, rabbitmq, etc, gRPC handlers. Many of the plugins have their own RPC bridges (via our goridge protocol). So, as far as I understand, the Caddy server use case is for the HTTP(2,3,S) only? So, for example, if the user uses only RPC with, let's say, the SQS queue, there is no need for Caddy (for such users). And because of that reason, if we integrate an HTTP part of the RR into the Caddy, all other RR's features would be lost.

@rustatian

So, as far as I understand, the Caddy server use case is for the HTTP(2,3,S) only?

No, the HTTP server is itself just a plugin to Caddy. It's an app module. RR would probably be an app module as well, not just an HTTP handler.
For example, here's a layer4 (TCP/UDP) server for Caddy: https://github.com/mholt/caddy-l4
Don't limit yourself to just HTTP!

I used the wrong terminology. Yeah, RR also has a TCP plugin. But by HTTP, I meant the whole transport layer (that was my mistake, I wanted to use fewer words).
Do you mean, that the app module can be fully independent with its own configuration, lifetime, http/grpc/tcp/temporal/jobs endpoints?

@rustatian

Do you mean, that the app module can be fully independent with its own configuration, lifetime, http/grpc/tcp/temporal/jobs endpoints?

Exactly. 🎯
Well, Caddy manages the config including reloads, but your app can manage state that persists through reloads, etc. It can definitely open its own sockets, etc.

I suggest you read through https://caddyserver.com/docs/architecture to get an idea of the architecture.

Yeah, I saw this doc earlier, thanks @francislavoie.
I'll discuss this case with the team, but I'm worried about the use cases.

Since we might have an independent module, users will send their payloads directly to the RR, bypassing the Caddy server. In this case, we will lose the advantages of the web-server.
For the other cases, RR doesn't need a web server, since all communications are done via the gRCP directly to the RR (like Queues payloads, TCP, etc). Users architecture, in this case provides only a load balancer.

So, to have a nice integration for the Caddy web-server, would be nice to have a RR module, but not the app. In this case, users will benefit from the Caddy, but RR should be significantly reworked with only the HTTP PHP processes pool.


Bedrooms facing opposite direction?

Describe the bug
Appears that in some instances, bedrooms can be queued with the entrance on the opposite side of the corridor.

There's already a northern-bedroom in use, so it's not every northern instance that's flipped.
(See screenshot 2)

The flipped bedrooms have the entrance on the right side, but others are on the left side.
(See screenshot 3)

Attached df-ai.log is for first screenshot

Visual reference

ai version:
Dwarf Fortress 0.44.12
  Windows 64-bit
df-ai 0.44.12-r1-update1-8-g7b306e26 (Build ID: df-ai-pre-0.44.12-r1-180810000)
  code 7b306e2669d0c4fd933a73e360e5f9f0a7ba7ee6
DFHack 0.44.12-r1-0-gc2a64b35 (Build ID: df-ai-pre-0.44.12-r1-180810000)
  library c2a64b3573abbee549761f5c1c2626eec7a6e81c
  structures 23500e4e9bd1885365d0a2ef1746c321c1dd5094

Additional context
df-ai.log (log is for first screenshot)

Manually digging, to open the rooms, allows the AI to continue making additional bedrooms.

It looks like the broken one in this screenshot is the west_south template.


Folders do not expand and do not allow access to their contents

Expected Behavior
Folders that expand to access their contents
Actual Behavior
When I click on a folder, nothing happens
Reproduction Steps
No response
Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
No response
Insomnia Version
9.3.1
What operating system are you using?
Windows
Operating System Version
Windows 11
Installation method
Download from insomnia web
Last Known Working Insomnia version
No response

I have experienced that as well, but it was inconsistent. Today, I figured out why it happens for me:

If you click on the folder name, the focus indicator will be given to the folder, but it will not open. As long as the focus is on the collapsed folder, I cannot expand it.
If you avoid clicking on request names, it will open as expected.

Video of the issue:
https://github.com/Kong/insomnia/assets/20520590/97926508-f76f-4b93-9640-2277a4e09e8d

I have experienced that as well, but it was inconsistent. Today, I figured out why it happens for me:

If you click on the folder name, the focus indicator will be given to the folder, but it will not open. As long as the focus is on the collapsed folder, I cannot expand it.
If you avoid clicking on request names, it will open as expected.

Video of the issue:
output.mp4

This worked for me, however it should be able to expand and collapse from the name 😊
Thanks!!

I have experienced that as well, but it was inconsistent. Today, I figured out why it happens for me:

If you click on the folder name, the focus indicator will be given to the folder, but it will not open. As long as the focus is on the collapsed folder, I cannot expand it.
If you avoid clicking on request names, it will open as expected.

Video of the issue:
output.mp4

What terrify bug

Thanks for the feedback everyone. This is now fixed in the latest beta and will be released in the coming patch version!


[QUESTION] @Indexed: Unable to resolve signature of property decorator when called as an expression.

With this model im having some issues with the decorator @Indexed

this is the error

I would appreciate any help or if I need to pass another argument to the Decorator

:tada: This issue has been resolved in version 6.34.1 :tada:
The release is available on:

v6.34.1
GitHub release

Your semantic-release bot :package::rocket:


Have provider any function like RESTFUL API interface?

I need RESTFUL API to create frontend page.
Or you have any document to create the landing page(passing data from back-end to front-end) with laravel-admin?

It's not supported currently.

Will you support in future?
Have you any idea to do this?
Thanks @z-song .

@vanloc0301
laravel-admin is admin panel builder， if you want to built RESTFUL APIs, packages like dingo/api is a better choice i think.

@z-song . Thanks for your link providers.


VFX Graph support

I have some working VFX Graphs Fulldome custom blocks tests that will be added to repository soon...

WIP tests on master...


Escape autocomplete hints #1793

It took me couple of evenings to dig into this. May need more changes.
Autocomplete plugin relies heavily on lt.objs.sidebar.command/filter-list for rendering, sorting etc. So I had to find a proper place to insert escaping.
This commit escapes autocomplete tokens, so html tags aren't interpreted as tags anymore.  BUT now keys for tokens with escapable symbols can't by used for autocompletion.
Example, in my file I have string "http://fb.me/react-0.12.2.js". Before this change I could type fb.me/ and still see this token in autocomplete list. With this PR symbol / is interpreted as / so it doesn't match and this line doesn't show up in autocomplete.
Same for a string that caused a bug in first place. Now I can't autocomplete string
404
 by typing < ( plugin reads it as <). It will find this line if you start with h1 or 404 though.
Anyway I don't think autocomplete should produce such options like
404
. It should give only tag or only text, not whole string.

Yeah, autocomplete giving
404
 doesn't feel very nice, but I don't think making it impossible to complete across escapable symbols is going to be an acceptable solution. We should filter the displayed text only.

Agreed we should only filter the displayed text. (filter-list) takes a :transform option to do this. The transform fn takes 4 args but it's the third arg that we care about here. The :transform option applied to this issue looks like :transform #(escape %3). Strangely the autocomplete doesn't render correctly. It may be an issue with escape or how dom/html renders an autocomplete item. Anyone who wants to dig into this more please do.

Closing as the suggested approach hasn't been attempted. Happy to reopen if there's interest


dnd-moved not firing

I have an element defined as this in the html

however, the dnd-moved callback never gets called. The "move" works because the dragged item is inserted
what am I missing ?

Did you define console in your scope?

I'm having a similar issue, specifically when I'm using dnd-moved and dnd-drop together.
I have two nested lists, each with dnd-moved and dnd-drop on them. For some reason on the second list, dnd-moved doesn't fire, but it does on the first one.
e.g.

                     {{shortlistCat.Name}}

Writing this out as a second comment as the behaviour is really odd.
Apparently they can both work at the same time nest but if you put a breakpoint on either of the drop functions, dnd-move is never called. If you remove the breakpoint, everything goes back to normal. So I'm guessing it's an odd timing issue.

Has this issue ever been actually resolved?  I've having exactly the same problem.

My problem was that I combined this with dnd-dropped and put a break point
in dnd-dropped.
For some reason when adding a breakpoint there, it caused moved not to be
fired. The only way I could figure out to solve it was to either set some
scope variables and then use them in the moved function instead or wrap the
code in dropped in a setTimeout to debug it. This would cause it to happen
after dnd-moved but everything seemed to work OK.
I did step through the library code and it seemed to be the browser that
wasn't firing correctly rather than the library from what I remember.
Would be interested to see if anyone can solve this properly.
On 5 Dec 2015 21:55, "Stephen Collins"<EMAIL_ADDRESS>wrote:

Has this issue ever been actually resolved? I've having exactly the same
problem.
—
Reply to this email directly or view it on GitHub
https://github.com/marceljuenemann/angular-drag-and-drop-lists/issues/153#issuecomment-162250574
.

Closing this as OP never replied and probably just tried to use console without defining it in the scope. The other comments seem to be unrelated, please open new issues if they persist.


Sometimes map overlay display blank before going into print mode.

I have developed a printing tool that allows users to print a map with a polygon embedded within it, which can then be inserted into a frame along with additional details. While this project is widely used on a large scale, some users have reported issues where the map image does not appear within the frame when printing. I am investigating the cause of this problem for sometime but I do not know what cause it beside the cloning layer.
The map consist of:

multiple TileLayers.wms
L.geojson

Mind sharing some insight on this issue. thankyou

https://github.com/Igor-Vladyka/leaflet.browser.print/assets/92044826/f2fdf7f8-fdb5-4dbc-ae63-a0b6f5099974

based on my investigation, it might be the layer render slow, and unable to completely render all tile before it print. is there a way to forcefully render all tile until the tile are loaded the proceed to _completepPrinting function. i dont understand how the clone method works. Please assist 😅

Hey.
You need to debug it and see what is going on.
Try next: override: _getLoadingLayers function and try to debug it.
During printing there is a check on all internal layers and wait for them to load, could be that something is breaking in between or for the underlying layer.

Upon investigating, i realize the issue might be the cookies during print process

as shown in the image. Currently trying to find a way to  implement header attribute when printing. If you have any suggestion on how, can you share it here.


.NET 8 PDF to picture  is not suppoted in Linux platform

In .net8, using Aspose.PDF to convert PDF to picture on linux platform is not supported
Error Picture

Hello, @JohnnyJiang2021 ,
I recommend using the Aspose.PDF.Drawing package for Linux, as it does not depend on System.Drawing. You can apply the same license you have for the Aspose.PDF package, which is primarily for Windows.
You can find the package here: Aspose.PDF.Drawing NuGet.
If you’ve already encountered an issue with Aspose.PDF.Drawing, could you please provide a code snippet and a sample file that you’re unable to convert? This will help us assist you more effectively.
Thank you!


Public API for toHumanReadableAscii(String) ?

At least one Android device, the Social Mobile X325 (Life Wireless), ships to users with an invalid character (Unicode En-Dash - Hexidecimal code 0x2013) in its default device user-agent. When this is passed as a user-agent via okhttp3, a crash occurs.
This specific device's user-agent is:
Dalvik/1.6.0 (Linux; U; Android 4.4.2; X325–Locked to Life Wireless Build/KOT49H)
I haven't discovered any other devices cause this crash, and the X325 has very few users (I'm seeing ~60 users in a population of 1.1 million). Given the rarity of this device, I'm not sure whether it's worth adding a function to sanitize the user-agent for invalid characters in okhttp3, but wanted to report the crash anyway.
java.lang.IllegalArgumentException: Unexpected char 0x2013 at 56 in User-Agent value: Dalvik/1.6.0 (Linux; U; Android 4.4.2; X325–Locked to Life Wireless Build/KOT49H)
	at okhttp3.Headers$Builder.d(Headers.java:320)
	at okhttp3.Headers$Builder.c(Headers.java:300)
	at okhttp3.Request$Builder.a(Request.java:163)
	at my.appname.webservice.RestClient$2.a(RestClient.java:74)
	at okhttp3.internal.http.RealInterceptorChain.a(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.a(RealInterceptorChain.java:67)
	at okhttp3.logging.HttpLoggingInterceptor.a(HttpLoggingInterceptor.java:145)
	at okhttp3.internal.http.RealInterceptorChain.a(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.a(RealInterceptorChain.java:67)
	at okhttp3.RealCall.f(RealCall.java:170)
	at okhttp3.RealCall.a(RealCall.java:33)
	at okhttp3.RealCall$AsyncCall.b(RealCall.java:120)
	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:848)

This is related to #2896 , and the guidance was to strip non-ASCII characters prior to using them - however, I wanted to open this issue since this occurs when sending the device's default user-agent (which, unlike a custom user-agent, shouldn't need pre-processing).
If okhttp3 won't strip non-ASCII characters from the User-Agent, then I can certainly implement it on my end - but since this issue is caused due to a problem with the X325 phone's default user agent, others using this library may also be experiencing the same crash for X325 users.

Here's what I do to guard against odd device names, for example, in my headers.
Credit goes to Jesse; I'm certain he posted this originally somewhere.
/** Returns {@code s} with control characters and non-ASCII characters replaced with '?'. */
static String toHumanReadableAscii(String s) {
  for (int i = 0, length = s.length(), c; i < length; i += Character.charCount(c)) {
    c = s.codePointAt(i);
    if (c > '\u001f' && c < '\u007f') continue;

    Buffer buffer = new Buffer();
    buffer.writeUtf8(s, 0, i);
    for (int j = i; j < length; j += Character.charCount(c)) {
      c = s.codePointAt(j);
      buffer.writeUtf8CodePoint(c > '\u001f' && c < '\u007f' ? c : '?');
    }
    return buffer.readUtf8();
  }
  return s;
}

Won't fix.

For those needing it in Kotlin fun String.toHumanReadableAscii() = replace("[^\\x00-\\x7F]".toRegex(), "")


[HW] Samitha Jayawardana

Name: Samitha Jayawardana
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/samitha-jayawardana/
Attach the homework screenshots below for both step II and step III:
<SCREENSHOT

Thank you very much for this introduction.

Hello, Samitha!
It's great to know that you appreciated our workshop! In order to complete the homework please attach a screenshot of the "SELECT * ..." statement execution, before and after deleting one row, as detailed by the end of the README instructions.
Then add the label "wait for review" to this issue again to make us grade this homework again and assign you the badge!
Good luck and have a nice day!


Error while Navigating to coneirge

[x] When user navigates to coneirge and after that when they navigates back the modal behaviours is weird
[x] Check all the posible places we have linked "Need More help with coneirge

Please refer this screen recording
https://github.com/bithyve/bitcoin-keeper/assets/107177634/7479f815-c035-4542-8af4-eb509e0861db

As per discussion in the meeting, We need to disable the modal containing "need more help" when navigating to keeper concierge.

Completed


Replaces unicorn with puma.

Just changes unicorn for puma. If deploying on non-Heroku env something should be done with capistrano. Maybe replace the unicorn recipe with this puma recipe

Thanks @guidomb. I added this issue for the capistrano enhancement.


Make scale unit (km or mi) consistent with the one in instructions and elevation profile

Follow up to recent commit dfc54e6c2062632121a327671754158dcf3416da.

Demo at http://françois.ch/graphhopper-scale/ showing this new feature. When you click the "km" or "mi" button, the scale unit will be updated.

Ah, nice - thanks!


updates to upload dashboard

Changes to upload dashboard to fix https://github.com/HumanCellAtlas/upload-service/issues/228 and https://github.com/HumanCellAtlas/upload-service/issues/63

I'd do a final test on this with a make apply and an upload-to-grafana. If that works, go ahead and merge!


feat(enforcer): update default posture to audit

Purpose of PR?:
It changes the default posture behavior of KubeArmor to be Audit instead of denying everything. The reason being, auto-discovering rules may not result in an exhaustive policy thus may deny actions which can cause the application to fail.
Does this PR introduce a breaking change?
Lenient whitelist policy might break.
If the changes in this PR are manually verified, list down the scenarios covered::
Manually verified with allow based policy resulting in "Audit" logs for actions which are not allowed.
Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
No
Checklist:

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update
[x ] PR Title follows the convention of  <type>(<scope>): <subject>
[ ] Commit has unit tests
[ ] Commit has integration tests

We should explicitly use DefaultPosture Block in tests prolly?

Also Ginkgo test will be fixed by #986

Codecov Report

Merging #985 (9eb755b) into main (9e68db5) will decrease coverage by 29.87%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #985       +/-   ##
==========================================
- Coverage   39.10%   9.22%   -29.88%
==========================================
  Files          31      13       -18
  Lines        9918    5363     -4555
==========================================
- Hits         3878     495     -3383
+ Misses       5526    4764      -762
+ Partials      514     104      -410

Impacted Files
Coverage Δ

KubeArmor/enforcer/appArmorTemplate.go
0.00% <0.00%> (-100.00%)
:arrow_down:

KubeArmor/monitor/processTree.go
9.13% <0.00%> (-85.49%)
:arrow_down:

KubeArmor/monitor/logUpdate.go
0.00% <0.00%> (-69.64%)
:arrow_down:

KubeArmor/enforcer/appArmorProfile.go
0.00% <0.00%> (-58.40%)
:arrow_down:

KubeArmor/feeder/policyMatcher.go
0.00% <0.00%> (-41.51%)
:arrow_down:

KubeArmor/feeder/feeder.go
14.44% <0.00%> (-38.83%)
:arrow_down:

KubeArmor/enforcer/runtimeEnforcer.go
0.00% <0.00%> (-35.84%)
:arrow_down:

KubeArmor/monitor/syscallParser.go
27.25% <0.00%> (-35.50%)
:arrow_down:

KubeArmor/monitor/systemMonitor.go
33.16% <0.00%> (-16.71%)
:arrow_down:

KubeArmor/enforcer/appArmorEnforcer.go
41.05% <0.00%> (-7.64%)
:arrow_down:

... and 18 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

For ci-test-runtime,
We need to add -defaultPostureBlock to container arguements in KubeArmor/KubArmor/build/*.yaml
Should fix things

Need to declare the default posture flags as part of https://github.com/kubearmor/KubeArmor/blob/main/KubeArmor/main_test.go
Should solve the ci-test-local issues


ci: remove broken workflows

These workflows are all red which is expected as far as I understand. I'd suggest we remove them to reduce the noise when reviewing PRs.
In case we ever wanted to bring parts of it back, Git is our best friend.
Feel free to close if you think differently.

I think they should mostly stay in, and just disabled.

With disabled you mean commented out? I am not sure I understand what "disabled for the cloud branch" means. Do you mean adding filtering in the workflow trigger? We can do that too yes. I thought that the cloud branch is basically a new master branch and thus we can just delete them for now and add useful workflows later once the biggest churn is over :)

@thomaseizinger I'm scared to let go ;-). It's possible these workflows can change in master between now and The Big Merge™ and I'm afraid of losing track of something in a conflict resolution session.
Thanks for the PR though, I'll merge it now and update the CI to be less noisy for cloud PRs.


Add all flag to run tests for all browsers

Thinking about #19
We can define browsers  inside config.js:
module.exports = {
	// browser: 'chromium'
	browsers: ["chromium", "firefox"]
}

So we could access this instances in tests like so:
describe('Google', () => {
	describe('Chrome', () => {
		it('should display "google" text on page', async () => {
                        // just using browser type as prefix
			await chromiumPage.goto('https://whatismybrowser.com/')
			const browser = await chromiumPage.$eval('.string-major a', el => el.text);
			expect(browser).toContain('Chrome')
		})
	})

	describe('Firefox', () => {
		it('should display "google" text on page', async () => {
			await firefoxPage.goto('https://whatismybrowser.com/')
			const browser = await firefoxPage.$eval('.string-major a', el => el.text);
			expect(browser).toContain('Firefox')
		})
	})
})

Also we can make browsers option as object to specify configuration for browser, like so:
module.exports = {
	// browser: 'chromium'
	browsers: {
		chromium: {
			launchBrowserApp: {},
			context: {
				...
			}
		},
		...
	}
}

I need to do some checks on it, so... What do you think about it?

For my side this feature is only useful if the API response are mocked. Because if you execute it concurrently on a real API backend, you have mostly drop your database and create a new one before each test.
For this specific use case it should be fine. Nice Implementation though!

Thanks for the quick response! This looks great for scenarios where I would want to run certain tests on specific browsers.
I was coming from the perspective of being able to run common test code across multiple browsers (parallel or sequentially - good point there, @mxschmitt). Perhaps more helpful context in this issue comment. Do you think that is a valid scenario to support?
I wish I could describe it better in jest land, and I'm getting up to speed with jest to see how something like that could be implemented.

Close it for a while, but I should keep it in my mind, it could be helpful


Add a python file

I added a python file to check whether the inserted number is ODD or EVEN

Please review and give hacktoberfest_accepted label.


System fonts

Remove open sans and all instances of the google fonts.
During research we have met many Australians who live in rural and remote areas where internet access is limited but Government services are still required. Using system fonts makes the load times faster with only a slight compromise on aesthetics.
System fonts have come a long way. Manufacturers are now shipping some elegant fonts with their main platforms. Major websites (github) and design systems (bootstrap) have embraced them.

:+1:
This one bit us recently. We were no longer downloading the font file but had references it in the CSS (eg, the headings). Something else on our site started downloading the font file and changing a few pages on the site.

Thanks @alex-page, this is interesting. Fallbacks are great but only useful if the primary font doesn't download at all, rather than just slowly.

This is implemented, will be released soon.


Cannot run performance test via "npm run"

This is not a duplicate of #229
Output:
$ npm run benchmark

><EMAIL_ADDRESS>benchmark /Users/ronkorving/Projects/EventEmitter2
> node --reporter test/perf/benchmark.js

node: bad option: --reporter
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR<EMAIL_ADDRESS>benchmark: `node --reporter test/perf/benchmark.js`
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>benchmark script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/ronkorving/.npm/_logs/2018-01-31T01_45_38_512Z-debug.log

I have no idea what it's supposed to do :) Removing it makes it work. Output is what I would expect it to output...

Would you mind doing a PR for the change, then? 😃


feat: shifting from flags to input for validation command

🚧 Work In Progress

Description
In this PR I am trying to shift from --file flag to input so now the validate command will look something like this - asyncapi validate <file-path|urlcontext-name>. As of now, we were relying on the useSpecFile hook to load the spec file according to availability. It was built in a way that any command in the future could use it load the spec file as all commands depend on the spec file in some way since we were using the --file flag. Now when we are shifting from flags to input, this hook is not needed.
Also, other commands will have different needs for accessing inputs. So I think we would be needing to create different hooks to load the spec file according to that specific command.
Amidst all this, some logic would be reusable like

If no input is passed and if the command is loading a single spec file then usage of the current context or autodetecting spec file from working directory.
If the input is passed checking if it is a valid local spec file path, URL, or context name.

Related issue(s)

See also #37

@Souvikns fyi GitHub has option to create a draft pull request

@derberg should I make this a draft now?

Nah, it's ok, just remember next time, so you do not have to add any disclaimer in the description that PR is wip

when I do below, I don't get an error that the given option is not available and instead my default context is picked.asyncapi validate --context test2
  File: /xxx/test/docs/dummy.yml successfully validated!

when I do asyncapi validate /wrong/path/dummy.yml I get error with outdated help text
when I do asyncapi context add test /correct/path/dummy.ymlI get help message that has outdated help text

search in project for any mention of --file and --context

When you do asyncapi validate --context test2 it loads the current context because now cli is loading from input and test2 is in options and the input is undefined which leads it load context from current.
Now --file and --context does not work if you want to load any specific context then you can do it like this asyncapi validate test2. I think removing every mention of --file and --context flags would help the users.

When you do asyncapi validate --context test2 it loads the current context because now cli is loading from input and test2 is in options and the input is undefined which leads it load context from current.

yes, but we need to have in place validation of options and notify users if they use not existing options, so we do not do what we think is better for users but tell what's wrong. You know what I mean? can be done as follow-up as this could be supported also by https://www.npmjs.com/package/levenshtein-edit-distance to not only tell users the command is wrong, but also try suggesting the correct one

@Souvikns awesome, lemme know once you need me for another review round

@Souvikns awesome, lemme know once you need me for another review round

@derberg it is ready to be reviewed.


Pagination with flat=True option?

Is it possible to have DRF style pagination with flat=True option?
Sample response:
{
    "count": 20,
    "next": next_link,
    "previous": prev_link,
    "results": [
       ...
    ]
}

Hmm, that should totally be possible.  Unfortunately, I'm a little swamped right now so it will probably take me a week or so to look into it, but I would be surprised if we couldn't add hooks to the DRF pagination system.  I will investigate.

So, I just released a new version that adds support for DRF's built-in pagination classes.  The new version is up on PyPi, so you should be able to update the package to get pagination working.  The info below is from the new README, but I'm putting it here for your reference:
If (and only if) flat = True on your view, drf-multiple-model supports some of Django Rest Framework's built-in pagination classes, including PageNumberPagination and LimitOffsetPagination.  Implementatation might look like this:
from rest_framework import pagination

class BasicPagination(pagination.PageNumberPagination):
    page_size = 5
    page_size_query_param = 'page_size'
    max_page_size = 10

class PageNumberPaginationView(MultipleModelAPIView):
    queryList = ((Play.objects.all(),PlaySerializer),
                 (Poem.objects.filter(style="Sonnet"),PoemSerializer))
    flat = True
    pagination_class = BasicPagination

which would return:
{
    'count': 6,
    'next': 'http://yourserver/yourUrl/?page=2',
    'previous': None,
    'results':
        [
            {'genre': 'Comedy', 'title': "A Midsummer Night's Dream", 'pages': 350},
            {'genre': 'Tragedy', 'title': "Romeo and Juliet", 'pages': 300},
            {'genre': 'Comedy', 'title': "The Tempest", 'pages': 250},
            {'title': 'Shall I compare thee to a summer's day?', 'stanzas': 1},
            {'title': 'As a decrepit father takes delight', 'stanzas': 1}
        ]
}

I forgot to mention in the README, I also added a paginate_queryList function.  Right now this just calls the built in paginate_queryset, but it's there to override if you want to create some custom pagination.  Both PageNumberPagination and LimitOffsetPagination have been tested, but let me know if you have any questions/problems!

Hi, I'm creating a custom pagination
class MyCustomPagination(pagination.PageNumberPagination):
page_size_query_param = 'rows'

def get_paginated_response(self, data):
    return Response(OrderedDict([
        ('records', self.page.paginator.count),
        ('page', self.page.number),
        ('total', self.page.paginator.num_pages),
        ('next', self.get_next_link()),
        ('previous', self.get_previous_link()),
        ('rows', data)
    ]))

But somehow it gets ignored and the results are without pagination.


Search field does not receive focus when clicking on the lens symbol

The bug
In some situations, when clicking on the lens icon, the search box becomes active but does not receive the input focus.
To Reproduce
Click on "New Tab", select the first available drive (C:\ probably) and then click on the "Lens" icon. The search box is activated but typing does select items in the detail list instead of typing into the search box.
Expected behavior
Clicking on the (enabled) Lens icon should always activate the search box and set focus to it, all typing should immediately go into it.
Desktop (please complete the following information):

OS Version: Windows 10 Home, Version 20H2, OS Build 19042.746, Windows Feature Experience Pack 120.2212.551.0
App version: <IP_ADDRESS>
Hardware: Processor Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 1.99 GHz
Installed RAM 12.0 GB (11.9 GB usable)
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Guess you can merge this with #2982 should have the same origin

Guess you can merge this with #2982 should have the same origin


client_max_body_size 10G ;

Hi dear , could you please help me , how can find nginx,conf in your counter? i would like to increase "client_max_body_size" to 10G!

I can upload to my host by Nginx  Maximum 100MB in a file by default and i would like to increase to some GB! thanks in advance for help and support .

Solved !  :)
cd /etc/nginx then vi nginx.conf
Modified following comment line from 2G to 10G
client_max_body_size          10G;

In the proxy host configuration, you need to use the Advanced tab for this kind of custom configuration.
Else, what you did will be lost at the next Docker image update...

I got it and Thank you dear Jlesage.


AuraDefinitionBundle has some unique metadata aspects, and jsforce doesn't handle them well

Note: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_auradefinitionbundle.htm
"Unlike other metadata components, an AuraDefinitionBundle component isn’t represented by a single component file but instead by a collection of component definition files."
If you use jsforce to download an AuraDefinitionBundle, you get some undecoded stuff:

not a bug. these fields are base64, and everything is working fine


🚀 Feature: Test files shouldn't be published

Bug Report Checklist

[X] I have pulled the latest main branch of the repository.
[X] I have searched for related issues and found none that matched my issue.

Overview
Right now, CTA repos publish all files under lib/:
https://github.com/JoshuaKGoldberg/create-typescript-app/blob/9034d25992800bc8f7891f9cac4bfdf1e2f8c6b2/package.json#L17-L23
...including *.test.* files. 😬. That's a lot of extra file size on published packages for no real gain. I think *.test.* files should be excluded from the published outputs.
Additional Info
I'd previously fixed this in 7cdb836250404b8a3048c1ef281ca468320a2e5f, but at some point switched away from .npmignore files and lost that.
💖

Is this as simple as re-introducing an .npmignore with this content?:
*.test.*

I think so!

Let me PR - just heading out so hopefully tomorrow


Error handling overhaul

Hey @vkostyukov, I got this pretty much into a state I like last night. I've incorporated the naming changes you suggested in #12. We still need tests for the core package, but the integration tests for scodec are pretty comprehensive.

@vkostyukov, if this looks generally good to you I'll finish up the README update over lunch and submit a PR.

Looks pretty good for me! :+1:


Sulis stills are not displayed during replay

As part of the postdive process both a  .ppfx file and a collection of still images from Jason's highest res camera are added into the dive timeline, as events I believe.
The .ppfx file includes for each still a still name plus time plus naviation info (lat, lon, depth, HPR, alt).
During replay the events are placed within the timeline. However, the corresponding still is not displayed. Instead, an image blank is shown. This he actual image should be diusplayed with the event.

@smccue2019 Could you please point me to the script / process for loading the ppfx file?

On the shoreside server it's ~sealog/sealog-import-tools/import_lowering_into_sealog.sh.
It's something different at sea, and because my memory is fuzzy I've texted James for confirmation.
I believe that it's 'sealog-sulisCam-stills-import.py'. 'sealog_postdive.sh' also invokes some sulis-related actions, but IIRC it's used (after applying sulisCam-stills-import) to extract events including sulis events & stills for transport to shore.

I guess the above answer is a little light on detail. For full process refer to ~sealog/cruise_install_notes.txt.
TL/DR: modify cruise; modify lowering; import cruise; import lowering. The latter is what does the ingestion into the shoreside back end.

Note: the import script may have recently changed, because its behavior is not as I remember. I'm
exercising the behavior now as I install sealog for Jason cruise KM2212.
After invoking and choosing the cruise, the script asks the user to select the dive to import, or 'All'. The
latter is the typical choice. When selected, the script loops through each dive. However, for each dive the
user is asked to identify which vehicle produced the data.
The order of question at one time had vehicle selected earlier, and once identified it was not asked again. The
script then would loop through dives without stopping. The current script requires a user's attention throughout the
import, un-necessarily I would argue. A long cruise can occupy the better part of an hour of a user's time.

Makes sense, but can you capture that in a separate issue? Thanks.
On Nov 11, 2022, at 17:07, smccue2019 @.***> wrote:

Note: the import script may have recently changed, because its behavior is not as I remember. I'm
exercising the behavior now as I install sealog for Jason cruise KM2212.
After invoking and choosing the cruise, the script asks the user to select the dive to import, or 'All'. The
latter is the typical choice. When selected, the script loops through each dive. However, for each dive the
user is asked to identify which vehicle produced the data.
The order of question at one time had vehicle selected earlier, and once identified it was not asked again. The
script then would loop through dives without stopping. The current script requires a user's attention throughout the
import, un-necessarily I would argue. A long cruise can occupy the better part of an hour of a user's time.
—
Reply to this email directly, view it on GitHubhttps://github.com/WHOIGit/ndsf-sealog-client/issues/27#issuecomment-1312227286, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAA2RXZHXXLC7KJNNWRS6O3WH27TNANCNFSM6AAAAAAR2RGYME&data=05|01|rgovostes%40whoi.edu|5ca4f02814c84dcc565a08dac4312ccc|d44c5cc6d18c46cc8abd4fdf5b6e5944|0|0|638038012733779149|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=f5pv850zn9OWf9TiHlUHR2lGucqJhcTSgmhYnnDmbBk%3D&reserved=0.
You are receiving this because you commented.Message ID: @.***>

Keeping this thread up to date. I haven't yet attempted to dig through the import script, but looking at the db, it looks like what we're doing is creating Sulis Still events and directly linking the image filepath to those events.
{ 		"event_value": "SulisCam", 		"event_options": [{ 			"event_option_value": "/J2-1229/SulisCam/SulisCam.20191001_123550000.jpg", 			"event_option_name": "filename" 		}], 		"ts": "2019-10-01T12:35:50.000Z", 		"event_free_text": "", 		"event_author": "jason", 		"id": "5d93cafafef616043cc13d03" 	},
This appears to be in contrast to other image data, which is actually stored in the event_aux_data collection.
{ 	"data_source": "vehicleRealtimeFramegrabberData", 	"data_array": [{ 		"data_name": "camera_name", 		"data_value": "SciCam" 	}, { 		"data_name": "filename", 		"data_value": "/J2-1229/SciCam/SciCam.20191001_162423276.jpg" 	}, { 		"data_name": "camera_name", 		"data_value": "BrowCam" 	}, { 		"data_name": "filename", 		"data_value": "/J2-1229/BrowCam/BrowCam.20191001_162423276.jpg" 	}, { 		"data_name": "camera_name", 		"data_value": "PilotCam" 	}, { 		"data_name": "filename", 		"data_value": "/J2-1229/PilotCam/PilotCam.20191001_162423276.jpg" 	}, { 		"data_name": "camera_name", 		"data_value": "AftCam" 	}, { 		"data_name": "filename", 		"data_value": "/J2-1229/AftCam/AftCam.20191001_162423276.jpg" 	}], 	"event_id": "5d937db7fef616043cc12b8c", 	"id": "5d937db9fef616043cc12b8f" }
Not sure if this ever worked, but currently I'm working on minimally tweaking the UI to get these stills visible from those events.

Yep exactly. It never worked previously.
Instead of tweaking the UI can we just translate the SulisCam database entries to vehicleRealtimeFramegrabberData entries?

Yeah I found that mapper. I'm using the makeFakeAuxDataForEventOptions to play around with the data. Maybe later we can do a bulk edit of the existing sulis data

Short-term fix does the trick:

For a mid-term fix, I'll try writing a little script that creates some aux data entries for the existing sulis events.
For a long-term fix, I think all we need to do is edit the script to create an aux data entry for each sulis still. I think the event_export api will handle the rest

Nicely done 🙌 Can you open a new issue to track modifying the import script to create aux_data instead of using event options, applying migrations to existing data, and removing the workaround in the rendering code?

https://github.com/WHOIGit/ndsf-sealog-scripts/issues/1


Remove _build dir from sources and ignore it

Remove the _build directory containing the built outputs of the website. Add _build to .gitignore so they don't get pushed back in the future.

@dccowan I noticed that the built website was pushed along with the sources. I think it's better to just track the sources for it on the main branch, and leave the built outputs to the gh-pages one. Do you agree? Is there any special reason why you pushed them?


Accessing undefined property on FileLocator

I found the FileLocator class contractor accessing the undefined property. Should we fix this?
https://github.com/concrete5/concrete5/blob/259f42bf43f18a861fd2d45f55c350c52cdb21a3/concrete/src/Filesystem/FileLocator.php#L39

Yeah, I think we should fix it.


[Service Bus] changelog for preview 3

changelog for preview 3 for service bus

/azp run azure-sdk-for-js - client


Omniquant error with Llama 3.2-8B

Hello LLMC Team,
Thank you for your open-source contribution
I am using Omniquant weight and activation to quantinize the Llama 3.2-8B but I found an error when deploy_fake_quant_model. Here is the error log
2024-12-11 00:13:01.963 | INFO     | llmc.models.base_model:replace_language_module_all:374 - Replace block index: 0/32
[rank0]: Traceback (most recent call last):
[rank0]:   File "/data/dwenlong/llmc/llmc/main.py", line 316, in
[rank0]:     main(config)
[rank0]:   File "/data/dwenlong/llmc/llmc/main.py", line 154, in main
[rank0]:     blockwise_opt.deploy('fake_quant')
[rank0]:   File "/data/dwenlong/llmc/llmc/compression/quantization/omniq.py", line 702, in deploy
[rank0]:     super().deploy(quant_format)
[rank0]:   File "/data/dwenlong/omniquant/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
[rank0]:     return func(*args, **kwargs)
[rank0]:   File "/data/dwenlong/llmc/llmc/compression/quantization/base_blockwise_quantization.py", line 845, in deploy
[rank0]:     self.model.replace_language_module_all(
[rank0]:   File "/data/dwenlong/llmc/llmc/models/base_model.py", line 380, in replace_language_module_all
[rank0]:     self.replace_module_block(module, block, block_idx, params_dict)
[rank0]:   File "/data/dwenlong/llmc/llmc/models/base_model.py", line 396, in replace_module_block
[rank0]:     self.replace_module_subset(module, block, subset, block_idx, params_dict)
[rank0]:   File "/data/dwenlong/llmc/llmc/models/base_model.py", line 417, in replace_module_subset
[rank0]:     M = module.new(m, **params_tmp_dict)
[rank0]:   File "/data/dwenlong/omniquant/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
[rank0]:     return func(*args, **kwargs)
[rank0]:   File "/data/dwenlong/llmc/llmc/compression/quantization/module_utils.py", line 912, in new
[rank0]:     weight = w_qdq(module)
[rank0]:   File "/data/dwenlong/llmc/llmc/compression/quantization/omniq.py", line 693, in w_qdq
[rank0]:     if module.dynamic_quant_weight:
[rank0]:   File "/data/dwenlong/omniquant/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1729, in getattr
[rank0]:     raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
[rank0]: AttributeError: 'OriginFloatLinear' object has no attribute 'dynamic_quant_weight'

Can you provide the configuration file?

Yes, here is the configuration file, the issue at line 154 in the main file,  I skipped the evaluation part and sucessfully save the model into vllm but face another issue which I reported in a seperated git issue.
base:
seed: &seed 42
model:
type: Llama
path: meta-llama/Meta-Llama-3-8B-Instruct
tokenizer_mode: slow
torch_dtype: auto
calib:
name: wikitext2
download: True
path: /save_files/data
n_samples: 128
bs: 1
seq_len: 2048
preproc: wikitext2_gptq
seed: *seed
eval:
eval_pos: [fake_quant]
name: wikitext2
download: True
path: /save_files/data
seq_len: 2048
# For 7B / 13B model eval, bs can be set to "1", and inference_per_block can be set to "False".
# For 70B model eval, bs can be set to "20", and inference_per_block can be set to "True".
bs: 1
inference_per_block: False
quant:
method: OmniQuant
weight:
bit: 8
symmetric: False
granularity: per_channel
calib_algo: learnable
ste: True
act:
bit: 8
symmetric: False
granularity: per_token
ste: True
special:
aug_loss: False
lwc: True
let: True
lwc_lr: 0.001
let_lr: 0.001
use_shift: False
alpha: 0.5
deactive_amp: True
epochs: 5
wd: 0
# Use AWQ's search clip factors to initialize OmniQuant's clip factors,
# Then refine them through learning (LWC).
search_clip_init: False
load_clip: False
clip_path: save_files
# Use AWQ's search scale factors to initialize OmniQuant's scale factors,
# Then refine them through learning (LET).
search_scale_init: False
scale_path: save_files
robust_weight: 0
quant_out: True
save:
save_trans: False
save_fake: False
save_vllm: True
save_path: ./save


Hello world fails to run local on Windows 10 using dotnetcore2.1

Description
dotnetcore2.1 version of helloworld fails to run on Windows 10
Steps to reproduce
sam init --runtime dotnetcore2.1
cd .\sam-app
.\build.ps1 --target=Package
sam local start-api --profile personal --debug
GET http://<IP_ADDRESS>:3000/hello from Postman
Observed result
2019-01-04 14:42:24 Constructed String representation of Event to invoke Lambda. Event: {"httpMethod": "GET", "body": null, "resource": "/hello", "requestContext": {"resourceId": "123456", "apiId": "1234567890", "resourcePath": "/hello", "httpMethod": "GET", "requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", "accountId": "123456789012", "stage": "prod", "identity": {"apiKey": null, "userArn": null, "cognitoAuthenticationType": null, "caller": null, "userAgent": "Custom User Agent String", "user": null, "cognitoIdentityPoolId": null, "cognitoAuthenticationProvider": null, "sourceIp": "<IP_ADDRESS>", "accountId": null}, "extendedRequestId": null, "path": "/hello"}, "queryStringParameters": null, "headers": {"Cache-Control": "no-cache", "Postman-Token": "f54f43fb-7e26-4e7c-9f5c-ddd9bf75f763", "User-Agent": "PostmanRuntime/7.4.0", "Accept": "/", "Host": "<IP_ADDRESS>:3000", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "X-Forwarded-Proto": "http", "X-Forwarded-Port": "3000"}, "pathParameters": null, "stageVariables": null, "path": "/hello", "isBase64Encoded": false}
2019-01-04 14:42:24 Found one Lambda function with name 'HelloWorldFunction'
2019-01-04 14:42:24 Invoking HelloWorld::HelloWorld.Function::FunctionHandler (dotnetcore2.1)
2019-01-04 14:42:24 Environment variables overrides data is standard format
2019-01-04 14:42:24 Loading AWS credentials from session with profile 'personal'
2019-01-04 14:42:24 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-01-04 14:42:24 Changing event name from before-call.apigateway to before-call.api-gateway
2019-01-04 14:42:24 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-01-04 14:42:24 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-01-04 14:42:24 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-01-04 14:42:24 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-01-04 14:42:24 Changing event name from docs..autoscaling.CreateLaunchConfiguration.complete-section to docs..auto-scaling.CreateLaunchConfiguration.complete-section
2019-01-04 14:42:24 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-01-04 14:42:24 Changing event name from docs..logs.CreateExportTask.complete-section to docs..cloudwatch-logs.CreateExportTask.complete-section
2019-01-04 14:42:24 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-01-04 14:42:24 Changing event name from docs..cloudsearchdomain.Search.complete-section to docs..cloudsearch-domain.Search.complete-section
2019-01-04 14:42:24 Setting config variable for profile to 'personal'
2019-01-04 14:42:25 Skipping environment variable credential check because profile name was explicitly set.
2019-01-04 14:42:25 Looking for credentials via: assume-role
2019-01-04 14:42:25 Looking for credentials via: shared-credentials-file
2019-01-04 14:42:25 Found credentials in shared credentials file: ~/.aws/credentials
2019-01-04 14:42:25 Resolving code path. Cwd=E:\Personal\sam-app, CodeUri=./artifacts/HelloWorld.zip
2019-01-04 14:42:25 Resolved absolute path to code is E:\Personal\sam-app\artifacts\HelloWorld.zip
2019-01-04 14:42:25 Decompressing E:\Personal\sam-app\artifacts\HelloWorld.zip
2019-01-04 14:42:25 File Amazon.Lambda.APIGatewayEvents.dll in zipfile does not have permission information
2019-01-04 14:42:25 File Amazon.Lambda.Core.dll in zipfile does not have permission information
2019-01-04 14:42:25 File Amazon.Lambda.Serialization.Json.dll in zipfile does not have permission information
2019-01-04 14:42:25 File HelloWorld.deps.json in zipfile does not have permission information
2019-01-04 14:42:25 File HelloWorld.dll in zipfile does not have permission information
2019-01-04 14:42:25 File HelloWorld.pdb in zipfile does not have permission information
2019-01-04 14:42:25 File HelloWorld.runtimeconfig.json in zipfile does not have permission information
2019-01-04 14:42:25 File Newtonsoft.Json.dll in zipfile does not have permission information
2019-01-04 14:42:25 Trying paths: ['C:\Users\user_name\.docker\config.json', 'C:\Users\user_name\.dockercfg']
2019-01-04 14:42:25 Found file at path: C:\Users\user_name.docker\config.json
2019-01-04 14:42:25 Found 'auths' section
2019-01-04 14:42:25 Auth data for https://index.docker.io/v1/ is absent. Client might be using a credentials store instead.
2019-01-04 14:42:25 Found 'credsStore' section
2019-01-04 14:42:25 http://localhost:None "GET /v1.35/images/lambci/lambda:dotnetcore2.1/json HTTP/1.1" 200 None
2019-01-04 14:42:25 Looking for auth config
2019-01-04 14:42:25 Using credentials store "wincred"
2019-01-04 14:42:25 Looking for auth entry for 'https://index.docker.io/v1/'
2019-01-04 14:42:25 Found auth config
2019-01-04 14:42:26 http://localhost:None "POST /v1.35/images/create?tag=dotnetcore2.1&fromImage=lambci%2Flambda HTTP/1.1" 200 None
Fetching lambci/lambda:dotnetcore2.1 Docker container image......
2019-01-04 14:42:26 Mounting C:\Users\user_name~1\AppData\Local\Temp\tmp1v405hy9 as /var/task:ro inside runtime container
2019-01-04 14:42:26 http://localhost:None "POST /v1.35/containers/create HTTP/1.1" 201 90
2019-01-04 14:42:26 http://localhost:None "GET /v1.35/containers/070e24bf0fdff4496546b3308dfb1dfacb29c0d012ebd7479edce71fd11da388/json HTTP/1.1" 200 None
2019-01-04 14:42:26 http://localhost:None "GET /v1.35/containers/070e24bf0fdff4496546b3308dfb1dfacb29c0d012ebd7479edce71fd11da388/json HTTP/1.1" 200 None
2019-01-04 14:42:27 http://localhost:None "POST /v1.35/containers/070e24bf0fdff4496546b3308dfb1dfacb29c0d012ebd7479edce71fd11da388/start HTTP/1.1" 500 174
2019-01-04 14:42:27 http://localhost:None "GET /v1.35/containers/070e24bf0fdff4496546b3308dfb1dfacb29c0d012ebd7479edce71fd11da388/json HTTP/1.1" 200 None
2019-01-04 14:42:27 http://localhost:None "DELETE /v1.35/containers/070e24bf0fdff4496546b3308dfb1dfacb29c0d012ebd7479edce71fd11da388?v=False&link=False&force=True HTTP/1.1" 204 0
2019-01-04 14:42:27 Exception on /hello [GET]
Traceback (most recent call last):
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\client.py", line 229, in _raise_for_status
response.raise_for_status()
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\requests\models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localnpipe/v1.35/containers/070e24bf0fdff4496546b3308dfb1dfacb29c0d012ebd7479edce71fd11da388/start
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\apigw\local_apigw_service.py", line 140, in _request_handler
self.lambda_runner.invoke(route.function_name, event, stdout=stdout_stream, stderr=self.stderr)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\local\lib\local_lambda.py", line 81, in invoke
self.local_runtime.invoke(config, event, debug_context=self.debug_context, stdout=stdout, stderr=stderr)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\lambdafn\runtime.py", line 79, in invoke
self._container_manager.run(container)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\manager.py", line 73, in run
container.start(input_data=input_data)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\container.py", line 186, in start
real_container.start()
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\models\containers.py", line 374, in start
return self.client.api.start(self.id, **kwargs)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\utils\decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\container.py", line 1066, in start
self._raise_for_status(res)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\client.py", line 231, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("error while creating mount source path '/host_mnt/c/Users/user_name/AppData/Local/Temp/tmp1v405hy9': mkdir /host_mnt/c/Users/user_name/AppData: permission denied")
2019-01-04 14:42:27 <IP_ADDRESS> - - [04/Jan/2019 14:42:27] "GET /hello HTTP/1.1" 502 -
Expected result
Running server I believe on port 3000, returning "hello world".
 Do you have the C: drive shared in docker? When SAM CLI sees a zip, we unzip into a temp directory (looks to be c/Users/user_name/AppData/Local/Temp/tmp1v405hy9 in your case). This is getting a permission denied error, most likely due to docker not having access to that specific drive (it looks like you work on your E: drive).

I actually was using a local user different than mine to run Docker and that didn't have access to my user_data folder. I gave it access and now it's working fine.
Thanks for your help!

Just as a side note: I ran into this issue last week (7/4/2020), updating docker worked for me.


Getting "sub" key value as 1 from security/login response token

Unable to parse response token received from api/v1/security/login request.
Getting "Unexpected type of JSON object member with key sub" after parsing the token from JWT parser.

I think most people are not running into this issue, and we may need more details, e.g. what version you're running, how you're running it, and any other pertinent repro steps, details, etc.

Closing until we can get more details (i.e. a means to reproduce the issue reliably)


MAISTRA-1756 move back to CRD version v1beta1

Signed-off-by: rcernich<EMAIL_ADDRESS>

Moved to PR #519.


privacyidea_entrypoint.sh is missing

Describe the bug
After following the intstruction I have created a docker image using make build command
khalibre/privacyidea:dev
But when I try to run it using make run. I am getting this error
[FATAL tini (7)] exec /usr/local/bin/privacyidea_entrypoint.sh failed: No such file or directory
To Reproduce
Steps to reproduce the behavior:

Clone directory
make build
make run
See error

Expected behavior
A container with privacyidea must be running
Environments (please complete the following information):

OS: Windows 11 with cygwin
Docker Desktop 4.27.1

Additional context
I have been trying to run privacyidea in openshift cluster using helmchart. I tried the khalibre/privacyidea:latest image from docker hub. But that gives me below error, so i am trying to build image by myself
mkdir: cannot create directory ‘/etc/nginx/certs’: Permission denied

[FATAL tini (7)] exec /usr/local/bin/privacyidea_entrypoint.sh failed: No such file or directory I will take a look on this.
mkdir: cannot create directory ‘/etc/nginx/certs’: Permission denied this might due to openshift strict permission on privilege. I haven't been tested on openshift.

@azeemdin [FATAL tini (7)] exec /usr/local/bin/privacyidea_entrypoint.sh failed: No such file or directory might cause might by missing execute permission on script files when checkout on Windows.
Could you try on add  RUN chmod +x /usr/local/bin/*.sh to Dockerfile and try build again

OpenShift will by default run containers as a non root user. As a result, the application can fail if it requires it runs as root. I don't have OpenShift cluster to testing so I might need your help on testing.

Thanks @mr-ssd  for the reply. You are right about the permissions. I will have to look into details how to update the configuration to make it run.
Meanwhile I have solved my problem using another repository. Thanks for your contribution, time and support for the community.


HttpRequest has inconsistent naming

Currently there is
public abstract HostString Host { get; set; }
public abstract PathString Path { get; set; }
public abstract QueryString QueryString { get; set; }
public abstract IQueryCollection Query { get; set; }

wouldn't it be more consistent with something like
public abstract QueryString Query { get; set; }
public abstract IQueryCollection QueryParameters { get; set; }

?

Related discussion: https://github.com/aspnet/HttpAbstractions/issues/644

It would be more consistent, but less useful. The IQueryCollection is used far more often than the QueryString.

I'd say better consistency makes it easier to use than shorter names.

We are closing this issue because no further action is planned for this issue. If you still have any issues or questions, please log a new issue with any additional details that you have.


(PDB-3515) Add edges_certname_fkey constraint

We had this before, but it was lost in a migration which rewrote the certnames
table but neglected to restore all of the foreign key constraints. This adds a
migration to recreate the constraint and clean up any orphaned data.

CLA signed by all contributors.

Test PASSed

Test PASSed

Assuming it's plausible, thought we might want a schema diff migration-test for this.

Test PASSed

Also looks good.


FSK beacon not working properly

I have found an issue when using beacon mode in FSK on an esp32c3.
Replicate it is quite simple ... if you use an interval of 17ms or more, all is working as expected but, if you set an interval of 16ms or less, only one packet is transmitted.
Replicating the issue is quite easy:
Cloned you example, then changed the bitrate to 38.400:
ESP_ERROR_CHECK(sx127x_fsk_ook_set_bitrate(38400.0, &device));
and the start_beacon with interval=16ms to:
ESP_ERROR_CHECK(sx127x_fsk_ook_tx_start_beacon(payload, sizeof(payload), 16, &device));
The packet within the example is sent in less than 4ms as it is of 6 bytes + 2 sync +4 preamble +2 crc = 14bytes * 9bits:
(14 * 9)/38400 = 0,00328 S
so I would expect to have no trouble with an interval > 4ms

Looking at your code, it seems to me that the issue is within the first "if" block to determine coefficients and resolution, starting at line 984:
  if (interval_ms <= 255 * p1) {     timer1_resolution = p1;     timer1_coefficient = (uint8_t) (interval_ms / p1);

Here is how 10ms beacon looks like on the spectrogram:

Do you really send beacons every 16ms? Or just generally curious?

Yes, I use beacons to send bursts of packets to devices mostly in standby. I could also call the sx127x_fsk_ook_tx_set_for_transmission function multiple times but, why doing that when I can use beacons ?


TagComponent

Which just add tags to the actor. Which is useful for example for an EventManager Subscriber which checks if a Actor with a certain Tag died and thereby declared the level as Failed

Done


subtemplate.nunjucks

I'm looking at subtemplate.nunjucks and see that it just contains a "B".
Am I missing something?
Are there some good examples out there of templates?

The actual main templates, not the ones in the examples folder.

On 30 Mar 2016, at 18:10, freestylesolutions<EMAIL_ADDRESS>wrote:
I'm looking at subtemplate.nunjucks and see that it just contains a "B".
Am I missing something?
Are there some good examples out there of templates?
—
You are receiving this because you are subscribed to this thread.

Gary
From: Kevin Renskers<EMAIL_ADDRESS>Sent: Wednesday, March 30, 2016 12:37 PM
To: raml2html/raml2md<EMAIL_ADDRESS>Cc: Gary MacDougall<EMAIL_ADDRESS>Subject: Re: [raml2html/raml2md] subtemplate.nunjucks (#14)
The actual main templates, not the ones in the examples folder.

On 30 Mar 2016, at 18:10, freestylesolutions <notifications<EMAIL_ADDRESS>wrote:
I'm looking at subtemplate.nunjucks and see that it just contains a "B".
Am I missing something?
Are there some good examples out there of templates?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com/raml2html/raml2md/issues/14#issuecomment-203516359

Check https://github.com/raml2html/raml2md/tree/master/lib


BZ1193484: Roles added to Projects are ignored by Business Central

This is the corollary of https://github.com/droolsjbpm/guvnor/pull/189
(cherry picked from commit 5a7bb7ba6c323079ddfca7c65d7aa118861eb286)

https://github.com/droolsjbpm/guvnor/commit/a08953e1bdb61a282ef2f25efb3838feb8b44875


Update publish.yaml

skip publish jobs from forks
here is the analogues PR from fork, which skips publish. While this PR is done in the root repo, which allows it to run publish

to not notice

but should you really?
what does it test? build and upload ? then this is a part of integration tests (except upload).
then instead of burning machines on installing charmcraft and other things we just skip it.
I would even say that failed CI is even more disturbing the reviewer, while this particular job does not qualify anything except publishing.

Yeah all valid points.
I still prefer the other way because I think it is easy for a reviewer to miss the skips in the CI, and then to not realise they should be extra careful.  Anyone merging a PR from a fork should make sure to come back and confirm the merge actually published properly (just in case the PR caused that to break).  So I like the signs around that to be really clear.
But it is very subjective.  And if you caught me on a different day I'd probably have a different opinion, that's how close I am :p


Slide from long list to short transitions in wrong order

r109 exhibits the proper behavior, r159 is now broken.
For context, I am rendering divs on the fly using jquery-tmpl during pageAnimationStart.
When scrolling down a page with a longer list, then tapping an anchor, the slide transition should be panning up to the top of the list, then right (I think you call this slide left).  Instead, in r159, it tries to pan right from the long list, which is blank area in the short list, then pan up.  The pan up doesn't even seem to quite make it to the top of the small list.  This looks unlike any native iPhone app I have used.
If there is a way to easily patch the original r109 behavior into r159, please let me know.
Thanks!

Please try with a recent build and let me know if this is still an issue?


doc(ast): document TryStatement and related nodes

#5970  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @DonIsaac and the rest of your teammates on  Graphite