Getting xmysql to work on AWS lambda

I was able to get xmysql to work on AWS lambda. This is just some docs on the process to help others.
Typescript code for index.ts:
import * as bodyParser from 'body-parser';
import * as express from 'express';

const serverless = require('serverless-http');
import * as cors from 'cors';
import { APIGatewayEvent, Context } from 'aws-lambda';
import * as config from './util/env-config';
import { NextFunction, Request, Response } from 'express';
import { AutoBeheerderError } from './util/autobeheerder-error';

const mysql = require('mysql');
const Xapi = require('./node_modules/xmysql/lib/xapi.js');
const morgan = require('morgan');

const app = express();
let onXapiInitialized = new Promise<void>((resolve, reject) => {
  try {

    // /**************** START : setup express ****************/
    app.use(morgan('tiny'));
    app.use(cors());
    app.use(bodyParser.json());
    app.use(bodyParser.urlencoded({
      extended: true
    }));
    // /**************** END : setup express ****************/

    app.use((req: Request, res: Response, next: NextFunction) => {
      // You can add authentication here
      console.log('got request for: ' + req.url, req);
      next();
    });

    let mysqlConfig = {
      host: config.envConfig.mysql.host,
      port: 3306,
      database: config.envConfig.mysql.database,
      user: config.envConfig.mysql.user,
      password: config.envConfig.mysql.password,
      apiPrefix: '/',
      ipAddress: 'localhost',
      portNumber: 3000,
      ignoreTables: [],
      storageFolder: __dirname
    };

    let mysqlPool = mysql.createPool(mysqlConfig);

    let xapi = new Xapi(mysqlConfig, mysqlPool, app);

    xapi.init(async (err: any, results: any) => {
      app.listen(3000);
      resolve();
    });

  } catch (err) {
    reject(err);
  }
});

export function handler(event: APIGatewayEvent, context: Context, callback: Function) {
  onXapiInitialized.then(() => {
    serverless(app)(event, context, callback);
  });
}

AWS setup notes:

The deploy uses serverless: https://serverless.com/framework/docs/getting-started/
The lambda function is accessed through API Gateway and access the RDS (mysql) database
** Make sure you deploy your API Gateway setup otherwise it won't be accessible.
The security setup:
** You need to put your lambda in a VPC
** The lambda role needs access to the VPC
** The RDS server has to be inside the VPC as well

Performance:

Requests to the API Gateway resolve in ~ 90ms

