when I use fit_generator, the loss doesn't change. But fit works well

I have a large dataset to train on Keras, in order to avoid the "Memory Error", I have tried to use fit_generator. It's wierd that when I use fit_generator, the loss seems doesn't change, but the fit function works well. whatever the fir_gen or fit function, the dataset and other code are same.
And this is a lstm - seq2seq model.
I have searched for a long time and I found other two questions which seems as same as me.
1.https://stackoverflow.com/questions/42025546/keras-network-doesnt-train-with-fit-generator
According to this article, I change my batch_size but it doesn't work. And when I try to change the 'yield' to return, it throws me an error.
2.https://stackoverflow.com/questions/44245813/keras-doesnt-train-using-fit-generator
This article actually doesn't have a answer.
model.fit_generator(generate_train(batch_size=200),                      steps_per_epoch=5,                     epochs=100,                      verbose=1,                      callbacks=callbacks_list,                      class_weight=None,                      max_queue_size=10,                      workers=1,                      use_multiprocessing=False,                      shuffle=False,                      initial_epoch=initial_epoch                     )
def generate_train(batch_size):
  steps=0
context_ = np.load(main_path + middle_data/context_indexes.npy)
final_target_ = np.load(main_path + middle_data/target_indexes.npy)
 context_ = context_[:1000]
 final_target_ = final_target_[:1000]
 while True:
 context = context_[steps:steps+batch_size]
 final_target = final_target_[steps:steps+batch_size]
    processing. . .
    outs = . . .

    yield [context, final_target], outs
    steps += batch_size
    if steps == 1000:
        steps = 0`

when I use fit():
Epoch 1/30 loss: 2.5948 - acc: 0.0583  Epoch 2/30 loss: 2.0840 - acc: 0.0836  Epoch 3/30 loss: 1.9226 - acc: 0.0998  Epoch 4/30 loss: 1.8286 - acc: 0.1086  Epoch 5/30 loss: 1.7399 - acc: 0.1139  Epoch 6/30 loss: 1.6509 - acc: 0.1192  Epoch 7/30 loss: 1.5518 - acc: 0.1247  Epoch 8/30 loss: 1.4330 - acc: 0.1316  Epoch 9/30 loss: 1.3117 - acc: 0.1454  Epoch 10/30 loss: 1.1872 - acc: 0.1657  Epoch 11/30 loss: 1.0720 - acc: 0.1893  Epoch 12/30 loss: 0.9589 - acc: 0.2169  . . .
when I use fit_generator():
Epoch 1/100 loss: 3.4926 - acc: 0.0370 Epoch 2/100 loss: 2.7239 - acc: 0.0388 Epoch 3/100 loss: 2.6030 - acc: 0.0389 Epoch 4/100 loss: 2.5727 - acc: 0.0408 Epoch 5/100 loss: 2.5628 - acc: 0.0366 Epoch 6/100 loss: 2.5513 - acc: 0.0420 Epoch 7/100 loss: 2.5475 - acc: 0.0387 Epoch 8/100 loss: 2.5508 - acc: 0.0407 Epoch 9/100 loss: 2.5490 - acc: 0.0418 Epoch 10/100 loss: 2.5419 - acc: 0.0401

sorry for the code format.I don't know how to adjust it.

I have already found answer.
I print all the data that come form generator by 'yield', and I found that I have mistakenly rewrite the traing-data every epoch. . .
So the original data is changing and changing which led to the stable loss.
Thank you !


Cannot create property 'value' on number '0'

Hey, not sure if you knew this, but I utilize this module in my own module (DFreds Pocket Change) to provide some easy looting mechanisms. After the latest update, I see this:
foundry.js:2013 TypeError: Cannot create property 'value' on number '0'
[Detected 1 package: lootsheetnpc5e]
    at LootSheet5eNPC._prepareGMSettings (lootsheetnpc5e.js:1188)
    at LootSheet5eNPC.getData (lootsheetnpc5e.js:141)
    at LootSheet5eNPC._render (foundry.js:2049)
    at B.🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:466)
    at LootSheet5eNPC.🎁Application.prototype._render#lib-wrapper (listeners.js:110)
    at LootSheet5eNPC.🎁Application.prototype._render#0 (libWrapper-wrapper.js:161)
    at LootSheet5eNPC._render (foundry.js:2736)
    at LootSheet5eNPC.render (foundry.js:2011)
    at LootSheet5eNPC.render (foundry.js:3231)
    at Token5e._onClickLeft2 (foundry.js:46090)
    at MouseInteractionManager.callback (foundry.js:35929)
    at MouseInteractionManager._handleClickLeft2 (foundry.js:36133)
    at MouseInteractionManager._handleMouseDown (foundry.js:36095)
    at Token5e.a.emit (index.js:181)
    at r.dispatchEvent (interaction.min.js:8)
    at r.processPointerDown (interaction.min.js:8)
    at t.recursiveFindHit (interaction.min.js:8)
    at t.recursiveFindHit (interaction.min.js:8)
    at t.recursiveFindHit (interaction.min.js:8)
    at t.recursiveFindHit (interaction.min.js:8)
    at t.findHit (interaction.min.js:8)
    at r.processInteractive (interaction.min.js:8)
    at r.onPointerDown (interaction.min.js:8)

It seems to relate to still using .value here, but I'm not totally sure: https://github.com/jopeek/fvtt-loot-sheet-npc-5e/compare/3.1.0...3.2.0#diff-5801441f493a61e4a2a4ed4da9367f5c482b5d14b27cd4ae367834a02f9d21b3R1185
I manually removed all the uses of .value in the above method, which causes the error to stop occurring. However, the currency is then not displayed on the loot sheet.
Steps to Reproduce

Install libWrapper, LootSheetNpc5e, and DFreds Pocket Change and activate them in a new world
Drop an NPC (such as acolyte) onto the canvas (observe that the console log says (dfreds-pocket-change | Generating treasure)
Convert that actor to a lootable (via Convert Selected Tokens to Loot macro included with pocket change)
Attempt to open that NPC's sheet and observe error in console

I don't know if this helps at all, but here is the code for converting to a lootable sheet: https://github.com/DFreds/dfreds-pocket-change/blob/main/scripts/pocket-change.js#L197
I used to account for the .value here but that seems like it should be unnecessary now.

@DFreds I've just pushed a currency fix PR. If you happen to have a chance, try pulling my fork and see if it fixes your issue.
https://github.com/flamewave000/fvtt-loot-sheet-npc-5e

Try 3.2.2 and let us know if that solved it.


Remove binary dependency on org.apache.hadoop.fs.s3.S3FileSystem

This removes an unintended binary dependency on the org.apache.hadoop.fs.s3.S3FileSystem class. Our use of this class introduced an implicit dependency on the hadoop-aws artifact, which is not present in EMR.
Fixes #92.

Thanks for taking care of that so fast!
Cc: @emlyn as he ran into his earlier today.
On 23 Sep 2015 19:48, "Josh Rosen"<EMAIL_ADDRESS>wrote:

This removes an unintended binary dependency on the
org.apache.hadoop.fs.s3.S3FileSystem class. Our use of this class
introduced an implicit dependency on the hadoop-aws artifact, which is
not present in EMR.
Closes #92 https://github.com/databricks/spark-redshift/issues/92.
You can view, comment on, or merge this pull request online at:
https://github.com/databricks/spark-redshift/pull/94
Commit Summary

Avoid binary dependency on hadoop-aws classes.

File Changes

M src/main/scala/com/databricks/spark/redshift/Utils.scala
https://github.com/databricks/spark-redshift/pull/94/files#diff-0
(7)

Patch Links:

https://github.com/databricks/spark-redshift/pull/94.patch
https://github.com/databricks/spark-redshift/pull/94.diff

—
Reply to this email directly or view it on GitHub
https://github.com/databricks/spark-redshift/pull/94.

Current coverage is 94.84%

Merging #94 into master will not affect coverage as of 186c7a0

@@            master     #94   diff @@
======================================
  Files           11      11
  Stmts          446     446
  Branches       109     109
  Methods          0       0
======================================
  Hit            423     423
  Partial          0       0
  Missed          23      23

Review entire Coverage Diff as of 186c7a0

Powered by Codecov. Updated on successful CI builds.


RCTBridge required dispatch_sync to load RCTDevSettings.

 This may lead to deadlocks
Code based on the example runs ok in simulator (but of course doesn't use camera)
Running on the phone loads ok at first until it deadlocks with the above error - anyone have similar issues?
It would be really helpful in general if someone could publish a working example along with the working environment.

It's possible that my issue is not related to this warning but it does crash when run on an actual phone (not the simulator)

Can you verify if is still happening with the new version ? Take a look at the README since their were some api changes.

Closing due to inactivity. Please open again if the problem persists.


Wrong Account Type User - Say F2p Ult

Say F2p Ult is in ultimate ironman, not a regular account.
https://www.f2p.wiki/players/Say F2p Ult

I'm not sure if clicking the wrong account type? click here actually did anything. If it did notify you already, perhaps when clicked a message could be displayed saying your request for the check had been sent successfully.
Thanks!

Thanks for documenting this and apologies for the delay. The root issue has been fixed as part of PRs #19, which was due to some unexpected Jagex API issues and some improvements we made to API calls.
#22 also further improved the wrong_account_type? to correctly import the same gains/records into the new account type.


Unable to connect to default Laravel 11 SQLite database

Extension Version
1.4.0
OS and Version
Windows 11 Pro 64-bit (10.0, Build 22631)
VS Code Version
v1.87.2
Database name and Version
SQLite v3.40.0
Steps to reproduce

Create a new Laravel 11 app and attempt to connect to its default SQLite database.  I get the error below:

Error: \?\c:\Users\User_Account.vscode\extensions\damms005.devdb-1.4.0-win32-x64\node_modules\sqlite3\build\Release\node_sqlite3.node is not a valid Win32 application. \?\c:\Users\User_Account.vscode\extensions\damms005.devdb-1.4.0-win32-x64\node_modules\sqlite3\build\Release\node_sqlite3.node

I also tried to manually browse to the SQLite database location and select it but this too did not work. I got the errors below:

Provider selection error: Could not get database engine for file-picker-sqlite
The selected file is not a valid SQLite database.
Expected behavior
I expected the devdb extension to automatically read the laravel configuration and connect to the dafault SQLite database
Screenshots

Additional context
No response

Duplicate of #46


Hop now requires credit card

It's still a viable alternative, just edit the text instead of removing entirely

It's still a viable alternative. Just edit the text instead of removing entirely

Haven't removed entirely. Just put it in the credit card required section


construct PATH containing the varnishd we are configured for

This is required since master commit 0a05e52c9c84ac4eca5d5049bf02954d1ec1dba3

This is taken care of in #30 but I won't press the merge button on my own submission.

thx, @Dridi


flutter/bin/internal/update_dart_sdk.sh: line 54: curl: command not found

I am getting "flutter/bin/internal/update_dart_sdk.sh: line 54: curl: command not found" error when running flutter doctor in terminal

What OS are you using? Is this a fresh Flutter install created with git clone ...?

I have the same issue here. i am running Ubuntu Linux and this is a fresh install created with git clone. This is the error that im getting when im running "flutter doctor" :
user@ThinkPad:~$ flutter doctor
Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a...
/home/user/flutter/bin/internal/update_dart_sdk.sh: line 54: curl: command not found

@zoechi I am using linux, and yes its a fresh install with git clone. refer @jlmalabanan comment, I am getting the same.

@Emil333 is `curl available on your system?

