Primeng/Primeui webpack Module parse failed Unexpected character

Error on adding primeng/primeui to a angular-cli webpack project

OS?
Linux 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
angular-cli: local (v1.0.0-beta.11-webpack.2, branch: master)
node: 6.4.0
os: linux x64
git log on local angular-cli clone:
latest master commit is:
commit 1f4c6fe3e5ac6812f1c40850a086f54b7b698ae3
Author: Mike Brocchi<EMAIL_ADDRESS>Date:   Mon Aug 29 00:05:32 2016 -0400
feat(feature): add ability to generate feature modules (#1867)

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
added primeng to a project:
npm install --save primeng primeui
added "../node_modules/primeui/themes/omega/theme.css",      "../node_modules/font-awesome/css/font-awesome.min.css",      "../node_modules/primeui/primeui-ng-all.min.css" to apps[0].styles
ng build

The log given by the failure. Normally this include a stack trace and some
more information.

ERROR in ./~/primeui/images/loadingbar.gif
Module parse failed: <PROJECT_PATH>/node_modules/primeui/images/loadingbar.gif Unexpected character '�' (1:6)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ <CLI_CLONE_PATH>/angular-cli/~/css-loader!<CLI_CLONE_PATH>/angular-cli/~/postcss-loader!./~/primeui/primeui-ng-all.min.css 6:16675-16709
 @ ./~/primeui/primeui-ng-all.min.css
 @ multi styles

ERROR in ./~/primeui/images/loading.gif
Module parse failed: <PROJECT_PATH>/node_modules/primeui/images/loading.gif Unexpected character '' (1:7)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ <CLI_CLONE_PATH>/angular-cli/~/css-loader!<CLI_CLONE_PATH>/angular-cli/~/postcss-loader!./~/primeui/primeui-ng-all.min.css 6:32505-32536
 @ ./~/primeui/primeui-ng-all.min.css
 @ multi styles

Just ask if any more information is required!

I filed this same issue against the primeng/primeui github project here

The simplest way is to work around is replacing the gif with another. or just del and touch a empty file

Having a similar, but different problem with PrimeNG.
My angular-cli.json file is:
{
  "project": {
    "version": "1.0.0-beta.11-webpack.8",
    "name": "a2test"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      "assets": "assets",
      "index": "index.html",
      "main": "main.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.json",
      "prefix": "",
      "mobile": false,
      "styles": [
        "../node_modules/primeng/resources/themes/omega/theme.css",
        "../node_modules/primeng/resources/primeng.min.css",
        "styles.css"
      ],
      "scripts": [

      ],
      "environments": {
        "source": "environments/environment.ts",
        "prod": "environments/environment.prod.ts",
        "dev": "environments/environment.dev.ts"
      }
    }
  ],
  "addons": [],
  "packages": [],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "./karma.conf.js"
    }
  },
  "defaults": {
    "styleExt": "css",
    "prefixInterfaces": false,
    "lazyRoutePrefix": "+"
  }
}

running the latest AngularCLI: "1.0.0-beta.11-webpack.8"
When trying to start the app with ng serve, I get:
ERROR in ./~/css-loader!./~/postcss-loader!./~/primeng/resources/primeng.min.css
Module not found: Error: Can't resolve './images/loadingbar.gif' in 'C:\code\a2test\node_modules\primeng\resources'
 @ ./~/css-loader!./~/postcss-loader!./~/primeng/resources/primeng.min.css 6:16049-16083
 @ ./~/primeng/resources/primeng.min.css
 @ multi styles

ERROR in ./~/css-loader!./~/postcss-loader!./~/primeng/resources/primeng.min.css
Module not found: Error: Can't resolve './images/loading.gif' in 'C:\code\a2test\node_modules\primeng\resources'
 @ ./~/css-loader!./~/postcss-loader!./~/primeng/resources/primeng.min.css 6:33708-33739
 @ ./~/primeng/resources/primeng.min.css
 @ multi styles

ERROR in ./~/css-loader!./~/postcss-loader!./~/primeng/resources/primeng.min.css
Module not found: Error: Can't resolve './images/rating.png' in 'C:\code\a2test\node_modules\primeng\resources'
 @ ./~/css-loader!./~/postcss-loader!./~/primeng/resources/primeng.min.css 6:50372-50402
 @ ./~/primeng/resources/primeng.min.css
 @ multi styles

@jtsom That looks like the same issue that was reported above.
The error indicates that it: "Can't resolve './images/loading.gif'" which is what the commits from @FallenRiteMonk fixed since there wasn't a loader in the webpack config that would handle the *.gif files.
https://github.com/FallenRiteMonk/angular-cli/commit/db95dbf98aae326e41919c991abed07b5d8e0a1f

I'm not so sure... those commits seem to say that it's a problem with the actual gif file format.. not that it can't find the files at all, which is what the errors I see seem to indicate.
Looking in the folders specified in the error messages, I do not see the gif image files it's looking for:
C:\code\a2test\node_modules\primeng\resources\images\loading.gif (and rating.png - which also indicates that it isn't a gif specific problem)
Looking around I do see images with the correct name in the 'primeui/resources/images' folder... so it looks like images referenced in the primeng css files are looking for files in the primeui package...

@jtsom You are exactly correct.  I was mistaken. Those files are not available in the primeng/resources/images folder.

I found a workaround if one only needs primeng modules not using the gif images. In my case (using Growl) it works.
Just upgrade primeng to beta 14 and then in your angular-cli.json instead of adding "../node_modules/primeui/primeui-ng-all.min.css" to apps.styles add "../node_modules/primeng/components/growl/growl.css"

The thing is, I'm not including
"../node_modules/primeng/resources/primeng.min.css",
in my angular-cli.json, I'm including:
"../node_modules/primeng/resources/primeng.min.css",
@ctkdev so, is there a fix / workaround on the horizon?

Which primeng modules are you using?

Whichever was installed when I did a npm install primeng - "primeng": "^1.0.0-beta.14" (per the directions)

That's just what you installed, but that doesn't mean you need/use all of them! Which modules do you import in your code and inject into your app module?
In my case:
import { GrowlModule } from 'primeng/components/growl/growl';

@NgModule({
  imports: [
    CommonModule,
    routing,
    GrowlModule
  ],
...

import { InputTextareaModule, ButtonModule } from 'primeng/primeng';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    InputTextareaModule, ButtonModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Mine is similar:
src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import {RouterModule} from '@angular/router';
import {ButtonModule} from 'primeng/components/button/button';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule,
    ButtonModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

angular-cli.json
{
  "project": {
    "version": "1.0.0-beta.11-webpack.8",
    "name": "angular-cli-webpack-8"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      "assets": "assets",
      "index": "index.html",
      "main": "main.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.json",
      "prefix": "app",
      "mobile": false,
      "styles": [
        "../node_modules/font-awesome/css/font-awesome.min.css",
        "../node_modules/primeng/resources/themes/omega/theme.css",
        "../node_modules/primeng/components/button/button.css"
      ],
      "scripts": [],
      "environments": {
        "source": "environments/environment.ts",
        "prod": "environments/environment.prod.ts",
        "dev": "environments/environment.dev.ts"
      }
    }
  ],
  "addons": [],
  "packages": [],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "./karma.conf.js"
    }
  },
  "defaults": {
    "styleExt": "css",
    "prefixInterfaces": false,
    "lazyRoutePrefix": "+"
  }
}