@bertyhell : could you please make a PR request under a folder examples/aws-lambda/* ?

Sure, here you go: https://github.com/o1lab/xmysql/pull/34

It would be great to add to the example documentation on how to configure the lambda with rds using connection pooling as described in this article https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/
How do xmysql manage connection pooling internally? Because two cascaded connection pools are a bad idea :D but the nature of lambda would make preferable to use a connection pool proxy instead of an in-app instance connection pool.

hey @GuillermoBlasco : Please checkout XgeneCloud - we 've taken the learning from here in implementing XgeneCloud - it takes care of pooling.


Update libpcre2-version to 10.43 from 10.42

It doesn't seem to be grabbing the -RC1 suffix from -RC1.
curl  -L -o pcre2-10.43.tar.gz https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.43/pcre2-10.43.tar.gz

This gets with the RC:
bump pipeline 'gitrefs:https://github.com/PhilipHazel/pcre2.git|re:/pcre2-([\d.]+)(-RC[\d])?/$1$2/|sort'
10.43-RC1

... but this will do for us (ignoring RC):
bump pipeline 'gitrefs:https://github.com/PhilipHazel/pcre2.git|re:/pcre2-([\d.]+)$/$1/|semver:*'
10.42

Created https://github.com/ZOSOpenTools/libpcre2port/pull/6


InvalidKerasConfigurationException

When I run the code I get a ClassNotFoundException for InvalidKerasConfigurationException.
Any idea why? Is it currently possible to use pre-trained models such as InceptionV3 or VGG16 in DL4J? That would be incredibly useful.
Thank you

I get a ClassNotFoundException for InvalidKerasConfigurationException.

Looks like you have issue with your build setup  or IDE is not adding the classes to classPath.
How are you running it?
Are you able to run code using mvn as in https://github.com/USCDataScience/dl4j-kerasimport-examples/tree/master/dl4j-import-example#example-usage

Is it currently possible to use pre-trained models such as InceptionV3 or VGG16 in DL4J? That would be incredibly useful.

Yes! Thats exactly what this repository is trying to achieve

looks like this is fixed now...


Enforce iteration order determinism for ppl::PinSet.

We are observing non-determinism in the output of the place_pins step across multiple runs of OpenROAD with fixed initial conditions. The root cause seems to be iteration over a set of odb::dbBTerm*.
With this change, we observe deterministic pin placement. Using dbBTerm.getId() for the comparison was considered but we suggest using getObjNames() to avoid being affected by upstream allocation order.

@mikesinouye Thanks for the contribution! Could you update the PPL unit tests as well? They're failing in our CI, which prevents the PR from merging.

getObjName is wrong, I suppose you meant getName.  However getId is relied on elsewhere so I see no reason to be different here.


Sharded bam writer merge

@deflaux @davidadamsphd
Sorry for the late reply - I'm back now, will address the comments and try to get to merge-able state this week.

@deflaux I addressed a bunch of comments and added an integration test. PTAL.
I will file issues for subsequent refactoring and improvements.

@iliat thanks for those fixes.  Please go ahead and file those issues?

Already did :)
https://github.com/googlegenomics/dataflow-java/issues/141
On Wed, Sep 9, 2015 at 3:08 PM, Nicole Deflaux<EMAIL_ADDRESS>wrote:

@iliat https://github.com/iliat thanks for those fixes. Please go ahead
and file those issues?
—
Reply to this email directly or view it on GitHub
https://github.com/googlegenomics/dataflow-java/pull/140#issuecomment-139059423
.

that's great, thanks!

So @deflaux , ok to merge ?

Its okay by me!  Not sure if @davidadamsphd had any feedback.

Overall looks good. No real feedback.


[KoreanPhonemizerUtil] Fixed crashing when reading ini from non-utf-8 singers

KoreanPhonemizerUtil.csuses singer's encoding to read .ini file, but crashing occurs by inproper key reading  when singer's encoding does not support some characters in .ini file. (e.g. When singer's encoding is Shift-jis, but singer's ko-CV.ini contains Hangeul characters.)
So Forced BaseIniManager's read encoding to utf-8 to handle that issue.
This change has effects to Korean CV, Korean ENUNU Phonemizers.

Wouldn't this still crash sometimes, i.e., when the ini file is indeed shift-jis?

Wouldn't this still crash sometimes, i.e., when the ini file is indeed shift-jis?

I noticed that issue just now, so fixed StreamWriter's encoding(and other StreamReader's encoding) into utf-8. Now it would handle utf-8 files only, both of reading and writing processes.

I don't understand. Are these ini files only written and read by KoreanPhonemizerUtil.cs? Not something a random voicebank already has?

I don't understand. Are these ini files only written and read by KoreanPhonemizerUtil.cs? Not something a random voicebank already has?

Yes, those ini files are only written and read by KoreanPhonemizerUtil.cs (e.g. KO CV Phonemizer's ko-cv.ini), and only used in OpenUtau.
There's no Korean Voicebanks that using specific ini setting file(e.g. presamp.ini  for Japanese CVVC) in classic UTAU, as far as I know.
In case of ko-cv.ini, It's purpose was to cover Korean CV UTAUs' various forms of oto aliases. For readability, It is containing a few Hangeul characters in its Key value, and Hangeul characters cannot be read or written in shift-jis(or other many encodings)...
It caused crashing issue when singer's encoding was not supporting Korean chars(e.g. shift-jis in many cases). (even if singer's ko-cv.ini itself has no encoding issues.)
And I think there's maybe few shift-jis ko-cv.ini, becauseko-cv.ini could only have created by OpenUtau's KO CV Phonemizer.


MPRIS Installation Failing

Here is the output from the terminal http://pastebin.com/91bnHdnL
And here is the output from npm-debug.log http://pastebin.com/ZWuRHiC0

Hmmm, not too sure what's going on here. What were the commands you used to initially install google-music-electron (e.g. with sudo) and install MPRIS?

I installed it initially with "sudo npm install -g google-music-electron" which went fine, then "google-music-electron install-mpris" which failed

Alright, let's make sure this isn't a permissioning issue. Can you clone the repo, install its dependencies, and try the MPRIS install?
# Clone the repository
git clone https://github.com/twolfson/google-music-electron
cd google-music-electron

# Install our dependencies and dev dependencies
npm install

# Install MPRIS
bin/google-music-electron install-mpris

# Run our application
npm start

Nope, that still fails, http://pastebin.com/wzJJSjDr
My knowledge of npm, so I'm not even sure were to start debugging this

Nope, that still fails, http://pastebin.com/wzJJSjDr
My knowledge of npm, so I'm not even sure were to start debugging this
npm_debug.log http://pastebin.com/TWaD0hpb

It looks like the issue is occurring during the compilation of the dbus connection. I'm not sure whether "No such file or directory" corresponds to g++ not existing or the include/node not existing. Can you verify that you have g++ installed (e.g. run which g++)?
make: Entering directory `/home/ravetcofx/Downloads/Untitled Folder/google-music-electron/node_modules/mpris-service/node_modules/dbus/build'
  CXX(target) Release/obj.target/dbus/src/dbus.o
make: Leaving directory `/home/ravetcofx/Downloads/Untitled Folder/google-music-electron/node_modules/mpris-service/node_modules/dbus/build'

g++: error: Folder/google-music-electron/node_modules/electron-rebuild/lib/headers/.node-gyp/0.34.4/include/node: No such file or directory
g++: error: Folder/google-music-electron/node_modules/electron-rebuild/lib/headers/.node-gyp/0.34.4/src: No such file or directory
g++: error: Folder/google-music-electron/node_modules/electron-rebuild/lib/headers/.node-gyp/0.34.4/deps/uv/include: No such file or directory
g++: error: Folder/google-music-electron/node_modules/electron-rebuild/lib/headers/.node-gyp/0.34.4/deps/v8/include: No such file or directory
make: *** [Release/obj.target/dbus/src/dbus.o] Error 1

I have /usr/bin/g++
is there a specific package that deals with the dbus connection in npm?

I think it's solely g++ for node-gyp. Can you verify g++ can be resolved as sudo? sudo which g++

Yup, I'm also getting /usr/bin/g++ in sudo

Ah, maybe you are missing some of the dbus dependenices. Can you verify all of this is configured properly?
https://github.com/Shouqun/node-dbus/tree/f9239298fe14c992df2c16ddc2f53864225dcf3a#dependencies

I had the same ELIFECYCLE error tonight as the first post.  I followed the instructions from this comment to upgrade electron-prebuilt.  Replacing 0.26.1 with 0.36.0, everything works for me again.

Awesome, thanks for the info @rossabaker :+1:

It seems some people have been able to install the mpris service, but I wasn't able to. My gme install was clean, but the mpris stuff failed:
3627 silly install generateActionsToTake
3628 verbose stack TypeError: Cannot read property 'target' of null
3628 verbose stack     at module.exports (/usr/lib/node_modules/npm/lib/install/filter-invalid-actions.js:24:35)
3628 verbose stack     at Array.<anonymous> (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
3628 verbose stack     at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
3628 verbose stack     at /usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
3628 verbose stack     at Object.Installer.computeLinked (/usr/lib/node_modules/npm/lib/install.js:411:41)
3628 verbose stack     at Array.<anonymous> (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
3628 verbose stack     at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
3628 verbose stack     at /usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
3628 verbose stack     at module.exports (/usr/lib/node_modules/npm/lib/install/diff-trees.js:50:3)
3628 verbose stack     at Array.<anonymous> (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
3629 verbose cwd /usr/lib/node_modules/google-music-electron
3630 error Linux 4.2.5-1-ARCH
3631 error argv "/usr/bin/node" "/usr/bin/npm" "install" "--ignore-scripts" "--save" "false"<EMAIL_ADDRESS><EMAIL_ADDRESS>3632 error node v5.3.0
3633 error npm  v3.5.2
3634 error Cannot read property 'target' of null
3635 error If you need help, you may report this error at:
3635 error     <https://github.com/npm/npm/issues>

I have noticed some issues in<EMAIL_ADDRESS>(e.g. https://github.com/npm/npm/issues/10119). Can you downgrade to<EMAIL_ADDRESS>and see if that resolves the issue?
npm install -g npm@latest-2
# or npm install -g<EMAIL_ADDRESS>

With npm2, I get a whole different set of errors.   If I make /usr/lib/node_modules/google-music-electron/node_modules/electron-prebuilt/ world writable, I end up with the next error:
ETXTBSY: text file is busy, open '/usr/lib/node_modules/google-music-electron/node_modules/electron-prebuilt/dist/electron'

Weird, I have never seen ETXTBSY before. Are you running in a VM or is google-music-electron already running? (i.e. we are trying to overwrite the electron executable when installing MPRIS)

Neither of those, and to be honest I didn't think that error would be possible under linux

Ahhh, I think I have it. We are using electron as our CLI parser for the install-mpris subcommand. According the access(2) man page this is what is likely causing the issue:
http://linux.die.net/man/2/access
Although, it's very strange that no other Linux instances had this issue before. For our reference, what OS are you running?
I will take a look at breaking out that script by the end of next weekend.

As a workaround for the meantime, you can get a local copy set up via the following instructions:
# Clone our repo
git clone https://github.com/twolfson/google-music-electron
cd google-music-electron

# Install our dependencies,
#   install `mprisDependencies` (typically via custom script),
#   and run `electron-rebuild`
npm install
npm install --ignore-scripts --save false<EMAIL_ADDRESS><EMAIL_ADDRESS>./node_modules/electron-rebuild/lib/cli.js

# Our local `google-music-electron` should be all set with MPRIS
node bin/google-music-electron

# Or link it globally and use it on the CLI
npm link
google-music-electron

Sorry, I've been a bit busy lately, but I'll go through everything and test later today and report back

Running ./node_modules/electron-rebuild/lib/cli.js first produces a bunch of permission denied errors
since apparently running that thing with sudo drops the privileges. Once you give write access to everyone in the electron-prebuilt directory, it proceeds.
However, using 0.2.5 doesn't build for node 5.3. Using the latest electron-prebuilt works fine

Oh, whoops. Yea, that's an old version of dependencies. I copy/pasted from another issue =/ It should be these 2 (as you discovered):
https://github.com/twolfson/google-music-electron/blob/2.5.1/package.json#L52-L53
# Clone our repo
git clone https://github.com/twolfson/google-music-electron
cd google-music-electron

# Install our dependencies,
#   install `mprisDependencies` (typically via custom script),
#   and run `electron-rebuild`
npm install
npm install --ignore-scripts --save false<EMAIL_ADDRESS><EMAIL_ADDRESS>./node_modules/electron-rebuild/lib/cli.js

# Our local `google-music-electron` should be all set with MPRIS
node bin/google-music-electron

# Or link it globally and use it on the CLI
npm link
google-music-electron

Alright, I have created a patch branch but before landing it, I want to make sure it works. @urandom Can you try out the following code:
# Clone our repo
git clone https://github.com/twolfson/google-music-electron
cd google-music-electron

# Check out the patched branch
git checkout dev/breakout.mpris.command

# Install our dependencies
npm install

# Install MPRIS
node bin/google-music-electron.js install-mpris

# Launch google-music-electron
node bin/google-music-electron.js

Hi, this seems to install fine. The only question is whether it will install properly globally, without any 'permission denied' errors. But if that occurs, I can open another, smaller issue just for that problem.

Hooray! I will release this by the end of the weekend.
With respect to permissioning issues, npm suggests letting /usr/local/lib/node_modules be owned by $USER:
https://docs.npmjs.com/getting-started/fixing-npm-permissions

With respect to permissioning issues, npm suggests letting /usr/local/lib/node_modules be owned by $USER:

This is a very bad suggestion. It might be ok to set the ownership of just node_modules  to your user, even though that in itself sounds very bad, however linking will fail. But setting up bin and share to your user is just an awful suggestion, and it doesn't speak well of this npmjs if that's their official solution...

With respect to permissioning issues, npm suggests letting /usr/local/lib/node_modules be owned by $USER:

This is a very bad suggestion. It might be ok to set the ownership of just node_modules  to your user, even though that in itself sounds very bad, however linking will fail. But setting up bin and share to your user is just an awful suggestion, and it doesn't speak well of this npmjs if that's their official solution...

It's mostly to avoid using sudo all the time. If you are still having problems with sudo, then please open another issue so we can discuss there.

It's mostly to avoid using sudo all the time. If you are still having problems with sudo, then please open another issue so we can discuss there.

I think this issue has been resolved, closing due to inactivity outside of that.


Bytecode VM: Support push_int

Well, this one took forever, why are integers only trivial on the surface level?
I didn't think BER encoding to be a suitable format here: it only works for positive values, so that would add a sign byte, which results in different representations of 0 and -0, even though it's actually the same value.
Instead, it uses Marshal encoding with a twist. The options for the first byte (interpreted as signed) of the encoded value are:

0, if we encode a 0
6..127, if we encode a value in the range 1..122, we can decode that one by subtracting 5 from the encoded value
1..4, if we encode a value in the range 123..((1 << 30) - 1). This means we have to read this amount of extra bytes and use some shifts/ors on the binary value to retrieve the original numer

Negative values use in a similar way, but using negative values. This means the encoded value will never start with 5 or -5. We use those values as markers for positive or negative values out of the regular range. The number will be encoded as BER encoding of the absolute value.

Cool!


doc/website/blog: blog post prometheus hook

Blog post about prometheus hook for Ent

I like this one :rocket:!


Keep the URL of the currently open tab when switching accounts

Current behavior is to always go to home when switching accounts.
After using this extension for a few days, I often felt that I wanted to open the same page of other accounts when using many accounts.
I suggest changing the behavior to retain the URL of the currently open tab when switching accounts.
(Related to another developer's suggestion in #141 to add default region and default page as options for this extension.)
The original implementation had a transition to ${ssoDirUrl}/custom/${appProfileName}/${appProfilePath};, but I am not sure if I should remove this, please advise.
https://github.com/user-attachments/assets/3407c0f8-3275-4f89-a232-5e947da34a26

@j-smz good idea - let me test with IAM roles and I'll see if I can get it added.

I forgot to debug about the switch role because I don't use it.
I tried it and found a bug, so I fixed.
https://github.com/user-attachments/assets/d3dc0cdf-f2bb-4130-b75e-789054f7e1fe

@WTFender
Hello
It has been a little while since your previous reply,　what is the status of your confirmation?

Should be getting released on the app stores soon.
https://github.com/WTFender/aws-sso-extender/pull/170


Create Form for SoftwareProduct

Users should be able to specify software products themselves.
A Google Form would be the easiest way and could then lead to a table that would be processed with https://github.com/hitontology/csv2rdf.
However that form needs predefined values from DBpedia for selecting license, operating system and so on.

Programming Language
Experience
SPARQL support
Conciseness
Execution
Development
Maintenance
Integration
Sum

JavaScript
2
2
2
3
1
2
3
15

Java
3
3
1
1
2
1
2
13

Python
1
1
3
2
3
3
1
14

JavaScript it is. As such, it can be integrated in the homepage and will be transferred there.


Smartcard logon rdp

Added /smartcard-logon:rdp option.
cf. https://github.com/informatimago/FreeRDP/wiki/smartcard-logon (it will be copied to FreeRDP/FreeRDP wiki once the merge is completed).
Basically; sets the autologin flag which along the smartcard redirection allows MS-Windows to use Smartcard Logon.
This patch only works with RDP negotiation.
Several substrings can be given to the /smartcard option to select the Smartcard readers that will be redirected to the remote workstation.  This allows to omit the Smartcard reader that may interfere with the Smartcard Logon process or that we don't want to give access to the remote workstation.

@akallabeth

Please run the formatting script on all changed files, there are multiple issues (and unrelated changes) with that. Maybe also check with a difftool against master.

I did before commit, it reformated some files.  It did again now, and it issued no output.
scripts/autoformat.sh

I don't find anything significant with a diff.

As already mentioned in the last pull, what is the reason for the smartcard filtering? Is this required for authentication or an extra feature? Just want to know what we're supposed to merge here.

This is explained in https://github.com/informatimago/FreeRDP/wiki/smartcard-logon
We have tokens that look like Smartcards, but they don't contain certificate allowing logon on MS-Windows.  If those tokens are redirected along with our smartcard reader, MS-Windows gets confused and cannot perform the Smartcard logon at all.
Another case would be https://github.com/FreeRDP/FreeRDP/issues/4743 where the reader or the smartcard returns a name longer than the 32 characters allowed by the protocol, which is thus unusable thru RDP.  We would want to avoid redirecting this reader to the remote MS-Windows workstation, but still redirect a reader that work. (assuming we have several readers connected, which is the case here).
So how else can I explain it, what is wrong with the explanations in https://github.com/informatimago/FreeRDP/wiki/smartcard-logon ?

Since we finally got rid of strcpy I'm against reintroducing it (I know it can be used safely, but it is a lot easier if it is not used at all)

Ok, I propose to use strcat as an alternative, but it is O(n^2) instead of O(n).

rdp_write_info_packet introduced new flags without conditions, sure this is intended and not something forgotten?

Do you want me to introduce corresponding command line flags to set them?

@informatimago Which version of astyle do you use? I can't reproduce the changes you commit with astyle 3.1 on fedora nor with astyle 2.06 on debian (and most of the files are still not properly formatted or contain changes I can't reproduce at all without manual intervention)

@akallabeth I have astyle 2.03 on GNU/Linux ubuntu 14.04   (and no, we cannot upgrade since we have to use pkcs#11 libraries that are not available on newer versions).  But I could compile and install a newer astyle.  In general, it's a lot of work since I will probably have to port also a bunch of newer versions of its dependencies...

@informatimago Ok, then I'll do the reformatting, looks like your version does not support some of the switches. (Thought with running debain I'm the one with the oldest versions ^^)

@informatimago Ok, nice try, but we'll decide when it is time to do the reformatting ;)
As you've already seen it is easier to get small changes approved fast, doing too much in one pull is error prone and hard to review.
Have taken the smartcard filtering idea from your pull and implemented that with #4840 and strstr instead of a custom comparison function.

Ok, split your pull in #4840 for the filtering and #4842 for the logon flag.
I've stripped all changes that are future work (smartcard pin, ...).
Thanks for the effort!


Polymorphism

Project title
Polymorphism in Solidity
Project Description
A smart contract which tells us about Polymorphism in solidity
Domain

[x] Solidity

Are you contributing under any open-source program ?
SSOC

@Vikash-8090-Yadav I want to add this smart contract in the StudyMaterial/Advance_Solidity Folder

Yes @AnmolSirola Great idea


OCI Layout support

apko should support --oci-layout-path, like ko and Kaniko, to also push OCI image/index contents to a local path. This hooks into other workflows that can (for example) do some scan locally before pushing in a subsequent step. Having a local layout option means there can be a --push (default true) flag, since writing the layout might mean you don't want to push.

Would very much like this! There are certain scenarios where passing around a layout directory rather than a tarball makes a huge performance difference: https://github.com/dagger/dagger/pull/5363
I tried passing /dev/stdout as the tarball path and piping to tar -xf - to avoid hitting the disk twice, but the resulting directory isn't actually a valid OCI layout because all the blobs are at the root level instead of under blobs/. I suppose that means the output tarball isn't actually valid OCI either.
If I find some time I'll try to put a PR together. Seems like it shouldn't be difficult.


cargo doesn't like bindfs mounts

Problem
Things seem to start failing with cryptic error messages when bindfs mounts are involved.
When cargo home is a bindfs FUSE filesystem, cargo fails to update the crates.io index with the following message:
    Updating crates.io index
error: failed to update registry `crates-io`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  target OID for the reference doesn't exist on the repository; class=Reference (4)

On the Helix editor project (tested on commit 0cb0c30), cargo build fails on a few dependencies with an error like
error[E0786]: found invalid metadata files for crate `cfg_if`
  --> (cargo_home)/registry/src/github.com-1ecc6299db9ec823/libloading-0.7.3/src/os/unix/consts.rs:57:5
   |
57 |     extern crate cfg_if;
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = note: failed to mmap rmeta metadata: '(bindfs_filesystem)/helix/target/debug/deps/libcfg_if-c014f1edab31e262.rmeta'

The paths in parentheses were added for clarity.
Steps
For cargo home:

bindfs ~/tmp ~/.cargo
CARGO_HOME=~/tmp cargo search

For error E0786:

git clone https://github.com/helix-editor/helix.git
bindfs helix fuse
cd fuse
git switch -d 0cb0c30
cargo build

Possible Solution(s)
No response
Notes
No response
Version
cargo 1.61.0 (a028ae4 2022-04-29)

I just found out that this was caused by a regression in bindfs:
https://github.com/mpartel/bindfs/issues/117
I hope this issue at least helps some people with searchability.


[Traefik Pilot] Traefik Plugin Analyzer has detected a problem.

The plugin was not imported into Traefik Pilot.
Cause:
failed to run the plugin with Yaegi: failed to create a new plugin instance: test: IP2LOCATION-LITE-DB1.IPV6.BIN: ip2location: open IP2LOCATION-LITE-DB1.IPV6.BIN: no such file or directory

Traefik Plugin Analyzer will restart when you will close this issue.
If you believe there is a problem with the Analyzer or this issue is the result of a false positive, please contact us.

Yaegi is bugged, casting in an interface of an external dependency panics:
var reader ip2location.DBReader = newrcat(payload)
fmt.Println(reader.ReadAt(make([]byte, 10), 1))

--- FAIL: TestPlugin_ServeHTTP (0.02s)
panic: reflect: call of reflect.Value.Call on ptr Value


[DataFactory] blob events trigger

Automation for azure-sdk-for-python

Automation for azure-libraries-for-java

Automation for azure-sdk-for-node

Automation for azure-sdk-for-go

New model type blobtrigger got added. Looks fine.

@marstr could you review the latest changes please, @hvermis has signed off.

@marstr yes please.


false positive consolidation result

The consolidation post validation logic is too simple and may easily get the wrong result when authors with same names.
	// org.grobid.core.utilities.Consolidation#postValidation
    /**
     * The new public CrossRef API is a search API, and thus returns
     * many false positives. It is necessary to validate return results
     * against the (incomplete) source bibliographic item to block
     * inconsistent results.
     */
    private boolean postValidation(BiblioItem source, BiblioItem result) {
        boolean valid = true;

        // check main metadata available in source with fuzzy matching
        /*if (!StringUtils.isBlank(source.getTitle()) && !StringUtils.isBlank(source.getTitle())) {
//System.out.println(source.getTitle() + " / " + result.getTitle() + " = " + ratcliffObershelpDistance(source.getTitle(), result.getTitle(), false));
            if (ratcliffObershelpDistance(source.getTitle(), result.getTitle(), false) < 0.8)
                return false;
        }*/

        if (!StringUtils.isBlank(source.getFirstAuthorSurname()) &&
            !StringUtils.isBlank(result.getFirstAuthorSurname())) {
//System.out.println(source.getFirstAuthorSurname() + " / " + result.getFirstAuthorSurname() + " = " +
//    ratcliffObershelpDistance(source.getFirstAuthorSurname(), result.getFirstAuthorSurname(), false));
            if (ratcliffObershelpDistance(source.getFirstAuthorSurname(),result.getFirstAuthorSurname(), false) < 0.8)
                return false;
        }

        /*if (!StringUtils.isBlank(source.getPublicationDate()) &&
            !StringUtils.isBlank(result.getPublicationDate())) {
            if (!source.getPublicationDate().equals(result.getPublicationDate()))
                valid = false;
        }*/

        return valid;

Without consolidation

With consolidation

Hi @elonzh !
Crossref for consolidation is just provided for convenience, because it does not require an installation and is very easy to set for casual cases. See https://github.com/kermitt2/grobid/issues/616#issuecomment-669845787
I kept it simple because it's very hard to control and work with in general. I don't plan to work further with the CrossRef service, I find it too unstable in general over time.
For serious consolidation, scaling, and more sophisticated approach, you need to use https://github.com/kermitt2/biblio-glutton, which has its own blocking (search, which is possible to control) and post-validation approach. Some improvements of biblio-glutton are planed in the next weeks (auto-update and better matching).


Cast Stops When Dashcast Displays

Casting to a Google Hub Max. Is it possible to have an ssl cert and the external/internal urls set to https in the configuration, and still use this to cast? I did a lot of working getting my certs set up and today I noticed the dashboard doesn't cast anymore. I know I had issues casting to a chromecast from https apps on my phone back in the day, so was wondering if this is the same problem.

Nevermind. I was setting the URL in the yaml files to match the format in the instructions, which was IP. I have my external url set to a domain name and once I change it to the domain name for the casting, it worked fine, Thanks for this addon!


[Feature] Learning Goal Instructor View

Checklist

[ ] I tested all changes and all related features with different users (student, tutor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.
[x] Server: I followed the coding and design guidelines.
[x] Server: I added multiple integration tests (Spring) related to the features (with a high test coverage)
[x] Server: I added @PreAuthorize and check the course groups for all new REST Calls (security)
[x] Server: I implemented the changes with a good performance and prevented too many database calls
[x] Server: I documented the Java code using JavaDoc style.
[x] Client: I followed the coding and design guidelines.
[x] Client: I added multiple integration tests (Jest) related to the features (with a high test coverage)
[x] Client: I added authorities to all new routes and check the course groups for displaying navigation elements (links, buttons)
[x] Client: I documented the TypeScript code using JSDoc style.
[x] Client: I added multiple screenshots/screencasts of my UI changes
[x] Client: I translated all the newly inserted strings into German and English

Motivation and Context

As an instructor it is useful to know how the class is doing on average on a learning goal. This PR implements this feature.
Description

New Query to calculate various statistics for exercises (average score etc)
Used that query to calculate the average course progress for a learning goal
Changed client implementation of learning-goal-management to show the average course progress

Steps for Testing

Set up a learning goal with connected exercise units (where results exist)
Check that learning goal management calculates the course average

Test Coverage

Screenshots

Confirming @airelawaleria's request.

Can confirm the issue stated by @airelawaleria .

What @airelawaleria said

I now about this error the necessary view is seemingly not created in the db on the testserver. Will put it into draft until the reason can be found. Help much appreciated @krusche @jpbernius

Confirming @airelawaleria's request.

Can confirm the issue stated by @airelawaleria .

What @airelawaleria said

I now about this error the necessary view is seemingly not created in the db on the testserver. Will put it into draft until the reason can be found. Help much appreciated @krusche @jpbernius

It should be fixed now :)


support impala shell connect?

hi
is this support impala shell connection type ?

This library can be used to develop an Impala Shell like application. Closing this issue. Please feel free to open a new issue on this topic.


Add more logging

Suggestions:

NOOP commands should log something
There should be a verbose option
Verbose option should log info about linking

In particular, I think that the following
rnpm info Android module react-native-appboy-sdk is already linked
might be a bug (not sure if it's on our end our rnpm's), but I'm finding it a bit involved to track down why it thinks that.
Thanks!

That message just tells you that module you're trying to link has been already linked and wouldn't be linked again :) Is it an issue? Or I misunderstood this one?