What fixed this for me was installing curl. Worked like a charm after that.

+1 for @mattjackson114, the issue is resolved once CURL is installed with an apt-get.

This should be closed.


Question: Adding support for EncryptingCredentials

When defining the SecurityTokenDescriptor, you can not only set the SigningCredentials, but the EncryptingCredentials as well.
Is there a way to use the same key to set the EncryptingCredentials as well. I've been trying the following, but I've been getting an exception, and I'm not sure how to solve it:
private string EncodeToken(ClaimsIdentity identityClaims)
{
	var tokenHandler = new JwtSecurityTokenHandler();
	var currentIssuer = $"{ControllerContext.HttpContext.Request.Scheme}://{ControllerContext.HttpContext.Request.Host}";
	var key = _jwksService.GetCurrent();

	var encryptingCredentials = new EncryptingCredentials(key.Key, SecurityAlgorithms.RsaOAEP, SecurityAlgorithms.Aes128CbcHmacSha256);
	var token = tokenHandler.CreateToken(new SecurityTokenDescriptor
	{
		Issuer = currentIssuer,
		Subject = identityClaims,
		Expires = DateTime.UtcNow.AddHours(1),
		SigningCredentials = key,
		EncryptingCredentials = encryptingCredentials
	});

	return tokenHandler.WriteToken(token);
}

Exception is:
Microsoft.IdentityModel.Tokens.SecurityTokenEncryptionFailedException: IDX10615: Encryption failed. No support for: Algorithm: '', SecurityKey: 'Microsoft.IdentityModel.Tokens.JsonWebKey, Use: 'sig',  Kid: '0EfgPGGNZBsnn69wrnwLzg', Kty: 'EC', InternalId: '2cIn0xM5H76UBp4u-Bx2MRU-S2YAS0XsHqe67NE4Cbk'.'.
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.CreateEncryptedToken(JwtSecurityToken innerJwt, EncryptingCredentials encryptingCredentials)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.CreateJwtSecurityTokenPrivate(String issuer, String audience, ClaimsIdentity subject, Nullable`1 notBefore, Nullable`1 expires, Nullable`1 issuedAt, SigningCredentials signingCredentials, EncryptingCredentials encryptingCredentials)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.CreateToken(SecurityTokenDescriptor tokenDescriptor)

@brunohbrito Can you check this?

Hi @rebeccapowell
By default this component use ECDsa to generate the Keys and by your example we can see you are trying to use a RSA
new EncryptingCredentials(key.Key, SecurityAlgorithms.RsaOAEP, SecurityAlgorithms.Aes128CbcHmacSha256);

If you go to your startup.cs and change it to:
services.AddJwksManager(options => options.Algorithm = Algorithm.RS256)

Then it should work.
This component was designed to work with JWS. The algoritms it supports are those listed at RFC 7518 - JWS section. Maybe it could have some differences between JWE alg's
I'll work in a version to support JWE algs.

@rebeccapowell Hi!
There are support for Jwe now. Search for NetDevPack.Security.Jwt . And it's fully integrated with ASP.NET Core DataProtection to store keys.


Numeric facets not being refreshed after Undo/Redo

Original author<EMAIL_ADDRESS>(June 07, 2011 14:15:37)
What steps will reproduce the problem?

Create a numeric facet on width column
Perform some op (e.g. Create new column new width based on column width by filling 5 rows with grel:value)
Undo it
Return to Facet/Filter

What is the expected output? What do you see instead?
Expect to see the numeric facet up to date. Instead it shows no histogram.
What version of Google Refine are you using?
r2090 & r1836
What operating system and browser are you using?
Windows & Chrome 11
Is this problem specific to the type of browser you're using or it happens
in all the browsers you tried?
Just this combo.
I've included a small TSV to play with if you don't have one handy.
Original issue: http://code.google.com/p/google-refine/issues/detail?id=400

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/62911-numeric-facets-not-being-refreshed-after-undo-redo?utm_campaign=plugin&utm_content=tracker%2F32795&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F32795&utm_medium=issues&utm_source=github).

Just verify it under chrome "Version 43.0.2357.132 m", can't reproduce it. Since Chrome 11 is pretty old also JQuery has been upgraded at Sep of 2014, I suggest we close it.


fix: prune oldest slots first in aggregator tracker

Motivation
Due to the fact the we are pruning based on FIFO it might happen that we prune a slot which is in the future and should not yet be pruned.
This is completely random as is depends on the order of which the validator client submits the subscriptions, current epoch vs. next epoch first, and the order of the items themselves. For example at the start of epoch 0, the client submits epoch 1 first, then epoch 0 and if there is an aggregator for each slot (likely with a lot of keys) then the cache is already full (64 items). Then at the start of epoch 1, some clients only submit for epoch 2 (next epoch) but this means we start pruning items of epoch 1, but that's the current epoch which should not yet be pruned.
While Lodestar calls prepareBeaconCommitteeSubnet always for current and next epoch, other clients like Nimbus, Teku and Vouch do not, which might lead to the issue that Lodestar does not prepare an aggregated attestation (#6631, #6419), as at the time when the attestations are submitted via submitPoolAttestations the aggregator check will return false.
Description
Prune oldest slots first in aggregator tracker to ensure we only prune slots that are in the past.
Alternative solution
We could also increase the max cache slots to 3 epochs
Closes https://github.com/ChainSafe/lodestar/issues/6631
Closes https://github.com/ChainSafe/lodestar/issues/6419

It might be nice to have unit tests to ensure no regression are introduced to those kind of expectations.

Could add unit tests for aggregator tracker but the logic is pretty simple, the problem with this issue is that it involves multiple parts of the code base, so only good way too test this is in an e2e or even better a sim test.

@tuyennhv sorry I misclicked and re-requested your review

Keeping as draft for now, happy to elaborate on different apporaches, and probably good idea to have a minimal set of units tests on aggregator tracker.

:tada: This PR is included in v1.18.0 :tada:


Feature request - full documented step by step Installation in luks encrypted partition

Sorry found it...
https://github.com/rancher/os/pull/2545


Handle format changes instead of using deprecated FFmpeg feature

This is needed for future FFmpeg version compatibility.
It will also make it possible to clearly report/scan if a file is constant format on index.

How to implement it:
Always index all frames without dropping any at all, when indexing also store which format and dimensions every frame has.
Allow the user to select to return only frames that belong to the nth format set.
This has the advantage that even if variable format output is enabled clips can have a constant format if there actually are no format changes.

unfortunately that there is no alternative to FFmpeg right now


variable synchronization  with local memory

What problem does this feature solve?
I want open vue web app and I want define variables with custom attribute to save in local memory, and update it for all opened browser tabs.
What does the proposed API look like?
Simple define for same variables attribute : = local memory sync

Sorry, but this is not a concrete feature request, but a support question.
Please make sure to read the Issue Reporting Guidelines before opening new issues. The issue list only accepts bug reports and feature requests. Questions should be posted to the Gitter chat room,  forum or StackOverflow. Thanks.


Fix silly typo for C example in README

Simple and silly typo I noticed while looking at this project again. Too much Python!

Thanks!


SQL Dependency Objects dissapearing

Hi, I have implemented the SQL Dependency in a windows service that monitors a SQL table. It works fine for some time, but after a while, the windows service is still running, but the objects such as triggers, ques and procedures dissappear. This is the error I see in the SQL error log:
BEGIN CONVERSATION TIMER ('02598646-7BF9-E811-822E-819C09A9EC0E') TIMEOUT = 180;WAITFOR (RECEIVE TOP(51) [message_type_name], [message_body] FROM [dbo].[dbo_Table_Name_72badd87-553d-4898-905b-7c573ed1c873_Receiver]), TIMEOUT 120000;
Is there a setting that I am missing while initializing the dependency?

Hi, as mentioned in the home page:
Windows service using SqlTableDependency must not goes to SLEEP mode or IDLE state. Sleep mode blocks SqlTableDependency code and this result in running the database watch dog that drops all SqlTableDependency's db objects (please see https://stackoverflow.com/questions/6302185/how-to-prevent-windows-from-entering-idle-state).


Missing optional element in "L" line parsing

At line 511 in gfakluge.cpp, we start indexing optional elements from (>=7). Dengfeng has reported that this removes one of his opt elements. We should probably start from index = 6.

Fixed by #25


fix: CASE with NULL

Which issue does this PR close?

Closes #11258
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thanks @Weijun-H  and @jonahgao


Placeholder text for Mentor field has a typo

Description
On the Personal stage, there is a field for Mentor. The placeholder text reads "mentore". This appears to be a typo.
Expected behavior
I would expect this to say something like "mentor name" or "mentor's full name"
Steps To Reproduce

Go to '/Application'
Process your application to the Personal stage
On the Personal Information form, ensure the Mentor field is 'empty' so that placeholder text displays.

Possible Fix
mentor name as a replacement text could work.
Your Environment

Browser Name and version: Chrome
Operating System and version (desktop or mobile): Desktop
Docker Version: N/A

Screenshots

Fixed in #98


Create Prod Build of CRA UI

Currently, the new CRA UI only works in development mode. We need to make a production build as well.
@davidradl @grahamwallis Do we want to serve the static files from the same server (CRA-Server), or do we want to use another Nginx server? Serving from the CRA-Server will require installing a proxy router I believe.

@jmmadsen I am not an expert at this. I notice this link https://create-react-app.dev/docs/proxying-api-requests-in-development/ seems to be talking about proxying for development case. I do not understand why we would need to proxy for the production case, where there is no development server, so static resources and the rest endpoints are both on the same server (as they are at the moment). There maybe a need to change the development server endpoints to allow easy proxying, the link suggests prefixing rest call end points with /api/ so the dev server only handlers the static content and rest calls are always sent to the API server. @dkneisly any thoughts?

The UI being developed for ING is also making use of nginx for static content. We're trying to get that working now as a first pass for our automated deployment in #3893
I know that for that work (on ui-server-chassis) a similar change was made to move to /api/ in order to make routing easier -- in that ui's case they are using the netflix zuul proxy.
As to whether it's needed - for high volume sites absolutely. My gut feel says it's more than we need right now, but that doesn't mean it's not a good idea.. (performance, security, seperation of concerns..)


allow aliases of class methods in C

Description
To allow aliases of class methods in C.
Completed Tasks

[x] I have read the Contributing Guide.
[x] The pull request is complete (implemented / written).
[x] Git commits have been cleaned up (squash WIP / revert commits).
[x] I wrote tests and ran bundle exec rake locally (if code is attached to PR).

Coverage increased (+0.003%) to 93.455% when pulling ee96599c6f83e101fbe3249451c7687b54b933f6 on yagisumi:aliases-of-class-methods into a85a26220a4f2c7ba2c6bb725b6108a302fa1b47 on lsegal:master.

I'm okay with this as a stopgap but it looks like this only solves for one specific usage where rb_singleton_class() is used directly. This wouldn't account for:
VALUE foometa = rb_singleton_class("Foo");
rb_define_alias(foometa, "a", "b");

In fact, it seems as though rb_singleton_class() can be used as an argument to any of the rb_def* calls, and if so, it would be smarter to step back and look at the way namespace_for_variable resolves values.

Hi. I think so, too.
Anyway, I wanted to solve common patterns.
For now, I am glad if handle_alias method has a scope argument.
Then I can write handlers for my documentation.


Xcode 8 beta 1: install Alcatraz fail

Goals
Install Alcatraz with Xcode 8 Beta 1
Expected Results
The package manager should successfully Install
Actual Results
Install fails to build In Terminal with this error
xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
Steps to Reproduce
Terminal input: curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
Version Info
Alcatraz version: latest
Xcode version: 8.0 Beta 1
OSX version:  OS X 10.11.6

Please see: https://github.com/alcatraz/Alcatraz/issues/475


Adding WithState and withState helpers to allow pure components actually change their state in stories

WithState or withState can be used to wrap a component and inject into it prop values coming from change handlers:
import { storiesOf, action, withState, WithState } from '@kadira/storybook'

storiesOf('ui.ButtonGroup', module)

  .add('segmented control', () =>
      <WithState handlers={{ onButtonSelected: 'activeId' }}>
          <ButtonGroup type="segmentedControl"
                       activeId={ 1 }
                       items={ [ { id: 1, name: 'One' }, { id: 2, name: 'Two' } ] }
                       onButtonSelected={ action('onButtonSelected') }
                    />
      </WithState>
  )

  .add('tabbed pane', withState({ onButtonSelected: 'activeId' }, () =>
     <ButtonGroup type="tabbedPane"
                  activeId={ 1 }
                  items={ [ { id: 1, name: 'One' }, { id: 2, name: 'Two' } ] }
                  onButtonSelected={ action('onButtonSelected') }
                />
  ))

Could you give us more information about this PR, may be a complete use case?
And I really like to have a single API to do a thing. So, I think just having withState is good enough.

In plain stories you can't see state changes in pure components. WithState is a simple way to add a state container to a component and see it in action as it would look like in a real app:

If I had to keep only one of the two API variants, I would keep the component WithState then, because the function it is more difficult to use if you want to wrap your component in something else, e.g.:
.add('with WithState', () =>

    <div style={{ width: 200 }}>
      <WithState handlers={{ onButtonSelected: 'activeId' }}>

          <ButtonGroup type="segmentedControl"
                       activeId={ 1 }
                       items={ [ { id: 1, name: 'One' }, { id: 2, name: 'Two' } ] }
                       onButtonSelected={ action('onButtonSelected') }
                    />

      </WithState>
    </div>

  )

It looks like the WithState is intercepting the specified props (onButtonSelected) and updating the paired property (activeId) based on the args that the onButtonSelected func passes.
It looks like it the idea is similar to linkTo functionality, but without changing the story. Instead, it applies the new prop values and re-renders the component (via a setState call within the WithState component).
If you go down the path of providing a way to update the props of a component within a story, then you also be able to open up a way of allowing those props to be a bit more dynamically updated. For example, potentially updated via a text box in the UI.
I wonder if the API could be a bit more generic by accepting functions rather than just strings?
<WithState handlers={onButtonSelected: props => activeId => ({ ...props, { activeId }})}>

// Which looks a little crazy, but is basically:

function onButtonSelected(props) { // WithState passes in the props
  return function (activeId) { // Your component passes in arbitrary args
    return Object.assign(
      {},
      props,
      { activeId: activeId }
    );
  }
}

// So, given a props object, return a new one with the expected state.

Which might make more sense with some name changes (lots of code emitted):
<PropsContainer updaters={onButtonSelected: /* as above */}>
  {props => (
    <ButtonGroup
        activeId={props.activeId}
        onButtonSelected={props.onButtonSelected} />
  )}
</PropsContainer>

Sorry for the ramble, just spitballing here

👍   thanks for the interesting suggestion @jeef3!  I also thought about adding support for functions in handlers, but it didn't bring me that far :) let's see what @arunoda thinks about it.

@ilyabo any update on this ? Needed it for a project. that's why I'm asking.

@ilyabo I think this is great and this doesn't need any support from core storybook APIs. So, I think it's better to create this as a independent NPM module.
We can have a link in the README to addons and list this project there.

I'm going to close this in-favour of separate NPM as mentioned in the above post.


Nested(child) Popup Close Issue

Hello
I'm using nested model popup, which means to popup a model from another model. Actually it works well , but the second one after closing the model on the top, the original model cannot scroll, and completely freeze .
to work validations i'm not using data-dismiss="modal"
if i use   $element.modal('hide'); it will work fine, but if i use close('result', 500); then parent popup will freeze(no buttons work, no scroll)
and also a class append to html tag <html class="modal-open"> after close nested popup
Is there any solution found? if any other people have the same problem.?

I think this a limitation with Bootstrap:
https://v4-alpha.getbootstrap.com/components/modal/#how-it-works

Nested modals aren’t supported as we believe them to be poor user experiences.


publish 1.0.2 from current master?

Can we get a 1.0.2 release? It looks like a minor issue (removal/update of a sub-dependency that has a CVE against it) is solved by that. 1.0.1 is not vulnerable, but having the updated dependencies in production will make auditing easier.

Done:
https://github.com/blahah/unist-util-find/releases/tag/v1.0.2
https://www.npmjs.com/package/unist-util-find/v/1.0.2


The provided socket.io client (io) has already been augmented into a Sails socket SDK instance (it has io.sails)

Hi guys
I'm using Sails.js + Nuxt, but Im only using Sails.js for backend and Nuxt as middleware.
I have a problem, I follow the example for nuxt and websocket combine with basic usages of sails.io.js.
I have a problem:
Nuxt.js Error:

Error: The provided socket.io client (`io`) has already been augmented into a Sails socket SDK instance (it has `io.sails`).
    at SailsIOClient (C:\Users\user\Documents\sailsnuxt\node_modules\sails.io.js\sails.io.js:376:15)
    at Object.222 (plugins/socket-client.js:9:26)
    at __webpack_require__ (webpack:/webpack/bootstrap e43f81667f2018ddd90e:25:0)
    at Object.231 (2.server-bundle.js:480:84)
    at __webpack_require__ (webpack:/webpack/bootstrap e43f81667f2018ddd90e:25:0)
    at Object.214 (pages/noticias/index.vue:7:0)
    at __webpack_require__ (webpack:/webpack/bootstrap e43f81667f2018ddd90e:25:0)

I know what might be the problem, its probably because of this file sails-generate-sails.io.js\node_modules\sails.io.js-dist\sails.io.js, but I have had to install sails.io.js to use it in nuxt, so its show me this conflict.
If I uninstall sails.io.js, doesn't work import sailsIOClient from 'sails.io.js' and if I install it, generates error.
What do you suggest that I have to do?
Thanks

Solution (Worked for me)
The problem here is you are trying to generate another instance of socket in current component (by either importing socket-io or a module which is using it)  but as it is already been imported in your "app.component.module" , (reason) ->It is throwing already augmented . You just have to look for the module that is trying to initiate socket again and remove it from your local module imports.


Update README.md

Small fixes to formatting

Sorry for all the PRs

It's fine x) Thanks you for your helping, you can edit them directly without PR if you want.


Debugger may cause system errors when command initiative is left in the console

Hi there!
I would like to debug a C++ application (may not be important), so a new console is created as cppdbg: name....
The problem is, if I write a command initiative into that console, then start the debugger, it fails.
Like
$ ^C  /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-2bopttgv.y62
bash: :s^C  /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-2bopttgv.y62 : substitution failed

A bigger problem there if e.g. a remove command initiative is there:
$ rm -rf ./build /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-2bopttgv.y62
rm: cannot remove '/usr/bin/env': Permission denied
rm: cannot remove '/bin/sh': Permission denied

If somebody started the IDE with root privileges, then this would cause an uncomfortable surprise.
Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.15.2 (user setup)
OS Version: Ubuntu 20.04

/extCpp


smartyank suppport

Describe the solution you'd like
smartyank.nvim has yank highlight by default, and it works on IncSearch highlight group. So adding support for this would be really great!

https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/editor.lua#L52
i guess, catppuccin already have support for it. https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/editor.lua#L52
i guess adding it to the readme would not hurt.

We don't add support for plugins that link to the default highlight (And works well) by default to shorten the integration table's length


ZEVA - Grey out and re-name supplementary details tab when no supplementary report exists

Description:
For consistency with other areas of the app, if government initiates a re-assessment where there is no supplementary report, then the supplementary details tab should be greyed out. supplementary details should be grey out if there is no supplementary report
Also the supplementary details tab should be renamed to be Supplementary Report. Please re-name.
Purpose and benefit to user:
This change will provide clarity and consistency for IDIR users on whether a supplementary report has been submitted in relation to this reassessment.
Acceptance Criteria:

Given I am a an IDIR user, when I initiate a reassessment and there is no associated supplementary report, then the first tab, which should be named Supplementary report, should be greyed out and there should be no hover over text on it.

Development Checklist:

[ ] A
[ ] B
[ ] C

Notes:

Hey team! Please add your planning poker estimate with Zenhub @AlexZorkin @emi-hi @tim738745 @vibhiquartech


aks-engine v0.42.0

Closing for #415. I was just concerned that aks-engine is still back at 0.40.0, and the CI failures look unrelated. :-|


VSCode UI process can hang if a semantic token with negative values is returned by language service

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.66.2
OS Version: Win11 (but presumably affects all OSs)

See https://github.com/microsoft/vscode-docker/issues/3450, https://github.com/rcjsuen/dockerfile-language-service/issues/104
Steps to Reproduce:

With the Docker extension installed, open the Dockerfile example from https://github.com/microsoft/vscode-docker/issues/3450, or simply enter this into a Dockerfile:
RUN a=${b:="c"}
Observe VSCode freezing up

We are independently working on the issue where negative-valued semantic tokens are returned, but invalid token data from the language service should not be causing VSCode to freeze up.

/cc @rcjsuen

@rcjsuen I'm not very familiar with semantic tokens, so if there's more info you can add here feel free!

I've tried reproducing this in a simple VS Code extension but have not had much luck. @dbaeumer I do not see anything obvious in the LSP client bridge code so I feel like it should be reproducible in a regular extension also...

Yes, agree. This should be reproducible in a VS Code extension also.

@alexdima Thanks for the speedy fix!


chore(deps): update alloy-rs core types monorepo to 0.6.0

Recently, a new major version of the alloy-rs crates has been released.
As this version is incompatible with the previous one in "semver terms", this PR updates the version to the latest one.

This prevents us from upgrading all the alloy-rs dependencies of the graph gateway. See: https://github.com/edgeandnode/graph-gateway/pull/531


Rancher helm chart fails to deploy with restrictedAdmin set to true

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Deploy rancher with the helm chart value restrictedAdmin set to true
Result:
Getting error:
failed to install app rancher. Error: Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found t, error found in rancher/rancher#10 byte of ...|,"value":true}],"ima|..., bigger context ...|"name":"CATTLE_RESTRICTED_DEFAULT_ADMIN","value":true}],"image":"rancher/rancher:v2.5.0-rc2","imageP|...\n
Other details that may be helpful:
@dramich mentioned this line may need double quotes - https://github.com/rancher/rancher/blob/master/chart/templates/deployment.yaml#L109
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
2.5.0-rc2
Installation option (single install/HA):
HA

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Imported
Machine type (cloud/VM/metal) and specifications (CPU/memory):
AWS EC2 m5.large (2vcpu, 8gb ram)
Kubernetes version (use kubectl version):

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T21:51:49Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2+k3s1", GitCommit:"d38505b124c92bffd45f6e0654adb9371cae9610", GitTreeState:"clean", BuildDate:"2020-09-21T17:00:07Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}

Docker version (use docker version)
using containerd!

Tested on 2.5.0-rc3 and LGTM.


parse repophlan demo #1

Compute basic statistics of RepoPhlAn-downloaded genomes (work in progress).

Coverage decreased (-9.6%) to 90.4% when pulling c20351b496e195c8c0fa15c5b43c896a30d0874a on qiyunzhu:master into ce4e5230df3e279dd64ca53fb215cf43d3151831 on biocore:master.

Coverage decreased (-9.6%) to 90.4% when pulling c20351b496e195c8c0fa15c5b43c896a30d0874a on qiyunzhu:master into ce4e5230df3e279dd64ca53fb215cf43d3151831 on biocore:master.

Coverage remained the same at 100.0% when pulling e3070fc48177d8d406f345e33a5dbd29df388a34 on qiyunzhu:master into ce4e5230df3e279dd64ca53fb215cf43d3151831 on biocore:master.

@serenejiang We just finished this PR! can you please review?

Coverage remained the same at 100.0% when pulling 46922ea36cac1b59aa5534a9c84f3b01681ebe73 on qiyunzhu:master into ce4e5230df3e279dd64ca53fb215cf43d3151831 on biocore:master.

Hi @sjanssen2 thanks for reading the code! Just a demo. Though it may be slightly useful. Feel free to merge!

@qiyunzhu said that this PR is mainly for demonstration purposes and used to illustrate the pedantic process of having someone else commenting on your code - which often is very helpful but sometimes also a little frustrating because it is not only about wrong/right programming but also about styles (which is not less important for long term maintenance).
Thus, I went through this code again and commented every little detail that I found - Sorry for being such pedantic :-/

Hello @sjanssen2 Thank you for your careful comments on the coding style. I will respond and revise. @anupriyatripathi and @serenejiang , please refer to them as an example how code review is typically practised.

Coverage remained the same at 100.0% when pulling 68e52d9276a863f8cfe54e51b954992f9c04cc31 on qiyunzhu:master into ce4e5230df3e279dd64ca53fb215cf43d3151831 on biocore:master.

Hi @sjanssen2 I think I took care of your comments. Wanna another look?


Cell phone showing page as text, also mem errors.  Text input for SSID please?

Hello, thank you for making this.  I'm finding it helpful, but my ESP-12 is running into memory errors.  Is there any way for me to just type in the SSID rather than select from a list?  That would make it so my ESP doesn't run out of ram.  Also the webpage is displaying perfectly on my laptop browser, but as html code on my cell phone browser.  Any ideas what that's about?

Hi, I haven't seen that behavior here. What kind of cellphone and browser are you using? I am finding that everything works with an Android phone and the Chrome browser.
Glad this repository is helpful for you, but for myself I have moved to a different solution for serving web pages with the ESP32. Much simpler, you can just write and have served up ordinary html files. No need to bother with reading and writing bytes from a socket, all of that is handled.
https://github.com/jczic/MicroWebSrv


Error while executing makefile

I've been trying to run your makefile, and as soon as I've cloned your git, I have then tried running the make command, but I keep on getting the error that there's no file or directory named sys/syscall.h (included in the randombytes.c and randombytes.h files).

Hmmm. I think sys/syscall.h should be generally present on unix systems. What system are you running?

I was running on a Virtual Machine with 64-bit Ubuntu, apparently that was a big part of the issue, as I've tried it later on a native Ubuntu system and it worked properly.

Ok. I'll mark this issue as resolved for now. If you know which ubuntu package contained the sys/syscall.h file, I'd like to know. Then I can add it to the README.md.


Expand on README.md

Hello,
Would it be possible to expand the README.md, in regards to how implementation is done? More precisely; lets say you use apache or nginx, does all the files and folders need to be /var/www/ ? or what is the minimum need, in order to make it work?

Yes, I guess I could add an example configf or Nginx.

Much appreciated.

Martin, if somebody does not know how to point NGINX at an index.html file they shouldn't be on github. Those questions are for serverfault/stack overflow.

@tl87 @visualblind is right. It's better to use Nginx documentation / Stack Overflow for such questions.
Here's a short example to get you started:
upstream ipd {
    server <IP_ADDRESS>:8080;
}
server {
    location / {
        proxy_pass          http://ipd;
        proxy_set_header    Host $host;
        proxy_set_header    X-Real-IP $remote_addr;
    }
}

Then start ipd like this: ipd --trusted-header=X-Real-IP.

@visualblind @mpolden I have already set it up. I was more thinking about this as an extra service to provide in the README.md file :)


WIP: Smoke test

Resolves #143
Use port forwad to query and collector. Report a span to collector and query it.
This proves that cassandra tests incorrectly configures c* resulting in error on reads and writes.

This change is

Could you add a call to the SmokeTest from a test that is known to work? This is just to "prove" that the SmokeTest is working.

The PR fixes that test and also C* example.

The test did not pass for me, though:

did you run dep ensure?
@objectiser could you please also try? On my machine it passes fine (I know we like claims like these)

Is it needed? If so, then the vendor changes should be included in this PR.

The vendor changes are checked in. What else is needed except adding it to Gopkg and including vendor sources?

indeed there was an issue with the test. Also note that it's using port forwarding on standard jaeger ports so make sure those ports are free: 16686, 14268.
k8s client 1.13.0 will allow us to use random ports. (It allows now but there is no getter on the forwarded port). I could not update that dep now.


CI: new test for checking if any manifests changed in a given PR

The new script runs the gen-manifests command first on the PR HEAD and then on the merge-base with main and checks for any differences.  It creates a review comment on the PR on GitHub accordingly.
The message is posted is a simple COMMENT type review to inform the author and reviewers that changes exist.
The script doesn't fail if there's a diff.  CI shouldn't fail if changes are detected since they can be intentional.  The job fails if something goes wrong with the script execution (manifest generation, comment posting, etc).
The script exits immediately if run on main (or an ancestor of main).
Needs

[ ] Access to main in the checked out repo on the CI runner
[ ] Proper PR URL for posting the comment
[ ] Rules in the .gitlab-ci.yml to prevent the test from running on main

Can we run this in github actions? Should be able to run in a Fedora container, doesn't it?

The PoC I made ran in GH actions, but we need internal repo access to depsolve RHEL.

ofc :facepalm: Sorry!

So this worked but it didn't.  Good progress.


fix: UpdateFilteredPolicies match ptype and ignore empty field

Fix: https://github.com/casbin/ent-adapter/issues/16

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@tangyang9464 plz review

@PokIsemaine plz review

LGTM


Trakt doesn't have an API key anymore, but client ID and secret.

What TMM version are you using?
3.0.2
release, pre-release, nightly, or directly from GitHub/branch?
release
What is the actual behaviour?
TMM asks for Trakt Api Key but trakt only client ID and secret now. At least I can't find a way to get a single api key.
How do I connect TMM with Trakt?
Additional
Your Operating system? (win/mac/linux? version?)
Linux

for connecting your lib with trakt, you need to use the settings page "General -> external Services"
entering an API key for trakt is only provided, if you don't want to scrape with the tmm api key..

in fact the Client ID is the only thing you need to use here;
notation will be changed in 3.0.4


Typescript Compiler is unable to check whether relational operator is supplies to decision making statement(if ,else if)

Hi Team,
Thanks  typescript team for creating wonderful scripting language based on OOP's features. Typescript compiler is unable to check whether relational operator is supplies to decision making statement(if ,else if). Developer may make a mistake while supplying relational operator to decision making statement . Usually developer may supply assignment operator in place on equality operator.
When I write the decision making statement  like below
if(var variable=5){
//some code
}
Expected behavior:
The above code must show compiler error  that "if" statement only accept relational operator you are supplying an assignment operator .
Actual behavior:
It got compile . But at run time the value 5 is got assign to the variable it stops executing next block of code statement.
Thanks & Regards

This is the intended behavior.


Correct logging call for PutObject0ByteV2

Fixes #768
logTrace() was renamed in a different PR and #762 got merged without the change.

@poornas to avoid compilation failures we could add go build functional_tests.go to .travis.yml. This will help us avoid such errors in future.

@krisis we already do go run functional_tests.go which should be fine..

NOTE:  Since its a minor change we should merge and take this in. Due to the fact that whole CI is not running for any PR's submitted now.


[ConstraintSystem] Make variadics work with anonymous closure parameters

Since opening closure body is now delayed until contextual type becomes
available it's possible to infer anonymous parameters as being variadic
based on context and propagate that information down to the closure body.
Resolves: rdar://problem/41416758

@swift-ci please test

@swift-ci please test source compatibility

Looks like source compatibility suite passed (release - https://ci.swift.org/job/swift-PR-source-compat-suite/4019/, debug - https://ci.swift.org/job/swift-PR-source-compat-suite-debug/2283/). I'm going to make a couple of nfc changes and re-run the test suite.

@swift-ci please smoke test

@swift-ci please smoke test


[ERROR] Attempting to parse an unsupported color function "color"

When using react-to-pdf with html2canvas, an error occurs due to the unsupported "color" function in CSS.
react-to-pdf version: 1.0.1
Browser: Chrome

same issue


Version 0.3.6 is not PVP compliant

Version 0.3.6 is not PVP compliant.
See the diff here https://github.com/liyang/thyme/compare/<IP_ADDRESS>...master.
For example the signature of mkUTCTime has changed from mkUTCTime :: Day -> DiffTime -> UTCTime to mkUTCTime :: Year -> Month -> DayOfMonth -> Hour -> Minute -> Double -> UTCTime. The API has expanded as well.
I would suggest releasing a 0.4 version to hackage (based on the changes on master) and blacklisting the 0.3.6 version. Additionally we should create a 0.3.7 that just updates package version bounds without any code changes.
[1] https://hackage.haskell.org/package/thyme-0.3.6/docs/Data-Thyme-Clock.html#v:mkUTCTime
[2] https://hackage.haskell.org/package/thyme-<IP_ADDRESS>/docs/Data-Thyme-Time-Core.html#v:mkUTCTime

I uploaded thyme-0.4 and deprecated 0.3.6

Moved to https://github.com/haskell-github-trust/thyme/issues/74


Update to the topic 2.3

1.Under AWS CloudHSM, added single tenant access and hardware sharing
2.Few formats corrected
3.Spelling mistakes fixed

Thanks for giving back to the community 🙏


Add browser security headers to dashboard

We should add Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, and X-XSS-Protection headers to the dashboard.

How about these:

Automatically redirecting http->https?
public key pinning HPKP -https://developer.mozilla.org/en-US/docs/Web/Security/Public_Key_Pinning
HSTS - https://www.owasp.org/index.php/HTTP_Strict_Transport_Security_Cheat_Sheet

@onnimonni Yes, we will be doing those as a part of a broader security push (#3184) once we have Let's Encrypt support in place.


How to run only specific checkers?

Given the example, I'd have expected this to work:
  All:
    enabled: false
  ForeignKeyChecker:
    enabled: true
  ForeignKeyTypeChecker:
    enabled: true
  ForeignKeyCascadeChecker:
    enabled: true

But when I run it, I get no output:
$ bundle exec database_consistency
Loaded configurations: .database_consistency.yml

$

When I set All: enabled: true, I get fails for those checkers (and all the others, which I don't want to worry about right now).
$ be database_consistency | grep ForeignKey
ForeignKeyChecker ok Account owner
ForeignKeyTypeChecker ok Account owner
ForeignKeyTypeChecker ok Account exports
ForeignKeyChecker fail Account embedded_analyst should have foreign key in the database
ForeignKeyTypeChecker ok Account embedded_analyst
ForeignKeyTypeChecker ok Account account_invitations
...

I can workaround by generating a todo file and deleting the ForeignKey entries, but this seems like it may be a bug?
Also is there a way to only print the failures? The wiki implies that log_level: DEBUG will cause it to print the successes, but with that omitted I still get them, and log_level: INFO and ERROR still print them as well.

Hi @paul,
Thank you for noticing this! Please try out version 1.7.24. It should be fixed now.
https://github.com/djezzzl/database_consistency/pull/228
Please feel free to reopen the issue if it is not working.


Using prompt_file_separator in the CLI

Hey, I'm a bit confused on how to use the prompt_file_separator command... Would it be possible to provide a basic example on how to do so ?

Hey, I'm a bit confused on how to use the prompt_file_separator command... Would it be possible to provide a basic example on how to do so ?

This should probably be easier. It's like this:
This is the first prompt.
Lots of text here maybe.
As long as you want.

AAAAA

This is the second prompt.

AAAAA

This is the third prompt.

AAAAA

This is the fourth prompt.

python bark_perform.py --prompt_file myprompts.txt --split_input_into_separate_prompts_by string --split_input_into_separate_prompts_by_value AAAAA
--output_dir myprompts_samples


#672 xls2dbf && dbf2xls

the required script for adding two tools: xls2dbf and dbf2xls

@martin-mosteiro  would you mind being the second pair of eyes in here?

Can

Checked the script, seems to work as intended. Really great to have!
Only comment: if the output file has the wrong extension (i.e., neither xls nor dbf), there could be an error message. At the moment it just creates a file that can't be executed.

tnx for the feedback Martin, will address it.


PasteBin

How can i change pastebin link to normal Ip and port type? cause when i don't have network and want to test it need to download pastebin string if you can help me with it or modify a private source for me to enable that feature i will be so glad.

Hello @Alpha-c0d3r
You can test it without internet using debug compiler.
If you check class C_Socket you will find that I insert a direct IP:PORT in debug compiler.

So you can just put your IP or DNS And also edit C_Settings before compile.
I can't do private source nor teaching you VB.NET, And to be honest, This is very weird request...
Regards.

how to make it c_settings.host = the pastebin.fied and c_settings.port = the port field?


adds potter

Background

Changes

Testing

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Carrie Pascale seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Transparent form with Skia

Hi
First thing - FANTASTIC AND AWESOME WORK.
I wanted to create a transparent form (Transparency=True) in order to make a semi modal window on android (input box, message box etc). When I enable skia and set GlobalUseSkia in dpr transparency is lost. All you have to do is to enable Skia and put lines in dpr. After that form with transparency becomes black. Is there any workaround for that?

Hi @MichalMerco, thank you very much for reporting the issue.
There is no workaround at the moment, this issue is being reported for the first time.
To speed up our work, could you send us a project with the problem?

Sure. I have attached a sample. Form with Transparency=True .
skia.zip

Yes. I have downloaded today a new version. Look at the screenshots. Difference is only in line GlobalUseSkia

I am using Delphi 11

Are you running the project in a VM?
I couldn't reproduce the problem on my computer, I also tested it with custom scales and is working perfectly. Maybe this problem is related to issue #71

Hi . On different machine with Delphi 10.4.2 everything works great. I have uninstalled FGX, UniGui and still no luck. So I suppose it is a problem with my Delphi 11. Anyway thanks for help and lets close this topic

Right. I'll close the issue but any news regarding the problem you can post here and I'll reopen.

I guess problem is with my configuration. I have 2 monitors. When I disconnect secondary monitor (laptop only) transparency is fine. Problem is when secondary monitor is attached

I guess problem is with my configuration. I have 2 monitors. When I disconnect secondary monitor (laptop only) transparency is fine. Problem is when secondary monitor is attached

But the problem occurs when you disable the Skia?

No. When Skia is enabled and secondary monitor is attached through hdmi . And of course GlobalUseSkia=True. As soon as I detach monitor and start program on laptop everything is fine. Maybe problem is with GeForce

Thx

Two monitors in extended mode working fine here:

Thats right. In "secondary only" no

"Secondary only" mode works too.

Well. Not for me. Look

One last important test is to get the project binaries (Project9.exe and sk4d.dll) and run it on another machine to check if the problem exists. Can you do this test or send me the binaries to test?

I did that. On different machine even connected to secondary monitor (the same that my laptop is connected to) everything works. Problem is with my computer

Right. Now we have an idea of what it could be. We'll make some changes in the next release, and I'll let you know when we release the new version.

Thank you very much

Thank you very much 😊
Pozdrawiam
Michał Lutosławski
MERCO Systemy Komputerowe s.c. Leszek Pieńkowski, Michał Lutosławski
ul. Tetmajera 65C, 31-352 Kraków
tel:  792 77 77 54
NIP:<PHONE_NUMBER>
From: Vinícius Felipe Botelho Barbosa @.>
Sent: Wednesday, March 30, 2022 3:15 PM
To: skia4delphi/skia4delphi @.>
Cc: MichalMerco @.>; Mention @.>
Subject: Re: [skia4delphi/skia4delphi] Transparent form with Skia (Issue #75)
Hi @MichalMerco https://github.com/MichalMerco , this problem was fixed in new version v3.3.0 https://github.com/skia4delphi/skia4delphi/releases
—
Reply to this email directly, view it on GitHub https://github.com/skia4delphi/skia4delphi/issues/75#issuecomment-1083126375 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUTQQTH44UPMDFW2XRZJOLVCRHUFANCNFSM5QDMEFKA .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AHUTQQUWKIAE2AV3TYQUPNLVCRHUFA5CNFSM5QDMEFKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOICHTEZY.gif Message ID: @.*** @.***> >

Thx

A possible workaround for both problems would be to use the CPU instead of the GPU, at least on Windows (on mobile this is still not possible). For that add the line GlobalUseSkiaRasterWhenAvailable := True;

if one doesn't set it (assuming the default is false for GlobalUseSkiaRasterWhenAvailable), does it mean it will try to use the GPU and fallback to CPU or will it just fail on older machines / graphics cards? (note that FMX can fallback even to GDI with GlobalUseDX := false).
Also the "WhenAvailable" is a bit confusing, assuming it mean in platforms where the feature is available (since CPU is always there, it's GPU [drivers / DirectX or other SDK needed] that may be missing)

Hi @birbilis.
In the first versions the initial GlobalUseSkiaRasterWhenAvailable was false and from v3.3.2 the default became True. This was done because there are problems using our GPU canvas in some cases, especially on specific VMs that haven't added GPU support very well. There are few cases, but the problem is that we can't detect these cases at runtime to select the best option, so we leave CPU rendering at the default when available. We have implemented several skia-based canvas: Canvas Raster, Canvas OpenGL and Canvas Metal (in the future we will add Canvas Vulkan), but not all of them are available for each platform. The "when available" part means when there is a raster canvas implemented (since we only implement a raster canvas on windows and macOS)...
In the case of FMX, it uses Direct2D by default, which somehow manages to better switch CPU and GPU according to the senario. Unfortunately Skia only supports DirectX 12, which is present in Windows 10+, as we opted for OpenGL to maintain compatibility with Windows 7+.
Remembering that our raster mode (CPU) on Windows is as fast as the GPU mode, maybe 5% difference, something that in practice is not even possible to notice with the eye. The exception is shader operations, which run much faster on the GPU.

Thanks for the informative answer


Respect parent route query params

In my app I have a query param at the application level. Most of the time it'll never make it's way into the URL because the default value is not changed. However, when it is, it seems like any {{href-to}} URL's don't know about that, probably because it isn't passed in as (query-params). The issue would be that child routes don't really have direct access to the current value to pass in. Is there a way for this helper to know about those and add them to the URL automatically?

@cibernox Would PR #47 resolve this issue?

Yes, that was the idea, but I have to admit that I hit a dead end with that. The logic around query params was quite messy. I should try to finish it, but I don't think I'll have time in the next days.

Any news on this ?
I found this thread: https://stackoverflow.com/questions/37268480/how-can-i-get-url-params-in-emberjs-component

@homersimpsons I didn't find a solution for the PR and i forgot about it. I'm not sure if with the new router service almost done in newer versions we should keep pursuing this as it will be an "official" href-to soon.

@cibernox Okay, thank you for your answer :)

It should be possible to achieve this via ember-router-helpers.
{{#with (route-params 'parent.child') as |routeParams|}}
   Blah
{{/with}}


responsive

easy pil have a space-between?

easy pil have a space-between?

No it has a _

I think it has a problem for large numbers. then i am looking for the best solution.

Hey I think you meant to aligh something from right so texts start from the end. When you draw a text just set align="right" it will start from end


comment, justification fields contain hyperlinks; don't escape them

This is obsolete, and will be superseded by a version that converts markdown links to HTML upon request time, right?


Concerning the entity representation

Hi, thank you for sharing the code.
I am actually interested in the vector representations of entities and I wonder how can I generate the entity embedding described in the paper?
Many thanks,
Weixin.

Hi! Thank you for you interest. You can train the complete model which is a lot of effort. I can instead give you the trained entity embeddings from a learned model. Give a couple of days and I'll get back to you.


update protojson encode MarshalOptions add  Encode64BitIntegerAsJsonN…

Since protobuf generates go files, json will append an omitempty , which is very annoying. Although protojson can handle this, but it encodes 64-bits integers into string. This still doesn't solve the problem. So add a switch to MarshalOptions, if set, encode 64-bits into a numeric type instead of a string type。
hope to be merged

The encoding of 64-bit values into a string is not a mistake, but a requirement of the standard: https://developers.google.com/protocol-buffers/docs/proto3#json

Thanks for the PR, but this repository does not accept GitHub Pull Requests since it is just a mirror. See #6


react-redux 4.0.6 and Meteor

I am following the Get Started Videos for Redux and I have this error Uncaught TypeError: Cannot read property 'displayName' of undefined with this config:
    "meteor": "1.3.beta4",
    "redux": "3.0.5",
    "react-redux": "4.0.6",
    "redux-simple-router": "1.0.2"

Here is my code:
import { createStore } from 'redux'
import { Component } from 'react'
import { combineReducers } from 'redux'
import { Provider, connect } from 'react-redux'

if (Meteor.isClient) {
  Meteor.startup(function () {

    const todoReducer = (state, action) => {
      switch (action.type){
        case 'ADD_TODO':
          return {
            id: action.id,
            text: action.text,
            completed: false
          };

        case 'TOGGLE_TODO':
          if (state.id != action.id) return state
          else{
            return {
              ...state,
              completed: !state.completed
            };
          }

        default:
          return state;
      }
    };

    const todosReducer = (state = [], action) => {
      switch (action.type){
        case 'ADD_TODO':
          return [
            ...state,
            todoReducer(undefined, action) // no state for a new todo
          ];

        case 'TOGGLE_TODO':
          return state.map(t => todoReducer(t, action));

        default:
          return state;
      }
    };

    const visibilityFilterReducer = (state = 'SHOW_ALL', action) => {
      switch(action.type){

        case 'SET_VISIBILITY_FILTER':
          return action.filter;

        default:
          return state;
      }
    };

    const rootReducer = combineReducers({
      todosReducer,
      visibilityFilterReducer
    });

    const Link = ({
      active,
      children,
      onClick
    }) => {
      if(active){
        return (
          {children}
        );
      }

      return (
        {
            e.preventDefault();
            onClick(active);
           }}
        >{children}
      );
    };

    class FilterLink extends Component{

      componentDidMount(){
        const {store} = this.context;
        this.unsubscribe = store.subscribe(()=>
          this.forceUpdate()
        )
      }

      componentWillUnmount(){
        this.unsubscribe();
      }

      render(){
        const {store} = this.context;
        const props = this.props;
        const state = store.getState();

        return(
          <Link
            active={props.filter === state.visibilityFilterReducer}
            onClick={()=>
              store.dispatch({
                type:'SET_VISIBILITY_FILTER',
                filter:props.filter
              })
            }
          >
            {props.children}
          </Link>
        );
      }
    }
    FilterLink.contextTypes = {
      store: React.PropTypes.object
    };

    const getVisibleTodos = (todos, filter)=>{
      switch(filter){
        case 'SHOW_ALL':
          return todos;
        case 'SHOW_ACTIVE':
          return todos.filter(t => !t.completed);
        case 'SHOW_COMPLETED':
          return todos.filter(t => t.completed);
      }
    }

    const Todo = ({
      onClick,
      completed,
      text
    }) => (

        {text}

    );

    const mapStateToProps = (state) => {
      return {
        todos: getVisibleTodos(
          state.todosReducer,
          state.visibilityFilterReducer
        )
      }
    }

    const mapDispatchToProps = (dispatch) => {
      return {
        todos: id =>
          dispatch({
            type:'TOGGLE_TODO',
            id
          })
      }
    };

    const VisibleTodoList = connect(
      mapStateToProps,
      mapDispatchToProps
    )(TodoList);

    const TodoList = ({
      todos,
      onTodoClick
      }) => (

        {todos.map(todo =>
          <Todo
            key={todo.id}
            {...todo}
            onClick={() => onTodoClick(todo.id)}
          ></Todo>
        )}

    );

    const AddTodo = (props, {store}) => {
      let input;

      return(

          <input type="text" ref={
              node =>{
                input = node;
              }
            }/>
          <button onClick={() => {
            store.dispatch({
              type:'ADD_TODO',
              id: nextTodoId++,
              text: input.value
            });
            input.value = '';
          }}>Add todo</button>

      )
    };
    AddTodo.contextTypes = {
      store: React.PropTypes.object
    };

    const Footer = () => (

        Show:
        {' '}
        <FilterLink filter='SHOW_ALL'>All</FilterLink>
        {' '}
        <FilterLink filter='SHOW_ACTIVE'>Active</FilterLink>
        {' '}
        <FilterLink filter='SHOW_COMPLETED'>Completed</FilterLink>

    );

    let nextTodoId = 0;
    const TodoApp = () => (

        <AddTodo/>
        <VisibleTodoList/>

    );

    ReactDOM.render(
      <Provider store={createStore(rootReducer)}>
        <TodoApp/>
      </Provider>,
      document.getElementById('render-target')
    );
  });
}

I will appreciate any help on this. I don't find any FAQ or troubleshooting section on this.

Figure it out. I forgot to declare TodoList BEFORE const VisibleTodoList = connect(       mapStateToProps,       mapDispatchToProps     )(TodoList);

I did the exact same thing, and was about to give after over an hour of fighting with it and having no idea what was causing the issue...then I came across your post. Thank you, this was really helpful. 9 times out of 10 it's something small :)

Whereever you are whoever you are. I will find you. And thank you!

Quite an old issue, and a frustrating one when it bites.
Any hope of a better error message in this situation?

This is really an issue with ES6 syntax and behavior.  By declaring a variable using const or let, it does not exist until the line it is declared on (technically known as the "temporal dead zone").  So, trying to use a variable before that declaration line is going to cause things to break.

@markerikson I'm not sure what that means.   Are you saying "because of the temporal dead zone, we can't do better with an error message for this issue"?

The point is that there's nothing specific to Redux about this issue.  It's effectively as if you were manually calling connect(mapState)(undefined).
About the only thing we could do would be add some kind of assertion that WrappedComponent is an actual function, and throw an error if it isn't.

If it's like calling connect(mapState)(undefined) then it'd be great for the message to say so.
uncaught TypeError: Cannot read property 'displayName' of undefined
doesn't really capture that.   It doesn't even tell you which file it's coming from.

If you'd like to file a PR that adds some validation for the WrappedComponent argument in a development build, we could definitely take a look at adding that.  Would mostly need to make sure that the PR is made against the next branch.

Yeah - I had a look at doing something, but it appears way non-trivial, due to the lack of obvious context at the point that this error message is issued.
Any clues about how you'd like it done?

Actually, I have good news for you.  Looking at the next branch, it seems that @jimbolla has already implemented such a check, here: connectAdvanced.js#L67-L71

In my case the Component was defined in a different file that I was importing, however I wrote:
export class AppXX extends Component {
instead of
export default class AppXX extends Component {


Allow images on borders

Our documentation standards require our Confluence images to have borders around them. There is not currently a way to do this, but adding it to the processer is not complex.
This adds support for a border=true attribute to the image macro which emits an ac:border="true attribute on the resulting ac:image tag.

Feature seems generic and useful. Code looks simple and correct.

Thank you @danielhodder for your clean contribution and @znerd for the review!

Fixes #423

Hi @danielhodder, the Confluence Publisher release 0.22.0 containing support for borders around images is now available on Maven Central and Docker Hub.

Thanks so much. We love using this tool


Home Assistant Addon breaks other uses of USB devices

Describe the issue you are experiencing
I'm using the RaspberryMatic addon on a Pi 4.
The following devices are connected to the Pi:

USB - Enocean 300 (used by RaspberryMatic / CuxD)
USB - HmIP-RFUSB (used by RaspberryMatic)
USB - SkyConnect (should be used by Home Assistant itself or an other addon)

When the RaspberryMatic addon is not running, Home Assistant can use the SkyConnect just fine.

As soon as I start Raspberrymatic though, it stops working.

I suspect that the device somehow gets routet to the raspberrymatic addon and thus cannot be used any more by anything else?
Describe the behavior you expected
Please add the option to not route some USB device through to the Raspberrymatic addon or to have to manually select which devices are to be routed through.
Steps to reproduce the issue

Connect Zigbee USB Stick
Start RaspberryMatic Addon
Try to read the info with the Terminal (pip install silabs-flasher && silabs-flasher --device /dev/tty... info)

What is the version this bug report is based on?
<IP_ADDRESS>30114
Which base platform are you running?
ha-addon (HomeAssistant Add-on)
Which HomeMatic/homematicIP radio module are you using?
HmIP-RFUSB
Anything in the logs that might be useful for us?
No

Additional information
No response

As you seem to use CUxD within RaspberryMatic, I think you have to make sure CUxD will not grab other USB serial devices once it is starting up. So please consult the CUxD manuals to pervent it from grabbing any third-party serial devices (which it actually does per default!).

Yesterday in Homematic-Forum...
Link

Thanks!


CB-1542 Rework bean validation on redbeams DatabaseV4Base

Bean validation for the JSON representation of database data in redbeams
is reworked from its prior incarnation as part of the core API.
The validation formerly done on DatabaseV4Base by @RDSConfigValidJson is
replaced by standard bean validation annotations and a new
@ValidJdbcConnectionUrl validator for the connection URL field. The new
validator can validate that a URL either does include a database, or
does not.
The validation formerly done on DatabaseV4Request by @ValidRds is
replaced by standard bean validation annotations and a new
@ValidDatabaseVendorAndService validator, which essentially does the
same thing as @ValidRds. A minor difference is that the new validator
does not understand how to determine the version of an Oracle driver,
but this may come back in the future.
These changes remove the @RDSConfigValidJson and @ValidRds annotations
and their corresponding validators from core-api, which means that they
are no longer enforced for database operations using the cloudbreak
service. This is done to reduce potential confusion and to get a head
start on the removal of code in the core modules that has been migrated
to redbeams.
The DatabaseCommon utility class was reworked to expand and straighten
out its capabilities. Instead of offering a regex and two different
methods with their own pattern matching for analyzing JDBC connection
URLs, the class now has just one method for parsing which returns
extracted fields of interest. The regex was tweaked to be able to
capture those fields (and only those) in groups. It was also updated to
ensure that database names may contain non-initial hyphens, which was a
heavily tested validation previously. The HostAndPortAndDatabaseName
data class is replaced with a new JdbcConnectionUrlFields class that
has all of the same information, plus the vendor driver ID.

Refer to this link for build results (access rights to CI server needed):
ci-cloudbreak.eng.hortonworks.com/job/cloudbreak-pull-request-builder/3/

Offline, Gergely said he's good with the code as is, so I'll merge.


Fix "previous release tag" link in the changelog

Simply fix an outdated tag in CHANGELOG.md.

bors r+


Isotonic Regression Wrap Up

Please:

Review the two pragma: no cover lines in isoreg.py and attempt to find a test case which can reach these lines
Review the notebook with one of the scientists to be more specific for how one would go about using isotonic regression for a probability forecast of a binary outcome

Also consider
[ ] adding isotonic regression to the readme
[ ] check the sphinx docs

Also consider putting https://github.com/nci/scores/blob/develop/tutorials/isotonic_regression.png in a sub directory within the tutorials directory.


Move to a decentralized approach

So far we have a central libvirt pod which is moving qemu processes partially into VM (launcher) pods.
This has many flaws, (one main aspect) in short: We can not leverage any pod resource, this is really bad, because all resource concepts in Kubernetes resemble around Pods.
We need to change our model in order to launch libvirt in every VM Pod. This is "fat" today, due to dependencies and overhead, but the changes in libvirt should help us to reduce the overhead on the long run.
It's important to start it now in order to get our flows right and understand the resulting picture better.
Key elements of this change:

[x] handler will speak to multiple libvirt instances
[x] remove of the central libvirtd pod
[x] change all code to make the resulting domxml (and prerequisites) pod centric, as in

This was fixed with #663


Problem with "caffe-time" program when using CUDA-based caffe

add all commands support from original caffe with same arguments support without gflag

Please do not submit
I'll merge Anton's commit
https://github.com/dividiti/ck-caffe/commit/6d6208344ee9c299797f8c031e77686f53775930

So I've done merge of required changes.
@psyhtest, please review

LGTM - thanks!

Hi all! Actually, it was not completely working since we force USE_CPU and caffe-time and caffe-classification didn't use CUDA even though we link with CUDA-based Caffe (but CPU sub-version was used). To make it work, I created:

caffe-time-cuda
caffe-classification-cuda
Basically, there I add NVCC as compiler (otherwise GCC doesn't find CUDA libs), removed USE_CPU, and they seems to work fine now. However, @DVEfremov may I ask you to check that the flag --gpu is propogated correctly inside, please?
Also, maybe one day we will be able to merge them into one CK program, but for now it's quite tricky, so I wouldn't bother for now ...


Support for non-standard require

In our environment, lua scripts are represented as objects (userdata) in the game where the game is structured as a tree format. This means that instead of writing local Materials = require('Materials'), we write
local Materials = require(game.ReplicatedStorage.Modules.Housing2.Materials.Materials)

To write our code in VS Code we use a syncing program, where file path does not match up directly with in-game path. That is, that file might be src/ReplicatedStorage/Modules/Housing2/Materials/Materials.lua or it might be Housing2/Materials/Materials.lua or even just Materials.lua depending on the project setup.
A nice long-term solution to support this and other non-standard require would be a way to hook up our own require-arguments-to-file-path resolver. Maybe this could be a Lua file in the project directory that the language server runs with access to the same API to analyze scripts? I know that luacheck runs .luacheckrc as a lua file to configure project settings.
A short-term solution could be a setting that takes the last get operation in the require and searches for files with that name. I wrote a quick, messy patch for this at https://github.com/Corecii/lua-language-server-roblox/commit/8f7cdaa3e09a63a1e7204c4dad19bb7ea552fc8c to improve my workflow in the meantime. Hoping to see this sort of feature in the official release so I can get other team members onto this workflow easier.

Supported by plugin, see https://github.com/sumneko/lua-language-server/wiki/Plugin-(Experimental)


fix: :boom: configurable traefik port + change default

What does this PR do?
This PR configures by default traefik entrypoint on port 9000 (which is the default on traefik) and makes it configurable following user needs.
Motivation
Relates to https://github.com/traefik/traefikee-helm-chart/issues/102.
More

[x] Yes, I updated the tests accordingly
[x] Yes, I ran make test and all the tests passed

I modified the tests in order highlight the defaults and to show that the admin port is not exposed on the service ;-)


REPLAY-1614 Mask calendar header for MASK_ALL or MASK_USER_INPUT

What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1421 (45ab2eb) into feature/session-replay (6e3e93b) will increase coverage by 0.08%.
The diff coverage is 93.10%.

@@                    Coverage Diff                     @@
##           feature/session-replay    #1421      +/-   ##
==========================================================
+ Coverage                   83.67%   83.75%   +0.08%
==========================================================
  Files                         399      401       +2
  Lines                       13720    13735      +15
  Branches                     2207     2209       +2
==========================================================
+ Hits                        11479    11503      +24
- Misses                       1560     1563       +3
+ Partials                      681      669      -12

Impacted Files
Coverage Δ

...essionreplay/internal/recorder/SnapshotProducer.kt
82.76% <50.00%> (-2.96%)
:arrow_down:

...internal/recorder/DefaultOptionSelectorDetector.kt
90.00% <90.00%> (ø)

...sessionreplay/material/MaterialExtensionSupport.kt
100.00% <100.00%> (ø)

...nreplay/material/MaterialOptionSelectorDetector.kt
100.00% <100.00%> (ø)

...adog/android/sessionreplay/NoOpExtensionSupport.kt
100.00% <100.00%> (ø)

...adog/android/sessionreplay/SessionReplayFeature.kt
97.18% <100.00%> (+0.04%)
:arrow_up:

...nreplay/internal/SessionReplayLifecycleCallback.kt
90.00% <100.00%> (+1.11%)
:arrow_up:

...nternal/recorder/ComposedOptionSelectorDetector.kt
100.00% <100.00%> (ø)

... and 11 files with indirect coverage changes


Switch to asap/raw for everything but Promise#done

See discussion in #61

Implemented in #73.  The only issue is we lose support for domains.  I'm not sure if that matters though tbh.

Do domains matter anywhere but in .done? I'm not quite sure.

Yes, in as much as you have to maintain the domain at every step of the way in order for it to work.  The other thing is that you can use the domains to store data, and do other crazy hacky things.  Not sure if any of them are good ideas we should be trying to support, but none of them work unless we support domains all the way through.


[WIP] Feature states

Apollos.States
@johnthepink @benwiley I've merged Apollos.Components from the repo into this package since I think we will need tighter binding to Apollos.Router and Apollos.Layout as we develop them. I have also added a few potentially substantial additions which shouldn't be breaking changes (fingers crossed).
New features:

I've added a shim to support piping {{> Template.contentBlock }} through {{> Template.dynamic }}. This is not currently supported in Meteor and my method (while it works) could be a lot more robust.
Templates can now register themselves as a card or a card state (API below)
Components can register themselves to manipulate the url without having to know the page they are on. This is dependent on being a card state (API below)
Route changes within pages that can manipulate cards to show different states.
Child routes can pass middle-wear to force validation of card on url route-ing
Cards can have default states
pathForState template helper is added to generate url of states
Inclusion of card can specify the state to load when rendered
Inclusion of card can turn off url binding
Router will 404 if no pages or components found

Features ready for PR:

[x] pipe {{> Template.contentBlock }} through {{> Template.dynamic }}
[x] support card and card states (with relationships)
[x] allow components to manipulate the router
[x] allow route changes to manipulate the components
[x] add hook support to children templates who register a url
[x] add default state support to cards
[x] create pathForState template helper
[x] allow specification of state in inclusion of template
[x] allow silencing of url states on inclusion
[x] create 404 method from within component

API updates
Inclusion

{{> Apollos.profile.onBoard}}

{{> Apollos.profile.onBoard state="profile.resetPassword"}}

{{> Apollos.profile.onBoard noUrls="true"}}

Card
class Apollos.profile.onBoard extends Apollos.Component

  @register "Apollos.profile.onBoard"
   # passing true registers the component as a card
   # passing a second argument as a string can be used to specify default state of the card
  @card true, "profile.signIn"

<template name="Apollos.profile.onBoard">
  {{!--

     Cards typically will look like this. Template.dynamic can be used to render our child
     templates based on the state. Cards also get a reactive var called `state` automatically attached
     to it to manage the state of the card.

  --}}
  {{> Template.dynamic template=state.get data=currentData}}

</template>

Card State

class profile.signIn extends Apollos.Component

  @register "profile.signIn"
  # if a string is passed to `@card` then it binds this component as a state of the component
  # specified by the string
  @card "Apollos.profile.onBoard"

  # a component can register a url segment (or segments) that get added to the end of the url
  # on render of the component state. (for instance `/sign-in` or `/give/sign-in/` depending on where
  # the card component is rendered. This should automate route generation for cards quite a lot
  url: -> "sign-in"

  changeState: (state) ->
    parent = @.parent()

    # changing the string of the parent state reactiveVar will render the new one and update the router
    parent.state.set(state)

pathForState
Sign in

This still need more work from a route best practice scenario

@johnthepink @benwiley I reworked the routing method quite a lot to make it more efficient. There is still one or two minor bugs that I'm cleaning up but all in all I think this is ready. @johnthepink would you mind syncing your branches dependent on this and seeing how they go? Then we can do a merge party this morning?

Also, right now this supports urls for cards within cards but only at one level. We will get to more levels but it isn't worth keeping this from working its way upstream


whelp can't process borrow-ed symbols

import cps

type
  D = distinct int

proc bar(x: int) {.cps: Continuation.} =
  discard

proc bar(d: D) {.borrow.}

discard whelp bar(D(42))

gets:
cps.nim(115, 16) Error: node is not a symbol

here's treeRepr of getImpl() of the callee:
ProcDef
  Sym "bar"
  Empty
  Empty
  FormalParams
    Empty
    IdentDefs
      Sym "d"
      Sym "D"
      Empty
  Pragma
    Ident "borrow"
  Empty
  Sym "bar"

The last symbol points to the borrowed proc. We should be able to use this, somehow.

It looks trivial if we have the source symbol; it's just a if and a recursion in whelp.


Running Pallas issue

Description
Installing jax, jaxlib, and jax-triton nightly builds cause the following error for the examples in the documentation:
File "/home/mehdi/Repos/venvs/jax-dev/lib/python3.10/site-packages/jax/_src/pallas/triton/lowering.py", line 1721, in pallas_call_lowering
backend_config=zlib.compress(kernel_call.to_proto(serialized_metadata)),
TypeError: to_proto(): incompatible function arguments. The following argument types are supported:
1. (self: jaxlib.cuda._triton.TritonKernelCall, arg0: str, arg1: str) -> bytes
Invoked with: <jaxlib.cuda._triton.TritonKernelCall object at 0x7faebfce6ef0>, b''
I0000 00:00:1692795278.467295  180484 tfrt_cpu_pjrt_client.cc:469] TfrtCpuClient destroyed.
Package Version Editable project location
absl-py 1.4.0
filelock 3.12.2
jax 0.4.15
jax-triton 0.1.4 /home/mehdi/Repos/jax-triton
jaxlib 0.4.15.dev20230822+cuda12.cudnn89
ml-dtypes 0.2.0
numpy 1.25.2
opt-einsum 3.3.0
pip 22.0.2
scipy 1.11.2
setuptools 59.6.0
triton-nightly 2.1.0.dev20230714011643
What jax/jaxlib version are you using?
No response
Which accelerator(s) are you using?
GPU
Additional system info
No response
NVIDIA GPU info
2x RTX ada 6000 (CUDA 12.2)

seems like a versioning issue, I've run into tonnes of those using jax-triton due to its use of nightly triton.

Since pallas is integrated into JAX now, there shouldn't be a need to install jax-triton. If you don't install triton or only install triton with the nightly build from the jax-triton repo the error is:
NotImplementedError: MLIR translation rule for primitive 'pallas_call' not found for platform cuda

Since pallas is integrated into JAX now, there shouldn't be a need to install jax-triton.

This is true in principle but we haven't yet done this.
We still need a Triton dependency because we need to use the Triton compiler with Pallas. That is why we depend on jax-triton at the moment. Jax-triton also contains specific logic for creating Triton custom calls.
In the future, we can decouple the two by using the Triton compiler that already ships with XLA. Unfortunately this is a large undertaking because there are no Python bindings exposed and it would take some work to add them.

So the way to run Pallas (currently):
Install JAX (head) and build jaxlib (head) + install jax-triton nightly?

Install JAX (head) and build jaxlib (head) + install jax-triton nightly?

Yes, but unfortunately, jax-triton works with not exactly a Triton nightly but close to Triton nightly. As of today (8/29/23) here is a set of pinned versions I tested and should work:
-e git+ssh://git@github.com/sharadmv/jax@7ec2a8835ecc4ffcb632b43cc47c892d1b323d47#egg=jax
-e git+ssh://git@github.com/jax-ml/jax-triton.git@321a19e901ee318a43345485a47e711944011c77#egg=jax_triton
jaxlib @ https://storage.googleapis.com/jax-releases/nightly/cuda12/jaxlib-0.4.15.dev20230822+cuda12.cudnn89-cp310-cp310-manylinux2014_x86_64.whl
nvidia-cublas-cu12==<IP_ADDRESS>
nvidia-cuda-cupti-cu12==12.2.131
nvidia-cuda-nvcc-cu12==12.2.128
nvidia-cuda-nvrtc-cu12==12.2.128
nvidia-cuda-runtime-cu12==12.2.128
nvidia-cudnn-cu12==<IP_ADDRESS>
nvidia-cufft-cu12==<IP_ADDRESS>
nvidia-cusolver-cu12==<IP_ADDRESS>
nvidia-cusparse-cu12==<IP_ADDRESS>
nvidia-nvjitlink-cu12==12.2.128
triton-nightly==2.1.0.dev20230722054455

Hi Sarad,
Thanks. I'll give it a try. There are potentially some cool applications of Pallas in XLB that I am planning to explore.
It would be nice to have installation documented by the next release version of JAX.

2023-08-30 14:00:03.110213: F external/xla/xla/python/jax_jit.cc:134] Check failed: global_state.enable_memories.has_value()

This looks like an unrelated issue unfortunately. I will try to triage it.

jaxlib 0.4.25 no longer uses Triton Python APIs for lowering Pallas kernels on GPU, so I will close this issue.


Check for undefined codec

If no codec parameters are specified, codec is undefined not an empty string.
I left the condition for an empty string due to I suppose we should handle the case where the vsc & vrc parameters are provided without any codec specified.

lgtm


📃:

🔴 Title :adding a weather app project built using react.
🔴 Tech stack : Html, CSS,javaScript, React
🔴 Objective : Add a new project
🔴 Summary : The weather app project helps the beginners to learn and practice react. it is fully fucntional and uses geocoding apis too
📸 Screenshots
✅ Details to Include When Taking the Issue:
Name : Vibhor Gupta
Screenshot 2024-10-31 at 1 30 10 PM
Participant Role : GSSOC'24 Extd Contributor, Hacktoberfest 2024 Contributor
Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

it is already there


Use https endpoints instead of http

Several external scrips are loaded via http instead of https and this could compromise production apps, as well as cause browsers to display warnings about pages being insecure

@charlottetan As far as I understand the request you have made is outside the scope of this package. This package is only wrapping segment.io's analytics.js and adding functionality for easy analytics tracking with IronRouter or FlowRouter. Using ssl is dependent on if the analytics service supports/provides ssl.
If you are using the BrowserPolicy Package you can modify your BrowserPolicy.content to only allow https, see this package's readme for example. If I have misunderstood what you are asking here please let me know and I will try my best to help.


Why a trace chain displays two operation names

they have same traceId

Because the trace query is based on trace segment, not trace. In a distributed system, you can't use a single id to represent a trace. Please consider MQ or other batch consume scenarios.


FileNotFoundError: [Errno 2] No such file or directory: 'work_space\save\model_final.pth'

When I try to run the face_verif. py file, I get FileNotFoundError: [Errno 2] No such file or directory: 'work_space\save\model_final.pth' error. How to deal with it？

Copy mobilefacenet or irse model file to that directory and change its name to model_final.pth.
If you use mobilefacenet, you should edit config file accordingly.


Failed to resolve: com.github.shrikanth7698:Custom-Navigation-Drawer:v0.0.1

After adding it to the gradle (app) and
       maven { url 'https://jitpack.io' }
to grade(project) this is coming
Failed to resolve: com.github.shrikanth7698:Custom-Navigation-Drawer:v0.0.1
Show in File
Show in Project Structure dialog

@shubhamtunwal97 We have made a large number of changes to the App in the last few months. Please can you update to the newest version and check if the problem still persists. If it does then please re-open this issue.

ERROR: Failed to resolve: com.github.shrikanth7698:ChatView:v0.1.2
Show in Project Structure dialog
Affected Modules: app


Core specs task sometimes time out on Travis

Travis times out builds if they haven't had any output in 10 minutes. Our core specs currently take right around 10 minutes and they don't log any output. So it's pretty hit-or-miss as to whether our core specs complete or get timed out.
We should just pass through the output of the core specs to stdout so that Travis knows its still running.

Some examples:
https://travis-ci.org/atom/atom/jobs/108907516
https://travis-ci.org/atom/atom/jobs/108883357
https://travis-ci.org/atom/atom/jobs/108860161
A successful build: https://travis-ci.org/atom/atom/jobs/108700399. The core specs took 9.5 minutes to complete.


Live

[Go Live][26 Dec]

Learn Build status updates of commit e6e8e83:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel