Federated account linking cannot be done based on an attribute of a local account

Federated account linking can only be done based on the match of user ID of a local account in IS with an attribute of a federated account. We cannot do it based on the match of an attribute of a local account in IS with an attribute of a federated account.

@johannnallathamby
Can you explain what needs to be the logical flow for the said accociation

@ruwanta there was a typo in the comment and I've corrected it now. Please check if it makes sense now.
In IS we need to be able to configure a verified claim URI that is matched up with a verified claim in the federated account and linked.

+1 for the improvement

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!

Will be covered with https://github.com/wso2-enterprise/iam-product-management/issues/188


add 2pc config

Proposed changes
Issue Number: close #xxx
Problem Summary:
add config to enable 2pc.
Checklist(Required)

Does it affect the original behavior: (Yes/No/I Don't know)
Has unit tests been added: (Yes/No/No Need)
Has document been added or modified: (Yes/No/No Need)
Does it need to update dependencies: (Yes/No)
Are there any changes that cannot be rolled back: (Yes/No)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

Is it possible to automatically adapt to non-2pc scenes? There is no need to add configuration parameters. For example, after doris enables 2pc, it will be submitted with 2pc. If 2pc is not enabled, the streamload operation will be performed directly. I feel like this is a better experience


[Addition]: Manipulated Packet Forwarding Usage

Hotspot b58 Addresses
112bUKVVgjeJaWBcyCxGkWKTDGW7zsfReVPygTPwNDFbVk9REhyr
Discord Handle
Watchdog
Reason(s)
It is in a pool which redirects radio data over internet.

Issue closed for having more proof.

It will be reopen after getting more data.

Device keeps using PF for multiplying earnings.

Please ban these scammers. This device is doing packet forwarding. they invite device owners to the group to cheat. @6CornerDefender


support arrays

Two important things:

[ ] are arrays supported in headers? (not currently)
[ ] are all list make_* functions invoked with a const []?  This will automatically support arrays.

blocks on parameter reform

this is pretty solidly solved in 0.10.x


Pattern: Table of Contents visual design & design specs provided by Reboot designers

Notes

The Reboot team is responsible for creating the visual designs and design specs for most of the patterns included in the Solutions page.  This issue is to track the transition of the Reboot design work to the DDS design & engineering team members.

Additional Information

Visual Designs & Design Specs Box folder
Links to the visual designs and design specs will be updated once received and reviewed by the Reboot designers.

Acceptance Criteria

[ ] Visual designs and specs received from Reboot designers
[ ]  A pdf file is created and placed in the Box folder with the updated Sketch file
[ ] Meetings conducted with DDS team members to review the designs

5/4/2020:  Reviewed the designs with the DDS and Drupal designers and engineers.

@RobertaJHahn Visual specs (sketch and PDF) are posted here:
https://ibm.ent.box.com/folder/90702727404


[IOTS-298] Re-enable IoT integration tests

Integration & UI Tests written for IoT Server are disabled. It is need to update test cases to comply with latest changes and need to re enabled.Reference: https://wso2.org/jira/browse/IOTS-298

This is done by @Megala21
https://github.com/wso2/product-iots/commit/a1688140c5c8499541cfd24c83d9d5fe8d967d28
https://github.com/wso2/product-iots/commit/ed7e5749395637e0cd7a26cbd0e75dbf898c2f76
https://github.com/wso2/product-iots/commit/fbab71b0f7d2577ab51d3d58feb705ebe575da3b


build: prqlc crate

Ref #1545
@max-sixty Can you setup releasing to crates.io for prqlc & prql-compiler-macros?

@max-sixty Can you setup releasing to crates.io for prqlc & prql-compiler-macros?

Yes. + I can take some of the other todos here.
Can prql-compiler re-export prql-compiler-macros? Or does that not work with proc macros? It would be nice to have a single interface.

Can prql-compiler re-export prql-compiler-macros? Or does that not work with proc macros? It would be nice to have a single interface.

prql-compiler is a dependency of prql-compiler-macros, so I don't know if that would work.

I'm not confident the release step is working yet, but this code is reasonable-ish, so I think OK to merge.
Is the lib.rs / main.rs split a reasonable way of incorporating wasm without requiring CLI exclusions?


fix: creating a customer without a birthday should not result in zero timestamp in response body

Fixes #197

Codecov Report

Merging #203 into master will decrease coverage by 2.57%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #203      +/-   ##
==========================================
- Coverage   61.61%   59.04%   -2.58%
==========================================
  Files          49       49
  Lines        2582     2586       +4
==========================================
- Hits         1591     1527      -64
- Misses        685      761      +76
+ Partials      306      298       -8


fix: framebufferpicker is not work with sprite or orthographic camera…

… #499
Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

Codecov Report

Merging #500 (4a2efd5) into main (7d17191) will increase coverage by 0.15%.
The diff coverage is 25.00%.

@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
+ Coverage   48.04%   48.20%   +0.15%
==========================================
  Files         349      349
  Lines       18972    18907      -65
  Branches     2548     2535      -13
==========================================
- Hits         9115     9114       -1
+ Misses       9857     9793      -64

Impacted Files
Coverage Δ

packages/core/src/RenderPipeline/RenderQueue.ts
16.99% <0.00%> (ø)

...kages/core/src/RenderPipeline/SpriteMaskManager.ts
18.75% <0.00%> (ø)

packages/framebuffer-picker/src/ColorMaterial.ts
0.00% <ø> (ø)

packages/core/src/RenderPipeline/SpriteBatcher.ts
17.04% <20.00%> (-0.20%)
:arrow_down:

packages/core/src/RenderPipeline/Basic2DBatcher.ts
36.84% <66.66%> (ø)

packages/draco/src/decoder.ts
0.00% <0.00%> (-0.92%)
:arrow_down:

packages/loader/src/scene-loader/Oasis.ts
0.00% <0.00%> (ø)

...ackages/loader/src/scene-loader/ResourceManager.ts
0.00% <0.00%> (ø)

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 7d17191...4a2efd5. Read the comment docs.

framebufferPicker can't handle some cases such as sprite batch, transparent material or ortho camera,wait for refactoring


control-service: Remove logging of credentials in builder

Currently, we are leaking AWS credentials in builder pods. These
are then logged, which is a security concern.
This change removes the leaked credentials from the logs.
Testing Done: Manually changed the version of the builder job to a
dev version, in order to push an image to docker hub. Afterwards, started
a local instance of Control Service, and manually deployed a test data job
and verified that the AWS credentials are no longer being logged.
Signed-off-by: Andon Andonov<EMAIL_ADDRESS>

Just to remind you that you should change the helm chart builder version in a separate PR.


linting fix

so that its no longer necessary to use grunt --force
cc/ @jyaistMap

Thanks for addressing this @jgravois! This one has been nagging me for a while.
I'm getting an error at line 1109: serviceData is not defined when I try to do a Full Copy on a feature service. Are you seeing that too?

Are you seeing that too?

absolutely.  sorry for submitting a PR with an obviously busted fix!
i made a correction (bear in mind that i only tested the approach with a feature service with <1000 records), and it seems like a decent alternative to just resolve all the query promises together and then do the same with the calls to addFeatures
another option would be to just force jshint to ignore the error locally for now so other folks don't run into the error when they first touch the project
/*jshint -W083 */
/*jshint +W083 */

happy to chat more if it'd be helpful.

another option would be to just force jshint to ignore the error locally for now so other folks don't run into the error when they first touch the project

Maybe that's the smarter approach. I don't think that particular error is all that terrible (almost seems inevitable with async calls). Can we set a flag in Gruntfile.js or maybe even package.json to override it and add a comment to the code in question indicating it will cause an error if that flag is removed?

i just pushed up another commit to selectively ignore the warning.  i agree that the error isn't terrible.  that said, you do open yourself up to the possibility of unexpected behavior if any variables accessed in the anonymous callback function within the loop change out from underneath you.
https://jslinterrors.com/dont-make-functions-within-a-loop
the approach i outlined previously (for aggregating individual promises) could be worth revisiting, but i don't blame you if you want to wait until you actually 'get bit'.

Looks good. Would you mind squashing the two commits so it's just showing the final agreed upon change?

maintainers can squash/merge directly in github now!
https://github.com/blog/2141-squash-your-commits

maintainers can squash/merge directly in github now!

Mind blown. 💣  That's certainly going to be handy going forward. Thanks again for taking care of this one!


URLFile: raise exception if remote URL doesn't exist when using cache

Right now the behavior is assymetrical when you try to use URLFile on a link that doesn't exist when you turn on and off FILEREADER_CACHE.
Reproduce with:
import os
from tools.lib.url_file import URLFile
os.environ["FILEREADER_CACHE"] = "1"
url_f = URLFile("https://commadataci.blob.core.windows.net/can_be_anything")
print(url_f.read())

No cache:
Exception: Error 400 ['Connection: keep-alive'] (https://commadataci.blob.core.windows.net/can_be_anything): b'\xef\xbb\xbf<?xml version="1.0" encoding="utf-8"?><Error>OutOfRangeInput<Message>One of the request inputs is out of range.\nRequestId:08bb607c-601e-015c-402f-60318c000000\nTime:2022-05-05T03:25:38.9140945Z</Message></Error>'

With cache:
b''

This is to fix a problem with https://github.com/commaai/openpilot/pull/24414, so if this would break other things that expect an empty response, I can just handle it there and close this


No address associated with hostname on Android after flutter upgrade

Hello,
After upgrading Flutter to 1.12.13+hotfix8 my application have DNS issues on androïd.
Everything works well on iOS.
I verify AndroidManifest and the android.permission.INTERNET is there.
Dio package Error:
E/flutter (16005): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: DioError [DioErrorType.DEFAULT]: SocketException: Failed host lookup: 'api.XXXXXXX' (OS Error: No address associated with hostname, errno = 7)
I replace the api url by api.XXXXXX, because i can't expose it.
I use too flutter_inappwebview plugin and it seems have the same problem because, the webwiew i try to load is timeout. I see in element with 'chrome://inspect' :

net::ERR_NAME_NOT_RESOLVED

this the output of flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale fr-FR)
    • Flutter version 1.12.13+hotfix.8 at /Users/pmaes/flutter
    • Framework revision 0b8abb4724 (6 days ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/pmaes/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/pmaes/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/pmaes/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 42.1.4
    • Dart plugin version 193.6015.9

[✓] Connected device (3 available)
    • Android SDK built for x86 • emulator-5556                            • android-x86 • Android 10 (API 29) (emulator)
    • fifPhone                  • 11ef012b3fae929feb8b764d2d1b6ec2aa8093f7 • ios         • iOS 13.3.1
    • iPhone 11 Pro Max         • 056994EB-1F3B-4E91-A0EA-21AFF3951F83     • ios         •
      com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)

• No issues found!

Hi @fif1973
Does it help you?
https://github.com/flutter/flutter/issues/27883#issuecomment-471357931

no, i have that into AndroidManifest.xml (app/src/main/)
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.CAMERA" />

I think it is other thing, the android emulator have no network at all. I need to find a solution for that before (curiously it appears just after flutter upgrade)

[Solved] How to solve SocketException: Failed host lookup: ‘flutter-project-xxxxx.firebaseio.com’ (OS Error: No address associated with hostname, errno = 7)


add OTS to noto_lint

Should we add opentype sanity check to our lint?

@brawer
This is something required by Google Fonts.

Should the linter just check that sanitization doesn’t fail, or should it enforce that the sanitizer’s result is bit-wise identical to the font? Is the latter even realistic? If it’s unrealistic to enforce bit-wise identity after sanitization, should we run the sanitization as part of the build pipeline instead of the linter, and do all quality checks on the post-sanitization fonts? (Should the sanitizer strip off any data, we’ll need to fix it anyway).
https://github.com/khaledhosny/ots/blob/master/docs/DesignDoc.md

Seems best to run it as part of the build.

@jungshik, I thought Chrome used OTS when it loaded fonts as a sanity check.  This would seem to mean that we need to ensure our fonts pass it, even if the fault is with OTS, and so maybe we should do this as a build validation step.  Behdad seems skeptical of the utility of this, though.

I think what @behdad is saying is that you should make sure the fonts pass OTS check, but don’t use the output fonts from OTS (as @brawer was suggesting) since OTS will sometimes strip things it thinks not needed by web browsers.

I agree with Behdad about not using the lint run as part of the build
process; for non-fontmake-built fonts, I think roundtripping through
fonttools is good to do in the post processing build process, and will
catch any major badness and often compact the files. But the fonts returned
by ots are a bit more likely to be butchered.
So my suggestion is that ots become an integral step of Noto lint; it's
already integral to fontbakery-check-TTF; that is, run ots as a lint
process (checking return is 0) instead of a build process.
On Dec 20, 2016 9:42 PM, "dougfelt"<EMAIL_ADDRESS>wrote:

@jungshik https://github.com/jungshik, I thought Chrome used OTS when
it loaded fonts as a sanity check. This would seem to mean that we need to
ensure our fonts pass it, even if the fault is with OTS, and so maybe we
should do this as a build validation step. Behdad seems skeptical of the
utility of this, though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/googlei18n/nototools/issues/302#issuecomment-268391792,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAP9y2Y_uIwXJNw3EvQmVluJBrVCaMEOks5rKGfwgaJpZM4KhtXU
.

It makes more sense to me to have OTS as a step in lint, rather than the font building process. We just need to make sure our fonts pass OTS check.


Extend to Tasks (VTODOs)

Tasks are also stored in calendars. Currently they are filtered out, but for no particular reason. It's probably not too hard to get them exported in a nice way, too.

VTODOs are now exported as well


Improve  performance of wallet inscriptions by iterating first over outputs instead of all inscriptions

We currently iterate over all inscriptions (currently >16 million), and check for every single one if the satpoint is in our wallet. For wallets with typical number of outputs it would be much more efficient to iterate over outputs and check if it has an inscription.
Originally posted by @raphjaph in https://github.com/ordinals/ord/pull/2279#discussion_r1264747317

This is how I fixed this issue: https://github.com/gmart7t2/ord/commit/8b105818b9dbadd170250e519b7be9d7cdae37a4

I made a PR for my fix for this: #2310

Closed by #2310


File Upload: Error message should not be inside drag/drop container area

From @mcoker's comment here: https://github.com/patternfly/patternfly-react/pull/3865#issuecomment-596010022
In the File Upload HTML example with an error message, the .pf-c-file-upload__message.pf-m-error element is inside the main .pf-c-file-upload container element. When the .pf-m-drag-hover class is also applied to that container while a message is present, the message appears inside the blue background of the drag/drop area:

In the corresponding React example I used a FormGroup to add the error message instead of having the message be part of the file upload component:

We should either change the HTML/CSS in core to place this message outside the container, or remove the .pf-c-file-upload__message CSS entirely and use a FormGroup in that example instead.
cc @mcarrano @christiemolloy

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Tensorflow 2.1: How does the metric 'tf.keras.metrics.PrecisionAtRecall' works with multiclass-classification?

I am wondering how this metrics works in case of multiclass classification. Does it compute the average between values of precision belonging to each class?
I have a multiclass-classification problem, with three classes. I am interested in calculate the PrecisionAtRecall when the recall value is equal to 0.76, only for a specific class . What I have done was just setting 0.76 in brackets :
'' model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy', tf.keras.metrics.PrecisionAtRecall(0.76)], sample_weight_mode='temporal') ''
But I am sure is not the right way.
How can I adjust the metric to reach my goal?
Thanks

As you can see
tf.keras.metrics.PrecisionAtRecall(recall, num_thresholds=200, name=None, dtype=None)
has 3 arguments
The argument here to notice is num_thresholds which is optional and Defaults to 200. The number of thresholds to use for matching the given recall.
Here's how precision is calculated:

Calculate recall at all the thresholds (200 thresholds by default).
Find the index of the threshold where the recall is closest to the requested value.
Compute precision at that index.

For more info you can refer to the source code.
Threshold : A float value or a python list/tuple of float threshold values in [0, 1]. A threshold is compared with prediction values to determine the truth value of predictions (i.e., above the threshold is true, below is false). One metric value is generated for each threshold value.
In setting Recall value in this case tf.keras.metrics.PrecisionAtRecall will consider recall value over all the classes not a specific class.
You need to write your own function if you want to calculate recall for a specific class or use binary classification where you have 2 class - the class you are interested in setting the recall value and rest of the classes binned as a single class.

yes, thanks :)

In case anyone else stumbles upon this, I adapted the existing metrics to work in a multiclass setting using a subclass. Essentially, I just transform my y_true and y_pred into the binary equivalent before passing them.
class RecallAtPrecisionByClass(tf.keras.metrics.RecallAtPrecision):
    def __init__(self, class_id, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.class_id = class_id

    def update_state(self, y_true, y_pred, sample_weight=None):
        y_true = tf.equal(y_true[:, self.class_id], 1)
        y_pred = tf.where(
            tf.equal(tf.argmax(y_pred, axis=-1), self.class_id),
            y_pred[:, self.class_id],
            tf.zeros_like(y_pred[:, self.class_id]),
        )
        return super().update_state(
            y_true=y_true, y_pred=y_pred, sample_weight=sample_weight
        )

Here's a quick example of this metric on some dummy data.
y_true = np.array([
    [1, 0],
    [0, 1],
    [0, 1],
    [0, 1]
])
y_pred = np.array([
    [0.7, 0.3],
    [0.7, 0.3],
    [0.7, 0.3],
    [0.7, 0.3]
])

# Precision is only 25% but our minimum is 33%.
metric = RecallAtPrecisionByClass(class_id=0, precision=0.3333)
metric.update_state(y_true=y_true, y_pred=y_pred)
metric.result().numpy() # 0

# Here we exclude the final prediction so that the precision is 33%,
# which meets our minimum.
metric = RecallAtPrecisionByClass(class_id=0, precision=0.3333)
metric.update_state(y_true=y_true[:-1], y_pred=y_pred[:-1])
metric.result().numpy() # 1.0
    """


Mikro-ORM reports connecting to DB in logs when this is not the case

Describe the bug
With debug: true provided, Mikro-ORM outputs:
MikroORM successfully connected to database some_database on postgres://@localhost:5432

However, this database is not actually connected.
To Reproduce
Steps to reproduce the behavior:

Call MikroORM.init with debug: true and database not online.

Expected behavior
Either MikroORM.init should error or the console message should be changed to not falsely claim it has connected to DB. Based on discussion at #230 , I think the latter change should be made.
Versions

Dependency
Version

node
12.14.1

typescript
3.7.5

mikro-orm
3.1.0

your-driver
postgresql

I guess we should make the call, so it behaves the same with all drivers (as mongo driver does fail when the db is not alive - this lazyness comes from knex, in v2 it was working this way).

So the problem is that throwing an error would be a BC break. Currently you can use schema generator to create the schema together with the database, and there it would now throw an error when initializing the ORM to get the schema generator. I will at least change the logged message.

Good catch on BC break. Thanks for the logging fix here @B4nan !


Intel HD pygame parachute error

Hello Guys!
I a m getting a segmention error on my acer laptop with kivy, While my program works perfectly on my other system. I think it has to do with the fact that my laptop's graphics is being handled by its core i5 processor. Can someone please help me out with this issue?
Here is a pasted version of my log:   http://pastebin.com/PFYucD8E
As you can see I meet the minimum OpenGL requirements. I debugged the error to a specific class which uses kivy:uix:scatter as a base class. The error occurs on this laptop when that class is instantiated. So to my meaning it looks like it is comming from kivy's scatter class?
Thank you very much for your help.

Hi,
How did you debug down to scatter? Could you post more information about
your debugging session? did you use gdb?
If not, can you do:
 gdb --args python main.py
 > run

Then when the segfault happen:
 > info threads
 > t
 > bt

And send the whole session from the gdb start line!
Thanks you :)
On 22/02/2012 14:23, gboers92 wrote:

Hello Guys!
I a m getting a segmention error on my acer laptop with kivy, While my program works perfectly on my other system. I think it has to do with the fact that my laptop's graphics is being handled by its core i5 processor. Can someone please help me out with this issue?
Here is a pasted version of my log:   http://pastebin.com/PFYucD8E
As you can see I meet the minimum OpenGL requirements. I debugged the error to a specific class which uses kivy:uix:scatter as a base class. The error occurs on this laptop when that class is instantiated. So to my meaning it looks like it is comming from kivy's scatter class?
Thank you very much for your help.

Reply to this email directly or view it on GitHub:
https://github.com/kivy/kivy/issues/406

Hello Tito,
The way how I debugged is by sleeping the program on points where it runs like: print "Break!" time.sleep(90)
So I can see in the console how far it actually goes. I did that over the entire program till I reached the point where the segmention fault rose. That's how I found the class which is causing our problems.
We are running on windows for specific reasons, Will the gdb from Mingw suffice?
Thanks in advance.

Ok !
Yes, gdb from mingw should be ok
On 22/02/2012 19:11, gboers92 wrote:

Hello Tito,
The way how I debugged is by sleeping the program on points where it runs like: print "Break!" time.sleep(90)
So I can see in the console how far it actually goes. I did that over the entire program till I reached the point where the segmention fault rose. That's how I found the class which is causing our problems.
We are running on windows for specific reasons, Will the gdb from Mingw suffice?
Thanks in advance.

Reply to this email directly or view it on GitHub:
https://github.com/kivy/kivy/issues/406#issuecomment-4112089

Hello,
Sorry for my late response I've been very bussy lately.
Anyhow! I tried debugging with gdb but gbd tells me that there are no debugging symbols. Also I have looked on google for a windows version of python with debugging symbols but I could not find one.
Then I have tried http://winpdb.org/ that tool seemed nice until my main App().run() loop gets fired and it brings the whole program down. If anyone else has some more debugging idea's I'd love to hear them!
Thanks in advance.

Pdb is not helping for low level crash. A segfault must be debugged at C level, not Python level. That's why using gdb is an option.


spring-security-oauth2-boot 2.7.0

Will there be spring-security-oauth2-boot 2.7.0 release? Because multiple milestone released to align with Spring Boot 2.7 and currently project marked EOL(https://github.com/spring-projects/spring-security-oauth2-boot/commit/bf509aeec07a9411c4e4fa95c645c9119ad9a584).
https://github.com/spring-projects/spring-security-oauth2-boot/releases/tag/2.7.0-M3
https://github.com/spring-projects/spring-security-oauth2-boot/releases/tag/2.7.0-M2
https://github.com/spring-projects/spring-security-oauth2-boot/releases/tag/2.7.0-M1
It would be great to have 2.7.0 as last release to align with Spring Boot.

@anbusampath No, there will not be a 2.7.0 release. This project has reached EOL.


[BUG] ApplicationInsights on an Aurelia Framework

Using the aurelia framework on our application deployed on Azure AKS. I have incorporated Application Insights and I am getting an error when trying to display the page. See the error below

The libray I am using is
import { ApplicationInsights } from '@microsoft/applicationinsights-web'

const appInsights = new ApplicationInsights({
    config: {
      instrumentationKey: '<INSTR-KEY>'
    }
  });

Based on the error message it looks like you are fetching the script applicationinsights-web.js from your own CDN and as part of that the mimetype (Content-Type) being returned for the script is text/html which the browser is blocking.
The CDN service / script should be returning text/javascript so that the browser will actually execute the script.

It will be the server (or storage) that is serving up the files / CDN. So it will depend on what/how the files are stored and servered up.
For example from the js.monitor.azure.com perspective this is the CDN endpoint which has the default set for files ending with .js to be text/javascript, but for the source location of the files they also have additional meta-data which includes the Content-Type set as text/javascript.


[WIP] cgroups v2: PoC of devices controller

This a PoC of cgroup v2 BPF devices controller, based on the implementation of runc.
It works but with many FIXMEs and TODOs:

build BPF bytecode instruction by instruction using ebpf
attach/detach using libbpf-sys,  always attach new program and detach old programs, no BF_F_REPLACE
use naive algorithm to check rules, runc's device emulator is not implemented
there is a simple binary in cgroups/examples/bpf.rs, used to query/attach/detach BPF program, should help testing
toggled on by feature "cgroupsv2_devices", which is enabled by default in Cargo.toml

lgtm


Malware in rxp-js?

Just installed package and got a malware critical vulnerability notification

https://github.com/advisories/GHSA-p4fm-f928-rr26
If this a false positive? Please confirm

This security notice is stil showing up on the latest version from this month.

Please advise ?

Hello,
The advisory is directly linked to the npm library (https://www.npmjs.com/package/rxp-js) which is not owned by Global Payments.
You would want to use the library like you would do it in the old days. Download the final build and reference it in your code via a script tag.


QUIC 0-RTT support (server side)

[x] Generate a key and IV for 0-RTT
[x] Decrypt 0-RTT packet
[x] Pass frames in 0-RTT packet to an application
[x] Send ACK for 0-RTT packet
[ ] Switch to 1-RTT key and IV

(Changes for each items might not be committed even if they are checked until this issue is closed.)

Done with 47289d2a581b9800d630d3425b789975bceaf6b7


Question about speedseq var

When I use speedseq var on my bam file of a whole genome, it seems going to take forever to finish. I stopped it after 43 hrs, a vcf.gz file was made and the vcf format looks decent. Below is the code I used:
sudo sh -c " speedseq var -t 24 -o $working_dir/WGC083268D.vcf.gz $ref_dir/human_g1k_v37.fasta $working_dir/WGC083268D.bam > $working_dir/var.log" &
I also ran it with "-w $annotations/ceph18.b37.include.2014-01-15.bed". And this also not finished yet...
At first it ran with 24 threads, however, after few hours only 2 threads were occupied. Could this be the problem? How should I fix it?
Thanks

That sounds like it could be a problem. A few questions:

What is the depth of your BAM file?
Does speedseq create a temporary directory and does it contain multiple .vcf files (one for each chrom by default, or one for each window with ceph18.b37.include.2014-01-15.bed?
Could you run it with the "-v" (verbose) option and show the output here?

I'm wondering whether it's not appropriately calling "parallel." Thanks for posting this
Side note: you should use -o $working_dir/WGC083268D rather than -o $working_dir/WGC083268D.vcf.gz, since it should be a prefix

The average depth is about 25

The temporary directory contains multiple .vcf files (one for each chrome)

And here is the output:
Sourcing executables from /home/light/bin/speedseq/bin/speedseq.config ...
Calling variants...
 create temporary directory

 /home/light/bin/speedseq//bin/sambamba view -H /media/light/wgs/process/WGC083268D_combined.bam | grep "^@SQ" | cut -f 2- | awk '{ gsub("^SN:","",$1); gsub("^LN:","",$2); print $1"\t0\t"$2; }' > WGC083268D.vcf.gz.nLQKVcMfuVxn/windows.bed

 /home/light/bin/speedseq//bin/freebayes \
     -f /media/light/sample/ref/human_g1k_v37.fasta \
     --region $chrom:$start..$end \
     /media/light/wgs/process/WGC083268D_combined.bam \
     --min-repeat-entropy 1 \
     | /home/light/bin/speedseq//bin/vawk --header '$6>=1 && I$RPR>0 && I$RPL>0' \
     > WGC083268D.vcf.gz.nLQKVcMfuVxn/WGC083268D.vcf.gz.$i.vcf

 cat WGC083268D.vcf.gz.nLQKVcMfuVxn/var_command.txt | /home/light/bin/speedseq//bin/parallel -j 24

 grep "^#" WGC083268D.vcf.gz.nLQKVcMfuVxn/WGC083268D.vcf.gz.1:0..249250621.vcf > WGC083268D.vcf.gz.nLQKVcMfuVxn/header.txt

     cat WGC083268D.vcf.gz.nLQKVcMfuVxn/WGC083268D.vcf.gz.":$start..$end".vcf | grep -v "^#" \
         | sort -k1,1 -k2,2n | cat WGC083268D.vcf.gz.nLQKVcMfuVxn/header.txt - \
         | /home/light/bin/speedseq//bin/bgzip -c > /media/light/wgs/process/WGC083268D.vcf.gz.vcf.gz

/home/light/bin/speedseq//bin/tabix -f -p vcf /media/light/wgs/process/WGC083268D.vcf.gz.vcf.gz
 rm -r WGC083268D.vcf.gz.nLQKVcMfuVxn

Done
Thanks

Ok, based on that output you showed, it looked like speedseq successfully completed. The data should be located at /media/light/wgs/process/WGC083268D.vcf.gz.vcf.gz
As for the earlier question, by default, speedseq parallelizes by chromosome, which have different lengths and therefore different processing times. Some will finish faster than others but if there are 2 threads active after 43 hours then there should be 2 .vcf files in the temporary directory that continue to be updated before they are merged into the final file.

Thanks a lot for your help.
There is another problem. In the ID column of my vcf file, no identifier was given to any variants.I have annotated the vcf file with both VEP and annovar, but only annovar can provide rs number to the variants.
My question is: Is there any method to add the rs number to the vcf file?

SpeedSeq doesn't currently have a function to annotate variants with rs_ids, but I think it can be done in GATK. Perhaps annovar can do it too

check out vcfanno (https://github.com/brentp/vcfanno) from @brentp.


Refactor and optimize data download

Hi all, this PR refactors and optimizes the data download. The OSF interface is delayed until needed and cached to minimize the number of requests.
Addresses #242

Hi @nichollsh This PR refactors the download, so I hope that can help a bit already with the issue in #242. I don't have time to work on it for the next 2 weeks, so feel free to take over this PR or just merge it.
I tested it with a few data sets and it seems to work fine.


Setting net.ipv4.ip_unprivileged_port_start=80 from an unprivileged Quadlet file does not work

Hi Christian,
in my tests this line did nothing, I had to create a sysctl file (as root!) with this setting.
https://github.com/LorbusChris/nextcloud-quadlet/blob/f8028e75b2bd4b53f07172c9e7a516419ebe91f3/.config/containers/systemd/nextcloud-server.container#L11
Should this work?
I might be missing something, but isn't this a security risk, if you allow an unprivileged user to open privileged ports (or redefine them as unprivileged)?
Kind Regards
Johannes

I might be missing something, but isn't this a security risk, if you allow an unprivileged user to open privileged ports (or redefine them as unprivileged)?

Or is this set inside a network namespace so it does not harm the host?

I might be missing something, but isn't this a security risk, if you allow an unprivileged user to open privileged ports (or redefine them as unprivileged)?

Or is this set inside a network namespace so it does not harm the host?

Yes, this setting is namespaced to the container itself (see https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#sysctl) so it shouldn't be a security risk. IIRC I ran into an issue without this (on Fedora 40 Server). It could probably be dropped by configuring a different internal port for the server container, but I tried not touching the default Apache conf. I'm open to accept contributions to improve this of course!

For the server, port 8000 is exposed to the outside by Envoy, so this setting should not be needed on the system (and it would indeed be a security issue there).

I'm trying to better understand the issue you're running into. It does absolutely not work for you without this setting on the host? What distro are you running this on?

OK, I did some more testing and finally understood more of the setup.
This is only set in the actual Nextcloud server container, that listens on port 80. But this port is not published, i.e. not reachable on the host. But to be able to listen on this port, the sysctl for that container's namespace might be required.
The proxy listens on port 8000, which is unprivileged, hence this can be opened without root permissions.
So, sorry, false alarm. Everything is working as expected.


ie11 compatibility

Describe the bug
When I try to use chartjs error bar library on ec2 (centOS) in AWS with IE11, I get the following error: Object doesn't support property or method 'assign'. But I do not get this issue with Google Chrome or Firefox.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

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

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

should be fixed with the latest version https://github.com/sgratzl/chartjs-chart-error-bars/releases/tag/v1.2.1


KAFKA-4307 Inconsistent parameters between console producer and consumer

@gwenshap please review

Thanks for the PR. A few comments:

We need to maintain compatibility, so the older parameter should be supported but deprecated.
It would be great to do the same change for any other class that uses --broker-list (VerifiableConsumer, VerifiableProducer, etc.)
It would be good to update the documentation and system tests to use bootstrap-server.

Thanks for the review, I will start to work on the suggested modifications. I will update this pull request soon.

@ijuma I updated the pull request, with the suggested modifications. I forgot to update the documentation but I will do that maybe this weekend or in the beginning of the next one. Also there are couple of files where I don't know how to proceed.
These files are: GetOffsetshell, ReplicaVerificationTool, SimpleConsumerShell, Consumer Performance, VerifiableLog4jAppender. One of those are refactored to use broker-list instead of zookeeper, others are still using the old implementation as far as I can tell because the metadata.broker.list property is in use.

Updated the pull request with the documentation, and I also fixed the stylecheck errors.

@ijuma Updated the PR with the suggested changes.

@ijuma thanks for the review. Updated the pull request as you suggested.

@ijuma thanks for the review, updated the files.

@ewencp, do you think it's OK to include this in 0.10.2? It technically adds a command-line parameters to some tools, but that parameter already exists in a number of tools, it's just making them consistent.

@ijuma I think it's fine as long as we're confident we didn't break compatibility anywhere.

Resolved the conflicts, made some modifications on testBrokerListAndBootstrapServerOptionMissing

Resolved the conflicts with the trunk.

Hi @baluchicken, @ijuma, @ewencp and @gwenshap. I have been going through old issues and I see this one is almost finished, can we make it happen for <IP_ADDRESS>?

Sorry, this won't happen for <IP_ADDRESS> - it isn't a bug fix in traditional sense. And the PR still has conflicts.
Lets do it for <IP_ADDRESS>?

@gwenshap resolved the conflicts with the trunk.

@gwenshap  if you have time can you please take a look? Thanks.

Sorry for the delay. Can you please resolve the conflicts so that I can hopefully take a final look and we can finally merge this.

No worries:). I resolved the conflicts and extended the stream docs.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6575/
Test PASSed (JDK 7 and Scala 2.11).

Resolved the conflicts. @ijuma if you have time can you please review?

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6635/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6620/
Test PASSed (JDK 8 and Scala 2.12).

Yes, I started looking into this. I think there may be scope for some sharing of code. I'll share a sketch tomorrow.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6761/
Test PASSed (JDK 8 and Scala 2.12).


fix makefile's creating of a couple of tests, on msys

When using msys:
Due to protoc's peculiar use of : as a delimeter between parameters and (possibly) paths, make cannot build compiler_test.grpc.pb.cc or echo.grpc.pb.cc:. This is because --grpc_out=generate_mock_code=true:$(GENDIR) turns into something like --grpc_out=generate_mock_code=true;c:/path/to/stuff which then gets tokenized into generate_mock_code=true;c and /path/to/stuff
I do not advise you to read more about why this happens at the following url, since you may be struck instantly insane: http://www.mingw.org/wiki/Posix_path_conversion
Here's a person who had the same problem, I'm pretty sure: https://groups.google.com/forum/#!msg/grpc-io/f9mQO5JikW0/oK47Dl8EBwAJ
I've solved the problem kind of arbitrarily by just doing something different so msys isn't agitated; so there may be other solutions. This is simply the first one I found.
I also added detection for cygwin, besides msys, but I didn't test that. I don't think it can hurt anything
I lost interest running the tests on my linux VM when it ran out of disk space. Since this is a fix to the makefile, I figure as long as it still builds, it's OK (and it does)

@mgambrell : are you still interested in having this merged? For starters, this won't pass our sanity checks. Changes to the Makefile of the type that you're making here should actually be made in templates/Makefile.template and then built using tools/buildgen/generate_projects.sh
Thanks for your contribution and response!

No, I don't care any more. I mainly just wanted to alert you to a problem and the patch was a succinct way to illustrate it.


Added CLI config and updated to use publishable key

Couple updates now that we merged the CLI <> sample updates!

Renamed STRIPE_PUBLIC_KEY --> STRIPE_PUBLISHABLE_KEY
Added .cli.json for the CLI to read and set up
Updated README with CLI cloning instructions (need to add to the CLI list command)

This is awesome, thanks so much :)


Add AppConfiguration sample for using Client Secret Credentials

Is your feature request related to a problem? Please describe.
Service Principle is used in most production application where cosmos is used , the sample code(azure-sdk-for-java/sdk/cosmos/azure-spring-data-cosmos/src/samples/) only have configuration snippet related to key-based credentials, Client Secret Credentials configuration also need to be added to help users.
Describe the solution you'd like
Add the snippet for passing ClientSecretCredential to CosmosClientBuilder
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[ X] Description Added
[X ] Expected solution specified

@saragluna could you please follow up with @coder-hop

Hi @coder-hop, thanks for the feedback.
We have fixed the auto-configuration of Spring Data Cosmos in our next major version (which is not GAed yet), you could take a look at this sample, https://github.com/Azure-Samples/azure-spring-boot-samples/tree/spring-cloud-azure_4.0.0-beta.3/cosmos/spring-cloud-azure-starter-data-cosmos/spring-cloud-azure-data-cosmos-sample.
To use a ClientSecretCredential, you can specify the below properties:
spring:
  cloud:
    azure:
      cosmos:
        endpoint: ${AZURE_COSMOS_ENDPOINT}
        database: ${COSMOS_DATABASE}
        credential:
          client-id: your-service-principal-id
          client-secret: your-service-principal-secret

But since the 4.0 version has many breaking changes in artifact id and configuration properties, you could follow this doc https://microsoft.github.io/spring-cloud-azure/4.0.0-beta.3/4.0.0-beta.3/reference/html/appendix.html#migration-guide-for-4-0 for migration.

@kushagraThapar need this feature to be added in cosmos sample projects?

FYI, the Spring Cloud Azure 4.0.0 has been GAed, please refer to below links for more information:

https://aka.ms/spring/docs/4.0.0.
https://aka.ms/spring/samples.
https://microsoft.github.io/spring-cloud-azure/4.0.0/reference/html/index.html#migration-guide-for-4-0.
https://github.com/Azure/azure-sdk-for-java/releases/tag/spring-cloud-azure_4.0.0.

what's the status of this issue?
We should not promote Service Principal but Managed Idenitty ( password less ) to align with our strategy

@stliu that's correct, we have created a sample for this here - https://github.com/Azure-Samples/azure-spring-data-cosmos-java-sql-api-aad
However, our long term plan is to merge all these samples to this repo - https://github.com/Azure-Samples/azure-spring-boot-samples/tree/spring-cloud-azure_v4.4.1/cosmos
We can now close this issue, as this is done.


Add unload button

It would be great to add "unload model" button to free vram

Very Good idea! :)


Wrong results when Bicycling method

Hi Jd Alexander,
Thanks a lot for taking the time to build this library, it saved me a lot of time, I have a problem..it seems that the route retrieved for cycling method is the same as driving method, anyhow it does not coincide with the google maps app route.. According to the documentation the key work for transport method is "bicycling".. you have in your library declared biking, I wonder if that is the reason why.
Cheers

Ok I am going to look into it soon.

@jd-alexander I looked into it and the fix is quick .. Just changing the TravelMode enum solve the problem:
public enum TravelMode {
        BIKING("bicycling"),
...
````

Also #38 is duplicated, you should close it.

Okay I am making the change and submitting a new version to maven today.

I made the change and submitted it to maven. Let me know if it works.

Hi Jd, it works!, I tried it with the 1.0.8 version Gradle.
Thank you so much.

Awesome. Good to hear! :+1:


fix: make sure authorization errors are handled accordingly

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


Can't install pod

Hi there,
if I want to install the pod via a podfile into an Xcode 9 project I get following error in the terminal:

Analyzing dependencies
[!] Unable to satisfy the following requirements:

SWXMLHash (~> 4.0.0) required by Podfile

Can somebody help me?

Could you post your entire Podfile here? It should look something like:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target 'YOUR_TARGET_NAME' do
  pod 'SWXMLHash', '~> 4.0.0'
end

(by the way, I think my CocoaPods docs were somewhat out of date - I just fixed them...)

Hmmm...Until now I didn't used the first line in my pod files and it worked.
(source 'https://github.com/CocoaPods/Specs.git')
I also tried it now with the first line inserted, but then I come to the following output in my terminal:

Markuss-MacBook-Pro:Boardgame Quiz v0.2 maki$ install pod
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
Markuss-MacBook-Pro:Boardgame Quiz v0.2 maki$

Here is my Podfile if it helps you:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'Boardgame Quiz v0.2' do
Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
Pods for Boardgame Quiz v0.2
pod 'Alamofire'
pod 'GABoardGameGeek'
pod 'SWXMLHash', '~> 4.0.0'
pod 'SwiftSoup'
end

As I said, in my earlier attempts I didn't used the first line.
I only have this problem since updating to Xcode 9
Thanks!

Ah, sorry, that line I mentioned isn't required. Also, in the code you posted, you ran install pod instead of pod install. The output from pod install with your code is:
$ pod install
Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `SWXMLHash (~> 4.0.0)` required by `Podfile`
- `SWXMLHash (~> 2.2)` required by `GABoardGameGeek (0.1.0)`

So the issue is actually because of the GABoardGameGeek pod. Even its latest version in GitHub requires SWXMLHash ~> '3.0.0' (see its source), but your code is asking for 4.0.0. It works for me if I specify 3.0.0 instead. Like so:
platform :ios, '10.0'
use_frameworks!

target 'SWXMLHash Test' do
  pod 'Alamofire'
  pod 'GABoardGameGeek'
  pod 'SWXMLHash', '~> 3.0.0'   # changed this from 4.0.0 to 3.0.0
  pod 'SwiftSoup'
end

Then, the output is:
$ pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (4.5.0)
Installing GABoardGameGeek (1.0.0)
Installing SWXMLHash (3.0.5)
Installing SwiftSoup (1.4.2)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `SWXMLHash Test.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 4 total pods installed.

If you have to have 4.0.0 SWXMLHash functionality, then you can either ask on that repo to see if it can be updated to support SWXMLHash 4.0.0 or you could fork it.
Hope this makes sense.

Thanks a lot!

Happy to help!


feat: preserve order when writing json

This preserves the order of keys when using the JSON formatter.
Fixes #123.

@aymanbagabas sure, i believe something like this would handle that: https://github.com/op/charmbracelet-log/commit/634a620a8ce74329142d71d19b3a8d1d7e124873

@aymanbagabas sure, i believe something like this would handle that: op@634a620

Could you open a new PR for that one?


Dying and moving to your home station maps as a WH

When you die, pathfinder adds a wormhole from where you die to your home station.

Yeah that´s right, but there is no way to figure out whether someone was podded or if this was an intended pod jump (e.g. from a wormhole to HS).
Unfortunately we can´t fix this... :(

@Ligraph don't die!


Perspective and ngl view widget page broken.

ngl view works for me (just takes a while to load, up to a minute)


Round error on temperature

Temperature decimal place is extremely long.  Currently displaying 74.930000000000040 °F

If you go the temperature entity, you can set the precision from no decimals to 6.

Duh! Thanks!


Experimental: pre-commit hooks

This creates two new hooks for the pre-commit framework: for nbdev_clean and nbdev_export. They can be used to catch and fix uncleaned and unsynced notebooks, locally, without having to wait for CI. It's also a helpful fallback for people who use editors that we haven't supported yet (e.g. VSCode currently).
It works by defining the .pre-commit-hooks.yaml file in our repo root – that's all pre-commit needs! With that, users can easily enable either of these hooks in pre-commit locally.
Here's a rough version of the docs. I haven't included docs in the PR since its still experimental. I'd like for us to try it first then make a call whether to keep and document it. Note that the hooks will only work once this is merged to master.
Install pre-commit
Install pre-commit following their latest instructions. Their docs are great so I recommend reading it anyway. Here is a shortened version for convenience.
With pip:
pip install pre-commit

...or with conda:
conda install -c conda-forge pre-commit

...or with homebrew (on mac):
brew install pre-commit

Configure pre-commit
Create a file named .pre-commit-config.yaml in the root of your repo, with the following contents:
repos:
- repo: https://github.com/fastai/nbdev
  rev: master # TODO: replace with commit hash or release tag
  hooks:
  - id: nbdev_clean
  - id: nbdev_export

Include only the hook(s) you'd like to run, and add any other supported hooks.
Install pre-commit hooks into your repo:
pre-commit install

Make a commit and enjoy pre-commit in action
When you git commit, pre-commit will do the following:

Stash any unstaged changes
Run each hook

If any hook exits with a non-zero status code or changes any files, stop the commit, leaving those changes unstaged. The idea is that you'll stage the changes you want and re-commit

Unstash the unstaged changes from earlier. If this would cause any conflicts with changes made by hooks, then those are ignored and the original unstaged changes take preference

It's not as complicated as it might sound. I've found it to be quite seamless in practice. cc @hamelsmu @jph00

Thanks for the detailed and clear PR @seeM ! I think those comments would be a good starting point for docs :)


📊 UNESCO Institute for Statistics (UIS) - Education (SDGs)

hi @spoonerf! the code is v similar to the one you reviewed last week! I might in the future, update these together and modularize the code a bit better :)

hi @veronikasamborska1994, just checking on old PRs. Is this good to merge?


Migrate open source docs (attempt #2)

Recreates https://github.com/Qiskit/documentation/pull/91, but without squash merging.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.19 out of 24 committers have signed the CLA.:white_check_mark: NG-Glen:white_check_mark: SooluThomas:white_check_mark: frankharkins:white_check_mark: ElePT:white_check_mark: mtreinish:white_check_mark: beckykd:white_check_mark: Guillermo-Mijares-Vilarino:white_check_mark: jyu00:white_check_mark: 1ucian0:white_check_mark: EmilMagni:white_check_mark: wshanks:white_check_mark: WhiteSymmetry:white_check_mark: jakelishman:white_check_mark: divshacker:white_check_mark: elberttl:white_check_mark: shil-m:white_check_mark: Cryoris:white_check_mark: Eric-Arellano:white_check_mark: rht:x: filippotramonto:x: king-p3nguin:x: eltociear:x: 3yakuya:x: soon-tehYou have signed the CLA already but the status is still pending? Let us recheck it.


Please rename this repo

RSS is short for Real Simple Syndication and most people browsing https://github.com/Praqma/RSS would expect to get a feed - not a repo :-)

This is a dup of #4 :)

Closing it as such :-)


API: unexpose gap_freq

@agramfort celer_path signature is already quite heavy
I think gap_freq=10 is a super good default
Agree to remove it ?

yes ok

done in #181

done in #181


Setup a Pull Request template to the site

Fixes #80

I'm going to merge this. @JustinCappos, if you have feedback or concerns, we can make an new issue to update the template.


Improve mnemonic visibility in generate-mnemonic command

Close #1192

Can you add a test please?

Of course, sorry, I haven't realized there are e2e tests for this :man_facepalming:


Ringboard server not starting

After boot the servers don't start
While writing this I think I found the issue:
systemctl --user enable ringboard-server.service
The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=,
Also=, or Alias= settings in the [Install] section, and DefaultInstance= for
template units). This means they are not meant to be enabled or disabled using systemctl.

Possible reasons for having these kinds of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/, .requires/, or .upholds/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

Adding
[Install]
WantedBy=graphical-session.target

to the ringboard-server.service seems to fix enabling, but I didn't test the boot yet after boot it still doesn't start
All other info:
systemctl --user status ringboard-x11
○ ringboard-x11.service - X11 Ringboard clipboard listener
     Loaded: loaded (/home/leviska/.config/systemd/user/ringboard-x11.service; enabled; preset: enabled)
     Active: inactive (dead)
       Docs: https://github.com/SUPERCILEX/clipboard-history

systemctl --user status ringboard-server
○ ringboard-server.service - Ringboard server
     Loaded: loaded (/home/leviska/.config/systemd/user/ringboard-server.service; static)
     Active: inactive (dead)
       Docs: https://github.com/SUPERCILEX/clipboard-history

The services:
cat ~/.config/systemd/user/ringboard-server.service
[Unit]
Description=Ringboard server
Documentation=https://github.com/SUPERCILEX/clipboard-history
After=multi-user.target

[Service]
Type=notify
Environment=RUST_LOG=trace
ExecStart=/bin/sh -c 'PATH=~/.cargo/bin:$PATH exec ringboard-server'
Restart=on-failure

cat ~/.config/systemd/user/ringboard-x11.service
[Unit]
Description=X11 Ringboard clipboard listener
Documentation=https://github.com/SUPERCILEX/clipboard-history
Requires=ringboard-server.service
After=ringboard-server.service
BindsTo=graphical-session.target
After=graphical-session.target

[Service]
Type=exec
Environment=RUST_LOG=trace
ExecStart=/bin/sh -c 'PATH=~/.cargo/bin:$PATH exec ringboard-x11'
Restart=on-failure

[Install]
WantedBy=graphical-session.target

There is no logs from this boot (and old logs looks good), meaning that the service just didn't start(?)

        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

24 loaded units listed.

systemctl is-active graphical-session.target

inactive

hmmm

Ah that's was system targets
Here's users
systemctl list-units --type target --all --user

  UNIT                          LOAD      ACTIVE   SUB    DESCRIPTION
  basic.target                  loaded    active   active Basic System
●<EMAIL_ADDRESS>not-found inactive dead<EMAIL_ADDRESS>  bluetooth.target              loaded    inactive dead   Bluetooth
  default.target                loaded    active   active Main User Target
  graphical-session.target      loaded    inactive dead   Current graphical user session
  paths.target                  loaded    active   active Paths
  shutdown.target               loaded    inactive dead   Shutdown
  sockets.target                loaded    active   active Sockets
  sound.target                  loaded    inactive dead   Sound Card
  timers.target                 loaded    active   active Timers

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

10 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.

It seems that the problem is more with "why my desktop environment (cinnamon) doesn't start the graphical-session.target" and not with ringboard exactly

Changing graphical-session.target to default.target (as advised by someone on the internet) seems to work!
My config now seems fixed, you can close the issue if you don't want to dive into this issue

Well that's weird. I'm not sure there's anything I can do to improve this as the graphical session target is supposed to be started with your DE.
Thanks for figuring out the bug!


Installing meteor-universal on armv8 (64bit architecture)

Any tips for building meteor bundle for a Raspberry Pi  2 or  3  on a 64 bit system (Pine A64 ArchLinux)?
TIA

Hi, what do you mean? This fork should / will run on a Raspi 2 and 3.
Or do you want to run it on another architecture?
Please enter some more details

On another architecture -  Cortex A53 cores ...  http://wiki.pine64.org/index.php/Main_Page
64 Bit Arch Linux is the only thing usable at this time.   I would like to cross-build on this platform bundles that will run on Raspi 2 and 3.
TA

Hi @Sing-Li
nice device - haven't seen this before. Have you just tried to install the as described. I could pretty imagine that it just will run that device even on arch linux.
On the other hand, could you give me ssh access to that device? So I would come over an try to figure out what to do.
Cheers
Tom

Thanks @TomFreudenberg.    ssh access is a great idea.
I am from the Rocket.Chat FOSS project (https://rocket.chat).     Can you please come over to our 24 x 7 work + demo server (oauth using github is quick) and I'll get you hooked up?
https://demo.rocket.chat/channel/raspberrypi
Thanks again.

Hi @Sing-Li - I am online in rocket.chat - I not sure if I have the time yet to run the complete process but just to enabled the access would help to test and run it on weekend

After checking the board for the first time, its proc is aarch64 = armv8.
It is currenly (meteor <=1.2.x) not possible to build dev_bundle on that board in case of missing "v8" sources. I will give it a try when the new port 1.3.x is ready. Maybe we get a chance with a newer node/v8 release

Thanks!   That will be perfect timing.    We will be upgrading Rocket.Chat to 1.3.x  in a couple of weeks, currently waiting for minor bug fixes - and started to update our own support for ES6 modules and npm based packages.

Hi there. Any progress or new developments regarding meteor support for ARMv8?
I have built an Ubuntu Linux ARM Image that runs on older ARM media player. Its main function is to act as an inexpensive satellite router.
Before I have installed meteor on these older ARM device and it worked well. The older media player model has now been discontinued and I can only get an ARMv8 box with the functionality we require (tuner, etc). This is the problem, I can not build Meteor on it. It seems like we might have to move to another framework because Meteor does not support ARMv8. Not something I want to do seeing that I love meteor, but I can not delay it for much longer.

Hi @meteorza unfortunately it is currently not possible to bring meteor on the armv8 architecture with bundled packages. What you can try and that might work now with the 1.3.4 release:
Install mongo from apt, get nodejs v4 from github and build yourself, check that the commands for mongo and node are in $PATH. Then you can clone the latest universal fork and run scripts/generate-dev-bundle.sh. This should respect the binaries in $PATH and just link them. After that procedure you should have a locale dev_bundle_...tar.gz in your meteor directory. When running meteor --version this should be untared and you might get a working 1.3.4 environment.
Check the gist from @TPXP and the discussion update changes to his meteor for node v4 at: https://github.com/4commerce-technologies-AG/meteor/issues/38#issuecomment-227011971
Maybe you need to adjust some lines for npm dependencies from hist gist.
Make sure that you have your pre-requistes
sudo apt-get install build-essential debian-keyring autoconf automake libtool flex bison scons git mongodb

I would say 90% chance that it will work with some little adjustments.
If you can make a ssh tunnel to your machine, I am interested in supporting you.
Cheers
Tom

@Sing-Li - please checkout my comment https://github.com/4commerce-technologies-AG/meteor/issues/42#issuecomment-228319009 - maybe a new try :-)

Hi, I started some work on a new branch https://github.com/4commerce-technologies-AG/meteor/tree/release-<IP_ADDRESS>-universal-armv8
Please stay for moment until I made some cluster tests.
@meteorza my assumption won't work because the arch is currently not allowed in the scripts. I doing this by now.

Thank you Tom. What I have done so far was to:

git clone https://github.com/meteor/meteor.git -b release-1.4

and

scripts/generate-dev-bundle.sh

on an amd64 platform. Everything worked and I created a basic test app. So I am using node 4.4.5 with meteor on the Intel box. Then I created a meteor build for my app.
On the ARMv8 box I also install node 4.4.5 for arm64 and mongo. Node and npm shows correct versions (4.4.5 and 2.5.15). Extracted my meteor app on the ARMv8. I then try to run the app using:

PORT=3000 MONGO_URL=mongodb://localhost:27017/testapp ROOT_URL=http://<IP_ADDRESS> node main.js

and it complained it can not find fibers module.
So I run "npm -g install fibers"
and get the error:

Unsupported (?) architecture: arm64

and this is where I get stuck. So fibers not supported on arm64?

Yes, this is what I also got last time. I have done a lot of porting last time and maybe I can finish it this time.
I am currently waiting for my access to the linaro cluster to check whats possible. I will keep you informed.
Thanks for your research infos
Tom

Just to let you know why:
https://github.com/laverdet/node-fibers/blob/dfb51692edc6f93787c602ede6c08067f9ce7bf3/build.js#L26-L29
I checked the sources, might not be a big problem to update - currently waiting for a system to run on :-)

Yes. I saw that as well.
Will it help you if I give you ssh access to my ARMV8? while you waiting for linaro.

Hi @meteorza looks pretty cool the output :-)
I got answer from linaro minutes ago, account is getting up - if i have problems there I come back to your offer.

@meteorza - I am on and will check whats happen - keep you informed - let me check for an hour

thanks Tom, appreciate the effort

@meteorza - please, what is your output when running
uname -m

on your board?

Hi @meteorza
I am currently struggling with babel-cli - there is some error on arm64
You can already try to use my fibers fork
npm install fibers@https://github.com/4commerce-technologies-AG/node-fibers.git#v1.0.13-patch-arm64

or check for
"fibers": "1.0.13"

and replace by
fibers: "https://github.com/4commerce-technologies-AG/node-fibers.git#v1.0.13-patch-arm64"

I will make a PR to lavender when ready

Hi Tom
Apologies for only getting back to you now.

uname -a
Linux myhostname 3.14.70 #1 SMP Tue May 24 07:20:55 +06 2016 aarch64 aarch64 aarch64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty

;-) no problem - thanks ... so it seems aarch64 ist the architecture id - its same on my side

Brilliant Tom, the basic app runs with your fibers fork on my ARMV8.
I will make the build for the full meteor app and see if I run into any problems. I am so excited now..

Well, sounds great!
Looking forward to your report - The problem here with babel I will check after some short period of sleep. I am off for some time now.

I have added an issue to the babel tracker at: https://phabricator.babeljs.io/T7457

Hi there Tom
So basic app worked with your fibers patch. I tried an app with more packages. It includes meteor-accounts and so it needs bcrypt :-(
After my extracted my build app on the ARMV8 box, I ran:
npm install fibers@https://github.com/4commerce-technologies-AG/node-fibers.git#v1.0.13-patch-arm64
npm  install
npm install bcrypt

Everything installed fine, but when I run the app, I get the following error
 /usr/local/mytestapp/programs/server/node_modules/fibers/future.js:280
                                                throw(ex);
                                                ^
``
Error: /usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node: cannot open shared object file: No such file or directory
    at Error (native)
    at Object.Module._extensions..node (module.js:434:18)
    at Module.load (module.js:343:32)
    at Module.Mp.load (/usr/local/mytestapp/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at bindings (/usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
    at Module._compile (module.js:409:26)

Please remember that the app was built on an Intel box using mdg's release 1.4 branch and is being deployed on my ARMV8 box.
Is this related to the same babel problem you are experiencing?

Not to worry Tom, I solved it by:
npm install bcrypt
rm -rf /usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt
npm install -g bcrypt
cp -r /usr/local/lib/node_modules/bcrypt /usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/

Hi @meteorza
sounds like you got your app running on ARM64 :-) Correct?
Just one thing about deployment until I have finished the dev_bundle:

On your dev machine you run: meteor build --directory /tmp/myapp
Make yourself an archive: cd /tmp; tar -cvzf myapp.tgz ./myapp
Copy that archive to your ARM64 machine like: scp myapp.tgz user@arm64:/tmp
Ssh to your ARM64 machine
Unpack your app archive: cd /home; tar -xvzf /tmp/myapp.tgz
Finish npms for your server: cd /home/myapp/bundle/programs/server
Edit json and change fibers to my github line: vi package.json
Run installation of npms: npm install
Now you should be able to run the main.js
Go back to bundle main path: cd /home/myapp/bundle
Run: MONGO_URL="mongodb://localhost:27017/myapp" ROOT_URL="http://localhost:3000" PORT=3000  node main.js

That should do the job completely and you shouldn't need to install some npms somewhere else or globally.
Could you please check that.
Cheers
Tom

@Sing-Li - Some procedure as here: https://github.com/4commerce-technologies-AG/meteor/issues/42#issuecomment-228594289 should do the job for Rocket.Chat if you can run it on meteor 1.4-beta already?

Hi Tom
Step 5. Should be cd /home; tar -xvzf myapp.tgz
Step 7. When I enter your fibers github link in the package.json, npm install complains the link does not exist. So I run
npm install fibers@https://github.com/4commerce-technologies-AG/node-fibers.git#v1.0.13-patch-arm64 before I run npm install
yes, then you are able to launch app on ARMV8.
If you add a package to you app like meteor accounts, then meteor requires npm-bcrypt. Then you can not launch your apps if you follow these steps. The only I got it to work as to run :
npm install bcrypt
rm -rf /usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt
npm install -g bcrypt
cp -r /usr/local/lib/node_modules/bcrypt /usr/local/mytestapp/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/

after I ran npm-install.
When I ran npm-install on its own, it did not install npm-bcrypt for me. Maybe I am doing something wrong but I am just happy it works (for now).

Hi @meteorza
thanks for reply, I will check that with the simple-todos-react example. It has all the packages we are currently struggling with.
But in any way - great to know that you are fine yet :-)

I think the link in package.json for should be:
"fibers": "git+https://github.com/4commerce-technologies-AG/node-fibers.git#v1.0.13-patch-arm64"

You may see here the patch I added to our repo
https://github.com/4commerce-technologies-AG/meteor/commit/6a5906dda9ccec28aa3c605124ae278c01d06781
it looks like
"fibers": "https://github.com/4commerce-technologies-AG/node-fibers.git#v1.0.13-patch-arm64"

Well, the issue on node-4.4.6 is fixed. I will provide a patch until this is include into 4.4.7

After using our patched nodejs 4.4.6 and the arm64 updated node-fibers, meteor-1.4-beta is now available on ARM64 architecture

Well done Tom. I will test with with 4.4.6 as soon as I get a chance.

Just wait for some few steps to finish, otherwise you have to rebuild all by yourself.

@meteorza @others_interested_in_aarch64
I have placed a first beta from beta.6 on bintray. So if you are running the normal checkout by
git clone --depth 1 --branch release-1.4-universal-beta https://github.com/4commerce-technologies-AG/meteor.git

and run
meteor --version

afterwards, you will automatically get a first beta binary. It runs already pretty well.
Cheers
Tom

Great Tom, thank you, will have a look.

Issue with mongo shell 3.2.x is related #57

debian@pine64:~/meteor$ scripts/generate-dev-bundle.sh
CHECKOUT DIR IS /home/debian/meteor
BUILDING DEV BUNDLE 0.6.15 IN /tmp/generate-dev-bundle-PdFvau6f
/tmp/generate-dev-bundle-PdFvau6f/bin/node
/tmp/generate-dev-bundle-PdFvau6f/bin/npm
{ npm: '2.15.9',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '56.1',
modules: '46',
node: '4.6.1',
openssl: '1.0.2j',
uv: '1.9.1',
v8: '<IP_ADDRESS>',
zlib: '1.2.8' }
npm WARN package.json<EMAIL_ADDRESS>No description
npm WARN package.json<EMAIL_ADDRESS>No repository field.
npm WARN package.json<EMAIL_ADDRESS>No README data
npm WARN package.json<EMAIL_ADDRESS>No license field.

<EMAIL_ADDRESS>install /tmp/generate-dev-bundle-PdFvau6f/build/npm-server-install/node_modules/fibers
node build.js || nodejs build.js

Unsupported (?) architecture: arm64
sh: 1: nodejs: not found
npm ERR! Linux 3.10.102-0-pine64-longsleep
npm ERR! argv "/usr/local/bin/node" "/tmp/generate-dev-bundle-PdFvau6f/bin/npm" "install"
npm ERR! node v4.6.1
npm ERR! npm  v2.15.9
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>install: node build.js || nodejs build.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node build.js || nodejs build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js || nodejs build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/generate-dev-bundle-PdFvau6f/build/npm-server-install/npm-debug.log
debian@pine64:~/meteor$

Why are you trying to build the developer bundle ? There is already a prebuilt bundle available on the bintray, which the code from the release-1.4-universal-beta branch should fetch automatically.

o downloaded the dev_bundle_Linux_aarch64_4.0.15.tar.gz and extracted it...what to do then? is there a tutorial?

This should not be required. All you have to do is cloning the repo then starting meteor, as said here https://github.com/4commerce-technologies-AG/meteor/issues/42#issuecomment-229900554


pull request for e2e test at 12/09/2016 10:26:01

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


chore(main): release veto 0.4.2

:robot: I have created a release beep boop
0.4.2 (2024-07-09)
Bug Fixes

veto: fix ts return type of refineArray (83e2052)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

veto-v0.4.2
:sunflower:


Improve performance

Performance has been reported to be poor sometimes, especially in Firefox.
Analyse the possible sources of performance problems and eliminate them.

Possible performance culprits

Too many unnecessary server calls - loading and re-loading should be optimized
Loading more js than necessary (e.g., why does impressum.html need talklist.js and ui.js? Seems the code separation is wrong)
Inefficient local storage - maybe store processed data in indexed db/local cache instead of raw server data
Inefficient use of knockoutjs-listeners (e.g., for every talk, a listener is registered to update the models when the language changes; one listener for all seems more useful)
Unminimized js (could possibly be minimized when running maven install)

Optimize loading
The data should only be loaded from the server when necessary.
Currently, I implemented a timeout - the data is valid for two hours. After that, the data is reloaded from the server and the timeout is reset.
This is still suboptimal:

If the data changes on the server, we only get the changes after two hours. It should be possible to ask the server if there is new data
When the user is offline and the timeout has run out, the app becomes slow again, because it tries to contact the server everytime. It should be possible to check for offline state.

Offline detection
It is difficult to detect the online/offline state of the browser. There is an API in HTML 5 for this, but it is not consistently implemented across browsers. The safest bet seems to be to listen for the status of the appcache file load and set an offline flag when the appcache file cannot be loaded: http://www.html5rocks.com/en/mobile/workingoffthegrid/#toc-appcache
I implemented this, but unfortunately, the offline flag can only be set after the page is already loaded. Therefore, I store the offline state in the local cache, so that from the second time the app is loaded in offline state, it does not try to connect to the server.This also means that when the app goes online again, the app is in offline state on the first load. If we had https://github.com/dukecon/dukecon_server/issues/30 implemented, it could be an idea to check for data refreshes at this point and reload the page.

Implemented a regular check for server updates based on the newly built etag-hash-information.

With the actionstaken, performance seems to be a lot better, so closing the issue for now.


Finish introduction

Codecov Report

Merging #263 (3d6a4c8) into master (222810c) will increase coverage by 0.11%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #263      +/-   ##
============================================
+ Coverage     51.56%   51.68%   +0.11%
  Complexity      733      733
============================================
  Files           141      141
  Lines          3444     3452       +8
  Branches        481      481
============================================
+ Hits           1776     1784       +8
  Misses         1542     1542
  Partials        126      126

Impacted Files
Coverage Δ

...dress/logic/commands/module/EditModuleCommand.java
62.96% <0.00%> (+0.34%)
:arrow_up:

...c/main/java/seedu/address/model/module/Module.java
90.74% <0.00%> (+1.37%)
:arrow_up:

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


Wallet Crashes when trying to do a Send tx

I was testing out the dcr android wallet and ran into issues where the wallet immediately crashed when inputting numbers on the send page! See screen capture: https://imgur.com/a/pUcLgYx
Edit: After closer inspection it appears the crash occurs only when I start the payment amount with a period.....so entering .1 for a payment doesn't work, but entering 0.1 works.

Error is fixed in latest release.


Fits file formats

Fixes #187 and adds tests to make sure what is input and written to disk does not change.

Codecov Report

Merging #188 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #188      +/-   ##
=========================================
+ Coverage   74.34%   74.4%   +0.06%
=========================================
  Files         118     119       +1
  Lines       12071   12102      +31
=========================================
+ Hits         8974    9005      +31
  Misses       3097    3097


pytz.exceptions.UnknownTimeZoneError: '/freeassociation.sourceforge.net/Europe/Zurich'

Gnome Next Meeting applet version:
Python version: 3.10.0
Operating System: Fedora 35

Description
Nothing happens when launching the applet. When I run it from the command line, I'm seeing the error about incorrect timezone.
What I Did
(gnome-next-meeting-applet:5421): e-data-server-CRITICAL **: 09:49:24.634: client_set_source: assertion 'E_IS_SOURCE (source)' failed

(gnome-next-meeting-applet:5421): e-data-server-CRITICAL **: 09:49:24.638: client_set_source: assertion 'E_IS_SOURCE (source)' failed

(gnome-next-meeting-applet:5421): e-data-server-CRITICAL **: 09:49:24.642: client_set_source: assertion 'E_IS_SOURCE (source)' failed
Traceback (most recent call last):
  File "/usr/bin/gnome-next-meeting-applet", line 33, in <module>
    sys.exit(load_entry_point('gnome-next-meeting-applet==1.6.0', 'console_scripts', 'gnome-next-meeting-applet')())
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/cli.py", line 8, in main
    gnma.run()
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/applet.py", line 368, in run
    c.main()
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/applet.py", line 363, in main
    self.build_indicator()
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/applet.py", line 356, in build_indicator
    self.make_menu_items()
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/applet.py", line 209, in make_menu_items
    self.events = self.get_all_events()
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/applet.py", line 123, in get_all_events
    event_list = evolutionCalendar.get_all_events(
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/evolution_calendars.py", line 93, in get_all_events
    events += self._get_gnome_events_from_calendar_source(source)
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/evolution_calendars.py", line 67, in _get_gnome_events_from_calendar_source
    start_time = get_ecal_as_utc(value.get_dtstart())
  File "/usr/lib/python3.10/site-packages/gnome_next_meeting_applet/evolution_calendars.py", line 27, in get_ecal_as_utc
    tz = pytz.timezone(ecalcomp.get_tzid() or "UTC")
  File "/usr/lib/python3.10/site-packages/pytz/__init__.py", line 176, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: '/freeassociation.sourceforge.net/Europe/Zurich'

oh i was just reading this code in gnome-calendar referring to it in gnome-calendar,
did you edit/save some events in gnome-calendar right?

found the same issue here https://github.com/owncloud/core/issues/4428
will issue a workaround...


Add video view to allow video preview of games in gamelist (port from RetroPie / fieldofcows work)

Please make sure your PR is ready to be merged !

[X] You added the changes in CHANGELOG.md
[X] You choose the right repository branch to make the PR
[X] You described the PR as below

Changes :

Add video preview support

Related to (put here the others PR in other repositories)

Will need another PR to build VLC into build root and add proper dependencies

Hi !
Thank you for your interest in Recalbox :)
We've been working on our own way of adding video preview that involves ffmpeg and not vlc. Looks promising and needs final tunings. So unless we can't make it with ffmpeg, we won't merge :)

Ok, good to know. There's another interesting improvement from RetroPie ES fork for speeding up shutdown (saving only modified metadata, see here https://github.com/RetroPie/EmulationStation/pull/78). I have merged it in my local recalbox-emulation repo (not comitted yet). Have you got interest in merging this functionality ?

@digitalLumberjack has been working on the start speed up
I tried the commits you mentionned but haven't noticed any real difference. As i believe i must have failed somehow (my C++ knowledge is pretty rusty), i'll just make sure no one in the team worked on that and i'll let you know. Keep in touch !

OK. I'm referring to shutdown speed issue. Loading is okay on my side with thousands of ROMs on the system. Shutdown however just takes ages so I think it might be a worthy addition for people using ES with many ROMs.

That's truly an issue, indeed ^^ I'll tell you asap :)

@rtissera please make a new PR for the decreased shutdown time :)

Closing this, will push new PR for decreased shutdown time.

Any traction on the ffmpeg solution?


net: TCP server did NOT Close Conn when I close connection

What version of Go are you using (go version)?

$ go version
go version go1.11 darwin/amd64

Does this issue reproduce with the latest release?
I'm think so
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/xxxxx/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/opt/gopath"
GOPROXY=""
GORACE=""
GOROOT="/opt/go"
GOTMPDIR=""
GOTOOLDIR="/opt/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/0d/8cgyz4bx1s771vg_611m4cfm0000gn/T/go-build673412745=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
I want start a TCP server, when I use telnet or some client to connect the server, after I close client part, the server part still keep listen port and did not release it(the code did not go to defer function to close Conn).
package main

import (
	"fmt"
	"net"
	"os"
)

func main() {
	l, err := net.Listen("tcp", ":1234")
	if err != nil {
		fmt.Println("Error listening: ", err)
		os.Exit(1)
	}
	defer l.Close()
	for {
		conn, err := l.Accept()
		if err != nil {
			fmt.Println("Error accepting: ", err)
			os.Exit(1)
		}

		fmt.Printf("Start to receive message %s -> %s \n", conn.RemoteAddr(), conn.LocalAddr())

		go handle(conn)

		defer func() {
			fmt.Println("Close the connection in ", conn.RemoteAddr())
			conn.Close()
		}()
	}
}
func handle(conn net.Conn) {
	// do something
}

$ telnet localhost 1234
Trying ::1...
Connected to localhost.
Escape character is '^]'.
^]
telnet> Connection closed.

the server log:
Start to receive message [::1]:54092 -> [::1]:1234

The netstat
$ netstat -A |grep 54092
2fd4cc575c0e8c8b  960b59c tcp6       0      0  localhost.search-agent                        localhost.54092                               CLOSE_WAIT
2fd4cc575c0e9dcb be2b0a98 tcp6       0      0  localhost.54092                               localhost.search-agent                        FIN_WAIT_2

What did you expect to see?
I want the Conn close when I disconnect it, or close later.
What did you see instead?
2fd4cc575c0e8c8b  960b59c tcp6       0      0  localhost.search-agent                        localhost.54092                               CLOSE_WAIT

always CLOSE_WAIT

@suutaku sorry, I cannot understand that, in which case cause it become a bug?
This go func() is made for a watchdog to close the connection conn.Close().
I know in each connection will create go func is a dirty way, and the regular expression cause a lot CPU time, but there always have solutions to solve it.
We can use some event engine, but this is out of the topic.


Design issue affecting middleware & route composability

Hello! :wave:
So firstly, I meant to raise this so long ago so apologies if I get a few details wrong. I'm not currently working on a http4s project so I have to go from memory. Finally I need to be doing other work right now so I'm just going to smash this out without polish.
Requests are currently isomorphic to Request => IO[Option[Response]] right? That shape makes it impossible to do a safe authentication middleware because there's no way for the middleware to know whether a request has a response without executing it.
I've give a concrete example.

Say you've got a deleteUser route. Provide a Request with /user/3/delete and it returns an IO. Execute that IO and it deletes user 3 from the DB and returns Some[Response]
An auth middleware has two choices in how to wrap this...

Check JWT immediately and return IO[Some[NahMateFailure]] on auth-fail, even if the Request has a url of /about
Call underlying route to see if it's applicable to the given route. If it is (i.e. underlying returns IO[Some), then check JWT and return Some[NahMateFailure] on auth-fail

Can you see the problem here?

Method 1 means we lock down all routes. It also means we can't compose it with other routes because it will return IO[Some which will prevent other composed routes from even getting a chance to respond.
Method 2 means we retain route composability but actually perform the deletion before we the auth-check.

My idea on how to solve this you'd actually need a Request => IO[Option[IO[Response]]] where the first IO layer (contractually) allows for checking preconditions and the inner IO layer actions the request and can mutate the world accordingly. With this design a middleware could safely merge with the outer-layer IO to run it's own side-effects (eg. maybe check user exists in DB or whatever), then give the underlying route a change to check the URI and maybe perform it's own side-effect-driving pre-conditions. Only if we get a Some[IO[Response do we activate the authentication and then execute the response handler.
Ok cool, I hope this was helpful. Cheers & good luck!

It has been our position that authentication should not first check whether there is a matching route, because the difference between a 401 and a 404 leaks information.  The traditional way to make this composable with public routes is to put the public routes first in <+>, or to use a Router where a prefix is hidden.  This proposal is more powerful, but the extra power is very rarely what you actually want.


Can not import module for templating

Thank you for creating this useful tool.
So, I create a template file called template.typ that contains settings for fonts, colors etc. The template is fine no errors.
It is located at the root dir.
Then I tried to import the template to my page:
#import "../template.typ"

I encountered error with typst-live :
= hint: cannot read file outside of project root
= hint: you can adjust the project root with the --root argument

with typst w dir\src.typs --root="path\to\root" , it works just fine.
the --root arg is owned by typst  but not typst-live.
perhaps we need a way to bypass args to the typst?
Thank you

How do you launch typst-live and what arguments do you pass?

simply typst-live source.typ with no arguments

Yea I guess one solution would be to separate typst and typst-live args with --, like cargo run does it, but I don't know how to do it with clap yet.

With https://github.com/ItsEthra/typst-live/commit/cfdb60dbc9bff2b22e843e0abc139b9cc4e59c97 you should now be able to pass extra args like this typst-live file.typ -- --root=..., could you verify if it works?

@ItsEthra It does not work

Until I fix it I recommend using typst watch to output a pdf file which you can serve with typst-live -R

Okay, sure. I'll use this command temporarily.
https://github.com/malkoG/dotfiles/blob/main/private_dot_config/mise/tasks/executable_typst


Could you provide a c++ demo?

Thanks for your sharing!
Could you provide a c++demo?

@shaoxiaohu

hi,do you implement it? @xhzcyc


Improve support to raspberry pi 5

There are a couple of problems:

icm20689 can't use cs while in operation by OS in pi 5.
bmp390 is not compatible with bmp280 and the only implementation is async
- Check #93

Note: The tests to work it needs to restart the board since the pins will be "used" by the gpiosysfs system. This can be detected by running gpioinfo.

TODO: gpiochip0 should be used in pi 4 and gpiochip4 for pi5

There is a workaround for icm2p689 that's change overlay spi-3cs to just spi-1cs, it's related to new kernel. I think the library need an update to use newer embedded-hal with cs pin.

There are a couple of problems:
- icm20689 can't use cs while in operation by OS in pi 5.
- bmp390 is not compatible with bmp280 e the only implementation is async
TODO: gpiochip0 should be used in pi 4

I believe that first we need an answer from: https://github.com/rust-embedded/linux-embedded-hal/issues/116

this just add the new pin system for now

There are a couple of problems:

icm20689 can't use cs while in operation by OS in pi 5.

bmp390 is not compatible with bmp280 and the only implementation is async

Check bmp390: Add first version #93

Note: The tests to work it needs to restart the board since the pins will be "used" by the gpiosysfs system. This can be detected by running gpioinfo.

TODO: gpiochip0 should be used in pi 4 and gpiochip4 for pi5

Do the rpi changed the hardware pin maps?

The pi5 use a completely different hardware for gpio access


UMD support (aurelia CLI)

https://github.com/chartjs/chartjs-plugin-deferred/issues/2
I'm getting same problem:

Uncaught TypeError: Cannot read property 'Annotation' of undefined
at Object.i.6../annotation.js (vendor-bundle.js:sourcemap:49907)

Annotations still work thought. So basing on linked topic I'm guessing that umd support is needed (I checked gulp file - no umd pipeline there).
Any plans for supporting umd - needed by aurelia cli bundler?

No plans, but if we'll entertain a pull request to add the feature.

Well out of date


brew bundle is unsupported

$ brew bundle Caskfile
Warning: brew bundle is unsupported and will be replaced with another,
incompatible version at some point.
Please feel free volunteer to support it in a tap.
https://github.com/Homebrew/homebrew/issues/30815
May need to update documentation with new recommendation instead of brew bundle Caskfile:
https://github.com/caskroom/homebrew-cask/blob/master/doc/AUTOMATION.md

Closing in favour of #6537.


How to set zoom and position (visible extent) at runtime

How would I go about setting the:

Zoom
Visible Extent (Position) - Even setting the Center Coordinates of the image would be fine here

after the image was loaded?

You might need to read the documentation of the Cropper.js as this is just an example of Cropper.js.


—
Reply to this email directly, view it on GitHub
https://github.com/Herand19/Eth2.0/pull/13#pullrequestreview-2089773804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BESIB2XLF77SWVARHHYIQZTZE7LP3AVCNFSM6AAAAABGE6BSESVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAOBZG43TGOBQGQ
.

—
Reply to this email directly, view it on GitHub
https://github.com/Herand19/Eth2.0/pull/13#pullrequestreview-2089773804,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BESIB2XLF77SWVARHHYIQZTZE7LP3AVCNFSM6AAAAABGE6BSESVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAOBZG43TGOBQGQ
.
You are receiving this because you commented.Message ID: <Herand19/Eth2.
@.***>

I didn't approve of anything.I'll stole much of my money.You'll trick me.I knew you had to 560 million dollars out of the same day as soon as you'll trick me.Start your little sticking program


async optional transformer + super -> Cannot read property 'body' of undefined

Hello, 6to5 rocks! Here is an issue:
function Base() {}

Base.prototype.meth = async function(arg) {
  return arg;
};

class Extended extends Base {
  async meth(...args) {
    return await super.meth(...args);
  }
}

# this works
6to5 --experimental ./6to5-test.js

# TypeError: ./6to5-test.js: Cannot read property 'body' of undefined
6to5 --optional=asyncToGenerator ./6to5-test.js
6to5 --experimental --optional=asyncToGenerator ./6to5-test.js
6to5 --optional=bluebirdCoroutines ./6to5-test.js
6to5 --experimental --optional=bluebirdCoroutines ./6to5-test.js

So this is a potentially tricky issue to solve because the classes transformer needs to be ran after the modules transformer but the asyncToGenerator transformer needs to be ran after the classes transformer but before the modules transformer...

Maybe the optional transformer can be split up or run twice...

Fixed in the 3.0.0 branch

Thank you

Fixed as of 3.0.0


[Bug]: DisplayGate from<EMAIL_ADDRESS>

Telegram Application
Telegram Desktop
Describe the Bug
The error is on DisplayGate:
Attempted import error: 'DisplayGate' is not exported from<EMAIL_ADDRESS>(imported as 'DisplayGate').
To Reproduce
import { SDKProvider, DisplayGate } from<EMAIL_ADDRESS>
function SDKProviderError({ error }) {
  return (

      Oops. Something went wrong.

          {error instanceof Error
            ? error.message
            : JSON.stringify(error)}

  );
}

function SDKProviderLoading() {
  return
SDK is loading.
;
}

function SDKInitialState() {
  return
Waiting for initialization to start.
;
}

export function TmaSDKLoader({ children }) {
  return (
    <SDKProvider
      options={{
        async: true,
        complete: true,
      }}
    >
      <DisplayGate
        error={SDKProviderError}
        loading={SDKProviderLoading}
        initial={SDKInitialState}
      >
        {children}
      </DisplayGate>
    </SDKProvider>
  );
}

Expected Behavior
Expect to run normall and get the telegram data from user

Hey. There is no such component as DisplayGate anymore. You can now see how it works in React and Next templates.
Documentation will be released soon

Documentation related to this topic. Check this out!
https://docs.telegram-mini-apps.com/packages/tma-js-sdk-react