Hey @Kureev,
Thanks for the quick reply.  The issue I had was that my package was formatted incorrectly and I had run  rnpm link a couple times such that it was having some strange behavior - e.g. some parts of the linking were already done, but rnpm link would do earlier steps that were undone and then output that message that seemed like it was a NOOP (I was testing on a project not in version control, so a lot of this would have been more easily visible for most folks).
So, part of it was that my environment was a bit corrupted, but in general I think that just logging more information would be very useful, especially for folks creating modules to work with rnpm or who are debugging rnpm issues.
On a related note, do you know if there's an explicit specification somewhere for what a rnpm package must look like?  Or is it just pattern matching the react-native FB modules?
Thanks again!

I think that's what you're looking for :wink:
I was thinking about the doctor plugin for rnpm, so that could be one of the use-cases. But I need to discuss it with @grabbou first of all.

Yeah, that's something we've been thinking about and I think we can add more verbose logs to link. Also - this week I am planning to land interface questions so that you can answer some of them as you go and have them automatically stored in your package.json (e.g. "We couldn't find XYZ file, is it one of these?")

@briancaw would you mind helping us with that by sending over a PR with few logs here and there? ;)

Seems this one is outdated and not actionable. I'll re-open it if we get a new feedback from the TS


Import smart contracts from tipping-contract repository.

Hello. At this time I imported contract from this superhero-ui repo. But next I realised that we have this repo https://github.com/aeternity/tipping-contract and it also can be used as a dependency.
I think that to make all consistent we need to import to the superhero-ui and to my code the contract from that https://github.com/aeternity/tipping-contract repo. In that way from Github.

later I can provide a PR.

closed: https://github.com/aeternity/superhero-ui/blob/6f151c5f7052a09271021a0b576ddeb5f996eb7e/src/utils/aeternity.js#L8-L9


Fix various issues with using local directories with sources

@bparees PTAL

[test]

Fixes: https://github.com/openshift/source-to-image/issues/294

(still need tests for all combinations)

I'm ok with changes, but I want to see the tests to get "the tag" from me :wink:

@soltysh @bparees I'm done with changes and I added the test. Please take a look.

lgtm [merge]


Remove or provide a way to disable ssl validation on creation of OAuth2 provider

Feature Description
If you try to add an keycloak provider for gitea it dont work if its an internal single signon solution, because it needs to have valid external tsl certificate :
Authentication Type: OAuth2
Authentication Name: Keycloak
OAuth2 Provider: OpenID Connect
Client ID: gitea
Client Secret:
OpenID Connect Auto Discovery URL: ip:port
It just not viable for us the usage of gitea, because our cluster have minimal connection to internet, and we dont use tsl.
That would be nice to have an flag: allow unsecure validation.
Please let me know if there is any workarround it.
Screenshots
No response

Do you know if this works with self sign certificate ? Thats what you are suggesting ?

Yes, it works for self signed certificates. That's how PKI/CA works.

Hi,
I just did the configuration, this time with self sign valid certificates, and still get error 500.
It happens when I add the authentication sources, and it shows an screen in gitea with an big 500 number showing in grey.
Is this a bug ? No erros in the logs or anyting that point to the reason it dont work.

I cant see any error in the logs, just the 500 gray keycloak screen when I try to login.
About the architecture, I just install gitea using helm, and add an custom ingress controller, in the controller logs ;
root@pkbm:# kubectl logs giteaingress-ingress-nginx-controller-89c6657dc-f6t7s -n gitea -f | grep 500
<IP_ADDRESS> - - [14/Dec/2021:11:44:00 +0000] "GET /img/gitea-lg.png HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 83 0.001 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 0 0.000 304 a575006cabd5dd34e1b233f60a63788c
<IP_ADDRESS> - - [14/Dec/2021:12:19:36 +0000] "POST /admin/auths/new HTTP/2.0" 500 11758 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 909 0.042 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 11771 0.040 500 c89ee2f8d82ad9f6c104afcba6e59aeb
<IP_ADDRESS> - - [14/Dec/2021:12:19:36 +0000] "GET /img/500.png HTTP/2.0" 200 5230 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 27 0.002 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 5230 0.000 200 64cf4c46c883b86bb6659c5e8e56818b
<IP_ADDRESS> - - [14/Dec/2021:12:26:12 +0000] "GET /user/oauth2/Keycloak HTTP/2.0" 500 8301 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 35 0.002 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 8314 0.000 500 2b18254676a2735be4f71f6d84661b66
<IP_ADDRESS> - - [14/Dec/2021:12:26:20 +0000] "GET /user/oauth2/Keycloak HTTP/2.0" 500 8301 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 36 0.002 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 8314 0.000 500 55a6a757d552d4992d64e18bbc13ac0b
<IP_ADDRESS> - - [14/Dec/2021:12:26:33 +0000] "GET /user/oauth2/Keycloak HTTP/2.0" 500 8301 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 36 0.002 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 8314 0.000 500 d5f4a0921f987eec54870af19886c232
<IP_ADDRESS> - - [14/Dec/2021:15:06:13 +0000] "GET /user/oauth2/Keycloak HTTP/2.0" 500 8301 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4655.0 Safari/537.36" 36 0.002 [gitea-gitea-gitea-http-3000] [] <IP_ADDRESS>:3000 8314 0.000 500 bdceaa5d1fb01bd3fc0def42c7dc6b4d
I saw in several docs saying that gitea will check the certificate , if its not valid it will get error...
I tried with self sign certificate and still get this error, the certificate is validate on the browser, but it may not be valid in kubernetes pod or in the host machine, should I make those certificates valid somewhere to make this works ?


Prevent possible deadlock during framework shutdown.

Fixes #210.

great find Sascha! I'll review and provide feedback today.


Testing improvements

Describe the bug
As an outcome from v1.0.0 we found 2 issues which need testing improvements
#1208 - run node --version and npm --version as part of the tests
#1207 - make sure the tests that spin up drupal use redis

children have been closed


LUCENE-10089 Disable numeric sort optim when needed

Add a method to SortField that allows to disable numeric sort optimization,
which is enabled by default from 9.0.

@romseygeek Thanks for the review.
@jpountz I've addressed your comments. Can you please continue the review.


AAP-35261: ModelPipelines: Remove duplicate empty implementations

Jira Issue: https://issues.redhat.com/browse/AAP-35261
Description
This is a refactoring to simplify existing code; removing duplications.
Testing
N/A. Unit test coverage suffices.
Steps to test
N/A. Unit test coverage suffices.
Scenarios tested
N/A. Unit test coverage suffices.
Production deployment

[x] This code change is ready for production on its own
[ ] This code change requires the following considerations before going to production:

@hasys More tests and other updates you proposed made.
Please re-review when you have a chance.


Update README.md added shields

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] The commit message follows our guidelines: https://github.com/gothinkster/realworld/blob/master/CONTRIBUTING.md#commit

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

Hey @DarkRaiCodes, thanks for your contribution.
However, such shields won't be valuable for the repository:

this repository is for our documentation, so the number of forks doesn't matter.
as there is no valid reason to fork this repository to host it, the repo size doesn't matter for the community.

We might consider adding shields to implementations on this organization (but it would firstly require open an issue to discuss the selected shields) to display different checks. Still, it won't be needed for now on this repository.


Blacklist URLs

Hi,
There appears to be no way to pass the URLBlacklist/URLWhitelist to puppeteer. I do not see the flag listed here and any attempt to pass something that I would expect to the flag to be is not honored (as expected). Is it possible to add in a way to force all pages to honor this flag? pagesetrequestinterceptionvalue is in the right direction, but somewhat painful to use for all pages.
Steps to reproduce
Tell us about your environment:

Puppeteer version: 1.8.0
Platform / OS version: Linux RHEL7
Node.js version: 10.x

What steps will reproduce the problem?
    const browser = await puppeteer.launch({args: ['--url-blacklist=*']});
    const page = await browser.newPage();
    await page.goto('https://google.com');
    await page.screenshot({path: 'screenshot.png'}); // This should NOT work

    await browser.close();

What is the expected result?
Page.goto should throw
What happens instead?
The flag does not exist, so it renders.

but somewhat painful to use for all pages.

@mlucool Why's it painful?

I need to manage the settings for a group of applications.  Looking more into this, would it be possible to have support for policies be honored? This would solve this and similar problems.

Looking more into this, would it be possible to have support for policies be honored? This would solve this and similar problems.

@mlucool Isn't it working out-of-the box? Did you try following chromium policies setup?

@aslushnikov I have tried following above. I set both chrome/chromium policies to be sure I wasn't missing something. I also choose managed to ensure I didn't accidental override it. I used a screenshot to verify that code really did run as well.
$ cat /etc/chromium/policies/managed/block.json
{
  "URLBlacklist": ["*"]
}
$ cat /etc/opt/chrome/policies/managed/block.json
{
  "URLBlacklist": ["*"]
}
$ cat example.js
const puppeteer = require('puppeteer');
(async () => {
    const browser = await puppeteer.launch({
        executablePath: '/path/to/node_modules-v10/lib/node_modules/puppeteer/.local-chromium/linux-588429/chrome-linux/chrome',
            args:
        [ '--disable-setuid-sandbox',
            '--no-sandbox']
    });
    const page = await browser.newPage();
    await page.goto('https://google.com');
    // await page.screenshot({path: 'example.png'});

    const bodyHTML = await page.evaluate(() => document.location.href);
    console.log(bodyHTML);

    await browser.close();
})();
$ node example.js
https://www.google.com/

@aslushnikov were you able to reproduce this issue?

@mlucool I have been running into the same issue. I spent quite some time debugging it, but no matter what I tried, chrome never even (attempted) to read the policy file from disk.
It turns out that policies do not seem to be supported in headless Chromium. See this thread.

@koenrh yes, policies are only working in headful - sorry for not mentioning it early on.

Given this, what do you suggest we do @aslushnikov? Is the only suggestion here, containerize it?

I'd suggest using xvfb + headful mode with policies. Or just go with request interception :-)

Headful mode appears to be a non-starter for how we run puppeteer (e.g. rendering internal sites on cluster hosts for things like testing and screenshots). Any accidental headless mode would also make it too easy to silently ignore policies. Page interception would add a layer on top of puppeteer and be hard to inject in applications that use puppeteer under the hood (most allow for us to pass in settings, this fix would not be a setting).
I think the only solution then is containerization if puppeteer is not willing to give a way to support policies in headless.

if puppeteer is not willing to give a way to support policies in headless.

Strictly speaking it's not part of Puppeteer but Headless Chrome - but yes, I don't think it's coming in any near future.
Sorry we can't be helpful here!

What about this code?
page.on('request', (request) => {
  const url = request.url();
  if (blacklist.some((domain) => url.includes(domain))) {
    request.abort();
  } else {
    request.continue();
  }
});

@sputnick-dev This is a good way, but it doesn't work for Webosket connections. They are invisible in page.on('request', (request) => {


Gradle task with Jacoco code coverage fails after upgrade to Gradle 7

Bug
Type: build task fails
Enter Task Name: Gradle,v2
Environment

Azure Pipelines

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

Gradle+Jacoco:
https://dev.azure.com/slb-swt/ai-planning/_build/results?buildId=4043438&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=ea098990-53e4-52aa-5a84-5ead7c5f17f2&l=167

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name: hosted

Issue Description
Yaml pipeline:

pool:
  vmImage: 'ubuntu-latest'

steps:
  - task: Gradle@2
    inputs:
      gradleWrapperFile: 'gradlew'
      tasks: 'build'
      publishJUnitResults: true
      testResultsFiles: '**/TEST-*.xml'
      codeCoverageToolOption: 'JaCoCo'
      codeCoverageClassFilesDirectories: 'build/classes/java/main/'
      javaHomeOption: 'JDKVersion'
      jdkVersionOption: '1.11'
      gradleOptions: '-Xmx3072m'
      sonarQubeRunAnalysis: false
      spotBugsAnalysis: false

Gradle.properties
gradleVersion=7.4.2

Gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

Task logs
> Task :processTestResources
> Task :testClasses
> Task :test
> Task :jacocoTestReport FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/home/vsts/work/1/s/build.gradle' line: 70

* What went wrong:
Execution failed for task ':jacocoTestReport'.

Hi @jan-dolejsi
Thank you for your report,
We are working on more prioritized issues at the moment but will get back to this one soon.

Any updates on this issue please?

Any updates on this issue please?
This problem is caused by the Gradle task writing the following to the build.gradle file
// build.gradle
classDirectories.setFrom fileTree(dir: "build/classes/java/main/").exclude(jacocoExcludes).include(jacocoIncludes)
In Gradle 6.x and later, classDirectories is read-only.
JacocoReport - Gradle DSL Version 7.6.1
In Gradle 5.x, it was possible to write values to classDirectories, so the problem did not occur.
JacocoReport - Gradle DSL Version 5.6.4

I am also interested in an update on this. Nice investigation/root cause analysis @kaito-ms

Thanks @kaito-ms and @jan-dolejsi for highlighting this issue.
I am also running into this and interested in a resolution!

I have the same problem. I'm getting the following error:  The value for this file collection is final and cannot be changed.

You can add it to build.gradle following Gradles plugin documentation as a workaround.

I have added the following to my build.gradle
jacocoTestReport {
	classDirectories.setFrom fileTree(dir: "build/classes/java/main/").exclude('').include('')
}

and I still receive the same error. I'm using gradle 7.6.1 by the way.

I used the following. Agent running Gradle 8.0
plugins {
id 'jacoco'
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
}
}

Still the same error with 7.6.1
With 8.2.1 I get :
Could not set unknown property 'enabled' for Report html of type org.gradle.api.reporting.internal.TaskGeneratedSingleDirectoryReport.

Still the same error with 7.6.1 With 8.2.1 I get :
Could not set unknown property 'enabled' for Report html of type org.gradle.api.reporting.internal.TaskGeneratedSingleDirectoryReport.

I have the same issue with Gradle 8.0.2 and 8.4.

Hi
Any updates on this? Any workaround?
It was working fine in 6.9.4 (even though the documentation says readOnly for classDirectories)
After upgrading to Gradle 7, it is failing

Any Update on this issue , I am upgrading my from 6.8 to 7 and getting the following error . They are 6 vulnerabilities reported by the sonar for gradle v6.x
Could not set unknown property 'enabled' for Report html of type org.gradle.api.reporting.internal.TaskGeneratedSingleDirectoryReport.

I'm facing this when upgrading to gradle 8.3. Any update?

Gradle - 8.4
jacoco toolVersion - 0.8.9
At local environment all is ok.
Problem ONLY at azure:
/home/vsts/work/1/s/gradlew clean build jacocoTestReport

> Configure project :
0.8.9

FAILURE: Build failed with an exception.

* Where:
Build file '/home/vsts/work/1/s/build.gradle' line: 105

* What went wrong:
A problem occurred evaluating root project 'lead-time-prediction-history'.
> Could not set unknown property 'enabled' for Report html of type org.gradle.api.reporting.internal.TaskGeneratedSingleDirectoryReport.

build.gradle:
plugins {
    id 'java'
    id 'org.springframework.boot' version '3.2.0'
    id 'io.spring.dependency-management' version '1.1.4'
    id 'io.freefair.lombok' version '8.0.1'
    id 'jacoco'
}

// java, repositories, dependencies and other blocks are skipped...

test {
    useJUnitPlatform()
    finalizedBy jacocoTestReport
}
jacocoTestReport {
    dependsOn test
    reports {
        xml.required.set(false)
        csv.required.set(false)
        html.required.set(true)
    }
}

azure-pipeline.yml:
// other tasks are skipped

      - task: Gradle@3
        displayName: 'Build by Gradle'
        inputs:
          gradleWrapperFile: 'gradlew'
          workingDirectory: '$(Build.SourcesDirectory)'
          tasks: 'build'
          codeCoverageToolOption: 'JaCoCo'
          codeCoverageClassFilesDirectories: 'build/classes/java/main/','build/classes/java/test/'
          javaHomeOption: 'JDKVersion'
          jdkVersionOption: '1.17'
          gradleOptions: '-Xmx3072m'
        env:
          SYSTEM_ACCESSTOKEN: $(System.AccessToken) # Use the system access token for authentication

// other tasks are skipped

i have the same error any updates or workarounds

Hi, I'm having the same problem, locally it works perfect, the problem is when I use the gradle task on Azure DevOps
Gradle 8.2

* What went wrong:
A problem occurred evaluating root project 'clavedinamica-ms-security'.
> Could not set unknown property 'enabled' for Report html of type org.gradle.api.reporting.internal.TaskGeneratedSingleDirectoryReport.

I have disabled the "Code Coverage" functionality from a Gradle Test task.
Instead, my colleague has added Jacoco section inside of build.gradle and configured a dependency for tests on it.
But yes, it is not working as expected and we spent a few days fixing it with SonarQube.

Probable reason for this bug
The Gradle option 'enabled' on the 'Report' type mentioned here was removed in Gradle v8.0, which was released on Feb 13, 2023, see https://docs.gradle.org/8.0/userguide/upgrading_version_7.html#report_and_testreport_api_cleanup for details.
So I assume Gradle@3 has still not adapted this Gradle change.
Workaround
Let's get hands dirty and do it on our own.
Notes:

I didn't find a Cobertura plugin for Gradle, so sticking with JaCoCo
I didn't manage to get jacoco.exec working, so using XML JaCoCo coverage result

Gradle with JaCoCo plugin and XML report

https://docs.gradle.org/current/userguide/jacoco_plugin.html
reports {xml.required = true}

In your DevOps pipeline additionally:

- task: PublishCodeCoverageResults@2
  inputs:
    summaryFileLocation: build/reports/jacoco/test/jacocoTestReport.xml


Made click and touch navigation into opt-outs

Made click and touch navigation into opt-outs.
data-touch-navigation="0"
data-click-navigation="0"
Click navigation = clicking another slide.
Touch navigation = tapping left/right side of the screen.
Tell me if I should change anything in the naming/conventions etcetera.

Hi @KATT, in an effort to clear up older issues/PRs we are pinging back to know if you are still tracking this request.
To give a little bit of context, recently a decision was made in the project to make the development more active and the first task is to clear up older PRs like this one to see if the OP is still interested in keep it going.

Kill it. I'm not using impress.js anymore.


modifications should be copied with strand

Create a strand with a modification:

Copy and paste it. The pasted strand lacks the modification, but should have it:

This is somewhat tricky when copying from one design to another. This is because modification data is not stored directly in the strand JSON, only the id field that is used as a key to access the full Modification data elsewhere in the Design JSON.
For example, here is what is copied to the clipboard after selecting the first strand above:
{
  "strands": [
    {
      "color": "#32b86c",
      "domains": [
        {"helix": 6, "forward": true, "start": 10, "end": 31}
      ],
      "5prime_modification": "5'-Q"
    }
  ],
  "helices_view_order": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}

In the Dart object, the full modification is stored in the Strand object, in this case as Strand.modification_5p, but only the id is written when serializing to JSON:
if (this.modification_5p != null) {
  json_map[constants.modification_5p_key] = this.modification_5p.id;
}

Probably the best way to handle this is the following. When copying Strand data to the clipboard, store any modifications as a separate top-level field in the JSON, under the key "modifications_in_design" (just like when writing a .sc file). Only store each modification once, just like with that scheme, i.e., if 2 different strands both have a modification with the same id, only store one copy of the modification. The storage should be just like the .sc file, for instance
{
  "strands": [
    {
      "color": "#32b86c",
      "domains": [
        {"helix": 6, "forward": true, "start": 10, "end": 31}
      ],
      "5prime_modification": "5'-Q"
    }
  ],
  "helices_view_order": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
  "modifications_in_design": {
    "5'-Q": {
      "display_text": "Q",
      "idt_text": "Q",
      "display_connector": true,
      "location": "5'"
    }
  }
}

Closed by #823


#dcoderforlife

Add dcoder module in rtfm command makes it look shinnyyyyyy

I'm closing this issue as this issue is related directly to #14


draft for sso_auth_session example

Draft for an Example for SSO auth, based on conversation with Benwis & diversable. Please give all nits, thank you for your feedback.

halp
    Installed package `cargo-all-features v1.10.0` (executables `cargo-build-all-features`, `cargo-check-all-features`, `cargo-test-all-features`)
[cargo-make] INFO - Execute Command: "rustup" "run" "nightly" "cargo" "+nightly" "build-all-features"
error: no such command: `+nightly`

	Cargo does not handle `+toolchain` directives.
	Did you mean to invoke `cargo` through `rustup` instead?
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.
Error: Process completed with exit code 1.

I have not looked into the code too much (short on time today), but I saw you refer to google SSO there.
You could, if you like, integrate Rauthy to have a fully self-contained example.
I do have created a minimal client as well from which you could just grab some code, if you like.

I have not looked into the code too much (short on time today), but I saw you refer to google SSO there. You could, if you like, integrate Rauthy to have a fully self-contained example. I do have created a minimal client as well from which you could just grab some code, if you like.
You could actually add Rauthy directly and push a pre-configured SQLite database to the example, which would even mean way less setup.

That looks like a cool project! I'll check that out. Thanks :)

Prior art by @kerkmann might also be useful here: https://crates.io/crates/leptos_oidc
It’s already been tested with Rauthy as well.

Thanks @erlend-sh , thanks for mentioning it! :heart:
@sjud Yes, if you need some help or some knowledge sharing, just contact or ping me. :3

@sjud Do you think this is ready for merging?

Ya let’s merge. We all have bigger fish to fry and the code works.

On Jan 13, 2024, at 2:59 AM, Ben Wishovich @.***> wrote:

@sjud Do you think this is ready for merging?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.


Use better regex for matching web and run dynos in profile.d

@dz i used the single quotes. thanks.


🐛 Skip health check for deployments whose replicas is 0

Summary
In some cases, we want to deploy a deployment resource whose replicas is 0 to the managed cluster, if we set the health probe type to "WorkloadAvailability", the addon can not become available since there is no probed result for 0 replicas deployments. In this situation, we want to make the health probe check pass for the addon.
Related issue(s)
Fixes #

/hold

/hold cancel
/cc @qiujian16

/cherrypick release-0.10

/approve
/lgtm


Assurance Testing

Assurance Testing of data migrated from Together to Mauro. Nathan will require the following:

The DITA output files from Together

The DITA output files from Mauro system (the ones that are then loaded into it)

Asked Peter if he could help and has provided guidance. Will need Kate or Angela's help in doing this -
you are able to achieve this yourself through the publishing options in the orchestrator. I've documented how publishing works here: https://github.com/MauroDataMapper-NHSD/mdm-plugin-nhs-data-dictionary/blob/develop/docs/publication.md
I only know of CR1915 being the only migrated branch left now, so it should be simple to extract everything to DITA files (collected as zip files)

@NellySSJ - we already have guidance on how to generate the DITA via the Orchestrator and how to generate content in the DDPM. What else do you need us to do? I can't test the DDPM as I still can't access it.
We do have Oxygen guidance but this isn't needed as we now use the DDPM.


README: more copy-pastable code sample

Signed-off-by: Vincent Batts<EMAIL_ADDRESS>

LGTM. @rhatdan this shouldn't need to wait for tests, so we should get this merged


Fix youtube error mapping codes to fit the Iglu schema (closes #1111)

Description
Fix Youtube error mapping codes to match the YT error schema.
Note
Probably this implementation never worked, so we should keep in mind that clients updating to the new version, might see new events coming up in the good pipeline.
closes #1111

Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://docs.snowplowanalytics.com/docs/contributing/contributor-license-agreement/ to learn more and sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.

Yes on release/3.6.1 or release/3.7.0 which is yet to be seen based on the types of changes.


[L5.7] Cache clear fails

Laravel Version: 5.7.1
PHP Version: 7.2.9
Database Driver & Version: MariaDB 10.2.16.

Description:
Attempting to clear app cache returns an error message:
Failed to clear cache. Make sure you have the appropriate permissions.
Steps To Reproduce:
$ php artisan cache:clear

What cache driver are you using, and do you have the appropriate permissions?

Hi,
I too have the same problem after a new installation of laravel.

My cache drive is file.
storage/framework/cache permissions: drwxrwxr-x

The "data" directory doesn't exist by default, which causes the check at https://github.com/laravel/framework/blob/9c844aa37617d8694ba364e16a5f26ecc470c18e/src/Illuminate/Cache/FileStore.php#L144-L146 to fail and return false, which in turn causes https://github.com/laravel/framework/blob/9c844aa37617d8694ba364e16a5f26ecc470c18e/src/Illuminate/Cache/Console/ClearCommand.php#L71-L73 to error out.

I have this issue as well after upgrading to 5.7

php artisan cache:clear works fine for me, but with any option it doesnt.
php artisan cache:clear --tags=views fails with the message Failed to clear cache. Make sure you have the appropriate permissions.
Tried adding the data directory, but that does not help.

When using redis with tags, the error is caused at https://github.com/laravel/framework/blob/544b75943c055ec7e6318cb00ec53d5cc8661aa5/src/Illuminate/Cache/RedisTaggedCache.php#L82-L88
This method should return a bool, but returns nothing, which evaluates to false and triggers the error.
Cache clearing should still work fine, but the cache:cleared event won't fire.

same cache problem here, how can solve it?

@alkapatel If you're using the file store driver, create the storage/framework/cache/data directory manually.

@taylorotwell closed this but a fresh install of laravel 5.7 today gave me this same issue. What am I missing?

@tramel-woodard , @elias-alea you need to create storage/framework/cache/data folder manually.

@tramel-woodard , @elias-alea you need to create storage/framework/cache/data directory manually like @AegirLeet said.

Thanks loads. Quick question, how do I know which solutions to trust? The ones closed by contributors?
Also, I think this information could be added to the documentation here: https://laravel.com/docs/5.7/cache#configuration
Thanks

@elias-alea If you install laravel now, you will get storage/framework/cache/data directory automatically so you don't have to create it. They leave this directory to allow the filesystem to cache.

@phannaly noted, awesome!
@taylorotwell and team, thanks loads, you are the men!

SI, al agregar esta carpeta data, este problema queda solucionado, Muchas Gracias

por los que aun tienen el problema del cache yo lo solucione como dice la guia de instalacion, use lo siguiente:
mkdir -p storage/framework/cache/data;
y luego
cp storage/framework/cache/.gitignore storage/framework/cache/data/.gitignore
y listo ya esta con esto

Thanks @gabriel9944

Just only add folder name "data" in storage/framework/ and try php artisan cache:clear.

I don't understand why I am directed to read the documentation and/or upgrade guide when the framework could just as easily (re)create folders, particularly cache file locations, that it requires to exist, if they aren't present. The fact that Laravel developers need several empty folders to exist in the repository with a .gitignore only is kind of silly. Why doesn't php artisan cache:clear just create these folders if they don't exist but are required for the framework to operate?

Wouldn't it be smart if laravel created the data directory on cache:clear automatically if it doesn't exist?

same cache problem here, how can solve it?

Hi Babs!
Please check your cache path i think you are missing local folder in after stroage. Follow this path and it will fix the problem
cache.php
'file' => [
'driver' => 'file',
'path' => storage_path('local/framework/cache/data'),
],

For me

php artisan cache:clear

command worked after

php artisan config:cache

command. It worked :/

Use this package, It will tackle all cache and clean it properly.
https://github.com/rakshitbharat/cleanify

Hey,
I am following below blog documentation it's working well
https://medium.com/@tiwarishani/laravel-clear-cache-config-view-and-routes-48644a0f9367

This solved issue for me :)
mkdir storage/framework/cache/data

Me i resolve this problem with php artisan config:cache and after php artisan cache:clear

Hey everyone,
I'm locking this issue because it either has gone off-topic, become a dumping ground for things which shouldn't be in an issue tracker or is just too old. Please try to discuss things further on one of the below channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC


[ADD] Initial release drafter github actions for automating changelogs

Coverage remained the same at 92.02% when pulling e8ad244f8c04fc87c69241145b5ba1ffbc92809f on gnomeria:feature/174-improve-changelogs into 0bb712de7d60f23379d438fca050e9cdeac96c91 on allegro:master.

As expected: https://github.com/allegro/bigcache/releases/tag/untagged-c614f34dc86d095ddf49


Fix input name in action.yml

There is a Github annotation when running this workflow as documented in the README, telling that the inputs are invalid. You can see it in your own Actions tab.

The action actually uses input_config internally which -I think- is to be declared as config in the action.yml file.
This should fix this annotation.

Thank you! :bug: :tada:
I still don't understand why I had it like that... and even more, how did it even work "correctly" at some point :thinking: :man_shrugging: :sweat_smile:


switched tqdm to auto

towards #231
I tested it in a local notebook and it seems like this did the trick. It shows a widget progressbar and the warnings are lined up underneath.

Not sure what I messed up in the formatting. The flake8 message does not provide very useful feedback.

On second view, it is a bit ugly :

Any idea why this doesnt show up like a nice progressbar?

It might be that the extension is not installed? E.g. see here.
Either way this is already a big improvement for my workflow.

On second view, it is a bit ugly :

Any idea why this doesnt show up like a nice progressbar? Even having it in only one line would be nicer.

I don't know what's going on here :(. I've run into issues with tqdm before, and I always ended up giving up :). I've been looking at fastprogress: https://github.com/fastai/fastprogress, and it appears to be an alternative to tqdm. I will look into it, and will let you know whether it might be better to just replace tqdm with fastprogress.

I've been looking at fastprogress: fastai/fastprogress, and it appears to be an alternative to tqdm. I will look into it, and will let you know whether it might be better to just replace tqdm with fastprogress.

@jbusecke, I made a few changes in #238. When you get a chance please take a look at this notebook and let me know what you think.

Superseded by #238


Simple usage of Embedding layer causes error: "doesn't support calculate data gradient".

Test script:
# embedding.py
import mxnet as mx

data = mx.sym.Variable('data')
embed = mx.sym.Embedding(
    data = data,
    input_dim = 4000,
    output_dim = 128,
    name = 'embed'
)
executor = embed.simple_bind(
    ctx = mx.gpu(1),
    data = (8, 30, 100),
)
executor.forward(is_train = True)
# not done yet, another line of code to execute, see below

Run ipython -i embedding.py, then try to backward:
In [1]: executor.backward(out_grads = executor.outputs[0])
[20:07:28] /home/zhenghuabin/mxnet/dmlc-core/include/dmlc/logging.h:235: [20:07:28] src/operator/./embedding-inl.h:86: Check failed: (req[embedding::kData]) == (kNullOp) Embedding layer doesn't support calculate data gradient

[20:07:28] /home/zhenghuabin/mxnet/dmlc-core/include/dmlc/logging.h:235: [20:07:28] src/engine/./threaded_engine.h:306: [20:07:28] src/operator/./embedding-inl.h:86: Check failed: (req[embedding::kData]) == (kNullOp) Embedding layer doesn't support calculate data gradient
An fatal error occurred in asynchronous engine operation. If you do not know what caused this error, you can try set environment variable MXNET_ENGINE_TYPE to NaiveEngine and run with debugger (i.e. gdb). This will force all operations to be synchronous and backtrace will give you the series of calls that lead to this error. Remember to set MXNET_ENGINE_TYPE back to empty after debugging.
terminate called after throwing an instance of 'dmlc::Error'
  what():  [20:07:28] src/engine/./threaded_engine.h:306: [20:07:28] src/operator/./embedding-inl.h:86: Check failed: (req[embedding::kData]) == (kNullOp) Embedding layer doesn't support calculate data gradient
An fatal error occurred in asynchronous engine operation. If you do not know what caused this error, you can try set environment variable MXNET_ENGINE_TYPE to NaiveEngine and run with debugger (i.e. gdb). This will force all operations to be synchronous and backtrace will give you the series of calls that lead to this error. Remember to set MXNET_ENGINE_TYPE back to empty after debugging.
Aborted

Based on MXNet's newest version today (2016.11.26).

@WarBean I've tried it in the NNVM branch and the code runs well.

@WarBean In fact I think it may not be appropriate to call it a bug since we cannot propagate gradient to the data. We need to set grad_req of data to null in this case.

@sxjscience Any idea on the possible reason? I suggest the problem were not caused by the implementation of Embedding itself, because it functioned well before.

@sxjscience
1.How to manually set grad_req in Python API？
2.I use Embedding before in the same way as I post in the test script, but everything is ok.

@WarBean I suggest you using bind instead of single_bind when dealing with the embedding layer, i.e, to set the grad_req of data to null.
Or you can explicitly set the grad_req of embedding layer like the following:
import mxnet as mx

data = mx.sym.Variable('data')
embed = mx.sym.Embedding(
    data = data,
    input_dim = 4000,
    output_dim = 128,
    name = 'embed'
)
executor = embed.simple_bind(
    ctx = mx.gpu(0),
    data = (8, 30, 100),
    grad_req= {'data':'null', 'embed_weight':'write'}
)
executor.forward(is_train = True)
executor.backward(out_grads = executor.outputs[0])

It works. I haven't used grad_req option in simple bind. Thank you.

@WarBean However, this solution is not that good if your network contains lots of parameters. In that case, it would be better to directly use the bind API and do not include data when setting the gradient.

Some modification to work around for lots of parameters, assuming other grad_req to be 'write' :
data = mx.sym.Variable('data')
embed = mx.sym.Embedding(
    data = data,
    input_dim = 4000,
    output_dim = 128,
    name = 'embed'
)
executor = embed.simple_bind(
    ctx = mx.gpu(0),
    data = (8, 30, 100),
    grad_req= {
        name: 'null' if name == 'data' else 'write'
        for name in embed.list_arguments()
    },
)

Is it appropriate?

@WarBean Yes, it works.


Select tool to create SBOM

three formats in widespread use: (1) Software Package Data Exchange (SPDX®), an open source machine-readable format with origins in Linux Foundation and recently approved as ISO/IEC standard; (2) CycloneDX (CDX), an open source machine-readable format with origins in the OWASP community; and (3) Software Identification (SWID), an ISO/IEC industry standard used by various commercial software publishers.

Which format is best for Liquibase users?
https://www.ntia.doc.gov/files/ntia/publications/sbom_formats_survey-version-2021.pdf

SPDX

product of open source dev community
geared for ease-of-ingestion within developer workflow
supports compliance/software transparency for open source and proprietary code
supports adoption by developers who may not be associated with specific vendors
can link artifacts to global reference system via Common Platform Enumeration (CPE), Package URL (purl), Software Heritage persistent ID (SWHID)

CycloneDX

lightweight open source standard, origins in OWASP community
focuses on automation, ease of adoption, progressive enhancements in build pipelines
works with both open source and proprietary software
supports multiple standards for component identity including purl, CPE, SWID for binary and source software artifacts

SWID

designed for  software inventory and entitlement management
locates the SWID tag associated with the software
SWID tags follow the binary artifact and are updated as the compiled codebase changes

duplicate; covered by https://github.com/liquibase/liquibase/issues/2445


MacOS DMG installer: fix remaining (nice to have) issues

TODO:

[ ] Readme: add link to MacPorts and/or Homebrew package for system dependencies (the opam version information is useless for many conf packages)
[x] move .plist file here from Coq
[x] share whitelist among windows/osx (and snap, if possible)
[ ] add a CI job using matrix which installs macports (by default brew is installed, not ports)

This issue is for tracking / fixing the remaining nice to have issues of PR #50.

Fixed the code sharing in 2022.09 - the remaining stuff will go into 2023.3 (hopefully).

Triage note: we try to do this in the next release if we have bandwidth.


policy: Fix transient policy deny during restart due to missing ipcache

Currently, during endpoint restoration, ipcache map is unpinned and recreated by Map.OpenParallel, regenerated endpoints lookup from the newly created ipcache map, so the regeneration of endpoints should wait for the ipcache map to be synchronized. However, the regeneration of host endpoint doesn't wait for ipcache map sync, which introduces transient policy deny.
This patch fixes this by making all endpoints wait for ipcache map sync.
Fixes: #15878
Signed-off-by: Jaff Cheng<EMAIL_ADDRESS>Please ensure your pull request adheres to the following guidelines:

[ ] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[ ] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] All commits are signed off. See the section Developer’s Certificate of Origin
[ ] Provide a title or release-note blurb suitable for the release notes.
[ ] Thanks for contributing!

Fixes: #issue-number
<!-- Enter the release note text here if needed or remove this section! -->

We're missing changes from bpf.go ?

Yep! I reckon we are not looking to fix this anymore!


DocViewer requests twice.

Hi Cyntler.
When I using 'uri' props in 'DocViewer' component, It requests twice to my backend api.
here is my process.

when I request my file to backend, It needs 'Authorization' headers. The 'Next js API' was simply settings that headers

When I tested except 'Nextjs API', same result ( requesting twice ).
what should i do? plz give me some feedbacks.

It makes a HEAD request followed by a GET. Could that be what you're seeing?

The first call might be a prefetch call followed by an actual API call.
By default prefetch use HEAD method call but can be overridden to make GET API call for prefetch as well.
;


Python byte string unsupported

If I have some python like this:
data = (data if data else b'%s%s' % (_BASE64_PREFIX, b64encode(b'image data')))

spell checker underlines b'image as a spelling error. It shouldn't treat b' as part of the spellcheck.

Thank you.
I might be able to do something explicitly for python.
The challenge has to do with making a distinction between b'image and bob's.

Nice, let me know if I can help with testing in any way!

Same thing happens with u'bob', just found it :)

Good point. I'll take that into account.
On Wed, 12 Apr 2017 at 11:20, Jan Hancic<EMAIL_ADDRESS>wrote:

Same thing happens with u'bob', just found it :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Jason-Rev/vscode-spell-checker/issues/82#issuecomment-293521760,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEoDjTDwZfhvVsZ8U0neDVvcJKdpCy6Sks5rvJd3gaJpZM4M6Nj7
.

This should be fixed with 1.2.0 of the plug-in.


Better logging for subscriptions

Motivation
Increase verbosity of logs re: subscriptions
Proposal

Add one argument to is_retryable
Report connection errors as warnings

Test Plan
CI + run a node service manually
Release Plan
[currently on the testnet branch]

These changes should be backported to the latest devnet branch, then

be released in a new SDK,

These changes should be backported to the latest testnet branch, then

be released in a new SDK,

Needs to be cherry-picked for main.


Fix to allow building with stable (and other updates).

r? @canndrew
(maidsafe_highfive has picked a reviewer for you, use r? to override)

Reviewed 1 of 2 files at r1, 3 of 3 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


File format for 2D/3D model explorer

Hi, I've been wanting to try the model explorer. After clicking on Create New File Set in the UI it mentions WebGL files, so I've tried downloading some WebGL examples and saving them in DeepLynx, but this just gives an endless "Loading Unity Files" when trying to view them.
What exactly is the file format that should be used? Are there any publicly-accessible examples anywhere? Finally, is it possible to export a model from Paraview and view it in DeepLynx?

Hi @alahiff thanks for trying out our 3D Model Viewer and sharing your experience.
The application accepts a webgl build composed by four files.

A .data file
A .framework.js file
A .loader.js file
And a .wasm file

Without these four files the application won't render anything, and so that may be what you're seeing. I'll be sure to add an issue to our work board that should eliminate this confusion. Right now we are generating webgl builds through Unity, which you'll find will produce the above four files. Make sure you don't compress the builds (you shouldn't see a .gz on the file extension).
I don't have a public webgl build I could share with you but you may be able to find one online, or create your own.
To answer your other question, we intend to build out a workflow that accepts exported models from different applications, and transform them into interactive webgl builds behind the scenes, kind of like what you're describing. Ideally you'd upload an FBX, and DeepLynx would handle it from there. At this time however you have to load the model into Unity, and generate the webgl build yourself.
If you have any other questions, or want to reach out to work with us directly, go ahead and email us at<EMAIL_ADDRESS>


fix(cli): should not require ts-node in Production

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


TF deletion hanged when envFrom are also deleted and destroyResourcesOnDeletion is true

First, thanks for this great controller, it is a pleasure to work with it.
We have an issue when deleting TF linked to a ConfigMap, and when the terraform model requires a variable.
Here is the TF:
---
apiVersion: infra.contrib.fluxcd.io/v1alpha2
kind: Terraform
metadata:
  name: hello-alice
  namespace: flux-system
spec:
  interval: 1m
  approvePlan: auto
  path: ./
  destroyResourcesOnDeletion: true
  sourceRef:
    kind: GitRepository
    name: tf-hello
  varsFrom:
    - kind: ConfigMap
      name: hello-config-alice

At deletion, from FluxCD, we destroy TF + depending CM, but TF controller is looping on the deletion process because the runner cannot access the configmap anymore.
{"level":"error",
 "ts":"2023-06-28T13:43:41.993Z",
 "logger":"runner.terraform",
 "msg":"unable to get object key",
 "instance-id":"2b46e6cb-96bf-4df3-8758-48c94481dd2f",
 "objectKey":{
    "name":"hello-config-alice",
    "namespace":"flux-system"},
 "configmap":"",
 "error":"configmaps \"hello-config-alice\" not found"
}

I have push a demo project here for more details.
Test versions are:
flux: v2.0.0-rc.5
helm-controller: v0.34.1
kustomize-controller: v1.0.0-rc.4
notification-controller: v1.0.0-rc.4
source-controller: v1.0.0-rc.5
tf-controller: v0.15.0-rc.4

Can you confirm this behavior ?
Is there any way to avoid it - without removing the destroyResourcesOnDeletion ?
Maybe adding a finalizer on ConfigMap or Secrets per runner can be an option, or having a cache for tfvars ?
Thanks a lot for your help.

Hi @davidblaisonneau-orange thank you for reporting this.
We're aware of this kind of behavior.
Adding finalizers to ConfigMaps or Secrets which are not managed by the controller would cause other problems.
A generalized solution to the resource deletion problems would be caching the generated BLOBs and use them only for the destruction phase.

Thanks @chanwit for this quick answer.
For my understanding what would be the issue with finalizers ?

It's from the discussion with the Flux team.
They suggested that adding finalizers to those objects would lead to some unforeseen behaviors, for example, it would block the uninstallation process of Flux, etc.
After the discussion with them, we haven't decided to use finalizers for this problem yet.
However, terraform BLOB caching might help us solve this whole set of problems.


When loading an existing chat in the new chat creator, it waits for the full ChatBloc to be fetched

We don't wanna wait cuz it seems like lag, when it's really just a UI limitation I think

To reproduce this issue, do the following:

Close the app (or do step 2 right when the app initially starts/opens)
Open new chat creator, and quickly select a chat
That chat's messages won't fully load until the ChatBloc() is finished loading all the chats

We need to get rid of that wait so the chat loads up quickly


OpenNebula: Allows using LOCKED images

Author Name: kvaps kvaps (kvaps kvaps)
Original Redmine Issue: 5481, https://dev.opennebula.org/issues/5481
Original Date: 2017-10-19

If you create new image from the http source, and if it downloads really slowly, it stacks in LOCKED state.
This is really harmful, if you try to connect this image it will stack all your VM, in HOTPLUG state:
[Z0][VM][I]: New LCM state is HOTPLUG_PROLOG_POWEROFF
[Z0][TM][E]: missing DISK mandatory attributes (SOURCE, TM_MAD, CLONE, DATASTORE_ID) for VM 5317, DISK 3
[Z0][LCM][E]: prolog_failure_action, VM in a wrong state

If you try to create new vm, it will stack in CLONING state, without any logs.
We need to refuse mounting any images in LOCKED state.

We do not want to let VMs use images in locked state. However, we need to prevent operations using those images (e.g. attach a locked image). Reword the title


Rollback minamijoyo/tfupdate to 0.6.5

Partial fix to #43.

cc/ @freedomofkeima @akawasaki
We found the issue and a solution (not actually a solution) to this issue.
The cause is that in<EMAIL_ADDRESS>uses a newer alpine image. This includes a newer version of git (2.36.2) compare to<EMAIL_ADDRESS>image which has a git version (2.32.0)
The newer git version includes a patch explained in https://github.com/actions/runner-images/issues/6775#issuecomment-1359785199
We believe this patch has a compatibility issue with GA which is explained in these comments:

https://github.com/actions/runner-images/issues/6775#issuecomment-1362289684
https://github.com/actions/runner-images/issues/6775#issuecomment-1420586459

One solution is to add git config --global --add safe.directory "$GITHUB_WORKSPACE" before https://github.com/HENNGE/tfupdate-action/blob/4441a2e2ae8458c09c0007ab1631271212603c12/entrypoint.sh#L83-L84
Or we can simply downgrade to 0.6.5 and wait for the fix.

Thanks for finding the root cause @hohobilly 👍
I believe the solution suggested is better than rolling back minamijoyo/tfupdate.
I'll incorporate it to this PR.

The fix is added and confirmed working.


Blog settings api

[ ] Add Setting table
[ ] Store the setting definition in a json file blogSettingResources.json. This design can easily add setting items without modifying the program. If we want to use the new settings in the UI, just modify the file directly.
[ ] GET /settings Get settings list
[ ] PUT /settings/{code} Modify the specified settings

is done


iphone control center

Hello I'm searching but can't find it.
Is it possible to control the sound from the TV via the control center? I only see music and I don't get to see TV.
The sound from the TV goes through sonos playbar.

When you open the remote app you can control the sound with the iPhone/iPad volume up and down buttons. As an alternative you can enable the volumeControl for the plugin, this will add buttons to your Home app to control the volume.

thx i know that but that is not the question, i wonder if it is possible to do that with the control center on the iphone

No, this is not possible.


How pulling works

I can't find any documentation on how gitfs pulls are working. You say that you make commit on every file change and resolve conflicts by prefering local versions. But what happens if somebody commits to remote git repo while it's mounted in gitfs. There's no way remote server can let gitfs know about this commit, so you have to pull very often (ie. before every read/write to gitfs). How is this handled? can you please write it in README file? Thanks.

Oh, sorry, i've found the docs. It's updated periodicaly each 30 seconds (by default).


git-log throws fatal: ambiguous argument 'remotes/origin/<branch>' unknown revision or path on local-only branches

Describe the bug
Calls to git-log::log on repositories with local-only branches (in particular, branches that had their associated remote branch deleted) will fail with an error similar to the following:
fatal: ambiguous argument 'remotes/origin/cloneFailedSuccessfully': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

To Reproduce
Steps to reproduce the behavior:

Launch Synectic
Go to File → Open...
Select the root directory of a repository with at least one local-only branch
See error in the Developer Tools console

Expected behavior
The git-log::log should be aware of local-only references and handle them appropriately by returning the status of the local branch.
Screenshots

Versions (please complete the following information):

OS: Linux, MacOS, Windows
Synectic Version: 3.2.0

Additional context
The v3.0.0 release switched all Git commands from relying on isomorphic-git to directly calling git through execute (a utility function for spawning a shell and executing commands within that shell).

The root cause stems from refPattern in processBranchOutput processing branch names that include a prefix grouping incorrectly (e.g. bugfix/handleHTTPS instead of the more typical main).
Instead of translating a branch with the ref name of bugfix/handleHTTPS to be a local branch with properties { ref: 'bugfix/handleHTTPS', scope: 'local', remote: 'origin' }, it was incorrectly translated to be { ref: 'handleHTTPS', scope: 'remote', remote: 'bugfix' }. This results in any subsequent calls to git-log::log attempting to resolve the commit logs of a non-existent remote branch.


Use with npx

I just read Introducing npx about the new binary npx that comes as part of npm 5.2+ (which comes with node 8). I wanted to use their "Executing one-off commands" example where they do $ npx create-react-app my-cool-new-app where it "installs a temporary create-react-app and calls it".
So I installed node 8. I did nodenv global 8.0.0. I upgraded npm to make sure I had 5.2. I then ran their example:
npx create-react-app real-world-discussions-demo

Output:
nodenv: create-react-app: command not found

The `create-react-app' command exists in these Node versions:
  4.2.3

Oops! I had already installed create-react-app globally in 4.2.3. But wait, I'm not trying to run a global command, right? That's the point of npx. After I deleted create-react-app out of 4.2.3, I ran the command again and it worked as shown in that medium post.
So my question is, why didn't this work as expected? It should have installed a temporary create-react-app in node 8 and called it, but instead it barfed, but that's exactly what npx is trying to prevent. The article mentions that npx should work well with nvm, nave, or n, but doesn't mention nodenv.

Throwing in my initial first guesses without much research so... grain of salt. :)
When a module is installed globally, nodenv makes a shim for it. This shim is in your PATH. So according to a system which foo lookup, it will find the executable in nodenv's shims and report "Hey, we successfully found an executable matching foo in PATH. Cool." So my suspicion is that npx simply checks to see whether the desired binary exists in PATH; assuming that if it does, it can just invoke it and skip the "temporary installation". (I'm still not clear on whether npx's installation of modules is temporary or permanent.)
However, as far as nodenv is concerned, the existence of the shim doesn't guarantee that the executable is installed for the given version. When the shim is actually executed, nodenv checks if the matching executable is installed for the currently active version. If it is, it executes it; hunky dory. If not, it does a search through all the installed nodes to see which versions do have the desired executable; and then prints the helpful message that you saw.

foo not found; foo exists in these nodes:

At present I don't have any more feedback for you, or comments for npx. I need to investigate further to confirm my suspicions before forming any opinions about next steps. But this is what I suspect is the problem. I'll keep this issue open as you/others dig deeper and hopefully shed more light on npx's behavior.

I'll close this for now. I suspect it's something npx would have to deal with, so I'll move it there. FWIW the creator of npx said here that

npx has no explicit support for any version managers. It does some installation and $PATH-manipulation work

I'm guessing it's a difference between nodenv using shims where the rest of the node managers work more globally.

Yeah, to my knowledge most other version managers manipulate the PATH (and other env vars), whereas nodenv has static shims that live within an unmodified PATH, that do the bin lookup at invocation time.
Reopening to track conversation and for any further thoughts as people experiment.

Okay, I can't even get npx to show up, with Nodenv:
❯ ~ nodenv global 8

❯ ~ nodenv version
8 (set by /Users/ec/.nodenv/version)

❯ ~ npx
zsh: command not found: npx

❯ ~ npm i -g npm
/Users/ec/.nodenv/versions/8.1.4/bin/npm -> /Users/ec/.nodenv/versions/8.1.4/lib/node_modules/npm/bin/npm-cli.js
/Users/ec/.nodenv/versions/8.1.4/bin/npx -> /Users/ec/.nodenv/versions/8.1.4/lib/node_modules/npm/bin/npx-cli.js
+<EMAIL_ADDRESS>updated 1 package in 13.804s

❯ ~ [15s] which npm
/Users/ec/.nodenv/shims/npm

❯ ~ which npx
npx not found

Although, based on this Issue, it looks like it wouldn't work, even if I got it to install? :x

Don't forget to nodenv rehash after installing global modules, otherwise you won't have the shim in your PATH.

I'm running into this problem with npm-merge-driver, which is a bit of a problem because merging package-lock.json files would be a huge win.
You can get npx to "work" by using the --ignore-existing flag, but that's a ton slower than just letting npx call the locally installed version.
I'm not sure how this would work technically, but ideally it would be great if nodenv could be npx aware (which seems more reasonable than the other way around) so that nodenv could allow npx to execute the locally installed version from another node version, or perhaps just ignore the local version only if its the shim that's going to error out.

Might I suggest nodexenv or something, that we could then alias to npx locally? (=

I didn't use npx for a long time. Recently, to launch local executables within projects, I've been typing node_modules/.bin/EXECUTABLE_NAME, and then a friend mentioned npx, and I had never realized that npx worked that way (check for a file in node_modules/.bin for you first before installing a temporary copy). Since the time he mentioned it, I've been using npx without issue for a while, and hadn't even realized that perhaps I'm using a version from a different version of node. As in, perhaps I am using node 10 for some project, then I type npx SOME_COMMAND, and perhaps it's executing that with e.g. node 8's npx? How can I check? If it seems to be working for me, should I not worry? Because I'm guessing even though it may seem to work, it might hose me someday due to version mismatches. I'm happy to help but I'm not sure how to know if the exec hook made a difference or not.

Thanks for that awesome explanation!
I think the reason I haven't had "problems" with this issue in a while is that when I see the "command not found, it exists in these node versions", I just go ahead and install it globally in the version of node that I'm in, which I realize is kind of against the point of npx.
I love nodenv and am extremely grateful for it so I'd be happy to help test the npx.bash script in any way you'd like. I'm guessing though that you're confident of the academic cases and want more "in the wild" tests, so here's what I'll do. I'll put a reminder on my calendar for a month from now and check in then at the latest, but if I encounter a scenario earlier I'll report. I'm currently a coding bootcamp instructor so I am often working with multiple versions of node so I bet I run into something before long :-)

I posted this a few minutes ago with a different github account. Reposting it with my original account.
Update as promised. I tried it just now and it worked. I am on a new machine and I installed nodenv via homebrew. I have node versions 10.15.0 (set as global) and 11.6.0, and I installed create-react-app globally via npm in version 11.6.0. I then ran nodenv rehash. When I typed npx create-react-app blah, it said (as expected):
nodenv: create-react-app: command not found

The `create-react-app' command exists in these Node versions:
  11.6.0

I then put the npx.bash script where you said. I ran the same CLI line as above, and it worked! It ran create-react-app with node 10.15.0. Great!
I told you I am a bootcamp instructor and hope to report on "in the wild" conditions. I switched companies and my first class with this new company starts tomorrow, so I'll put another reminder on my calendar for a month from now and report back.

I don't really know why it might be a good idea not to have the exec script included by default. But I'd vote to put it in the new version. That way if I want that behavior on all my machines, I simply update to the newest nodenv (a little easier than manually creating the npx.bash).

I haven't had the opportunity to show many others to use nodenv as I intended. However, I have multiple machines and today used a different machine than previous. I tried to use npx and got the error as originally described. I switched my nodenv to the npx branch and ran the npx command again and it worked perfectly. I'd say LGTM. Thanks for the great work!


Paper 1.21.4 Support

Describe the feature you'd like / 描述你想要的新特性
...
I'd like Support for Minecraft 1.21.4. Because it fails to start with the 1.21.3 version

Could u plz send me the logs so I can check what the issue is?👋

https://github.com/tanyaofei/minecraft-fakeplayer/releases/tag/0.3.13

Thank you.