Awesome typescript loader and fix sourcemap in test-watch mode

This replaces ts-loader with  awesome-typescript-loader to speed up incremental changes of typescript files with the forkchercker option.
This also skips code coverage instrumentation in test-watch mode so that it becomes possible to debug unit tests in Chrome with the Typescript files as opposed to the transpiled JavaScript.

I don't dislike the idea of having a-t-l instead of t-l, but last time I tried, I couldn't get the remap-istanbul to work with it. Also I like the idea to be able to debug tests.
That being said, have you tried this PR? I don't like what I see and there are a few errors. There is no ENV in karma nor you can import stuff like you did in package.json.

webpack config is still broken.

There is indeed an issue with code coverage not using the source map. I think I know how to fix that one.
What error do you have with webpack config ?

The line where you import the ForkChecker, it needs to be like the other ones.

Somehow, I have got this working fine on my end. Can it be because I am using Node 6.5 ?

That is probably true. In any case, it is always a good idea to use an existent project convention.

Ok. Leave it to me.

In any case, the coverage mapped back to TS doesn't work anymore and that is a must.

That should work better now.
The reason I moved remap-istanbul as a NPM post script is because of https://github.com/marcules/karma-remap-istanbul/issues/21.

Works for me. We just need to remember adding back the reporter


fixing CVE critical issues by resolving kerby/jline and wildfly libraries

Remove io.netty:netty library
Consolidate org.apache.kerby:kerb-core and org.apache.kerby:kerb-simplekdc version to 2.0.3
Consolidate org.jline:jline version to 3.22.0
Consolidate org.wildfly.common:wildfly-common version to 1.5.4.Final

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.00%. Comparing base (59551e4) to head (3274e9b).
Report is 63 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #12566       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436     2375       -61
  Lines        133233   129980     -3253
  Branches      20636    20146      -490
=============================================
- Hits          82274        0    -82274
- Misses        44911   129980    +85069
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
?

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Where ist the .pdb file

I've created an .exe file from a .py with Nuitka. For further proccess I need the .pdb file but it was not created. How can I create the .pdb file with Nuitka?

Nuitka only creates those in --debug mode. Notice however, you do not want to deploy the binary coming out of that. I am curious what further processing is done with that PDB file.

I did run nuikta with --debug but still there is no .pdb file. I want to protect the source code of a python script from reverse eng. The purpose of the .pdb file is to run it together with the executable (compiled with nuitka) through an obfuscator like pyarmor or vmprotect.


corneal disease

corneal disease is mistakenly listed as a child of integumentary system disease

this comes from Uberon. @pnrobinson do you want to submit a ticket to Uberon?

@nicolevasilevsky @cmungall @matentzn  Am I correct to assume that the problem in UBERON is that surface structure is a subclass of integumental system, but actually it should be the other way around?

Yes, I believe that is the case, surface structure is a subclass of integumental system in Uberon. I'm not sure what the correct classification is though.

Oh dear this is a terrible uberon error
Let's just get rid of surface structure,  it is a silly grouping
On Wed, Feb 3, 2021, 16:28 Nicole Vasilevsky<EMAIL_ADDRESS>wrote:

Yes, I believe that is the case, surface structure is a subclass of
integumental system in Uberon. I'm not sure what the correct classification
is though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/monarch-initiative/mondo/issues/542#issuecomment-772930640,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAMMOONPA5TQOBOBFMJEKDS5HSZ3ANCNFSM4GHBNRLQ
.

Thanks @dosumis for creating the ticket in Uberon :)


Meta: Make bundles smaller

Fixes https://github.com/sindresorhus/refined-github/issues/2996
I followed every step explained in that issue. This is the result:
           background.js ⏤  10.9 kB (-776 B)
 browser-polyfill.min.js ⏤  3.07 kB
             options.css ⏤  1.3 kB
            options.html ⏤  1.02 kB
              options.js ⏤  33.3 kB (-3.33 kB)
      refined-github.css ⏤  10.9 kB (+88 B)
       refined-github.js ⏤  96.1 kB (-5.12 kB)
    resolve-conflicts.js ⏤  1.6 kB (-34 B)

refined-github.css ⏤  10.9 kB (+88 B)
Curious why

Heh, probably because this PR is based on a different commit, so those 88 bytes are just the diff between the 2 CSS files.

so those 88 bytes are just the diff between the 2 CSS files.

Confirmed. First post updated


Thank you Belim ! I've just installed the scripts in Spydish.

Thank you Belim ! I've just installed the scripts in Spydish.
If I understand you, Belim, I can't run any specific policy inside the basicprivacyTemplate, right ?
Please add a button "Analyze" for scripts in Spydish to know which script are already applied.
Also the same button for SharpApp will be great ! Thank you !
Originally posted by @florent7 in https://github.com/mirinsoft/sharpapp/issues/32#issuecomment-643520239

This is not possible with the included automation templates. You would have to separate them, so save each command separately. Just use the policies tab. The scripts tab is suitable for automation purposes or to execute advanced scripts


css cant find assets that are listed at wwwroot

I have a little project where I have a cshtml that needs a css and the css need two svg, the css is saved at wwwroot/css/stylesheet.css, the svg are at wwwroot/Images/myimage.svg.
In my css I have the property background as this, background: url(../Images/myimage.svg), and in my cshtml I import the css as . when I run the site, it returns and error saying that it wasn't able to find the resources. Any idea of what could be happening??

You have ...
"Microsoft.AspNet.StaticFiles": "1.0.0-beta8"

... and ...
app.UseStaticFiles();

... correct?

haha forgot about that... still new with asp.net 5, it's hard to remember everything haha thank you so much!


Regression models on resting data

In using the resting-state MEG data from CAM-CAN, was it not necessary to consider doing some sort of temporal alignment of the windows across subjects when fitting regression models?

Hello Anita,
Not necessary since we're averaging accross the epochs to compute covariance matrices for each subject
On Apr 22, 2021, 20:45, at 20:45, Anita Sinha @.***> wrote:

In using the resting-state MEG data from CAM-CAN, was it not necessary
to consider doing some sort of temporal alignment of the windows across
subjects when fitting regression models?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/DavidSabbagh/NeurIPS19_manifold-regression-meeg/issues/1


#559 - Implement efficient movemask for PPC and enable cheap top_bits for PPC

This shoudl eb enough to close #559 as the top_bits using movemask is now efficient on PPC

Lgtm


In markdown, apostrophes render upside down (lsquo instead of rsquo) after links

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.61.0-9B445B9D/extended darwin/amd64 BuildDate: 2019-12-11T08:32:34Z

