Cannot debug .ts files (instead steps into .js) when the workspace path contains space

When I debug in VS Code I can set a breakpoint in a .ts file and the debugger will stop at that location, however, it stops in the .js file. All further step-debugging takes place in the .js file instead of in the .ts file.
The intro video for the extension shows the debugger stopping and stepping in the .ts file itself.
I am running 0.7.0 with NS 3.0.1, but this was happening with older versions as well.
I have tried switching to sourceMap (took awhile to figure out that compile.js forces inlineSourceMap!), but I get the same behavior.

Hi @RobertGardner,
we've tried to reproduce your issue locally but with no luck. Can you please help us with some more details:

What kind of NativeScript App are you working on - Angular or Pure NativeScript with TypeScript?
Have you tweaked somehow the Webpack configuration (in case you use Angular)
Are the .js files in the same place where the .ts files are?
Does this happen with a newly created application?
On what OS are you working on?

I'm not sure you need to use SourceMap, currently it works for us without one.

Sorry, I should have provided this info the first time!
This has been happening since I first started developing on NativeScript a few months ago, but I decided to wait until NS 3 to see if that would fix it. When it didn't, I filed the bug.
Here is the info:
1- Angular
2- I made a clean install of HelloWorld and it happens on that project with no modifications anywhere. I can't find webpack on my path or anywhere on my system, and 'grep -ir webpack app' doesn't find anything.
3- Yes, and I can see the inline source in them (once I set it back to --inlineSourceMap).
4- Yes, HelloWorld using 'tns create  --template nativescript-template-ng-tutorial'. 'tns doctor' reports no problems.
5- Mac OS 10.12.4 and I'm building for iOS only, I don't (yet) have any Android tooling installed.
Other- I did a complete remove and reinstall of NS3 and supporting tools (performing only the steps for iOS development), I have removed every VS Extension except this one, VS is updated to v1.12.2. It still happens.

I'd love some advice on this, it's driving me crazy!
I did a clean install of NativeScript, VS Code, the extension, and the HelloWorld Angular tutorial on another laptop. It debugs correctly. A clean install of HelloWorld tutorial on my laptop does not. So there must be something about the installation on my laptop.
I tried completely uninstalling and reinstalling VS Code and the extension. I have done a complete reinstall of NativeScript. I am currently using NS 3.0.3 with modules 3.0.1, typescript 2.2.2 (with 2.3.2 installed globally, but VSCode set to use the workspace version).
Since this doesn't happen on a clean install on a different laptop, I realize this may not be a bug you can look into, but if you have any suggestions on what I could do to figure this out I'd greatly appreciate it.

I have the same problem. If I debug in VS Code the app does not stop in the TS file, but if I use the Chrome developer Tools the TS files as displayed and the break point are running well

I can't reproduce the problem, guys. Everything works on my side. @RobertGardner your configuration seems to be correct but still I can't guess what may be causing the problem. It seems to be a nasty bug.
I guess the VSCode extension fails to resolve source maps and fallback to the JavaScript file. You can try setting diagnosticLogging flag to true in your launch.json configuration and send the log in the Debugger Console.

I should mention I have tried uninstalling and reinstalling the NativeScript plugin and VS Code as a whole, and disabling all other VS Code plugins.

Hi all,
At least in my case, I've figured out what is causing this behaviour.
If you have your code here:
D:\Code\MyProjects\MyApp
All is OK, and I can debug to TypeScript files.
If you rename MyProjects to My Projects (in other words introduce a space in the path name) then debugging TypeScript no longer works and you are taken to the JavaScript files - in VS Code. Using tns debug android however and opening the Chrome debugger works fine with spaces in the path name.
Probably somewhere some path variable is not wrapped in quotes, but that's just a guess.
I hope this helps.
Cheers,
Josh

@joshcomley nice catch.
@RobertGardner can you confirm that having a space in the workspace path is what causes the problem in your case, too.

Hi,
I can confirm this behavior. After changing the path (removing spaces from the path) the break points are working fine and the code displayed is the TypeScript content.

Yes, that fixed it!!!!! Jumping for joy!!!

I looked at this issue for an hour or so. I'm sure we need something like encodeUri(path) somewhere, but it's a bit hard to find where exactly. Perhaps we should show a warning if the path contains a space (for the time being)?

Does it do the same thing if the file workspace path contains hyphens and dots as well or only spaces?

This is still not working for me. Tried to debug TS file just skips over it. If i put the break point on the JS file it then goes to the ts file for the corresponding line

The application error says Workstation Error Loading IPP: ippStsWaterfall:
Cannot load required library, waterfall is used
If that helps?
David Bambrick
JCAII
<EMAIL_ADDRESS>416-717-4556
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.
On Wed, Mar 14, 2018 at 3:13 PM, Nico<EMAIL_ADDRESS>wrote:

This is still not working for me. Tried to debug TS file just skips over
it. If i put the break point on the JS file it then goes to the ts file for
the corresponding line
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/nativescript-vscode-extension/issues/134#issuecomment-373141904,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFsn119V6gKNP01ag1jw_gILQMyWWJTVks5teWvJgaJpZM4NZfcf
.

Got exactly the same problem as @ndcunningham ...
removed package angular/animation from my app , as i did not need it finally :) , and now the error is the same but with file<EMAIL_ADDRESS>*Guess there's nothing to do with thse files themselves ....

Hi, same exact problem than @ndcunningham and @karlatt ...
VSCode can't set .ts breakpoint. I'm now debugging with Chrome Dev Tools which seems to work ok by now.

Don't think its related to whitespaces in the dir name. Have same issue with each new project and checked "C:\wtfs\wtf" with --ng template. Running on Windows 10, nativescript 3.4.3 - only Chrome debugging works.

Same here - cant set breakpoint in VSC 1.22.2.
Every time i'm adding breakpoint in debug console error shown:
Error: ENOENT: no such file or directory, open '{path to my<EMAIL_ADDRESS>But if i add "debugger;" in my code, vscode will stop in right TS file, so mappings works.

+1

I'm suffering similar problems.  VSCode 1.20.1 on Ubuntu 16.04 and the basic Angular template leads to (having removed @angular/animations due to the same error on the path reported by @ndcunningham)...
Error: ENAMETOOLONG: name too long, open '/home/simon/mobapp/node_modules/@angular/common/bundles/api.js.map","/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes} checked by tsc...
Firstly, that file doesn't seem to exist.  Secondly, the filename seems to be missing a terminating single quote.

I had sameproblem in windows 10, vs code 1.23.1 and nativescript 4.0.1
Ts breakpoints not hit, but when add breakpoint on js file it then goes to the ts file for the corresponding line. In my project map files is not generated. when I add sourceMap = true in tsconfig.json then the error below thrown:
error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'.
and when I remove it the error below exist in: debugger console
[NSDebugAdapter] Connection to target application successfully enabled Error: ENOENT: no such file or directory, open 'C:\Projects\rps_conf2\node_modules\tns-core-modules\application\application-common.js.map'

I had a similar problem with VSCode 1.25.1 on Mac OS 10.13.6,   it cannot debug .ts directly when my project folder name start with 'ts-' or end with '-ts'.


typo: Double word "set"

@nschonni : Thanks for your contribution! The author, @cgillum, has been notified to review your proposed change.

@cgillum no problem, BTW, the sign-off in a review message is currently not working MicrosoftDocs/feedback#413


Skip yum repo-url restrictions for scratch builds

Allow users to try custom yum repositories for scratch builds. This can
be useful for debugging purposes.

OSBS-7972

Signed-off-by: Athos Ribeiro<EMAIL_ADDRESS>Maintainers will complete the following section:

[x] Commit messages are descriptive enough
[x] "Signed-off-by:" line is present in each commit
[x] Code coverage from testing does not decrease and new code is covered
[n/a] JSON/YAML configuration changes are updated in the relevant schema
[n/a] Changes to metadata also update the documentation for the metadata
[x] Pull request includes link to an osbs-docs PR for user documentation updates
[n/a] New feature can be disabled from a configuration file

Release notes added:

Do not apply yum repository restrictions to scratch builds


[Video_Player] Remove the deprecated API reference.

exoPlayer.setAudioStreamType has been deprecated. Remove it from the video_player plugin.
Doc: https://developer.android.com/reference/android/media/MediaPlayer#setAudioStreamType(int)
Pre-launch Checklist

[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[ ] I updated/added relevant documentation (doc comments with ///).
[x] I signed the CLA.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

It's deprecated in API 21, but the plugin supports building back to 16, so this will regress running on old versions. Can you explain the problem you are trying to solve? Are you using alternate build files with a newer target?

This API has been removed entirely from the internal exoplayer library. So the internal plugin is diverged from the upstream one. But I'm not sure if it's safe to remove this reference in the upstream as you mentioned. I've talked with Chris. Chris suggest me to create a PR to get some feedback. We can handle this difference for now if this causes regression.

Is it possible to catch NoSuchMethodException?

Oh I see, I missed that this is ExoPlayer rather than Media player. So I think the question becomes, does the newer ExoPlayer API work down-level?

I think so. Actually, the exoPlayer.setAudioStreamType API has been removed from the source. But I'm not familiar with the upstream dependencies. I may look at the wrong repo. https://github.com/google/ExoPlayer/blob/release-v2/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java

Kindly ping.

I think so.

Can you link to documentation/source/discussion that supports this?

Actually, the exoPlayer.setAudioStreamType API has been removed from the source.

Is that because the new method works downlevel so isn't needed, or has the current version dropped support for older versions of Android?
We need definitive confirmation that this isn't going to break the plugin for Android versions we still support before proceeding.

See here: https://github.com/google/ExoPlayer/blob/r2.9.6/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java#L499
setAudioStreamType internally use setAudioAttributes(AudioAttributes) which is also deprecated later and should use setAudioAttributes(AudioAttributes, boolean) instead.


feat: support noLocal

Issue #, if available:
Description of changes:
Support noLocal MQTT5 subscription property on IotCoreClient and LocalMqtt5Client.
Why is this change necessary:
To support MQTT5 features
How was this change tested:
unit and integration tests
Any additional information or context required to review the change:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Error:    KeystoreTest.GIVEN_mqtt_bridge_WHEN_cda_ca_conf_changed_after_shutdown_THEN_bridge_keystore_not_updated:128 expected:  but was: .
Rerunning ci, will address this separately


Fix autoflush

Fixes #656

Flush was on wrong place
also flush after replaceFileContent

This was the original code (which was broken by regression bug)
https://github.com/NLog/NLog/pull/415/files

Merge https://github.com/NLog/NLog.github.io/pull/25 if we merge this

replaced with #753, because the flush in replaceFileContent wasn't needed


[5.2] Add a point on suggest

This missing point has made me feel so uncomfortable for days now !

:heart:


More aleph_0 spaces

Adding the countable $k$-network property for three more spaces:

Sequential fan with countably many spines
Bouquet of countably many circles
Arens space

Also removed redundant traits.

@Almanzoris would you be able to review this?

@Almanzoris would you be able to review this?

Yeah, I will.

I would say that the PR is ready.

Thanks a lot for the review.  A few minor things:
For S131, I had "... homeomorphic to a convergent sequence (Fort space on an inifinite set)" to indicate that the convergent sequence was itself the same (homeomorphic) as the Fort space on an infinite set, not just a convergent sequence in that set, so that the rest of the sentence would make more sense.  Adding "in the" seems to change the meaning slightly?
For S139, the reason I had the period inside the dollar signs in $X.$ is to keep the $X$ and the period always together.  Otherwise, the browser can separate the $X$ and the period at the end of a line and one ends up with a line with just a period by itself, which looks weird.  That's how I noticed it.  But no big deal either way.
S170: If we want to have S1 as a properly formatted alias, it is usually used with $1$ as a superscript: $S^1$.  Do you want to change it?

Thanks a lot for the review. A few minor things:
For S131, I had "... homeomorphic to a convergent sequence (Fort space on an inifinite set)" to indicate that the convergent sequence was itself the same (homeomorphic) as the Fort space on an infinite set, not just a convergent sequence in that set, so that the rest of the sentence would make more sense. Adding "in the" seems to change the meaning slightly?
For S139, the reason I had the period inside the dollar signs in $X.$ is to keep the X and the period always together. Otherwise, the browser can separate the X and the period at the end of a line and one ends up with a line with just a period by itself, which looks weird. That's how I noticed it. But no big deal either way.
S170: If we want to have S1 as a properly formatted alias, it is usually used with 1 as a superscript: S 1 . Do you want to change it?

I have made the changes. I thought that you had done the $X.$ for a reason. However, as I saw a file keeping $X$. and in another file out of the PR I saw $U$. at the end of a line, I was unsure. But that is a reason why I waited for your recheck before merging. The next time, I will ask and avoid undos. When it comes to S131, I had misunderstood it, but now I have read it again and I have got it. Thanks.

I thought that you had done the $X.$ for a reason. However, as I saw a file keeping $X$. and in another file out of the PR I saw $U$. at the end of a line, I was unsure.

Yeah, I have not been consistent here.  I did not pay too much attention.  But it does not matter much, so we can leave it as is.

No problem.


what's the meaning of each variable in one state

I have a simple question. I checked the initial state under the loop scenario, take one as an instance:
'rl_0': ('rl', 'top', 0, 55.71428571428572, 0)
I wonder what each variable represents here?  Where can I find the state explanation under each scenario? My reward function is defined based on the states and actions so that knowing their meanings would help. Thank you!

hi @nancyhwr the values are, in order:

vehicle type: 'rl'
starting edge: 'top'
starting lane (0 if rightmost): 0
starting position on edge (in meters): 55.71428571428572
starting speed (in m/s): 0

Thank you @AboudyKreidieh !


Add a new flag for cluster-proxy deployments.

Signed-off-by: xuezhaojun<EMAIL_ADDRESS>This PR is related to a change in the community. https://github.com/open-cluster-management-io/cluster-proxy/pull/127

/assign @eemurphy
Hello, Erin, please take a look at this PR, thanks!

/lgtm


[firebase_app_check]: doesn't pass in Play Store Pre-Launch Report

Is there an existing issue for this?

[X] I have searched the existing issues.

Which plugins are affected?
App Check
Which platforms are affected?
Android
Description
I'm using Firebase App Check to protect my backend. When I upload my app to Google Play, it produces Pre-launch report. It contains screenshots with error about unavailable app check token. I can also see in Firebase Crashalytics, that test device reported errors indicating the same issue. Is it possible to use some kind of debug provider in Pre-launch report?
Reproducing the issue
Upload app to play store.
Firebase Core version
2.29.0
Flutter Version
3.19.5
Flutter dependencies

Expand Flutter dependencies snippet

firebase_app_check: ^0.2.2+1

@xVemu - Difficult to figure out what the issue is without any context or access to the project. Out of curiosity, have you test the app on internal, open or closed testing via Google play console to check that the app works with app check enforcement? i.e. you're able to use plugins were you have enforced app check?

@xVemu - Difficult to figure out what the issue is without any context or access to the project. Out of curiosity, have you test the app on internal, open or closed testing via Google play console to check that the app works with app check enforcement? i.e. you're able to use plugins where you have enforced app check?

I'm using closed testing. The issue occurs only when Google performs their automated test on the app. Later, when I download it on my device, everything works fine.

@xVemu - Could you ask Firebase support why it is failing and provide details from the pre-launch report? It appears to be a configuration issue that isn't solved by a fix on FlutterFire.

I've contacted Firebase support, and they told me to add signing key to SHA-256 certificate fingerprint, but it didn't work out. The same issue appears when running with Test Lab inside Firebase Console.


Display Jazzicon

Hey, @bennisan86 Please, check on your side if an identicon is displayed all right. After you are done, I'll merge the branch on to master.

Works like a charm, my man! Nice work, thanks! I thought maybe before you merge this branch into master, you could maybe at the script to the pubkey that truncates it to showing the first few and the last 3 characters, with three dots in between? Just a suggestion!

Yes!


CORS: fix schema

RNC was incorrect and RNG schema was too strict on field order.
Also make MaxAgeSeconds optional.
However a rework is needed to support several AllowedOrigins in same CORSRule

Fixes #59.


After "ionic emulate android" gives me that error

"Error: cannot read property 'length' of undefined"
That's working on Browser with no problem :D

@negdim sorry for this huge delay. Finally taking a look at this project again. Will ping you 🔜

Thanks Guys. You are so Awesome :D :D :D
On Sun, Oct 22, 2017 at 11:51 PM, Juarez Filho<EMAIL_ADDRESS>wrote:

@negdim https://github.com/negdim sorry for this huge delay. Finally
taking a look at this project again. Will ping you 🔜
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/caravanaweb/secret-santa-app/issues/1#issuecomment-338487625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYP4sbRtlNWuHPi6mlZbZNaispimu08Kks5su2RwgaJpZM4N1CMR
.

@negdim I just fixed a bunch of things. Please clone the project again, follow the instructions to get the project up and running and then... ionic cordova run android
Happy coding!


Suggestion to use main instead of master

Brief Description
All other Unity repos use the main branch name as opposed to master. It would be more consistent if we did the same for this repo.
Also please see: https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main
Expected Behavior
Suggestion to use main instead of master
Current Behavior
master branch is the default branch

FYI @mcduffie - this will help with consistency among other Unity repos as well. Thanks!


Refactor code to catch up technical debt

see https://github.com/FAIRsharing/JSONschema-documenter/commit/74271af31b4a8d1112d11704c33354e2ffcc2dfa

see https://github.com/FAIRsharing/JSONschema-documenter/commit/33993ca8a705f4f8a5ce96389f9160702d58acb6


Fixes xml-rs dependency to version 0.1.25

The new version has different API and breaks this lib.

Merged, I'll bump the version on cargo soon, I just need to write some release notes.

Done.


U can setup base middleware system smth like this:

U can setup base middleware system smth like this:
const middlewares = [
   (res, req, next) => { ... },
   (res, req, next) => { ... }
];

const runMiddlewares = (res, req) => {
    let index = 0;

    const next = async () => {
        const nextMiddleware = middlewares[index++];
        const hasRespondEnded = res.finished; // this is CUSTOM property, see my comment below
        const shouldRunNextMiddleware = !hasRespondEnded && nextMiddleware;

        if (shouldRunNextMiddleware) {
            nextMiddleware(res, req, next);
        }
    };

    next();
};

App = new App().any('/*', runMiddlewares)

Unfortunately, today's HttpResponse API doesnt provide easy way to check if response has finished.
For now you propably might want to override the res.end and res.tryEnd methods:
const enhanceRes = (res) => {
     const originalEnd = res.end.bind(res);
     const originalTryEnd = res.tryEnd.bind(res);

     res.finished = false;

     res.end = (...args) => {
         originalEnd(...args);
         res.finished = true;
         return res;
     }

     res.tryEnd = (...args) => {
          const [ok, done] = originalTryEnd(...args);
          res.finished = done;
          return [ok, done]
     }
}

Originally posted by @kolodziejczak-sz in https://github.com/uNetworking/uWebSockets.js/discussions/483#discussioncomment-533775

hello @kolodziejczak-sz
Please advise on the use about  const enhanceRes=(res)=>{...}.
For example, I have a middleware array:
const middleware=[
(res, req, next)=>{...},
(res, req, next)=>{...}, (this position res.end (...), not executed later)
(res, req, next)=>{...},
];
I want the second middleware to send messages to the browser, while the third middleware does not execute. How to use enhancRes (res)


Error raised when predicting or dumping count:poisson model

terminate called after throwing an instance of 'dmlc::ParamError'
what():  Required parameter max_delta_step of float is not presented
Aborted

An easy fix is to add a config item after the line 265 in src/learner.cc, e.g.
cfg_["max_delta_step"] = common::ToString(0.7);
Thanks.

https://github.com/dmlc/xgboost/blob/49bbd72d08b3913d80e52b44f2ae00ef33543377/src/learner.cc#L168 should have taken care of that.
Could you please show how to reproduce your error?

Yes. But the Configure() is not called in  CLIDump2Text() and CLIPredict(). I guess the fix should be add a line after https://github.com/dmlc/xgboost/blob/49bbd72d08b3913d80e52b44f2ae00ef33543377/src/cli_main.cc#L271 and https://github.com/dmlc/xgboost/blob/49bbd72d08b3913d80e52b44f2ae00ef33543377/src/cli_main.cc#L297:
learner->Configure(param.cfg);
Hope this will help.

Just noticed that the problem with the prediction has been fixed in commit 1dde863. I send another pull request to fix the problem with the model dump:
https://github.com/dmlc/xgboost/pull/1253


Can't install static HDF cluster

I cloned the repo and changed the "ansible-hortonworks/playbooks/group_vars/all"  and the "ansible-hortonworks/inventory/static" files (both files attached).
My ansible version is: 2.7.0
I got the following error when running install_cluster.sh:
TASK [common : Attempt to fetch the http secret key (if exists)] *************************************************************************************
fatal: [HDF-WRK01-SYS.mac.org.il]: FAILED! => {"msg": "The conditional check 'security != \"none\" and security_options.http_authentication|default(false) and install_hdp is defined and install_hdp' failed. The error was: error while evaluating conditional (security != \"none\" and security_options.http_authentication|default(false) and install_hdp is defined and install_hdp): 'security' is undefined\n\nThe error appears to have been in '/home/dba/playbooks/ansible-hortonworks/playbooks/roles/common/tasks/main.yml': line 116, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n    - name: Attempt to fetch the http secret key (if exists)\n      ^ here\n"}

all.txt
static.txt

I have commented the whole block in file "ansible-hortonworks/playbooks/roles/common/tasks/main.yml" as I am installing HDF and not HDP:
#- block:
#    - name: Attempt to fetch the http secret key (if exists)
#      fetch:
#       src: /etc/security/http_secret
#       dest: /tmp/hadoop_http_secret
#       flat: yes
#        fail_on_missing: no
#      delegate_to: "{{ groups['ambari-server']|first }}"
#      run_once: true
#      register: fetch_results

#    - name: Create the http secret key locally (if nothing was previously fetched)
#      local_action: shell dd if=/dev/urandom of=/tmp/hadoop_http_secret bs=1024 count=1
#      run_once: true
#      become: false
#      args:
#        creates: /tmp/hadoop_http_secret
#      when: not fetch_results.changed

#    - name: Copy the local http secret key to all nodes
#      copy:
#        src: /tmp/hadoop_http_secret
#        dest: /etc/security/http_secret
#        force: yes
#        mode: 0444

#    - name: Delete the local http secret key
#      local_action: file path="/tmp/hadoop_http_secret" state="absent"
#      run_once: true
#      become: false
#  when: security != "none" and security_options.http_authentication|default(false) and install_hdp is defined and install_hdp

I have successfully passed the problematick task but fault on another one:
TASK [database : Configure access for the ambari user from HDF-UT01-SYS.mac.org.il (postgres)] *******************************************************
skipping: [HDF-UT01-SYS.mac.org.il] => (item=lo)
changed: [HDF-UT01-SYS.mac.org.il] => (item=ens192)
fatal: [HDF-UT01-SYS.mac.org.il]: FAILED! => {"msg": "The conditional check 'local_loop != 'lo' and 'ipv4' in hostvars[outer_loop]['ansible_'~local_loop]' failed. The error was: error while evaluating conditional (local_loop != 'lo' and 'ipv4' in hostvars[outer_loop]['ansible_'~local_loop]): Unable to look up a name or access an attribute in template string ({% if local_loop != 'lo' and 'ipv4' in hostvars[outer_loop]['ansible_'~local_loop] %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/home/dba/playbooks/ansible-hortonworks/playbooks/roles/database/tasks/postgres_play_db_access.yml': line 4, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Configure access for the {{ db_username }} user from {{ outer_loop }} ({{ database }})\n  ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes.  Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}

What am I doing wrong?

Ok, I have resolved the first issue (I forgot to set "security = none" in ansible-hortonworks/playbooks/group_vars/all file.
Also, I edited the /var/lib/pgsql/9.6/data/pg_hba.conf file (attached) and temporarily commented out the task "Configure access for the {{ db_username }} user ({{ database }})" in playbooks/roles/database/tasks/postgres_play.yml file to continue the installation.
Unfortunately the playbook fault on:
TASK [Fail if the selected components should not be part of an HDP 3 blueprint] **********************************************************************
fatal: [HDF-UT01-SYS.mac.org.il]: FAILED! => {"msg": "The conditional check 'install_hdp and hdp_major_version == '3' and item in blueprint_all_clients | union(blueprint_all_services)' failed. The error was: error while evaluating conditional (install_hdp and hdp_major_version == '3' and item in blueprint_all_clients | union(blueprint_all_services)): 'hdp_version' is undefined\n\nThe error appears to have been in '/home/dba/playbooks/ansible-hortonworks/playbooks/check_dynamic_blueprint.yml': line 52, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Fail if the selected components should not be part of an HDP 3 blueprint\n      ^ here\n"}

pg_hba.conf.txt

Hi, looks like you're commenting many variables :)
Please do not comment any variables in the all file, you shouldn't need to. Any reason why you'd do it?
The last error is: 'hdp_version' is undefined because hdp_version is commented...

So @bronweg you shouldn't need to comment any variable and any Ansible code...
Then, regarding your all file, please make sure you check https://supportmatrix.hortonworks.com/ to make sure the Ambari/HDF compatibility is correct (for example, HDF 3.1.1 should be used with Ambari <IP_ADDRESS>).
And you shouldn't need to set hdf_build_number to a number (can leave to auto) if you're hosts have access to the HWX public repos (as I could see you set repo_base_url to the public repo).

Thank's for the answer.
About the build number, it is important for me to get the same version as my another clusters.
Ok, I started from scratch.
I edited only the needed lines in all file and didn't commented out at all (all file attached).
Unfortunately playbook fault again on:
TASK [database : Configure access for the ambari user from HDF-UT01-SYS.mac.org.il (postgres)] *******************************************************
skipping: [HDF-UT01-SYS.mac.org.il] => (item=lo)
changed: [HDF-UT01-SYS.mac.org.il] => (item=ens192)
fatal: [HDF-UT01-SYS.mac.org.il]: FAILED! => {"msg": "The conditional check 'local_loop != 'lo' and 'ipv4' in hostvars[outer_loop]['ansible_'~local_loop]' failed. The error was: error while evaluating conditional (local_loop != 'lo' and 'ipv4' in hostvars[outer_loop]['ansible_'~local_loop]): Unable to look up a name or access an attribute in template string ({% if local_loop != 'lo' and 'ipv4' in hostvars[outer_loop]['ansible_'~local_loop] %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/home/dba/playbooks/ansible-hortonworks/playbooks/roles/database/tasks/postgres_play_db_access.yml': line 4, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Configure access for the {{ db_username }} user from {{ outer_loop }} ({{ database }})\n  ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes.  Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}

pg_hba file attached

Hi, your all file looks fine, and it worked for me in a test I just did.
So it sounds like something in your environment affects the code from https://github.com/hortonworks/ansible-hortonworks/blob/master/playbooks/roles/database/tasks/postgres_play_db_access.yml
Not sure what, but looking at the error message, it could be that the name of a network interface in your system has some characters that trips over Ansible.
Make sure you run a recent Ansible version (ansible --version should show 2.6 or 2.7) and to help the debug please add the following line after set_fact in the file above (on line 3):
- debug: var=hostvars[outer_loop]['ansible_interfaces']

And let me know the output.
For example, on a brand new AWS Centos7 you should see:
TASK [database : debug] ***********************************************************************************************
ok: [HDF-UT01-SYS.mac.org.il] => {
    "hostvars[outer_loop]['ansible_interfaces']": [
        "lo",
        "ens3"
    ]
}

I look forward to your reply, if this is an issue that can manifest on some systems, I'd like to fix it.

Hi alexandruanghel,
Sorry for lateness, I have access to the environment only 2-3 times a week.

My ansible version is 2.7.0
The debug output was:

TASK [database : debug] ******************************************************************************************************************************
ok: [HDF-UT01-SYS.mac.org.il] => {
    "hostvars[outer_loop]['ansible_interfaces']": [
        "lo",
        "ens192",
        "virbr0-nic",
        "virbr0"
    ]
}

I think the problem is that I am running on virtual environment.

Hi, thanks for coming back on this!
There shouldn't be any issues with the virtual environment.
I confirm this is a bug, due to the dash - present in the device name: virbr0-nic
The dash is a reserved character in YAML and Ansible manages this by replacing the - with a _, so for Ansible the device name is virbr0_nic.
The fix is pretty much done, I'm just doing some testing now.
Thanks again for reporting this!


ci(#16): add backend CI testing

Closes #16

The newly introduced checks currently fail because the CI image hasn't been created yet (workflow files need to be pushed to the main branch). Can be ignored for this specific PR.


Test on KTH Ubuntu computers

Same as #29 , #30

Still get that weird error, but other than that it all seems to work fine.

Nothing more to do with this. It works, but the computers need a newer version of Python to resolve the error message.


All pages have HTML validation errors and warnings

Bug Report
Expected behavior/code
All pages should pass the HTML validation without any error and possibly no warnings.
Actual Behavior
Take almost any page from a Richie website and give to the validator tool. An example:
https://validator.w3.org/nu/?showsource=yes&showoutline=yes&doc=https%3A%2F%2Frichie.education%2Ffr%2Fcategories%2Fniveau%2F
Steps to Reproduce

Copy a reachable (no localhost only) Richie url;
Paste it to the validator tool https://validator.w3.org/nu/
And scroll down to the report

Environment

Richie version: 1.8.3
Platform: Any

Possible Solution
In fact, there is four distinct messages which occurs on almost every pages.

Error on srcset on <img> tags, i didn't searched yet but it may be caused by the last comma in attribute value;
Error on missing alt attribute on some <img> tags, we need to find template which build this tag to add the missing attribute;
Warning on type attribute on <script> tags. Just need to remove them it's a deprecated attribute since HTML5, it's probably only in the base.html template;
Warning on missing lang attribute on <html> tag. This is a useful thing for SEO and it's easy to implement, we already define this value from OG tags and it have to be done once in base.html template.

Missing lang attribute on <html> should have been resolved with 1.9.0.

I get it for the wrong value in srcset wichh end on a comma. It is because in thumbnail parts in templates we do something like this:
{% thumbnail picture 200x200 crop upscale subject_location=subject_location %} 200w,
{% if width >= 400 %}{% thumbnail picture 400x400 crop upscale subject_location=subject_location %} 400w,{% endif %}
{% if width >= 600 %}{% thumbnail picture 600x600 crop upscale subject_location=subject_location %} 600w{% endif %}

The serie of optional size within a if is not able to know about their state in the list of sizes. A quickfix should be to remove the comma from default size and each optional size would start with a comma and never end with a comma.
Also a templatetag to build the attribute value from given sizes as arguments should do it more cleanly. Something like:
{% thumbnail_sizes picture "200x200" "400x400" "600x600" %}

First argument would be assumed as the defaut size, other arguments as the optional ones. Only working on the parsed width from format "WIDTH[xHEIGHT]". Additional keyword argument could be able to be more flexible on using height instead of width or to enable/disable usage of "subject_location".

Warning about deprecated type attribute on <script> tags is an easy go since there is only two tags involved in the base.html

@sveetch you would need to pass also "width" to your template tags to make the "ifs"... I think it's not worth the hassle and will make templates less flexible and less explicit.

Updated detail to add new finded errors.

A clean hint about sizes attribute value correct syntax:
https://bitsofco.de/the-srcset-and-sizes-attributes/#thesizesattribute
It demonstrate that our sizes attribute values are often malformed since they start with the default size (the one without media condition) while syntax expect it at the end and the first size item to start with a media condition (except if there is only one item).

I've potentially fixed everything but clearing the logs from many messages let me some another new minor messages:

link element in button on homepage;
probably too many h1 element on homepage;

I need some time to better review validator logs to update issue details and related pull request #838

So i checked last reported issues:

There is a <button> element inside <a> (used as glimpse item container) in course glimpse, which is forbidden and result to an error;
On homepage there is multiple <h1> on the same page. It results to a warning for accessibility since some screen readers and other tools use it as a top level document and so expect it to be unique;

I've updated pull request for additional tasks to resolve.

Another one which should be the last now:
Invalid role value on pagination bullet list, navigation is not a valid value for role attribute on a ul element.
For reference : https://github.com/validator/validator/issues/157
Just put a nav element around bullet list and move aria-labelledby on the nav, this will resolve HTML valid and a right thing for accessibility.
Pull request has been updated to do so.

Fixed by https://github.com/openfun/richie/pull/838


VSCode is not honoring the order in which I return symbols

VSCode Version: 1.6.1
OS Version: Windows 10 1607 (14393.321)

Steps to Reproduce:
I can't give you a repro until we update the PowerShell extension and release it.  But I can describe what is going on.  I open a file with lots of functions in it.  I want to see the list of symbols so I press Ctrl+Shift+O.  I see this VSCode/extension exchange in our log:
    READ MESSAGE:

    {
      "jsonrpc": "2.0",
      "id": 4,
      "method": "textDocument/documentSymbol",
      "params": {
        "uri": "file:///c%3A/Users/Keith/GitHub/PowerShell/Plaster/src/InvokePlaster.ps1"
      }
    }

    WRITE MESSAGE:

    {
      "jsonrpc": "2.0",
      "id": "4",
      "result": [
        {
          "name": "AreFilesIdentical { }",
          "kind": 12,
          "location": {
            "uri": "c:/Users/Keith/GitHub/PowerShell/Plaster/src/InvokePlaster.ps1",
            "range": {
              "start": {
                "line": 647,
                "character": 8
              },
              "end": {
                "line": 659,
                "character": 9
              }
            }
          },
          "containerName": "InvokePlaster"
        },
        {
          "name": "ColorForOperation { }",
          "kind": 12,
          "location": {
            "uri": "c:/Users/Keith/GitHub/PowerShell/Plaster/src/InvokePlaster.ps1",
            "range": {
              "start": {
                "line": 1228,
                "character": 0
              },
              "end": {
                "line": 1240,
                "character": 1
              }
            }
          },
          "containerName": "InvokePlaster"
        },
        {
          "name": "ConvertToDestinationRelativePath { }",
          "kind": 12,
          "location": {
            "uri": "c:/Users/Keith/GitHub/PowerShell/Plaster/src/InvokePlaster.ps1",
            "range": {
              "start": {
                "line": 1179,
                "character": 0
              },
              "end": {
                "line": 1191,
                "character": 1
              }
            }
          },
          "containerName": "InvokePlaster"
        },

Note that I have updated the PowerShell extension to return Symbols in sorted order (by name).  Yet this is what VSCode shows in the UI:

It appears to me that VSCode is trying to preserve the symbol order based on the position of the symbol in the file.  VSCode should really honor the order returned by the extension.  For instance, when I'm searching for a particular function, I couldn't give a flying flip about the relative position of the symbol in the file.  As we learned in Algorithms 101, searching a SORTED list is a helluva lot quicker than an unsorted list.  :-)
Please provide a way for symbols to be displayed in the order the extension supplies them to VSCode.

@jrieken assigning to you. I simply pass on that list to the document symbol provider without changing the order. Could be @bpasero as well.

We do sort entries by start position on purpose and because of these reasons:

multiple providers can provide document symbols, the results are merged, and therefore the relative order of one result set becomes obsolete
when you navigate symbols with arrow keys we highlight/reveal them and it would be very weird if that jumps up and down while selecting a linear list of items.

closing as designed unless the above reasons for re-sorting become obsolete.

OK I kind of get the multiple providers issue but you could sort the resulting, merged set by name.  RE:

when you navigate symbols with arrow keys we highlight/reveal them and it would be very weird if that jumps up and down while selecting a linear list of items.

That I think might need to have some usability data to support that conclusion. There's this little IDE called Visual Studio - you know, VSCode's namesake - that's been around for decades and it always sorts symbol lists alphabetically e.g.:  :-)

I assure that the type members are not in that order in the file.

Does VS reveal/highlight the entries when navigating the list? Like this

No, VS doesn't do that.  When you select the item from the dropdown, the dropdown closes and then VS navigates to the function.  While the feature you show above (live navigation while browsing) is cool looking I'm not sure how useful it is.  I don't typically use the Symbols list to scroll through my source code.  Even if you do use it for this reason, if your functions are big enough this list is still going to appear "jumpy".

My understanding of the VS feature you are referring to is that it is breadcrumb UI, showing the current scope and allowing you to jump to a sibling/parent symbol. This is not what 'Go to Symbol in File...'-feature of VS Code is about. There the focus is about quickly navigating to a symbol by typing parts of its name. That behaviour is aligned with other parts of VS Code (command palette, open editor etc) and also with other editors like Sublime Text, Chrome Dev Tools etc.


Return txNote after edit

Coverage increased (+0.009%) to 81.211% when pulling c4b293ed3a37f8b4aa74ad27adb4b0a79514ede0 on isocolsky:ref/edit-note into 7f928b0afe92297e3da6559deb4b0da85f6382ab on bitpay:master.


Searching within groups of list elements

An awesome library, thank you so much Jonny!
I've run into (what I think is a) slightly more complicated situation than what List seems to be designed for, and couldn't find anything in my searches so I thought I'd hit you up. https://github.com/javve/list.js/issues/59 came close but it isn't still what I'm looking for. Please excuse and feel free to summarily point me to the relevant discussion if this has been already dealt with.
Firstly, I'm not 100% clear what items in options is meant for, but I guess it's to specify the exact DOM element in which to tell List to find my stuff, right?
So I have this:
var listOptions = {
  valueNames: [ 'word' ],
  item: "

"
}

You could guess I'm using Bootstrap to style my list. So my list elements are embedded in groups of col divs which are in turn held together in row divs, and there is quite a bit of this whole pattern getting repeated in my DOM, right from the row elements. The div.rows are direct children of ul.list.
In this setup, List seems to be indexing only the first element of each col div.
https://github.com/javve/list.js/blob/master/dist/list.js#L549 seems to suggest my use case may be supported with performance caveats, and indeed I could get the full list of elements under each col if I pass single as true at https://github.com/javve/list.js/blob/master/dist/list.js#L1215, but this doesn't seem to be fully supported yet and I'm naturally running into other issues if I do so. Am I doing something wrong or am I trying to stretch things too much beyond what I can expect List to reasonably support?

I thought the plugin works with divs as well as lists? So does it always have to be wrapped in  even if you aren't using list () elements? My list is purely divs.

Never mind, you can still use a div for the container it just has to have the class of list :)

Hi Alex
Any chance you could share your code - I am struggling to get it working with divs (I am using bootstrap). I have been playing with this example - works fine when I have it as standard lists, but not with Divs:

All help appreciated!
Cheers
Del


Can I write custom typescript/javascript components?

Is it possible to write custom typescript/javascript components?

Thanks for asking! We have an existing issue #95 and are working on a proposal that we'd like to share with the broader community soon to gather feedback.

@wingedrasengan927 i've added a proposal to the linked issue #95 - please take a look and share any feedback, thanks!


Two barrier fixes from testing against pre-alpha sync validation...

Two fixes:

Add fragment stage to texture copy/resolve barriers

Added the fragment stage to the texture copy and resolve final barriers for source and dest.  As the textures could subsequently be used by the fragment stage, this was triggering a validation error from the pre-alpha synchronization validation.
This probably should be revisited to correctly add stages for color attachments and depth/stencil attachments based on "layout" (or potentially "owner"), s.t. the actual next use is covered in all cases (not just fragement shader read).

Add barrier for buffer_get_data source (see usage from mesh get surface)

Add barrier for source buffer_get_data.  Refactor common "owner and stage/access" code to utility function.
But, wait there's more...

Add correct barrier stages for texture storage images.

I am currently changing some of this code because, following advise I will make buffers more general purpose. Will adapt the code in this PR to such case and still keep your credit, so will probably not merge it exactly as-is.

@reduz -- no problem. I figured these were mostly placeholder/demonstration changes.  The alpha release for Sync Val is out in SDK <IP_ADDRESS> -- and is much better having gone through the exercise.

Superceded


apple/t2: update to kernel 6.4.2

Description of changes
Updates the Linux kernel to 6.4.2, patches stay unchanged.
Things done

[ ] Tested the changes in your own NixOS Configuration
[x] Tested the changes end-to-end by using your fork of nixos-hardware and
importing it via <nixos-hardware> or Flake input

bors merge


Change language

Hi,
How can we change language in your calendar ?
Thanks
Achraf

It's all in the readme. :smile:

Thanks.
On Sat, Sep 19, 2015 at 4:58 PM, Matt Lewis<EMAIL_ADDRESS>wrote:

Closed #168
https://github.com/mattlewis92/angular-bootstrap-calendar/issues/168.
—
Reply to this email directly or view it on GitHub
https://github.com/mattlewis92/angular-bootstrap-calendar/issues/168#event-413939153
.

Hello, really great work! I am using angular-4 version and how can I change language here?

@gmerabishvili - This is the wrong place to ask this - you should be asking it here.  What's more, there is a demo showing how to achieve this.

I couldn't find any example of how to change language in demos...


Fix transactions section in settings

Update Outlink red styling

Go to settings
Create a failed transaction
Etherscan link should be red

Transaction List items

If there is no continue button, do not render container div
Add padding and remove set height restrictions

FYI removing the height values also removes the height transitions (auto height doesn't transition)


createCredentials() is deprecated, use tls.createSecureContext instead

One of our packages has a deprecated API call

Waiting for NPM bump:
https://github.com/ciaranj/node-oauth/issues/238

This was an old issue from R1. It's currently serving as a test case for Waffle

Closing  - served it's purpose


Unused arguments and copy-pasted unused method

Stumbled upon this while working on something else: why were these unused arguments defined and documented in the docstring? Also, is the docstring accurate? Should we review this?
https://github.com/ansys/pyfluent/blob/1145fd8c563f9d2d11e52daad4d2f7d250623770/src/ansys/fluent/core/streaming_services/monitor_streaming.py#L124-L143
Also, this method is copy-pasted below in the general StreamingService class and doesn't seem to be used at all here, is this for another package or perhaps deprecated? I removed the block below locally and it doesn't seem to cause any issues that I've noticed.
https://github.com/ansys/pyfluent/blob/1145fd8c563f9d2d11e52daad4d2f7d250623770/src/ansys/fluent/core/streaming_services/streaming.py#L88-L104

@raph-luc From mem, I'm pretty sure that this is due to polymorphism.


edit int in SIRENInitializer to avoid model loading problem

Sorry to bother again, there were some error occur (TypeError: init() got an unexpected keyword argument 'scale') when I loaded the model based on tf_siren. Now tf_siren can work without error on my machine after modified.

I don't get how you are getting model loading problems. I am able to load and save the model without issue in the example

Hi,
I saved trained model in HDF5 format.
This problem happened when I used "tf.keras.models.load.model" to load
trained model.
Also, I needed to define a custom object for "tf.keras.models.load.model".
I'm really sorry if I misunderstood something.
[image: image.png]
Somshubra Majumdar<EMAIL_ADDRESS>於 2020年7月13日 週一 下午11:36寫道：

I don't get how you are getting model loading problems. I am able to load
and save the model without issue in the example
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://mailtrack.io/trace/link/cf729449b8b0a0f563089dc067ea70d9a6383a2c?url=https%3A%2F%2Fgithub.com%2Ftitu1994%2Ftf_SIREN%2Fpull%2F8%23issuecomment-657632085&userId=4238406&signature=b4128b19a35892ab,
or unsubscribe
https://mailtrack.io/trace/link/7d8f7f9db8951b68c1fbb89926c922d8e88837e3?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKNXE3Y43YHNL3DO6KA2MWDR3MSWTANCNFSM4OYNOZZA&userId=4238406&signature=4ef0e6225cf931a8
.

The recommended way to save models in TF is using Saved Models, not HDFS.

Great!
It solved all my problems, thanks a lot.

Glad I could help.


Bugfix/bitcoind zmq sockets

Change Description
Fix local unit tests to work with modern versions of bitcoind.
Steps to Test
check this out locally and ensure the unit tests all pass.
Pull Request Checklist
Testing

[ ] Your PR passes all CI checks.
[x] Tests covering the positive and negative (error paths) are included.
[x] Bug fixes contain tests triggering the bug to prevent regressions.

Code Style and Documentation

[x] The change obeys the Code Documentation and Commenting guidelines, and lines wrap at 80.
[x] Commits follow the Ideal Git Commit Structure.
[x] Any new logging statements use an appropriate subsystem and logging level.
[x] Any new lncli commands have appropriate tags in the comments for the rpc in the proto file.
[x]  There is a change description in the release notes, or [skip ci] in the commit message for small changes.

📝 Please see our  Contribution Guidelines for further guidance.

Withdrawn in favor of #8273


workaround failed to load when upload is not triggered directly by user interaction

the fix is pulled from here:
https://code.google.com/p/in-spirit/source/detail?r=118&path=/trunk/projects/MultipartURLLoader/ru/inspirit/net/MultipartURLLoader.as

@jonasmonnier notice that you should also merge this.

I see that. Thx.

That's merged. What do you think about Adobe documentation ? It says that the action should only work on user action. Or I miss something?
I added a note in the readme.

Actually, with this patch it does not anymore. That's why it's cool.


feat: add protobuf 4.28.0RC1 release

update protobuf with release 4.28.0RC1

:tada: This issue has been resolved in version 1.323.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Feature Proposal] Object-Fit and Object-Position utilities

I haven't found any discussion about adding object-fit and object-position utilities to Tailwind so I'm opening the issue to hear your thoughts on this. I know it's probably something most people won't use in every website but it'd be something useful to have around.
Support for this feature is not excellent and I always provide a fallback via @supports not so I'm not sure if it would make any sense to add this. Maybe if it was disabled by default?

Support for object-fit and object-position isn't that poor ...https://caniuse.com/#search=object-fit
I think it is something that should be added ... And as you said, one can disable it in their config, if they don't need it ...

Won't happen because both properties aren't supported by IE 11 (see #143)

Not sure if thats the best way to go, cause new features won't land on IE anymore, just on Edge.

This one's re-done in #500 🙂


torch.inference_mode switchesaten.linear.default, this is not supported

First, congrats for the repo - looks great
I discovered that switching between torch.no_grad and torch.inference_mode leads to a switch to aten.linear.default. Feel free to use this feedback - its likely expected.
# dependencies
'2.4.0.dev20240316+cu121'
float8_experimental commit 88e9e507c56e59c5f17edf513ecbf621b46fc67d

from transformers import AutoModel, AutoTokenizer, PreTrainedModel
import torch

from float8_experimental.float8_linear_utils import (
    swap_linear_with_float8_linear,
)
from float8_experimental.float8_dynamic_linear import Float8DynamicLinear

"""
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 --upgrade
"""

model_name = "michaelfeil/bge-small-en-v1.5"
model: PreTrainedModel = AutoModel.from_pretrained(model_name)
model_orig: PreTrainedModel = AutoModel.from_pretrained(model_name).cuda()

tokenizer = AutoTokenizer.from_pretrained(model_name)
tokens = tokenizer.batch_encode_plus(["hi","there is no"], return_tensors="pt", padding=True, truncation=True)
tokens = {k: v.cuda() for k,v in tokens.items()}

model = model.to("cpu")
swap_linear_with_float8_linear(model, Float8DynamicLinear)
model = model.to("cuda")

with torch.no_grad():
    out1 = model_orig.forward(**tokens)["last_hidden_state"]
    out2 = model.forward(**tokens)["last_hidden_state"]

print(out1 - out2, out1, out2, (out1-out2).mean())

with torch.inference_mode():
   # breaks with NotImplementedError: attempting to run aten.linear.default, this is not supported
    out2 = model.forward(**tokens)["last_hidden_state"]

Hey, thanks for opening this issue! Let me take a look at this

Hey @drisspg any updates on this? Fixing this would be a enabler for a lot of serving use cases.

Hey, thanks for repinging! I just added a one liner that unblocked the repro, still need to tidy some things up.
I do think that this will allow you to experiment further with fp8 for inference, however I do not think that this is the ideal usage. FP8 will benefit from  what is usual done in other int8 quantization techniques.
Ex. Float8DynamicLinear's weight param will always recompute its scale since the weight is updated during training. However, for inference this is frozen and we should make this static. Dynamic quantization for the activations is still appropriate but one could want to statically calibrate this activation on example data.
TorchAO is one such project that aims to provide a number of quantization techniques.
We do have plans to add a better training to inference solution for FP8! So stay tuned but, in the meantime I will work to land the linked PR

https://github.com/pytorch/ao/issues/564


glibc: fix build vs host tool confusion

Motivation for this change
Cross compilation from aarch64-linux -> armv7l-linux
https://github.com/NixOS/nixpkgs/issues/106759#issuecomment-768204496
Edit: Upstream issue by @Ericson2314: https://sourceware.org/bugzilla/show_bug.cgi?id=23681
I don't know how this (source) is meant to work, or if it works elsewhere, so this is a very blunt solution. More elegant solutions very welcome. The -print-prog-name= flag to gcc (source) is a general search through a list of directories for the provided binary (with a couple of exceptions), for example:
$ strace $CC -print-prog-name=BANANAPHONE 2>&1 | grep BANANAPHONE
execve("/nix/store/ndwv24mf56w15hak6b4bi5nlzsc1qsjg-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-wrapper-10.2.0/bin/armv7l-unknown-linux-gnueabihf-gcc", ["armv7l-unknown-linux-gnueabihf-g"..., "-print-prog-name=BANANAPHONE"], 0xfffff1921018 /* 192 vars */) = 0
execve("/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/bin/armv7l-unknown-linux-gnueabihf-gcc", ["/nix/store/8cxq0frw1lwkfv1whzg87"..., "-fno-strict-overflow", "-Wformat", "-Wformat-security", "-Werror=format-security", "-fPIC", "-march=armv7-a", "-mfpu=vfpv3-d16", "-print-prog-name=BANANAPHONE", "-B/nix/store/wsyl89si5yimrl4ajij"..., "-B/nix/store/ndwv24mf56w15hak6b4"..., "-Wno-error=missing-attributes", "-ggdb", "-Wa,--compress-debug-sections", "-frandom-seed=4fhs4fj3y5", "-isystem", "/nix/store/3wdvnp51dv9v6r56zadj1"...], 0x2d8e0008 /* 209 vars */) = 0
newfstatat(AT_FDCWD, "/nix/store/wsyl89si5yimrl4ajijpnlz9545kk7ny-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0-lib/armv7l-unknown-linux-gnueabihf/lib/armv7l-unknown-linux-gnueabihf/10.2.0/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/wsyl89si5yimrl4ajijpnlz9545kk7ny-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0-lib/armv7l-unknown-linux-gnueabihf/lib/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/ndwv24mf56w15hak6b4bi5nlzsc1qsjg-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-wrapper-10.2.0/bin/armv7l-unknown-linux-gnueabihf/10.2.0/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/ndwv24mf56w15hak6b4bi5nlzsc1qsjg-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-wrapper-10.2.0/bin/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/10.2.0/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/10.2.0/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/lib/gcc/armv7l-unknown-linux-gnueabihf/10.2.0/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/lib/gcc/armv7l-unknown-linux-gnueabihf/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/lib/gcc/armv7l-unknown-linux-gnueabihf/10.2.0/../../../../armv7l-unknown-linux-gnueabihf/bin/armv7l-unknown-linux-gnueabihf/10.2.0/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/8cxq0frw1lwkfv1whzg87xz22yw7mgpk-armv7l-unknown-linux-gnueabihf-stage-static-gcc-debug-10.2.0/lib/gcc/armv7l-unknown-linux-gnueabihf/10.2.0/../../../../armv7l-unknown-linux-gnueabihf/bin/BANANAPHONE", 0xffffc08d57a8, 0) = -1 ENOENT (No such file or directory)
write(1, "BANANAPHONE\n", 12BANANAPHONE

I don't expect any of these directories to contain tools from binutils.
cc @misuzu @TredwellGit @Ericson2314
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS (aarch64-linux -> armv7l-linux)
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[x] Fits CONTRIBUTING.md.

LGTM! The only thing that is failing to build for me is the Linux kernel, but it's most likely unrelated:
error: builder for '/nix/store/66r6q1d0wr10iz68i77qzfgrhfb2y5zk-linux-armv7l-unknown-linux-gnueabihf-5.12.7.drv' failed with exit code 1;
       last 10 log lines:
       >   MODPOST vmlinux.symvers
       >   MODINFO modules.builtin.modinfo
       >   GEN     modules.builtin
       >   LD      .tmp_vmlinux.kallsyms1
       > /nix/store/69v26s02bc8lqpflhc95rqn1gczv6dc2-armv7l-unknown-linux-gnueabihf-binutils-2.35.1/bin/armv7l-unknown-linux-gnueabihf-ld: warning: unrecognized --build-id style ignored
       > /nix/store/69v26s02bc8lqpflhc95rqn1gczv6dc2-armv7l-unknown-linux-gnueabihf-binutils-2.35.1/bin/armv7l-unknown-linux-gnueabihf-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common':
       > ks8851_common.c:(.text+0x179c): undefined reference to `__this_module'
       > /nix/store/69v26s02bc8lqpflhc95rqn1gczv6dc2-armv7l-unknown-linux-gnueabihf-binutils-2.35.1/bin/armv7l-unknown-linux-gnueabihf-ld: ks8851_common.c:(.text+0x17a0): undefined reference to `__this_module'
       > make[1]: *** [/build/linux-5.12.7/Makefile:1199: vmlinux] Error 1
       > make: *** [../Makefile:215: __sub-make] Error 2
       For full logs, run 'nix log /nix/store/66r6q1d0wr10iz68i77qzfgrhfb2y5zk-linux-armv7l-unknown-linux-gnueabihf-5.12.7.drv'.

There’s a fix for the kernel linker failure<EMAIL_ADDRESS>


Fix issues in parsing long value to dictionary.

Change the type when parsing integer value to dictionary of SModel.

You should use padding = 4 because it's conventions of Objective-C


Feature suggestion: Add CC license to photo

Updating the front end to implement the CC license feature request on the main Lychee repo. The UI was updated in two areas:

Sidebar

A new section for licensing was added at the bottom of the photo sidebar.

License Modal

A popup allows the user to select one of seven preset Creative Commons licenses on their photo
If they don't know which license to use, the user can jump to the Creative Commons license picker for help.

I also made a small CSS tweak to make the select element more friendly to the long license titles.

Thank you. :+1:


Scope starts with by rank and/or known parent

I am using the following endpoint for an autocomplete:
https://fathomnet.org/worms/taxa/query/startswith
To allow for scoped results, we were wondering if these two options could be considered:
By rank:

https://fathomnet.org/worms/taxa/query/startswith/{term}?rank={rank}
ie. worms/taxa/query/startswith/str?rank=Family

Within a descendent of a parent:

https://fathomnet.org/worms/taxa/query/startswith/{term}?parent={parent}
ie. worms/taxa/query/startswith/str?parent=Asteroidea

Combination:

ie. worms/taxa/query/startswith/str?parent=Asteroidea&rank=Species

@ermbutler This should be done now. Let me know if you run into any issues.
Test URLs for your examples

worms/taxa/query/startswith/str?rank=Family

https://fathomnet.org/worms/taxa/query/startswith/or?rank=family

worms/taxa/query/startswith/str?parent=Asteroidea

https://fathomnet.org/worms/taxa/query/startswith/or?parent=Asteroidea

worms/taxa/query/startswith/str?parent=Asteroidea&rank=Species

https://fathomnet.org/worms/taxa/query/startswith/or?parent=Asteroidea&rank=species
Other tests

https://fathomnet.org/worms/taxa/query/startswith/shrimp?rank=species
https://fathomnet.org/worms/taxa/query/startswith/blue?parent=Hydrozoa&rank=species
https://fathomnet.org/worms/taxa/query/startswith/Wyv?rank=genus

Notes:

parent really mean ancestor. I'll leave as-is as it's easier for end users to spell 😜
The parent is case sensitive.
rank is case insensitive.

Released in v0.4.5

Thanks @hohonuuli, Appreciate the update! I am going to play with this now.
The current use case should be ok with the case sensitive parent, but I will let you know if that ends up tripping me up.


Copy Button Styling

Have this style error on a newly created repo:

Seems that the copy button is forced to the next line if the 200px margin is removed then it works fine.

Using chrome Version 45.0.2454.46 beta-m (64-bit). Style in question:
.repo-bare #repo-clone-copy {
    margin-right: 200px;
}

https://github.com/gogits/gogs/blob/54b52de6eed4eb2f76620c48189ba3167c290121/public/ng/css/gogs.css#L1502-L1504

Thanks your reporting!

I'm experiencing height related styling issue on Chrome 45.0.2454.99 m (64-bit), as seen in the following screenshot, the height of the copy button does not match the input left to it.

Please test on https://try.gogs.io/unknwon/bare again!

Looks good to me, on the large screen.
But it seems to not be responsive when you look at it on a smaller one.

On your #repo-clone-url remove the width:100% and instead apply it to the container div, with classes ui action small input. It would then look like:

@goldbattle thanks your tip!
But just to be clear: https://github.com/gogits/gogs#browser-support

I was wondering that, either way, thanks for the UI upgrade!
On Wed, Oct 7, 2015 at 9:06 PM, 无闻<EMAIL_ADDRESS>wrote:

@goldbattle https://github.com/goldbattle thanks your tip!
But just to be clear: https://github.com/gogits/gogs#browser-support
—
Reply to this email directly or view it on GitHub
https://github.com/gogits/gogs/issues/1532#issuecomment-146386400.

@goldbattle pushed fix with your suggestion to develop branch, thanks again!

Looks better, thanks!
On Wed, Oct 7, 2015 at 11:12 PM, 无闻<EMAIL_ADDRESS>wrote:

@goldbattle https://github.com/goldbattle pushed fix with your
suggestion to develop branch, thanks again!
—
Reply to this email directly or view it on GitHub
https://github.com/gogits/gogs/issues/1532#issuecomment-146405182.

Cool! So have your issue been solved?

Yep!

Thanks your confirmation!


Unable to turn down logging

We're trying to disable specifically the Emitter using address logs that xray sends.
based on previous discussions (#192) we've tried
// disable info logging for xray
xray.SetLogger(xraylog.NewDefaultLogger(os.Stdout, xraylog.LogLevelWarn))

err := xray.Configure(xray.Config{})

which doesn't work, I think because the logger is reset in each file that imports logging.

@nevins-b
I am not able to reproduce the issue.
Can you provide some code that reproduces the issue?

@nevins-b
Bumping this to the top of your inbox.


Promises and threads

I want to make a runtime run only in one event loop thread, but when processing Promise, I found that I must use other threads to call resolve, which will cause a section of js code to be run by multiple threads. Is there any way to solve this problem?
V8Host.getNodeInstance().createV8Runtime<NodeRuntime>().use { runtime ->
            runtime.converter = JavetProxyConverter()
            runtime.createV8ValueObject().use {
                it.bind(object {
                    @V8Function
                    fun delay(n: Int): V8ValuePromise? {
                        val v8ValuePromise = runtime.createV8ValuePromise()
                        Thread {
                            Thread.sleep(n.toLong())
                            v8ValuePromise.resolve(n)
                            runtime.await()
                        }.start()
                        return v8ValuePromise.promise
                    }

                    @V8Function
                    fun printCurrentThread() {
                        println("CurrentThread: ${Thread.currentThread()}")
                    }
                })
                runtime.globalObject.set("r", it)
            }
            runtime.getExecutor(
                """
                    r.printCurrentThread()
                    await r.delay(1000)
                    r.printCurrentThread()
                """.trimIndent()
            ).setModule(true).execute<V8ValuePromise>()
            runBlocking {
                withTimeout(3000){
                    while (scope.isActive){
                        // await blocks for one second, making it impossible to process other events in the loop
                        if (!runtime.await(V8AwaitMode.RunNoWait)){
                            break
                        }
                    }
                }
            }
            Thread.sleep(2000)
            println("done")
        }

In the above example, two different threads will be printed

May I know what's your goal?

I want to make sure that these codes are all run in the same thread to reduce the possibility of crashes
r.printCurrentThread()
await r.delay(1000)
r.printCurrentThread()

In the example, the code before await r.delay(1000) is executed by the main thread, and the code after it is executed by the newly created thread, This is prone to thread concurrency using v8 runtime

Another unexpected behavior is that runtime.await(V8AwaitMode.RunNoWait) will block until r.delay(1000) completes

V8 is single-threaded. Blocking V8 to wait for an event means that event has to be fired by another thread.

Is there a way to call runtime.await() without blocking the thread, so that the following example can use the original thread to complete the Promise?
V8Host.getNodeInstance().createV8Runtime<NodeRuntime>().use { runtime ->
            val tasks = mutableSetOf<Runnable>()
            runtime.converter = JavetProxyConverter()
            runtime.createV8ValueObject().use {
                it.bind(object {
                    @V8Function
                    fun delay(n: Int): V8ValuePromise? {
                        val v8ValuePromise = runtime.createV8ValuePromise()
                        Thread {
                            Thread.sleep(n.toLong())
                            tasks.add {
                                v8ValuePromise.resolve(n)
                                runtime.await()
                            }
                        }.start()
                        return v8ValuePromise.promise
                    }

                    @V8Function
                    fun printCurrentThread() {
                        println("CurrentThread: ${Thread.currentThread()}")
                    }
                })
                runtime.globalObject.set("r", it)
            }
            runtime.getExecutor(
                """
                    r.printCurrentThread()
                    await r.delay(1000)
                    r.printCurrentThread()
                """.trimIndent()
            ).setModule(true).execute<V8ValuePromise>()
            runBlocking {
                withTimeout(3000) {
                    while (scope.isActive) {
                        // await blocks for one second, making it impossible to process other events in the loop
                        if (!runtime.await(V8AwaitMode.RunNoWait)) {
                            break
                        }
                        tasks.forEach { it.run() }
                        tasks.clear()
                    }
                }
            }
            Thread.sleep(2000)
            println("done")
        }


Appstudio update test-component-pac-hzhn

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-hzhn-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
8 seconds
init

✅ Succeeded
15 seconds
clone-repository

✅ Succeeded
33 seconds
build-container

✅ Succeeded
20 seconds
inspect-image

✅ Succeeded
15 seconds
clair-scan

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
18 seconds
deprecated-base-image-check

✅ Succeeded
14 seconds
sbom-json-check

✅ Succeeded
12 seconds
label-check

✅ Succeeded
8 seconds
show-summary

✅ Succeeded
7 seconds
show-sbom


Fix documentation published to gofreerange.com

I just noticed the docs were broken at https://gofreerange.com/recap/docs/. This fixes them.
This PR also includes a couple of related changes @chrisroos made years ago which haven't made it into the upstream repo.
@tomafro Would you be open to the idea of moving these docs back to GitHub Pages on the canonical repo in your GitHub account? We're in the process of simplifying our hosting requirements so we no longer need a Linode VPS and doing this would help us.

Hey @floehopper, I've merged this PR, though TBH didn't really look at them thoroughly. What would I need to do to get the docs back on Github?

@tomafro Thanks.

What would I need to do to get the docs back on Github?

I'd be happy to do the work to make this possible. I'd imagine the most you'd need to do would be to merge a PR and change a setting or two on this GitHub repo. I just wanted to know whether you're open to the idea in principle before I do the work! However, I think I'm going to go ahead anyway, because we can always host it on the GFR fork of the repo if necessary. Ideally it'd be hosted on this (the canonical) repo.


Update ubuntu2004 image with deb and gh packages

Signed-off-by: Peter Zhu<EMAIL_ADDRESS>Description
Update ubuntu2004 image with deb and gh packages
Issues Resolved
#28
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

https://build.ci.opensearch.org/job/docker-build/2106
https://build.ci.opensearch.org/job/docker-copy/219


Fringes where?

See these tiny-tiny dots at the right side? Is this how am I supposed to know when a line is continuing beyond window size?

Now, if I do M-: (set-window-fringes nil 10 10 fringes-outside-margins) I get something that can sometimes be noticed with a naked eye:

How do I make this change permanent? I tried adding it at the end of my init.el but apparently Doom overrides it. What hook can I use for this, or is there a better solution? Also how do I change the size/color of fringes?

set-window-fringes is not going to work from your config. It only sets the fringes for a single window (in this case the "current" window). What is the "current" window while Emacs is starting up?
Add (fringe-mode NEWSIZE) to ~/.doom.d/config.el instead. The default size is 4, so change it to whatever you like. 8 or 12, perhaps?
As for the color, the fringe face controls its looks. You can change its background with:
;; in ~/.doom.d/config.el
(custom-set-faces!
  '(fringe :background "#000000")
  '(solaire-fringe-face :background "#000000"))

That worked, thanks. But, why are they so tiny by default? Is my system misconfigured (because I didn't change anything in Doom configuration, aside from enabling javascript module)? I don't think you would intentionally make it of size almost invisible after replacing default fringes with those fancy ones.

The size is intentional. The color is not. I'll look into making it a little more visible from https://github.com/hlissner/emacs-doom-themes.
Besides that, all the other indicators are very visible and don't need any more than 4 pixels of space.
In any case, I'll consider this resolved.


NTR: serine-tRNA ligase complex

Suggested term label:
serine-tRNA ligase complex

Definition (free text)
A heterodimeric enzyme complex that catalyzes the ligation of serine to tRNA(Ser), forming L-seryl-tRNA(Ser).

Reference, in format PMID:#######
PMID:30943413

Gene product name and ID to be annotated to this term
SerRS-m (Q9VF85)
Slimp (Q95T19)

Parent term(s)
catalytic complex (part of)
serine-tRNA ligase activity (GO:0004828) [capable of]

Any other information
Characterized/described in Fig 2 of PMID:30943413 and accompanying text (e.g. "Aminoacylation assays with purified SLIMP, DmSerRS2, and both proteins simultaneously showed that only the co-purified DmSerRS2-SLIMP complex could efficiently aminoacylate mitochondrial tRNASer").
Intro of that paper says that SLIMP is "a paralog of DmSerRS2 present in arthropods and echinoderms" so this complex is presumably only found in those groups - so maybe apply a taxon constraint?

+[Term]
+id: GO:0140715
+name: serine-tRNA ligase complex
+namespace: cellular_component
+def: "A heterodimeric enzyme complex that catalyzes the ligation of serine to tRNA(Ser), forming L-seryl-tRNA(Ser)." [PMID:30943413]
+is_a: GO:1902494 ! catalytic complex
+relationship: capable_of GO:0004828 ! serine-tRNA ligase activity
+property_value: term_tracker_item https://github.com/geneontology/go-ontology/issues/22145 xsd:anyURI
+created_by: pg
+creation_date: 2021-09-15T12:38:41Z
+

Hi @sjm41
About the taxon constraints: I understand that this specific complex is only in arthropods and echinoderms, but don't you think there may be other serine-tRNA ligase complexes in other organisms? It seems risky to put this as a taxon constraint.
Thanks, Pascale

Thanks for adding the term so quickly!
Fine to leave off the taxon constraint - just wanted to mention the possibility.  As you say, there may be other serine-tRNA ligase complexes (not involving this SLIMP protein) in other critters.  From that point of view, maybe I shouldn't have specified 'heterodimeric' in the def?

Since for now this is the complex we describe, I think we can leave 'heterodimeric' in the def; we can modify when other examples are described. At least this corresponds to the paper cited.

OK!
Another related question (I'll make a new ticket depending on your answer):
I see we have these 4 specific terms under "regulation of aminoacyl-tRNA ligase activity":

regulation of isoleucine-tRNA ligase activity
regulation of methionine-tRNA ligase activity
regulation of leucine-tRNA ligase activity
regulation of threonine-tRNA ligase activity

For now, I've annotated SLIMP to the parent, but should I request "regulation of serine-tRNA ligase activity"?  That is, do we potentially want to add all the possible child terms here, or merge up to the "regulation of aminoacyl-tRNA ligase activity" parent?


The great simplification

Lately I find it hard to want to work on zf. I really love the core of it (the fuzzy algorithm), but much of the supporting code is a maintenance burden

the TUI code is not portable, and is hard to modify. It was fine for a basic UI, but if I want to add a UI preview (I do), this just gets in the way
the event loop didn't work well on the first go and prevented me from releasing a UI preview
utf8 unicode support caused a crash! https://github.com/natecraddock/zf/issues/58

So... Here is the tentative plan

Remove ziglyph and drop support for unicode.
When I first started work on zf I figured this was a standard and useful feature. I have never needed it. I checked fzf and fzy and neither fully support unicode either. Both are quite popular, so I think this is fine to remove.
Terminals are awful at handling multi-codepoint graphemes anyway

Replace the TUI code with a library
Possibly ncurses. I'm considering using https://github.com/rockorager/libvaxis depending on how stable it seems with initial tests. Or maybe https://github.com/dankamongmen/notcurses.
The benefit here is we would get great TUI support, which makes it easier to add some nice features.

Use libuv for the event loop
My initial research shows that libuv is the only cross-platform event loop that handles the /dev/tty problem.

I'm guilty of trying to build everything myself. I think it would be great to rely on some other projects so I can continue to focus on what makes zf great: filtering filepaths.
Resolving this will close

[x] https://github.com/natecraddock/zf/issues/60
[x] https://github.com/natecraddock/zf/issues/54
[x] https://github.com/natecraddock/zf/issues/53

And open the way to finally implement https://github.com/natecraddock/zf/issues/25

It's been several months since I wrote this. It's time, with some modifications from the original plan.

Use libvaxis. It seems like the perfect library for zf https://github.com/rockorager/libvaxis
Remove ziglyph

There shouldn't be a need for libuv or libxv if I use a thread for input

Completed as of cbcfbd3f343b37e9dbe3c1cb55482f20c3a55211


Can't install nuget package in project targeting .NET 4.5.2

When I try to install MediatR in a project that targets .NET Framework 4.5.2 it fails. I'm using VS 2015 RC.
PM> Install-Package MediatR -Pre

Attempting to gather dependencies information for package 'MediatR.2.0.0-beta-004' with respect to project targeting '.NETFramework, Version=v4.5.2'
Attempting to resolve dependencies for package 'MediatR.2.0.0-beta-004' with DependencyBehavior 'Lowest'
Resolving actions to install package 'MediatR.2.0.0-beta-004'
Resolved actions to install package 'MediatR.2.0.0-beta-004'
Adding package 'MediatR 2.0.0-beta-004' to folder 'C:\Users\Dev\Documents\Visual Studio 2015\Projects\App\packages'
Added package 'MediatR 2.0.0-beta-004' to folder 'C:\Users\Dev\Documents\Visual Studio 2015\Projects\App\packages'
Install failed. Rolling back...
Package 'MediatR 2.0.0-beta-004' does not exist in project 'App.Core'
Removing package 'MediatR 2.0.0-beta-004' from folder 'C:\Users\Dev\Documents\Visual Studio 2015\Projects\App\packages'
Removed package 'MediatR 2.0.0-beta-004' from folder 'C:\Users\Dev\Documents\Visual Studio 2015\Projects\App\packages'
Install-Package : Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache.
At line:1 char:1
+ Install-Package MediatR -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Do other targets work for you?

4.5.1 does also fail with message Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache
I'm using latest NuGet 3.0 RC 2.
BTW. AutoMapper installed without any problems in same project.

Could it be because "System.Runtime" is missing from dnxcore50 dependencies inside project.son?

Having the same issue here.

I'm seeing this too.
Is there anything I can do to fix/test this locally? (I've never worked with NuGet packaging before...) The CSL dependency in earlier versions is a dealbreaker in our project, but if we can get this version to install that would be really sweet :)

Can you make sure you uncheck the V3 NuGet API in the NuGet settings?

It was already unchecked.

I think what I can do is not target 4.5.2 and just target 4.5?

Maybe)...? :P  (As I said, I've never published a nuget package, so not sure how dependencies and such are handled...)
If you can give some build instructions, I could probably build a package against 4.5 and try referencing that in our solution - or try any other fixes we can conceive.

FYI I've installed the package in a .xproj without any issue.

Can you try the beta5 package? I've included explicit TFN releases.

It seems to work fine with VS2015RC and regular .NET 4.5.2 project.

Nice! Can we close this?

It works on my machine.
I've just updated another project to beta5 without issues, so closing this.

Yeah, this works for me too now. Thanks a lot for the speedy fix!


Configure the CMS auth, with Devise?

My application uses Devise to handle all the admin users, is there a way to configure Comfortable Mexican Sofa to use them? instead HttpAuth? We need to access thought the CMS using multiple accounts, so HttpAuth seems to be inefficient.
Right now we're using:
# Default credentials for ComfortableMexicanSofa::HttpAuth
ComfortableMexicanSofa::HttpAuth.username = 'cms-admin'
ComfortableMexicanSofa::HttpAuth.password = 'topsecret'

Just found this:
"Do you have other authentication system in place (like Devise, AuthLogic, etc) and wish to use that? For that, you will need to create a module that does the authentication check and make ComfortableMexicanSofa use it. For example:"
http://rubydoc.info/gems/comfortable_mexican_sofa/1.0.50/frames

Ah, did you change it to config.admin_auth in the wiki? I swear it was that... even github says so. Odd.
But yeap, you got it :)


[UX] The init-screen messages for old/no JS browsers are so terse they come off as blunt, and they don't give enough context.

Describe the bug.
A user with JS disabled, or with an old browser, is shown these messages with no context as to why they would want to turn it on or upgrade...
Rendered:

It would be nice to have somthing along "We were about to show you some interactive fiction, but we can't because... [... JavaScript is disabled... Please turn it on.  / ... your browser is too old or unsupported, please try this in a more recent browser]".

Well, it looks like this is actually a Twine2 issue...
This is totally a drive-by issue report, I'm not familiar with either SugarCube or Twine, and their repo structure is not simple...
Apologies if this should have been reported elsewhere.


Cannot send raw transaction.

I'm trying to use this example with my data.
And the following error appears:
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -504,
    "message": "Block or transaction validation failed."
  }
}

contract_tx.ToJson()  result →:
{
  "type": "ContractTransaction",
  "txid": "0xe49f80c0375968dc51e5ea785a9de0590fc2ede289c4eee79e189050bd8cd327",
  "size": 178,
  "version": 0,
  "attributes": [
    {
      "usage": 144,
      "data": "c87823b9fd4c4dcfa79647b968379517"
    }
  ],
  "vout": [
    {
      "n": 0,
      "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
      "value": "10",
      "address": "ARRDk72dypPm9KqRJLGhJhFtvyAVTK9Dw5"
    },
    {
      "n": 1,
      "asset": "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
      "value": "99998856",
      "address": "AHMzmNbxynX1HUx5J3vDcYfU1bCwSaYVve"
    }
  ],
  "vin": [
    {
      "txid": "0x9e2690583f52ede67410084edf21972802082bcb44694c97b9e5ab5a89efb2cf",
      "vout": 2
    }
  ],
  "sys_fee": "0",
  "net_fee": "0",
  "scripts": []
}

At first sight it looks like you have not signed your transaction.

Could you please check example on your network.
It seems that the code in example is not actual.

@kartava the examples are tested here: https://github.com/CityOfZion/neo-python/blob/master/examples/test_build_raw_transactions.py
On a related note, there is an ongoing project to product a lightweight SDK API which includes a raw transaction builder class which is fully functional here: https://github.com/jseagrave21/neo-python/blob/raw-transaction-class/neo/Core/TX/RawTransaction.py
Please note, if you are using a private net, you will need to be running NeoScan concurrently and use its endpoint for your selection in Network(). For example, this transaction https://neoscan-testnet.io/transaction/dc25e671476550fe837897522bac6b03f7dd83d8a29fe81a2b36e84ad92b9f7b was created with the script:
from neo.Core.TX.RawTransaction import RawTransaction
import json

tx = RawTransaction()
tx.TXType("Contract")
# note that the default network is testnet so tx.Network() is not needed here
tx.Address("AJ7f4nsBXxTBddgHGyKPjF9n11aK73G3oZ")
tx.AddInputs("neo")
tx.AddOutput("neo", "AMtzvuks9yQnYgqB3scjK53oUWj7i7YZxP", 2)
tx.CalcChange()
tx.Sign("OMITTED", "OMITTED")

txid = tx.GetTXID()
print(txid)
res = tx.ToJson()
print("{}".format(json.dumps(res, indent=4)))
res = tx.GetRawTX()
print(res)

Then it was sent via RPC using "sendrawtransaction".

Thank you! This example works for me.


Fix crash when warning dialog regarding removal of photos was opened.

Crash happend when after closing the warning dialog a check box in the
import dialog was checked/unchecked.

Thanks!


Adds support for SCRAM Authentication

This is a backport of the current functionality implemented in the Official Ruby Driver
References:
https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/auth/scram.rb
https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/auth/scram/conversation.rb
This PR helps to legacy Rails 3.x applications to use MongoDB 3.0 >=, The initiative to do this is because some cloud providers are dropping the support for MongoDB 2.x.
You can test this PR adding something like this in the Gemfile:
gem 'moped', :github => 'kommitters/moped', :branch => 'feature/scram-auth'

Remember that this PR is in progress, so I don't suggest to use this on a production environment yet.
#367

@pastuxso: Why have you closed it?
It is an important PR, SCRAM is important...
Linked to:

https://github.com/scram-sasl/info/issues/1


Add user table encryption to migration

Closes #182
This has not been tested in my local dev environment. Suggest testing in staging, or with enough convincing I'll see about modifying Homestead to test it locally.

TBH I don't know enough on this one to approve, but I want it merged ASAP

Both DC environments already have it set up manually, so this likely won't actually do much there.


error with ffn_down

I try to load ffn_weight and run it with cpuinfer_ext.linear. ffn_up and ffn_gate are good. But ffn_down result in nan. What is wrong
code is below

from ktransformers.util.custom_gguf import GGUFLoader
import cpuinfer_ext
import torch
import torch.nn.functional as F
import psutil
import os
import ctypes
gguf_path = "/VM/share/models/Mixtral-8x7b-q4k_m/"
gguf_loader=GGUFLoader(gguf_path)
# print(gguf_loader.tensor_info)
tensor = gguf_loader.get_mmap_tensor("blk.0.ffn_down.0.weight")
print(tensor)
a = torch.tensor(tensor,dtype= torch.uint8)
print(a.nbytes)
print(a.shape)
tensor_fp32 = gguf_loader.load_gguf_tensor("blk.0.ffn_down.0.weight").to(torch.bfloat16)
print(tensor_fp32.shape)
gate_ptr = ctypes.addressof(
            ctypes.cast(tensor.ctypes.data, ctypes.POINTER(ctypes.c_uint64)).contents
        )
output_size =  4096
input_size = 14336
stride = 16
proj_type=12
hidden_type=30
CPUInfer = cpuinfer_ext.CPUInfer(32)
config = cpuinfer_ext.linear.LinearConfig(input_size, output_size, stride, gate_ptr, proj_type, hidden_type)
linear = cpuinfer_ext.linear.Linear(config)

input = torch.randn((2, input_size), dtype=torch.bfloat16).contiguous()
output = torch.zeros((2, output_size), dtype=torch.bfloat16).contiguous()
for i in range(2):
    CPUInfer.submit(linear.forward, input[i,:].data_ptr(), output[i,:].data_ptr())
CPUInfer.sync()
print(output)
out = F.linear(input,tensor_fp32)
print(out)

I ran your script and got the following results, which seem to be fine.
(base) chenht@sapphire2:~/ktransformers-dev$ python test.py
[151   3 227 ...   8 169 135]
33030144
torch.Size([33030144])
torch.Size([4096, 14336])
tensor([[ 0.2041, -3.1406, -0.9922,  ..., -1.1406,  0.3828,  0.4023],
        [-1.7188,  0.3164,  0.5352,  ...,  1.5000,  1.5234,  1.0547]],
       dtype=torch.bfloat16)
tensor([[ 0.2070, -3.1562, -0.9883,  ..., -1.1484,  0.3828,  0.3984],
        [-1.7109,  0.3262,  0.5469,  ...,  1.5000,  1.5156,  1.0547]],
       dtype=torch.bfloat16)

Maybe you should check if your gguf file is intact and if the ffn_down weights are indeed q4_k quantized.
If you confirm that these two aspects are fine, please provide more information (e.g., use lscpu to show your CPU instruction set) to help us fix it.

Many thanks for your quick response. I found the reason. The gguf I download has a different ggml_type down ffn compared to up ffn.


[tool_crash] FileSystemException: Deletion failed, OS Error: The process cannot access the file because it is being used by another process., errno = 32

Command
flutter run --enable-software-rendering

Steps to Reproduce

Add image to assets
rename the image
Hot reload

Logs
FileSystemException: Deletion failed, OS Error: The process cannot access the file because it is being used by another process.
, errno = 32
#0      _Directory._deleteSync (dart:io/directory_impl.dart:201:7)
#1      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:455:47)
#2      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:72:16)
#3      ResidentRunner.preExit (package:flutter_tools/src/resident_runner.dart:1324:25)
#4      HotRunner.preExit (package:flutter_tools/src/run_hot.dart:1157:17)
<asynchronous suspension>
#5      ResidentRunner.detach (package:flutter_tools/src/resident_runner.dart:1013:11)
<asynchronous suspension>
#6      TerminalHandler._commonTerminalInputHandler (package:flutter_tools/src/resident_runner.dart:1495:30)
#7      TerminalHandler.processTerminalInput (package:flutter_tools/src/resident_runner.dart:1643:13)
#8      _rootRunUnary (dart:async/zone.dart:1198:47)
#9      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#10     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
#11     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#12     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#13     _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:385:25)
#14     _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:250:5)
#15     _AsBroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:484:11)
#16     _rootRunUnary (dart:async/zone.dart:1198:47)
#17     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#18     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
#19     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#20     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#21     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:69:11)
#22     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)

[✓] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19042.630], locale en-TZ)
    • Flutter version 1.22.4 at C:\tools\flutter
    • Framework revision 1aafb3a8b9 (9 days ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\James Kaguo\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.51.1)
    • VS Code at C:\Users\James Kaguo\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[✓] Connected device (1 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: dev
Creation framework version: a0860f6e87ba4f9031bee4d6f56c08b970606bee

possible duplicate of
https://github.com/flutter/flutter/issues/69537
https://github.com/flutter/flutter/issues/69109
https://github.com/flutter/flutter/issues/50880

@jameskaguo777
Can you switch to latest master and try again to see if it works or issue persists ?

@jameskaguo777
Can you switch to latest master and try again to see if it works or issue persists ?

Thanks, I did, solved the issue.