Can't deploy modules using the RAD UI

I am trying to setup the RAD UI after successfully setting up the launcher. I have gone through the documentation multiple times and can't see where I am going wrong, but I consistently get the error message below.
The important message appears to be
"status": {
  "code": 5,
  "message": "Couldn't read commit "
}

Not sure if cloud build is having challenges accessing a commit to the git repo?
<EMAIL_ADDRESS>has been assigned the roles/artifactregistry.reader role. I even went to the extreme and granted the basic roles/owner to the rad-lab-ui-9922 project. Artifact Registry is enabled.
{
"protoPayload": {
"@type": "type.googleapis.com/google.cloud.audit.AuditLog",
"status": {
"code": 5,
"message": "Couldn't read commit "
},
"authenticationInfo": {
"principalEmail"<EMAIL_ADDRESS>"serviceAccountDelegationInfo": [
{
"firstPartyPrincipal": {
"principalEmail"<EMAIL_ADDRESS>}
}
],
"principalSubject"<EMAIL_ADDRESS>},
"requestMetadata": {
"callerIp": "2600:1900:2001:2:0:0:1:a01",
"callerSuppliedUserAgent": "grpc-node-js/1.6.7,gzip(gfe),gzip(gfe)",
"requestAttributes": {},
"destinationAttributes": {}
},
"serviceName": "cloudbuild.googleapis.com",
"methodName": "google.devtools.cloudbuild.v1.CloudBuild.RunBuildTrigger",
"authorizationInfo": [
{
"resource": "projects/rad-lab-ui-9922",
"permission": "cloudbuild.builds.create",
"granted": true,
"resourceAttributes": {}
}
],
"resourceName": "projects/rad-lab-ui-9922/triggers/rad-lab-module-create",
"request": {
"projectId": "rad-lab-ui-9922",
"triggerId": "rad-lab-module-create",
"source": {
"substitutions": {
"_MODULE_NAME": "appmod_project",
"_DEPLOYMENT_ID": "9dcb"
}
},
"@type": "type.googleapis.com/google.devtools.cloudbuild.v1.RunBuildTriggerRequest"
}
},
"insertId": "95yu1zdjl15",
"resource": {
"type": "build",
"labels": {
"project_id": "rad-lab-ui-9922",
"build_trigger_id": "rad-lab-module-create",
"build_id": ""
}
},
"timestamp": "2023-10-23T12:10:55.702832649Z",
"severity": "ERROR",
"logName": "projects/rad-lab-ui-9922/logs/cloudaudit.googleapis.com%2Factivity",
"receiveTimestamp": "2023-10-23T12:10:55.941105070Z"
}

{
"textPayload": "Error: 5 NOT_FOUND: Couldn't read commit \n    at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:26)\n    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:189:52)\n    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)\n    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)\n    at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78\n    at processTicksAndRejections (node:internal/process/task_queues:78:11)",
"insertId": "6536696200004625cbfe3e23",
"resource": {
"type": "cloud_function",
"labels": {
"region": "us-central1",
"project_id": "rad-lab-ui-9922",
"function_name": "cf-rl-create-module-fe381"
}
},
"timestamp": "2023-10-23T12:38:58.017957Z",
"severity": "ERROR",
"labels": {
"execution_id": "46grt7hp9mzu",
"instance_id": "0037d6d5d34ffbed1a2a6cb3fbd28c91aa72d00fe9e87d258055ca951216a295be7e882d6a0a761ff6fa9083c3909254fa14fb4b50a90997dc2874df16183296dbeed1"
},
"logName": "projects/rad-lab-ui-9922/logs/cloudfunctions.googleapis.com%2Fcloud-functions",
"trace": "projects/rad-lab-ui-9922/traces/a4e5ed27babeeaf8f4b6ceffb2cc14aa",
"receiveTimestamp": "2023-10-23T12:38:58.315508062Z",
"errorGroups": [
{
"id": "CJ69k8PhgvTNKQ"
}
]
}

This appears to have been caused by the repository being configured for a specific region as opposed to using the global option.


Sync/v3.3.1

This sync needed quite a few changes in our implementation:

https://github.com/Adapter-Hub/adapter-transformers/pull/72/commits/59015f71f123ab539a82100348a3486cdc5f103a
https://github.com/Adapter-Hub/adapter-transformers/pull/72/commits/68044495d1a515bd0d45514ccbd8fe8d5ff73b0d


Service loop error

E/DiscoveryService: SsdpNanoHTTPD - Error in Service loop - null;
Continuously getting this error when trying to run Video consumption examples with exo player.

This sample has been migrated to a new location and updates are happening there (check README for more information).
As recommended by GitHub, we are closing all issues and pull requests now that this older repo will be archived.
If you still see this issue in the updated repo, please reopen the issue/PR there. Thank you!


feat: Enable CORS for static files

Pull Request Checklist
Before submitting, make sure you've checked the following:

[x] Target branch: Please verify that the pull request targets the dev branch.
[x] Description: Provide a concise description of the changes made in this pull request.
[x] Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.

Changelog Entry
Description

Fixed CORS issues with static files by implementing proper CORS headers handling for FastAPI's static file serving. This resolves the issue where static resources (like favicon.png) couldn't be accessed from different origins during development.

Added

Added CORSStaticFiles class to handle CORS headers for static file responses

Changed

Modified static file mounting to use CORSStaticFiles instead of default StaticFiles

Fixed

Fixed CORS error when accessing static files from different origins (e.g., localhost:5173 accessing resources from localhost:8080). Resolved "Access-Control-Allow-Origin header missing" error for static resources

Screenshots or Videos
Before:

After:

I don't mind closing this issue, but I'd really appreciate a comment explaining what's wrong. Perhaps the CORS issue is not a bug, but a feature, or should we address it differently? I'm wondering what's wrong because I'm not the only one who has encountered this issue and tried to fix it, only to have my PR closed without any comment or hint. See: https://github.com/open-webui/open-webui/pull/6975. Thanks in advance.


Move citation processing to presentation XML

This was originally posted in #105 but the real reason is that PDF processing can't deal with reproducing citation rendering logic of so many flavors.
In Ribose flavor we want ISO 690 citations.
Source:
* [[[RFC7991,IETF RFC 7991]]], _AUTOFILL_

* [[[ISO690,ISO 690]]], _AUTOFILL_

This is going back to High from Urgent. I'm doing all the citation refactoring together, and I'm not the one interrupting implementation of that with ZOMG ISO GAVE US URGENT FEEDBACK ON RENDERING.

Covered in https://github.com/metanorma/metanorma-standoc/issues/479


Stack-buffer-overflow in gost12_256

такой код генерит ошибку
#define ARRAY(name, size) \
    unsigned char name[size]; \
    for(size_t i = 0; i < size; i++) name[i] = i;

void gost12_256(void) {
    struct gost12_ctx ctx;
    ARRAY(msg, 128);
    unsigned char r[gost12_256_hash_size];

    rhash_gost12_256_init(&ctx);
    for (size_t i = 0; i < 128; i++) {
        rhash_gost12_update(&ctx, msg, i);
    }
    rhash_gost12_final(&ctx, r);
}

gost12.c:809:3: runtime error: index 10 out of bounds for type 'uint64_t [8]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior gost12.c:809:3 in
=================================================================
==439261==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffc1c8b9170 at pc 0x5635cc53439e bp 0x7ffc1c8b8e90 sp 0x7ffc1c8b8640
WRITE of size 5 at 0x7ffc1c8b9170 thread T0
    #0 0x5635cc53439d in __asan_memcpy (/home/mpech/rhash-tis/a.out+0x18339d)
    #1 0x5635cc5944e2 in rhash_gost12_update /home/mpech/rhash-tis/gost12.c:809:3
    #2 0x5635cc5eba3a in gost12_256 /home/mpech/rhash-tis/main.c:190:9
    #3 0x5635cc5ef29f in main /home/mpech/rhash-tis/main.c:379:5
    #4 0x7fcacbebe001 in __libc_start_main (/usr/lib/libc.so.6+0x27001)
    #5 0x5635cc4920ed in _start (/home/mpech/rhash-tis/a.out+0xe10ed)

Address 0x7ffc1c8b9170 is located in stack of thread T0 at offset 304 in frame
    #0 0x5635cc5eb72f in gost12_256 /home/mpech/rhash-tis/main.c:183

  This frame has 3 object(s):
    [32, 296) 'ctx' (line 184) <== Memory access at offset 304 overflows this variable
    [368, 496) 'msg' (line 185)
    [528, 560) 'r' (line 186)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow (/home/mpech/rhash-tis/a.out+0x18339d) in __asan_memcpy
Shadow bytes around the buggy address:
  0x10000390f1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10000390f1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10000390f1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10000390f200: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
  0x10000390f210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10000390f220: 00 00 00 00 00 00 00 00 00 00 00 00 00 f2[f2]f2
  0x10000390f230: f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00
  0x10000390f240: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 f3 f3
  0x10000390f250: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
  0x10000390f260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10000390f270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==439261==ABORTING
make: *** [Makefile:2: all] Error 1

Thank you for reporting this bug!
It affected LibRHash RHASH_GOST12_256 and RHASH_GOST12_512 algorithms. The bug is fixed by commit 775dceb5f887a46f463e7fec09fa146dfb4013d6.


the maximum number of indexes created for a cluster

elassandra <IP_ADDRESS>
With the compression parameter turned on, the maximum number of indexes created for a cluster can only be about 5100?

Could you please provide information to reproduce the same test and hit this limit of 5100.
Of course, long index names can shorten this limit.

On 21 Sep 2020, at 04:49, tengzhuofei<EMAIL_ADDRESS>wrote:
elassandra <IP_ADDRESS>
With the compression parameter turned on, the maximum number of indexes created for a cluster can only be about 5100?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/strapdata/elassandra/issues/372, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOMPGJE46MNSOSDNAPQQSLSG25MPANCNFSM4RUAQTIA.

Hi!
I just kept creating indexes, and did not store data.

Yes, but if you created 5000 underlying Cassandra keyspaces, that’s a Cassandra limitation….

On 21 Sep 2020, at 11:15, tengzhuofei<EMAIL_ADDRESS>wrote:
Hi!
I just kept creating indexes, and did not store data.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/strapdata/elassandra/issues/372#issuecomment-695996999, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOMPGJFFUCMCPE5SFSS36DSG4KSTANCNFSM4RUAQTIA.

I only created 2 keyspaces and set the keyspace value through the setting of elasticsearch

I restart a pod and too many pending states error
2020-09-21 11:16:20,135 DEBUG [elasticsearch[<IP_ADDRESS>][masterService#updateTask][T#1]] org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:255) publishing cluster state version [1259] metadata=[29791b59-4b87-41ff-84e1-3c73c67ecf21/5114]
2020-09-21 11:16:20,135 DEBUG [elasticsearch[<IP_ADDRESS>][masterService#updateTask][T#1]] org.elassandra.discovery.CassandraDiscovery.publishLocalUpdate(CassandraDiscovery.java:1196) Local update source=shard-started-update-routing index=twin_943[org.elassandra.shard.CassandraShardStateListener$RoutingTableUpdateTask@2764ffc9] metadata=29791b59-4b87-41ff-84e1-3c73c67ecf21/5114
2020-09-21 11:16:20,135 WARN  [elasticsearch[<IP_ADDRESS>][masterService#updateTask][T#1]] org.elassandra.discovery.PendingClusterStatesQueue.addPending(PendingClusterStatesQueue.java:90) dropping pending state.version=[235] more than [1024] pending states.
2020-09-21 11:16:20,135 DEBUG [elasticsearch[<IP_ADDRESS>][generic][T#5]] org.elasticsearch.index.engine.CombinedDeletionPolicy.updateRetentionPolicy(CombinedDeletionPolicy.java:99) Safe commit [CommitPoint{segment[segments_2], userData[{history_uuid=Oi3NwB7ISseTUo7C-2ZMfw, local_checkpoint=-1, max_seq_no=-1, max_unsafe_auto_id_timestamp=-1, translog_generation=1, translog_uuid=18R8dd0eRRm0s-hYRDZVDA}]}], last commit [CommitPoint{segment[segments_2], userData[{history_uuid=Oi3NwB7ISseTUo7C-2ZMfw, local_checkpoint=-1, max_seq_no=-1, max_unsafe_auto_id_timestamp=-1, translog_generation=1, translog_uuid=18R8dd0eRRm0s-hYRDZVDA}]}]
2020-09-21 11:16:20,135 WARN  [elasticsearch[<IP_ADDRESS>][masterService#updateTask][T#1]] org.elassandra.discovery.CassandraDiscovery$4.onNewClusterStateFailed(CassandraDiscovery.java:1212) failed while applying cluster state locally source=shard-started-update-routing index=feature_134[org.elassandra.shard.CassandraShardStateListener$RoutingTableUpdateTask@5555feb2]
org.elasticsearch.ElasticsearchException: too many pending states ([1024] pending)
at org.elassandra.discovery.PendingClusterStatesQueue.addPending(PendingClusterStatesQueue.java:91)
at org.elassandra.discovery.CassandraDiscovery.publishLocalUpdate(CassandraDiscovery.java:1198)
at org.elassandra.discovery.CassandraDiscovery.publish(CassandraDiscovery.java:996)
at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:257)
at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:158)
at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150)
at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:681)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)


How to support Exchange 2013 and office 365 Exchange about the API of EWS ?

String url = "https://IP/EWS/Exchange.asmx";
String account = "*_**@.com";//
String password = "__";//
ExchangeCredentials credentials = new WebCredentials(account, password);
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
service.setCredentials(credentials);
service.setTraceEnabled(true);
service.setUrl(new URI(url));//
service.setPreAuthenticate(true);
service.setTimeout(1060_1000);
the Exchange 2013 and office 365 Exchange?

String url = "https://<IP_ADDRESS>/EWS/Exchange.asmx";
String account = "***@.com";//
String password = "**";//
ExchangeCredentials credentials = new WebCredentials(account, password);
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
service.setCredentials(credentials);
service.setTraceEnabled(true);
service.setUrl(new URI(url));//
service.setPreAuthenticate(true);
service.setTimeout(10601000);
the Exchange 2013 and office 365 Exchange?

+1

+1

+1

+1

+1

+1

+1

`String mx = LookUpMx(domainName);
if (mx != null && (mx.contains("outlook.com") || mx.contains("hotmail.com"))) {
OutlookEmail = true;
}
try {
//<EMAIL_ADDRESS>写死进去一个规则, outlook邮箱的mx记录一定会包含outlook,
// 这里加一个hotmail的判断
if (OutlookEmail || accountInfo.getAccountName().contains("@hotmail")
|| accountInfo.getAccountName().contains("@outlook")) {
String userName = null;
if (StringUtil.isNullOrEmpty(accountInfo.getDomainUsername())) {
userName = accountInfo.getAccountName();
} else {
userName = accountInfo.getDomainUsername();
}
String ews_url = "https://outlook.office365.com/EWS/Exchange.asmx";
ExchangeCredentials credentials = new WebCredentials(userName, accountInfo.getAccessToken());
service.setCredentials(credentials);
service.setUrl(new java.net.URI(ews_url));
Folder folder = Folder.bind(service, WellKnownFolderName.MsgFolderRoot);
return service;
}
} catch(Exception e) {
........
}
static String LookUpMx(String hostName) {
Hashtable<String, String> env = new Hashtable<String, String>();
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
DirContext ictx;
try {
ictx = new InitialDirContext(env);
Attributes attrs = ictx.getAttributes(hostName, new String[] { "MX" });
Attribute attr = attrs.get("MX");
if (attr == null) {
return null;
}
LOG.info(attr.get().toString());
return attr.get().toString();
} catch (NamingException e) {
return null;
}
}`

First Use MX record to check that the User Email is a hotmail.com/live.com/office365.com/outlook Email
Second  Find the username. it should be the emailAddress or UserDefineUserName
Third Use Microsoft Autodiscovery URL: "https://outlook.office365.com/EWS/Exchange.asmx" login the service and check the connection

+1

Hi, do we have a solution for this?

+1


feat: release GA

Description

[ ] Drop official support for legacy node versions 8 and 10. We know that OTel is dropping them very soon, we might as well do it now to avoid another major bump right after GA.

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Internal change (a change which is not visible to the package consumers)
[ ] Documentation change or requires a documentation update

How Has This Been Tested?

[ ] Tested manually
[ ] Added automated tests

Checklist:

[ ] Unit tests have been added/updated
[ ] Documentation has been updated
[ ] Change file has been generated (npm run change:new)
[ ] Delete this branch (after the PR is merged)

Codecov Report

Merging #476 (331b92a) into main (d8a13ba) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #476   +/-   ##
=======================================
  Coverage   76.33%   76.33%
=======================================
  Files          21       21
  Lines         676      676
  Branches      157      157
=======================================
  Hits          516      516
  Misses        160      160

Continue to review full report at Codecov.

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


Maybe chart display is better

This is a very meaningful thing, if you can use the chart display to be more intuitive. I am a web developer and I am willing to build a website for free. If necessary, I can directly reply to github or email to<EMAIL_ADDRESS>

Hi @lonlii4ap, I'm not sure exactly what you're referring to. Could you explain what you had in mind?
We do have a dashboard powered by our dataset that is available here:
https://art-bd.shinyapps.io/covid19canada/

Hi @lonlii4ap, I'm not sure exactly what you're referring to. Could you explain what you had in mind?
We do have a dashboard powered by our dataset that is available here:
https://art-bd.shinyapps.io/covid19canada/

hi Jean-Paul,the dashboard website is what I mean.You are absolutely right.

hi Jean-Paul,the dashboard website is what I mean.You are absolutely right.


Dense Layer: Different inference results with different BS

I've seen that I get different results out of a Dense layer during inference with batched inference vs single inference. As in this simple example:
model = tf.keras.layers.Dense(8, activation="relu")
x = tf.ones((128, 8))
x_single = tf.ones((1, 8))
y = model(x)
y_single = model(x_single)

np.testing.assert_almost_equal(y[0,:].numpy(), y_single[0,:].numpy(), 8)

Colab reproducing error.
In some runs the outputs do not match.

The difference gets substantially amplified when inputs are high precison floats.
The difference seems to vanish when comparing bigger BS: i.e. BS 16 and BS 128 get the same results.

This is tested with Keras 2.8.0

@gadagashwini,
I was able to reproduce the issue in tf v2.8, v2.9 and nightly. Kindly find the gist of it here.

Note that the numerical difference threshold TF/Keras usually use is 1e-6, which is larger than the current difference. The difference is  caused by lower level ops and hardward. You might see bigger difference if you try to run it on GPU.
I am going to close this issue since this is working as intended, and we don't have anything need to address here.


UI tests

@denvned What do you think about this method for ui-testing (react components)?
Overview:

Karma using webpack as a preprocessor on a PhantomJS browser.
Mocha & Chai + Enzyme for React component testing

@juhaelee This is great! I'm using the same setup on my app, but i was very curious to see Jest setup for this kind of environment, i tried to set up it, but not much luck with webpack in place.


RLG PR

Coverage decreased (-0.08%) to 98.0% when pulling 48ea34f00c30091c0bfa672be088a773807bd0e6 on RecursiveLambdaGod:master into 3a9e2a7f64c626db64fb477e4603c4aa217ba825 on ChrisCates:master.


XP Bar - Forge Timer

Is your feature request related to a problem? Please describe.
I think this item is similar to the money instead of hunger bar feature. It can be annoying to have to press tab to check on forge progress, especially on long forge times.
Describe the solution you'd like
I think it could be interesting to have a red XP bar during forging that drains as it completes, and a green full one when the forge is complete, and an empty green one when it is ready.
Describe alternatives you've considered
You can literally just press tab.
Additional context
This is definitely a QOL improvement, and does not have any particular merit. Additionally, I am aware that the way that I described could be quite difficult, and I apologize for such.

Dupe


[atom-reason] Linux support

See comments on https://github.com/chenglou/atom-reason-loader/commit/7c91672670efe84a0a170adeb9276709e4146548
Big thanks to @vramana for helping me debug this =)

Don't merge yet!

So to confirm, does this make anything worse on Mac, for recent Atom versions? Does it make it better on Linux? If the answer to both is yes, shouldn't we merge?
Also, the long term fix is to set environment variables from the project sandbox, which doesn't rely on loading the environment/PATH from the user's shell, so long term this won't be an issue. Cc @yunxing

This looks like a possible fix as described here

Closed in favor of #699


Update attr to use get/set for ember 1.12

If you upgrade your project today you will see a deprecation warning because attr isn't using the new get/set for ember computed.
When ember 1.13 ships (stable) I'll submit the PR that removes this deprecation. At it's simplest this is the change required in addon/model.js
var attr = function() {
    var meta = {isAttribute: true, defaults: arguments[0]};
    return Ember.computed({
        get(key) {
        },
        set(key, value) {
        }
    }).property("_data").meta(meta);
};

This was updated so if you pull in v2.2.0 you will be dep warning free. If you want to use the store but are not yet on ember 1.12+ you will need to stick with v2.1.0 for the moment


A very common problem while dealing with Chinese articles

I tried my code with some english sites, including BBC and reuters. It is working.
But it doesnt work when i try with some Chinese popular portals.
I tried:
https://finance.sina.com.cn/china/gncj/2019-08-14/doc-ihytcern0694372.shtml
http://www.xinhuanet.com/comments/2019-08/13/c_1124871201.htm
and article.text is empty.
from newspaper import Article, Config as NewspaperConfig
url="http://www.xinhuanet.com/comments/2019-08/13/c_1124871201.htm"
conf = NewspaperConfig()
conf._language = 'zh'
article = Article(url, config=conf, keep_article_html=True)
article.download()
article.parse()
print(article.article_html)
print(article.text)

How can i fix it? thanks

I think it's about language code. Those websites didn't specify chinese as their language. I used another lib(langdetect) to detect the language and automatically convert.


windows auto start program have error

cannot read property

@Jambo-Git did you resolve this issue? if not can you attach a working code example?

closing this issue, please reopen if needed


[Event Hubs] Support for Batch Processing

Summary
The focus of these changes is to expose the ability to create a checkpoint with the EventProcessorClient as a protected member so that it can be used when overriding  OnProcessingEventBatch to work with batches rather than individual events in the handler.  Previously, creating a checkpoint was bound to the event arguments passed to the handler and required an awkward and complicated pattern to use.  By making this protected, the EventProcessorClient can be extended in a manner similar to EventProcessor<T> and allows working with batches without the need to write a custom storage implementation.

/azp run net - eventhub - tests

API changes have been detected in Azure.Messaging.EventHubs.Processor. You can review API changes here
API changes
+         protected virtual Task UpdateCheckpointAsync(string partitionId, EventData eventData, CancellationToken cancellationToken);

Stalling this for now; after talking to Krzysztof, we're going to explore the possibility of exposing a storage provider abstract and the Blob Storage implementation here for use with EventProcessor<T>.

This pull request is now obsolete due to checkpoint store support.


Config-UI: "Configure Connection" has incorrect naming for GitLab

Describe the bug
We cannot simply reuse the "Configure Connection" component for GitLab since the Auth implementation is different from Jira. For example, "GENERATE TOKEN" model should not have anything to do with "base64". "Basic Auth Token" should be "Personal Access Token", and placeholder text should not look like Jira data.
To Reproduce
Steps to reproduce the behavior:

Go to configure/gitlab/1
See incorrect text.

Expected behavior
All text should be specific to GitLab.
Screenshots

There were no requirements to generate a separate token for Gitlab. Ticket #415 requested a base64 plain auth token. Either way, changes can be made to satisfy Gitlab.


More simplified Pulumi based deployment walkthrough

Proposed changes
Added Pulumi programs to perform the Operator install instead of asking users to transcribe code. I feel it simplifies the experience quite a bit. Also ran into https://github.com/pulumi/pulumi-kubernetes/issues/1481 which I added a workaround for.

Related issues (optional)

@lblackstone @jaxxstorm - took a slightly different tack to document the operator deployment instructions. In this case, the change is to embed full-fledged programs in the release tarball for installing the operator. The instructions now point the user to using the relevant Pulumi project instead of asking users to copy/paste code. Look forward to your thoughts.


Fix warning: Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead.

See how Casdoor fixed this

已修复


Error handling in balance storage

Better error handling is required in polkadex_balance_storage.
For now, I'm creating new balance entries whenever there's a deposit call and no entry exists for the asset and account id (https://github.com/Polkadex-Substrate/polkadexTEE-worker/blob/feature/fm-bh-openfinex-api/enclave/src/polkadex_balance_storage.rs#L114). But we should also discuss if set_reserve_balance or set_free_balance should create a new entry instead of issuing an error..
Originally posted by @haerdib in https://github.com/Polkadex-Substrate/polkadexTEE-worker/pull/73#discussion_r649086106

Maybe it would make sense to wrap the whole balance storage in its own trait/struct to be able to mock the storage for the unit tests in the gatway.

@Gauthamastro what are your thoughts on new balance storage entry creation : should a set_reserve_balance  resp. a set_free_balance  be able to create a new entry instead of throwing an error?

We have to initialize the balane with 0 for both set_reserve_balance   and set_free_balance

@haerdib @arrudagates It would be great to include the task of converting balance storage to a module in this issue.

A module would be what exactly for you? Something like the order chaches? (https://github.com/Polkadex-Substrate/polkadexTEE-worker/blob/develop/enclave/src/polkadex_cache/cancel_order_cache.rs#L29-L34)

We have to initialize the balane with 0 for both set_reserve_balance  and set_free_balance

https://github.com/Polkadex-Substrate/polkadexTEE-worker/blob/develop/enclave/src/polkadex_balance_storage.rs#L110-L130
In the current version it is being initialized directly with the value being deposited, should it instead be initialized with 0 on both free and reserved and then add in the deposited amount?

I think it would be cleaner to implement a seperate initialize function which always starts with 0 reserved and free.
In the current version I tried to avoid huge changes (due to rebase problems - there was a lot of parallel work ongoing at that time) and my aim was to test the openfinex api, not to clean up the balance storage.

Ok, the idea for the deposit function if theres no previous entry is to initialize as 0 and then retry the deposit?

Hm.. this would mean the get_mut is called twice. Assuming that there will be alooot of accounts & tokenids, this will consume some non neglectable amount of time.. which we should avoid I guess. We could use try_insert which returns a mutable reference to the value and modify it afterwards. Or ofc just direclty insert the given value like it is now.
@Gauthamastro what are your thoughts on this?

I'm still trying to wrap my head around the codebase, but is it possible to pre-initialize every asset for an account?

What would be the benefit to pre-initialize this? Not every user will use / trade in all types of assets, so you'd create an overhead of storage entries.

I guess so, i was just wondering if the overhead in storage could justify saving the overhead in time later, since there would be no need to check if the balance is initialized on every deposit. But yeah it's between using try_insert and just using the current solution.


Fix some constants in tests

This fixes some constants in tests to make them pass for Namecoin.  In particular, we update the expected signatures in test_bitcoin.py (the new values have been checked to verify fine with Namecoin Core), and rebrand some Lightning invoices in test_bolt11.py.
This reduces the number of test failures from six to three.

Looks good to me other than the comment issues I mentioned; once those are fixed I think this can be merged.


Create instruction for custom model and transform creation

🚀 Feature Request
Add jupyter notebook with example for custom model and transform creation
Motivation
Make contributing to etna easier
Proposal
Create custom LGBM model and custom floor and ceil transform
Test cases
No need
Alternatives
No response
Additional context
No response
Checklist

[X] Added feature request
[X] Added motivation
[X] Added proposal

I'm not sure that floor and ceil transform are good enough for this task because they don't have inverse_transform, how about pow transform?


Persist memoization

Hi everyone,
how can I make reselect persist to disk with redux-persist? Does this make any sense from a performance standpoint?
Thanks!
Leonard

+1 for this

The statement doesn't make sense.
What are you wanting to persist?  How?  This really doesn't seem like it has anything to do with Reselect at all.  I don't know how you would "persist a selector".

@markerikson the use case is when you open the app, the selector will always run once before it will be cached for future selection. by using redux persist we can persist the cache even if the app is reloaded

That's not what selectors are for.  Selectors are not about external persistence.  Selectors are about encapsulating looking up specific values from the state tree, and caching derived values so that if you call the selectors again with the same inputs, the derived values don't have to be recalculated again.
Sorry, but what you're describing there seems like a misunderstanding of how selectors work.


Use fieldset for working mobile phone page header

Context
We want to be able to e2e test this page. As there are two identical
radio inputs with the "Yes" label, we want a way to differentiate
between the two.
We do this by using the page heading as the fieldset legend, to
associate the heading with the form.

Changes in this PR
Screenshots of UI changes
Before

After (no change)

Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

 Add personal info - Male path


E_VALIDATION - invalidAttributes

Hello, i got a Issue about invalidattributes on my signup page, when i use the same email with the same passwort :
When i want to signup with the same email i get this :
http://localhost:1337/user file: after, i want to sign up, with the same e-mail again:
{
  "code": "E_VALIDATION",
  "invalidAttributes": {
    "email": [
      {
        "value"<EMAIL_ADDRESS>        "rule": "unique",
        "message": "A record with that `email` already exists (`lucas.gustaver@gmx.ch`)."
      }
    ]
  },
  "_e": {},
  "rawStack": "    at WLValidationError.WLError (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/WLError.js:25:15)\n    at new WLValidationError (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/WLValidationError.js:19:28)\n    at duckType (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/index.js:59:12)\n    at errorify (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/index.js:39:10)\n    at wrappedCallback (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:329:15)\n    at error (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:42:31)\n    at _switch (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:56:28)\n    at Timeout._onTimeout (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-disk/lib/adapter.js:179:10)\n    at ontimeout (timers.js:482:11)\n    at tryOnTimeout (timers.js:317:5)\n    at Timer.listOnTimeout (timers.js:277:5)",
  "reason": "1 attribute is invalid",
  "status": 400,
  "details": "Invalid attributes sent to undefined:\n • email\n   • A record with that `email` already exists (`lucas.gustaver@gmx.ch`).\n",
  "message": "[Error (E_VALIDATION) 1 attribute is invalid] Invalid attributes sent to undefined:\n • email\n   • A record with that `email` already exists (`lucas.gustaver@gmx.ch`).\n",
  "stack": "Error (E_VALIDATION) :: 1 attribute is invalid\n    at WLValidationError.WLError (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/WLError.js:25:15)\n    at new WLValidationError (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/WLValidationError.js:19:28)\n    at duckType (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/index.js:59:12)\n    at errorify (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/index.js:39:10)\n    at wrappedCallback (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:329:15)\n    at error (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:42:31)\n    at _switch (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:56:28)\n    at Timeout._onTimeout (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-disk/lib/adapter.js:179:10)\n    at ontimeout (timers.js:482:11)\n    at tryOnTimeout (timers.js:317:5)\n    at Timer.listOnTimeout (timers.js:277:5)"
}

and this my user.js
`/**
* User.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

var bcrypt = require('bcrypt');

module.exports = {
    attributes: {
        email: {
            type: 'email',
            unique: true,
            required: true
        },
        password: {
            type: 'string',
            minLength: 6,
            required: true
        },
        toJSON: function() {
            var obj = this.toObject();
            delete obj.password;
            return obj;
        }
    },
    beforeCreate: function(user, cb) {
        bcrypt.genSalt(10, function(err, salt) {
            bcrypt.hash(user.password, salt, function(err, hash) {
                if (err) {
                    console.log(err);
                    cb(err);
                } else {
                    user.password = hash;
                    cb();
                }
            });
        });
    }
};
`

# and this is my package.json file :

{
  "name": "passport_with_sails",
  "private": false,
  "version": "0.0.0",
  "description": "a Sails application",
  "keywords": [],
  "dependencies": {
    "bcrypt": "^0.8.7",
    "ejs": "^0.8.8",
    "express": "^4.16.3",
    "grunt": "0.4.2",
    "grunt-sync": "0.0.8",
    "include-all": "^0.1.6",
    "mongodb": "^3.0.5",
    "passport": "^0.2.2",
    "passport-local": "^1.0.0",
    "rc": "^0.5.5",
    "sails": "~0.12.14",
    "sails-disk": "^0.10.10",
    "sails-mongo": "^0.12.2"
  },
  "scripts": {
    "start": "node app.js",
    "debug": "node debug app.js"
  },
  "main": "app.js",
  "repository": {
    "type": "git",
    "url": "git://github.com/giancarlo/passport_with_sails.git"
  },
  "author": "lucas",
  "license": "",
  "devDependencies": {
    "grunt-contrib-clean": "^0.5.0",
    "grunt-contrib-coffee": "^0.10.1",
    "grunt-contrib-concat": "^0.3.0",
    "grunt-contrib-copy": "^0.5.0",
    "grunt-contrib-cssmin": "^0.9.0",
    "grunt-contrib-jst": "^0.6.0",
    "grunt-contrib-less": "^0.11.1",
    "grunt-contrib-uglify": "^0.4.1",
    "grunt-contrib-watch": "^0.5.3",
    "grunt-sails-linker": "^0.9.6"
  }
}

some one of the sails.js team were can help me with this issue? would like to fix it.
thanks a lot.
Details

Sails version: v0.12.14
Node version: v8.10.0
NPM version: v5.8.0
DB adapter name: sails-disk/lib/adapter.js:179:10
DB adapter version:   "sails-disk": "^0.10.10",
"sails-mongo": "^0.12.2"
Operating system: Mac Os
<!--

are here anyone, which can help? it's been 12 hours ago... !.. need to finish this small thing!

@SpaceG  well.. you set the email to be unique in the user model .. it's natural that you get this error, you need to remove the unique constraint.

      }
    ]
  },
  "_e": {},
  "rawStack": "    at WLValidationError.WLError (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/WLError.js:25:15)\n    at new WLValidationError (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/WLValidationError.js:19:28)\n    at duckType (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/index.js:59:12)\n    at errorify (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/index.js:39:10)\n    at wrappedCallback (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/utils/normalize.js:329:15)\n    at error (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/switchback/lib/normalize.js:42:31)\n    at _switch (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/switchback/lib/factory.js:56:28)\n    at Timeout._onTimeout (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-disk/lib/adapter.js:179:10)\n    at ontimeout (timers.js:482:11)\n    at tryOnTimeout (timers.js:317:5)\n    at Timer.listOnTimeout (timers.js:277:5)",
  "reason": "1 attribute is invalid",
  "status": 400,
  "details": "Invalid attributes sent to undefined:\n • email\n   • A record with that `email` already exists (`lucasgatsas@gmail.com`).\n",
  "message": "[Error (E_VALIDATION) 1 attribute is invalid] Invalid attributes sent to undefined:\n • email\n   • A record with that `email` already exists (`lucasgatsas@gmail.com`).\n",
  "stack": "Error (E_VALIDATION) :: 1 attribute is invalid\n    at WLValidationError.WLError (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/WLError.js:25:15)\n    at new WLValidationError (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/WLValidationError.js:19:28)\n    at duckType (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/index.js:59:12)\n    at errorify (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/error/index.js:39:10)\n    at wrappedCallback (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline/utils/normalize.js:329:15)\n    at error (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/switchback/lib/normalize.js:42:31)\n    at _switch (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-hook-orm/node_modules/switchback/lib/factory.js:56:28)\n    at Timeout._onTimeout (/Users/spacedigger/Desktop/passport_with_sails-master/node_modules/sails-disk/lib/adapter.js:179:10)\n    at ontimeout (timers.js:482:11)\n    at tryOnTimeout (timers.js:317:5)\n    at Timer.listOnTimeout (timers.js:277:5)"
}

@SpaceG I'm going to close this issue because it doesn't seem to be about bug with Sails.  For more help, visit https://sailsjs.com/support.  Best of luck with your project.


Add sanitize helper in the spec

Why
In the system test,  we need to match content with translated text like
 expect(page).to have_content I18n.t('campaign.description')

But if the translation text is a html like I18n.t('campaign.description_html')
we have to do sanitize it like
expect(page).to have_content  ActionView::Base.full_sanitizer.sanitize I18n.t('campaign.description_html ')

Which gets longer the line and not very readable
If we define the senitize method like in the spec helper like
def sanitize(html)
  ActionView::Base.full_sanitizer.sanitize(html)
end

We can test it like
expect(page).to have_content sanitize 18n.t('campaign.description_html')

Which is more cleaner.

Resolved in https://github.com/nimblehq/rails-templates/pull/143


Change extrusion scale

Is it possible to change the extrusion scale or disable extrusion altogether at runtime? My guess is that this has something to do with ExtrusionFeature but I can't find any documentation or examples on how to apply this to my MapView.

@gsavvid , thanks for creating an issue!
When you mean disable extrusion, do you want the buildings to appear already extruded? Or do you want to remove them? You can disable the animation, so that they immediately appear without animation:
mapView.animatedExtrusionHandler.enabled = false;
There isn't any way to change the extrusion scale, but you can play around with it, by looking at the AnimatedExtrusionHandler.ts file, specifically the animateExtrusion function.

Thanks a lot for the sharp response, @nzjony!
Regarding disabling extrusion: I would like to hide the 3D buildings altogether, not just disable their animation. To be more specific, I'm trying to replicate the synchronized views example except I want the two side views to be in 2D and only the middle one in 3D. Would this somehow be possible?

@gsavvid , you have two options, you can remove it from the theme, or...
You can use the following method: https://www.harp.gl/docs/master/doc/classes/harp_mapview.tilegeometrymanager.html#disablekind and pass in "StandardGeometryKind.Building"
The TileGeometryManager can be found on the MapView, see: https://www.harp.gl/docs/master/doc/classes/harp_mapview.mapview-1.html#tilegeometrymanager

Actually, you have three options, you can load the theme and then modify it at runtime, as:
    const themePromise = ThemeLoader.load(themeUrl);
    if (disableBuildings === true) {
        themePromise.then(theme => {
            for (const decl of theme.styles!.tilezen!) {
                const style = decl as Style;
                // Here we disable the extruded buildings
                if (style.technique === "extruded-polygon") {
                    (style.technique as any) = "none";
                }
            }
        }
        return theme;
    }

And then pass the themePromise to the MapView when constructing it:
mapView = new MapView({
    canvas,
    theme: loadedTheme,
    ....
}

Perfect, that's exactly what I was looking for. Thanks once again!

Great you could solve your problem @gsavvid, hope I can see what you are up to soon!


ignoreInitial option doesn’t work for symlinks when not using fsevents

Describe the bug
Setting the ignoreInitial option to true should always suppress the initial add event when a file/directory/symlink is discovered. However, if you aren’t using fsevents, symlinks still trigger initial add events.
If you have a directory structure like:
watched/
├── file1.txt
└── file2.txt (symlink to `./file1.txt`)

And you run:
const chokidar = require('chokidar');
chokidar.watch('./watched', {
  followSymlinks: false,
  ignoreInitial: true,
  useFsEvents: false  // optional if not on MacOS
}).on('add', path => console.log('Added:', path));

Nothing should be logged until a new file is added. Instead, the above code immediately logs an add event for file2.txt.
I’m pretty sure the issue is that this.options.ignoreInitial is not checked in NodeFsHandler._handleSymlink() before emitting an add event on the last line here: https://github.com/paulmillr/chokidar/blob/20cb7672cb25a843df4d86475ffa8e4a8dc704b1/lib/nodefs-handler.js#L324-L326
…but I think just adding a check around that line probably isn’t adequate; _handleSymlink() needs an argument to know whether it is on the initialAdd just like _handleFile() has.
I’m happy to work on a PR for this if you’d like.
Versions (please complete the following information):

Chokidar version 2.1.2
Node version 10.15.1
OS version: MacOS 10.14.3, Debian 9.7 (via Docker)

To Reproduce
See description above.
Additional context
Ran into this while trying to help a client get their app (and associated Gulp watch scripts) running in Docker. Everyone is using a Mac and is experiencing the non-fsevents situation for the first time when it’s running in Docker.

@Mr0grog did you find any workaround? Same situation here.

@kachkaev In my case, I was able to write ignore patterns to cover most of our symlinks, so it wasn’t too painful to turn on followSymlinks as a workaround. This was for Gulp, but the straight Chokidar version would be like:
const chokidar = require('chokidar');
const os = require('os');

chokidar.watch('./watched', {
  // Turn on followSymlinks on non-MacOS systems to avoid a Chokidar bug in
  // Linux/Docker: https://github.com/paulmillr/chokidar/issues/804
  // This shouldn't be a big deal since we generally set `ignored` to handle
  // paths that might include symlinks.
  // TODO: always set this to `false` when that bug is fixed.
  followSymlinks: os.platform() !== 'darwin',
  ignoreInitial: true,

  // Ignore directories that are just full of symlinks
  ignored: /(?:^|\/)(?:some-symlink-dir|other-symlink-dir)(?:$|\/)/
}).on('some-event', path => console.log('Event for:', path));

I think I may have also added some debouncing to some event handlers to mitigate the results of following the symlinks I couldn’t ignore.


@1.0.0-beta1: history.location invariant failure (BrowserHistory)

In my main file I have
import {Router, Route, Link} from "react-router";
import {BrowserHistory} from 'react-router/lib/BrowserHistory';

...

React.render(
	<Router history={BrowserHistory}>
		<Route path="x/y/z.php/channel/:channelId" component={App} />
	</Router>,
	document.getElementById("id")
);

which is then built using Browserify.
When I run this in the browser using the react-router UMD library supplied in your Bower build (and React 0.13), I get the following: ```Warning: Failed propType: Invalid prop history supplied to Router, expected instance of `History````.
I can see in the Router.componentWillMount at https://github.com/rackt/react-router/blob/master/modules/Router.js#L228 that history.location is passed to setState, but in my instance that property is undefined, and an invariant fails: Uncaught Error: Invariant Violation: A <Router> needs a valid Location.
Any idea of what could be causing this?

I believe you have to write import BrowserHistory from 'react-router/lib/BrowserHistory'; without the braces.

Ahh I believe you are right... rookie mistake here. I'll reopen if this doesn't solve the issue. Thanks!

I was having this exact problem. Turns out the problem was instanceof checks as I had managed to get react-router in my app and vendor bundles and the checks where failing... Not easy to realise.

I have this problem too


Need an Hr class (HTML hr element)!

Is your feature request related to a problem? Please describe.
There are a lot of classes already in here, but we are missing an 'hr' tag!

For those who do not know: an 'hr' tag looks like this ^^
Describe the solution you'd like
Create a class called Hr that extends from GenericContent. The constructor shall take an object parameter called content of type iGenericContent.
Additional context
Be sure to call super() within the new class' constructor! Upon completion, a user should be able to call:
const hr = new Hr({});

and hr will represent an HTMLElement able to be injected into the DOM!
Important

Fork the repository into your own github profile, create a new branch with the name of the feature you are creating.
Study the code provided in ts/index.ts before you make any changes to the code.
Commit your changes regularly and meaningfully.
Once you are sure the code is working, create a pull request from your repository to the "hr-class" branch on this repository

False Alarm :)


Out of Place Requirement

The following requirement is currently located in Statement Templates:
"If a statement matches a Statement Template's determining values and uses the profile version as a category context activity, it MUST be sent as part of a Pattern or Implied Pattern. "
If reading normally, I'm not going to know what a Pattern or Implied Pattern is yet.  I suggest moving that requirement to that section or at the very least to right before that section so the transition is smoother.

I'll look into what rearrangement most improves the flow

I identified the same issue on my read-through today. My suggested solution was to add links to the terms so that people could click them to read more. https://github.com/DataInteroperability/xapi-profiles/issues/164

Other requirements added elsewhere mean this text actually got removed completely as redundant


#closed? and #alive? raise exception if server is closed

such test
require 'socket'
require_relative 'test_helper'
require_relative 'simple_tcp_server'

class TCPClientTest < Minitest::Test
  describe Net::TCPClient do
    before do
      unless defined?(SemanticLogger)
        require 'logger'
        @logger       = Logger.new('test.log')
        @logger.level = Logger::DEBUG

        @server      = SimpleTCPServer.new(2000, @logger)
        @server_name = 'localhost:2000'
      end

      after do
        @server.stop if @server
      end

      it 'should be closed' do
        @client = Net::TCPClient.new(
              server:          @server_name,
              connect_timeout: -1,
              logger:          @logger
        )
        @client.close
        assert_equal true, @client.closed?
        assert_equal false, @client.alive?
      end
  end
end

raise error
Minitest::UnexpectedError: NoMethodError: undefined method `closed?' for nil:NilClass

because  @socket is set to nil on close
module Net
  class TCPClient
    ...
    def_delegators :@socket, :closed?, :eof?, :setsockopt, :alive?
    ...
    def close
      @socket.close if @socket
      @socket = nil
      true
    end
  end
end

i think we should add methods closed? and alive? instead of delegate them
something like
def closed?
  @socket.nil? ? true : @socket.closed?
end

def alive?
  !closed?
end

Good catch, not sure why I set @socket to nil on close. Should remove that code so that any attempt to use the socket, including reads and writes, should fail with socket not open from the underlying socket.

This is fixed now in the master branch, along with tests for this condition. Please give it try and let me know if you have any issues.
Thank you,
Reid


[DEVX-24] chore: semantic release

I've tested it here https://github.com/cognitedata/openapi-dto-generator/
Seems to work. But this is a different project, so something may fail
For this case I've added dryRun=true, so it won't do actual release
However it's not that hard to remove the release if something goes completely wrong.
So I am not sure if we need dry run here

:tada: This PR is included in version 2.0.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fails on label attribute

Hey,
I'm pretty certain I am overseeing something totally basic, but when I expand the basic quickstart example simply by adding a label="…" definition I get this error:
Traceback (most recent call last):
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 2463, in __call__
    return self.wsgi_app(environ, start_response)
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "…app/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "…app/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "…app/venv/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "…app/app.py", line 87, in cart
    form = CartForm()
  File "…app/venv/lib/python3.7/site-packages/wtforms/form.py", line 212, in __call__
    return type.__call__(cls, *args, **kwargs)
  File "…app/venv/lib/python3.7/site-packages/flask_wtf/form.py", line 88, in __init__
    super(FlaskForm, self).__init__(formdata=formdata, **kwargs)
  File "…app/venv/lib/python3.7/site-packages/wtforms/form.py", line 272, in __init__
    super(Form, self).__init__(self._unbound_fields, meta=meta_obj, prefix=prefix)
  File "…app/venv/lib/python3.7/site-packages/wtforms/form.py", line 52, in __init__
    field = meta.bind_field(self, unbound_field, options)
  File "…app/venv/lib/python3.7/site-packages/wtforms/meta.py", line 27, in bind_field
    return unbound_field.bind(form=form, **options)
  File "…app/venv/lib/python3.7/site-packages/wtforms/fields/core.py", line 353, in bind
    return self.field_class(*self.args, **kw)
TypeError: __init__() got multiple values for argument 'label'

So this works:
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired

class CartForm(FlaskForm):
    name = StringField('name', validators=[DataRequired()])

But this fails, with the error triggered on the line where I instantiate my form:
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired

class CartForm(FlaskForm):
    name = StringField('name', label="Your name", validators=[DataRequired()])

I'm using Python 3.7.3 and:
Flask                  1.1.0
Flask-WTF         0.14.2
WTForms           2.2.1

Equally adding a choices attributes to a SelectField also breaks the form instantiation:
TypeError: __init__() got an unexpected keyword argument 'choices'

So this works:
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired

class CartForm(FlaskForm):
    name = StringField('name', validators=[DataRequired()])

That's because the first argument is the label.

But this fails, with the error triggered on the line where I instantiate my form:
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired

class CartForm(FlaskForm):
    name = StringField('name', label="Your name", validators=[DataRequired()])

That's because you specified the label argument twice: once by position, and once by keyword.


Update description to "System Settings"?

MacOS Ventura's settings app is now titled "System Settings" instead of "System Preferences". Maybe this should be reflected in https://github.com/Lakr233/ActivateMac/blob/787cd2780a5939c77a27799ba91d8281dbed29db/Activate/en.lproj/Localizable.strings#L2 ?
Thanks!

You can make a pull request~ 🥰


More flexible logging

Implemented a custom logger interface in Photino.NET to provide flexible logging solutions. This extension should be backward compatible.
I plan to develop an integration of Microsoft.Extensions.Logging within the photino.Blazor project:
internal sealed class MicrosoftPhotinoLogger : IPhotinoLogger
{
    private readonly ILogger _logger;

    public MicrosoftPhotinoLogger(ILoggerFactory loggerFactory)
    {
        _logger = loggerFactory.CreateLogger("Photino.NET");
    }

    public void Log(int verbosity, Exception exception, string message)
    {
        LogLevel logLevel;

        if (verbosity <= LogVerbosity.Critical)
            logLevel = LogLevel.Error;
        else if (verbosity <= LogVerbosity.Warning)
            logLevel = LogLevel.Warning;
        else if (verbosity <= LogVerbosity.Verbose)
            logLevel = LogLevel.Information;
        else if (verbosity <= LogVerbosity.Debug)
            logLevel = LogLevel.Debug;
        else
            logLevel = LogLevel.Trace;

        if (_logger.IsEnabled(logLevel))
            _logger.Log(logLevel, exception, message);
    }
}

Suggestion for Future Consideration
As an alternative improvement, integrating Microsoft.Extensions.Logging.Abstractions could be considered for future enhancements. This integration would necessitate breaking changes, such as the removal of the LogVerbosity property and SetLogVerbosity() method. It's also important to note that this integration would introduce an additional dependency on Microsoft.Extensions.DependencyInjection.Abstractions.
Despite this, it offers a more unified and standardized approach to logging.
If an integration of "Microsoft.Extensions.Logging" is under consideration, then please feel free to view this pull request as an invitation for discussion.

@loop8ack Thank you for the suggestion. Agreed that the internal logging on the .NET side was thrown in hastily. We would like to implement Microsoft.Extensions.Logging and Microsoft.Extensions.DependencyInjection.Abstractions, but it's not at the top of our priority list. Since all logging calls within Photino.NET are private, and likely should remain private, we shouldn't have to worry about breaking changes. We'll just have to make sure that if no logger is specified, we default to a console logger. Thoughts?

@MikeYeager The concern about BreakingChanges relates to the "LogVerbosity" property, as this is public and follows a concept that differs from the standard. The same applies to the "SetLogVerbosity" method.
If I use Microsoft.Extensions.Logging, the old LogVerbosity concept would be dropped, which leads to problems if someone has customized the LogVerbosity.
I guess that wouldn't be very bad, but I still wanted to get feedback first.

We are currently working on updating and bugfixing our Samples projects. When we get to incorporating new features, we will circle back to this and incorporate it on the next major release.

My couple cents on logging. It would be great if verbocity was set to 0, there should no be calls to logging methods at all.
Motivation is simple. When you call SendWebMessage, which may happend very often, and messages are big (e.g. 1,2,5,10,50 MiB). Message string souldn't be wrapped into "Log formatted({message}" construction, in order to avoid copying large strings. When logLevel == 0, it just pure waste, in such a hot method.
This also actual in any other places where methods could be invoked periodically with huge payloads.


Show post contents in a post page

Is your feature request related to a problem? Please describe.
I tried to use a static home page and show post contents (or a few lines and read more) on a post page, but it seems it only has a achiece type layout.
Describe the solution you'd like
I would like a static home page and show post contents (or a few lines and read more) on a post page.

Please see the Wiki for how to set up a static home page.


Question: How to use CodedOutputStream?

Hi,
I am currently developing the ability to send and receive Protobuf packets between iOS (Swift) and Linux (C ++).
Since Protobuf does not know the size of the serialized data, I am sending a 4-byte header that stores the length in front of the serializedData.
In C ++ and Android(Java), I use CodedOutputStream to create a buffer as follows, but I can not find CodedOutputStream in swift-protobuf.
Here is a snippet of c ++ code to create a buffer to transfer.
int size = message->ByteSize() + HEADER_SIZE; // HEADER_SIZE is 4
char *buffer = new char[size];
google::protobuf::io::ArrayOutputStream aos(buffer,size);
google::protobuf::io::CodedOutputStream coded_output(&aos);
coded_output.WriteVarint32(message->ByteSize());

message->SerializeToCodedStream(&coded_output);

// Send "buffer" to native socket

How do I implement this functionality in swift-protobuf?

So we currently don't have anything like CodedOutputStream.  But...
you appear to be writing the length as a varint, a varint gets encoded as 1 to 7 bytes depending on the value (https://developers.google.com/protocol-buffers/docs/encoding#varints), so your snippet of code doesn't appear to be correct.  You appear to be assuming the varint will always be 4 bytes, but the truth is that might be too little or too many bytes.
The good news, is prefixing with a varint is something that some protobuf implementation support, it is commonly referred to as Delimited, Length Delimited, or Size Delimited; including SwiftProtobuf.  Take a look at the BinaryDelimited helpers.
As far as getting your buffer right for that C++ code, check out WireFormatLite for LengthDelimitedSize(), that should do the work to make sure your buffer is correctly sized.

Thanks for the advice.
When I check the receive() section in my code, it behaves normally but it is implemented very inefficiently.
Thanks to you, I learned about varint encoding.
The Delimited concept that you noticed should be checked.
I will check and respond again.


[WIP] Translating oca_dependencies to addons/repos .yaml fo…

…r automatic dependency resolution

@Yajo added the mentioned changes. However in local tests it fails, i need to debug to fix them (one being it should not run if AGGREGATE env var is not defined). It also has to start the section aggregation once everything worked

I will resume work on this when I get a bit more time. I couldn't follow every reply on the mailing list regarding the pip installing method vs Doodba. This is still needed right?

Yes, as explained in https://github.com/OCA/runbot-addons/issues/144#issuecomment-338960929, I still see many benefits on addons.yaml system, I don't think it will fade away soon (although pip installing support is still there, of course)

According to https://github.com/OCA/runbot-addons/issues/144#issuecomment-339943623 (and mostly to the whole conversation) it seems OCA is not interested in this project, so please @PCatinean could you split this PR in 2?

Autofill auto/repos.yaml when a repo is declared in custom/src/addons.yaml but not in custom/src/repos.yaml by using $DEFAULT_REPO_PATTERN.
Implement oca_dependencies.txt recursive translation to this image's systems.

... Or otherwise just do step 1. Step 2 was a step needed to use Doodba in OCA. Since that's not going to happen, most likely it means that it goes to the collection of stuff that we just won't need. 🤔

@Yajo I see, so basically in step 1 whenever an addon is declared in addons.yaml but it's not present in repos.yaml assume it's an oca repo and update repos.yaml accordingly?

yep!


Is literally all of this documentation Deprecated?

None of these UI elements exist in the portal or DataFactory studio.  Is there new documentation?

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

ID: 7c9acff2-c792-d606-43bc-12f1b4351985
Version Independent ID: 1ea0d7f4-5407-3506-5117-37e7c058f016
Content: Move data - Data Management Gateway - Azure Data Factory
Content Source: articles/data-factory/v1/data-factory-move-data-between-onprem-and-cloud.md
Service: data-factory
Sub-service: v1
GitHub Login: @nabhishek
Microsoft Alias: abnarain

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

Hello @shudson302  , you were looking at Version 1 of Data Factory documentation.  Version 1 and Version 2 of Data Factory are so different as to nearly be different products.  Version 1 is being deprecated / phased out.  Version 2 is current.

Does this answer your question?

Yes it does.  Thank you!


What does J&F 1st frame means

Dear authors, thank you for your great work. I saw you report "J&F 1st frame" in paperswithcode leader board, but I did not find the definition of this metric. Can you tell me about it? Thank you so much.

@HaoZhang534 Hi Hao, "J&F 1st frame" in paperswithcode is just the J&F used in R-VOS of our paper.


'Account action required (https://account.live.com/identity/confirm), login with a web browser first', <Response [200]>

When i tried to login by
sk=Skype(login, pwd)
i catch the Exception
'Account action required (https://account.live.com/identity/confirm), login with a web browser first', <Response [200]>
May be somebody solve the problem? Give me advice please

The exception tells you what you need to do.  Failing that, duplicate of #145.

The exception tells you what you need to do.  Failing that, duplicate of #145.


Adding open/close callbacks to sideNav options. fixes #2830

Adds open/close callbacks to sideNav options. fixes #2830

lets get this added!

We can use that on latest release?

@ferchoman09
I've been keeping it up to date, but it's not merged yet.
If @Dogfalo or @acburst decide to accept the pull request, then you can.

@DonHartman thanks for your response.
I'll be waiting for that. I need that for my AngularJS project. :-(

ehii merge this fix please

@DonHartman @Dogfalo @acburst ehi pull this request please!!!

Hello,
This feature should ne added to the core. It is really important to listen on this events. Cloud you please review this pull request?
Thanks


Time Series Profile Controllers

Implementation of Time Series Profile Definition, Parser, and Instance controllers

Current TimeSeriesProfileInstanceDao Catalog implementation does not return parameter list for the TimeSeriesProfiles

After discussion with the team, a new data structure for the TSP Instances has been developed that should allow for paging implementation and improved consistency across endpoints that deal with time series data (gate changes, turbines, etc). Here's JSON of that new structure. @MikeNeilson Please take a look and let me know your thoughts.
{   "time-series-profile": {     "location-id": {       "office-id": "SWT",       "name": "SWAN"     },     "description": "Description",     "parameter-list": [       "Temp-Water",       "Depth"     ],     "key-parameter": "Depth",     "reference-ts-id": {       "office-id": "SWT",       "name": "SWAN.Depth.Inst.0.0.DSS-Obs"     }   },   "parameter-columns": [     {       "parameter": "Temp",       "ordinal": 1,       "units": "F"     },     {       "parameter": "Depth",       "ordinal": 2,       "units": "F"     }   ],   "data-columns": [     {       "name": "value",       "ordinal": 1,       "datatype": "java.lang.Double"     },     {       "name": "quality",       "ordinal": 2,       "datatype": "java.lang.Integer"     }   ],   "time-series": [     {       "1612869582120": [         [86.5, 0],         [98.6, 0]       ],       "1612869682120": [         [86.999, 0],         [98.6, 0]       ],       "1612870682120": [         [],         [98.6, 0]       ]     }   ],   "location-time-zone": "PST",   "version": "DSS-Obs",   "version-date":<PHONE_NUMBER>000,   "first-date":<PHONE_NUMBER>000,   "last-date":<PHONE_NUMBER>000,   "page-first-date":<PHONE_NUMBER>000,   "page-last-date":<PHONE_NUMBER>000,   "page": 1,   "page-size": 50,   "cursor": "cursorData" }

Looks reasonable to me. Might be good to provide a total field in addition to the page and page-size, would let applications be able to properly render a progress bar.

"parameter-list": [
"Temp-Water",
"Depth"
],
"key-parameter": "Depth",
Thoughts on changing this to something like:
"dependent-parameters": [
"Temp-Water",
"Dissolved Oxygen"
],
"independent-parameter": "Depth",
Unless key-parameter means something other than specifying the independent variable

I believe it does. One of the parameters is used as basically a reference point for other operations.

If you have some time, please review the DAO and DTO changes @AndreasChristmann


new lexer request: ProC and ProC++ (with patch)

(Original issue 655 created by imednev on 2011-03-30T11:15:11.159682+00:00)
Since we use Oracle ProC and ProC++ we needed to add syntax-highlighting for them.
In the attached .diff files you can see the proposed enhancements.
Please, let us know what you think about that, as it would be great if this is included in the future releases of Pygments.

I'm closing all requests for lexers/formatters without a patch/PR.


Travis no longer supports oraclejdk8

The examples made in README.md use oraclejdk8, which is no longer supported by Travis. Could you update them?

Thanks for pointing! We'll update it.


Deploy views quickfix

Pull Request Test Coverage Report for Build 996948150

2 of 16 (12.5%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 84.479%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

records/views.py
1
5
20.0%

people/views.py
1
11
9.09%

Totals

Change from base Build 996795069:
-0.4%

Covered Lines:
811

Relevant Lines:
960

💛  - Coveralls


CON-2691 added padding image gallery dots

Coverage increased (+0.02%) to 19.279% when pulling 195fb507d1b7065644131782b21897ca2e70e96e on CON-2691-iphoneX into 2abb0d78adb9d2852ec13b631b51955f99772ab7 on master.

Coverage remained the same at 19.261% when pulling 46688e97eddb66ead9a69d427dcead65162cb90e on CON-2691-iphoneX into 2abb0d78adb9d2852ec13b631b51955f99772ab7 on master.


Too Many Requests

Hey folks,
with my current setup I regularily get "HTTP Error 429 - Too Many Requests. Sleeping for 65725 seconds and will retry". I only have a dishwasher and a washing machine connected. Is it possible to reduce the polling to once per x minutes?
I specifically migrated from non-alt to alt because people said the too many requests would be solved here :p
I love the integration (a pitty the appliances dont have local api but oh well).
Thanks for any pointers!

There's a whole section about dealing with it in the README. Just do what it says.


Updated .gitignore.tmpl for Android

Description
When building with Android Studio, .apk, .aab and .json files are added to this directory, which causes it to be uploaded to git. I created a new project with "flutter create". Then I opened the project's android directory with Android Studio. I created the app bundle with the Genarate signed bundle option from the Build menu. The app-release.aab file occurred in the /android/app/release/ directory.

@NebiSarigul  this is the wrong gitignore, you want https://github.com/flutter/flutter/blob/master/packages/flutter_tools/templates/app/.gitignore.tmpl

#66382


Type Error: Failed to convert string to float 'N/'

Get an error: [Error] could not convert string to float: 'N/' every time I try to run it. Might be due to a different FFMPEG version.
PR for fix: #11

Please upgrade to v2.1.1 with pip3 install better-ffmpeg-progress --upgrade and let me know if you ever run into this issue. For now, I will close this issue.


Print out docker logs if the container test failed.

Print out docker logs if the container test failed.

LGTM.


Resolve pattern page inconsistencies

For the pattern pages

[x] Draft a pattern page structure in Word/Figma
[ ] Change the sidebar to separate related components/patterns
[ ] Capture token recommendations somewhere

Edited pattern pages-ensure all follow new structure

[ ] App header
[ ] Button bar
[ ] Contact details
[ ] Content status
[ ] Forms
[ ] International address input #2975
[ ] International phone number
[ ] Metric
[ ] Navigation
[ ] Preferences dialog
[ ] Analytical dashboard

Replaced by #3112


Questions about details in the code

Hi~ I am studying the code now , I have some questions about the code. I hope you may give me some answers.
I am currently study the convolution kernel. For a kernel who is responsible to compute a 43 output region from a 1924 input feature map. It seems this kernel computes 16 different feature maps for this input region using 16 different kernels. My question is that why do you divide the image onto 16 SIMD lanes(30 floats per lane)? It doesn't makes any sense to me.
The related code is:
__attribute__((reqd_work_group_size(1, 1, SIMD_SIZE)))
kernel void
convolve_AlexNet_C1 (
    __global float* outputs,
    __global float* inputs,
    filter_qualifier float* weights,
    __global float* biases,
    unsigned int batch_output_offset)  //__global float *inputs, __global float* weights, __global float* outputs)
{
    uint oc  = get_global_id(0) * OUT_BLOCK_WIDTH;  // oc = Output Column
    uint or  = get_global_id(1) * OUT_BLOCK_HEIGHT; // or = Output Row
    uint fm  = get_global_id(2);                    // fm = Feature Map = od = Output Depth
    uint fmg = get_group_id(2);
    uint lid = get_local_id(2);
    //float w;
    // 19 x 24 = 456; 456 / 16 = 29 floats per lane for SIMD16, but padding out to 30 to simplify the load loop.
    float in[30];   // this holds a 19x24 block of the input data, enough to compute 4x3 outputs, simd_shuffle is used so that all work-items have access to all 19x24 locations.
    float out[12]; // 4x3 block of outputs that is SIMD_SIZE deep (along the Feature Map dimension).
    for(int i=0;i<12;i++)
    {
        // we need this address calculation for biases because we support views and batching
        out[i] = biases[(fm - get_global_offset(2)) % _OD];
    }

    uint in_addr;
    uint weight_addr = (fmg % (_OD/SIMD_SIZE)) * _ID * KERNEL * KERNEL * SIMD_SIZE + lid;

    uint input_batch_offset = (fm / _OD) * (_IH + IHPAD) * (_IW + IWPAD) * _ID;

    for(int kd = 0; kd < _ID; kd++)  // _ID = 3, RGB
    {
        in_addr = input_batch_offset + (kd + INPUT_START_Z) * (_IH + IHPAD) * (_IW + IWPAD) + (or*K_STRIDE + INPUT_START_Y) * (_IW + IWPAD) + (oc*K_STRIDE + INPUT_START_X)  + lid;

        // read 24x19 block into registers.
        // This is ugly, we really need to fix the programming model.
        for(uint reg = 0; reg < 30; reg+=3) {
            in[reg] = inputs[in_addr];// read 16 elements
            // might be better to adjust the addrs, then do single load.
            if(lid < 8) in[reg + 1] = inputs[in_addr + 16];// read 8 elements in lower portion, for total of 24 from input row.
            in_addr += (_IW + IWPAD);  // move to next row down
            if(lid >= 8) in[reg + 1] = inputs[in_addr - 8];  // read 8 elements into upper portion
            in[reg + 2] = inputs[in_addr + 8]; // read 16 elements
            in_addr += (_IW + IWPAD);  // move to next row down
        }

        float w[5];
        int w_idx=0;
        w[0] = weights[weight_addr]; weight_addr += SIMD_SIZE; // weights must be stored in just the right SIMD swizzled format for this to work, see host code for details.
        w[1] = weights[weight_addr]; weight_addr += SIMD_SIZE;
        w[2] = weights[weight_addr]; weight_addr += SIMD_SIZE;
        w[3] = weights[weight_addr]; weight_addr += SIMD_SIZE;
        w[4] = weights[weight_addr]; weight_addr += SIMD_SIZE;

        int kr = 0; // kr = Kernel Row
        LOOP(10, kr,  // LOOP is a macro that unrolls the loop.
        {
            int kc = 0; // kc = Kernel Column
            LOOP(KERNEL, kc,
            {
                for(int br=0; br<OUT_BLOCK_HEIGHT; br++) {
                    for(int bc=0; bc<OUT_BLOCK_WIDTH; bc++) {
                        //if we fix the programming model, then we could use a nice simple 2d array: val = in[br * K_STRIDE + kr][bc * K_STRIDE + kc];
                        float val = intel_sub_group_shuffle( in[(((br*K_STRIDE+kr)*24)+(bc * K_STRIDE + kc)) / SIMD_SIZE], (((br*K_STRIDE+kr)*24)+(bc * K_STRIDE + kc)) & (SIMD_SIZE - 1));
                        out[br * OUT_BLOCK_WIDTH + bc] = mad(w[w_idx%5], val, out[br * OUT_BLOCK_WIDTH + bc]);
                    }
                }

                w[w_idx%5] = weights[weight_addr]; weight_addr += SIMD_SIZE;
                w_idx++;

            });
        });

        // last kr loop split in two parts
        int kc = 0; // kc = Kernel Column
        LOOP(6, kc,
        {
            for(int br=0; br<OUT_BLOCK_HEIGHT; br++) {
                for(int bc=0; bc<OUT_BLOCK_WIDTH; bc++) {
                    //if we fix the programming model, then we could use a nice simple 2d array: val = in[br * K_STRIDE + kr][bc * K_STRIDE + kc];
                    float val = intel_sub_group_shuffle( in[(((br*K_STRIDE+kr)*24)+(bc * K_STRIDE + kc)) / SIMD_SIZE], (((br*K_STRIDE+kr)*24)+(bc * K_STRIDE + kc)) & (SIMD_SIZE - 1));
                    out[br * OUT_BLOCK_WIDTH + bc] = mad(w[w_idx%5], val, out[br * OUT_BLOCK_WIDTH + bc]);
                }
            }

            w[w_idx%5] = weights[weight_addr]; weight_addr += SIMD_SIZE;
            w_idx++;
         });

        // last 5 kc loops don't prefetch weights
        LOOP(5, kc,
        {
            for(int br=0; br<OUT_BLOCK_HEIGHT; br++) {
                for(int bc=0; bc<OUT_BLOCK_WIDTH; bc++) {
                    //if we fix the programming model, then we could use a nice simple 2d array: val = in[br * K_STRIDE + kr][bc * K_STRIDE + kc];
                    float val = intel_sub_group_shuffle( in[(((br*K_STRIDE+kr)*24)+(bc * K_STRIDE + kc)) / SIMD_SIZE], (((br*K_STRIDE+kr)*24)+(bc * K_STRIDE + kc)) & (SIMD_SIZE - 1));
                    out[br * OUT_BLOCK_WIDTH + bc] = mad(w[w_idx%5], val, out[br * OUT_BLOCK_WIDTH + bc]);
                }
            }
            w_idx++;
         });

    }

    // write the 4x3 (and 16 feature maps deep) output tile to memory
    uint out_addr = OUT_BUFF_OFFSET + fm * (_OW + OWPAD) * (_OH + OHPAD); // out_addr indexes into start of 16 feature maps.
    out_addr += or * (_OW + OWPAD) + oc;  // offset for the 4x3 block that this workitem is working on;
#ifndef WRITE_PADDED_VALUES
    if(get_global_id(0) != (get_global_size(0)-1) &&
        get_global_id(1) != (get_global_size(1)-1)  )
    {
#endif
        for(uint r = 0; r < OUT_BLOCK_HEIGHT; r++) {
            for(uint c = 0; c < OUT_BLOCK_WIDTH; c++) {
            // this does a scattered write to 16 different feature maps, so that data within one map is contiguous, thus ready for input to next layer.
              outputs[out_addr + r * (_OW + OWPAD) + c] = activation_function(out[r * OUT_BLOCK_WIDTH + c]);
            }
        }
#ifndef WRITE_PADDED_VALUES
    }else if ( get_global_id(1) != (get_global_size(1)-1) )
    {
        for(uint r = 0; r < OUT_BLOCK_HEIGHT; r++) {
            for(uint c = 0; c < LAST_BLOCK_WIDTH; c++) {
                  outputs[out_addr + r * (_OW + OWPAD) + c] = activation_function(out[r * OUT_BLOCK_WIDTH + c]);
            }
        }
    }
    else if ( get_global_id(0) != (get_global_size(0)-1) )
    {
        for(uint r = 0; r < LAST_BLOCK_HEIGHT; r++) {
            for(uint c = 0; c < OUT_BLOCK_WIDTH; c++) {
                  outputs[out_addr + r * (_OW + OWPAD) + c] = activation_function(out[r * OUT_BLOCK_WIDTH + c]);
            }
        }
    }
    else
    {
     for(uint r = 0; r < LAST_BLOCK_HEIGHT; r++) {
        for(uint c = 0; c < LAST_BLOCK_WIDTH; c++) {
                outputs[out_addr + r * (_OW + OWPAD) + c] = activation_function(out[r * OUT_BLOCK_WIDTH + c]);
            }
        }
    }
#endif //#ifndef WRITE_PADDED_VALUES
}

#endif  //#ifdef INCLUDE_convolve_AlexNet_C1
)";

Also, why there are two sub convolution layers in Alexnet conv layer 2,4,5, does this implementation helps to improve the efficiency and why?

My question is that why do you divide the image onto 16 SIMD lanes

Short answer is we are using cl_intel_subgroups extension.
https://www.khronos.org/registry/cl/extensions/intel/cl_intel_subgroups.txt
From the specification:

Specifically, this extension is designed to allow work
items in a subgroup to share data without the use of local memory and work group
barriers, and to utilize specialized hardware to load and store blocks of data.

In this case, the subgroup has 16 work items.

Also, why there are two sub convolution layers in Alexnet conv layer 2,4,5, does this implementation > helps to improve the efficiency and why?

I believe you should be able to find the answer in Alex Krizhevsky's publication.
Hope that helps.

@jreniecki Thanks! I've figured most of these out. I know now that you divid the output feature map to some regions such as a 43 region. And every work group calculates one such region. But why 43? You have 128 registers per EU thread which could support bigger regions and help to improve the efficiency.
Also, is this number specific for AlexNet? I notice that the weights for AlexNet is some *.nnd files which can't be open, so for now, I can only run AlexNet, right?

But why 4 by 3? You have 128 registers per EU thread which could support bigger regions and help to improve the efficiency.

Number of registers is not the only factor. For smaller layers it might be beneficial to create more work items each calculating smaller region, but using all the execution units efficiently. We tested the code on GPU with 40 execution units (that was our target platform), so if your GPU has less EUs, then in your case using larger block size may be a very good idea.

It seems the code is hardwired to a specific neural network.

As it says in the project description:

The current release should be treated as an object classification performance and efficiency demo.

We focused on what was required to run CaffeNet topology as efficiently as possible. Other topologies may not give the same performance results.

I can only run AlexNet, right?

Currently we provide weights only for CaffeNet, which is slightly modified version of AlexNet.

@jreniecki Thanks!


live server not working

Issue Type: Feature Request
installed live server but not working , what should i do, and half of the features
are not working.
also on the top middle where visual studio code is written [unsupported] is written next to that.
is there any problem in downloading or some feature i need to activate or deactivate on my desktop.
please get back as soon as possible.
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.18363

Since this is an issue with live server, please open it in the repository for that extension.
I'm not sure exactly where you mean "[unsupported]" is written, but this could mean that you have installed an extension that has changed part of VSCode on disk. You could try uninstalling your other extensions.

Since this is an issue with live server, please open it in the repository for that extension.
I'm not sure exactly where you mean "[unsupported]" is written, but this could mean that you have installed an extension that has changed part of VSCode on disk. You could try uninstalling your other extensions.


Add namespaces

Added the token format for more namespaces (Workspaces, WorkItemTrackingProvision, UtilizationPermissions, AuditLog) and added additional information to ReleaseManagement

 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.:x: parsamzand sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@parsamzand : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Add Ram Payer for each row to Get Table API

It would be great to be able to get the RAM payer per table row with the Get Table API. Currently the only way seems to be with the state history plugin.
Perhaps it needs another option like -p (true/false) so that if you don't need that extra data, you don't waste bandwidth.

Resolved by #6264.


Add a view all modules command

it can make people be more organized and see with text exactly what modules they have
It can massively improve the usability of this and make people think this is better and continue to use this

Use pimp list modules.
It's in the help message and in the docs


feat: allow option to skip uploads altogether

There can be some cases where test results do not need to be uploaded. Allowing for a skip parameter to skip everything altogether.

I wonder if there is a use-case for this in which you can just avoid adding the plugin to the step altogether instead of using this option :thinking:


Convert todo to a github issue

@mrtazz what do you think of this idea:

Add a todo to a daily
Run a command that creates an issue on GitHub (to a configured repo)
Replace the todo text with a link to the issue with the todo as the title

So
- [ ] my todo

Becomes
- [ ] [my todo](https://github.com/myorg/myrepo/issues/1)

I'm thinking maybe it would rely on the gh cli being installed.
Maybe this makes more sense as a plug-in instead of being in the vim-plan core?

Maybe this makes more sense as a plug-in instead of being in the vim-plan core?

yea I agree. I think this makes more sense as its own plugin as it could be useful outside of vim-plan potentially. In my mind this is similar to https://github.com/jkramer/vim-checkbox which I'm using to quickly toggle checkbox states but don't really want to replicate the functionality inside of vim-plan even though it's super useful. I had initially started on integrating some of this but ended up never really using that functionality. So I might remove it again at some point.

Cool. makes sense. 💖


⚠ Processors has degraded performance

In 0629aa1, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 79 ms

Resolved: Processors performance has improved in aa89d71.


Translated the missing strings.

Translated the missing strings.
Check if this PR fulfills these requirements:

[ ] My changes respect the Kodi add-on development rules
[ ] I have read the CONTRIBUTING document.
[ ] I made sure there wasn't another one Pull Requests opened for the same update/change
[ ] I have successfully tested my changes locally

Types of changes

[ ] New feature (non-breaking change which adds functionality)
[ ] Feature change (non-breaking change which change behaviour of an existing functionality)
[ ] Improvement (non-breaking change which improve functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

In case of Feature change / Breaking change:
Describe the current behavior

Describe the new behavior

Screenshots (if appropriate):

Not updated:
30081
Missing 30234
Missing all new translations you can from here https://github.com/CastagnaIT/plugin.video.netflix/commit/68299320af81375b3368f9b48d56df91fa838048


[Trace] Integration with OAP

This task intends to link OAP to banyandb based on the interaction API .
Since the banyandb only supports trace data for now, we should:

create a branch, named banyandb-integration in main repo.
add a new storage module named banyandb.
send trace data to banyandb in the new module, while sending reset data to h2.

^^^ @wu-sheng anythings else should be included?

Pls assign to me.

@hanahmily I think @lujiajing1126 is not able to create an official branch. You need to create for him.
To @lujiajing1126, as the SkyWalking master branch only accepts squash merge(when we do banyandb-integration to master), the final status of this feature could only be counted as one commit of you. Is that a concern for you? It is totally understandable if you want that statistic being kept. Please let me know.

@hanahmily I think @lujiajing1126 is not able to create an official branch. You need to create for him.
To @lujiajing1126, as the SkyWalking master branch only accepts squash merge(when we do banyandb-integration to master), the final status of this feature could only be counted as one commit of you. Is that a concern for you? It is totally understandable if you want that statistic being kept. Please let me know.

The squash merge is totally ok for me.

Branch created, https://github.com/apache/skywalking/tree/banyandb-integration

We have finished the first round of integration. I will open another issue to track current work.


Add a helper function for playing audio after submitting roll dialog

This feature would be very useful for improving immersion, such as playing a blaster sound after rolling for Ranged: Light. It makes rolling very fun. Right now I do this with a macro but it would be great if it was included in the base system.
For example, adding a variant of displayRollDialog as I did. Allowing for audio to play in the callback is important because the sound effect should play when the dice is rolled, not when the dialog is opened.
// Custom roll dialog that allows for audio
async function displayRollDialogWithAudio(data, dicePool, description, skillName, item, audio) {
    const id = randomID();

    const content = await renderTemplate("systems/starwarsffg/templates/roll-options.html", {
      dicePool,
      id,
    });

    new Dialog(
      {
        title: description || game.i18n.localize("SWFFG.RollingDefaultTitle"),
        content,
        buttons: {
          one: {
            icon: '',
            label: game.i18n.localize("SWFFG.ButtonRoll"),
            callback: () => {
              const container = document.getElementById(id);
              const finalPool = DicePoolFFG.fromContainer(container);

              const roll = new game.ffg.RollFFG(finalPool.renderDiceExpression(), item);
              roll.toMessage({
                user: game.user._id,
                speaker: data,
                flavor: `${game.i18n.localize("SWFFG.Rolling")} ${skillName}...`,
              });
              AudioHelper.play(audio, true);
            },
          },
          two: {
            icon: '',
            label: game.i18n.localize("SWFFG.Cancel"),
          },
        },
      },
      {
        classes: ["dialog", "starwarsffg"],
      }
    ).render(true);
}

const actor = game.actors.get("x8vKm1uIO4U1xp7q");
const actorSheet = actor.sheet.getData();
const item = actor.getOwnedItem("Kj5b3Fq9aI0S2GXv").data;

// Audio file formatted for use with AudioHelper
const audio = {src: "audio/Sound%20Effects/Blaster/blaster.mp3", volume: 0.2, autoplay: true, loop: false}

const skill = actor.data.data.skills[item.data.skill.value];
const characteristic = actor.data.data.characteristics[skill.characteristic];

const dicePool = new DicePoolFFG({
  ability: Math.max(characteristic.value, skill.rank),
  boost: skill.boost + 1,
  setback: skill.setback,
  force: skill.force,
  difficulty: 2, // default to average difficulty
});

dicePool.upgrade(Math.min(characteristic.value, skill.rank));

displayRollDialogWithAudio(actorSheet, dicePool, `${game.i18n.localize("SWFFG.Rolling")} ${skill.label}`, skill.label, item, audio);

`

I think this is a great thing to have to customize the roll, but as macro not as a feature, we would need to create some type of audio management for items so that GMs could swap out sounds.  This adds complexity for something that is not functionally required.

That's fine, it can be available as a module as well.

Added macro to wiki.


Problem: omni_httpd's reload_configuration ends before the configuration is loaded

Solution: ensure the configuration is read before returning
at the risk of setting the latch a number of times.

This isn't the right solution to the problem.


[BUG] [VSCode Extension] type 'python', exception 'charmap' codec can't decode byte 0x81 in position 98: character maps to

Describe the bug
If there is  in python file, promptflow visual editor cannot decode it.
How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:

Create a python node

from promptflow import tool

@tool
def prepare_data():
    return "https://www.bing.com/"

Add the node to flow in visual editor

Generate tool meta of prepare_data.py error: Exception: Failed to generate tool meta for prepare_data.py: Reading meta file failed, path '.....\prepare_data.py', type 'python', exception 'charmap' codec can't decode byte 0x81 in position 98: character maps to <undefined>.

Screenshots
NA
Environment Information

Promptflow Package Version using pf -v: 0.1.0b7.post1
Operating System: Windows 10
Python Version using python --version: Python 3.9.18
VS Code version. 1.82.1
Prompt Flow extension version. v1.0.12
On the VS Code bottom pane > Output pivot > "prompt flow" channel, find the error message could be relevant to the issue and past them here. That would be helpful for our trouble shooting.
If your code to repro the issue is public and you want to share us, please share the link.

Additional context
NA

Thanks for reporting!
Fix PR has been merged.
We published a private wheel version=0.0.107529917 to unblock your usage.

Another fix PR when we meet special character in PROMPT/LLM/CUSTOM_LLM tools.
Can't read file will fail run execution.


Suggested channels after subscribing

@tzarebczan commented on Sat Jan 12 2019

The Issue
Cool feature I noticed on YouTube recently where they show you a list of similar channels after subscribing to one. We could do this in a similar way to related content along with Search, but I think we'll need creator profiles before we can do this well. Right now we'd only be able to search on name, which won't give good results.

System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

Internal Use
Acceptance Criteria

Definition of Done

[ ]  Tested against acceptance criteria
[ ] Tested against the assumptions of the user story
[ ] The project builds without errors
[ ] Unit tests are written and passing
[ ] Tests on devices/browsers listed in the issue have passed
[ ] QA performed & issues resolved
[ ] Refactoring completed
[ ] Any configuration or build changes documented
[ ] Documentation updated
[ ] Peer Code Review performed

@ITwrx commented on Wed Mar 06 2019
I just went to my subscriptions page (i have two sub'd channels) and instead of my subscribed channels being shown, i am shown other channels i am not subscribed to. This made me furious with molten rage!
I can see how this feature might be useful one day, but IMHO in needs to be a little more discrete and a user shouldn't have to click to show their subscribed channels. Subscribed channels should be shown first and then suggested channels, clearly delineated so as to not appear coercive/pushy.
thanks

@tzarebczan commented on Wed Mar 06 2019
This is only shown a single time or after clearing app cache. Otherwise, it will show you your synced content. We do show suggestions in the latest only section if all your current channels don't have any new content.

@ITwrx commented on Wed Mar 06 2019
oh, ok. thanks
also, the sub channel view is very nice looking.

This should use the new recommendation data that @jbn is working on.


Increase Code Coverage

Expected Behaviour
The package should have enough test coverage
Actual Behaviour
It could be improved

Done as part of #20


Releases & Versioning

Because GitHub makes it simple to do so, perhaps I should consider making regular releases. Good for archival purposes.

Solved. Releases will be issued at most once per month, at least once per year, as I see fit. Versioning tags are of the form "YYYY.MM".

Update: versioning tags will be of the form "YYYY.MM.DD" to allow for at most daily releases, or more than twelve per year.