package.json
{
  "name": "angular-cli-webpack-8",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "start": "ng serve",
    "lint": "tslint \"src/**/*.ts\"",
    "test": "ng test",
    "pree2e": "webdriver-manager update",
    "e2e": "protractor"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "2.0.0-rc.5",
    "@angular/compiler": "2.0.0-rc.5",
    "@angular/core": "2.0.0-rc.5",
    "@angular/forms": "0.3.0",
    "@angular/http": "2.0.0-rc.5",
    "@angular/platform-browser": "2.0.0-rc.5",
    "@angular/platform-browser-dynamic": "2.0.0-rc.5",
    "@angular/router": "3.0.0-rc.1",
    "core-js": "^2.4.0",
    "font-awesome": "^4.6.3",
    "primeng": "^1.0.0-beta.14",
    "primeui": "^4.1.15",
    "rxjs": "5.0.0-beta.11",
    "script-loader": "^0.7.0",
    "ts-helpers": "^1.1.1",
    "zone.js": "0.6.12"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "angular-cli": "1.0.0-beta.11-webpack.8",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "0.13.22",
    "karma-chrome-launcher": "0.2.3",
    "karma-jasmine": "0.3.8",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.3",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.0"
  }
}

I added a project that works as a baseline https://github.com/ctkdev/angular-cli-webpack-8
@FallenRiteMonk Thanks for the tip on importing the individual component CSS files in the angular-cli.json e.g.  "../node_modules/primeng/components/button/button.css"

@jtsom have a look at @ctkdev's example, especially at the angular-cli.json.
Yours should look pretty much the same, only that its style array would be like:
"styles": [
        "../node_modules/font-awesome/css/font-awesome.min.css",
        "../node_modules/primeng/resources/themes/omega/theme.css",
        "../node_modules/primeng/components/button/button.css",
        "../node_modules/primeng/components/inputtextarea/inputtextarea.css"
      ]

Yup, just read the comment and made that change. I don't get a build error anymore :)
(I'm now getting a runtime exception: config.js:15 Uncaught TypeError: Cannot read property 'Emulated' of undefined - some nasty issue trying to use the latest of all the things - typescript 2, A2CLi, A2 RC6... Ugh)

@jtsom Be sure to downgrade typescript to "typescript": "2.0.0"
Check the package.json file to make sure that you have downgraded typescript and pinned it at 2.0.0

Yup. I do have that in my package.json, trying to do an npm install<EMAIL_ADDRESS>to see if that helps...
and nope...

@jtsom I was right where you are right now.
I followed the steps listed in this comment to get past the issue:
https://github.com/angular/angular-cli/issues/1901#issuecomment-243679698
I promise it is worth it once you get everything in place and working.   The cli is great - when it works.  ;-)

Yeah, I just did that (I did it with another project and it fixed it), but it's not working for this one...
I can't wait until everything is final and all the dependencies are up to date!

@jtsom As a last resort - I normally do a:
rm -rf node_modules/ dist/ tmp/
Then do a:
npm install

Thanks... been there.. done that ;) No joy.

The crazy thing is, I have another project, that's configured almost identically, that runs just fine. The package.json, app.module.ts, and angular-cli.json files are just about identical. I'm at a loss...


preliminary blast package - draft

Scope of changes
Briefly add notes if applicable and include the story ID
Type of change

[ ] bug fix
[ ] new feature
[ ] documentation
[X] other (describe)

Acceptance criteria
Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible
Author checklist

[ ] I have manually tested the change and/or added automation in the form of unit tests or integration tests
[ ]  I have updated the dependencies list
[ ]  I have recompiled and included new protocol buffers to reflect changes I made
[ ]  I have added new test fixtures as needed to support added tests
[ ]   Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
[ ]  I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

[ ] Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

closed this -  will open new PR once better draft is written and will push into its own branch under trisa/directory.


chore(TransitionablePortal): remove usage of UNSAFE_* methods

Related to #3919.
Removes the usage of UNSAFE_componentWillReceiveProps.

Codecov Report

Merging #3966 into master will decrease coverage by 77.72%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master    #3966       +/-   ##
===========================================
- Coverage   99.84%   22.11%   -77.73%
===========================================
  Files         178      178
  Lines        3150     3152        +2
===========================================
- Hits         3145      697     -2448
- Misses          5     2455     +2450

Impacted Files
Coverage Δ

...ddons/TransitionablePortal/TransitionablePortal.js
100.00% <100.00%> (ø)

src/modules/Progress/Progress.js
0.00% <0.00%> (-100.00%)
:arrow_down:

src/modules/Dimmer/DimmerInner.js
0.00% <0.00%> (-100.00%)
:arrow_down:

src/behaviors/Visibility/Visibility.js
1.08% <0.00%> (-98.92%)
:arrow_down:

src/modules/Sticky/Sticky.js
0.90% <0.00%> (-98.19%)
:arrow_down:

src/modules/Dropdown/Dropdown.js
1.90% <0.00%> (-98.10%)
:arrow_down:

src/modules/Search/Search.js
2.71% <0.00%> (-96.84%)
:arrow_down:

src/modules/Embed/Embed.js
4.00% <0.00%> (-96.00%)
:arrow_down:

src/modules/Transition/TransitionGroup.js
4.65% <0.00%> (-95.35%)
:arrow_down:

src/modules/Checkbox/Checkbox.js
4.76% <0.00%> (-95.24%)
:arrow_down:

... and 162 more

Continue to review full report at Codecov.

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


the 'fasta_dictionary' argument to a predictor's predict method should be renamed

Looks like this argument is a dict from arbitrary keys to possible epitope protein sequences. The term fasta_dictionary seems confusing to me, as I'm not sure what these have to do with fastas, except that they might have come from a fasta. Maybe peptide_dict, possible_epitopes_dict, or just peptides would be clearer

The semantics are actually to search for all sub-peptides of the protein sequences given. Still a bit confused at the name

protein_dict?
Also, I'm thinking about having a default predict just take a list of peptides and have predict_dict take a dictionary of name to protein mappings. Thoughts?

Yeah, I think your idea makes sense. Having a way to just predict for peptides instead of sub-peptides within a longer sequence would be great. The latter should probably have a descriptive name like predict_for_subsequences.


"Could not find a suitable provider for selinux_port" on Fedora 28

Affected Puppet, Ruby, OS and module versions/distributions

Puppet: any
Ruby: any
Distribution: CentOS/RedHat
Module version: 1.5.2

How to reproduce (e.g Puppet code you use)
Run the acceptance tests on Fedora 28
What are you seeing
...
Error: Could not find a suitable provider for selinux_port
...