Does this issue reproduce with the latest release?
Yes.
In a markdown file within content/, I placed an apostrophe right after a link:
Eat at [Joe](https://example.com/)'s
This should be rendered as:
Eat at Joe’s
But instead, it's rendered with the apostrophe upside down:
Eat at Joe‘s

I think this bug occurs only in a more specific case than I first thought. It's when the link text is in all-caps:
ICANN's

I just reproduced this bug in v0.71.1.

I see this was fixed in #7067 for release v0.72.0. Thank you!


How can I namespace models ?

Hi @yonaskolb,
The swagger file that I work with has multiple models with the same name on different endpoint which results in model rewriting themselves randomly when I update them.
How can I namespace my model with the same namespace that request have?
Thanks,

Hi @mackoj, not sure I understand. If the models are listed in definitions then they will all be sharing the exact same model. If the models are inline as a schema they should be generated within the request.
Are these request or response models? Do you have an example?

After further research it's my be illegal to do what I explain above.
But when I process this swagger file with swaggen it shows two Categorie,  Item, URL, Lien, Menu, Rdv for exemple on the readme as if there is two versions of them.

I think the swagger file is really wrong don't bother.


Multiline comment doesn't work if I click the first line's decoration to create it

Testing #148048

I haven't been able to repro this. Does this repro for you every time?

Closing as not-reproducible.


feat(plugin-chart-echarts): add aggregate total for the Pie/Donuct chart

SUMMARY

The data analyst would like to see the aggregate total to be displayed in a Pie/Donut chart. Similar to the Big Number chart. This will allow the viewer to see aggregate values as well as their breakdowns rather than having to calculate.
This PR adds:

show_total control to decide whether to display the aggregate count.
total text will display at top of normal pie chart by default if show_total control checked
total text will display at center of donuct chart by default if show_total control checked
total text will adjust its own position according to the position of the legend.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

control panel

pie chart

donuct chart

with legend

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@stephenLYZ There's a TS error that needs addressing, but otherwise this is looking great!

I Tested in my local, and the behavior was expected.

[x] Apply integer metrics
[x] Apply float metrics
[x] Apply number formater

There is an unrelated issue when I tested this. The label of the Pie disappeared when I applied negative metrics.


Call IsParametersDIrty() in a loop after the Login()

To receive correct parameters (for example by using GetParameter()) right after Login()  call IsParametersDirty() in a loop until it returns 1, otherwise parameters will be incorrect/outdated.

There is WaitForNewParams() method for that in extended class


the composer with skills running error

i have a simple skill in a composer intent.  the skill could run successfully in web chat, but be consumed by composer has error ,run await stepContext.Context.SendActivityAsync(mailId);
return     Operation returned an invalid status code 'NotFound'
could someone can help me, thanks.

hi @happybithj Do you see any activity in your Ngrok viewer? (i.e. does the request make it to ngrok?)

Hi @happybithj Are you still having this issue? Do you see any activity through ngrok when the skill activity is being executed in the consumer/root/composer bot?

I am closing this due to inactivity. If you are still having issues, please comment or reopen.


disposal units playing sound whenever they get in pvs range

Description
introduced by disposal refactor or something
Reproduction

walk away from a disposal unit
walk back
sound

ghosts

so audio was a separate bug from #17677? disposals is in need of a refactor #17831

is a dupe of the first but got reintroduced


Add bundle size check GitHub action

See https://github.com/preactjs/compressed-size-action

Ha, works great!


Support for grouped Queries and Mutation

Is there a way to generate grouped queries and mutations just like Dociql. I have gone through the docs and YAML options and I couldn't find anything relevant. I guess Dociql is managing it through usecase option in YAML file.

Some thing like below would be great if we can achieve this.

Hi @newhouse any update on this one.

Hi @huzaifaali14 and thanks for using SpectaQL!
There is not currently a way to do this in SpectaQL, unfortunately, but I do think this seems like something that it should support.
I'm trying to think about what might be the best way to expose this capability to users. My first thoughts are:

Allow for an additional metadata flag that can be used to optionally specify a groupName...then all Queries with the same groupName will be grouped together, and all Mutations with the same groupName will be grouped together.
This fits with the existing pattern of using metadata to get things like examples into your output.
Perhaps it could support a "dynamic grouping processor" (similar to the dynamic examples processor) capability that lets you write code that returns what group each thing should be in...though I'm hesitant to do that from the start since I don't see the value vs figuring out how to get it into the metadata from the various options for doing so that SpectaQL already supports.

Any thoughts?

A way of grouping would be great, but please also incorporate types in this regard (not only queries/mutations).

@newhouse I think exploring how Dociql achieve this might give us some idea.

You can now customize your data arrangement via "themes" in SpectaQL 1.0. This issue response shows a good starting point for how you can accomplish it.


fix: Fix missing scrim background on LoadingOverlay

Background class wasn't applied when LoadingOverlay has error or is loading

I believe not having an overlay in this case was intentional - the scrim changes the colour unnecessarily of the panel if it hasn't loaded a widget yet. What ticket are we fixing here? This is for the error covering a dashboard?

This is for DH-16180 where I need a spinner with an overlay while the panel content is updating.
I see that we do something like this in a couple of places:
<LoadingOverlay isLoading={showSpinner} isLoaded={!showSpinner} ... />

This displays the spinner without the overlay, then on the fade-out the black overlay is shown for a split second, so there's a bit of a flicker.
I guess the right usage should be just <LoadingOverlay isLoading={showSpinner} /> to show the spinner without the overlay, and <LoadingOverlay isLoaded isLoading={showSpinner} /> to show the spinner with the overlay. In that case, my change isn't needed.
For my use case, Don suggested adding a background-colored overlay immediately with no fade-in, and do a quick fade-out when loaded. I'm going to update the PR to parameterize background color, fade-in, and fade-out duration.


Update gRPC to version 1.22

Update gRPC to version 1.22

@qmfrederik could you please take a look at this PR?

Hi,
could you also please update the nuget package?
Thanks,
Daniel

From: Frederik Carlier<EMAIL_ADDRESS>Sent: Monday, August 26, 2019 1:00 AM
To: qmfrederik/helm<EMAIL_ADDRESS>Cc: DanielHartl<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [qmfrederik/helm] Update gRPC to version 1.22 (#21)
Merged #21https://github.com/qmfrederik/helm/pull/21 into master.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/qmfrederik/helm/pull/21?email_source=notifications&email_token=AD3A3TPGPA2Y2HSVDNLYZETQGOERVA5CNFSM4IKDXXTKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTHZT66Q#event-2582855546, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD3A3TNOG6FUJSKZODJ6CQTQGOERVANCNFSM4IKDXXTA.

Sure. Just so you know, AFAIK, Helm 3 is moving to a different model (without Tiller/the gRPC server), so this package will eventually become obsolete.


Remove inheritance on pathlib

And reimplement some of its methods.

@chStaiger I have added some tests, but I have also removed some tests, since I'm not sure exactly what you are trying to do, especially with the windows_paths and their joins. I think for now it is more sensible if the IrodsPath assumes good/valid input for all its functions, meaning the inputs should be posix paths as well. Any wrangling you want to do with windows paths should be done on the data operations side I think.

@chStaiger I have tried to fix that particular error. Can you see if it works again for you? From my part this PR is ready for merging.


fake profile generator

added program for fake profile generator

Please contribute something meaning :). also do star this repo.

added python program for merging two sorted arrays / lists

cool.


Documentation

I'm thinking of writing a python pandas generator for this, is there a place I can find the specs at?

That would be awesome! I did some initial work generating json-schema definitions for the required json files but ran into some issues and thought I'd wait until someone requests it to work on it some more. I will get back into this and comment here when I have something for you to look at.

I would really like to use trelliscopejs-lib and would really like to not use trelliscopejs. If you haven't considered updating the documentation lately, please do. I'd love to be able to make displays on my own, but need more specifics on cogData and displayObj jsonp structure.


feat: Add currently mined keyblock animation

Description
resolves #321
Demo
https://github.com/aeternity/aescan/assets/15363559/3bf76b17-e50b-4ff5-af00-e5b1f490b52a
Checklist:

[x] I have read and followed the Contributing Guide
[x] add currently mined macroblock animation

Amazing! We should have more things like these that make aeScan alive!

Challenge accepted. I am not an animation master, but mostly I was the one in previous project who took care about this domain https://github.com/aeternity/aescan/issues/361
I will come up with new ones

Ohhh im down to help!
On Thu 29. Jun 2023 at 09:28, Jan Michek @.***> wrote:

Amazing! We should have more things like these that make aeScan alive!
Challenge accepted. I am not an animation master, but mostly I was the one
in previous project who took care about this domain #361
https://github.com/aeternity/aescan/issues/361
I will come up with new ones
—
Reply to this email directly, view it on GitHub
https://github.com/aeternity/aescan/pull/357#issuecomment-1612550949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYN26ABSFA2SYOKY5KLUTTXNUVDHANCNFSM6AAAAAAZW7SUH4
.
You are receiving this because your review was requested.Message ID:
@.***>

--
With kindness and warm regards,
Danilo

@janmichek On mobilewhen i try to go through the blocks ii does not work. The blcoks are overflowing to the right.

On dev it works just fine.

@janmichek The overflow issue has been fixed but i noticed that the animation stays at the same spot when i move the blocks.
Recording.2023-07-17.171206.mp4

Good catch, fixed. Now should be good
https://github.com/aeternity/aescan/assets/15363559/a20de38f-0005-4430-b21b-3d34a5177cee


[AutoComplete] Breaks full width of TextField inside flex containers

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
As you can see in the example linked below, setting fullWidth on an TextField supplied to Autocomplete doesn't take the full width anymore as soon as the Autocomplete is wrapped inside a flex container.
Expected Behavior 🤔
That it takes the full width inside a flex container like a raw TextField does.
Steps to Reproduce 🕹

See https://codesandbox.io/s/trusting-bassi-7dtc1
Context 🔦

Your Environment 🌎

Tech
Version

Material-UI
v4.9.5

Material-UI Lab
v4.0.0-alpha.95

React
16.13.0

The problem is that Autocomplete wraps the TextField in an extra <div>. You now have to add width: 100% or flex-grow: 1 to the Autocomplete component.

@Cristy94 I'm completely aware of this. But it feels a bit weird that I have to manually add styles to something. I also wonder why Autocomplete needs this div wrapper.

I also wonder why Autocomplete needs this div wrapper.

@levrik It's required per https://www.w3.org/TR/wai-aria-practices/#combobox. But they are working on removing the container: https://github.com/w3c/aria/wiki/Resolving-ARIA-1.1-Combobox-Issues#aria-11-problems. I'm not sure it's stable enough yet. @eps1lon What do you think, should we follow this draft or delay things?

That it takes the full width inside a flex container like a raw TextField does.

This is an interesting concern, I have been wondering about this problem lately: #19805.
Assuming we want to delay the change of ARIA from 1.1 to 1.2, I would suggest the following: We add a fullWidth prop at the Autocomplete level:
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js
index 0c3181850..c65ba60be 100644
--- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js
+++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js
@@ -20,6 +20,10 @@ export const styles = theme => ({
       visibility: 'visible',
     },
   },
+  /* Styles applied to the root element if `fullWidth={true}`. */
+  fullWidth: {
+    width: '100%',
+  },
   /* Pseudo-class applied to the root element if focused. */
   focused: {},
   /* Styles applied to the tag elements, e.g. the chips. */
@@ -376,6 +380,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(props, ref) {
           classes.root,
           {
             [classes.focused]: focused,
+            [classes.fullWidth]: fullWidth,
             [classes.hasClearIcon]: hasClearIcon,
             [classes.hasPopupIcon]: hasPopupIcon,
           },

Adding fullWidth to the Autocomplete component sounds like a good idea as long as that wrapper div has to be kept.

I wouldn't touch anything combobox related right now without actually verifying it with assistive technology. If I remember correctly then ARIA 1.2 and 1.3 will have an updated version of the combobox pattern.

First of all, I'm new here. I hope can help the material-ui community

The problem is that Autocomplete wraps the TextField in an extra <div>. You now have to add width: 100% or flex-grow: 1 to the Autocomplete component.

@Cristy94 and @oliviertassinari I tried to remove this extra div and the behavior still the same seemingly, I did a few tests.
Someone who has a good background about Material-UI, why need this extra div, have something special that I'm not seeing?

Someone who has a good background about Material-UI, why need this extra div, have something special that I'm not seeing?

@igorbrasileiro https://github.com/mui-org/material-ui/issues/20145#issuecomment-600926581


Build toolchain for DPDK development

Create a container which builds DPDK and all relevant dependencies

[ ] with llvm or gcc compilers (ideally the exact same compiler which built our kernel for whatever test we want to run)
and in debug mode, produces code

[x] with debug symbols (-ggdb3 and or -glldb)
[x] -Og compiler optimizations
[x] with source code of dpdk and all dependencies packaged in that container for static analysis

in release mode (gnu toolchain)

[ ] produces detached debug symbols
[x] -O3 optimizations
[x] -flto (likely with -ffat-lto-objects
[x] links with ld or mold

in release mode (llvm toolchain)

[ ] produces detached debug symbols
[x]  -O3 optimizations
[x] -flto=thin (likely with -ffat-lto-objects -funified-lto)
[x] links with mold (rdma-core is being a troll)

The main idea with the different toolchains is to

aid debug (sometimes one compiler's error messages are far more helpful than anothers)
avoid dependencies which are either

unmaintained
code to implementation rather than spec
overly opinionated or inflexible

Basically, if you refuse to compile on clang or you can only link with a specific linker or use GNU specific C extensions then I am suspicious of your library :)

I think we should move the detached debug into a different task

Moving distinct toolchains to a different issue as it isn't currently pressing


maskMoney('unmasked') should return integer

In terms of good architecture, money values should be always stored as integers for precise calculation capabilities.
Mathematical operations on floats could generate unnecessary and unexpected behavior.

How would you propose to do so given that money is frequently expressed in fractional values while an integer is a whole number?

so, how we return the unmasked value of "1.20"?

Pretty simple - as a 120. Integer.
Of course when we output our value from the system we format it correctly in every possible format.

Why not just shift the digits yourself? Masking is for human consumption, and while unmask does have a certain logic to reversing human readability, this plugin allows for varying levels of decimal accuracy, meaning that unmask would not return a universally meaningful value without packaging it with the field settings.
Consider the case where you have multiple masking accuracy settings on the same page, defined inline on the input. Returning an unmasked value would require reading the settings off of the input, and returning an object rather than a value, so that further processing can be done.
1.20 vs 1.200000 for instance.

You are probably right about the flexibility. Consider it closed.


Issue marking a day

Hi, Thank you for share your code, is amazing. I have a question, if I want to mark a day in a concret month I have do like this:
if(currentMonthIndex==3){
final Calendar calendar = Calendar.getInstance(Locale.getDefault());
calendar.add(calendar.DAY_OF_MONTH, 28);
robotoCalendarView.markDayWithStyle(RobotoCalendarView.GREEN_CIRCLE, calendar.getTime());
robotoCalendarView.markDayAsCurrentDay(calendar.getTime());
}
But if I do this and I execute the marked day of march is 18 and not 28. Thanks

How to robotoCalendarView.markDayAsSelectedDay(); multiple dates in your calendar? thanks

Hi Purdual10, sorry about the response delay.
First, you're adding days to the current calendar, not selecting the 28th of the current month:
calendar.add(calendar.DAY_OF_MONTH, 28);

Second,
robotoCalendarView.markDayAsSelectedDay();

it's just to mark the current day, not multiple dates.


failed to connect to server [mongo:27017]

Hello,
When I write the following command for installation and configuration
docker run -v /Users/amjadhamad/Desktop/authelia-master/config.template.yml:/etc/authelia/config.yml -v /Users/amjadhamad/Desktop/authelia-master/dir:/var/lib/authelia clems4ever/authelia
The result is :
Unhandled rejection MongoNetworkError: failed to connect to server [mongo:27017] on first connect [MongoNetworkError: getaddrinfo ENOTFOUND mongo mongo:27017]
at Pool. (/usr/src/node_modules/mongodb-core/lib/topologies/server.js:505:11)
How can I solve this issue?
Thanks,

Hello @jad-47,
please follow the steps from the README. You should be able to deploy a complete working environment using docker-compose.
Thanks,


Using Jquery on codecept

Hello,
Is it posible to use Jquery in codecept to locate element. I personally don't like the yield I.grabTextFrom because it does not work inside a loop. I was wondering is jquery can be used here?
Thanks!

I was able to use jquery with executeScript();
=)

Is it posible to use Jquery in codecept to locate element.

I think you are trying to do some complex stuff which is not handled by default actions. No problem.
But in CodeceptJS tests should be written from a user's perspective. All complex technical stuff can be handled inside a helper. So if you require something custom, please write your own helper. And yes, there you can use executeScript or locate elements in a different manner of webdriverio

Hi Michael,
I am having trouble getting the grabbers to work with the yield. If I use
yield then the following code execution stops. Can you please help me
figure this out? Or give me an example where I can grab text and then
continue my code execution?
This post is related to that too:
https://github.com/Codeception/CodeceptJS/issues/47
This simple example does not work. Is this a bug in CodeceptJS? or am I
missing something?
Scenario('First Scenario', function* (I) {
let grabberResult = yield I.grabValueFrom('input[name=firstName]');
I.see('XKJSHJDSJXHJSKHXS'); //this should fail, but passes.
});
--
Arsalan Ahmed
Senior Software Developer
Email<EMAIL_ADDRESS>Tele: +50760041240
On Mon, Jan 11, 2016 at 4:31 PM, Michael Bodnarchuk <
<EMAIL_ADDRESS>wrote:

Is it posible to use Jquery in codecept to locate element.
I think you are trying to do some complex stuff which is not handled by
default actions. No problem.
But in CodeceptJS tests should be written from a user's perspective. All
complex technical stuff can be handled inside a helper. So if you require
something custom, please write your own helper
http://codecept.io/helpers/. And yes, there you can use executeScript
or locate elements in a different manner of webdriverio
—
Reply to this email directly or view it on GitHub
https://github.com/Codeception/CodeceptJS/issues/43#issuecomment-170696586
.

You don't

Thanks for answering. This example is not working:
'use strict';
Feature('Testing Begins');
Before((I) => {
I.resizeWindow(1500, 1000);
I.amOnPage('http://absolutenet.com');
});
Scenario('ANI testing', function*(I){
I.waitForText('bring your site to life');
I.amOnPage('http://www.absolutenet.com/');
let title = yield I.grabTitle();
console.info(title);
I.see('bogus text that is not there'); //this should give an error and not success.
});

Thanks. Bug is reproduced

Done in https://github.com/Codeception/CodeceptJS/commit/d68b2a734ac043b86f05dd512ec17826aef04cad


Move repo to the sweet-js organization

Since Sweet doesn’t have much attachment to Mozilla anymore, I’m thinking of transferring the sweet.js repo to the sweet-js organization.
Does anyone have strong opinions or warnings about the transfer process? My understanding is github sets up nice redirects and everything but are there any gotchas people know about?

+1


What is Reward?

Hello.
First of all, thank you for your public source.
I have a question.
I wonder what Reward means in this model.
Usually, the queue is Reward for other models, but I think this model is different.
What does Reward mean?

Hello. First of all, thank you for your public source. I have a question. I wonder what Reward means in this model. Usually, the queue is Reward for other models, but I think this model is different. What does Reward mean?

Hello. This is reward function
    def _get_reward(self):
        if self.time < 4:
            return 0

        self.r_w = 0.85 * self.waiting_time_float_av[-2] - self.waiting_time_float_av[-1]

        # if self.r_w < 0:
        #     self.r_w *= 1.5
        #
        # self.r_av.append(self.r_w)

        return self.r_w


PGN

Replay Games
Rewind Moves during game
Download PGN File
Show Past Games in Stats

Done :D

Download PGN File added.
Abandoning idea of other features.


demo.lua fails to run: cuDNN not found

The demo.lua not running after installing with Cuda and cuDNN. I had also installed 'luarocks install cudnn'
$ th demo.lua -mode denoise -inpath ../data/example/noisy
==> initializing...
/home/xhuv/torch/install/bin/luajit: /home/xhuv/torch/install/share/lua/5.1/trepl/init.lua:389: /home/xhuv/torch/install/share/lua/5.1/trepl/init.lua:389: /home/xhuv/torch/install/share/lua/5.1/trepl/init.lua:389: /home/xhuv/torch/install/share/lua/5.1/cudnn/ffi.lua:1603: 'libcudnn (R5) not found in library path.
Please install CuDNN from https://developer.nvidia.com/cuDNN
Then make sure files named as libcudnn.so.5 or libcudnn.5.dylib are placed in
your library load path (for example /usr/local/lib , or manually add a path to LD_LIBRARY_PATH)
Alternatively, set the path to libcudnn.so.5 or libcudnn.5.dylib
to the environment variable CUDNN_PATH and rerun torch.
For example: export CUDNN_PATH="/usr/local/cuda/lib64/libcudnn.so.5"
stack traceback:
[C]: in function 'error'
/home/xhuv/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
demo.lua:20: in main chunk
[C]: in function 'dofile'
...xhuv/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

Thanks for trying our algorithm! It seems like some library is still missing, and it might be cunn or cutorch.
Please try to install them with luarocks install cunn and luarocks install cutorch and run the command again.
Please let us know if it still doesn't work or if there is further questions!

Sorry it doesn't help, the error still persists although I had installed cuda and cudnn as well as cunn and cutorch

Then to make sure you have cudnn installed correctly, please try to run command th -lcudnn -e "print(cudnn.version)".

What's the version of cuda and cudnn that you are using?
It seems like an environment setup problem then.
You may run th -lcudnn -e "print(cudnn.version)" to make sure everything is correctly installed.
If you are using cuda8 and cudnn5, the first thing you may try is the previous command doesn't give you a reasonable result should be export CUDNN_ROOT="/usr/local/cuda-8.0/lib64/libcudnn.so.5" # you can maybe add this line into ~/.bashrc for future use
Similar issue has been reported here.


Feature/double hard debias

I added the new method to the API documentation and formatted the code.
I also leave you a couple of general comments on your code:

Try that what you explain in the docstring of the class method of is reflected in the code. That is to say, it has a similar order and the stages are clearly seen. Especially between the fit method and what you are explaining.
There is the convention that a method with a _ before its name indicates that this method is not "public" (that a user should not use it). Apply this to internal methods and document all others.
Use black to format the code and flake8 to format and check the code before uploading respectively.
Add a couple of examples of how to use your method. Base it on the WEAT API documentation for example.

The code comments will be provided in detail in the pr later.
That's it,
Thank you!


[SR-13229] Derivative function protocol witness SILGen verification failure

Previous ID
SR-13229

Radar
None

Original Reporter
@dan-zheng

Type
Bug

Status
Closed

Resolution
Duplicate

Additional Detail from JIRA

Votes
0

Component/s
Compiler

Labels
Bug, AutoDiff

Assignee
None

Priority
Medium

md5: 8c1c5d54937a6c1bd09b69b2b98624b1

is duplicated by:

SR-14140 Segmentation Fault. Protocol specializing function to @differentiable

Issue Description:
Reproducer:
import _Differentiation

protocol P {}

struct Tensor<Scalar>: Equatable {
 @differentiable(where Scalar: P)
 static func +(lhs: Self, rhs: Self) -> Self { return lhs }
}
extension Tensor: Differentiable where Scalar: P {}

protocol Addable: Differentiable {
 @differentiable
 static func +(lhs: Self, rhs: Self) -> Self
}
extension Tensor: Addable where Scalar: P {}

Verification failure:
$ swiftc sr-13229.swift
substitution map's generic signature: <Scalar>
callee's generic signature: <τ_0_0 where τ_0_0 : P>
SIL verification failed: Substitution map does not match callee in apply instruction: false
Verifying instruction:
     %4 = load [trivial] %1 : $*Tensor<τ_0_0>    // user: %10
     %5 = load [trivial] %2 : $*Tensor<τ_0_0>    // user: %10
     %6 = metatype $@thin Tensor<τ_0_0>.Type     // user: %10
     %9 = differentiable_function_extract [jvp] %8 : $@differentiable @convention(method) <τ_0_0> (Tensor<τ_0_0>, Tensor<τ_0_0>, @noDerivative @thin Tensor<τ_0_0>.Type) -> Tensor<τ_0_0> // user: %10
->   %10 = apply %9<τ_0_0>(%4, %5, %6) : $@convention(method) <τ_0_0 where τ_0_0 : P> (Tensor<τ_0_0>, Tensor<τ_0_0>, @thin Tensor<τ_0_0>.Type) -> (Tensor<τ_0_0>, @owned @callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (τ_0_0, τ_0_1) -> τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector>) // user: %11
     (%11, %12) = destructure_tuple %10 : $(Tensor<τ_0_0>, @callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (τ_0_0, τ_0_1) -> τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector>) // users: %13, %14
In function:
// AD__$s4main6TensorVyxGAA7AddableA2A1PRzlAaEP1poiyxx_xtFZTW_jvp_SSU
sil private [transparent] [thunk] [ossa] @AD__$s4main6TensorVyxGAA7AddableA2A1PRzlAaEP1poiyxx_xtFZTW_jvp_SSU : $@convention(witness_method: Addable) <τ_0_0 where τ_0_0 : P> (@in_guaranteed Tensor<τ_0_0>, @in_guaranteed Tensor<τ_0_0>, @thick Tensor<τ_0_0>.Type) -> (@out Tensor<τ_0_0>, @owned @callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> @out τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector>) {
// %0                                             // user: %13
// %1                                             // user: %4
// %2                                             // user: %5
bb0(%0 : $*Tensor<τ_0_0>, %1 : $*Tensor<τ_0_0>, %2 : $*Tensor<τ_0_0>, %3 : $@thick Tensor<τ_0_0>.Type):
  %4 = load [trivial] %1 : $*Tensor<τ_0_0>       // user: %10
  %5 = load [trivial] %2 : $*Tensor<τ_0_0>       // user: %10
  %6 = metatype $@thin Tensor<τ_0_0>.Type        // user: %10
  // function_ref static Tensor.+ infix(_:_:)
  %7 = function_ref @$s4main6TensorV1poiyACyxGAE_AEtFZ : $@convention(method) <τ_0_0> (Tensor<τ_0_0>, Tensor<τ_0_0>, @thin Tensor<τ_0_0>.Type) -> Tensor<τ_0_0> // user: %8
  %8 = differentiable_function [parameters 0 1] [results 0] %7 : $@convention(method) <τ_0_0> (Tensor<τ_0_0>, Tensor<τ_0_0>, @thin Tensor<τ_0_0>.Type) -> Tensor<τ_0_0> // user: %9
  %9 = differentiable_function_extract [jvp] %8 : $@differentiable @convention(method) <τ_0_0> (Tensor<τ_0_0>, Tensor<τ_0_0>, @noDerivative @thin Tensor<τ_0_0>.Type) -> Tensor<τ_0_0> // user: %10
  %10 = apply %9<τ_0_0>(%4, %5, %6) : $@convention(method) <τ_0_0 where τ_0_0 : P> (Tensor<τ_0_0>, Tensor<τ_0_0>, @thin Tensor<τ_0_0>.Type) -> (Tensor<τ_0_0>, @owned @callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (τ_0_0, τ_0_1) -> τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector>) // user: %11
  (%11, %12) = destructure_tuple %10 : $(Tensor<τ_0_0>, @callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (τ_0_0, τ_0_1) -> τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector>) // users: %13, %14
  store %11 to [trivial] %0 : $*Tensor<τ_0_0>    // id: %13
  %14 = convert_function %12 : $@callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (τ_0_0, τ_0_1) -> τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector> to $@callee_guaranteed (Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector) -> Tensor<τ_0_0>.TangentVector // user: %16
  // function_ref thunk for @escaping @callee_guaranteed (@unowned Tensor.TangentVector, @unowned Tensor.TangentVector) -> (@unowned Tensor.TangentVector)
  %15 = function_ref @$s4main6TensorVA2A1PRzlE13TangentVectorVyx_GA2GIegyyd_A3GIegnnr_AaDRzlTR : $@convention(thin) <τ_0_0 where τ_0_0 : P> (@in_guaranteed Tensor<τ_0_0>.TangentVector, @in_guaranteed Tensor<τ_0_0>.TangentVector, @guaranteed @callee_guaranteed (Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector) -> Tensor<τ_0_0>.TangentVector) -> @out Tensor<τ_0_0>.TangentVector // user: %16
  %16 = partial_apply [callee_guaranteed] %15<τ_0_0>(%14) : $@convention(thin) <τ_0_0 where τ_0_0 : P> (@in_guaranteed Tensor<τ_0_0>.TangentVector, @in_guaranteed Tensor<τ_0_0>.TangentVector, @guaranteed @callee_guaranteed (Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector) -> Tensor<τ_0_0>.TangentVector) -> @out Tensor<τ_0_0>.TangentVector // user: %17
  %17 = convert_function %16 : $@callee_guaranteed (@in_guaranteed Tensor<τ_0_0>.TangentVector, @in_guaranteed Tensor<τ_0_0>.TangentVector) -> @out Tensor<τ_0_0>.TangentVector to $@callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> @out τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector> // user: %18
  return %17 : $@callee_guaranteed @substituted <τ_0_0, τ_0_1, τ_0_2> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> @out τ_0_2 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector> // id: %18
} // end sil function 'AD__$s4main6TensorVyxGAA7AddableA2A1PRzlAaEP1poiyxx_xtFZTW_jvp_SSU'

The verification failure occurs for a protocol witness thunk generated by SILGenFunction::emitProtocolWitness, for a derivative function witness #Tensor."+"!jvp.SSU.<Self where Self : Addable>.
In SILGenFunction::emitProtocolWitness, witnessSubs (the witness substitution map) does not have the same generic signature as witnessFnRef (the result of getWitnessFunctionRef), which has additional differentiability requirements.

Just want to FYI that this is still not resolved


Bot Framework Composer fails with HTTP 502.5 process

Describe the bug
When deployed to azure using the provided script, the app service fails to launch with the following error:

Following the instructions for debugging this error, I found the following error on the server:
Error:
  An assembly specified in the application dependencies manifest (BotProject.deps.json) was not found:
    package: 'System.Private.ServiceModel', version: '4.5.0'
    path: 'runtimes/win/lib/netstandard2.0/System.Private.ServiceModel.dll'

Note that the bot launches and runs perfectly fine locally, this seems to be an issue somewhere between publishing and deploying it onto Azure
Version

I'm unsure if I'm using the right version here - I downloaded the repository when https://github.com/microsoft/BotFramework-Composer/commit/1a750e5800639f50b6c27df5e34153d2efc86eb7 was the latest commit
Browser
What browser are you using?

[X] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS
What operating system are you using?

[ ] macOS
[X] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Create bot from scratch on
Use publish scripts (create resources & deploy)
Visit app service URL
See error

Expected behavior
Expected the app service to launch without crashing

Hi @cwhitten yep - not sure what the underlying issue is here but I imagine it could have been some configuration error on my part.


remove k8s addons

[x] Installs cleanly on a fresh build of most recent master branch
[x] Upgrades cleanly from the most recent release
[x] Updates documentation relevant to the changes

nix fluentd, es, grafana, heapster, influxdb, kibana
download kubectl in k8s role
merge more of -master and -node roles into k8s role
move addons to k8s-master role

tested on aws. logs:
[centos@lb0-control-01 ~]$ kubectl cluster-info
Kubernetes master is running at http://<IP_ADDRESS>:8085
kubernetes-dashboard is running at http://<IP_ADDRESS>:8085/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

[centos@lb0-control-01 ~]$ kubectl get pods
NAME                                     READY     STATUS             RESTARTS   AGE
kube-apiserver-lb0-control-01            1/1       Running            0          10m
kube-apiserver-lb0-control-02            1/1       Running            0          10m
kube-apiserver-lb0-control-03            1/1       Running            0          10m
kube-controller-manager-lb0-control-03   1/1       Running            0          11m
kube-dns-v8-zqkhf                        2/2       Running            0          11m
kube-podmaster-lb0-control-01            2/2       Running            0          11m
kube-podmaster-lb0-control-02            2/2       Running            0          11m
kube-podmaster-lb0-control-03            2/2       Running            0          10m
kube-proxy-lb0-control-01                1/1       Running            0          11m
kube-proxy-lb0-control-02                1/1       Running            0          11m
kube-proxy-lb0-control-03                1/1       Running            0          11m
kube-proxy-lb0-kubeworker-001            1/1       Running            0          5m
kube-scheduler-lb0-control-03            1/1       Running            0          11m
kubernetes-dashboard-4coch               1/1       Running            0          11m

UI appears to be working as well. k8s and nodeport services healthy.

Looks good.

@Zogg Thanks for the review!


feature: supernode support download remote file by setting tls config.

Ⅰ. Describe what this PR did
We have a private harbor registry which support https with self-signed certification.I config ca path in /etc/dragonfly/dfdaemon.yml，but dfget does not pass it to supernode. So, supernode get X509 error when download from remote.
I add two dfget parameters "--insecure" and "--cacert", set "--insecure" to make supernode skip verify, and set
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

dfget command add two cmd flags,  "--insecure" and "--cacert".

dfdaemon set "--insecure" and "--cacert" by dfdaemon config "hijack_https.hosts.insecure" and "hijack_https.hosts.certs".

dfget set "--insecure" to make supernode skip verify when request remote source.

dfget set "--cacert" to pass local ca info to supernode during registry, then supernode use it as rootcas when request remote source.

The CI has failed. And I make a copy here for you to handle it more conveniently.
ci/circleci: gocode-check-via-gometalinter-swagger
apis/types/task_info.go:1::warning: file is not gofmted with -s (gofmt)
common/util/http_util.go:1::warning: file is not gofmted with -s (gofmt)
dfdaemon/config/config.go:1::warning: file is not gofmted with -s (gofmt)
dfdaemon/downloader/dfget/dfget.go:1::warning: file is not gofmted with -s (gofmt)
supernode/daemon/mgr/cdn/downloader.go:1::warning: file is not gofmted with -s (gofmt)
supernode/daemon/mgr/task/manager_util.go:1::warning: file is not gofmted with -s (gofmt)
supernode/server/0.3_bridge.go:1::warning: file is not gofmted with -s (gofmt)
common/util/http_util.go:222:1:warning: exported function HTTPGetWithTls should have comment or be unexported (golint)
common/util/http_util.go:222:6:warning: func HTTPGetWithTls should be HTTPGetWithTLS (golint)
apis/types/task_info.go:1::warning: file is not goimported (goimports)
common/util/http_util.go:1::warning: file is not goimported (goimports)
dfdaemon/config/config.go:1::warning: file is not goimported (goimports)
dfdaemon/downloader/dfget/dfget.go:1::warning: file is not goimported (goimports)
dfget/core/regist/register.go:1::warning: file is not goimported (goimports)
supernode/daemon/mgr/cdn/downloader.go:1::warning: file is not goimported (goimports)
supernode/daemon/mgr/task/manager_util.go:1::warning: file is not goimported (goimports)
supernode/server/0.3_bridge.go:1::warning: file is not goimported (goimports)

ci/circleci: unit-test-golang
# github.com/dragonflyoss/Dragonfly/supernode/daemon/mgr/cdn [github.com/dragonflyoss/Dragonfly/supernode/daemon/mgr/cdn.test]
supernode/daemon/mgr/cdn/downloader_test.go:104:27: not enough arguments in call to cm.download
	have (context.Context, string, string, map[string]string, int, int64, int32)
	want (context.Context, string, string, map[string]string, *tls.Config, int, int64, int32)
FAIL	github.com/dragonflyoss/Dragonfly/supernode/daemon/mgr/cdn [build failed]
Makefile:100: recipe for target 'unit-test' failed

In fact, the supernode will interact with the source URL for three times:

getHTTPFileLength: https://github.com/dragonflyoss/Dragonfly/blob/master/supernode/daemon/mgr/task/manager_util.go#L57
detect cache and ensure whether it's expired: https://github.com/dragonflyoss/Dragonfly/blob/master/supernode/daemon/mgr/cdn/cache_detector.go#L52
download from source URL:
https://github.com/dragonflyoss/Dragonfly/blob/master/supernode/daemon/mgr/cdn/downloader.go#L21

So it's not enough to only add tlsConfig for the step to download.  😄

Codecov Report

Merging #735 into master will decrease coverage by 0.06%.
The diff coverage is 31.42%.

@@            Coverage Diff             @@
##           master     #735      +/-   ##
==========================================
- Coverage   46.84%   46.78%   -0.07%
==========================================
  Files         110      110
  Lines        6321     6353      +32
==========================================
+ Hits         2961     2972      +11
- Misses       3125     3143      +18
- Partials      235      238       +3

Impacted Files
Coverage Δ

dfget/types/register_request.go
0% <ø> (ø)
:arrow_up:

dfget/config/config.go
91.76% <ø> (ø)
:arrow_up:

common/util/http_util.go
57.52% <0%> (-0.78%)
:arrow_down:

supernode/daemon/mgr/cdn/cache_detector.go
6.15% <0%> (ø)
:arrow_up:

supernode/daemon/mgr/cdn/manager.go
19.31% <0%> (ø)
:arrow_up:

supernode/server/0.3_bridge.go
0% <0%> (ø)
:arrow_up:

supernode/daemon/mgr/cdn/downloader.go
63.15% <100%> (ø)
:arrow_up:

cmd/dfget/app/root.go
63.31% <100%> (+0.88%)
:arrow_up:

dfget/core/regist/register.go
91.57% <14.28%> (-6.15%)
:arrow_down:

supernode/daemon/mgr/task/manager_util.go
28.26% <57.14%> (+0.71%)
:arrow_up:

... and 1 more

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 7bfa08f...f3d90ee. Read the comment docs.

Thanks a lot for your work. That is very helpful.  @zcc35357949
While I am wondering if we could encapsulte tls.Config into an HTTP client. And we can use a client to call the backend. Otherwise, in every function which will call backend, it will pass the parameter tls.Config, which makes the code much more redudant.

client

Thanks a lot for your work. That is very helpful. @zcc35357949
While I am wondering if we could encapsulte tls.Config into an HTTP client. And we can use a client to call the backend. Otherwise, in every function which will call backend, it will pass the parameter tls.Config, which makes the code much more redudant.

Thanks a lot for your work. That is very helpful. @zcc35357949
While I am wondering if we could encapsulte tls.Config into an HTTP client. And we can use a client to call the backend. Otherwise, in every function which will call backend, it will pass the parameter tls.Config, which makes the code much more redudant.

ok, maybe I can try to save ca info to local instead of in task info in memory.
In fact, different remote host may use different tls.Config, client should load ca info by host.

Thanks a lot for your work. That is very helpful. @zcc35357949
While I am wondering if we could encapsulte tls.Config into an HTTP client. And we can use a client to call the backend. Otherwise, in every function which will call backend, it will pass the parameter tls.Config, which makes the code much more redudant.

Thanks for your suggestions.
To avoid large change in supernode, I use a client that cached tls config, and apply tls config when do request.

Thanks a lot for your work. That is very helpful. @zcc35357949
While I am wondering if we could encapsulte tls.Config into an HTTP client. And we can use a client to call the backend. Otherwise, in every function which will call backend, it will pass the parameter tls.Config, which makes the code much more redudant.

I totally agree with you. And how about add a http_client under the dir supernode/ which wraps the apis that interact with the source.  @allencloud @lowzj @zcc35357949  WDYT?

Thanks a lot for your work. That is very helpful. @zcc35357949
While I am wondering if we could encapsulte tls.Config into an HTTP client. And we can use a client to call the backend. Otherwise, in every function which will call backend, it will pass the parameter tls.Config, which makes the code much more redudant.

I totally agree with you. And how about add a http_client folder under the dir supernode/ which wraps the apis that interact with the source. @allencloud @lowzj @zcc35357949 WDYT?

Related interfaces:

Download
GetHTTPFileLength
IsExpired
IsSupportRange
these apis do not have any direct dependency with supernode, although only supernode is using them now. I'm not sure whether dfclient will use them in future.

LGTM.

Could you help to check if we need to update some docs? @Starnop @lowzj

Could you help to check if we need to update some docs? @Starnop @lowzj

Yes we need. And @zcc35357949 will do it later.


feat(parca): add GRPC ingress

I was toying with this, it would allow to use the GRPC protocol to communicate with the demo:
$ grpcurl demo.parca.dev:443 grpc.health.v1.Health/Check
{
  "status": "SERVING"
}

I saw this client failing with HTTP 415 (Unsupported Media Type), it's in Scaleway, but in another account I think (parca-load in Pyrra's account?):
<IP_ADDRESS> - - [31/May/2023:19:55:34 +0000] "POST /parca.query.v1alpha1.QueryService/Query HTTP/2.0" 415 63 "-" "grpc-go-connect/1.1.0 (go1.18.10)" 98 0.001 [parca-parca-http] [] <IP_ADDRESS>:7070 72 0.000 415 93c8ab7948a074a26b2435c8cb1808db

@metalmatze should it use GRPC-Web under /api/ like the UI does? Or could we switch it to regular GRPC?

diff
===== networking.k8s.io/Ingress parca/parca-grpc ======
diff --git a/tmp/argocd-diff2343086198/parca-grpc-live.yaml b/tmp/argocd-diff2343086198/parca-grpc
index e69de29..8c99a97 100644
--- a/tmp/argocd-diff2343086198/parca-grpc-live.yaml
+++ b/tmp/argocd-diff2343086198/parca-grpc
@@ -0,0 +1,72 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  annotations:
+    argocd.argoproj.io/tracking-id: scaleway-parca-demo-parca:networking.k8s.io/Ingress:parca/parca-grpc
+    kubernetes.io/ingress.class: nginx
+    nginx.ingress.kubernetes.io/backend-protocol: GRPC
+  labels:
+    app.kubernetes.io/component: observability
+    app.kubernetes.io/instance: parca
+    app.kubernetes.io/name: parca
+    app.kubernetes.io/version: v0.17.0
+  name: parca-grpc
+  namespace: parca
+spec:
+  rules:
+  - host: demo.parca.dev
+    http:
+      paths:
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /grpc.health.v1.Health
+        pathType: Prefix
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /grpc.reflection.v1alpha.ServerReflection
+        pathType: Prefix
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /parca.debuginfo.v1alpha1.DebuginfoService
+        pathType: Prefix
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /parca.profilestore.v1alpha1.AgentsService
+        pathType: Prefix
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /parca.profilestore.v1alpha1.ProfileStoreService
+        pathType: Prefix
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /parca.query.v1alpha1.QueryService
+        pathType: Prefix
+      - backend:
+          service:
+            name: parca
+            port:
+              name: http
+        path: /parca.scrape.v1alpha1.ScrapeService
+        pathType: Prefix
+  tls:
+  - hosts:
+    - demo.parca.dev
+    secretName: demo-parca-dev-tls

@metalmatze Actually it would be nice to support both GRPC and GRPC-Web, but NGINX does not support that (kubernetes/ingress-nginx6297 (comment)).
I suggest we replace ingress-nginx by an Envoy-based ingress controller like Contour, it should have better support for GRPC: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/other_protocols/grpc.html
What do you think?

parca-load actually uses connect-go to speak gRPC with Parca:
https://github.com/parca-dev/parca-load/blob/c2c7a08ddb99c9ca40952895ef24907bd11e03b4/go.mod#L6
It would be indeed great to support gRPC, gRPC-web and connect-go I guess. If switching to something like Contour makes it easier, we can definitely try those. I know about them since forever but never actually used Envoy or Contour. Happy to try!

I know about them since forever but never actually used Envoy or Contour. Happy to try!

Same, I have been looking for a good excuse to try them

So I tried Contour, but nothing under /api works, we are blocked by this issue :disappointed::

Contour configures Envoy to automatically convert gRPC-Web HTTP/1 requests to gRPC over HTTP/2 RPC calls to an upstream service. This is a convenience addition to make usage of gRPC web application client libraries and the like easier.
Note that you still must provide configuration of the upstream protocol to have gRPC-Web requests converted to gRPC to the upstream app. If your upstream application does not in fact support gRPC, you may get a protocol error. In that case, please see this issue.

https://projectcontour.io/docs/1.25/guides/grpc/#grpc-web
A quick sum up of what works and what does not in each cases:

Ingress-NGINX
Ingress-NGINX (this PR)
Contour

gRPC on /
:negative_squared_cross_mark: (does not expect gRPC)
:heavy_check_mark:
:heavy_check_mark:

gRPC-Web on /
:heavy_check_mark:
:negative_squared_cross_mark: (expects gRPC)
:heavy_check_mark: (unnecessarily converted to gRPC)

gRPC-Web on /api
:heavy_check_mark:
:heavy_check_mark:
:negative_squared_cross_mark: (converted to gRPC)

Envoy still seems like a good solution, but Contour does not configure it in a way that would work for us at the moment.

I apologize for blaming these reserve proxies for an issue that was on our end :see_no_evil:, full gRPC and gRPC-Web support should be fixed once parca-dev/parca#3352 is released!


MySQL Plugin not support application using MysqlDataSource

Please answer these questions before submitting your issue.
What version of sky-walking are you using?
v3.2.6
What version of your OS?
Windows 10
What version of your JRE?
1.8.0_152
What company or project?
What did you do?
I use skywalking v3.2.6 to monitor my demo application,  found that MySQL database operations did not appear in the Tracing records. Check the agent log, found this exception:
ERROR 2017-12-21 15:16:04 InstMethodsInter :  class[class com.mysql.jdbc.JDBC4Connection] before method[close] intercept failure
java.lang.NullPointerException
	at org.skywalking.apm.plugin.jdbc.ConnectionServiceMethodInterceptor.beforeMethod(ConnectionServiceMethodInterceptor.java:47)
	at org.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:81)
	at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java)
	at com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection.close(MysqlPooledConnection.java:183)
	at com.mysql.jdbc.jdbc2.optional.JDBC4MysqlXAConnection.close(JDBC4MysqlXAConnection.java:46)
...

In Class ConnectionServiceMethodInterceptor‘s code, line 46-47 is:
    ConnectionInfo connectInfo = (ConnectionInfo)objInst.getSkyWalkingDynamicField();
    AbstractSpan span = ContextManager.createExitSpan(connectInfo.getDBType() + "/JDBI/Connection/" + method.getName(), connectInfo.getDatabasePeer());

Here it did not get connectInfo object,  got a NullPointerException. Take a breakpoint at org.skywalking.apm.plugin.jdbc.JDBCDriverInterceptor, then debug application, found it not reach this breakpoint. I judge is not intercepted Jdbc driver's methods.
My demo application uses MysqlXADataSource, which is an extension of MysqlDataSource. Look at MysqlDataSource's code, instead of using jdbc.driver, it uses jdbc.NonRegisteringDriver:
public class MysqlDataSource extends ConnectionPropertiesImpl implements DataSource, Referenceable, Serializable {
    static final long serialVersionUID = -5515846944416881264L;
    protected final static NonRegisteringDriver mysqlDriver;
    static {
        try {
            mysqlDriver = new NonRegisteringDriver();
        } catch (Exception E) {
            throw new RuntimeException("Can not load Driver class com.mysql.jdbc.Driver");
        }
    }
...
}

SkyWalking  mysql agent plugin's Class DriverInstrumentation not match com.mysql.jdbc.NonRegisteringDriver, add it to byMultiClassMatch method call:
return byMultiClassMatch("com.mysql.jdbc.Driver", "com.mysql.cj.jdbc.Driver", "com.mysql.jdbc.NonRegisteringDriver");

