Add support for a class-strategy.

Now support for classes has been implemented in Rosebox, using the package https://www.npmjs.com/package/@material-ui/styles.
The following functions are now exposed:

makeRBStyles which behaves exactly as makeStyles from https://www.npmjs.com/package/@material-ui/styles but adds Rosebox types to it.
rbJSS() a JSS plugin.


Camera Source Select works incorrectly when there's two camera with same name

Camera Source Select works incorrectly when there's two camera with same name (in the provided screenshot I have two studio display connected to my mac). It will result in selecting the same camera instead of the different one.

Hi @frank890417 ohhh that's an interesting problem. We definitely use the name as the "unique" camera ID, so if you have duplicate device names, things won't work.
I'll have to think about a long-term solution, but for now you could try using the OBS Virtual Camera to feed the camera you want to use into MediaPipe. Not ideal I know, but it is something...


Addition of femal population percentage for Japan

HI,
I want to add the female population for Jamaica
Can I go ahead ?

Sure @R3alN1GG4  .. you have to select another country as someone has already selected Japan.
After which you can go ahead and raise a PR.


chore: add github codespace devcontainer configuration

This PR adds support for setting up the dev environment for Risinglight with Github Codespace. https://docs.github.com/en/codespaces

Thanks for this PR! But I doubt whether this is necessary. Do you mainly develop RisingLight on GitHub Codespace?

This comes in handy sometimes to start a dev environment for Rust and Risinglight to read/write the code. But it is not as good as the local environment due to the resource limitation, which makes it takes a long time to compile the code.
I think it is a good compliment because it gives you an out-of-box environment with the required deps. For beginners like me this is already very useful to try the project.

That's cool.

I don't think it's good to use zsh here. We should keep the environment as simple as possible.
Should install the Rust version of rust-toolchain file in RisingLight repo, instead of just specifying nightly toolchain.

Thanks. I have updated the PR, please take a look.


Failed: Update autorest version to prerelease 3.0.0-alpha.20240516.4

Triggered from pull request: https://github.com/Azure/autorest.csharp/pull/4432

API change check
API changes are not detected in this pull request.


Add support for ruby 3.2 runtime

https://aws.amazon.com/blogs/compute/ruby-3-2-runtime-now-available-in-aws-lambda/

Hi @thatsmydoing. Thanks for opening this PR. I'm running tests now and if everything passes as expected I'll merge.


Dynamic button/templates in the App

Raised by Minnesota Power. They need to be able to create a template based on a combination of inputs. The user wants to be able to select one or more input buttons and use the selections to create a template on the fly. This template would then be submitted as a single feature.
For example you could have buttons for problem type and buttons for priority. The user would select a button from each group, and then a submit button, to generate and submit the feature.
See the example below to see why they can't really add any more buttons based with fixed templates:

1 for Nevada Dept of Wildlfe

Simple data entry of sex and age-class information by species observed using a simple tally counter format
Slight variations in classification of male age class by species (i.e., mule deer record 1 pt, 2 pt, 3 pt, or 4 pt+ bucks, mountain sheep record yearling, 2-3 year-old, 4-5 year-old, and 6+ rams, antelope records yearlings and adult bucks)
Record activity and snow cover of each group observed


Create icons for the nodes

UI/UX request: https://forum.freecadweb.org/viewtopic.php?f=34&t=41432

I started to create some icons
naming convention:
if nodename is  FreeCAD_Box
the icon is  freecad_box.svg, size 64 x 64 in
.../Mod.PyFlow/NodeEditor/PyFlowPackages/PyFlowFreeCAD/UI/


Converting ICPSLC24-10NA to 12v

I have been hacking around trying to convert it to run at 12v. With a 12v input and light load it sort of works. But a log led strip would not turn on. Changing R9 from 270k seems to do the 12v conversion trick, for now I have added a 230k in parallel (making it 124.2k). R9 should ideally be 125k for a 12v conversion.

@Treantno What does "sort of works" mean? And how long does the strip have to be to not turn on?

I have not experimented with different lengths. The issue is that the overload  protection is based on detecting low input voltage to the switch, and if it's set just bellow 12v and with light load it will turn off due to low input voltage. The resistor change lowers the threshold to work fine with 12v input.


Make it clear that 'by user ' only works with .show running queries.

The way it is written currently, it appears that 'by user ' can also work with .show queries command. However, it doesn't. It only works with .show running queries command.
This comes due to the way the syntax has been written:
Syntax
.show [running] queries [by * | by user UserPrincipalName]
As per this, a user can construct a command like .show queries by user . However, this command will result in an error.
Can we please fix this? May be show different syntax for .show queries and .show running queries.

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

ID: 78921997-610a-bd56-8c8f-c2172feea868
Version Independent ID: 5e5ee28a-6f90-96f8-2ddc-9b51f41062f5
Content: Queries management - Azure Data Explorer
Content Source: data-explorer/kusto/management/queries.md
Service: data-explorer
GitHub Login: @shsagir
Microsoft Alias: shsagir

Hi @shahdevangp - can  you please either open a PR for this change on the private repo or open a work item? https://aka.ms/ADX-docs-WI


Bridge request for urlebird

#2152 urlebird.com
Since it's not possible to create feed links for Tiktok profile pages as they not allow it through the API, So I found this website: https://urlebird.com/ where all the videos are scrapped from the original site, so I was wondering if we can convert profile links "e.g. https://urlebird.com/user/rosetheestallionn/ " to rss feed links?

General information

Host URI for the bridge (i.e. https://github.com): urlebird.com

Which information would you like to see?
Video posts from users.

How should the information be displayed/formatted?
Title (Link to actual post)
Body (Video) and direct link to .mp4 hosted file.

Which of the following parameters do you expect?

[X] Title
[X] URI (link to the original article)
[ ] Author
[ ] Timestamp
[X] Content (the content of the article)
[x] Enclosures (pictures, videos, etc...)
[ ] Categories (categories, tags, etc...)

Options

[ ] Limit number of returned items

Default limit: 5

[ ] Load full articles

Cache articles (articles are stored in a local cache on first request): yes
Cache timeout (max = 24 hours): 24 hours

[X] Balance requests (RSS-Bridge uses cached versions to reduce bandwith usage)

Timeout (default = 5 minutes, max = 24 hours): 5 minutes

Thanks for making this come true.

Please open other issue and ping bridge maintainer there


CI failure labeling

I believe it would be very valuable to label the failed CI tickets to see how we are doing over time. I think the most interesting bit would be to distinguish whether this has been an internal failure (e.g. CI pipeline broken, test logic false) an upstream dask issue (e.g. API breakage) or a platform issue (i.e. Coiled specific).

cause: upstream
cause: platform
cause: internal

Our process should be adjusted to add a label to the ticket before closing.
Thoughts? Is there anything else worth labeling?
cc @ncclementi @jrbourbeau

This sounds good to me!

Thanks for the idea @fjetter -- I agree with you and @ncclementi that this would be nice to do. I've gone ahead and added labels for this. The only change I made was I added two upstream labels, cause: upstream (dask) and cause: upstream (other), for Dask and non-Dask related failures. My thinking is it'll be useful to disentangle, for example, a breaking Dask API change from a change in fsspec or some transient conda-forge HTTP error. Certainly open to thoughts from others and happy to iterate

Closing for now, thanks @fjetter @ncclementi!


Is it possible to use swiper offline?

I want to use swiper on a touch display without access to the internet.
Is it anyway possible?

Do you want to ask a question? Are you looking for support? Stack Overflow is the best places for getting support

Please, don't use GitHub issues for questions


ottava lines

In MEI it seems common to encode written pitch with @pname/@oct so to say "ignoring" ottava brackets (at least that's what one find in the samples). Sounding pitch can optionally be encoded with @pname.ges and @oct.ges. Lilypond however wants the resulting transposed pitch encoded.
That's not really a problem - I'm currently thinking that I might wrap notes of an ottava bracket inside a \transpose. What I don't understand is what \unset Staff.middleCPosition actually does. In any case it does weird things, e.g. for this example:
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="3.0.0">
  <meiHead>
    <fileDesc>
      <titleStmt>
        <title/>
      </titleStmt>
      <pubStmt/>
    </fileDesc>
  </meiHead>
  <music>
    <body>
      <mdiv>
        <score>
          <scoreDef meter.count="4" meter.unit="4">
            <staffGrp>
              <staffDef n="1" clef.line="2" clef.shape="G" lines="5"/>
              <staffDef n="2" clef.line="4" clef.shape="F" lines="5"/>
            </staffGrp>
          </scoreDef>
          <section>
            <measure n="1">
              <staff n="1">
                <layer n="1">
                  <note pname="c" oct="4" dur="2" oct.ges="3" xml:id="note1"/>
                  <note pname="c" oct="4" dur="2" oct.ges="3" xml:id="note2"/>
                </layer>
              </staff>
              <staff n="2">
                <layer n="1">
                  <note pname="c" oct="4" dur="2" oct.ges="3" xml:id="note3"/>
                  <note pname="c" oct="4" dur="2" oct.ges="3" xml:id="note4"/>
                </layer>
              </staff>
              <octave dis="8" dis.place="below" startid="#note1" endid="#note1" staff="1"/>
              <octave dis="8" dis.place="above" startid="#note2" endid="#note2" staff="1"/>
              <octave dis="8" dis.place="below" startid="#note3" endid="#note3" staff="2"/>
              <octave dis="8" dis.place="above" startid="#note4" endid="#note4" staff="2"/>
            </measure>
          </section>
        </score>
      </mdiv>
    </body>
  </music>
</mei>

My plan would be:

Get rid of \unset Staff.middleCPosition and use \transpose instead
Introduce a switch that makes the \transpose optional as I'm not sure how thought through the convention found in the sample library is and one might want to encode "sounding" pitch rather than written pitch.

Any better ideas?

Originally I didn't want to rely on oct.ges. So I tried to "fake" it (which obviously only works with standard G clefs).
I'll give it some thoughts.

I'll try to take care of it by using the \transpose approach, at least to the extend that's manageable right now. It might be restricted to <octave> with @startid/@endid and a single voice. That would at least cover some use cases, but not others.

this should be ok now


about loss

hello, tztztztztz:
thankyou for your opensource code, it's very good!
but i have a question about loss, i read some blog about the loss, the yolov2 loss is like the picture, two red box in the picture is not find in your loss.py, is i didn't find or you do not write?

Hi,
Thank you for using this repo!
In fact, the two losses in the red boxes ARE INCLUDED in the loss function.
https://github.com/tztztztztz/yolov2.pytorch/blob/014559ce4df8f7e580e339919a05a05d988073a4/loss.py#L218-L219
For box losses,  the losses for both obj_coord and noobj_coord are included in a single tensor. Since the loss for noobj_coord is actually 0,  I use a box_mask  to mask out losses of noobj_coord.
For conf losses (iou_loss), the loss weights for conf_obj and conf_noobj are set by iou_mask
https://github.com/tztztztztz/yolov2.pytorch/blob/014559ce4df8f7e580e339919a05a05d988073a4/loss.py#L61
https://github.com/tztztztztz/yolov2.pytorch/blob/014559ce4df8f7e580e339919a05a05d988073a4/loss.py#L159


I've lost my FAB

Hi, somewhere at or after the latest rewrite, my FAB button got lost, and I haven't found it since then. It's not in the DOM, so I don't think it's being blocked by a plugin. I've added a pinned post in my Shaarli to link to the Add Shaare form, this is how I circumvented this issue so far to be able to add new links from the web. Could you please check where did the FAB go? 😃

If by FAB button you mean the button to add new links, yes, it's related to issue #118
I just need to get an alternative from Shaarli dev team and I'll publish a fix.

Yup, it's the Floating Action Button aka. FAB: https://material.io/components/buttons-floating-action-button :)
Thank you!

In page.header.html $_PAGE variable seems empty
{$displayAddNewLinkIcon=(($is_logged_in || $openshaarli) && in_array($PAGE, array('linklist', 'tools', 'tag.cloud', 'tag.list', 'picwall', 'daily')))}
Dirty workaround : replace this line by the following :
{$displayAddNewLinkIcon=(($is_logged_in || $openshaarli))}
Now the button is displayed on all pages when logged in.

It was previously fixed here, so this workaround is like a revert: https://github.com/kalvn/Shaarli-Material/issues/115#issuecomment-685266681

I've rebuilt my Shaarli using the support-v012 branch, and now the FAB is working again just as before. Thank you for the unnoticed changes in November :)


How to set displayName in ES6 Class?

I can't seem to get the displayName set, so I'm seeing
<No display name></No display name>

in the DOM. I've tried in the constructor, after the class... nothing seems to work.

Hi, how can I replicate this?

@Dharmoslap Just create a ES2015 class component and call Sortable on it. Looks like it became broken at some moment, earlier worked nice for me with classes, but is broken now. Btw, it's kinda weird to support createClass and have issues with modern syntax nowadays :/

Fixed in 1.3.0


Find all addresses when multiple are attached to a single interface.

Merging https://github.com/arkadiyt/aws_public_ips/pull/30 by @breser

Pull Request Test Coverage Report for Build 124

4 of 4 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 119:
0.0%

Covered Lines:
1125

Relevant Lines:
1125

💛  - Coveralls


Fix flaky tests

Please answer the following questions and leave the below in as part of your PR.

[x] This PR corresponds to an [issue with a clear problem statement] #54

[x] I have updated the CHANGELOG.md file with a description of the addressed issue.

Can you explain the changes in this PR?
Why is there a file removed from the function? Why is Thread/sleep added?

The this-file thing never actually worked, so I removed it as extraneous.
The sleeps are there to ensure that on a fast machine, at least a millisecond will have passed since the last time a file was written so the last modified timestamp won't accidentally be the same. This is my theory for why these tests were flaky on CI but not on my laptop.
Sleeping 500 ms is probably excessive, but I just wanted to be safe. Should I dial that down to 5 ms or something?

yeah, ok, let's do 5ms :)


Won't let me connect to a live

info: 'Error while connecting',
exception: Error: Missing cursor in initial fetch response.
how do I fix this?

use npm i


Linear search in dart

🚀 Feature
GSSOC'21
Implement Linear Search using Dart
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


Image array operation support such as resize, bgr to rgb conversion.

Can we use xtensor and replace opencv functions like resize, crop and bgr to rgb conversion? Does anybody has any of these implementation using xtensor?

Hi,
I think you should ask this on the xtensor repo instead. This repo is for vectorizing operations.


Using streaming + onTranscribe (custom server) together?

Very impressed by this project, thank you so much for it!
Is there some way to be able to stream the audio to a server endpoint (as in the examples) but also have it iteratively return results? Right now it seems like if streaming: true is set, it will only hit the whisper api directly from the frontend (e.g. https://api.openai.com/v1/audio/transcriptions).
That means there's quite a long pause at the end of recording to getting the result (since ffmpeg has to run at the end, and then upload quite a large file before getting the transcription). I'm curious if there's a way to avoid that with the current design?

Hello @sgrove

if you want to send streaming audio to your own server, you can use onDataAvailable
when you pass streaming = true, onDataAvailable will be called in interval based on timeSlice.

const streamToServer = (blob) => {
  // send chunk of audio to your server
  // the implementation will be on your own, you can check the source code at onDataAvailable to see more
}

const { transcript } = useWhisper({ streaming: true, onDataAvailable: streamToServer })

ffmpeg only convert if you pass removeSilence = true

in case of streaming = true, ffmpeg won't do anything

for streaming I tried to send chunk of audio to be transcribe one by one but the translation is not good, so currently it concat audio blobs in succession and send to Whisper.

I am still finding a better way to do streaming, if you got better idea it is very welcome.

@chengsokdara  Great project, Is it possible for you to create an example in nextjs of this working whilst only exposing the open api keys to the server?

@haluvibe yes I will add that later when this is a bit more stable, currently trying to make it truly cross-browser.

It seems the PR here https://github.com/chengsokdara/use-whisper/issues/33 can allow streaming + onTranscribe (custom server) to work together


Should we apply snakecase to response data

We currently use snakecase for function names and kwargs, but we intentionally don't process the returned json dict. My initial thought was that this is technically external / independent of the language and therefore doesn't need to follow the same conventions. That being said, we are already parsing the json into a python dict, so I could be convinced otherwise.
TODO: Take a look at what boto and a couple other libraries do.

We could also return a multi-key dict rather than make a hard decision, so either lookup works.

Another option that mostly fits with the design decisions is to introduce a shared Response type. Rather than having a custom response class for each endpoint we could just define a wrapper around the dict.
Responsibilities:

Pretty printing
Schema validation
Pythonic attributes access (ie: response.private_ip)
Immutable key base access (ie: response['privateIP'])
Access to underlying data (ie: response.data)


Add Vercel hosting guide (#543)

Co-authored-by: jgcarrillo<EMAIL_ADDRESS>Co-authored-by: Roj<EMAIL_ADDRESS>Co-authored-by: Ciki Momogi<EMAIL_ADDRESS>Co-authored-by: KnorpelSenf<EMAIL_ADDRESS>

@jgcarrillo now it's time to translate. Are you still interested in helping out with the Spanish version? If so, I'll grant you write access to this repo so that you can directly push to this branch.

@jgcarrillo now it's time to translate. Are you still interested in helping out with the Spanish version? If so, I'll grant you write access to this repo so that you can directly push to this branch.

Of course! hope to do better this time since spanish is my mother language 😄 so assign it to me without problem!

Done! No more forking necessary.
Please check out the translation guide once before you start :)
/cc @habemuscode

Spanish done


WIP: hot-fix (Do not merge)

Signed-off-by: harishsurf<EMAIL_ADDRESS>

the customer was given hot-fix instructions in google doc. Closing this one as it is no longer relevant


Not linking properly to FFI libs

Here is my program:
`Hadil-Sabbaghs-MacBook-Pro:screenviz hadilsabbagh$ cat screenviz.ml
open Core
open Owl
open Neural.S
open Neural.S.Graph
open Algodiff.S
(* Labels

Dense.Ndarray.S of [|*, 22|]
The first 4 columns are cx, cy, w, h
The remaining 18 columns are the classifiers.
*)

(* Jaccard function.  ((Float.min xa2 xb2) -. (Float.max xa1 xb1))) *. (Float.max 0. ((Float.min ya2 yb2) -.
(* Loss function definition *)
(* partial VGG-16 network + extra layers *)
let make_network input_shape =
input input_shape
|> normalisation ~decay:0.9
|> conv2d [|3;3;3;64|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;64;64|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> max_pool2d [|2;2|] [|2;2|] ~padding:VALID
|> conv2d [|3;3;64;128|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;128;128|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> max_pool2d [|2;2|] [|2;2|] ~padding:VALID
|> conv2d [|3;3;128;256|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;256;256|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;256;256|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> max_pool2d [|2;2|] [|2;2|] ~padding:VALID
|> conv2d [|3;3;256;512|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;512;512|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;512;512|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> max_pool2d [|2;2|] [|2;2|] ~padding:VALID
|> conv2d [|3;3;512;512|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;512;512|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|3;3;512;512|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> max_pool2d [|3;3|] [|1;1|] ~padding:VALID
|> conv2d [|3;3;512;1024|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|1;1;1024;1024|] [|1;1|] ~padding:VALID ~act_typ:Activation.Relu
|> conv2d [|1;1;1024;256|] [|1;1|]
|> conv2d [|3;3;256;512|] [|2;2|] ~padding:VALID
|> conv2d [|1;1;512;512|] [|1;1|]
|> conv2d [|3;3;512;128|] [|1;1|]
|> conv2d [|1;1;128;256|] [|2;2|] ~padding:VALID
|> conv2d [|3;3;256;256|] [|1;1|]
|> conv2d [|1;1;256;128|] [|1;1|]
|> conv2d [|3;3;128;256|] [|1;1|]
|> conv2d [|1;1;256;128|] [|1;1|]
|> conv2d [|3;3;128;256|] [|1;1|]
|> get_network`
Here is my jbuild file:
Hadil-Sabbaghs-MacBook-Pro:screenviz hadilsabbagh$ cat jbuild (jbuild_version 1) (executable   ((name screenviz)   (libraries (owl core))   (preprocess (pps (ppx_jane)))   ))
Here is the error that occurs when i run jbuilder build screenviz.exe:
/root/.opam/4.05.0/lib/owl/owl.a(owl_dense_common.o): In function camlOwl_dense_common___owl_copy_inner_5921':
/root/owl/_build/default/src/owl/owl_dense_common.ml:394: undefined reference to int8_copy_impl' /root/owl/_build/default/src/owl/owl_dense_common.ml:395: undefined reference to uint8_copy_impl'
/root/owl/_build/default/src/owl/owl_dense_common.ml:396: undefined reference to int16_copy_impl' /root/owl/_build/default/src/owl/owl_dense_common.ml:397: undefined reference to uint16_copy_impl'
/root/owl/_build/default/src/owl/owl_dense_common.ml:398: undefined reference to int32_copy_impl' /root/owl/_build/default/src/owl/owl_dense_common.ml:399: undefined reference to int64_copy_impl'
/root/owl/_build/default/src/owl/owl_dense_common.ml:393: undefined reference to char_copy_impl' /root/.opam/4.05.0/lib/owl/owl.a(owl_dense_common.o): In function camlOwl_dense_common__400':
:(.data+0x75a0): undefined reference to int64_copy_impl' :(.data+0x75a8): undefined reference to int32_copy_impl'
:(.data+0x75b0): undefined reference to uint16_copy_impl' :(.data+0x75b8): undefined reference to int16_copy_impl'
:(.data+0x75c0): undefined reference to uint8_copy_impl' :(.data+0x75c8): undefined reference to int8_copy_impl'
:(.data+0x75d0): undefined reference to char_copy_impl' collect2: error: ld returned 1 exit status
This occurs in Mac OS X 10.12 and also ubuntu 16.0 (using Docker).

This is using Ocaml 4.05.0

I used the latest build and found that the above problems are not present. I got the following error:
File "_none_", line 1: Error: Files screenviz.cmx and /root/.opam/4.05.0/lib/owl/owl.cmxa        make inconsistent assumptions over implementation Owl_neural
I believe it is my code that is the problem.

@hadils thanks for reporting this, I think this is the same issue reported here: https://github.com/ryanrhymes/owl/issues/112 Yes, it has been solved :)

File "_none_", line 1: Error: Files screenviz.cmx and /root/.opam/4.05.0/lib/owl/owl.cmxa        make inconsistent assumptions over implementation Owl_neural
For this latest issue, there can be two reasons imo: 1) the uninstallation wasn't complete so there might be some leftover files in .opam folder; 2) there can be some intermediate compiled files cached somewhere.
I myself sometimes encounter this problem, and it is usually solved by removing all the owl-related files then recompile.


Additional configuration options in the package.json

Hi!
I need to build several themes for different realms. But with the same components.
(I use my KcApp and pages components). I really don't want to duplicate the react app because of this.
Could you add more customization options for the titles? For example:
package.json:
{
  "other_props": "...",
  "keycloakify": {
    "themeName": "example",
    "sourcePath": "build",
    "buildPath": "build_keycloak2"
  }
}

src/bin/build-keycloak-theme.ts:
const parsedPackageJson: ParsedPackageJson = require(pathJoin(reactProjectDirPath, "package.json"));

const buildDirName: string = (parsedPackageJson as any)["keycloakify"]?.["buildPath"] ?? 'build_keycloak';
export const keycloakThemeBuildingDirPath = pathJoin(reactProjectDirPath, buildDirName);

...

const reactDirName: string = (parsedPackageJson as any)["keycloakify"]?.["sourcePath"] ?? 'build';
const themeName = sanitizeThemeName((parsedPackageJson as any)["keycloakify"]?.["themeName"] ?? parsedPackageJson.name);

...

"reactAppBuildDirPath": pathJoin(reactProjectDirPath, reactDirName),

Hi @Ann2827,
I assume that the project you are working on isn't opensource but it would help a lot if you could setup a minimal repo to help me understand your use case.
As your described it I don't see why we would need "themeName" when updating the "name" field of the package.json would do the trick.
Same for ""buildPath" wouldn't it be enough to keycloakify && mv build_keycloak build_keycloak2?
I'm sure once I see it, it will click but I need to understand a feature request before implementing it.
Best


Cache 10 minutes for price data get from coinmarketcap or coingecko

Currently, we get the prices from conmarketcap, the request number is limit, so we should cache data data to decrease the request to get prices

Only coingecko api


Double output?

When notifying of mixed tabs and spaces, two lines will be printed:
    Line 62: Mixed spaces and tabs.
    Line 62: Mixed spaces and tabs: if (Surface.isActionURL(event.path)) {

Is this intentional?

Heya Drew,
This definitely isn't intentional. Thanks for reminding me of it :)


add joinedAt and githubLinkedAt to users collection

As per the latest requirement, we have to add the joined date to the users' collection for efficient tracking and removing mechanisms.

Please link the respective issue tickets or PR


wasm-compose creating an ill formed wasm component

I'm still seeing issues after #977 has been fixed. This is what I'm seeing:
$ wasm-tools component wit broken-composed.wasm

Error: failed to decode WIT document

Caused by:
    0: failed to decode WIT from export `inbound-http`
    1: failed to register type export 'request'
    2: failed to convert unaliased type
    3: failed to convert record field 'method'
    4: unexpected unnamed type of kind 'enum'

Perhaps the issue comes from the following subcomponent in the composed component:
 (component (;0;)
      (alias outer 1 22 (type (;0;)))
      (import "import-handle-request" (func (;0;) (type 0)))
      (alias outer 1 23 (type (;1;)))
      (export (;2;) "request" (type 1))
      (alias outer 1 24 (type (;3;)))
      (export (;4;) "response" (type 3))
      (type (;5;) (func (param "req" 2) (result 4)))
      (export (;1;) "handle-request" (func 0) (func (type 5)))
    )

You'll notice that that request is being exported based on an outer alias. Could it be that this brings request into scope but the types that request relies on like method are still not in scope? Still trying to wrap my head around outer aliases so I might be getting lost here.

@rylev Thanks for reporting this issue. wasm-compose was written prior to how wit-component encodes the binary representation of a WIT package, so there's probably some additional discrepancies with what wit-component::decode is expecting.
I'll have to look into it, but I suspect it's similar to the problem in #977.

The outer aliases are in theory "simply" artifacts of the wit-component creation process (what I'm hoping is an inner component of those in the wasm-compose-created-component). Do you have a reproduction I could help poke around though to see if I can see what's up too?

I've posted a reproduction on to a Zulip thread for this issue.


:checked and :disabled switch border color

That might be a personal preference, but I think border color of a checked+disabled custom switch should be lighter. From what I see only background-color is modified by .custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before rule.

I think for the time being these will stay as they are. They’ll be getting some refinements in v5 as we move to consolidate native and custom forms though.


Improve README layout

Resolves #253

[x] Improved the overall layout of the README for better readability and structure.
[x] Added a "Table of Contents" section for easier navigation.
[x] Updated setup instructions to include clearer steps and examples.
[x] Made enhancements to the "Contributing" and "Authors" sections.
These changes aim to enhance the user experience and make it easier for developers to follow the documentation.

testing close/re-open workflow

@hari
Resolve syncing the contributors automatically


KYLIN-4384 Disable create table via spark by default

Pull Request Test Coverage Report for Build 5650

0 of 4 (0.0%)  changed or added relevant lines in 2 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.001%) to 27.464%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java
0
1
0.0%

source-hive/src/main/java/org/apache/kylin/source/hive/HiveInputBase.java
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

core-job/src/main/java/org/apache/kylin/job/impl/curator/CuratorScheduler.java
1
68.64%

core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java
5
77.81%

Totals

Change from base Build 5648:
0.001%

Covered Lines:
24208

Relevant Lines:
88145

💛  - Coveralls


FreeMarker template resolving issue using ogham.email.template.prefix

When using a FreeMarker template using a name, a variant and the property ogham.email.template.prefix, it seems that the template resolution doesn't work.
Template file in classpath: /email/delivery.txt.ftl
Sending email using: new Email().content(new MultiTemplateContent("delivery"))
Configuration: ogham.email.template.prefix=/email/
Using Spring Boot
=> Template not found
It seems that ClassPathResolverAdapter is using a particular class for resource resolution instead of ClassLoader so the path is relative the package of the class

The same Configuration instance was used for both sms and email leading to override of template path prefix


Generated Reader Tests

Are those folders meant to be part of the repository?
If not, can we remove them?
If so, what are they 😅 ?

@robertkossendey - great question.  Those folders are sample Delta tables actually from the Delta Acceptance Testing project.  We're can use these "standard tables" to write levi tests rather than generating all these reference tables from scratch.  We should probably pick a better table naming convention though!  You should jump into the #dat Slack channel.  I will post a message there now.


Security hardening / private endpoints / DNS

Builds on from #31
Expose and restrict

[x] Ensure storage accounts are not unnecessarily open
[x] Create private endpoints in public subnet

[x] PyGeoAPI
[x] Assets function app
[x] Storage account

[x] Create private endpoints in private subnet

[x] Create private endpoint definitions

[ ] Do #38
[ ] Set up NSG and https access via public interface
[ ] Set up NSG/ASG between LB and internal services
[ ] Set up internal routing / NSG/ASG between public and private subnets
[ ] Set up dev.icenet.ai to point to public interface
[ ] Test access via dev.icenet.ai
[ ] Ensure closed access to function app public endpoints
[ ] Check that non-admin IP sources cannot upload (test admin NSG)
[ ] Activate private endpoints

[ ] pygeoapi/app.tf - pygeoapi
[ ] forecast_processor/events.tf - event_domain_endpoint
[ ] forecast_processor/functions.tf - evtproc_app_storage_endpoint
[ ] forecast_processor/functions.tf - event_proc_endpoint
[ ] data/postgresql.tf - database
[ ] data/storage.tf - data_blob
[ ] data/storage.tf - data_file
[ ] processing/functions.tf - proc_app_storage_endpoint
[ ] processing/functions.tf - proc_endpoint
[ ] application/app.tf - application

The private endpoints caused an amazing nuisance, with the web application being unable to mount the share from the main storage, promptly breaking the container host with no real messaging.
Going to get the rest of the infrastructure set up behind the LB for access and then lock down from the edge, then transition into the private endpoint architecture. Azure is really a bit wobbly to use, with things failing silently all over the shop


ESMF time interval division gives different results despite identical inputs in different executions

While testing for the next CF system, the CF developers found an issue where ExtData was insisting it could not find the correct file despite the fact the files existed for the current time. This was with MAPL v2.7.1 and the file was one needed for the CO2 gocart grid comp. Worse this problem only shows up at c360 when running the full model. I tried ingesting the same files used by CO2 grid comp in my ExtDataDriver.x and even running that at c360 on the same core counts I could not reproduce this. The problem ultimately was this line in ExtData.
n = max(0,floor((cTime-item%reff_time)/item%frequency))

The pointer of this line is given the reference time and the frequency, find the closest time that is the reference time plus a multiple of the frequency. The problem is that given two identical runs other than the resolution and layout (so same RC files) this ESMF time interval division was giving different answers for one entry. At C24,C48,C90, it gave one answer which was correct, in that it brought you to a time that was within a frequency unit of the target time. But at c360 it gave a different answer which overshoots the current time and then ExtData can't find the bracketing time it needs and fails.
I'm stumped as this seems to be reproducible but in the model so far, but not in ExtDataDriver.x when ingesting the same files at the same application resolution!
As "fix" I think we need to avoid time interval division and I am going to make a patch that replaces this line with this a subroutine along these lines:
  function compute_closest_time(current_time,reference_time,frequency,rc) result(closest_time)
     type(ESMF_Time) :: closest_time
     type(ESMF_Time), intent(in) :: current_time
     type(ESMF_Time), intent(in) :: reference_time
     type(ESMF_TimeInterval), intent(in) :: frequency
     integer, optional, intent(out) :: rc

     integer :: status

     closest_time = reference_time
     if (current_time > reference_time) then
        do while(ESMF_TimeIntervalAbsValue(current_time-closest_time) > frequency)
           closest_time = closest_time + frequency
        end do
      else
          do while(ESMF_TimeIntervalAbsValue(current_time-closest_time) > frequency)
           closest_time = closest_time - frequency
        end do
     end if
     _RETURN(_SUCCESS)
  end function compute_closest_time

Essentially brute force this and simply avoid dividing any time intervals. I can keep trying to reproduce this, but this seems to be some problem within ESMF. Truly baffling.

Since ESMF_Time and ESMF_TimeInterval perform exact arithmetic, this cannot be a rounding error.    So either this is a bug in ESMF that should be reported, or is worth digging a bit more into.  (Or I've misunderstood in my first reading -- always possible.)
Indeed, the entire reason that ESMF implement exact arithmetic for time was to avoid this sort of issue.
For the case that breaks in the model, could you dump out the exact values of:

cTime
item%reff_time
item%frequency
the result of the division
the result of floor

We need to document exactly where a "bad" value is seen and the report to ESMF if it looks like a problem on their end or see where we have made a bad assumption.

Those TimeIntervals look odd. This:
P0Y1M0DT0H0M0S

is a duration of 1 month and this:
P0Y0M22DT15H0M0S

is a duration of 22 days, 15 hours.

The first time interval should be a month.
Notice in the c90 case the print of the mod outputs garbage
I don't use the mod, I was just printing it to see what it gave.

Ohhh. Yeah. ExtData!  I was expecting things like "6 hours" or "15 minutes" or something because my brain was in History land. 😄
Though I suppose we can do monthly history now...

But, yes, I agree that ^X is not a good ISO 8601 format.

Maybe the CAP.rc's weren't the same, I just copied in the CAP.rc from the C90 and now it's work. I thought both these CAP.rc's were whatever you get from the makeoneday script, I changed the C90 one to a job_segment to match the DT, so I didn't have to wait for the full day to run to see the results, I thought, lets make sure the job_segments are the same, so I copied over the C90 one to c360 and now it is working and I can't get the c360 job to fail :(

well, this is great, now I can't reproduce the error!

One more "probably something uninitialized" thing for our collection.   Ugh.

@bena-nasa Did you fix this?

I'm un-staling until @bena-nasa can comment

Closing as this is sort of nigh-unreproducible. And per @bena-nasa, ExtData2G doesn't do this.


Added Lpush, Lpop, LpopCount, Lrange, Llen, Ltrim and Lrem Commands. (List Commands)

Can we close this? AFAIK it was split and already merged on upstream.


"Connect the features" function doesn't work

iD suggests to 'connect the features' when highways cross over each other. When I click on 'connect the features' when this issue pops up, instead of adding a node connected to both highways, nothing happens. This only seems to happen in RapiD 1.1.6 and not the version of iD on osm.org/edit.

The same is happening in 1.1.6 when a road cross a waterway, the system suggest to create a shared node tagged as "Ford" but no connection or node are created once selected...

This issue is still happening, also the cursor is unresposive and you can't select becuase goes to the + indication of new drawing.
First time that an issue of editing preclusion is happening for such a long time...

This issue is still happening, also the cursor is unresposive and you can't select becuase goes to the + indication of new drawing.
First time that an issue of editing preclusion is happening for such a long time...

This will probably be fixed once 1.1.7 is released


DB Intellisense doesn't work for weird/custom Python installs (QGIS)

For context I'm trying to develop QGIS plugins. QGIS Installs as part of OSGEO4W and it uses a custom version of Python27. I've successfully gotten this to work on Eclipse and PyCharm but I really want to use MSVC 2015.
The problem is that the intellisense DB refresh isn't working when the binary files are separated from the Lib folder.
Here's the batch file I use to launch MSVS 2015:
@echo off
call "..\..\bin\o4w_env.bat"
@echo off
path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH%
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis
set GDAL_FILENAME_IS_UTF8=YES
rem Set VSI cache to be used as buffer, see #6448
set VSI_CACHE=TRUE
set VSI_CACHE_SIZE=1000000
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\qt4\plugins
set PYTHONPATH=%OSGEO4W_ROOT%\apps\qgis\python;%PYTHONPATH%
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"

Here are my initial python environment settings:
Prefix Path: C:\OSGeo4W64\bin
Interpreter Path: C:\OSGeo4W64\bin\python.exe
Windowed Interpreter Path: C:\OSGeo4W64\bin\pythonw.exe
Library Path: C:\OSGeo4W64\apps\Python27\Lib   <-- Notice very different from bins
Langauge version: 2.7
Architecture: 64-bit
Path Environment Variable: PYTHONPATH

And here's the error from my Python Tools\CompletionDB\14.0\AnalysisLog.txt file:
It's just a modification of the one that launches QGis:
2016-07-14T14:34:47: Start analysis
2016-07-14T14:35:24: IncludeModulesFromModulePath = win32com
2016-07-14T14:36:11: Deleting 0 files
2016-07-14T14:36:11: Scraping builtin modules
2016-07-14T14:36:11: Command: C:\OSGeo4W64\apps\Python27\python.exe "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\PythonScraper.py" "C:\Users\Matt\AppData\Local\Python Tools\CompletionDB\14.0\a0f354e1-5da1-486a-b3cb-1493f62a06b9\2.7\\" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\CompletionDB\\"
2016-07-14T14:36:11: [WARNING] Errors
ImportError: No module named site
2016-07-14T14:36:11: [ERROR] Failed to scrape builtin modules (Exit Code: 1)
2016-07-14T14:36:11: [ERROR] Analysis failed
System.InvalidOperationException: Failed to scrape builtin modules
   at Microsoft.PythonTools.Analysis.PyLibAnalyzer.<Scrape>d__53.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PythonTools.Analysis.PyLibAnalyzer.<RunWorker>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PythonTools.Analysis.PyLibAnalyzer.<Run>d__30.MoveNext()

the ImportError: No module named site error makes me think that there is a problem since I went to the Library path and site.py is right there.

As kind of a hail-mary pass we just tried copying the python.exe and pythonw.exe files next to where the Lib folder lives.
Now we have:
Prefix Path: C:\OSGeo4W64\apps\Python27
Interpreter Path: C:\OSGeo4W64\apps\Python27\python.exe
Windowed Interpreter Path: C:\OSGeo4W64\apps\Python27\pythonw.exe
Library Path: C:\OSGeo4W64\apps\Python27\Lib
Langauge version: 2.7
Architecture: 64-bit
Path Environment Variable: PYTHONPATH

The intellisense DB is now able to populate. I don't understand why this works.

I think the problem is that we suppress PYTHONPATH, since 99% of the time it isn't going to be reliable.
There's an option under Tools, Options, Python Tools, General to stop suppressing PYTHONPATH, but I have a feeling it doesn't actually affect the IntelliSense DB. I'll look at whether we can bypass that easily, but I suspect it's going to require some fairly significant code changes in PTVS...
Ideally (with my CPython core developer hat on), QGIS would stop using an unsupported layout - Python itself is not designed to work like that, so they should either change the interpreter or use the supported layout.

I did have the suppression ofPYTHONPATH turned off and was really hoping this would fix all my problems. My terminal and debugging seems happy but intellisense is not pleased, even when PYTHONPATH is correctly set which makes me inclined to believe your theory.
I agree that QGIS having such a non-standard python install is weird but I am a small fish in that pond and I don't know why they do it in the first place so I'm kind of stuck with it and my kludgy hack.

FWIW, I think your "hack" is actually an improvement, but in any case we should ensure that the option to not blank out PYTHONPATH is flowed through correctly.


remove reference to  library for tokenization in example code

Removing reference to the TextAnalysis version of tokenize in example code as it (for some reason) introduces the need to pass a language argument which is unused.

This is great, thanks, @pazzo83 . However, there are also docstrings to fix, e.g. here:
https://github.com/JuliaAI/MLJText.jl/blob/d04938d6a6bc6bcd6b52b6fe4078d89dd82a8745/src/docstring_helpers.jl#L53


Add hotspot_container tests to the openjdk test group

We should be adding the hotspot_containers target to the openjdk/playlist nearby the other hotspot_misc targets that we already have (see hotspot_compiler, hotspot_gc, hotspot_runtime, hotspot_serviceability)
	<test>
		<testCaseName>hotspot_container</testCaseName>
		<variations>
			<variation>Mode150</variation>
			<variation>Mode650</variation>
			<variation>Mode1000</variation>
		</variations>
		<command>$(JAVA_COMMAND) -Xmx512m -jar $(Q)$(TEST_RESROOT)$(D)jtreg$(D)lib$(D)jtreg.jar$(Q) \
	$(JTREG_BASIC_OPTIONS) $(JVM_NATIVE_OPTIONS) -vmoptions:$(Q)-Xmx512m $(JVM_OPTIONS) $(VMOPTION_HEADLESS)$(Q) \
	-w $(Q)$(REPORTDIR)$(D)work$(Q) \
	-r $(Q)$(REPORTDIR)$(D)report$(Q) \
	-jdk:$(Q)$(TEST_JDK_HOME)$(Q) \
	-exclude:$(Q)$(JTREG_HOTSPOT_TEST_DIR)$(D)ProblemList.txt$(Q) \
	-exclude:$(Q)$(TEST_RESROOT)$(D)$(PROBLEM_LIST_FILE)$(Q) \
	${FEATURE_PROBLEM_LIST_FILE} \
	${VENDOR_PROBLEM_LIST_FILE} \
	$(Q)$(JTREG_HOTSPOT_TEST_DIR):hotspot_container$(Q); \
	$(TEST_STATUS)</command>
		<versions>
			<version>17+</version>
		</versions>
		<levels>
			<level>extended</level>
		</levels>
		<groups>
			<group>openjdk</group>
		</groups>
		<impls>
			<impl>hotspot</impl>
		</impls>
	</test>

There may be an implication here that we need the test machines to have Docker installed, so presume we may need to check whether we need an infrastructure issue also created and of course disable these container tests from the appropriate platforms where it is not available).  For now we can create a PR and run some tests across platforms to see how these tests behave.
The tests may skip themselves from running if machine  in which case we may not need to add restrictions in the playlist as to where they can run, TBD.

These tests verify that the container detection code in OpenJDK works as expected. They'd be relevant for JDK 8, 11, 17 and latest. The basic mode of operation of those tests is that they build a Dockerfile (for the specific test) and then run the test JDK inside a container expecting specific behaviour. There will be some setup required (I think) as it's probably not a wise idea to run those tests already in a container (container in container?). Also, it would be good to know the setup where those tests run. In particular its useful to know which cgroup version the test-host is using (cgroup v1 vs cgroup v2). Those tests are relevant for Linux only. Other OSes don't have the feature.

I've opened an infra request ticket for cg v1 and cg v2 setups for Linux (x86_64 should be fine for starters): https://github.com/adoptium/infrastructure/issues/2817

Once this is fixed, we should remove excluded tests for JDK 8 done by https://github.com/adoptium/aqa-tests/pull/3885. I see that those are excluded not only for linux-aarch64, but for linux-all by now.
The real fix is to use a base image which is available on those architectures. The proposed UBI 8 image is available for x86_64, ppc64, aarch64 and s390x (s390x for JDK 11+)


add max-retries flag

Proposed changes

Issues for these changes

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Refactor (changes to code, which do not change application behavior)

Checklist

[x] I have filled out this PR template
[x] I have read the CONTRIBUTING doc
[ ] I have added automated tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (README.md, CHANGELOG.md, etc. - if appropriate)

Dependencies and Blockers

Relevant Links

Further comments

@mkrouse  is this still WIP?


JSON.parse/stringify C APIs?

I think it would be nice if the jerry-core.h API would have C APIs that match JSON.parse/stringify.
Proposal API:
typedef jerry_value_t (*jerry_json_reviver_t) (jerry_value_t key, jerry_value_t value);

jerry_value_t
jerry_json_parse_utf8 (const jerry_char_t *utf8_str,
                       size_t str_sz,
                       jerry_json_reviver_t reviver);

typedef jerry_value_t (*jerry_json_replacer_t) (jerry_value_t key, jerry_value_t value);

jerry_value_t
jerry_json_stringify(jerry_value_t value,
                     jerry_json_replacer_t replacer,
                     jerry_value_t space);

Note the output of jerry_json_stringify is not a UTF-8 C string (jerry_char_t[]). Although in most cases you probably want a C string...:

how to allocate the buffer for the C string?
what's an elegant way to deal with any errors – perhaps a jerry_value_t *error_out?

Thoughts?

cc @jiangzidong

how to allocate the buffer for the C string?
We can pass the allocated buf into the jerry_json_stringify, if the length is not big enough, return error.
or we pass the "malloc" function into the jerry_json_stringify, but this will make the API a little harder to use.

what's an elegant way to deal with any errors
Why not just return the error, like jerry_call_function did. if the ret has error flag, then it is the error.
It is the common way used in jerry-api.

I think the system constructs a string value, so I am not sure passing a buffer would work.
Yes, the returned value can have an error flag set.


Support content in languages other than English

GraphRAG does not explicitly support any particular language, however, the prompts are written in English and most of our evaluation has been done using English-language datasets. Many users would like to use GraphRAG for non-English datasets, and have reported varying levels of success. GraphRAG performance may vary across languages based on prompting, encoding/tokenizing, and the training and biases of the chosen model.
While we don't plan to implement explicit features or support for any language in particular at this time, there are a number of things users can do to try and improve non-English language support. A few examples:

Tune the prompts to request responses in a specific language. Notably, you can use our auto-tuning CLI tool and specify the language to use.
Rewrite the prompts in your language of choice. If you have used the init command to generate your starting config, all of the prompts are exported as text files that you can edit.
Experiment with different models. We haven't confirmed any specific model/language alignments, but please do experiment and report back in the discussion comments if you have helpful results. If you need to try a non-OpenAI model that is trained on a language other than English, please see issue #657.

Some helpful content for users with Chinese content could be here: https://github.com/microsoft/graphrag/issues/596


Update user guide for prof, student and ta feature

Codecov Report

Merging #6 (bcc33b3) into master (cef45c4) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[118] Issue #118 - September 20, 2018

To contribute to this issue, simply leave a comment here. Please also review our contributing guidelines.
The current draft for this issue in _drafts/. If you want to contribute directly, feel free to open a pull request.

I think a wider audience than those who keep close tabs on the forums might find this useful, so I hope to put in a plug here:
https://forums.swift.org/t/notes-on-numerics-in-swift/15746

A great number of questions are raised in these forums as to the functioning and design of numeric types and protocols in Swift. Sometimes, the answer can be found only by digging through the source code, and even then it's hard to place what you learn there within a larger context. Therefore, I've compiled a series of articles that delve into these topics in more detail.

Yes! Thanks, @xwu!
Sent with GitHawk

https://forums.swift.org/t/server-work-group-new-focus-areas/15969

228 in review
https://forums.swift.org/t/se-0228-fix-expressible-by-string-interpolation/16031

Swift's stable branch (v5.0) is upgrading to LLVM 7.0
https://forums.swift.org/t/stable-branch-update-tomorrow-clang-llvm-required/16142

Ha, thanks @fassko. Will add it! 😊

https://twitter.com/SwiftLang/status/1041767756075425792

https://twitter.com/slava_pestov/status/1041943141987713024

The constraint solver is now iterative rather than recursive — this should fix some stack overflow issues: https://github.com/apple/swift/pull/19203

What’s new in Swift 5.0 by @twostraws
https://www.hackingwithswift.com/articles/126/whats-new-in-swift-5-0
There is also a Playground.

Really cool list of Swift packages for Linux by @tib
https://theswiftdev.com/2018/09/18/swift-packages-for-linux/

SE-0227: Identity key path is accepted

https://twitter.com/slava_pestov/status/1042268507780505600

In Swift, foo.self always evaluates to foo. So naturally, .self should be a valid keypath as well: https://github.com/apple/swift/pull/19382

Now we’re just waiting for tuple keypaths so we can have full parity between member access syntax and keypath syntax

https://numerics.diploid.ca


Allow blacklisting OCL platforms and providers via a regex in ENV

Reasoning
For some users, a Microsoft Basic Renderer openCL provider shows up which misbehaves (a crash in the opencl.dll with C000...5). This PR brings a flexible solution to easily skip certain openCL platforms and devices
Users can configure blacklists via two environment variables

POST_OCL_PLATFORMS_BLACKLIST
POST_OCL_DEVICES_BLACKLIST

Both accept a regex for flexibility.

Environment variables are a quick way to make this work, but should we add an issue in the future to add this to the config so it can be passed from the node like numUnits?
EDIT: also I think for this to work the environment variables have to be exported (different processes) so on some systems it might not be possible to pass them in the first place

I wanted to avoid updating the whole code stack right now, as the time is short and it was the only way to override configuration because Smapp hadn't allowed it yet... Sure, we can change it when it cools down a bit :)

I'm not sure if the environment of smapp / go-spacemesh is necessarily forwarded to libpost-rs, unless the variables in question are export-ed.

On Windows, you usually set env variables globally via system utilities and this is how I imagine that the users with post problems will set it.

We also need to add info about the new variables to the README.md as documentation I think.

Good point :+1:


Resizable UI

The UI is not resizable yet and doesn't fully fit on 1366x768 displays.

Buy a new screen...

:sob:


Performance Issues

I'm attempting to work on an async client to nats-php and note that the performance is pretty bad (https://github.com/basis-company/nats.php/pull/62) and I've narrowed it down to the implementation of Queue and Pipelines. In fact, the more steps? is on a pipeline, the worse performance it appears to get:
Before adding ->concurrent()

After:

Without pipeline:

(async-background is a pipeline driven flow)
Should this be expected or is there some way to improve the performance?

I tried (1) but now that I think about it, that's probably the issue since (IIRC, about to hop on a plane), each operation on the pipeline uses its own queue which creates back pressure. Perhaps that's what I'm seeing?

@trowski that is indeed the issue, but it's out of my hands. Each step in the pipeline creates its own queue with a default of 0 buffer. This is a fairly significant performance impact when there is a lot of data in the pipeline.

I pushed a branch, buffer, which adds Pipeline::buffer(int $bufferSize). Please use that branch as your dependency and call that method immediately after creating the pipeline with some various buffer sizes. Let me know what effect that has on performance.

This has now been released in 1.2.0.

But @withinboredom never confirmed if the new method was actually useful?

Ah, it's useful @Bilge! I just never came back with perf improvements because I'm in the middle of a huge refactor. FWIW, it is magnitudes faster, I just don't have a way to get hard numbers.


Open YouTube Video does not work

Hi there,
i do have some issues trying to open a youtube video url.
Accordingly to the readme i tried:

Full video url (https://www.youtube.com/watch?v=AjSpMQfRmEo) as well as
ID only (AjSpMQfRmEo)

In both cases youtube is displaying an error message: "Ein Fehler ist aufgetreten" (s. pictrue attached) - No further details to be found unfortunately.

ioBroker Log says nothing so far.
Im running a LG W7V, current WebOS installed. Youtube App Version:

Happy to provide more information or test anything if needed.
Thanks!

I'm sorry, bit it seems that  this is a bug in the youtube app on your TV.
For my TV (WebOS 2.0) it works :(


Notebook wofs bitmask

Note: checklist below only relevant if committing to the develop branch:
Proposed changes
This is a notebook to explain the structure of water observation feature layers WOFLs, and how to use  them for masking.
Checklist (replace [ ] with [x] to check off)

[x] Notebook created using the DEA-notebooks template
[x] Remove any unused Python packages from Load packages
[x] Remove any unused/empty code cells
[x] Remove any guidance cells (e.g. General advice)
[x] Ensure that all code cells follow the PEP8 standard for code. The jupyterlab_code_formatter tool can be used to format code cells to a consistent style: select each code cell, then click Edit and then one of the Apply X Formatter options (YAPF or Black are recommended).
[ ] Include relevant tags in the final notebook cell (refer to the DEA Tags Index, and re-use tags if possible)
[x] Clear all outputs, run notebook from start to finish, and save the notebook in the state where all cells have been sequentially evaluated
[ ] Test notebook on both the NCI and DEA Sandbox (flag if not working as part of PR and ask for help to solve if needed)
[ ] If applicable, update the Notebook currently compatible with the NCI|DEA Sandbox environment only line below the notebook title to reflect the environments the notebook is compatible with

@erialC-P @bellemae The wofs_fuser function has been added to dea_datahandling, I think wofls_fuser could be as well! https://github.com/GeoscienceAustralia/dea-notebooks/blob/develop/Scripts/dea_datahandling.py#L464

In the Introduction, you also mentioned that more options to explore the data would be offered at the end of the notebook but I think these still need to be added (or you can edit your original comment and delete this suggestion!)

This is an informative notebook, I felt like I could finally understand what a WOFL is after going through it a few times. One thing that I thought would make it easier for first timers to understand is  to add a little bit about what is meant by 'Features' in the very first section:
"Individual water classified images are called Water Observation Feature Layers (WOFLs), where the feature could be something like mountain shadow, ocean, surface water or wet vegetation....."
If the reader has in mind what the feature could be from the start, it makes it a bit easier to follow on the first read-through.

@erialC-P I can't seem to accept and merge this PR... I think you might need to do the final step!


[5.3][Sema] Consider inherited platform unavailability to silence diagnostics

The compiler reported a superfluous error on some uses of an unavailable type in unavailable declaration, which should be accepted. This affected only platforms like Mac Catalyst when the user declaration was marked unavailable on iOS and the unavailable type was defined in Objective-C. The fix makes the diagnostic consider the inherited platform unavailability on the user declaration to suppress this error.

Scope: This is affecting the Swift overlay for OSLog.

Risk: Low, this change can only show less errors.

Origination: Likely from the introduction of the diagnostic.

Resolves: rdar://68597591

Testing: Added tests to compare the difference in behavior between Swift and Objective-C declared types.

Cherry-pick of #34087

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - df44b39cc5b023eb8c79660638a8bc81b6714dfa

Build failed
Swift Test OS X Platform
Git Sha - df44b39cc5b023eb8c79660638a8bc81b6714dfa

@swift-ci Please test

@swift-ci Please nominate

Build failed
Swift Test OS X Platform
Git Sha - df44b39cc5b023eb8c79660638a8bc81b6714dfa

@swift-ci please test macOS

The macOS failures appears to be unrelated and tracked by rdar://66842937.


callback function when expand node.

Hi.

I need to open an inner node. For this reason I call an expand method and delay 2 seconds until it loaded.
it is my snippet.
    for (let i = 0; i < res.tasks.length; i++) {
      const exists = this.tree.treeModel.getNodeById(res.tasks[i].id);
      if (exists) {
        exists.expand();
        exists.focus();
      } else {
        setTimeout(() => {
          const node = this.tree.treeModel.getNodeById(res.tasks[i].id);
          node.expand();
          node.focus();
        }, 2000 * i);
      }
    }

I'll appreciate extremely if you show me another solution or add a new feature.

In my case, I have a tree that is async loaded and when navigating away and back, it needs to be re-expanded to its previous state.
I maintain a list of expanded ids with hierarchy in mind and perform the expansion with the right order (from root nodes to leaf nodes) making sure that the node to be expanded is already loaded.
Because as you mentioned there is no way to know when the expansion of the node is completed, I ended up bypassing the getChildren feature and explicitly load the children of each node using node.data.children
This way I have complete control of the flow as I am handling the observable that fetches the children.

Downsides on this are that I have to maintain two ways of fetching children for a node, and the UX is much poorer as the user does not get the "loading" indications for each node, rather wait until all fetches are completed.
I too would benefit with a way to identify when an expansion is completed, ideally by having a node.expand method that returns an observable or promise, or could even do with hooking to an event that emits an action when a node is expanded.


stackcollapse-hpl fails with "Exception: Unexpected marker: 21 at offset 14"

I get the following error when trying to parse a hpl file generated by honest-profiler (version d505d540ad09516ede804e7d1aa34a889f266780):
stackcollapse-hpl slow2 > output-folded.txt
Traceback (most recent call last):
  File "/usr/local/bin/stackcollapse-hpl", line 9, in <module>
    load_entry_point('hprof2flamegraph==0.0.2', 'console_scripts', 'stackcollapse-hpl')()
  File "/usr/local/lib/python3.4/dist-packages/stackcollapse_hpl.py", line 110, in main
    (traces, methods) = parse_hpl(filename)
  File "/usr/local/lib/python3.4/dist-packages/stackcollapse_hpl.py", line 72, in parse_hpl
    raise Exception("Unexpected marker: %s at offset %s" % (marker, fh.tell()))
Exception: Unexpected marker: 21 at offset 14

Using https://github.com/RichardWarburton/honest-profiler/blob/master/src/main/java/com/insightfullogic/honest_profiler/ports/console/FlameGraphDumperApplication.java on the same file seems to work.

Hi Tomasz,
Thanks for the report. It has been a while since I last used honest-profiler (mainly using perf & flight recorder now). Work is piling up, but I will try to find some time next week to investigate whether it's a bug or if they evolved hpl format.

I just quickly troubleshooted the issue. This is due to e9b13fcea517af8b1a93be3e196591d1b466a723 which introduced a new type of log events. I will add support for this new log event soon.

I just pushed a fix into the master. Could you test it ?


Usage with Xenos (dll loader)

I mainly wanted to say thank you for this amazing project. i've been using (and struggling) with proxy dlls for so long and in 5 minutes you just made my life so much easier.
I'm using proxy dlls for my mods but i also sometimes just load the dll with xenos so that i don't have to restart the game all the time, so i just rename the dll and load it it.
But of course because UPD creates proxy based on filename, i can't just name my dll: myGame.dll and expect to load with Xenos as i usually do, any idea how i could make that work somehow?

I have never tried it but I guess you could call FreeLibraryAndExitThread from inside your proxy (for example when pressing a key: GetAsyncKeyState), then when the DLL is unloaded you can load it back in with the same name. Maybe Xenos can unload/uninject DLLs?

If that's not an option I guess you could have a DLL somewhat like this: https://github.com/techiew/UniversalProxyDLL/commit/164580d090f7c0625b37fe71d7f52c819df7368a
This would act as kind of your "base" or "master" DLL. The DLL could call LoadLibrary on a specific keypress, or even just repeatedly call LoadLibrary and sleep for a couple seconds in between. Instead of loading DLLs listed in a file as in the example you could load any DLL with a specific postfix or prefix in the working directory (using wildcards). Note that calling LoadLibrary on any DLLs that are already loaded does not do anything, so it should be safe to just spam it willy-nilly.

Thanks techiew,
I think i should have spent a little bit more time thinking before posting.... because the problem i had can be simply fixed by creating a specific build configuration with macors and then use a preprocessor condition to use UPD or not:
	#ifndef XENOS_MODE_BUILD
			//UPD::OpenDebugTerminal();
			UPD::CreateProxy(hModule);
	#endif // !XENOS_MODE_BUILD

Sorry for wasting your time, i'm going to be using UPD in my mod here, i'll make sure to credit you on the description page.
Cheers.

Cheers, cool mod.


default values set in about:config not applied

I set the default values in about:config for
pdfjs.defaultZoomValue to page-fit and
pdfjs.scrollModeOnLoad to 1
However, when opening a new pdf, the zoom level still gets set to "Automatic" and the scrolling remains vertical
Configuration:

Web browser and its version: Firefox 84.0.1 (64-bit)
Operating system and its version:  Windows 10 1909

Steps to reproduce the problem:

set the values in about:config as described above
open new pdf

What is the expected behavior? (add screenshot)
Pdf viewer should use the configured default values (page-fit and horizontal scrolling)
What went wrong? (add screenshot)
Pdf viewer ignores values set in about:config and opens pdf via default settings

WFM, when testing in Firefox Nightly 86 (on Windows) with e.g. https://ctan.uib.no/info/lshort/english/lshort.pdf and https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf

However, when opening a new pdf,

Please provide the PDF document in question, as asked for in the ISSUE_TEMPLATE.

WFM, when testing in Firefox Nightly 86 (on Windows) with e.g. https://ctan.uib.no/info/lshort/english/lshort.pdf and https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf

However, when opening a new pdf,

Please provide the PDF document in question, as asked for in the ISSUE_TEMPLATE.

Found that issue is only related to Nextcloud who seem to have their own implementation of pdf.js in the "PDF viewer" app.
If you, by chance, know how to set the default values with their implementation (I already tried changing default values in /var/www/nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/viewer.js, but no success), that would be great.
Otherwise, this here can be closed.
Thank you.

Found that issue is only related to Nextcloud who seem to have their own implementation of pdf.js in the "PDF viewer" app.
If you, by chance, know how to set the default values with their implementation (I already tried changing default values in /var/www/nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/viewer.js, but no success), that would be great.
Otherwise, this here can be closed.
Thank you.

Found that issue is only related to Nextcloud who seem to have their own implementation of pdf.js in the "PDF viewer" app.

We have no idea what "Nextcloud" is here (I'd guess that it's some kind of web-app), but it's in no way related to the built-in Firefox PDF viewer; hence it's (obviously) impossible to use the Firefox preferences to change settings in a web-app.
Please direct any further support questions directly to "Nextcloud", since that's not something we support here!

Found that issue is only related to Nextcloud who seem to have their own implementation of pdf.js in the "PDF viewer" app.

We have no idea what "Nextcloud" is here (I'd guess that it's some kind of web-app), but it's in no way related to the built-in Firefox PDF viewer; hence it's (obviously) impossible to use the Firefox preferences to change settings in a web-app.
Please direct any further support questions directly to "Nextcloud", since that's not something we support here!


[Peertube] Add PeerTubeChannelIE extractor

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
Fix

Cant u create a baseextractor and generalize the code with playlistIE?

Cant u create a baseextractor and generalize the code with playlistIE?

Done


update IdentifierCache.js so that cache is persisted to disk only if …

This PR is intended to avoid unneeded saving of IdentifierCache to disk.
On my RaspPI I noticed an unusual IO activity due to homebridge. At the end I discovered this is related to a periodic call of the "accessories" event by the clients, which then calls the AssignIDs function, eventually ending in any case with a call to IdentifierCache.Save.
This PR ensures that actual saving is performed only if really needed, by calculating the hash of the cache currently on disk and comparing it with that of the updated cache built by AssignIDs function. This compare method is the same already employed to determine if AccessoryInfo need to be saved. Note however two differences:
1 - Hash is not saved into the cache file (as opposed to what is done with AccessoryInfo), but calculated on load, stored in memory and updated on saving, in order not to break existing installations with a different cache file format
2 - Hashing and checking are done directly in the IdentifierCache class (in Load and Save method), and not by the caller (as done for AccessoryInfo), in order to be more transparent to future development.

Thanks!


[Bug]: Add support for Bonelab Latest Patch #4

All of the following criteria must be met

[X] All Requirements must be installed.
[X] Changed the title so that it doesn't just says "[Bug]: "
[X] I have searched the GitHub issues for my bug, even in the closed issues.

All of the following are optional to answer

[X] Tried reinstalling the Game.
[X] Tried reinstalling MelonLoader.
[X] Tried restarting PC.
[X] Was able to see the Start Screen.

Describe the issue.
Please add support for Bonelab Latest Patch #4
Store: Steam
Headset: Index
Latest.log
Did you attach your log file?
Yes, I attached my log file to the text box above.

This is only an issue on 0.5.7 (Steam only maybe? I don't feel like downloading the Oculus PC version to test)
Community is going to be mostly moving to ML 0.6.1 and 0.6.3 (nightly, available here https://nightly.link/LavaGang/MelonLoader/workflows/build/alpha-development)
Virtually every code mod is broken already due to changes in BL's, so this is probably the best time to update to new ML.

No it's not only an 0.5.7 issue.
I've tried every version available after 0.5.7 and all nightly builds available.

The only log you provided is for 0.5.7, it's very hard to debug other versions when you don't show what the issue is

Patch 3 mods will not work on Patch 4, so yes, likely Bonelib is breaking stuff on 0.6

Bonelib has not updated for patch 4 and that's why there aren't code mods out. Lakatrazz (fusion founder) stated that he was waiting for bonelib to update before he started work on fusion updates.

To summarise this because I want to close it:

MelonLoader 0.5.7 won't work on the updated unity version that Bonelab now uses
MelonLoader 0.6.0 was a breaking change and mods won't work until they're updated
The code changes in-game were significant enough that mods would have all been broken anyway
Due to this, the community has decided to move to 0.6.x, because they can combine 2 major breaking changes and get everyone up to date as it's basically a forced break.
Mods need to be updated, this needs to be done from the community side, not ours. Please monitor the Bonelab modding discords for information on when that is done.


Provide approved content for DEPLOY

the last approved mockup can be found here: https://invis.io/7WXZSH0E8U6#/424724457_DEPLOY_vD12
Content will be directly shared by Zia via telegram an AI file. Maximilian will coordinate.
Final text changes will be made when on staging.

accentially created twice


Maintainers wanted

This repository needs more TLC than I have time for. Are there any volunteers to take the baton?

@bbaassssiiee Yes, I would be happy to assist. My company already maintains several OSS Ansible roles. We would really like to see some cleanups and improvements made in this role as well.

@bbaassssiiee Thanks!

@bbaassssiiee Unfortunately, I'm reopening this issue and asking to be removed from the list of maintainers. I don't have much time to work on the role these days, and we're no longer using consul in our infrastructure anymore.

@bbaassssiiee Unfortunately, I'm reopening this issue and asking to be removed from the list of maintainers. I don't have much time to work on the role these days, and we're no longer using consul in our infrastructure anymore.

Nik, thanks for all your help! I removed you from the maintainers.


Min Cost Climbing Stairs

Follow naming convention of the file. Refer to this doc
https://github.com/imsudip/leetcode-journey/blob/master/CONTRIBUTING.md


Modify blocker.js to change hosts file path according to operating system

This issue is still under discussion, do not work on it right now.


Bread remove error.

check row emtpy. it is searching json data in row.

@kvlknctk, you have merge conflicts and an outstanding change request.  Once these are resolved, we'll review and merge it.

No response


Documentation Update for Apollo Federation

Product
Hot Chocolate
Is your feature request related to a problem?
The current documentation for V13 in regard to Apollo Federation simply says that support for it "is coming with Hot Chocolate 12.6".
The solution you'd like
It'd be great to have some sort of examples/documentation around what is supported and what isn't.

Closing this issue as it adds nothing,


Revert "External Links: add Git In Practice."

Why would we revert this?

I think this is just a bot account and this PR can be closed.


azure.mgmt.scheduler.operations.JobsOperations.create_update() Malformed Job Object

Hello,
I am trying to create a new Job in the Azure Scheduler using the Python SDK. However, the respond from the API is not providing enough details of the error and I have tried to find my own problem re-checking the API's doc multiple times but I haven't been able to found the error.
Here is the stack trace of the respond from the API
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/student/DataLions/Server/DataLionsAPI/rest/AzureScheduler.py", line 56, in create
    self._setJobDefinition(event))
  File "/home/student/DataLions/Server/DataLionsAPI/env/lib/python3.5/site-packages/azure/mgmt/scheduler/operations/jobs_operations.py", line 164, in create_or_update
    raise exp
msrestazure.azure_exceptions.CloudError: Azure Error: BadRequest
Message: Malformed Job Object

I have replaced subscriptionId and the uri with a mock one for security purposes.
Here is the code I am using to send the request.
Important! event['endDate'] = "2018-01-19"
from msrest.serialization import Serializer, Deserializer
from msrest.configuration import Configuration
from msrest.service_client import ServiceClient
from azure.mgmt.scheduler import SchedulerManagementClient
from azure.mgmt.scheduler.operations import JobsOperations
from azure.mgmt.scheduler.models import JobDefinition, JobProperties, JobAction
from azure.mgmt.scheduler.models import HttpRequest, HttpAuthentication, JobState
from azure.mgmt.scheduler.models import JobRecurrence, RetryPolicy, StorageQueueMessage
from azure.mgmt.scheduler.models import JobActionType
from datetime import datetime, timedelta
import importlib, inspect

# Wrapper for the Azure Microsoft API
class AzureScheduler:

    # The constructor setups the essential configuration to use the Scheduler
    # from Microsoft Azure
    def __init__(self, credentials, subscriptionId="mocksubscriptionId",
        resourceGroupName="syncResource", jobCollectionName="apisync"):

        self.subscriptionId = subscriptionId
        self.resourceGroupName = resourceGroupName
        self.jobCollectionName = jobCollectionName
        self.schedulerClient = SchedulerManagementClient(credentials, subscriptionId)
        self.serviceClient = ServiceClient(credentials,Configuration("https://management.azure.com/"))

        classes = self.__setClasses()

        self.jobsOperations = JobsOperations(self.serviceClient, self.schedulerClient.config,
        Serializer(classes=classes), Deserializer(classes=classes))

    # Setup a Dictionary with all the classes from the Scheduler Model.
    # Required to Serialize and Deserialize objects/JSONs
    def __setClasses(self):
        classes = {}
        model = "azure.mgmt.scheduler.models"
        mod =  importlib.import_module(model)
        for mod_name, mod_obj in inspect.getmembers(mod, predicate=inspect.isclass):
             classes[mod_name] = mod_obj
        return classes

    # List all the Jobs inside the Job Collection (jobCollectionName)
    def list(self):
        return self.jobsOperations.list(self.resourceGroupName,self.jobCollectionName)

    # first jobName datalionScheduler
    # Gets the description of the job requested
    def get(self, jobName):
        return self.jobsOperations.get(self.resourceGroupName,self.jobCollectionName,jobName)

    # Creates a job in the Job Collection
    def create(self, jobName, event):
        return self.jobsOperations.create_or_update(self.resourceGroupName,
                        self.jobCollectionName, jobName,
                        self._setJobDefinition(event))

    # Deletes the job (jobName)
    def delete(self, jobName):
        return self.jobsOperations.delete(self.resourceGroupName,self.jobCollectionName,jobName)

    def _setJobDefinition(self, event):
        return JobDefinition(properties=self._setJobProperties(event))

    def _setJobProperties(self, event):
        return JobProperties(
            start_time=datetime.strptime(event['endDate']+ " 9:50pm -0500", '%Y-%m-%d %I:%M%p %z'),
            action=self._setJobAction(),
            state=JobState("Enabled"),
            recurrence=self._setJobRecurrence(event))

    def  _setJobAction(self):
        return JobAction(type=JobActionType('Http'),request=self._setHttpRequest(), retry_policy=self._setRetryPolicy(), queue_message=self._setStorageQueueMessage())

    def _setHttpRequest(self):
        return HttpRequest(uri="http://test.ngrok.io/rest/player/?format=json", method='GET', authentication=HttpAuthentication('NotSpecified'), body="", headers={})

    def _setStorageQueueMessage(self):
        return StorageQueueMessage(storage_account="datalions", queue_name="Training Session", sas_token=None, message="Sync after Training")

    def _setRetryPolicy(self):
        return RetryPolicy(retry_type='Fixed', retry_interval=timedelta(minutes=3), retry_count=3)

    def _setJobRecurrence(self, event):
        return JobRecurrence(
            frequency='Hour',
            interval=1,end_time=datetime.strptime(event['endDate']+ " 11:50pm -0500",
            '%Y-%m-%d %I:%M%p %z'))

I won't fix this issue, since Scheduler is now officially deprecated. This is the disclaimer from the team I just received:

Move from Azure Scheduler to Azure Logic Apps by September 30, 2019
You’re receiving this email because you currently use Azure Scheduler. In 2016, we launched Azure Logic Apps, which includes the ability to configure and run scheduled jobs as well as advanced workflow     features. Because Logic Apps fully replaces Azure Scheduler capabilities, Scheduler will be retired as a standalone service on September 30, 2019. As with all changes of this type, we’re providing 12 months’ notice so you have adequate time to adjust. To continue using jobs you’ve configured in Scheduler, please move to Logic Apps by September 30, 2019. We encourage you to make the switch sooner, to     gain the richer benefits of Logic Apps. In addition to the Scheduler features you’re already familiar with, Logic Apps enables you to:

Use a visual designer and connectors to integrate with more than 200 different services, including Azure Blob storage, Azure Service Bus, Microsoft Outlook, and SAP.
Manage each scheduled workload as a first-class Azure resource.
Run multiple one-time jobs using a single logic app.
Set schedules that automatically adjust to daylight saving time.

Required action
Move your scheduled jobs to Logic Apps by September 30, 2019, to take advantage of advanced capabilities and avoid any service disruptions.
Read the migration guidance and FAQ to begin transitioning your current jobs from Azure Scheduler to Azure Logic Apps.
If you have questions, please contact us.


"Select" only works with first row of table when adding bootstrap-select classes

Hi,
Sorry to take some of your valuable time. Just added bootstrap-select classes to a "select" statement inside a php function (used to get a couple of dropdown lists in each table row) and now the dropdown list does not work anymore except for the first row, which is no generated by the javascript function but directly on the HTLM code of the page. If I remove the select classes, everything goes back to normal and I see the dropdown lists in every row. I have two buttons, an ADD one and a DELETE one, both were working perfectly before the class change, and they still do after it, but the additional dropdown lists are missing.
Here's the function code: `
function creaLista($varnom, $consnum, $valgrab, $valmos, $consul, $m2)
{
	global $arrayVariables;

	$arrayVariables[] = $varnom;
	$query=mysqli_query($m2, $consul[$consnum]);

	echo "<select class='selectpicker' data-style='btn-info' data-live-search='true' name=$varnom value=''>";
	while($rows=mysqli_fetch_array($query))
	{
		echo	"<option value=$rows[$valgrab]>$rows[$valmos]</option>";
	}
	echo "</select>";
}

`
If you remove the "class='selectpicker' data-style='btn-info' data-live-search='true' " inside the "select" statement, it all works well.
Now, The first call to this function in my HTML code works perfectly. But when I try to add new rows, the dropdown lists simply disappear. Here's the javascript code used to add and delete rows:
$(function(){
	$('#add').click(function(){
		addnewrow();
	});
	$("#tbUser").on('click', '.btnDelete', function () {
	    $(this).closest('tr').remove();
	});

	});

	function addnewrow()
	{
		var n = ($('.detail tr').length-0)+1;
		var tr = '
' +
						'' + n + '	'+
						"<?php creaLista('mrditemid[]',3,'SPARES_ID','SPARES_BRIEFDESC',$query2, $m);?>	"+
						"<?php creaLista('mrdunits[]',4,'UNIT_ID','UNIT_DESC',$query2, $m);?>	"+
						'<input type="text" class="form-control mrdquantity" name="mrdquantity[]">	'+
						'<input type="text" class="form-control mrdremarks" name="mrdremarks[]">	'+
						'<button class="btnDelete btn btn-danger">-	'+
				 '
';

	$('.detail').append(tr);

	}

With the class change in SELECT, the dropdown lists just dissapeared. I also tried removing each class separatedly....class='selectpicker' data-style='btn-info' data-live-search='true', but only when I remove the main class, "selectpicker", I get back all the dropdowns...
Thanks for your support, and again, sorry for taking your valuable time...

Still unclear about your problem .
But if you are adding select dynamically .Then you need to force render for the library .
$('.selectpicker').selectpicker('render')
Documentation force render

Amitsqaure, just did it and the issue was gone... thanks for your support...!


nav bar font change

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@4262fc8). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #78   +/-   ##
=========================================
  Coverage          ?   98.00%
=========================================
  Files             ?       87
  Lines             ?     1453
  Branches          ?      176
=========================================
  Hits              ?     1424
  Misses            ?       18
  Partials          ?       11

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Make database root a Map<String, Ref>

Since the head of each dataset can have an arbitrarily complex
type, type accretion leads the Datasets map at the root of the
DB to become very large. This type info isn't really very useful
at that level either. So, get rid of it by making this map be
from String -> Ref.
Fixes #2869

PTAL. I've included @arv because he helped me out with JS type stuff yesterday. @rafael-atticlabs, when I spoke to @aboodman about this patch yesterday he suggested I have you review it because you're in a better position to decide (with me) if this is the right approach here.

@arv, can you take another look at JS. I made the change you asked for

Diff Coverage
File Path

•••••••    75%
go/types/value_store.go

•••••••    75%
go/datas/remote_database_handlers.go

••••••••   88%
js/noms/src/database-test.js

•••••••••  94%
js/noms/src/database.js

•••••••••• 100%
go/datas/database_common.go

•••••••••• 100%
js/noms/src/version.js

•••••••••• 100%
js/noms/src/ref.js

•••••••••• 100%
go/types/ref.go

•••••••••• 100%
js/noms/src/value-store.js

Powered by Codecov. Last update 5801bd9...1a9e3bf

Still LGTM


ci: update minikube to v1.24.0

update minikube version to latest available version i.e 1.24.0
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

@Mergifyio rebase

@mergifyio rebase

@Mergifyio rebase

@mergifyio rebase

/retest ci/centos/mini-e2e-helm/k8s-1.21

/retest ci/centos/mini-e2e-helm/k8s-1.21

From the logs:
    Nov 18 06:43:11.431: failed to create PVC with error failed to get pvc: rpc error: code = Unknown desc = OK: HTTP status code 200; transport: missing content-type field

Seems similar to #2615, will need a retry as well.

/retest ci/centos/mini-e2e-helm/k8s-1.21

/retest ci/centos/mini-e2e-helm/k8s-1.20

@mergifyio rebase


Content script running again and again

https://github.com/pritipsingh/The-Productive-Champion/assets/111571318/a1c374ef-902b-4aa7-b7bc-df89456ce952
I was working on the popup functionality but I witnessed that content script was running for more than 1 time causing the pop-up to occur again and again. There might be some issue with the background. Can anyone me help to figure it out?

As Per my observation, it is running because of the websites that we have mentioned in the content/index.ts which keeps checking everytime when some new things has been arrived.

True, it loops around each website that's mentioned and when it finds it, it stops. It's not running again again

may be we can create a hashmap to check whether this website already checked or not if not then run else skip it


Is ListingOptionBundle included in this repository??

Is ListingOptionBundle included in this repository??
Thanks in advance. Gonzalo

Hi @gonzinho
This bundle is not opensource. Contact Cocolabs to give more information on how to get it: http://www.cocolabs.io/en/contact-us/


Add stroke alignment to PrimitiveStyle

Hi! Thank you for helping out with Embedded Graphics development! Please:

[x] Check that you've added passing tests and documentation
[x] Add a simulator example(s) where applicable
[ ] Add a CHANGELOG.md entry in the Unreleased section under the appropriate heading (Added, Fixed, etc) and appropriate crate (embedded-graphics, simulator, tinytga, tinybmp) if your changes affect the public API
[x] Run rustfmt on the project
[x] Run ./build.sh (Linux/macOS only) and make sure it passes. If you use Windows, check that CI passes once you've opened the PR.

PR description
This PR adds support for setting the stroke alignment (as described in #182) to PrimitiveStyle.

Could we add alignment to Line as well?

I thought we decided not to: https://github.com/jamwaffles/embedded-graphics/issues/182#issuecomment-600772351

It would be required for Polyline, Polygon and Triangle to support stroke alignment as they use/will use Line under the hood. That said, we/I still need to figure out joint styles so we could have Line ignore stroke alignment for now.

I did some initial investigation on a possible implementation for Triangle and it could work without using the thick line functions. If Triangle::expand and Triangle::shrink can be implemented, similar to Rectangle and Circle, drawing strokes would be easy. To implement expand and shrink an algorithm similar to the perpendicular line bresenham with thickness accumulator could be used. But there would need to be some special considerations for triangles with very small angles or where the three points are on a line.

I thought we decided not to

:+1: forgot about that

I did some initial investigation on a possible implementation for Triangle and it could work without using the thick line functions.

How does it handle the joints between thick lines (if at all)? I'd like to add line cap/joint styles on Line, Triangle, Polyline and Polygon in the future so a solution would have to take that into account.

How does it handle the joints between thick lines (if at all)? I'd like to add line cap/joint styles on Line, Triangle, Polyline and Polygon in the future so a solution would have to take that into account.

That solution wouldn't properly handle join styles and would only be a temporary solution until something better is implemented. But implementing shrink and expand would still be useful even if it wouldn't be used by the line drawing anymore.
One advantage of this simple approach is that the stroke and fill area are always triangle shaped and can easily be used for hit testing. If rounded and bevel joins are introduced the stroke_area won't be triangular anymore. I guess we need to reconsider if https://github.com/jamwaffles/embedded-graphics/pull/307#issuecomment-609475823 is still a viable idea.

That solution wouldn't properly handle join styles and would only be a temporary solution until something better is implemented.

:+1:

But implementing shrink and expand would still be useful even if it wouldn't be used by the line drawing anymore.

Yeah definitely :)

I guess we need to reconsider if #307 (comment) is still a viable idea.

I think it is, at least for now. If there's a desire for pixel-perfect hit testing in the future we can add that in. It might be as simple as impl ContainsPoint for Styled<Item> to get a super slow but accurate version of it.

I've added a note to PrimitiveStyle::stroke_alignment and the example. I don't think we need to add this to every open shape primitive and it should be described once in the styling module.
I'll add Triangle to the tracking issue and try to implement thick strokes at some time. If this doesn't work I'll add some notes that triangles aren't supported in another PR.


Update to 2.1.0

Codecov Report

Merging #149 into master will increase coverage by 0.37%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
+ Coverage   64.48%   64.85%   +0.37%
==========================================
  Files          16       16
  Lines         535      535
  Branches       34       31       -3
==========================================
+ Hits          345      347       +2
+ Misses        190      188       -2

Impacted Files
Coverage Δ

.../cakesolutions/kafka/akka/KafkaConsumerActor.scala
58.03% <0%> (+0.89%)
:arrow_up:

Continue to review full report at Codecov.

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


Updated JS Style guide Hyperlink @GUIDELINES.md

Fixes: Issue#19
Resolution: Swapped the python style guide for JS style guide by AirBnB for the hyperlink "coding style" @line-no:9
Description:
The initial intent was to redirect to a JS style guide, but the style guide provided in the hyperlink was a Python one.
So edited the hyperlink

@Beast-Monk Great Work!


test jenkins pr

Build finished.

Build finished.

Build finished.

Build finished.

Build finished.

Build finished.


Lazy load param_dict and use symbol name

Only load a param_hash if we actually need it.
Also, use a symbol's name rather than it's str(), which invokes
a bunch of custom sympy Printer nonsense.
Speeds a sample param resolution by almost 100x.
(see comment below for details)

Simple example:
import cirq
import sympy
import time

for n in [20, 40, 60, 80, 100]:
  qubits = cirq.GridQubit.square(n)
  ops = [cirq.XPowGate(exponent = sympy.Symbol(str(q)))(q) for q in qubits]
  params = {str(q):0.0 for q in qubits}
  t0 = time.time()
  for op in ops:
    cirq.resolve_parameters(op, params)
  t1 = time.time()
  print(f"n={n}: {t1-t0} secs")

Results before:
n=20: 0.021507740020751953 secs
n=40: 0.23191571235656738 secs
n=60: 1.7617378234863281 secs
n=80: 5.837962865829468 secs
n=100: 13.246250867843628 secs

Results after:
n=20: 0.004717588424682617 secs
n=40: 0.018138647079467773 secs
n=60: 0.042388200759887695 secs
n=80: 0.0766453742980957 secs
n=100: 0.12091302871704102 secs


Handler mappings instructions

This is the last request for today, I promise.
The first letsencrypt.exe wasn't successful. I noticed red-marked instructions how to view Handler Mappings ordered list and how to move StaticFile handler up before ExtensionlessUrlHandler.
This is how it was configured (by default I guess) on my server:

It's not safe to do this on the website level as this could impact other code running on the website. But there shouldn't be any problem reconfiguring this on ".well-known" folder or even deeper on ".well-known\acme-challenge" subfolder.
I changed Handler Mappings on ".well-known" folder and was able to receive the first LE certificate immediately.
Regards
Radek

I've mostly convinced the ACME working group to switch to .txt files to avoid this problem. Not sure when it will happen though.

Very good solution, thanks. I understand we have to wait for ACME working group now.

Pullrequest #19 will solve this problem.

I had to patch the letsencrypt binary to use "." extension instead of ".*" because of the security and configuration of a client server I had. It may benefit more people to have both:

Hi, same here (removed the star from the web.config file and it worked),
@Lone-Coder can you update the binary to not use ".*" and use "." instead? (I see there was another post about this, and I commented there but its been closed by the reporter after doing my manual work around)

Hi,
a better (and easy) solution is just to work along with IIS..
just add on Program.cs ons line 564
            answerPath = Path.Combine(answerPath, "Default.htm");

this add's the directory with a default file and omits the need of a custom web.config and moving this staticfile handler.

Closing as there is a work around now in the latest unreleased code. See the readme web.config Settings section for details.