What behaviour did you expect instead
Output log
  Info: Loading facts
  Info: Loading facts
  Notice: Compiled catalog for fedora-28-x64.home in environment production in 0.26 seconds
  Info: Applying configuration version '1526718845'
  Notice: /Stage[main]/Selinux/Anchor[selinux::end]: Dependency Selinux_port[tcp_55555-55555] has failures: true
  Warning: /Stage[main]/Selinux/Anchor[selinux::end]: Skipping because of failed dependencies
  Notice: /Stage[main]/Main/File[/tmp/test_selinux_fcontext]: Dependency Selinux_port[tcp_55555-55555] has failures: true
  Warning: /Stage[main]/Main/File[/tmp/test_selinux_fcontext]: Skipping because of failed dependencies
  Error: Could not find a suitable provider for selinux_port
  Notice: Applied catalog in 2.05 seconds

Any additional information you'd like to impart
fact selinux_semanage_is_python3 checks for libsemanage-python3 which seems to be named python3-libsemanage now

This is fixed by -- https://github.com/voxpupuli/puppet-selinux/pull/287


Custom basic operators

I'd like to have a modulo operator, but I would generalise and say it would be nice if we could add custom functions which behave like the basic operators, that being that you call them like a op b instead of op(a, b).

Define your custom Mod( function. See Examples, it's trivial. No plans for custom operators for now. Technically its not complicated to add this feature, but i'd like to follow Excel syntax.

Define your custom Mod( function. See Examples, it's trivial. No plans for custom operators for now. Technically its not complicated to add this feature, but i'd like to follow Excel syntax.


Fixes #53 - Refactor zoom classes to supply a term or course

Just hitting request re-review because I am removing dupes now.


don't fail when requirement does not use semver; bump version

Thanks @nickpell - can you add in some tests for this, and undo the version bump - there may be other things that go into the release before we update the version.


Album art lags one track behind with Windows 10 audio source

Description
The album art lags one track behind when using the Windows 10 audio source.  That is:
Track 1 shows title and artist for Track 1, and either the idle image as album art or the album art for Track 1.
Track 2 shows title and artist for Track 2, and album art for Track 1.
Track 3 shows title and artist for Track 3, and album art for Track 2.
Track 4 shows title and artist for Track 4, and album art for Track 3.
And so on.
Caveat: I have only used the Windows 10 audio source so I don't know if this is a more widespread issue.
How To Reproduce

Set Windows 10 as the audio source.
Set up a queue of tracks with different album art per track in your audio player of choice.
Play the queue.  (I have been letting the tracks play through rather than skipping forward.)
Observe album art in AudioBand vs. album art in your player.

Version

Windows 11 Home 21H2 22000.1335 with ExplorerPatcher 22621.608.51.6
Also tested on Windows 10, version uncertain; behavior is identical
AudioBand Version 1.2.1
Have tested with the Roon audio player and Brave browser playing YouTube Music.

Logs/Screenshots Attachment
2022-12-23 08:13:28.5111 | INFO | AudioBand | Starting AudioBand. Version: "v1.2.1", OS: Microsoft Windows NT 10.0.22000.0
2022-12-23 08:13:28.8092 | ERROR | AudioBand.Settings.Persistence.PersistentSettings | System.NullReferenceException: Object reference not set to an instance of an object.
   at AudioBand.Settings.Persistence.PersistentSettings.ReadSettings() in C:\Users\vanro\Documents\Programming\AudioBand\AudioBand\src\AudioBand\Settings\Persistence\PersistentSettings.cs:line 89---START OF EXCEPTION---
System.NullReferenceException: Object reference not set to an instance of an object.
   at AudioBand.Settings.Persistence.PersistentSettings.ReadSettings() in C:\Users\vanro\Documents\Programming\AudioBand\AudioBand\src\AudioBand\Settings\Persistence\PersistentSettings.cs:line 89
---END OF EXCEPTION

2022-12-23 08:13:29.7352 | DEBUG | AudioBand.UI.MouseBindingsViewModel | Starting edit
2022-12-23 08:13:31.3719 | DEBUG | AudioBand.UI.AudioBandToolbarViewModel | Loading audio sources
2022-12-23 08:13:31.3719 | DEBUG | AudioBand.AudioSource.AudioSourceManager | Loading audio sources in "C:\Program Files\AudioBand\AudioSources"
2022-12-23 08:13:31.9984 | DEBUG | AudioSourceWrapper(iTunes) | Initializing wrapper
2022-12-23 08:13:32.1707 | DEBUG | AudioSourceHost.AudioSourceLoader | Probing path "C:\Program Files\AudioBand\AudioSources\iTunes" for audio source
2022-12-23 08:13:32.4743 | DEBUG | AudioSourceHost.AudioSourceLoader | Loading audio source from path "C:\Program Files\AudioBand\AudioSources\iTunes\iTunesAudioSource.dll"
2022-12-23 08:13:32.7357 | DEBUG | AudioSourceWrapper(iTunes) | Wrapper initialization complete
2022-12-23 08:13:33.3320 | DEBUG | AudioSourceWrapper(MusicBee) | Initializing wrapper
2022-12-23 08:13:33.4262 | DEBUG | AudioSourceHost.AudioSourceLoader | Probing path "C:\Program Files\AudioBand\AudioSources\MusicBee" for audio source
2022-12-23 08:13:33.6926 | DEBUG | AudioSourceHost.AudioSourceLoader | Loading audio source from path "C:\Program Files\AudioBand\AudioSources\MusicBee\MusicBeeAudioSource.dll"
2022-12-23 08:13:33.9278 | DEBUG | AudioSourceWrapper(MusicBee) | Wrapper initialization complete
2022-12-23 08:13:34.4612 | DEBUG | AudioSourceWrapper(spotify) | Initializing wrapper
2022-12-23 08:13:34.5397 | DEBUG | AudioSourceHost.AudioSourceLoader | Probing path "C:\Program Files\AudioBand\AudioSources\spotify" for audio source
2022-12-23 08:13:34.8731 | DEBUG | AudioSourceHost.AudioSourceLoader | Loading audio source from path "C:\Program Files\AudioBand\AudioSources\spotify\SpotifyAudioSource.dll"
2022-12-23 08:13:35.4830 | DEBUG | AudioSourceWrapper(spotify) | Wrapper initialization complete
2022-12-23 08:13:36.1817 | DEBUG | AudioSourceWrapper(Windows10) | Initializing wrapper
2022-12-23 08:13:36.3053 | DEBUG | AudioSourceHost.AudioSourceLoader | Probing path "C:\Program Files\AudioBand\AudioSources\Windows10" for audio source
2022-12-23 08:13:36.6431 | DEBUG | AudioSourceHost.AudioSourceLoader | Loading audio source from path "C:\Program Files\AudioBand\AudioSources\Windows10\Win10AudioSource.dll"
2022-12-23 08:13:36.8630 | DEBUG | AudioSourceWrapper(Windows10) | Wrapper initialization complete
2022-12-23 08:13:36.9224 | DEBUG | AudioBand.UI.MouseBindingsViewModel | Ending edit
2022-12-23 08:13:36.9345 | DEBUG | AudioBand.UI.AudioBandToolbarViewModel | Audio sources loaded. Loaded 4 sources
2022-12-23 08:13:37.0599 | DEBUG | AudioBand.UI.AudioBandToolbarViewModel | Loaded 4 profiles. (may exclude idle profile)
2022-12-23 08:59:52.7425 | DEBUG | AudioBand.UI.AudioBandToolbarViewModel | Activating new audio source "Windows 10"
2022-12-23 09:03:39.8014 | DEBUG | AudioBand.UI.GlobalSettingsViewModel | Starting edit
2022-12-23 09:03:54.3384 | DEBUG | AudioBand.UI.GlobalSettingsViewModel | Ending edit
2022-12-23 09:04:01.0928 | DEBUG | AudioBand.UI.AlbumArtViewModel | Starting edit
2022-12-23 09:04:04.8338 | DEBUG | AudioBand.UI.AlbumArtPopupViewModel | Starting edit
2022-12-23 09:04:06.7781 | DEBUG | AudioBand.UI.AlbumArtPopupViewModel | Ending edit
2022-12-23 09:04:06.7781 | DEBUG | AudioBand.UI.AlbumArtViewModel | Ending edit
2022-12-23 09:41:26.9882 | DEBUG | AudioBand.UI.AlbumArtViewModel | Starting edit
2022-12-23 09:41:35.4489 | DEBUG | AudioBand.UI.AlbumArtViewModel | Ending edit
2022-12-23 09:42:27.0111 | DEBUG | AudioBand.UI.AlbumArtViewModel | Starting edit
2022-12-23 09:42:28.9796 | DEBUG | AudioBand.UI.AlbumArtViewModel | Ending edit
2022-12-23 13:07:58.0199 | DEBUG | AudioBand.UI.AlbumArtViewModel | Starting edit
2022-12-23 13:08:00.3983 | DEBUG | AudioBand.UI.AlbumArtViewModel | Ending edit
2022-12-23 13:13:16.8654 | DEBUG | AudioBand.UI.AlbumArtViewModel | Starting edit
2022-12-23 13:22:47.6436 | DEBUG | AudioBand.UI.AlbumArtViewModel | Ending edit

This is a known issue but thanks for making the request.
This is partly due to windows not showing the same album art (or preview image) you can see this when you change the volume in windows. Open 2 youtube tabs and switch between the two. Windows shows the one that is not playing for some reason.


is this support node 16 or node 14?

I'm submitting a...

[ ] Bug report
[ ] Feature request
[X] Question

Current behavior

it works for node 12. but not working on node 16 or node 14.
there is no error. But the migration is not success
Expected behavior

I would like to use node 16 with this package
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?

Environment

db-migrate version: "^0.11.13"
db-migrate-pg version: "^0.1.15"
db-migrate driver with versions: postgres (PostgreSQL) 11.15

Additional information:
- Node version: v16.14.0
- NPM version: 8.3.1
- Platform:  Mac

Others:
Operating system version: macOS Monterey Version 12.3

found out that I need to upgrade the db-migrate-pg version to 1.2.2


Allow passing space delimited  requirements to fastapi algorithm endpoint.

Currently, fastapi algorithm endpoint supports only "\n" separated list.
Should be able to pass space delimited one.
Is there a standard way to detect separator?

done


Remove -run flag from CLI and use Titan CLI directly

Given that -addr flag is provided -run is redundant. We can have a -test or -staging option instead to start a test run with all defaults.

Titan now has /cmd/titan package which we can utilize directly. We can even use the Titan Docker image directly too.


Long latex equations should be scrollable

Hello! I have an issue where a long block equation doesn't fit on device. I can wrap the component in a scrollable widget, but then all text is written on a single line.
Is there any existing ways to solve this?

Try to wrap the inline latex with SingleChildScrollView. If you do that the inline latex will still be inline but if the latex is wider then maxWidth then it inline latex will be scrollable in a new Line. For block latex you can use SingleChildScrollView also.


Cube dissociates

I'm not sure this is a bug, but I'm quite certain :)
If you take a 5-dimensional cube, and let it rotate on q1q4, q2q3, and q3q4, after some rotations, the cube gets very much out of shape.
As I said: not 100% sure, but it really looks stranger to me than what a 5d cube should look like.

I'll take a better look but it sounds normal. It might happen because we're looking at a shadow of a shadow of a shadow, etc... So sometimes the projections add up and that makes it grow more and more. I'm not sure how to mitigate that, seems like a natural thing but at the same time it doesn't look pleasant. Perhaps playing with the projection factors... But needs investigation

I thought it might also be an accumulation of rounding errors. Depending on how you calculate the movement of your 5D cube, some errors might add up.
At least the examples I could find do not break out of the box :)
https://www.reddit.com/r/Python/comments/gx67cu/do_you_know_what_a_5d_cube_is_like_lets_rotate_it/