The problem is solved. No longer throw an exception, operation of database show in tracing records.

@jjtyro Look like you already know how to resolve this. Can you send a pull request to fix this issue?

@wu-sheng  A little bit of code changes，a pull request has been sent.


better merge dict

improves merging of dictionaries

dont overwrite if new value is empty
merge lists instead of replacing

remove duplicate entries in list

sample usage here https://github.com/OpenVoiceOS/ovos_skill_manager/blob/master/ovos_skills_manager/appstores/github.py#L157

Here's a commit that adds all() and fixes a possible (probable) KeyError, fyc

Is this meant to be in-place on the base dict, or to return a new dict? Right now it's doing an in-place replacement and then returning the dict. Seems to me that if it operates on a dict, it should return nothing, whereas if it returns a dict it should make a deep copy and leave the original alone. In the latter case, reassigning base would still be as trivial as base = merge_dict(base, delta)

it modifies in place. but i like returning it because it makes code more readable

After playing with it, I've just realized that the strange behavior I'm seeing is because no_dupes defaults to True. I reckon it should probably be False, in that if I've set merge_lists I probably expect it to add them pythonically. The output of list(set(list)) isn't necessarily intuitive:
>>> bd['four']
['foo', 'bar', 'baz', 4, 5, 6, 'foo']
>>> list(set(bd['four']))
['bar', 5, 4, 6, 'foo', 'baz']

None of that is in any kind of sane order. There might be a better solution using collections.

true, order is not assured using list(set(...)), should probably do that in a way that retains order

added tests; commented out the one for no_dupes because of the order thing


translate universities.csv

come up with list of Dutch Universities

Check on my knime workflow how I extracted universities and institutions from wikidata. Maybe that helps you:
https://github.com/softwaresaved/international-survey/blob/master/survey_creation/de_17/resources/de_17_resources.knwf
Download Knee from http://knime.org/ and import my workflow.

Thanks!


Enhance UX by letting user press "Enter" key to run the search instead of having to press the "Search" button

Hi, I have a suggestion to improve the user experience of your web app.
Issue: Currently user has to explicitly press the "Search" button to initiate the search. That is one extra click + press "Tab" does not move the focus to the "Search" button.
My Suggestion: Improve the user experience by making the search work when the "Enter" key is pressed. Also moving the focus to "Search" button when "Tab" key is pressed.
Would love your thoughts on this.

yes this make sense go for it @original-subbaman

feature has been implemented


trafficSimulator module not found

Traceback (most recent call last):   File "e:\trafficSimulator-main\src\examples\twoway_intersection.py", line 2, in <module>     from trafficSimulator import * ModuleNotFoundError: No module named 'trafficSimulator'
I get this error when I tried to execute twoway_intersection.py

I solved it. I moved the trafficSimulator folder to the examples folder and it works just fine.


fix(Python): Support orphaned shapes, update Config shape generation

Issue #, if available:
Description of changes:
Python:

Supported "orphaned" shapes (shapes with no graph connection to the LocalService)
Refactor LocalService Config shape generation from its own logic to "normal" shape generation

Before, Config shapes were "orphaned" and could not be discovered by normal shape generation. I wrote manual generation for Config shapes.
Now, Config shape generation is more closely tied to normal shape generation, which gets it more fully-featured shape generation (constraints, as/from_dict)

Don't use forward references for boto3 client typehints

Check out this MPL PR for sample generated code: https://github.com/aws/aws-cryptographic-material-providers-library/pull/831
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Are you dependent on an OrphanedShapes test model to get added to test these changes?

I don't think so, but let me know if you disagree.
I built this PR into the MPL and DBESDK, and both of those projects are still passing.

MPL PR: https://github.com/aws/aws-cryptographic-material-providers-library/pull/831
DBESDK PR doesn't exist. This project only exists on my local right now.

This (plus the MPL PR) is ideally the last PR I'll to land before I release the Python MPL, so I'm trying to push any non-essential work out until after that lands.
I'm carving out some time to handle these post-launch fast follows, and I added OrphanedShapes TestModel to that list


immich: 1.121.0 -> 1.122.0

https://github.com/immich-app/immich/releases/tag/v1.122.0

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg build immich.passthru.tests

@ofborg build immich.passthru.tests

@ofborg build immich.passthru.tests

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 362233

x86_64-linux

:white_check_mark: 4 packages built:

immich
immich-cli
immich-machine-learning
immich-machine-learning.dist

There has already been another patch release, that's why it makes sense to wait a few days for things to settle


how swagger generation could look like

We currently reference Weldr API documentation as a source of information for our own API. As we will build our own API (for the hosted version) it would be nice to already have a tool for documenting it. In this PR I created a small PoC how go-swagger could be used to generate OpenAPI 2.0 docs for the RCM API.
It is not complete, just to give an idea how it could look like.
More info:
https://github.com/go-swagger/go-swagger
https://swagger.io/

Interesting. Can we see the sample output anywhere?

Interesting. Can we see the sample output anywhere?

Yes, it's the swagger.yaml or do you mean the generated website?

I meant the website :)

I'm pretty sure there are plenty of options, but the easiest on is to copy-paste the yaml here:
https://editor.swagger.io/

Thanks!

At first glance this looks pretty nice. Maybe others have other ideas or alternatives, but it seems to me that we do want something along these lines.

By the way, @msehnout there appeared to be some error in the yaml, at least the page you linked to complained.

I don't yet understand the first error but I expect it to be sth like missing info about the whole API. The second one is just complaining that $ref: '#/responses/errorReason' does not point to an object definition.
My primary intention here was to showcase as soon as possible and discuss before I go further.

Makes sense!

I think swagger is widely accepted these days and it looks very nice, so I will gladly accept it. :)

Nice! How does this look in go doc output? Does it recognize the markup?

Nice! How does this look in go doc output? Does it recognize the markup?

It displays the comment as usual:
$ go doc ./internal/rcm
package rcm // import "github.com/osbuild/osbuild-composer/internal/rcm"

Package rcm RCM API for osbuild-composer

It's primary use case is for the RCM team. As such it is driven solely by
their requirements.

Version: 1

swagger:meta

type API struct{ ... }
    func New(logger *log.Logger, store *store.Store, rpmMetadata rpmmd.RPMMD) *API

By the way, @msehnout there appeared to be some error in the yaml, at least the page you linked to complained.

I've fixed those errors, it was fairly straight forward.

I made the PR ready for review. The commit now includes full specification of the RCM API.

I don't know much about swagger yet. I have a couple of preliminary questions:
1. swagger seems to support generating the OpenAPI specs from source, as well as generating source from OpenAPI specs. Why did you choose the former?

Because the code is already written. We can try to generate the code for our next API if we want to or we can experiment more with RCM API. Anyway both should go to separate PR.

2. Why is the spec committed when it is generated from the source?

At first it was because I wanted to show it to you, then I thought it would be useful for website generation is osbuild.github.io repo, but it can as well be created there.

3. Why is this generating OpenAPI 2.0 specs, when 3.0 seems to be the current version.

It seems go-swagger is not going to support it due to the specs being too complicated: https://github.com/go-swagger/go-swagger/issues/1122 , but 2.0 seems to be sufficient for our current needs.

4. What is the best way to obtain the `swagger` binary?

To download their container and run it with podman.
https://github.com/swagger-api/swagger-codegen#public-pre-built-docker-images

swagger seems to support generating the OpenAPI specs from source, as well as generating source from OpenAPI specs. Why did you choose the former?

Because the code is already written. We can try to generate the code for our next API if we want to or we can experiment more with RCM API. Anyway both should go to separate PR.

Heh, I see. What would be the ideal model, though? It is hard to assess the value of this PR without knowing the direction this effort is going to.

Why is the spec committed when it is generated from the source?

At first it was because I wanted to show it to you, then I thought it would be useful for website generation is osbuild.github.io repo, but it can as well be created there.

In general, I'd say not to include anything that cannot be recreated again. If there is a reason to commit it, we need to make sure that it stays in sync, like we do with go vendoring in tools/prepare-source.sh.

What is the best way to obtain the swagger binary?

To download their container and run it with podman.
https://github.com/swagger-api/swagger-codegen#public-pre-built-docker-images

These are not working for me at all when I run them like you do in the Makefile here:
$ podman run --rm swaggerapi/swagger-codegen-cli generate spec --scan-models --output=docs/rcm-api.yaml
Exception in thread "main" io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameters: [spec, --scan-models]
	at io.airlift.airline.Cli.validate(Cli.java:148)
	at io.airlift.airline.Cli.parse(Cli.java:116)
	at io.airlift.airline.Cli.parse(Cli.java:97)
	at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:35)

$ podman run --rm swaggerapi/swagger-codegen-cli
usage: swagger-codegen-cli <command> [<args>]

The most commonly used swagger-codegen-cli commands are:
    config-help   Config help for chosen lang
    generate      Generate code with chosen lang
    help          Display help information
    langs         Shows available langs
    meta          MetaGenerator. Generator for creating a new template set and configuration for Codegen.  The output will be based on the language you specify, and includes default templates to include.
    validate      Validate specification
    version       Show version information

See 'swagger-codegen-cli help <command>' for more information on a specific
command.

$ podman run --rm swaggerapi/swagger-codegen-cli help spec
Unknown command spec

I think there are too many open questions to take this as it is.
In addition, there are some nits in the code itself: the Makefile target should depend on the file and the rule seems useless to me if the official way to run this is through the container. Also, the documentation comments use a different format.

Heh, I see. What would be the ideal model, though? It is hard to assess the value of this PR without knowing the direction this effort is going to.

The ideal model is the one we agree on. Some prefer writing code, some prefer generating it and I don't think there is a single truth here.
I, personally, prefer to write code and generate docs from it.

In general, I'd say not to include anything that cannot be recreated again. If there is a reason to commit it, we need to make sure that it stays in sync, like we do with go vendoring in tools/prepare-source.sh.

Sure, that's not the most important thing to discuss here. Let's focus on the other questions.

These are not working for me at all when I run them like you do in the Makefile here:

Sorry I cannot reproduce :-(, I'm running on mac and my Linux machine is in the office.

In addition, there are some nits in the code itself: the Makefile target should depend on the file

I agree

and the rule seems useless to me if the official way to run this is through the container.

You can create an alias, but again not super important at this point. We can as well just create a CI to generate it for us and not care about client machines at  all.

Also, the documentation comments use a different format.

Yeah, that is indeed unfortunate and hard to believe, but that's what the documentation suggests.
Before we dive further into this discussion, what do we agree on?

We want documentation for our REST API
We want to use OpenAPI specification (be it 2.0 or 3.0)
Go-swagger fits our needs
Let's find a different generator or write our own

Closing this in favor of #345


Add an associated constant giving the number of bits

Thanks for the PR @glandium
Do you mind explaining when you find this constant usefull?

I'm currently thinking this Trait would allow implementing the const and keeping this crate similar to the stlib types. Would this be a satisfying solution for you @glandium ?
This has been talked about in phil-opp/rust-bit-field#14

fair enough

closing in favor of phil-opp/rust-bit-field#14


fix: add important properties back to project, import from .props

Snyk

Job started: 12 November 2021, 02:52:26
Processed HaloSPV3/SPV3-Loader from GitHub
Found ./src/SPV3.csproj [main]  | No target frameworks detected in ./src/SPV3.csproj
[main] View project

1 project created
Job completed: 12 November 2021, 02:52:27

probably fixed in 880a0a74


No HTTP requests showing either in logcat or elastic dashboard

Hi, we don't use the gradle plugin but we followed the instruction given here. So far we don't see any HTTP logs either in logcat nor in the elastic dashboard. We can see the logs regarding screen views (activity and fragment). What are we missing regarding the HTTP calls?
Here is what we have at the moment:
@Singleton
@ApplicationScope
class ObservabilityAgent @Inject constructor(
    application: Application
) {
    init {
        val connectivity = Connectivity.withSecretToken(BuildConfig.ELASTIC_SERVER_URL, BuildConfig.ELASTIC_SERVICE_TOKEN)
        val loggingPolicy = LoggingPolicy.enabled(LogLevel.TRACE)

        val config = ElasticApmConfiguration
            .builder()
            .setLibraryLoggingPolicy(loggingPolicy)
            .setDeploymentEnvironment(BuildConfig.ELASTIC_SERVICE_ENV)
            .setServiceName(BuildConfig.ELASTIC_SERVICE_NAME)
            .setServiceVersion(BuildConfig.ELASTIC_SERVICE_VERSION)
            .setSampleRate(0.5)
            .build()

        ElasticApmAgent.initialize(application, config, connectivity)
    }
}

and in our OkHttpClient:
private fun retrofit(adapter: HttpClientAdapter): Retrofit {
        val builder = okHttpClient.newBuilder()
            .addInterceptor(PlatformInterceptor())
            .addNetworkInterceptor(LogsInterceptor.newInstance(application))

        if (!builder.interceptors().contains(OkHttp3Singletons.CALLBACK_CONTEXT_INTERCEPTOR)) {
            builder.interceptors().add(0, OkHttp3Singletons.CALLBACK_CONTEXT_INTERCEPTOR);
            builder.interceptors().add(1, OkHttp3Singletons.RESEND_COUNT_CONTEXT_INTERCEPTOR);
            builder.interceptors().add(2, OkHttp3Singletons.CONNECTION_ERROR_INTERCEPTOR);
        }
        if (!builder.networkInterceptors().contains(OkHttp3Singletons.TRACING_INTERCEPTOR)) {
            builder.addNetworkInterceptor(OkHttp3Singletons.TRACING_INTERCEPTOR);
        }

        val client = builder.build()

        return Retrofit.Builder()
            .baseUrl(BuildConfig.WEB_SERVICE_BASE_URL)
            .client(client)
            .addConverterFactory(adapter.converter)
            .build()
}

Hi @baudouxbenjamin
It seems like your code is correct, so I would check the following:

Please make sure you've called ElasticApmAgent.initialize before making any HTTP requests using the Retrofit instance that uses the customized okhttp client. This is because ElasticApmAgent.initialize sets the static GlobalOpenTelemetry instance, which is later used by the OkHttp3Singletons.TRACING_INTERCEPTOR to create the HTTP spans, and the order matters because if the GlobalOpenTelemetry instance is accessed before ElasticApmAgent.initialize is called, then your okhttp client will get a noop OpenTelemetry instance.
The type of signal that we use to send HTTP telemetry is span, which are not displayed as logs in Kibana but rather as APM transactions. You can find your app's transactions by navigating to Observability/APM -> [your-app-name] -> Transactions as shown below:

I hope it helps.

Hi @LikeTheSalad
Thanks for your quick response. I can see some transactions in the dashboard. Anyway to also see them in my logcat directly from Android Studio to make sure everything works fine without the need to wait for the events to start showing in the dashboard?

@LikeTheSalad I moved the ElasticApmAgent.initialize in first position in my application onCreate and I can now see the logs in logcat 🎉  Thank you !

Me again, sorry! Is there any way to rename the transactions name? For now everything is under GET. I'd like to have my transactions named GET/my-service.be/data for example.

Unfortunately it's not possible at the moment, although it looks like a good feature request for the OTel Android project. If you don't mind creating an issue for it in there, I can bring it up in the next OTel Android sig meeing.


where is dataframe dataset

Hi,
The dataframe dataset has already been merged into burn and is demonstrated in burns book:

But I cannot find it in burn's docs and examples, where is it ?

Hello,
The code is separated in differents crates.
You Can find the dataset crate under the crates folder:  https://github.com/tracel-ai/burn/tree/main/crates%2Fburn-dataset

Right now there are no examples which make use of the DataframeDataset (which is under the dataframe feature flag for the dataset module).
I agree that it would be nice to have at least a snippet for its usage. I'll convert this issue to track this addition.

Yeah it'd be great if we have example. Meanwhile you can see some basic tests:
https://github.com/tracel-ai/burn/blob/main/crates/burn-dataset/src/dataset/dataframe.rs


Extension for patient profession.

Simple extension for patient profession.
Do you think system is correct?

There is a full implementation guide available for Occupational Data in healthcare. http://hl7.org/fhir/us/odh/

There is a full implementation guide available for Occupational Data in healthcare. http://hl7.org/fhir/us/odh/

Siellä esimerkiksi tuo http://hl7.org/fhir/us/odh/StructureDefinition-odh-PastOrPresentJob.html

Do we need that comprehensive profile for this use case? if the need is just to present recent occupation in Hilmo format, then the ODH profile is a bit overwhelming.
Of course if there is a need for present occupational data in more comprehensive way, then ODH profiles are good benchmarks.
What do you think @mikajylha?


Mccalluc/catch another exception

@scottx611x : going ahead and merging this myself: Catch another error, and bump the version number.


How to change worksheet views using the stream API?

I would like to add frozen views to a worksheet created using the stream API. However, the following code doesn't work.
  const workbook = new Excel.stream.xlsx.WorkbookWriter({
    filename: 'output.xlsx',
  });

  const worksheet = workbook.addWorksheet('test');

  worksheet.views = {
    state: 'frozen',
    ySplit: 2,
    xSplit: 2,
  };

  worksheet.addRow([1, 2, 3]);

  worksheet.commit();
  workbook.commit();

While the row with numbers is added correctly, the worksheet is without any frozen columns.

Hi,
try assigning the property .view as an array, like the example:
views: [         { zoomScale: 87, zoomScaleNormal: 100, state: 'frozen', ySplit: 4 }       ]
i think you can do like this too:
  let sheet = workBook.addWorksheet('Estoque', {       views: [         { zoomScale: 87, zoomScaleNormal: 100, state: 'frozen', ySplit: 4 }       ]     });

Hi @abmj1979, the second way you listed works, thanks a lot for your help.


SwaySwap MVP

[x] fuel-core: release fuel-core with coin selection API (v0.3.2) @Voxelot (https://github.com/FuelLabs/fuel-core/pull/178)
[x] fuel-core: run on the cloud @Voxelot
[x] fuel-core: SSL cert/ports @Voxelot
[x] fuel-core: mark coins as spent when tx runs @Voxelot
[x] fuels-ts: integrate with the coin selection API (check with JC) @luizstacio
[ ] #20
[x] fuels-ts: generate secret key, sign txs @luizstacio
[x] frontend: very simple web wallet using the above TS SDK @luizstacio (https://github.com/FuelLabs/swayswap-demo/pull/6)
[x] frontend: faucet: zero-input-one-output tx that gives user some coins @luizstacio
[ ] #17
[x] frontend: github pages integration @luizstacio @adlerjohn #16
[x] frontend: drop-down @eureka-cpu (#8)
[x] language: make Result work @sezna @emilyaherbert

[x] https://github.com/FuelLabs/sway/issues/814#issuecomment-1043455147 (nice to have)
[x] https://github.com/FuelLabs/sway/issues/308
[x] implement if lets (https://github.com/FuelLabs/sway/pull/815)
[x] add size_of that hooks in to the compiler and gets the size of the type in bytes (low prio) (https://github.com/FuelLabs/sway/pull/818)
[x] json abi needs structs that are logged (low prio)

[ ] stdlib: Result unwrap() function @adlerjohn (https://github.com/FuelLabs/sway-lib-std/pull/47)

@Voxelot is this up to date, is there anything blocking SwaySwap from the client team currently?


Hii does anyone knows how this map function works?

I saw this map function on the web anyone knows what it means?
.map(x -> x == 0 ? 1 : 0)

hi! its equivalent to
if x == 0:
return 1
else:
return 0


[WIP] Voodoo updates

Cosmetic changes

move the metagen script 1 level up.
rearrange code to improve visibility into script steps.
make linter happy

+1


Ability to set audio sample rate/bits/channels

Implements martindevans#42
I have chosen to avoid breaking change therefore each method has the sample rate/bits/channels as optional parameters where the defaults are the constants.
Developers should only need to instantiate a BasicMumbleProtocol and possibly set those parameters here.

Sorry for my slow response on this, I'll try to get to it this weekend :)

Hi Martin, here are the requested changes.

The merge and revert is messing things up with the diff view on github - it's showing the state as removed, even though it was never added, very confusing! Could you rebase this onto master to get rid of that? Thanks.
The default audio frame size change looks good. I'll give this all a test with an actual mumble server in the next couple of days and (assuming it all works), merge it.
Thanks for all your hard work as always!

Sorry for the merge/revert I should have rebased as you suggested, was a double silly mistake... that's what happens when we work too late... now corrected.

Just to let you know that I have tested a lot all this configurable sample rate/bits/frame-size, and all is working well, no issue for any of my users. (tested with both mumble's official Murmur server and the lightweight uMurmur server)

Thanks for letting me know. Sorry I've been so slow with this one - it's been a busy few weeks!


HAProxy configuration is not being updated

I've spent part of today trying to learn Synapse as I think it could be useful in my infrastructure. I set up a Vagrant box, where I was able to get it to successfully query the AWS API. The issue though was that it never updated the HAProxy configuration. I have committed this learning exercise to GitHub so it can be reproduced easily. I've also copied a portion of the README here for coherence.
Reproduction
vagrant up
vagrant ssh
cd /vagrant
java -jar synapse.jar --config bug.json
# quit
cat /etc/haproxy/haproxy.cfg

Synapse clearly indicates via standard out that it has identified the two EC2 instances.
It does not modify /etc/haproxy/haproxy.cfg as configured though it reports that it has regenerated the config.
synapse.jar was built with the source at e012cd3a518098545a0ba73958d3c17bd5ab40d9 in airbnb/synapse.

@geowa4 I think you may have run into an issue with the documentation saying options were default to true (do_writes, do_reloads, do_socket) when they were not at the time. On latest master do you still see the issue? Can you paste your config?
I believe I have a fix for MRI installs in #138, but it looks like you're using JRuby?

@jolynch Since this didn't work for me almost a year ago, I decided to use something else. If I have time, I might verify this is fixed, but, honestly, I can't put this too high up on my priority list.

OK, I'm going to close the issue since I think the documentation and code have been fixed. If you come across the problem again please let me know.


CVE-2010-2299 and CVE-2016-1706

Round 1 of history project for CVE-2010-2299 and CVE-2016-1706

Round 1 of history project for CVE-2010-2299 and CVE-2016-1706

@laura-king,
Thanks for your feedback! I made the relevant changes per your suggestions. You were right, the description for the first CVE could have been a bit more explanatory as to why it was in fact a bad vulnerability.


Plugin 'maxdiff' is not available

Why this item cannot be compiled?
survey.zip

Sorry. It seems that I did not install the 'maxdiff' plugin.


⚠ SceneTime has degraded performance

In 9414881, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 2075 ms

Resolved: SceneTime performance has improved in c2b7c31 after 8 minutes.


Zero-initialize registers

This ensures that return values of simple programs are predictable, and makes debugging a whole lot easier.

Coverage increased (+0.005%) to 96.054% when pulling 6de5e5698e39c31fa6927023f8b030099d62a4e9 on jpsamaroo:zero-init-reg into 089f6279752adfb01386600d119913403ed326ee on iovisor:master.

Note that unless I'm mistaken, this may widen the gap between uBPF and kernel eBPF if programs start relying on 0-initialised registers (In the kernel, the verifier ensures that no register is used uninitialised). It may also introduce a divergence within uBPF between the VM and the JIT-compiler.

It's also my intention to add support for verification similar to what the kernel does, which would give us the safety properties. But since we aren't currently checking for use of uninitialized registers, I don't see how this patch is in itself harmful.
I'll have to look into the JIT and see if I can add this zeroing behavior there as well. If not, then I can understand why this wouldn't be merge-worthy.

I think a verification pass is more than sufficient to check for use of uninitialized registers, so this PR is not needed.


Increased Bottom Margin of Change Language Section [Fixes #34]

Increased the Bottom Margin of 'Change Language' from 0.5rem to 1.5rem to make the UI look a bit better.

close this


Request For Contact Information

Hello @rvilarl and @Smibu
This is such a lovely and wonderful solution!
I have a free website called Piano Gym that uses a continuous based approach for cursor management.
See https://PianoGym.com or this YouTube video for clarity.
https://www.youtube.com/watch?v=faxNDhOjlh4
I don't feel like I've nailed the cursor and playing input management down correctly, which leads to it feeling less than satisfactory when playing. I have been looking for others to collaborate with to get to a satisfying solution for this and it seems as though you are both on track to get to that solution!
Do you have a point of contact I could reach out to discuss collaboration further?
If you don't feel comfortable posting here you can reach me at<EMAIL_ADDRESS>

I updated my profile<EMAIL_ADDRESS>


[Automation] Generate Fluent Lite from healthbot#

[Automation] Generate Fluent Lite from healthbot#

/azp run prepare-pipelines

/azp run java - healthbot - ci

/azp run java - healthbot - ci