Passing array of views to template engines?

As far as I understand it at the moment, when Express has an array of view directories it does the lookup initially and passes whichever file it finds to the template rendering engine.
I've got a use case where I'd like the template engine to include / extend templates from the same set of view directories defined in Express. That way I could mix and match files across multiple locations and allow for more granular template overwriting.
Would passing that array to the template engine be considered at all? As far as I can see it would only need one change (see below) but I'm not sure what the wider impact of that would be;
View.prototype.render = function render(options, callback) {
  debug('render "%s"', this.path);

  var roots = [].concat(this.root);

  this.engine(this.path, options, callback, roots);
};

I'm happy to get a pull request together.

Hi! Everything from View is already available to the view engine renderer, and many of the view engines have been using the array of roots for a long time. Within the __express function (or whatever you passed into as your engine function), they are available as this.root.

Awesome, thank you :)

No problem!  If this is the case for what lead to this question, one possible simple solution (assuming they are wiling to add an argument to their renderFile signature) would be to use exports.renderFile(path, this.root, options, fn); at https://github.com/pugjs/pug/blob/9578e7c7cb231c53e1d66d9c78063d200405d908/lib/index.js#L399
Another possibility is to add the this.root into the options object before passing to renderFile inside the __express function.
But yea, basically the way the Express.js view engine is currently designed is that the function given to Express (or implied from the __express export) just becomes the engine method on the View object, so it is allowed to perform any operation on View as it needs (including using .lookup() to just do additional lookups).

Yep, it's pug I'm looking at. Funnily enough they came up with a workaround which works for my use case, turns out you can define a basedir option for pug which works in tandem with express to load the original template. Unfortunately that particular workaround doesn't allow for multiple directories so I think there might still be some scope for them to use roots directly from express.
Thanks for pointing me in the right direction!

No problem!


[tasks] Reference which deployment the task applied to

If a task runs against a deployment, as most do, please add a column to bosh tasks saying which deployment it is running against; plus include it in the /tasks and /tasks/ID API endpoints. Thanks!

Makes sense. Btw I'm thinking to introduce an audit log feature with records about which CPI calls made, which agent calls made and of course which resources were affected etc.

More audit logs would be lovely
On Thu, Aug 27, 2015 at 5:56 PM, Dmitriy Kalinin<EMAIL_ADDRESS>wrote:

Makes sense. Btw I'm thinking to introduce an audit log feature with records about which CPI calls made, which agent calls made and of course which resources were affected etc.
Reply to this email directly or view it on GitHub:
https://github.com/cloudfoundry/bosh/issues/940#issuecomment-135594313

Closing - deployment-related tasks now include a deployment field (since v255.4).


Move standard authorization into SDK

What problem does your feature solve?
Right now authorization lives in a random crate inside of soroban-examples, which is not obvious or intuitive. This has been practical while we've been improving it, but won't be practical once people actually need to use it.
What would you like to see?
Standard authorization machinery should live in the SDK.
What alternatives are there?
It would also be reasonable to put this machinery in a separate crate, which I imagine could have advantages since authorization also has a "not inside the host" part (generating messages and signatures externally) that could be used by the CLI.

Resolved by https://github.com/stellar/rs-soroban-sdk/pull/473


update version, changelog and thrid party notices

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[ ] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).
[ ] The wiki is updated with any design decisions/details.

Codecov Report

Merging #14280 into release-2020.09 will decrease coverage by 0.02%.
The diff coverage is n/a.

@@                 Coverage Diff                 @@
##           release-2020.09   #14280      +/-   ##
===================================================
- Coverage            59.84%   59.82%   -0.03%
===================================================
  Files                  692      692
  Lines                38380    38380
  Branches              5524     5524
===================================================
- Hits                 22968    22959       -9
- Misses               14222    14228       +6
- Partials              1190     1193       +3

Impacted Files
Coverage Δ

src/client/datascience/crossProcessLock.ts
79.41% <0.00%> (-11.77%)
:arrow_down:

src/client/common/utils/platform.ts
60.00% <0.00%> (-8.00%)
:arrow_down:

src/client/linters/pydocstyle.ts
86.66% <0.00%> (-2.23%)
:arrow_down:

src/client/datascience/debugLocationTracker.ts
76.56% <0.00%> (-1.57%)
:arrow_down:

src/client/common/process/proc.ts
14.49% <0.00%> (-0.73%)
:arrow_down:

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 3efbc39...9685e98. Read the comment docs.


On click permissions don't work

The extensions doesn't work when I enable 'On click' site access. The elements field doesn't get filled after clicking. It does work when I set it one level up, to:  'On specific sites'.
Chome Version 125.0.6422.141 (Official Build) (64-bit) on Linux

Yes, and this is a specification of Chrome.
The chrome.cookies API does not work with 'On click' permissions.
You need permission for a specific host to run this API.
I too would have preferred to have cookies referenced only on click, but that doesn't seem to be possible.

Well, that sucks but at least thanks for the fast and clear answer.


precision issue

Hi, thanks for your work. I'm trying your fa2-cm but it raises error because of the following assertion:
assert do.is_contiguous()
assert q.stride() == k.stride() == v.stride() == o.stride() == do.stride()

I solve this problem by using .contiguous() as follows:
q = q.contiguous()
k = k.contiguous()
v = v.contiguous()
o = o.contiguous()
do = do.contiguous()

Another error is, it only supports fp16 inputs, so I convert q/k/v from fp32 to fp16, and convert the out from fp16 to fp32 after fa2.
After these corrections, I can run fa2-cm normally.
However, the results seem bad, because the gradients explode.
I want to ask the possible reasons. It's because of my aforementioned modifications?
Looking forward to your reply~

Hi,
For FP32 support, I need to make a minor edit. This was attempted by someone else earlier, but their code was buggy so I had to revert it. I will make this edit later this week and let you know!

Hi,
For FP32 support, I need to make a minor edit. This was attempted by someone else earlier, but their code was buggy so I had to revert it. I will make this edit later this week and let you know!

Do you have any ideas why fp32 will produce wrong results in backward?

Oh it shouldn't, basically I specified in the code that things should be FP16, which was taken from the original Triton example. It should take the dtype of the tensors that are being fed in instead.


FlowManager not initialized while init method called.

I did everything according to the guide: the libraries, the application onCreate method. I've got this error when running the app:
FATAL EXCEPTION: main
Process: tinkoff.androidcourse, PID: 2981
java.lang.RuntimeException: Unable to start activity ComponentInfo{tinkoff.androidcourse/tinkoff.androidcourse.NavigationActivity}: java.lang.IllegalStateException: The global database holder is not initialized. Ensure you call FlowManager.init() before accessing the databas
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
 Caused by: java.lang.IllegalStateException: The global database holder is not initialized. Ensure you call FlowManager.init() before accessing the database.
    at a.b.a.a.b.f.c(Unknown Source)
    at a.b.a.a.b.f.b(Unknown Source)
    at a.b.a.a.b.f.i(Unknown Source)
    at a.b.a.a.b.f.a(Unknown Source)
    at a.b.a.a.f.a.e.f(Unknown Source)
    at a.b.a.a.f.a.e.a(Unknown Source)
    at a.b.a.a.f.a.a.b(Unknown Source)
    at a.b.a.a.f.a.d.b(Unknown Source)
    at tinkoff.androidcourse.e.b(Unknown Source)
    at tinkoff.androidcourse.e.a(Unknown Source)
    at android.support.v4.b.l.b(Unknown Source)
    at android.support.v4.b.r.a(Unknown Source)
    at android.support.v4.b.r.d(Unknown Source)
    at android.support.v4.b.r.a(Unknown Source)
    at android.support.v4.b.f.c(Unknown Source)
    at android.support.v4.b.r.b(Unknown Source)
    at android.support.v4.b.r.a(Unknown Source)
    at android.support.v4.b.r.b(Unknown Source)
    at android.support.v4.b.r.f(Unknown Source)
    at android.support.v4.b.o.o(Unknown Source)
    at android.support.v4.b.m.onStart(Unknown Source)
    at android.support.v7.app.e.onStart(Unknown Source)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1248)
    at android.app.Activity.performStart(Activity.java:6696)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6119)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

DBFlow:4.0.2
Gradle:2.3.2
buildToolsVersion:25.0.3
Application class is added to manifest.
public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        PrefManager.newInstance(this);
        FlowManager.init(this);
    }
}

I found the solution!!! it was all about proguard rules. Please, write about it on the main page. It should be more noticable.

It has its own section on the documentation website....https://agrosner.gitbooks.io/dbflow/content/proguard.html

I added this line but it did not remove the throwable I am receiving.
I have the initialization in my Application class.
FlowManager.init(new FlowConfig.Builder(this).build());
I setup my Database properly.
@Database(name = DoorDashDb.NAME, version = DoorDashDb.VERSION) public class DoorDashDb extends BaseModel {     public static final String NAME = "DoorDashDb";     public static final int VERSION = 1; }
I created my Table.
`@Table(database = DoorDashDb.class)
public class Restaurant extends BaseModel implements Parcelable {
@Column
@PrimaryKey
private int id;

@Column
private String name;

...`

I am having the same issue:
My application class contains:
FlowManager.init(new FlowConfig.Builder(applicationContext)                 .openDatabasesOnInit(true)                 .build());         FlowLog.setMinimumLoggingLevel(FlowLog.Level.V);
My database:
@Database(name = PagerDatabase.NAME, version = PagerDatabase.VERSION) public class PagerDatabase {     public static final String NAME = "PagerDatabase";     public static final int VERSION = 1; }
My table:
`@Table(database = PagerDatabase.class)
public class PagerContact extends BaseModel{
@Column
@SerializedName("id")
@Expose
private Long id;

@Column
@PrimaryKey
@SerializedName("account_id")
@Expose
private Long accountId;

........
`
I added the following to proguard:
-keep class * extends com.raizlabs.android.dbflow.config.DatabaseHolder { *; } -keep class net.sqlcipher.** { *; } -dontwarn net.sqlcipher.**
When I try to save any object, it gives me:
java.lang.RuntimeException: java.lang.IllegalStateException: The global database holder is not initialized. Ensure you call FlowManager.init() before accessing the database.
Is there anything I am missing? Thanks beforehand.

Should I open a issue to get answered?

https://stackoverflow.com/questions/45856124/dbflow-ensure-you-call-flowmanager-init-before-accessing-the-database

I'm encountering this issue also.
I have the proguard rules updated like in the documentation, but it is not working.
If I disabled the minification process the app works, thus I suspect the proguard rules to affect the app.


⚠ ClamAV has degraded performance

In 363aeb3, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 193 ms

Resolved: ClamAV performance has improved in 935493f after 6 minutes.


feat(card): add shadow parts

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Build (npm run build) was run locally and any changes were pushed
[x] Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: https://github.com/ionic-team/ionic/issues/20916
What is the new behavior?

Adds card-button part for clickable portion of card

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

Discussed with the team, and we are going to hold off on this for now. Anyone who has a use case for this, please open a feature request. Thanks!


Child icons placing outline of the image . How to reduce the radius

Thanks for the Wonderful Library ..
I have problem diffcult to find the solution ..
Problem is Child Icons are not clear visible. It place end of ViewGroup
How to reduce the radius and show the icon clear visible to center of  border/stroke.

and other question it is possible to rotate  the background image based upon ACTION_MOVE
Thanks in Advance

Right now it is not possible to set the radius of the background image or the child icons.
I am planning to make it possible via setters and xml attributes in the future, but not in the near future unfortunately.
You can override the radius calculation directly in the onLayout method if you really need it:
https://github.com/szugyi/Android-CircleMenu/blob/master/circlemenu/src/main/java/com/szugyi/circlemenu/view/CircleLayout.java#L340
or you can use your own background by placing a view underneath the CircleLayout.

Thanks Szugyi for quick response ,
I used background for CircleLayout
<com.szugyi.circlemenu.view.CircleLayout
       android:id="@+id/circle_layout"
       android:layout_width="250dp"
       android:layout_height="250dp"
       android:layout_above="@+id/selected_textView"
       android:layout_gravity="center_horizontal"
       android:background="@drawable/bg"
       circle:firstChildPosition="East"
       circle:isRotating="true">

Added

radius += 40;

    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        int layoutWidth = r - l;
        int layoutHeight = b - t;

        radius = (layoutWidth <= layoutHeight) ? layoutWidth / 3
                : layoutHeight / 3;
        radius += 40;
        Log.e("onLayout", "radius: " + radius);
        circleHeight = getHeight();
        circleWidth = getWidth();
        setChildAngles();
    }

Is that Right ?

Well, hard coding pixel values is dangerous, you could play with increasing the divisor value (which is right now 3). Anyway yes, right now this is the only way you can align the background and the icons.

You right.. due to pixel value In Config change .. it showing wrong place..
So played a little changes in setChildAngles ()
float gap=   radius - TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 18, getResources().getDisplayMetrics());
            childWidth = child.getMeasuredWidth();
            childHeight = child.getMeasuredHeight();
            left = Math
                    .round((float) (((circleWidth / 2.0) - childWidth / 2.0) + gap
                            * Math.cos(Math.toRadians(localAngle))));
            top = Math
                    .round((float) (((circleHeight / 2.0) - childHeight / 2.0) + gap
                            * Math.sin(Math.toRadians(localAngle))));

I tested in sw360 and sw320 device .. Both showing same.
Is that right for future use?

It still feels a little hacky, but it might be good for your situation. I will try to come up with something more robust and customizable later.

Hey @ananthDev how did you remove the red background of the icons
circle:circleBackground="@null"    isn't working

Hey @jxc02,
circle:circleBackground="@null" sets the background of the whole circleLayout. For the individual menu items, you can set the background individually. In the sample you can modify the background for them in the menu_items.xml. Source: https://github.com/szugyi/Android-CircleMenu/blob/master/sample/src/main/res/layout/menu_items.xml

Yes I just found that
Wow you reply fast. Thanks a lot!

New version 2.0.0 is now out, and makes it possible to set the radius of the circle.


Dynamic schema query resolves to dynamic data struct?

In the starwars example, the field resolver does a downcast_ref to a predefined struct. Is there a way for this to be also dynamic?
.field(
    Field::new("name", TypeRef::named_nn(TypeRef::STRING), |ctx| {
        FieldFuture::new(async move {
            let char = ctx.parent_value.try_downcast_ref::<StarWarsChar>()?;
            Ok(Some(Value::from(char.name)))
        })
    })
    .description("The name of the human."),

Looks like I can just pass a hashmap data type instead


JSONResponse.getRawBody() method

I was using the other project Open Unirest because it fixed a lot of issues with this project.  I see now that this has all been updated and merged back into this project.  GREAT!
However one thing I am missing is if JSONResponse gets a parse failure I use to be able to do response.getRawBody() to get the raw contents of the response so I could debug problems or why the JSON payload was invalid.
Any chance of adding this feature back into JSONResponse?

Let me take a look, there were some serious problems with any of the "getRaw***" but I think there is an opportunity to retain the body as a string

I can live with a string just something so we can debug.  Maybe only populate that string IF the JSON parsing fails to save memory.

I was thinking of keeping it on that exception object with the parse error. Would that work?

That would be awesome.  Exactly what I want.

Apparently I already put it there. lol. Check it out:
https://github.com/Kong/unirest-java/blob/master/unirest/src/test/java/BehaviorTests/AsObjectTest.java#L101

Excellent did not see that!


v2 api - browser javascript example

example by prem in https://groups.google.com/forum/#!topic/yelp-developer-support/5bDrWXWJsqY
just making it more findable.

ping @mittonk

Hey @paulirish! Sorry this didn't get noticed earlier. I'll talk to @mittonk on Tuesday and see about merging this in.

all good.

This looks pretty good to me!  Merging.

I'll look into getting a link on

http://www.yelp.com/developers/documentation/v2/examples

awesome. thanks!!
On Tue, Jan 20, 2015 at 9:34 AM, Ken Mitton<EMAIL_ADDRESS>wrote:

I'll look into getting a link on

http://www.yelp.com/developers/documentation/v2/examples

—
Reply to this email directly or view it on GitHub
https://github.com/Yelp/yelp-api/pull/46#issuecomment-70696212.

Hm, looks like this example had been removed in #17 .
Given the security reasons behind that, I think I better roll back @paulirish 's change for now.

Filed #51 for a new JS example that's secure enough for general consumption.

cool! thx.
i was originally just using JS and porting it into node.
Eventually found the two node-yelp projects which ended up being pretty
useful.


I think I found a bug

Expected behavior
    ByteBuf buf = ByteBufAllocator.DEFAULT.buffer(32);
    //ByteBuf buf = Unpooled.buffer(32);
    buf.writeInt(32);

    ByteBuf buf2 = buf.retainedSlice();
    System.out.println(buf.refCnt());
    System.out.println(buf2.refCnt());
    buf2.release();
    buf2.release();

The above code reports an error!!!
Exception in thread "main" io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
but The code below runs fine，way？？？？
//ByteBuf buf = ByteBufAllocator.DEFAULT.buffer(32);
ByteBuf buf = Unpooled.buffer(32);
buf.writeInt(32);
    ByteBuf buf2 = buf.retainedSlice();
    System.out.println(buf.refCnt());
    System.out.println(buf2.refCnt());
    buf2.release();
    buf2.release();

Actual behavior
Steps to reproduce
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.49.Final
JVM version (e.g. java -version)
jdk11
OS version (e.g. uname -a)
windows-10

@GeXin666 That is to be expected. A retaining buffer, such as a slice or duplicate, must itself be released for the retain to be undone.
Avoid relying on the refCnt value, and instead pair retains and releases correctly:
ByteBuf parent = …
ByteBuf child = parent.retainedSlice();
child.release();
parent.release();

The above will work regardless of the ByteBuf implementation.


[Modify]Site_copy copy directory in uploader/file

Coverage increased (+0.02%) to 83.707% when pulling 806e8e956b6e262976209dcc1e75a72091888180 on ShinjiTanimoto:modify-site-copy-uploader-file into 9d716fc081de5dbe649f58266fd105ce67808e4a on shirasagi:master.

Coverage increased (+0.02%) to 83.709% when pulling 738440443daeb7eb7e8a84f8f3b634faaa0b9f75 on ShinjiTanimoto:modify-site-copy-uploader-file into 9d716fc081de5dbe649f58266fd105ce67808e4a on shirasagi:master.

Coverage increased (+0.03%) to 83.72% when pulling d570772ded64700e5fac4eabf45783f7595b2048 on ShinjiTanimoto:modify-site-copy-uploader-file into 9d716fc081de5dbe649f58266fd105ce67808e4a on shirasagi:master.


Added gdpr text

[Do not merge yet]
This closes #130
Demo hosted here: https://tone-analyzer-demo-gdpr-r.stage1.mybluemix.net/
Still waiting for a response for availability for GDPR text in other languages for localization.

@germanattanasio Can you please merge this now?


[WIP] Improve debate states

Done:

[x] Add a grey 'Save without emailing' button to government response admin screen
[x] Add a grey 'Save without emailing' button to debate date admin screen
[x] Add a grey 'Save without emailing' button to debate outcome admin screen
[x] Add Was this petition debated: Yes/No to the debate outcome admin screen
[x] Move Proposed debate date to above Debate outcome
[x] Change button text to Email 12,345 petitioners from Email 12,345 signatures
[x] Add a list: Petitions awaiting a debate in Parliament
[x] Add a list: Petitions not debated in Parliament
[x] Add a list: Petitions debated in Parliament
[x] Add overview to debate outcome email

Todo:

[ ] Update home page with new facets
[ ] Update browse page with new facets
[ ] Update debate outcome emails

https://www.pivotaltracker.com/story/show/103660570

@henryhadlow we need to have a discussion about the front end stuff to finish this off - can you pop in the Slack room at some point.

He's on hols right now..... it's not urgent though.. wait till next week?
Or do you want to finish it now?
I've not been involved with his discussions with parliament on this.....
On Tue, Sep 29, 2015 at 2:06 PM, Andrew White<EMAIL_ADDRESS>wrote:

@henryhadlow https://github.com/henryhadlow we need to have a
discussion about the front end stuff to finish this off - can you pop in
the Slack room at some point.
—
Reply to this email directly or view it on GitHub
https://github.com/alphagov/e-petitions/pull/400#issuecomment-144052798.

I can leave it till next week. The remaining stuff is straightforward enough - just need someone to decide about copy, etc.

Merging this pull request as the functionality is sound. There is a pending question around 'your petition' and 'petition you signed' in emails for the petition creator


enhancements to TRANSPOSE operations

Reported by ansley b manke on 21 Mar 2017 18:38 UTC
see ticket #2508: adding matrix operations.
Splitting off a ticket on TRANSPOSE ops.
We have a whole family of transpose functions in 2D, written as internally-linked external functions: transpose_xy, transpose_zt, etc. This is pretty ugly to have 15 different functions.

could we add to the framework to have an overall fucntion TRANSPOSE (var, directions) which evaluates the variable that specifies the directions and calls the correct underlying transpose_ function?

or, implement these using the transformation syntax instead of function calls

yes? let var_tr_xy = var[let var_tr_zt = var[z=@tpz,t=@tpz](x=@tpz,y=@tpz]
yes?)
This would operate as a multi-dimensioned transform, which would refuse to operate unless there were exactly 2 dimensions given.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2519

Comment by ansley.b.manke on 12 Apr 2017 22:28 UTC
The new function TRANSPOSE(VAR,DIM1,DIM2) function calls one of the existing transpose_xy, transpose_yz, etc. functions depending on the values of arguments 2 and 3, so
yes? let var = transpose (myvar, 1, 2)

is the same as
yes? let var = transpose_xy (myvar)


how to expand only one row at a time ?

I have a situation where when I need to open one row and all the previous ones should close, I can only have one open row at the time,but it is regretful for me that i can't find a useful method or property to implement it, could you tell me a simple way to solve this problem?thank you very much

Could you add this, please?

I've tried to implement a workaround for this in my code in order to collapse sibling rows upon a row being expanded, but when I try to collapse multiple rows simultaneously, they don't animate and instead collapse instantly.


Use NotificationChannel and prevent crash in API 26

Title (required)
Fixes #1834 "Notification-related crashes on Android 8.1 (API 27)".
Description (required)
Fixes #1834 "Notification-related crashes on Android 8.1 (API 27)".
Apparently Android 8.1 requires a notification category to be set for each notification: https://stackoverflow.com/questions/47531742/startforeground-fail-after-upgrade-to-android-8-1 and I introduced a catch-all category for this app.
Tests performed (required)
Tested on Android 8.1 device. Passed Travis tests.

Codecov Report

Merging #1835 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1835      +/-   ##
=========================================
- Coverage    3.62%   3.62%   -0.01%
=========================================
  Files         192     192
  Lines        9809    9818       +9
  Branches      863     864       +1
=========================================
  Hits          356     356
- Misses       9428    9436       +8
- Partials       25      26       +1

Impacted Files
Coverage Δ

...java/fr/free/nrw/commons/upload/UploadService.java
0% <0%> (ø)
:arrow_up:

...n/java/fr/free/nrw/commons/CommonsApplication.java
28.07% <0%> (-3.93%)
:arrow_down:

...in/java/fr/free/nrw/commons/delete/DeleteTask.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


docs(fix): navbar links not working on mobile

On desktop play and interactive docs links work, but on mobile result in 404, added full url to navbar entries

I noticed it too - but it should be a VitePress bug right?


Semantic versioning

Right now the version for jetcd is hard coded at 0.1.0-SNAPSHOT. All of the code changes are getting lumped under that version. When I upgrade to the latest code, there are build breakages because classes have been renamed and signatures have changed.
For people like me who would like to use jetcd in my projects it's difficult to experiment with because upgrading means that I am potentially hit by breaking changes. Implementing Semver would help early adopters like myself use jetcd with less fear that an upgrade is going to break my build.

It is too early to even use Semver. We will start using semver when we feel it is alpha quality software at least...

@nbrauer sorry for all the changes going on right. we are trying hard to get the alpha version out; so a lot changes are being made to make sure that the interfaces and implementations are good.

@nbrauer push first release to maven central https://search.maven.org/#search|ga|1|coreos


chore(package): bump dependencies

PR checklist

[ ] Addresses an existing issue: #0000
[x] New feature, bugfix, or enhancement

[ ] Includes tests

[ ] Documentation update

Overview of change:
Updated dependencies to the latest bugfix/feature releases without breaking changes
Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

Thanks for your interest in palantir/tslint, @danielsogl! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

lockfile needs to be updated when bumping dependencies. anyway this got covered by https://github.com/palantir/tslint/pull/2847


WIP: Add -Proxy and -ProxyCredential using nuget.config

PR Summary
This is an alternative implementation for the PR #604
PR Context
This is just to provide context to an alternative implementation of the -Proxy and -ProxyCredential parameters.
PR Checklist

[ ] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[ ] Summarized changes
[ ] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[ ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[ ] None
OR
[ ] Documentation needed

[ ] Issue filed:

User-facing changes

[ ] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary.

Closing this PR-- see https://github.com/PowerShell/PowerShellGet/issues/244#issuecomment-1031838955 for more details.


Expired Toggle

This change updates the default behavior of Lemur to hide certs that have expired more than a month ago. (The current default behavior is to include certs that have expired up to 6 months ago). This will help lower the load on the server. There is also an additional button on the Certificates page now, that allows the user to view all certs, including all expired certs. The user can switch between showing and hiding expired certs.

Respective API changes have also been made to replicate this behavior. An additional parameter "showExpired=1" is required to retrieve all (including expired) certs, while viewing certificates.

Coverage increased (+0.009%) to 60.249% when pulling de0462e54fbf3d492387b05c01977b26aebef975 on kush-bavishi:temp-ExpiredToggle-3 into 198abcfe65a36e9081ae9402fc39d3e0c0ab8cf6 on Netflix:master.

Thanks Kush for the PR. Merging it now.

This kind of API changes are very bad, totally took me by surprise. And I think it's bad API design as well, to filter results by default and you have to explicitly supply an argument to disable that filtering.
Why wasn't this implemented in a backwards-compatible manner -- with the default being to return all certificates?
The UI could provide query parameters to override the defaults anyway.

@intgr sorry for the inconvenience this has caused.
I agree this could have been implemented in a cleaner way.

And I'm sorry to be so blunt, I was irritated after a long debugging session. :)


add touchmove event listener to document.body

fixes body-scroll-lock for ios safari

What's going on on line 55/56? Surely thats not right?

No it isnt, i've updated

Hi @diachedelic, any chance this gets released soon? Looks like we experience similar issues on iOS currently.

@natterstefan @phelma hey all, can someone explain exactly why this patch is needed? Which versions of iOS safari require it? It certainly worked on previous versions.

any news on the topic? the library stopped working for us as well on IOS (both chrome and safari) and it was working some time ago even though the demo page seems to work correctly even today, maybe is a problem that presents itself on non trivial use cases with a slightly more complex DOM structure. I guess the demo page could have a modal implemented using a react portal (most likely one of the most common use cases) to check if it works correctly.

Can someone provide a demo page with a Modal that's not working in IOS?
If that can be done, then I can help test/verify that this fix is good.
It'd be nice to get to the bottom of this.

And also, does the solution posted in https://github.com/willmcpo/body-scroll-lock/issues/102 help? If so, is this PR's fix still needed?

#102 doesn't solve this for me

for those where it's not working, some code snippets to support the need for this PR would be helpful.
Otherwise, the mentioned problems will be assumed to be non-issues.

@willmcpo I've tested the changes in this PR and they also fix the issue I was having on iOS in which the scroll was not locking on Safari mobile.

@willmcpo I've tested the changes in this PR and they also fix the issue I was having on iOS in which the scroll was not locking on Safari mobile.


pwm cannot set Hz

Issue
pymycobot' PWM function cannot set Hz.
So I cannot use my servo for my self-made grip.
My servo needs 50Hz.
By my analysis, PWM 's frequency is fixed in about 1.8KHz.
To Reproduce
run python script below
from pymycobot.mycobot import MyCobot
GPIO_Pin_No=23
PWM_channel_No=0
PWM_Duty_Cycle=128 # 50%
mc = MyCobot('/dev/ttyUSB0')
mc.set_pwm_mode( GPIO_Pin_No, PWM_channel_No)
mc.set_pwm_output(PWM_channel_No , PWM_Duty_Cycle)
Expected behavior
for example,
from pymycobot.mycobot import MyCobot
GPIO_Pin_No=23
PWM_channel_No=0
PWM_Duty_Cycle=128 # 50%
PWM_Freq=50 # Hz
mc = MyCobot('/dev/ttyUSB0')
mc.set_pwm_mode( GPIO_Pin_No, PWM_channel_No)
mc.set_pwm_output( PWM_channel_No , PWM_Duty_Cycle , PWM_Freq)

Atom2.6 should be ok.

Unfortunately, Atom 2.6 cannot work with 2 args. I tested 2 times.
I guess Atom 2.6 needs 3 args, but pymycobot sends only 2 args.
*Transponder app send "FE FE 04 64 (PWM_channel_No) (PWM_Duty_Cycle) FA"
on  set_pwm_output(PWM_channel_No , PWM_Duty_Cycle),
and Atom 2.6 doesn't make waves.  Atom 2.5 makes waves.

OK, I see. Atom 2.6 does need three parameters, but it's not open to me yet, so I can't improve pymycobot.
When atom solves this problem, I will also update pymycobot。


Show zero when there are no repositories

A small fix, because now shows an empty string:

Before
After

In this regard, I had this question: if there are no elements (repositories, followers, etc.), then we need to disable onPress handler, because we go to the screen with an empty result?

I just noticed that this will be fixed in #138.


strider not returning query graph

When I call strider with a query graph, I get back a response that has a kg and bindings, but the query graph is not returned.  Leads to errors when we go to send that message to score

c2b76f7bec3e49028ab63fb6cc7be38d8dd7b865


Analyse all RFCs related to JWT

Also check JWS and JWE. Some of them might be also implemented in this repo or some required features aren't implemented yet.

https://tools.ietf.org/html/rfc7515
https://tools.ietf.org/html/rfc7516
https://tools.ietf.org/html/rfc7517
https://tools.ietf.org/html/rfc7518
https://tools.ietf.org/html/rfc7519
https://tools.ietf.org/html/rfc7520

Everything is fine, there is no need to add rare features. Closing.


Object spread works for unrestrained generic

TypeScript Version:  3.8.3

Search Terms:
generic
spread
unrestrained
unrestricted
Expected behavior:
The spread function should not compile because T is not constrained to a type that can be spread.
Actual behavior:
It compiles.

Related Issues:
https://github.com/microsoft/TypeScript/issues/30129
https://github.com/microsoft/TypeScript/pull/13288
Code
function spread<T>(t: T) {
  // This should not compile
  return { ...t };
}

// The type of `result` is `number` even though the value of `result is `{}`
const result = spread(5);

Output
"use strict";

function spread(t) {

    // This should not compile

    return Object.assign({}, t);

}

// Result is still a number when in reality it's {}

const result = spread(5);

Compiler Options
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "moduleResolution": 2,
    "target": "ES2017",
    "jsx": "React",
    "module": "ESNext"
  }
}

Playground Link: Provided

How much existing code would this break?  I suspect there are a lot of generic spreads out there that were never intended to be used on primitives but at the same time don't have a useful generic bound on them.

But it also has the potential to fix types for existing code or provide some type-safety where there currently is none. If the generic spreads that you mention are not intended to be used for primitives that they should include a generic bound that disallows primitives.


Issue with computed not being reactive

Reproduction
https://stackblitz.com/edit/github-fxtqrt?file=src/App.vue
Steps to reproduce the bug
Click on the increment button. You should see "counter" increment, and "reactive double count" increment too, but the "no reactive double count" should stay at 0.
Inspect the code by going to App.vue. Inside the <script>, you'll see two "doubleCount" declarations, one reactive and one breaking reactivity.
Expected behavior
According to the documentation, both declarations should be equivalent, and declaring store.doubleCount instead of wrapping it into a computed should work.

Actual behavior
If the doubleCount is not wrapped into a computed, the reactivity won't work, and the double counter stays at 0. Wrapping it seems to be mandatory, as opposed to what is written in the documentation.
Additional information
No response

you can just use
{{counter.doubleCount}}

Your repro shows exactly what the documentation says 🙃

Oh yes 🤦 I understood this as "you can assign store.doubleCount directly". Maybe could this be rephrased ? It took me a while to understand what it meant. 😅

Thanks for the suggestion but I believe the wording is just fine

This is really confusing. I just started using pina and found out the hard way that the following also don't work
const store = ....

const q = store.q

const other = computed(() => q)

This doesn't work, as store.q needs to be accessed in the computed block. Took me a whille to get why it doesn't work. (I'm guessing because the subscription will be made on the wrong place)

I however don't know why the following is not firing
watch (store.q, (val) => console.log(val))

FYI it's all covered in Vue.js docs. Most of it in https://vuejs.org/guide/essentials/reactivity-fundamentals.html#limitations-of-reactive


Tendermint merkle hash

A MerkleHash implementation for the tendermint simple merkle tree, used by Celestia for row / column inclusion proofs into data roots

Hey @S1nus! Thanks for the PR!
The implementation looks like it faithfully reproduces the [tendermint merkle hasher] to me (https://github.com/informalsystems/tendermint-rs/blob/979456c9f33463944f97f7ea3900640e59f7ea6d/tendermint/src/merkle.rs#L73) - but I'm not quite sure what the motivation is. We're happy to merge this if there's a usecase, but I'm not aware of the feature request yet if so!
On the implementation side, the new code doesn’t seem to be linked to the file tree (looks like we’re missing an entry in lib.rs), and it also looks like we're missing a few doc comments on public items.


"Launch on machine startup" on"Off" is being ignored

Windows Terminal version
1.16.10262.0
Windows build number
10.0.22621.963
Other Software
No response
Steps to reproduce

Tick off "Launch on machine startup"
Reboot machine

Expected Behavior
Terminal does not start up
Actual Behavior
Terminal starts up, even though it's disabled in Startup in Windows settings and has the mentioned option entry disabled.

I suspect this is just /dup #12564

Hm, I'm seeing this too, and it seems new. The other ticket has been open for almost a year, can it really be the same thing?

Hmmmmm. A thought:

Is Terminal set as the Default Terminal Emulator in the Windows Settings?
Are you using "firstWindowPreference": "persistedWindowLayout"?

Terminal is the default terminal emulator, yes
I am using persistedWindowLayout, yes
"Launch on machine startup" is off
Windows' "Automatically save my restartable apps" setting is off

I did some testing, and it looks like both those settings need to be ON to manifest the problem.
Hypothesis: Some other startup item is trying to run something in a terminal, and that's causing Terminal to start up and restore its window, instead of exiting quickly.


Tapeline v1.1.0 does not work ... on lab-tiles?

I have a savegame, where tapeline does not work. Not as the only active mod and not together with other mods. TBH I don't really know why. Maybe because all the tiles are lab tiles? ( lab-dark-1, lab-dark-2, lab-white, https://wiki.factorio.com/Data.raw#tile ).
blueprinting megamine.zip

Thanks for the report, I'll have a patch out shortly to fix this.
The problem is that I accidentally used two different tick measurements - tick and ticks_played - to compare tilegrid drag logic. The fix was to use ticks_played everywhere.


Provide compatibility with Mockito 2.0.62-beta+

HandyReturnValues has been removed. Jenkins build reproducing the problem.

Also ArgumentMatcher interface changed in 2.0.64.


This not a valid cordova project

The current structure is not an actual cordova project. How can i add the cordova dependencies to this?
I see previously closed items with the same issue and they are just closed with no way to resolve. This template was not initialized with the cordova cli and there is no option to install cordova into an already exiting application. Any help?

https://github.com/framework7io/framework7-template-vue-webpack#use-with-cordova

That isn't enough. You can't add a cordova platform:
$ cordova platform add<EMAIL_ADDRESS>Current working directory is not a Cordova-based project.

so, how to use this project as a standard cordova app ?


Rendering issue

The compressed table layout used on this page is not readable due to columns getting cut off. See screenshot below.
Please adjust this, for example, by using a 2-column layout to show library name and version.

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

ID: dd4f61cc-556c-692b-da5f-70e3986956d8
Version Independent ID: cd8ea6ca-26bb-d3ce-a758-537209b1080b
Content: Azure Synapse Runtime for Apache Spark 3.3 - Azure Synapse Analytics
Content Source: articles/synapse-analytics/spark/apache-spark-33-runtime.md
Service: synapse-analytics
Sub-service: spark
GitHub Login: @eskot
Microsoft Alias: eskot

@VitalyMCT
Thanks for your feedback! We will investigate and update as appropriate.

@VitalyMCT
We have two choices for reading all of the data. We can either zoom in below 90% or use scroll bar at the bottom of the table. for your convenience

Scroll bar  in bottom of table:

Both of those workarounds would break normal web UI and Microsoft Docs conventions. Page layout should be changed so content is visible to customers as-is, with only vertical scrolling.

@VitalyMCT
Thanks for your contribution. Please add your ideas in below link, so our production team can review it and update the same.
Ideas · Community (azure.com)

@RamanathanChinnappan-MSFT Hold on. What's the reason this bug report was closed without doing anything?


MINOR: Fix transient failure in SelectorTest.testCloseConnectionInClosingState

SelectorTest.testCloseConnectionInClosingState creates a channel with some staging receives and moves time forward to expire the channel. To ensure that the channel will be expired on the next poll, the channel must be muted to avoid expiry time being updated if more data is available for read.

@ijuma Can you review, please? Thank you!

@ijuma Thank you for the review, merging to trunk.


ftfy.fix_text(fix_entities=True) doesn't fix capitalized, escaped, accented characters and Ñ

I've got these bits of text from a CSV. The source seems to have mistakenly encoded É, Á and Ñ into their HTML equivalents.
273953;"SOFIA P&EACUTE;REZ LUJ&AACUTE;N";11;1;939;1
323720;"ORDO&NTILDE;EZ, MERCEDES";6;1;711;1

When repairing each cell using ftfy.fix_text(row[col], fix_entities=True), shouldn't these be fixed as well? (I did try manually replacing them with their lowercase equivalents and ftfy correctly fixes them.)

Hm, it's interesting, because we can look at that text and understand what it meant to say. But there is some data loss here, because HTML entities are case-sensitive. I notice that ftfy agrees with the builtin html.unescape here:
>>> import html

>>> html.unescape('é')
'é'

>>> html.unescape('É')
'É'

>>> html.unescape('&EACUTE;')
'&EACUTE;'

But then, in this case, the data loss that has occurred apparently doesn't matter. The reason we got HTML entities in all caps is because the text is in all caps. We could just assume the letters we're supposed to decode are the uppercase ones.
This has also made me realize that all currently supported versions of Python 3 have html.unescape in the standard library. If we don't need to support entities that have been converted to all caps, ftfy could just drop its custom HTML unescaping code and use the standard library now.

So I guess I have a follow-up question. Although it's not standard to decode HTML entities that are in all caps, if everything that happened to text was standard there would be no need for ftfy in the first place.
So how widespread do you think this kind of text is? Would fixing it be a sufficiently-desired new feature?

@rspeer, The snippet above was taken from the "Producciones científico-tecnológicas" (scientific and technological productions) dataset of the Secretariat of Science and Technology of Argentina.
I've had to massively sed their tables because of the amount of encoding errors they have, so I bet all their datasets could potentially have the same issue.

The situation with case sensitivity and ambiguity is worse than I'd hoped. HTML entities apparently use case sensitivity not just for lowercase vs. uppercase letters, but for doubling things in symbols?
And yet I still understand specifically what &NTILDE; is and it couldn't be anything else.
>>> import html

>>> html.unescape('˙')
'˙'

>>> html.unescape('¨')
'¨'

>>> html.unescape('⊗')
'⊗'

>>> html.unescape('⨷')
'⨷'

>>> html.unescape('∧')
'∧'

>>> html.unescape('⩓')
'⩓'

>>> html.unescape('≺')
'≺'

>>> html.unescape('⪻')
'⪻'

>>> html.unescape('⊃')
'⊃'

>>> html.unescape('⋑')
'⋑'

>>> html.unescape('¬')
'¬'

>>> html.unescape('⫬')
'⫬'

>>> html.unescape('⊆')
'⊆'

>>> html.unescape('⫅')
'⫅'

Okay, I came up with a coherent enough fix that covers common Latin letters (with codepoints below U+300), and also updates the rest of how we handle entities: #126

It took another revision of the fix to avoid causing all kinds of false positives, but it's in now. ftfy 5.6 can decode P&EACUTE;REZ and ORDO&NTILDE;EZ and so on. Thanks for the suggestion!


Test: String-of-Array error messages

Refs: #77459

[ ] anyOS @bpasero
[ ] anyOS @alexandrudima

Complexity: 1
Description: We now show error message for invalid string-of-array settings in the Settings GUI. For example, for this contributed setting:
"type": "array",
"maxItems": 4,
"minItems": 1,
"items": {
	"type": "string",
	"enum": [
		"error",
		"warning",
		"info",
		"hint"
	]
}

We would show such warning when you have invalid values:

Please test by creating an extension that contributes a setting, and then use the GUI settings editor to configure it. Specify one or multiple of such constraints:

minItems
maxItems
item.enum
item.pattern

Then input invalid values. Test that the error message widget works fine and the error messages make sense to you.
You can find more about these JSON schema keys here: https://json-schema.org/latest/json-schema-validation.html.

@octref If the steps include creating an extension, then the complexity cannot be 1. An item with complexity 1 should at most consist of clicking (maybe not even touching the keyboard).

@octref should an enum with multiple same values result in just one error message?
E.g.
"enum": [
  "error",
  "error"
]

Shows:


Filter out inactive students from roster view

Visited the 6th grade teacher team at the Healey school this morning to show them the latest iteration of Student Insights and get their feedback.
They noticed that the roster view included students who had become inactive. Need to filter out those students to make the roster view accurate.

I'll get started on this


document fetch*

the fetch functions are in pkgs, not lib, and they're a bit mysterious :-)

Good Idea!.
Just for reference if i come back to that later.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L971
Inline-documentation should be where the function was declared (in fetchgithub/default.nix)
Problematic is finding the right name.
function actual name: pkgs.fetchFromGitHub
function defined in: build-support/fetchgithub/default.nix
but renamed during export in pkgs/top-level/all-packages.nix
Maybe I should look into https://github.com/mlvzk/manix how they find the scopes.

The fetchers are discovered now. If you know how they work, please consider making a PR in nixkgs to add doc-comments.
https://noogle.dev/f/pkgs/fetchFromGitHub
(Noogle tells you the source location)


Decide where repo should be

We should decide on where the official repo should be -- could stay at jpober/21cmSense, we could try moving it to RASG, or we could call it 21cmSense2.
I hope @jpober has an opinion :-)

I was actually just talking about this with Matt K.  My two thoughts are (1) I don't want anyone trying to use the old 21cmSense code any more and (2) you, Steven, should get maximal credit as the driver behind this.  I think point (1) argues against anything like 21cmSense2.  I'd be fine with having the new code hosted from my repository, but that doesn't accomplished (2).  So I think having it either on your repository or as a RASG-affiliate code would be best.  When can then have jpober/21cmSense redirect there.

I think that having it on RASG-affiliates is probably best, as it allows for more visibility from more people. Do you know when the next RASG meeting is (or was that this morning...?).

I don't think there are really RASG meetings, but we could convene one.
RASG managers have a closed Slack channel that gets used occasionally, I
can let them know we're considering this and see how they feel.
On Wed, Jul 15, 2020 at 2:37 PM Steven Murray<EMAIL_ADDRESS>wrote:

I think that having it on RASG-affiliates is probably best, as it allows
for more visibility from more people. Do you know when the next RASG
meeting is (or was that this morning...?).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/steven-murray/21cmSense/issues/22#issuecomment-658934369,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALJ7L27PNHUGRR3UKHGBDDR3XZOTANCNFSM4O2ZHSEA
.

Thanks!

The RASG affiliates guidelines are here:
https://github.com/RadioAstronomySoftwareGroup/RadioAstronomySoftwareGroup.github.io#affiliate-organization.
Unfortunately the GPL license is a no-no.  Are you strongly attached to it?
On Wed, Jul 15, 2020 at 3:03 PM Steven Murray<EMAIL_ADDRESS>wrote:

Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/steven-murray/21cmSense/issues/22#issuecomment-658946831,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALJ7L3CV27QCHJ6DE43J5TR3X4OHANCNFSM4O2ZHSEA
.

Not even slightly -- I didn't realize/had forgotten that it was GPL
licensed. I'll see what I can do about that.
On Thu, Jul 16, 2020 at 8:14 AM Jonathan Pober<EMAIL_ADDRESS>wrote:

The RASG affiliates guidelines are here:
https://github.com/RadioAstronomySoftwareGroup/RadioAstronomySoftwareGroup.github.io#affiliate-organization
.
Unfortunately the GPL license is a no-no. Are you strongly attached to it?
On Wed, Jul 15, 2020 at 3:03 PM Steven Murray<EMAIL_ADDRESS>wrote:

Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/steven-murray/21cmSense/issues/22#issuecomment-658946831
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AALJ7L3CV27QCHJ6DE43J5TR3X4OHANCNFSM4O2ZHSEA
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/steven-murray/21cmSense/issues/22#issuecomment-659478609,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJWRXUSIYLX6SCFB5DV633R34KNFANCNFSM4O2ZHSEA
.

It's going to RASG-affiliates


undefined reference to symbol 'log@@GLIBC_2.2.5'

hi guys:
I use the CentOS system.
When I build the IDEA project, the error  as
INFO: From Linking heron/common/tests/cpp/basics/fileutils_unittest:
/usr/bin/ld: bazel-out/local_linux-fastbuild/genfiles/3rdparty/gperftools/lib/libtcmalloc.a(libtcmalloc_internal_la-sampler.o): undefined reference to symbol 'log@@GLIBC_2.2.5'
/usr/bin/ld: note: 'log@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
ERROR: /root/heron/heron/common/tests/cpp/basics/BUILD:3:1: Linking of rule '//heron/common/tests/cpp/basics:fileutils_unittest' failed: gcc failed: error executing command /usr/bin/gcc -o bazel-out/local_linux-fastbuild/bin/heron/common/tests/cpp/basics/fileutils_unittest -B/usr/bin/ -Wl,-z,relro,-z,now -no-canonical-prefixes -pass-exit-codes '-Wl,--build-id=md5' ... (remaining 3 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
INFO: Elapsed time: 50.939s, Critical Path: 41.63s.
WARNING!!! - bazel build failed - intellij setup may not be consistent
Path is /root/heron
Generating IDEA project...
scripts/get_all_heron_paths.sh: line 70: JAVA_PATHS: unbound variable
Done. IDEA module file: heron.iml

Could not locate IntelliJ IDEA. Manually open /root/heron as a project in IDEA.

I try to modify the config/configure.ac, add the following variables, but no effect.
#export LDFLAGS="$LDFLAGS -lm"
#LD="$LD -lm"

I modified get_all_heron_paths.sh file, add a parameter --config = centos, now works correctly.

When we build manually we provide the config= but in IDEA you need to query the platform and accordingly pass the platform.
for ubuntu, it is --config=ubuntu
for mac, it is --config=darwin
for centos, it is --config=centos
It will be great if you could provide a patch to fix this.

That's a bug that we don't pass --config=[os] to bazel on that line. I suggest we fix by defaulting to --config=darwin (the most common case), but allowing that to be overridden with a flag.

The fix has been merged as #985 , please close this issue.

Fixed: #985


musl targets are broken with latest zig (0.11.0)

As is showed in this PR.
The cause behind this is because even latest stable rust is using musl 1.2.3, while latest zig is using musl 1.2.4. And musl 1.2.4 remove all the weak alias for some 64bit symbols (e.g., lstat64, stat64, open64....)
AFAIK, zigbuild's strategy is to use zig's musl instead of the one from rust, which is good, but the embarrassing thing here is, the musl with a higher version removed some symbols needed by rust's libc, which causes the linking errors.
After rust starts to use musl 1.2.4+, everything would be OK, but we still need to figure out how to address this in a short term. Thus, I open this issue for the discussion.
One approach I can think of is to link to rust's musl, the other is to add the missing weak symbols.

Feel free to send a PR.

BTW, is it possible to use rust-lld for linking?
That will enable robust cross-lang-lto, which otherwise is a bit fragile since rustc often has its llvm upgraded before zig.

BTW, is it possible to use rust-lld for linking?

I'm not sure, can you send a PR to test it out?

BTW, is it possible to use rust-lld for linking?

I'm not sure, can you send a PR to test it out?

Sorry, I'm not familiar with rust-lld internal or zig, so I don't know how to do this, but is just wondering if this is possible.

@NobodyXu Actually you can test it without changing cargo-zigbuild, just need to set CARGO_TARGET_<triple>_LINKER=rust-lld env var.

@NobodyXu Actually you can test it without changing cargo-zigbuild, just need to set CARGO_TARGET_<triple>_LINKER=rust-lld env var.

Thanks, I've opened https://github.com/cargo-bins/cargo-binstall/pull/1253 for this.

Feel free to send a PR.

I can give it a try. Currently I have tested the 1st approach, which is successful, but I prefer the 2nd for which I am still figuring out how.
BTW, zig also has an internal lld interface zig ld.lld for linux

BTW, zig also has an internal lld interface zig ld.lld for linux

Thanks, the problem is that zig could use an older LLVM version than rustc, which cannot parse LLVM bitcode from newer version.

@NobodyXu Actually you can test it without changing cargo-zigbuild, just need to set CARGO_TARGET_<triple>_LINKER=rust-lld env var.

@messense It works when we use --target x86_64-unknown-linux-gnu.2.17, I thought that zig also need to do some magic at link stage to link with glibc 2.17, but it seems that I'm wrong and it only needs to provide a different glibc header at compile-time.

Better also check that the artifact is actually only depends on glibc 2.17.

BTW, zig also has an internal lld interface zig ld.lld for linux

Thanks, the problem is that zig could use an older LLVM version than rustc, which cannot parse LLVM bitcode from newer version.

I just checked rust-lld, its location on my machine is ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld
I guess it is not for the targets

@NobodyXu Actually you can test it without changing cargo-zigbuild, just need to set CARGO_TARGET_<triple>_LINKER=rust-lld env var.

@messense It works when we use --target x86_64-unknown-linux-gnu.2.17, I thought that zig also need to do some magic at link stage to link with glibc 2.17, but it seems that I'm wrong and it only needs to provide a different glibc header at compile-time.

zig's approach is to build a libc (glibc or musl) on the fly, and since glibc has a very good backward compatibility (a relatively newer glibc.so is enough), so you are right, zig will choose different glibc symbols based on the version to do the linking at last.
You can take a look at this tool https://github.com/ziglang/glibc-abi-tool

And for the 1st approach I mentioned, I can put a quick workaround here for those who wanna try latest zig and rust
$ cat ld.sh
#!/bin/sh
exec zig ld.lld "$@"
$ CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=$(pwd)/ld.sh cargo zigbuild --target x86_64-unknown-linux-musl
......
   Compiling hello-rustls v0.1.0 (/tmp/hello-rustls)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 12s

Better also check that the artifact is actually only depends on glibc 2.17.

Tested in centos:7 that it can run.

zig's approach is to build a libc (glibc or musl) on the fly, and since glibc has a very good backward compatibility (a relatively newer glibc.so is enough), so you are right, zig will choose different glibc symbols based on the version to do the linking at last. You can take a look at this tool https://github.com/ziglang/glibc-abi-tool

Thanks, I'm now a bit worried despite it actually runs on centos:7 with glibc 2.17

BTW, does the CARGO_TARGET_<triple>_LINKER has to be all in upper case? Could the <triple> be specified in lower-case?

And for the 1st approach I mentioned, I can put a quick workaround here for those who wanna try latest zig and rust
$ cat ld.sh
#!/bin/sh
exec zig ld.lld "$@"
$ CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=$(pwd)/ld.sh cargo zigbuild --target x86_64-unknown-linux-musl
......
   Compiling hello-rustls v0.1.0 (/tmp/hello-rustls)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 12s

CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=rust-lld also works

BTW, does the CARGO_TARGET_<triple>_LINKER has to be all in upper case? Could the <triple> be specified in lower-case?

cc-rs supports both I think, but currently in cargo-zigbuild we only check upper-case.
https://github.com/rust-cross/cargo-zigbuild/blob/41e7f7866ea3aea3a6e0b5ccbd5033ae9e4c934d/src/zig.rs#L390

cc-rs supports both I think, but currently in cargo-zigbuild we only check upper-case.

Thanks!
So I assume that cargo also supports both.

I tried to enable cross-lang-lto and it seems that rust-lld cannot even find -lgcc_s, I would just revert the PR using rust-lld

I tried to enable cross-lang-lto and it seems that rust-lld cannot even find -lgcc_s, I would just revert the PR using rust-lld

rust-lld should just be a workaround for the musl scenario, I don't think it will work for gnu targets. I assume gnu targets would work without any change

I tried to enable cross-lang-lto and it seems that rust-lld cannot even find -lgcc_s, I would just revert the PR using rust-lld

rust-lld should just be a workaround for the musl scenario, I don't think it will work for gnu targets. I assume gnu targets would work without any change

Thanks


Detect touch on marker or cluster

Hi Guy
How can i detect touch on marker or cluster ?
Touch on number or image

I do the following to zoom when on a cluster vs on a marker:
func mapView(mapView: GMSMapView, didTapMarker marker: GMSMarker) -> Bool {
    let zoom = defaults.floatForKey(AppDelegate.zoomNamespace)

    let zoomIncrement:Float = 0.5

    let zoomIn = GMSCameraUpdate.zoomTo(zoom+zoomIncrement)

    let clusters = clusterManager.clusterAlgorithm.getClusters(zoom)

    for (_, cluster) in clusters.enumerate() {

        if cluster.isKindOfClass(GStaticCluster) {

            let clusterMarker = (cluster as! GStaticCluster).marker

            if clusterMarker.position.latitude == marker.position.

latitude
                && clusterMarker.position.longitude == marker.position.

longitude {
                // Click on cluster to zoom in

                self.mapView.animateWithCameraUpdate(zoomIn)

            }

        }

    }

On Tue, Jul 26, 2016 at 9:57 PM, TamNguyen<EMAIL_ADDRESS>wrote:

Hi Guy
How can i detect touch on marker or cluster ?
Touch on number or image
[image: simulator screen shot jul 27 2016 2 56 35 pm]
https://cloud.githubusercontent.com/assets/9377583/17168028/578f6b44-540a-11e6-9c76-f0170285bbca.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/DDRBoxman/google-maps-ios-utils/issues/32, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACqz9JStGi9K5wu-gP1jiO4UlGyED4Zxks5qZw9TgaJpZM4JV7im
.

Hi thank you for your comment
But i want detect touch on number zoom map to show item marker inside this.

ok i got it.
Thank you so much

Hey guy.
When i touch on number cluster i want to zoom map to level show all item marker inside this.
How to implement ?
Thanks,

@hoangtam101  check issue 30
hope it will help you.
Cheers!


idle GRPC connections in controller

As we already know currently, a csiaddons node object is created, we create the connections and keep it until the addons node object is deleted. there could be advantages/disadvantages of this one. As csiaddons is meant to be a generic component and it will be used by multiple csi drivers. Just for an example of 10 nodes cluster and 2 csidrivers are using the csiaddons. We have 20 or 2 connections  (for both provisioner and node plugin sidecars are deployed) opened and kept in the in-memory, thinking about the scale what about the 100 nodes clusters or even more csidrivers in a cluster?
Advantages

Reuse of connection for faster communication
(anything else?)

Disadvantages

More number of idle connections in in-memory (if there are no addons operations)
More resources utilization in the controller pod
More network calls as connection keep-alive need to be checked in intervals to make sure the connection is not broken

I would like to hear thoughts from everyone on this one. cc @nixpanic @humblec @Rakshith-R  @pkalever

As we already know currently, a csiaddons node object is created, we create the connections and keep it until the addons node object is deleted. there could be advantages/disadvantages of this one. As csiaddons is meant to be a generic component and it will be used by multiple csi drivers. Just for an example of 10 nodes cluster and 2 csidrivers are using the csiaddons. We have 20 or 2 connections (for both provisioner and node plugin sidecars are deployed) opened and kept in the in-memory, thinking about the scale what about the 100 nodes clusters or even more csidrivers in a cluster?

Consider x number of csiaddons node object of the same csidriver,
Without connections being in memory.
For each operation:

The specific controller would have to list all the csiaddons node object
For each csiaddonsnode object:

Open a grpc connection with the pod
Fetch capability,
if it does not match, close it. pick the next one
if it does match, use it.

I think the above is enough reason to keep single pool of open connections which can be shared by all operations.

As we already know currently, a csiaddons node object is created, we create the connections and keep it until the addons node object is deleted. there could be advantages/disadvantages of this one. As csiaddons is meant to be a generic component and it will be used by multiple csi drivers. Just for an example of 10 nodes cluster and 2 csidrivers are using the csiaddons. We have 20 or 2 connections (for both provisioner and node plugin sidecars are deployed) opened and kept in the in-memory, thinking about the scale what about the 100 nodes clusters or even more csidrivers in a cluster?

Consider x number of csiaddons node object of the same csidriver, Without connections being in memory.
For each operation:

The specific controller would have to list all the csiaddons node object

For each csiaddonsnode object:

Open a grpc connection with the pod
Fetch capability,
if it does not match, close it. pick the next one
if it does match, use it.

I think the above is enough reason to keep single pool of open connections which can be shared by all operations.

Keep the connection in memory and remove it after a certain interval of time. no need to keep it open always.

Disadvantages

More number of idle connections in in-memory (if there are no addons operations)
More resources utilization in the controller pod
More network calls as connection keep-alive need to be checked in intervals to make sure the connection is not broken

Any other method will share these disadvantages too
I would prefer better to stick with the current implementation, unless we certainly have a better approach with complete design which covers all the requirements/perf metrics.
Otherwise, saving resources/performance in one step while introducing it another step does not make sense to me.

Disadvantages

More number of idle connections in in-memory (if there are no addons operations)
More resources utilization in the controller pod
More network calls as connection keep-alive need to be checked in intervals to make sure the connection is not broken

Any other method will share these disadvantages too

what are other methods that will have these disadvantages?

I would prefer better to stick with the current implementation, unless we certainly have a better approach with complete design which covers all the requirements/perf metrics. Otherwise,

This issue is opened to check what is the problem with the current approach and how it can be better. I don't understand the reason for this one, why do you want to utilize resources when not needed?

unless we certainly have a better approach with complete design which covers all the requirements/perf metrics. Otherwise,

what do you mean by covering all the requirements/perf metrics? we don't need to scale test for larger numbers but we can check what can cause issues and how to fix them in long run.

saving resources/performance in one step while introducing it another step does not make sense to me.

can you please elaborate on this one?

I think it is fine to close idle connections. The CSIAddonsNode state that is kept in the controller (currently with connection alive) can be kept, and have an additional IsConnect kind of attribute. There is no real need to connect to all CSIAddonsNodes on startup of the controller, and only connect on-demand. A certain idle-timeout can be used to disconnect, and when needed the controller can call Connect() again.
This might improve stability in case of network issues too, where the connection between controller and CSIAddonsNode is interrupted for some unknown time.

There is no real need to connect to all CSIAddonsNodes on startup of the controller, and only connect on-demand.

This is needed to fetch capabilities and store it.

I think it is fine to close idle connections. The CSIAddonsNode state that is kept in the controller (currently with connection alive) can be kept, and have an additional IsConnect kind of attribute.
A certain idle-timeout can be used to disconnect, and when needed the controller can call Connect() again.
This might improve stability in case of network issues too, where the connection between controller and CSIAddonsNode is interrupted for some unknown time.

I think this can be done.
Start a go routine to check lastUsedTime and close conection if it greater than x seconds(probably 5 mins= 300secs). Every time Get connection is called, check for connected State, if not connected, connect before returning it.
This should be completely internal to connection package.
@Madhu-1 wdyt ?

Start a go routine to check lastUsedTime and close conection if it greater than x seconds(probably 5 mins= 300secs). Every time Get connection is called, check for connected State, if not connected, connect before returning it. This should be completely internal to connection package.

This looks okay :+1:


port: [#4270] Choice options separator should be multi language (#6366)

Fixes # 4204
Description
This PR updates the ChoiceOptions to support LG allowing to define different template expressions for each language.
It also adds unit tests to cover the new code.
Specific Changes

Updated ConfirmInput and ChoiceInput to get the choice options from an expression.
Added the new class ChoiceOptionsSet containing the bind method to map the LG expression into a ChoiceFactoryOptions object.
Updated ChoiceInput and ConfirmInput schemas.
Added new tests in ActionTests class:

Action_ChoicesWithChoiceOptions.test.dialog
Action_ChoicesWithChoiceOptionsTemplate.test.dialog
Action_ConfirmInputWithChoiceOptions.test.dialog
Action_ConfirmInputWithChoiceOptionsTemplate.test.dialog

Added new test file choiceOptionsSet.test.js containing all the tests related to the ChoiceOptionsSet class.

Testing
The following images show the separator working as expected and the new unit tests.

/promoted 4293


Ability to customize NavigationHeader button and title containers

Explain the motivation for making this change. What existing problem does the pull request solve?
I made custom back navigation buttons with different heights than the stock ones.  The resulted in the button aligning to the top of the navigation bar.  I was able to fix this by modifying the stock style that gets applied to an Animated.View housing each button and the title: NavigationHeader styles.
Unfortunately these couldn't be modified through the API, so I added that ability.
Example of it in use.  Notice the position of the Back button.

Test plan (required)
First be sure that NavigationHeader works as is.  Then add leftContainerStyle, titleContainerStyle, and/or rightContainer style to the properties.  Depending on your style attributes, you'll see a difference in each button or nav title.  The simplest test is to set backgroundColor and see it apply to the respective element.
**Example
import { NavigationExperimental } from 'react-native'
const { Header } = NavigationExperimental
const buttonContainerStyle = { backgroundColor: 'red'}

render:() {<Header leftContainerStyle={buttonContainerStyle} rightContainerStyle={buttonContainerStyle} />}

Hey, thanks for sending in this pull request. We, and by we I mean @ericvicenti, are planning on deprecating NavigationExperimental in favor of react-navigation. The hard part of that is making sure all the users have a way to migrate off, so adding more functionality is going to make that harder. So I think we should not accept this pull request right now, even though the code and rationale are quite logical.

@lacker let me know if you need help.  I've gone pretty deep with nav stuff in our app.

@StevePotter, we would greatly appreciate your help on the react-navigation repo. There is a lot of room for improvement on the header!

@ericvicenti no problem, I'll move out app over to that component and will be sure to lend a hand whenever possible.  thanks


0 asset files hashed

// Update: Merge me :pray:
Help me :fox_face:
🚀 ls public/assets/styles
main.css

🚀 ./node_modules/hashup/bin/hashup.cjs public/assets/styles
hashup v0.3.2
start hashing build assets...
ℹ included file extensions: css, js
✔ 0 asset files hashed in public/assets/styles

As it turns out, there's a duplicate {${extensions.join(",")}} inside your glob call - see #2.

Actually, it's a feature, not a bug. 😄 hashup expects the directories assets/css as well as assets/js, which are default from Kirby. You may take a look into the source code for realtroll.de for an example.
For custom asset paths, we would have to introduce a new option.

Noooo way I didn't see this - my bad! I'll adjust my assets path right away :woman_dancing:

Thanks for taking the time for the PR tho. Much appreciated. 🙂

For you, anything!


Be able to change type checking log level

(please don't mind the does not return a value: the function has ->None when it actually returns smth)
This is a documentation code I received from a teacher here is what I have with type checking strict:

And this with it disabled (like default):

From 1 I got some false positive but don't really know why but my real problem is that it's all errors, I would like to be able to change the logging level of type checking to warning, especially for type checking as I like to first code a bit loosely and then come back over it and type hint everything and it helps me be more strict about my code but here I can't even concentrate anymore, it just looks like my code will crash everywhere and won't see real errors if there are any.
Also OOC question but is there some timeout on edit in pylance? I have found a couple of other extensions with a timeout they wait after typing before kicking in and could lower it to make it more snappy but didn't find it in pylance and it feels like pylance is slow especially when I type function parameters and it shows call arguments
(per this parameter:)

There is no single setting that will change all diagnostics to warnings, but you can specify a severity (error, warning, or none) for each diagnostic rule using python.analysis.diagnosticSeverityOverrides or at the file level as described here.
Strict mode is intentionally very opinionated, so if you're writing code in a mode/mindset where you don't care about type checking, strict is probably the wrong choice. You might consider "off".
Note that you can quickly switch between "basic" and "off" via the language status button ({}) in VS Code's status bar:

it feels like pylance is slow especially when I type function parameters and it shows call arguments

Inlay hints are intentionally computed on our background thread for performance reasons, so I'm guessing that's why there's a brief delay before they appear. If you feel their behavior should be improved, please file a separate issue. Using a single issue to track multiple unrelated requests is awkward for us.

There is no single setting that will change all diagnostics to warnings, but you can specify a severity (error, warning, or none) for each diagnostic rule using python.analysis.diagnosticSeverityOverrides or at the file level as described here.

Yeah I see, didn't knew "python.analysis.diagnosticSeverityOverrides" exist but it's still pretty annoying to modify them one by one, ik strict mode is to be strict but I'm more using it as hints to teach me to write better code than anything else.

Strict mode is intentionally very opinionated, so if you're writing code in a mode/mindset where you don't care about type checking, strict is probably the wrong choice. You might consider "off".
Note that you can quickly switch between "basic" and "off" via the language status button ({}) in VS Code's status bar:

I actually care about type checking as I try to write better code and want to learn more but have found that it's a bit distracting while coding getting your whole IDE in red especially when this is not your code (from libraries, documentation,team members,...), but didn't knew the position of this button nice tip will try to switch it off while coding and then switching it on for every last push although I prefer extensions just being there and I don't have to worry about them and it seem to only have this quick shortcut for basic and not other levels.

Inlay hints are intentionally computed on our background thread for performance reasons, so I'm guessing that's why there's a brief delay before they appear. If you feel their behavior should be improved, please file a separate issue. Using a single issue to track multiple unrelated requests is awkward for us.

No worries it's probably not the most important thing for you guys rn, I was just asking as some other extensions had a little delay you have to stop typing before actualizing (to prevent to run on every char ig) and setting it to 0 made them wayyyy more snappy and I was just wondering if this was the same here and it's kinda logical being slower as you have to find the called function ig? Whatever this was just a quick extra question as it would improve a bit my ux


Fixed #27921 -- Clarified usage of make_aware() with is_dst argument.

Updated the description of pytz.NonExistantTimeError to clearly explain how using is_dst will modify the time.

I think the wording in this PR sounds good. It's more accurate without being overly confusing.

@paqman85 Thanks :+1: Welcome aboard :boat:
I pushed minor edits. Please don't send solutions for multiple tickets in a single PR.  You can send a fix for 28726 in a separate one.

Thank you @charettes , @felixxm and @jarshwah! So happy to have my first pull into Django. :)


Publish as nodetouch?

Hey @isaacs - I was wondering if you'd want to publish this as nodetouch for easier use with npx?
Difference between the commands would be:
npx -p touch nodetouch gulpfile.js
vs
npx nodetouch gulpfile.js

🤷


Send shorter packet numbers

Will save up to 5 bytes per packet in the Public Header.

implemented in 7169584


fix bug when swan-cluser stop can.t restart

Codecov Report

Merging #361 into master will increase coverage by 0.12%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #361      +/-   ##
=========================================
+ Coverage   42.28%   42.4%   +0.12%
=========================================
  Files          12      12
  Lines       10203   10191      -12
=========================================
+ Hits         4314    4322       +8
- Misses       4714    4720       +6
+ Partials     1175    1149      -26

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 9ac7c56...d4555bb. Read the comment docs.


Feature ping pong game

issue no:- 2132
issue faced:- ping pong game dont work we need to include ai for left paddle
Added Player and AI Paddle Control:
The left paddle is now controlled by the Arrow Up and Arrow Down keys.
The right paddle is AI-controlled, automatically tracking the ball's vertical position.
Added Start/Pause and Reset Functionality:
1)tart/Pause Button: Allows the player to start and pause the game.
2)Reset Button: Resets the game, including scores and ball position, to the initial state.
3)Added Scoring System:
Added a scoreboard to display the scores of the left and right players.
A point is awarded each time the ball goes past a paddle (either left or right).
Winning Condition: The game ends and displays a winning alert when one player reaches the winning score (5 points).
4)Ball Reset After Each Score:
After each point is scored, the ball resets to the center with a random direction to restart play smoothly.
Enhanced Ball and Paddle Collision Detection:
5)Improved collision detection so the ball changes direction correctly when hitting paddles, top, and bottom walls.
6)CSS and UI Styling Adjustments:
Added styling for paddles, ball, scoreboard, and control buttons.
Enhanced the visuals with a dark background and highlighted elements (like the scoreboard and buttons) for a cleaner look.

@MrHydrolifker resolve the conflict and mention the issue no

@MrHydrolifker resolve the conflict and mention the issue no

issues no 2132 mentioned . conflicts also resolved

fix #2132


drivers:serial Unable to achieve continuous reception on STM32 with async API

Discussed in https://github.com/zephyrproject-rtos/zephyr/discussions/79831

Originally posted by msmttchr October 15, 2024
We are having trouble using some of the lower-end MCUs (STM32F0, G0 and C0) for some of our end-devices.
The MCUs in these devices must support a UART interface at sustained 500Kbps with no flow control.
We've noticed data loss when using Zephyr v3.7.0 UART driver with UART_ASYNC_API.
Using this configuration we have seen data loss when the DMA interrupts and attempts to restart the DMA with a new buffer.
We believe the cause of the data loss is because the current driver implementation doesn’t process data quickly enough.
Normally, STM32 supports circular dma buffer management with ability to have half full irq and full irq, so that software can read previous half while current half is being filled. In this case, no dma buffer setup is needed during reception, but I believe Zephyr drivers model does not support circular buffer.
Could you please suggest how to handle this use case?

was already created https://github.com/zephyrproject-rtos/zephyr/issues/79999


Erlang 18.0 now() fix.

Make erlang_js work in OTP 18.
This fixes the OTP 18 deprecation warnings for erlang:now(), which are fatal due to warnings_as_errors in the erl_opts setting in rebar.config.
The erlang_js_timestamp.erl code is from http://www.erlang.org/doc/apps/erts/time_compat.erl
The modified erlang_js application passes "make test" in basho/otp branches basho-otp16, basho-otp-17, and basho-otp-18. "All 55 tests passed."

I notice that mkurkov fixed this in #49 by changing erlang:now() to os:timestamp(). That has slightly different semantics. erlang:now() is guaranteed to always return a unique value. os:timestamp() returns the wall clock time. I don't know if that matters here, but the erlang() folks recommend replacing erlang:now() with erlang:timestamp() in 18.0 and leaving it as is before that, which is what my version does.
I do like the simplicity of mkurkov's fix, though.

The correct way to time execution of an operation is with the timer:tc functions, whose implementations differ to use appropriate timekeeping primitives across OTP releases.
The approach in this PR should not be used.

Agree with @tburghart, specifically in that here the code is about timing a function call, and not the uniqueness of the value returned. by now() or os:timestamp(). There's a competing PR, containing the right thing: https://github.com/basho/erlang_js/pull/55. Informative explanations by @billstclair, though.

Fixed in #55 and merged. So I believe someone should close this PR.

Closing, then. Thank you for your contributions guys.


Kafka is very backlevel in Egeria

The current Kafka connector being used with OMRS/OMAS is using Kafka 0.10, which was released in 2016. This is encoded in the top level pom.xml (         <kafka.version><IP_ADDRESS></kafka.version> )
The current version of Kafka is 2.1.
In deployment testing I had some kafka instabilities, and am concerned the vast difference in versions could be a factor. Additionally we are incurring the possibility of having more security issues or integration challenges by being so backlevel.
I would recommend we upgrade our version of kafka. It would be advisable to change to  rather than using properties also

Closing as dup of #320 (which I couldn't find!)


GitHub Pages deploy from /src

By default, GitHub Pages deploys content (.md, .html) from the root directory. Try point it to deploy content from another directory, E.g: /src.

Fix 1: Create symbolic link


scikit-fuzzy vs fuzzylogic

Hello, thanks for this great tool. I would like to know the key differences between scikit-fuzzy and fuzzylogic. It appears to me both tools are good but scikit-fuzzy seems a bit more intuitive when building the rules

Hi,
thanks for your interest in fuzzylogic! Your question flatters me :) I'll try my best to answer it.
I guess one key difference is that I've built fuzzylogic solely for my own aspiration and to "get it right" in python, which, obviously, is quite different from the origin of scikit-fuzzy as a scientific library.
From what I've seen so far of scikit-fuzzy, I honestly think fuzzylogic is easier to work and experiment with. I've looked at some examples for scikit-fuzzy and was baffled at how clumsy and inelegant some things are realized. My guess is, that might be because scikit-fuzzy is much older than fuzzylogic and didn't have the chance to adopt some of the python3 goodness yet or maybe they never tried to push the boundaries of python syntax?
Also, for me there never was a reason to implement simulation stuff in fuzzylogic thus far, so those parts surely are lacking, if you are interested in that.
Since you mentioned the rules specifically, I will have to agree with you on that. I've only added this part recently in close feedback with a guy who wants to use fuzzylogic for a facility HVAC system. Scikit-fuzzy offered some inspiration for how to realize this part, but I definitely haven't reached feature-parity with scikit-fuzzy there yet.
If you need anything in particular to realize what you want that fuzzylogic can't do yet, I'd be happy to discuss and add features to make it more useful.

Btw, it is now possible to describe rules with two input variables via tables using pandas. Input either be text tables, excel, etc. anything pandas supports, which should make it really easy to use in most practical cases. If more input variables are needed, "classic" Rules still can be used and both approaches can be freely combined.


idea: figure out how to more declaratively manage instrumentation dependencies and transitive dependencies

Hi hello, it's me - a maintainer pretending to be the amazing release engineer that is @arielvalentin! Having attempted to fill in for him the past few days, I've found myself a little confused about how we're releasing things.
As I understand things, we basically have to:

Keep track of which instrumentation versions have been released to rubygems and make sure we always have the latest releases pushed. This is a manual process!
Keep track of the various sub-dependency chains (-rails depends on its various sub-gems; -all on its various sub-gems including -rails 🙃) and release things in the correct order.
Any gem release that needs transitive dependency updates is complex, and involves at least 3 PRs (one PR to release the sub-dependency, a second PR to bump the required version in the actual gem we want to release, and finally a third PR to release the actual thing we wanted to release)
Remember the foibles of the release tooling (CI doesn't kick off correctly, updates to main can wreak havoc, etc).

Each release feels like a ton of work. With all that in mind I want to propose the following:

Centrally track gem dependencies in a YAML file in the repo. I think referencing our dependency chains in one place will go a long way towards helping us remember what the heck we actually have to do, and then we can build smarter tooling upon it.
Replace toys with something that the current maintainers understand more readily. toys seems nice in a lot of ways, but it does a lot of work behind the scenes that feels mysterious to us. I'd much rather have something less-magic that actually results in us understanding the tooling better. We can build automation around smaller, discrete pieces as needed.
Coordinate version bumps better via automation. For example, if we change -action_pack, then something should automatically enforce that -rails and -all have their dependencies updated automatically.
Have automation that tells us what needs to be released, rather than ... trying to just divine it by staring at the codebase.

I don't know that this is necessarily the right approach or even captures all of the annoying bits. This is just what annoys me, and frankly the complexity of it all contributes to me being afraid to do my part in releasing (I'm afraid that I'll mess it up unless I'm paying extraordinarily close attention).
Please feel free to debate and/or tear these ideas apart. We don't have to do all of them; and what we do decide to work on can be done bit by bit.

It should also be noted that I am volunteering to do most/all of the work to make this happen. It's not the most rewarding work, but I feel like it's the least I can do given that I've not been really doing my fair share releasing things around here. 😆

I think this is important work to do. Maybe we can start by sketching out what the centralized dependency definer would look like? Anyone know of prior art on this type of thing? Seems like a solved problem.


Conflicts between DHCP and static IP configuration via cloud-config

Hey,
we have an issue with IP addresses being droped by coreos instances when they have the same IP address configured within DHCP and statically via /usr/share/oem/cloud-config.
It seems when the DHCP server leases the same IP address to a coreos interface as is configured statically via /usr/share/oem/cloud-config.yml, the IP address flag dynamic is not removed by coreos/systemd/systemd-networkd. So, the IP address is droped once the lease is expired (in this case 120 seconds) while it is supposed to be configured statically.
The cofiguration of the DHCP server has been carried out dynamically by some infrastructure management tool and this situation will probsbly standard in many infrastrutures.
coreos release is 522.6.0.

May be related to issue #377

This is indeed related to #377 (which was resolved). Give the latest stable (currently 557.2.0) a shot.

Closing as this should be fixed.


unused emission files

Removed files  emission.h and  emission.cpp as the reward structure has been changed and these files are not longer valide and useful

Thanks for pointing that out


Is ImportCertificateWithHttpMessagesAsync idempotent?

I am trying to figure out whether the operation ImportCertificateWithHttpMessagesAsync on KeyVaultClient is idempotent or not. The documentation is a bit unclear on this one.

Thank you for opening this issue! We are routing it to the appropriate team for follow up.
CC: @schaabs

@sarajang thanks for your feedback on the documentation.  Adding @prashanthyv who can help with updating the documentation.
To answer your question, yes ImportCertificateWithHttpMessagesAsync is idempotent.  Importing a certificate will result in a new certificate being created in the case that a certificate with the specified name doesn't already exist in the vault.  In the case that a certificate with the specified name already exists in the vault, a new version of the certificate is created.  All versions of the certificate can be accessed via GetCertificateAsync or GetCertificateWithHttpMessagesAsync by specifying the specific version, if no version is speicired the latest version of that certificate will be returned.  Please let me know if you have more questions.

Thanks @schaabs

Thank you, would appreciate an update to the documentation as well.

@sarajang - We need to do a code update for the same. Will work on it.
Thanks


Tab 1px issue

When using the tab module and have multiple tabs. The first tab is always around 1px greater then rest of the tabs in height ..
Check demo in kitchen sink

The first tab is not 1px greater than the rest of the tabs. It is the active tab that is 1px great (which happens to be the first tab by default). I am under this impression that this is probably due to the fact that the active tab has a border that is 1px wide.

when I select tab 2 or 3 they will be the active tab, so they would also be 1px greater. So it should not jump 1px when switching.. Is doesn't happen when you switch between tab 2,3 and 4 etc
Try switching between tab "first" and "second" then try between "second" and "third"
http://semantic-ui.com/modules/tab.html#/examples

Caused by adjacent attached rule not being applied on first tab
.ui.segment.attached + .ui.segment.attached:not(.top) {
    border-top: medium none;
}


Making cURL requests in Node.js

Proposed title of article
Making cURL requests in Node.js
Introduction paragraph (2-3 paragraphs):
cURL(client URL) is a free tool used to make network requests from the command-line or terminal using various protocols available. It's very useful when one wants an application to make a request without necessarily engaging a user e.g checking and validating the access token for using an API. For backend developers like me, it may come in handy when we want to send form data to test our APIs without designing a user interface for a form.
Other than the command-line, we can use cURL and display responses gotten from the requests on a webpage. In this article, we are going to look at using cURL in Node.js using these two libraries:

node-libcurl
curl-request

Key takeaways:
At the end, the reader will get to know about:

cURL requests
The uses and advantages of cURL
Using the two libraries for making cURL requests in Node.js

References:
node-libcurl documentation
curl-request documentation
PairBlog

seems like a helpful topic - lets please be sure it add value beyond what is in any official docs and that it does not overlap with any existing EngEd articles (if you haven't already). - approved @vinstex


ADS: DaxTextInput Hide Password Icon

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #3002   👈

This comment was auto-generated by Graphite.


Added Intermediate file and slightly modified beginner

Added intermediate file and did some minor fixes in beginner

Resolve the conflict

is practice.html and beginner.html the same file ?

delete the beginner file.


League Director doesn't launch on old replays

So I was doing some camera moves with a replay, then I went for some games.
Unfortunately, the game I was replaying became my 21st recent game so it came out of the Match History. So I took the ROFL file and dragged it on the LoL.exe to make it work and I got the replay.
But I noticed that League Director didn't detect it and still was on the "choose folder" startup window and my in game settings (mouse speed, camera speed, sound volume...) were totally reset to default

Is the old version at least version 9.4? The API went live in that release.
You should also follow the instructions here to make sure the old copy of your LOL installation has the correct config: https://developer.riotgames.com/replay-apis.html

Yes it is, I will check those instructions. Thanks for your help!