That's definitely possible. I will investigate it. Thanks for pointing it out!
I'll give an update soon.

Definitely a floating-point error! :)

An update on the progress.
Made a couple big improvements to precision:

Making all calculations in f64s as opposed to f32s
Correcting the hypercube every full rotation

However, the issue still remains. It happens when rotating in at least 2 overlapping planes and we notice a jump when applying the correction... This must be something deeper.

I would also look into divisions. When the denominator is between 1 and 0, this can give wrong results.

The simplest broken case:

dimensions: 3
rotations: q0q1: 3.0, q0q2: 3.0

Update: Found the bug. Bad generation of complex rotation matrices.
Now all rotations work as expected, thanks of the report. Feel free to re-open or continue the discussion here. For now I will close this as it is solved.

Great! Now you just need to update the third image in the README.md.

I'll check it out but it seems to behave the same. This issue only happened on rotations with intersecting planes of rotation.

Behaves the same. I don't think it's a bug.


Login: Add captcha

Proposal to add captcha to to the site.
Feature Name
Add captcha: https://github.com/appleboy/react-recaptcha
Functionality
Notes

Probably makes sense to include this for a failed login? (not default login)
Q: would kids be logging in? (Captcha seems a bit complicated for them)
I think it would be for adult user login

Can I work on this issue?

I would like to contribute!

Thanks for your interest in contributing to Infinite Wish Board!
Please follow our contributing process

@aclaire-thd Is this Issue still open?


dev slack channel is invalid

hi, i'm interested in this project and have a few dev related Qs, the slack link seems to be outdated on the home page, can someone share the latest link?

I'm starting to wander if this  project is dead?
There are a lot of on going PRs and issues with no real code push for a while 🤷♂

@markgis the project is not dead and is being maintained (see comments here as well https://github.com/awslabs/deequ/issues/450#issuecomment-1447287038) . Expect some ramp up in a few weeks though.
@haojiliu  let's use Github issues with question tag for your questions for now. We will look into other discussion channels.
Closing.


Blogs Categories are absent from the Navigation Menu

Blogs Categories are absent from the Navigation Menu

Blog categories are different, they aren't site wide, they are for the personal blog only, and they are shown there.


Support for multiple addresses in inputs/outputs

Hello,
When computing regular inputs/outputs, it seems that all the multisig inputs (more than 1 address in input/output) are ignored. Is it actually what happens ? Would it be possible to support multisig or does it creates problems down the line for computing balances and others ?
https://github.com/graphsense/graphsense-transformation/blob/master/src/main/scala/info/graphsense/Transformation.scala#L117
  def computeRegularInputs(tx: Dataset[Transaction]): Dataset[RegularInput] = {
    tx.withColumn("input", explode(col("inputs")))
      .filter(size(col("input.address")) === 1)   // <- this line here
      .select(
        explode(col("input.address")).as(F.address),
        col("input.value").as(F.value),
        col(F.txId)
      )
      .groupBy(F.txId, F.address)
      .agg(sum(F.value).as(F.value))
      .join(
        tx.select(
          col(F.txId),
          col(F.blockId),
          col(F.timestamp),
          col(F.coinjoin)
        ),
        Seq(F.txId)
      )
      .as[RegularInput]
  }

Thank you for writing and maintaining Graphsense,
Quentin FAIDIDE.

I got a little confused here !
Multisig output are actually a script that corresponds to a single address.
I think that no standard transaction format that can be parsed by a Bitcoin Core node supports multiple addresses in outputs. That makes this feature pretty much pointless.
Lots of APIs and data models in the ecosystem, including Graphsense, are using an array of addresses for input/outputs, but it seems that it's unlikely to be of use anytime soon.
An interesting related discussion can be found here:
https://bitcointalk.org/index.php?topic=5127412.0


az ad sp create-for-rbac --display-name unrecognized argument

Although it's documented, "--display-name" does not appear to be a valid argument for the az ad sp create-for-rbac command and using it produces the following error:
ERROR: unrecognized arguments: --display-name my-sp

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

ID: e99d25ff-03e2-e015-37f4-a29b59ec50d4
Version Independent ID: 1a8e88ed-72c7-fbe7-b0ad-68f23b3946cd
Content: az ad sp
Content Source: latest/docs-ref-autogen/ad/sp.yml
Service: active-directory
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

--display-name for az ad sp create-for-rbac was added in https://github.com/Azure/azure-cli/pull/22432 (2.37.0). Please update to the latest Azure CLI version.


Sending message that exceeds local message size limit

Description
It happens seldomly that Besu tries to send messages that are bigger than the configured size limit and as stated in the code, this should be a bug
Frequency: [What percentage of the time does it occur?]
Rare
Logs (if a bug)
Error message
Sending eth message to peer (PeerId 0x771af70ea1f0f269c70aabd8be2411d1dc20fe9694380cc137d67c3ca033157e118ed04a1fbf8c37aef28a50e81f19531177907d84cb64f7e7eda7af56172815, reputation PeerReputation 118, validated? true, disconnected? false, client: erigon/nd-222-222-222/v2.42.0-stable-beb97784/linux-amd64/go1.20.2, connection [Connection with hashCode<PHONE_NUMBER> with peer 0x771af70ea1f0f269c70aabd8be2411d1dc20fe9694380cc137d67c3ca033157e118ed04a1fbf8c37aef28a50e81f19531177907d84cb64f7e7eda7af56172815 inboundInitiated true initAt<PHONE_NUMBER>150], enode enode://771af70ea1f0f269c70aabd8be2411d1dc20fe9694380cc137d67c3ca033157e118ed04a1fbf8c37aef28a50e81f19531177907d84cb64f7e7eda7af56172815@<IP_ADDRESS>:0) which exceeds local message size limit of 10485760 bytes.  Message code: 6, Message Size: 10485762

Versions (Add all that apply)

Software version: 23.4.0

the message should not have been created in the first place, however according to current code, it is sent anyway, but the receiving peer is free to just ignore it.
So the ideal solution should be to avoid creating these messages, otherwise as last resort drop it instead of sending.

@fab-10, let me give this a pass. Seems like it's the block messages that are occasionally slipping through, added a check before creating the block message itself. Also amended the catch all to drop the messages instead of forwarding it through when size exceeds the limit


added note about elevation

https://github.com/MicrosoftDocs/windows-powershell-docs/issues/2015

Docs Build status updates of commit 832c45f:
:clock10: Pending: waiting for processors (9 builds ahead of you)
:warning: Docs Build is busy, currently there are 9 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Dear @JohanFreelancer9,
kindly do the copy editor review for this PR.
Dear @e0i, for your information
Thank you

Docs Build status updates of commit 832c45f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/addsadministration/Install-ADServiceAccount.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

@dariomws @get-itips @tseward
Peer review needed for this PR. Thanks.

@MaratMussabekov I think we should also add this information to the W2012 R2 article.

Hello, done, please have a look at #2211
Thank you!

Docs Build status updates of commit 108f98b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/addsadministration/Install-ADServiceAccount.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Is this universal? I suspect it isn't when running from a client machine.

Hello @tseward ,
could you please clarify?
Thank you

Hello @tseward ,
could you please clarify?
Thank you

Does this require elevation when running from a client machine?

Hello,
yes, for remote sessions, including sessions from client computers, elevation is required too.
Thank you

Docs Build status updates of commit fe0cfbd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/addsadministration/Install-ADServiceAccount.md
:white_check_mark:Succeeded
View (win10-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Don't assume KubeadmControlPlane is the controlplane provider

What steps did you take and what happened:
When testing in the Sylva community  it was discovered that CAPM3 has a hard-coded assumption that KubeadmControlPlane is the controlplane provider.
It appears that this breaks when using the nodeReuse feature with an alternative controlplane provider
What did you expect to happen:
The control plane reference can be any controlplane.cluster.x-k8s.io so we should remove the hard-coded assumptions - I expect CAPM3 to work with any control plane provider, not only Kubeadm.
Environment:
This was discovered in the Sylva test environment which optionally uses the RKE2 control plane provider, but I think this issue will be triggered when using any provider other than Kubeadm.
/kind bug

/assign @hardys

/triage accepted


Inconsistent Intellisense behavior with names imported by from module import *

VS Code behaves weirdly when I import contents of modules via
from module import *

Initially, I tried it with my custom package, which contains other imports
import scipy
import pandas

etc., but noticed the intellisense doesn't offer those imports (which it should). Then I tried to type a function defined in the module with no luck (I did try ctrl + space, it only offers the words "from", "import"... with abc thumbnail).
Then I tried
from pandas import *

but it doesn't seem to work either. I thought then that it consistently doesn't work, but then I tried
from numpy import *

and when I typed l, it offered me left_shift, logs, logical operators, etc., but not linspace.
I don't know what else to try, but this is really weird, and I really need it to work properly. The script runs ok, it's just intellisense that doesn't work. It however works when I import name directly, eg.
from pandas import read_csv

Can you please go back to the issue template and include the information it requests like extension version, OS, etc. to help us reproduce this?

Can I can't reproduce, so that data of what you're running is now very important:

I use VS Code Version 1.20.1
Commit f88bbf9137d24d36d968ea6b2911786bfe103002
Date 2018-02-13T15:34:36.336Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
Python extension version 2018.1.0
Please let me know what else you need to know.
This is the file I import:
import scipy as sp
from scipy.optimize import curve_fit
from scipy.interpolate import UnivariateSpline
from scipy.interpolate import UnivariateSpline as USpline
from scipy import array as arr

import pandas as pd

import matplotlib as mpl
import matplotlib.pyplot as plt

import uncertainties
from uncertainties import ufloat as uf
import uncertainties.umath as um
from uncertainties import unumpy
from uncertainties.unumpy import nominal_values as noms
from uncertainties.unumpy import std_devs as stds

plt.rcParams["figure.figsize"] = (4*1.5,2.5*1.5)
plt.rcParams["figure.dpi"] = 100
plt.rcParams["text.usetex"] = True
plt.rcParams['text.latex.unicode'] = True
plt.rcParams["font.family"] = "serif"
plt.rcParams["font.serif"] = ["Computer Modern"]
plt.rcParams["text.latex.preamble"] = r"""
\usepackage[decimalsymbol=comma]{siunitx}
"""

def relative(self):
    return self.s / self.n

uncertainties.core.Variable.rel = relative

def eval_mean(values, syst_err=0, scale=1):
    """
    Calculates the mean of the values provided and the standard deviation of said mean.
    Optional systematic error is considered in the result.

    Parameters
    ----------
    values : array like
        Values for evaluation
    syst_err : float, optional
        Optional systematic error, it's square root is added to the square root of the mean's standard deviation.
    scale : float, optional
        Optional factor, by which the values should be multiplied. Used for unit conversion.

    Returns
    -------
    result : ufloat Variable
    """
    vals_arr = arr(values) * scale
    scaled_syst_err = syst_err * scale
    mean = vals_arr.mean()
    std_err = vals_arr.std(ddof=1)
    std_of_mean = std_err / sp.sqrt(len(vals_arr))

    complete_err = sp.sqrt(scaled_syst_err**2 + std_of_mean**2)

    return uf(mean, complete_err)

def f_line(x, a, b):
    """
    Simple line function, intended for ls regression.
    """
    return a * x + b

def f_para(x, a, b, c):
    """
    Quadratic function, intended for ls regression.
    """
    return a * x**2 + b * x + c

def f_cubic(x, a, b, c, d):
    """
    Cubic function, intended for ls regression
    """
    return a * x**3 + b * x**2 + c * x + d

def f_exp(x, a, b, c, d):
    """
    Exponential function with translation, intended for ls regression.
    """
    return a * sp.exp(b * (x + c)) + d

def f_exp_simple(x, a, b):
    """
    Exponential function without translation, intended for ls regression.
    """
    return a * sp.exp(b * x)

class FitCurve:
    """
    Class representing function fitted to some data. Objects are callable.
    Arguments are the same as for scipy.optimize.curve_fit.

    Parameters
    ---------
    f : callable
        Function to fit parameters to.
        Has to have format f(x, param1, param2, ...)
    xdata : M-length sequence
        X values of data points.
    ydata : M-length sequence
        Y values of data points.
    p0 : None, scalar or N-length sequence
        Initial guess for the parameters.
    sigma : None or M-length sequence
        Determines the uncertainty of ydata.
    """

    def __init__(self, f, xdata, ydata, *args, **kwargs):
        params, cov = curve_fit(f, xdata, ydata, *args, **kwargs)
        errors = [sp.sqrt(cov[i, i]) for i in range(len(cov))]

        if len(sp.where(cov==sp.inf)[0]) > 0:
            raise ValueError("Fit unsuccessful, provide better initial parameters (p0)")
        self.params = [uf(param, err) for param, err in zip(params, errors)]
        self.xdata = sp.array(xdata)
        self.ydata = sp.array(ydata)
        self.f = lambda x: f(x, *params)

    def __call__(self, x):
        return self.f(x)

    def curve(self, start=None, end=None, res=100, overrun=0):
        """
        Calculates the curve of the fit, used as line of theoretical function.

        Parameters
        ----------
        start : float, optional
            The lowest x value. If none, lowest of original x data is used.
        end : float, optional
            The highest x value. If none, highest of original x data is used.
        resolution : int
            Number of points used in between start and end (inclusive).
        overrun : float, (float, float)
            fraction of x interval to add before start and after end. If tuple, the values are used for start and end separately.
        """
        if start == None:
            start = self.xdata.min()
        if end == None:
            end = self.xdata.max()

        interval_length = end - start

        try:
            start -= overrun[0] * interval_length
            end += overrun[1] * interval_length
        except TypeError:
            start -= overrun * interval_length
            end += overrun * interval_length

        xes = sp.linspace(start, end, res)
        ys = self(xes)

        return xes, ys

class Spline(UnivariateSpline):
    """
    Thin wrapper around the scipy's UnivariateSpline. Original data is saved in xdata, ydata.
    Curve function was added.

    Parameters
    ----------
    x : Sequence like
        x data
    y : Sequence like
        y data
    and other params of UnivariateSpline.
    """

    def __init__(self, x, y, *args, **kwargs):
        UnivariateSpline.__init__(self, x, y, *args, **kwargs)

        self.xdata = sp.array(x)
        self.ydata = sp.array(y)

    def curve(self, start=None, end=None, res=100, overrun=0):
        """
        Calculates the curve of the spline, used as line of theoretical function or a lead for an eye.

        Parameters
        ----------
        start : float, optional
            The lowest x value. If none, lowest of original x data is used.
        end : float, optional
            The highest x value. If none, highest of original x data is used.
        resolution : int
            Number of points used in between start and end (inclusive).
        overrun : float, (float, float)
            fraction of x interval to add before start and after end. If tuple, the values are used for start and end separately.
        """
        if start == None:
            start = self.xdata.min()
        if end == None:
            end = self.xdata.max()

        interval_length = end - start

        try:
            start -= overrun[0] * interval_length
            end += overrun[1] * interval_length
        except TypeError:
            start -= overrun * interval_length
            end += overrun * interval_length

        xes = sp.linspace(start, end, res)
        ys = self(xes)

        return xes, ys

Strangely enough, the example you provided works for me too, but when I modify it:
import pandas as pd

def fce(a):
    return a**2

Then in the main.py file
from blah import *

intellisense shows pd, but not fce... (that's why I said it's inconsistent, not that it doesn't work at all)

Also, it doesn't work for other modules too, when I make main.py like
from pandas import *

and then line bellow I type read, it doesn't show anything.

@Addie2595
Please try installing the Insiders Build of the extension.
I believe this contains the fix to the from xxx import * issue.

That seems to work, thank you!


[XR] Add sensitivity to the movement locomotion feature

See https://forum.babylonjs.com/t/webxr-methods-of-locomotion/45049/3?u=raananw

https://forum.babylonjs.com/t/xr-add-sensitivity-to-the-movement-locomotion-feature/52758


Update tutorial-enable-sspr-writeback.md

Add missing steps for 'Unexpire password'

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

@Justinha
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"

#sign-off


hidden Traceback

I throw raise exception when network instability, but traceback is too long, how to hidden traceback and just show raise exception.

app = typer.Typer(pretty_exceptions_show_locals=False)
app.command()(main)
app()


Increase in android_view_scroll_perf__timeline_summary 99th_percentile_frame_build_time_millis --- now mostly red

First jump at https://github.com/flutter/flutter/pull/60320, where it was still green. Now red; assigning P3 due to small growth.

cc @bparrishMines, who originated the original CL.
I'm not sure if this is engine or framework --- it's in flutter/flutter, so I'm guessing framework. Please reassign as needed.

This can be rebaselined

Rebased as per previous comment.


fix: jx secret populate for local secrets

as we need to use the same key to modify all properties of a Secret in one go for tls secrets
Signed-off-by: James Strachan<EMAIL_ADDRESS>

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/test pr

/test pr


Assignement 2

Assignment 2

[x] Write a program that prints ‘Hello World’ to the screen.

[x] Write a program that asks the user for his name and greets him with his name.

[x] Modify the previous program such that only the users Alice and Bob are greeted with their names.

[x] Write a program that asks the user for a number n and prints the sum of the numbers 1 to n

[x] Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17

[x] Write a program that asks the user for a number n and gives him the possibility to choose between computing the sum and computing the product of 1,…,n.

[x] Write a program that prints a multiplication table for numbers up to 12.

[x] Write a program that prints all prime numbers (within 0 and the maximum integer you can represent).

[x] Write a guessing game where the user has to guess a secret number. After every guess the program tells the user whether his number was too large or too small. At the end the number of tries needed should be printed. I counts only as one try if the user inputs the same number consecutively.

[x] Write a program that prints the next 25 leap years.

[ ] Write a program that computes the sum from 1 to 10^6 of ( (-1)^(k+1) / (2k - 1) )

Ammmm @Azzaare what does ( (-1)^(k+1) / (2k - 1) ) that mean?
i cant do the last one because i cannot figure out what it is or what is it
i know it is a Mathematical Induction but i dont understand what to do with it or how.

Does it help?

If you are not familiar with the sum notations yet, below is a simple example of the sum of the power of 2.


ln.add fails with files that contain "?" (and "&") characters in their names

See discussion on Slack.
I ran into
Traceback (most recent call last):
  File "/home/zeth/PycharmProjects/bionty/scripts/upload_new_ontologies.py", line 64, in <module>
    _run_upload(instance="lukas-bionty-test", check_github=False)
  File "/home/zeth/PycharmProjects/bionty/scripts/upload_new_ontologies.py", line 61, in _run_upload
    _upload_ontology_artifacts(instance=instance, entity_to_latest_ontology=entity_to_latest_ontology)
  File "/home/zeth/PycharmProjects/bionty/scripts/upload_new_ontologies.py", line 52, in _upload_ontology_artifacts
    ss.add(ontology_ln_file)
  File "/home/zeth/miniconda3/envs/bionty/lib/python3.10/site-packages/lamindb/dev/db/_session.py", line 55, in add
    return add(record=record, use_fsspec=use_fsspec, **fields)
  File "/home/zeth/miniconda3/envs/bionty/lib/python3.10/site-packages/lamindb/dev/db/_add.py", line 131, in add
    raise RuntimeError(error_message)
RuntimeError: An error occured. No entries were uploaded or committed to the database. See error message below.

maximum recursion depth exceeded in __instancecheck__

for a file named
human_clo_2022-03-21_CellLine___download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb.
After removing the ?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb it worked flawlessly again. When playing around with stuff I also removed any "&" characters just in case. These might also lead to failures. I didn't verify this yet.

I cannot reproduce this anymore:
arti = ln.Artifact("/tmp/human_clo_2022-03-21_CellLine___download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb")
arti.save()
arti

seems to work just fine


geomesa libraries attached to databricks

Thank you for putting together this repository for us to use geomesa on databricks. After building it, I noticed there are two .jar files being generated in the target folder:
geomesa-fs-spark-runtime_2.11-2.3.0.jar
original-geomesa-fs-spark-runtime_2.11-2.3.0.jar.
What are the differences between the two and are both needed to be attached to databricks?
Thank you!

@chen7572 Were you able to figure out why there are two jars?

@chen7572 There are two jars due to the use of the maven-shade plugin in pom.xml. The former is a fat jar that contains all of the dependencies while the jar with the original prefix would not essentially contain any relocated classes.


Can't find "clone" script

I can't find http://www.vim.org/scripts/script.php?script_id=4896 using the search, using terms "karkat" (the author), "clone", or "4896". Maybe it wasn't scraped?

It looks like "clone" was a casualty of my dedupe migrations. :grimacing:  It existed in an edge case where it had been scraped from vim.org, but did not exists on https://github.com/vim-scripts Therefore it had a github owner and repo name of: "". When we ran the dedupe migration it would have merged all such plugins together.
I'm exploring the possibility of rewriting our migration to not try to merge these rows. I think it would then be possible to roll us back to a database dump that pre-dates the migration, and rerun the "improved" version.
For the curious, here is the pre-migration entry from the plugins table:
{
"category":  "uncategorized" ,
"created_at":<PHONE_NUMBER> ,
"github_author":  "" ,
"github_bundles": 0 ,
"github_homepage":  "" ,
"github_owner":  "" ,
"github_readme":  "" ,
"github_readme_filename":  "" ,
"github_repo_id":  "" ,
"github_repo_name":  "" ,
"github_short_desc":  "" ,
"github_stars": 0 ,
"github_vim_scripts_bundles": 2 ,
"github_vim_scripts_repo_name":  "clone" ,
"github_vim_scripts_stars": 0 ,
"normalized_name":  "clone" ,
"slug":  "clone" ,
"tags": [ ],
"updated_at":<PHONE_NUMBER> ,
"vimorg_author":  "Ingo Karkat" ,
"vimorg_downloads": 363 ,
"vimorg_id":  "4896" ,
"vimorg_install_details":  "INSTALLATION
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
    vim clone*.vmb.gz
    :so %
To uninstall, use the :RmVimball command.

DEPENDENCIES
- Requires Vim 7.0 or higher.
- Requires the ingo-library.vim plugin (vimscript #4433), version 1.019 or
  higher.

CONFIGURATION
For a permanent configuration, put the following commands into your vimrc:

The :SCloneAs command uses the default 'splitbelow' behavior; you can
influence this via:
    let g:clone_splitmode = 'belowright'" ,
"vimorg_long_desc":  "DESCRIPTION
Often, it is efficient to base a new file (e.g. unit test, meeting minutes) on
an existing one, and just apply the changes instead of re-creating the entire
file. In Vim, one can create a duplicate copy of the current buffer via
:write {newfile} or :saveas {newfile}. But the former doesn't
automatically open the cloned file, whereas with the latter, you're losing the
buffer containing the original file. Also, the identical clone is immediately
persisted, which may confuse automated build tools (or yourself, should you
get interrupted and forget to make the actual modifications). Transferring the
buffer contents via :yank is also cumbersome and clobbers a register.

This plugin offers a :CloneAs command that duplicates the current buffer (or
only parts of it) without persisting the clone right away (only on :w), and
keeping the original buffer loaded and unmodified inside Vim (with
:SCloneAs, it'll even be kept displayed in a window).

Oftentimes, duplication in source code is a code smell. Please use this plugin
responsibly ;-)

SEE ALSO
The cloneSimilar.vim plugin (vimscript #4897) adds additional command
variants powered by the EditSimilar.vim (vimscript #2544) plugin.

USAGE
:[range]CloneAs {file}  Duplicate and edit the current buffer / specified
                        lines with a new name, keep the existing one.
:[range]SCloneAs {file} Duplicate and split the current buffer / specified
                        lines with a new name, keep the existing one.

                        The original cursor position / window view will be
                        kept, as well as the 'fileformat', 'fileencoding' and
                        'filetype' settings of the original buffer." ,
"vimorg_name":  "clone" ,
"vimorg_num_raters": 3 ,
"vimorg_rating": 6 ,
"vimorg_short_desc":  "Create a duplicate clone of the current buffer." ,
"vimorg_type":  "utility" ,
"vimorg_url": http://www.vim.org/scripts/script.php?script_id=4896, »
}

This is actually not an edge case at all. All vimorg-only plugins were deleted :(
With #97 fixed, we should now be re-scraping vimorg plugins. Tags and categories for these plugins have probably been lost, but I think this is probably a simpler "fix" than trying to go back to an old DB dump.

With #97 and #100 merged we are now re-crawling vim.org plugins and "clone" is back:
http://vimawesome.com/plugin/clone

Sweet, thanks for looking.


Unable to Propagate traceparent Header Between Two Micronaut Applications Using New Relic Java Agent

have two Micronaut applications, micronaut-0 and micronaut-b, where micronaut-0 is making an HTTP request to an endpoint in micronaut-b. Below are the details of my setup:
Maven Dependencies for micronaut-0 and micronaut-b:
Micronaut HTTP Client Dependency:
<dependency>
  <groupId>io.micronaut</groupId>
  <artifactId>micronaut-http-client</artifactId>
</dependency>

New Relic Agent Dependencies:
<dependency>
  <groupId>com.newrelic.agent.java</groupId>
  <artifactId>newrelic-api</artifactId>
  <version>8.15.0</version>
</dependency>

<dependency>
  <groupId>com.newrelic.agent.java</groupId>
  <artifactId>newrelic-java</artifactId>
  <version>8.15.0</version>
  <scope>provided</scope>
  <type>zip</type>
</dependency>

Maven Plugin to Unpack New Relic Agent:
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>3.1.1</version>
  <executions>
    <execution>
      <id>unpack-newrelic</id>
      <phase>package</phase>
      <goals>
        <goal>unpack-dependencies</goal>
      </goals>
      <configuration>
        <includeGroupIds>com.newrelic.agent.java</includeGroupIds>
        <includeArtifactIds>newrelic-java</includeArtifactIds>
        <overWriteIfNewer>true</overWriteIfNewer>
        <outputDirectory>${project.build.directory}</outputDirectory>
      </configuration>
    </execution>
  </executions>
</plugin>

Problem:
When I make a request from micronaut-0 to micronaut-b, I expect the traceparent header to be included in the request headers (as per W3C Trace Context). However, I don't see the traceparent header being sent or received on micronaut-b.
The same thing I have done using the following library and in that case the trace propagation is working fine.
<dependency>
  <groupId>io.micronaut</groupId>
  <artifactId>micronaut-http-client-jdk</artifactId>
</dependency>

Questions:

How can I ensure that the New Relic agent propagates the traceparent header between micronaut-0 and micronaut-b?
Do I need additional configuration for the Micronaut HTTP client(Netty based) to enable trace context propagation?
Are there specific steps to manually instrument the Micronaut HTTP client(Netty based) for New Relic's distributed tracing?

Hi gsidhwani-nr, It would be great if you could check this issue.

Cannot reproduce.  closing


lookUpProfile function's parameter name "firstName" is the same as the array objects "firstName" properties - CONFUSING

Challenge Profile Lookup has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];

function lookUpProfile(prop1, prop2){
// Only change code below this line
  var i = 0;
  while(i != contacts.length) {
    if(contacts[i].firstName == prop1){
      if(contacts[i][prop2]){
        return contacts[i][prop2];
      }else{
        return "No such property";
      }
    }
    i++;
  }
  return "No such contact";
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

The lookUpProfile function's first parameter name is "firstName" which is the same as the array objects "firstName" properties.
The problem is that a novice learner like myself can pass the test without even realizing that the lookUpProfile function's first parameter "firstName" is not at all the same thing as the array objects "firstName" properties.  It's really easy to assume they are one and the same.
I propose we change the lookUpProfile function's parameter "firstName" to something like "prop1" (for example like I have it posted here in the code above).  Honestly, while I was solving this challenge it was very confusing at first until I realized that "firstName" was used for two different things (function parameter and the array objects properties)  in the code.
Any thoughts or other suggestions.

Hello!
Well, your argumentation is good, but i think that it's good to learn how the language works. It's like scopes.
Another point is about logic, you want find "firstName" then you'll find it in "firstName" propety, this make sense. It's just how i think.

I considered your point of argument before I posted this.  I don't agree that this is a good way to teach a student about scopes since it was never clarified in the instructions.  It just fosters confusion and/or wrong assumptions that "firstName" is the same thing throughout the code. A student can actually pass the challenge without even realizing there's a difference.  So the student is not learning about scopes in that case but left to assume that there is no boundary in the scopes.  That somehow its all the same.  Clarity in stead of trickery/obscurity is a much better way to teach something in my opinion.

@raisedadead
I think changing this could take away confusion for some people, and I don't think changing it will confuse anybody, so I think this change is worth it.
Would name be a good balance between meaningful and different?

Agreed @systimotic

First-timers only
Check out CONTRIBUTING.md to get your local development environment set up.
The seed for this challenge is here. Change the firstName parameter to name.
If you need help, please go to our contributors chatroom.
Happy coding! 🎉

Hi, just sent a pull request with the fix for this


HTML

#HTML
##user story
As a bootcamp student,
I want a Prework Study Guide website,
so that I can review all the information I learned throughout Prework.
##Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow
WHEN I open the console in my browser
THEN I can see the four topics I learned listed along with a suggestion on what I should study first
WHEN I visit the website using the URL
THEN I can access my website from any browser

this PR adds all of the HTML we need for the prework study guide application.


angular-upload not work IE9

Here is my html:
angular.module('MyApp', ['lr.upload']);

UPLOAD

But not work only with IE9 in console i find this error:
Failed to instantiate module lr.upload due to:
[$injector:nomod] Module 'lr.upload' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.2.25/$injector/nomod?p0=lr.upload
http://errors.angularjs.org/1.2.25/$injector/modulerr?p0=lr.upload&p1=[%24injector%3Anomod] Module 'lr.upload' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http%3A%2F%2Ferrors.angularjs.org%2F1.2.25%2F%24injector%2Fnomod%3Fp0%3Dlr.upload
http://errors.angularjs.org/1.2.25/$injector/modulerr?p0=BffApp&p1=[%24injector%3Amodulerr] F
Can you help me ?
Many thanks

Double check that you angular-upload is included in your html.


Only show "published" option in dataverse fangorn toolbar when there is a published version

Purpose
Fixes [#OSF-4451]
In the files toolbar for dataverse, the version menu includes the option to select the "Published" version even if the study does not have a published version. Choosing that option causes the select box to disappear and an error message pops up:

Changes
Only provide "Published" as an option in the dataverse version select box if the connected dataverse study has a published version.

Simple fix, looks good to me @samanehsan  :+1:. CR 1 complete.

CR2 complete. Looks good, and works when tested locally.
Al the Octopus approves this commit. :octopus: