Reading on Windows not working in 7.1.4

Summary of Problem

What are you trying to do?
I have a LinkUSB that uses a FTDI 232 USB to Serial converter that I need to talk to on Windows. I have the program working perfectly on MacOS.
What happens?
After removing the flush() commands (which seem to be broken according to some issues here) I am not getting back any data.
What should have happened?
I should get back data.

Code to Reproduce the Issue
const SerialPort = require('serialport')
const Readline = require('@serialport/parser-readline')
const port = new SerialPort('COM3', { baudRate: 9600 })

const parser = new Readline()
port.pipe(parser)

parser.on('data', line => console.log(`> ${line}`))
console.log("write")
port.write('r\n')

reduced it to this sample. This produces following debug output
> $env:DEBUG='serialport/*'; node test.js
  serialport/bindings loading WindowsBinding +0ms
  serialport/stream opening path: COM3 +0ms
  serialport/binding-abstract open +0ms
write
  serialport/stream _read queueing _read for after open +15ms
  serialport/stream opened path: COM3 +18ms
  serialport/stream _write 15 bytes of data +2ms
  serialport/binding-abstract write 15 bytes +35ms
  serialport/stream _read reading +5ms
  serialport/binding-abstract read +4ms
  serialport/stream binding.write write finished +11ms
PS C:\Users\admin\Documents\sdev> $env:DEBUG='serialport/*'; node test.js
  serialport/bindings loading WindowsBinding +0ms
  serialport/stream opening path: COM3 +0ms
  serialport/binding-abstract open +0ms
write
  serialport/stream _read queueing _read for after open +14ms
  serialport/stream opened path: COM3 +30ms
  serialport/stream _write 2 bytes of data +3ms
  serialport/binding-abstract write 2 bytes +47ms
  serialport/stream _read reading +5ms
  serialport/binding-abstract read +5ms
  serialport/stream binding.write write finished +

When using the Arduino IDE with the serial monitor I can properly talk to the device. So drivers seem to be OK.
I already digged through a lot of the issues here but I was not able to find one with that specific case.
Versions, Operating System and Hardware

<EMAIL_ADDRESS>Node.js v10.15.3
Windows 10 64bit
Hardware and chipset? FTDI

Small update. Still not working, but I see some differences.
I changed my test code to:
const SerialPort = require('serialport')
const port = new SerialPort('COM3', { baudRate: 9600 })

function myClose() {
	console.log(port.read(1))
	port.close()
}

port.open(() => {
	port.on('data', line => console.log(`> ${line}`))
	port.on('error', line => console.log(`ERROR > ${line}`))
	port.on('close', line => console.log(`> Close`))

	console.log("write")
	port.write('r\n')
	port.drain((err) => {
		setTimeout(myClose, 1500);
	})
})

When now running it, I get:
  serialport/bindings loading WindowsBinding +0ms
  serialport/stream opening path: COM3 +0ms
  serialport/binding-abstract open +0ms
write
  serialport/stream drain +12ms
  serialport/stream drain queuing on port open +1ms
  serialport/stream _read queueing _read for after open +2ms
  serialport/stream opened path: COM3 +27ms
  serialport/stream _write 2 bytes of data +4ms
  serialport/binding-abstract write 2 bytes +44ms
  serialport/stream drain +4ms
  serialport/binding-abstract drain +4ms
  serialport/stream _read reading +3ms
  serialport/binding-abstract read +6ms
  serialport/stream binding.write write finished +8ms
  serialport/stream binding.drain finished +3ms
null
  serialport/stream #close +2s
  serialport/binding-abstract close +2s
  serialport/stream binding.read error { [Error: Reading from COM port (ReadIOCompletion): Operation aborted] canceled: true } +7ms
  serialport/stream _read queueing _read for after open +11ms
  serialport/stream binding.close finished +94ms
> Close

so no data read or anything.
But then I open the serial port via putty and suddenly the expected output appears in putty. That means it is sending the data, but it is not reading the buffer in node.
Funny thing then is, when I go and close putty and start the sample again, then I suddenly get an output.
  serialport/bindings loading WindowsBinding +0ms
  serialport/stream opening path: COM3 +0ms
  serialport/binding-abstract open +0ms
write
  serialport/stream drain +10ms
  serialport/stream drain queuing on port open +2ms
  serialport/stream _read queueing _read for after open +2ms
  serialport/stream opened path: COM3 +18ms
  serialport/stream _write 2 bytes of data +6ms
  serialport/binding-abstract write 2 bytes +38ms
  serialport/stream drain +6ms
  serialport/binding-abstract drain +6ms
  serialport/stream _read reading +5ms
  serialport/binding-abstract read +3ms
  serialport/stream binding.write write finished +7ms
  serialport/stream binding.drain finished +2ms
  serialport/stream binding.read finished +14ms
> P
  serialport/stream _read reading +8ms
  serialport/binding-abstract read +30ms
null
  serialport/stream #close +1s
  serialport/binding-abstract close +1s
  serialport/stream binding.read error { [Error: Reading from COM port (ReadIOCompletion): Operation aborted] canceled: true } +9ms
  serialport/stream _read queueing _read for after open +8ms
  serialport/stream binding.close finished +108ms
> Close

When comparing then the first to the second, the first one is missing following lines:
  serialport/stream binding.read finished +15ms
> P
  serialport/stream _read reading +7ms
  serialport/binding-abstract read +30ms

I really could use the help of somebody on this one. Thanks.

I have a similar but different issue where reads fail on Windows 10 in version 7.15. maybe related?
the debug message indicating a problem is
serialport/stream binding.read Zero bytes read closing readable stream +0ms
in the windows binding code, during initialization the comm timeouts are all 0 so the reads will block until something is read. There is one spot in NAN_METHOD(read) where the comm timeout is set to MAXDWORD which can potentially return 0 bytes. (serial_win.cpp:482) then in stream.js there is a test for 0 bytes read and the reading stops when that happens.  maybe a race of some kind with the comm timeouts?
this is a hack, but it fixes the problem for me:
line 373 stream.js version 7.15
  // the actual read.
  debug('_read', `reading`)
  this.binding.read(pool, start, toRead).then(
    bytesRead => {
      debug('binding.read', `finished`)
      // zero bytes means read means we've hit EOF? Maybe this should be an error
      if (bytesRead === 0) {
        debug('binding.read', 'Zero bytes read closing readable stream')
        //this.push(null)
        //return
       // don't quit, instead reprime to read more
        this._read(bytesToRead) // prime to read more once we're reconnected
      }
      else {
        pool.used += bytesRead
        this.push(pool.slice(start, start + bytesRead))
      }
    },
    err => {
      debug('binding.read', `error`, err)
      if (!err.canceled) {
        this._disconnected(err)
      }
      this._read(bytesToRead) // prime to read more once we're reconnected
    }
  )

I've run into this bug too. I checked serialport 6.x which is working in another project, but it's not working here. It's worth noting that the other project creates a single readline parser, whereas this project switches between ReadLine mode and fixed-length binary mode.

Update on this: I tried explicitly unpipeing my parsers and this made things much worse. I've refactored code to go to great extents to avoid repiping, by writing a demultiplexer that I can switch which parser my data is going to, and that seems to help. I've also avoided too many uses of once in tight loops, which seems to improve reliability.
import { Writable, PassThrough } from 'stream';

export const TEXT_MODE = Symbol('text');
export const BINARY_MODE = Symbol('binary');

export default class Demultiplexer extends Writable {
  constructor() {
    super();

    this.mode = TEXT_MODE;

    this.textStream = PassThrough();
    this.binaryStream = PassThrough();
  }

  setMode(mode) {
    this.mode = mode;
  }

  _write(chunk, encoding, callback) {
    switch (this.mode) {
      case TEXT_MODE:
        this.textStream.write(chunk, encoding, callback);
        return;

      case BINARY_MODE:
        this.binaryStream.write(chunk, encoding, callback);
        return;

      default:
        callback(new Error("Should not reach here"));
        return;
    }
  }

  _final(callback) {
    console.warn("final() called");
    callback();
  }
}

I did notice from time to time what looked like a race between the first read finishing and when the write was actually finished.

I saw that in the C code it should always get the first character before
trying to get the rest. so yes it doesn't look like a read of 0 should ever
happen. I had a GPS device connected, which was continuously outputting
data. I would always get the first buffer of data, from 100 to 500 bytes,
but it would never get the second buffer. I'm going to try a bit more to
figure out what is really happening.
On Wed, May 1, 2019 at 8:19 PM Danielle Madeley<EMAIL_ADDRESS>wrote:

I did notice from time to time what looked like a race between the first
read finishing and when the write was actually finished.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/node-serialport/node-serialport/issues/1836#issuecomment-488541311,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAGCCX7RTPHWBPK6KXUP23PTJMU7ANCNFSM4HGB74AA
.

--
david howard
<EMAIL_ADDRESS>dmh2000.github.io
github.com/dmh2000

Is there already a possible solution for this? Would be nice to know that this works reliable also on windows.

This is blocking me also, same code working fine on Linux, not on Windows.

Regarding the possibility of the the initial 1 byte read in the serialport_win.cpp returning 0 bytes, when it should always return 1 byte. It appears to that it does returns 0 sometimes, even though the code is structured so it should not do that.
serialport_win.cpp::line 468
  if (!GetOverlappedResult(int2handle(baton->fd), ov, &bytesTransferred, TRUE)) {
    lastError = GetLastError();
    ErrorCodeToString("Reading from COM port (GetOverlappedResult)", lastError, baton->errorString);
    baton->complete = true;
    return;
  }

  // =====================================
  // !!! bytesTransferred CAN be 0 here, for some reason
 // needs a debug check here
  // =====================================
  if (bytesTransferred) {
    baton->bytesToRead -= bytesTransferred;
    baton->bytesRead += bytesTransferred;
    baton->offset += bytesTransferred;
  }

so when it's zero, stream.js halts reading and it all hangs (unless I patch stream.js as before). .
I created a gist where I created a stripped down version of serialport_win.cpp with only the open and  read function and a simple main to run it. I attempted to keep it the same as the original code structure with the read thread, iocompletion etc, and when I run it, it sees the GetOverlappedResult return 0 frequently. I drive it with a serial GPS so there is a burst of data every 1 second then a pause until the next and i get several reads of 0 bytes in the pause.
https://gist.github.com/dmh2000/c776e6c5e27664008533c477427a2349


Eventalign fails with [E::sam_itr_next] Null iterator

I'm trying to use event align on some direct RNA sequencing data where I've aligned to a reference for a single transcript.  Indexing appears to go fine:
nanopolish index -d fast5_pass_singles -s out/sequencing_summary.txt out/all.fastq [readdb] indexing fast5_pass_singles
...
[readdb] indexing fast5_pass_singles/2 [readdb] num reads: 282863, num reads with path to fast5: 246965
And I get a .readdb where most reads have paths, and the paths correspond to where the fast5s live. E.g.:
fffd5d4f-fd82-4637-8dc3-c7dc29107d50	fast5_pass_singles/7/fffd5d4f-fd82-4637-8dc3-c7dc29107d50.fast5
When I then try to run eventalign:
nanopolish eventalign \     --reads all.fastq \      --bam mt.mm2.ref.bam \     --genome ref.fa \     --scale-events > eventalign_output.txt
I get the error
++ nanopolish eventalign --reads all.fastq --bam mt.mm2.ref.bam --genome ref.fa --scale-events [E::sam_itr_next] Null iterator
And an eventalign_output.txt file with only a header in it.
Eventalign runs fine for me on the test data E coli data set. I can't seem to figure out what this error running my own data might indicate. Thoughts?

Is it possible the bam file is empty?

On Feb 18, 2022, at 6:06 PM, Laura White @.***> wrote:

I'm trying to use event align on some direct RNA sequencing data where I've aligned to a reference for a single transcript. Indexing appears to go fine:
nanopolish index -d fast5_pass_singles -s out/sequencing_summary.txt out/all.fastq [readdb] indexing fast5_pass_singles
...
[readdb] indexing fast5_pass_singles/2 [readdb] num reads: 282863, num reads with path to fast5: 246965
And I get a .readdb where most reads have paths, and the paths correspond to where the fast5s live. E.g.:
fffd5d4f-fd82-4637-8dc3-c7dc29107d50 fast5_pass_singles/7/fffd5d4f-fd82-4637-8dc3-c7dc29107d50.fast5
When I then try to run eventalign:
nanopolish eventalign \ --reads all.fastq \ --bam mt.mm2.ref.bam \ --genome ref.fa \ --scale-events > eventalign_output.txt
I get the error
++ nanopolish eventalign --reads all.fastq --bam mt.mm2.ref.bam --genome ref.fa --scale-events [E::sam_itr_next] Null iterator
And an eventalign_output.txt file with only a header in it.
Eventalign runs fine for me on the test data E coli data set. I can't seem to figure out what this error running my own data might indicate. Thoughts?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.

Yes. This is a classic case of me seeing the problem seconds after I finished documenting the entire issue. Thanks.

No problem, I’ll make a note to write a better error message.
Jared

On Feb 18, 2022, at 6:13 PM, Laura White @.***> wrote:

Closed #987.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.


Vue3 version

any plans for a vue 3 version?
thank you

any news about a version for vue 3?
I really needed
thank you

Any plans to give a full example for those who arren't that much familiar with frontend libraries and not just bits & pieces?
Absolutely horrible documentation!

Is this death?

I really need this library for vue3. I have been using it on all my project and it is great.
Any Idea on how to make it work for vue3.
thank you

@amchconsult you should probably think switching to some UI library. I found this and found it quite easy to work with.


Why can I only generate a json file once?

When I first used --eval-options {'jsonfile_prefix': '. /results'} it successfully generated the json file, but when I used the command again later it didn't seem to update the file anymore, I changed the jsonfile_prefix parameter like this {'jsonfile_prefix': '. /maskresults'}, but it doesn't generate a new json file anymore either.This problem has been bothering me for a long time

@billfjj It seems unlikely. I tried it and found it to be correct. can you provide some more log information?

@billfjj It seems unlikely. I tried it and found it to be correct. can you provide some more log information?

I tried this code python . /tools/test.py configs/cascade_rcnn/cascade_rcnn_r50_fpn_1x_coco.py . /work_dirs/epoch_2.pth --format-only --options "jsonfile_prefix=. /results", which successfully generated once on my Windows 10 computer, but did not generate any files on the Linux server, and then I changed "jsonfile_prefix=. /results" command several times, such as "jsonfile_prefix=. /maskresults", and no new files were generated on my computer or on the server. Then I directly modified the default parameter parser.add_argument('--eval-options', default={'jsonfile_prefix': '. /results'}, nargs='+', action=DictAction), which then successfully solved the problem.

@billfjj  So, have you found the reason?

@billfjj So, have you found the reason?

I didn't find out why this happened, I just debugged the code step by step and then changed the command line parameters and it worked

@billfjj So, have you found the reason?

I didn't find out why this happened, I just debugged the code step by step and then changed the command line parameters and it worked

OK


Apple Music lyrics not match

The lyrics on the Apple Music player often don't match, i.e. they're different from what's playing, they're often from a previously played song or a song in my library.

https://github.com/tomakino/CSLyric/releases/tag/v3.0-beta3


[gui] Hide console in windows

Issue details
In the latest version, using jadx-gui.bat will pop up a console window, and closing it shortly after will cause the entire program to exit.
Referencing the previous issue, it is suggested to hide this console. https://github.com/skylot/jadx/issues/65#issuecomment-104901107
Refer to jadx-gui/build.gradle.kts line 95:
tasks.existing(CreateStartScripts::class) {
	doLast {
		val newContent =
			windowsScript.readText()
				.replace("java.exe", "javaw.exe")
				.replace("\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS%", "start \"jadx-gui\" /B \"%JAVA_EXE%\" %DEFAULT_JVM_OPTS%")
		windowsScript.writeText(newContent)
	}
}

should change to
tasks.startShadowScripts {
	doLast {
		val newContent =
			windowsScript.readText()
				.replace("java.exe", "javaw.exe")
				.replace("\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS%", "start \"jadx-gui\" /B \"%JAVA_EXE%\" %DEFAULT_JVM_OPTS%")
		windowsScript.writeText(newContent)
	}
}

For temporary use, can change jadx-gui.bat:
line 22:
set JAVA_EXE=javaw.exe
line 36:
set JAVA_EXE=%JAVA_HOME%/bin/javaw.exe
line 69:
start "jadx-gui" /B "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %JADX_GUI_OPTS% -jar "%CLASSPATH%" %CMD_LINE_ARGS%

Jadx version
1.5.0
Java version
java 21.0.3
OS

[X] Windows
[ ] Linux
[ ] macOS

@ChineseAStar thanks for the fix :+1:
Turns out this was broken since migration to shadow jar in https://github.com/skylot/jadx/issues/1868#issuecomment-1553593985

The error is still/back in place :(
JADX 1.5.0 (from jadx.zip), Windows 11


How to handle empty CodeLenses?

VSCode Version: 1.8.1, 1.9-insiders
OS Version: All

So the vscode-java extension relies on the Java Language Server to provide CodeLenses to VS Code. We have, as per the language protocol, 2 calls:

document/codeLens: which lists all the places in the current document that might have references. This calls returns fairly quickly
codeLens/resolve: will actually compute all references to the given codelens (the ones currently displayed on screen), it's time a consuming operation.

In the case of vscode-java, when no references are found, we return/display 0 references as a codelens label, which is fairly annoying, as it eats some screen real estate.

Eagerly resolving codelenses during the document/codelens call would help but it is not an option, for performance reasons.
Even returning an empty label adds unnecessary pseudo-lines, moving some code off the screen.
So I was wondering: what's the best way to handle that use case? Is there a way to return special codelenses that would not generate these extra lines, or is this something that could be fixed at the vscode level, i.e, when the codelens label is empty, release that extra space? Or maybe there's another approach?
This relates to  https://github.com/redhat-developer/vscode-java/issues/148

Assigning a bunch of people because I am actually not sure who is best to answer this.

Yeah, there are with the January release two options:

You keep doing this and either say '0 References' or something like 'No References' which takes away screen real estate but has the big advantage of keeping things stable, or
You use the newly introduced onDidChangeCodeLenses-event to signal to the editor that the set of code lenses has changed (like after typing). That will allow you to take away lenses but it might result "nervous" UI because lenses or their space keep appearing and disappearing


No proper instruction!

Where is the instruction?

The Shopify theme gem is a command line tool that allows you to manage and edit theme files directly on your computer. This allows you to use your preferred code editing software opposed to the built in code editor available in the “Edit HTML/CSS” page of your store. Files can be manually or automatically uploaded, downloaded, and synced. Depending on how you develop themes and your personal preference, this can allow for a more enjoyable and streamlined workflow. If the command line is scary for you, check out the Desktop Theme Editor app.

Where is step one! Where do you get the command theme from? BS!

You should be able to install the gem uisng gem install install_theme

Yeah, it's odd that the actual install command is not in the readme... However it's a Ruby gem so you can find it easily enough by searching https://rubygems.org/ where you can find the command.
It's gem install shopify_theme btw :)

The link at the top of this repo has a section "Installation"...
http://shopify.github.io/shopify_theme/


Validation changes break Elasticsearch and Kibana logging

$ kubectl create -f es-controller.yaml
The ReplicationController "elasticsearch-logging-v1" is invalid:spec.template.spec.containers[0].ports[1].name: spec.template.spec.containers[0].ports[1].name: invalid value 'es-transport-port': must be a IANA_SVC_NAME (at most 15 characters, matching regex [a-z0-9]([a-z0-9-]*[a-z0-9])* and it must containts at least one letter [a-z], hypens cannot be adjacent to other hyphens): e.g. "http"

I've accidentally added a p1 milestone and can't see how to delete it.

I think we should file another bug against the validate code which I think is incorrectly rejecting my configs which don't have adjacent hyphens.

@bprashanth

You are over length.  We did change this very late in the game, but it was
that or never change it ever.
On Jun 27, 2015 2:25 PM, "Satnam Singh"<EMAIL_ADDRESS>wrote:

@bprashanth https://github.com/bprashanth
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/10452#issuecomment-116145368
.

Argh! Well the error message did not help.

@quinton-hoole can the e2e logging test be promoted out of flaky? This breakage should have been caught by that test.

Sure, I can promote  that test now. That error message is incomprehensible, in addition to being plain wrong. Is there an issue number to fix all this?

@thockin has corrected me: the error message is "right" in the sense that what I wrote was wrong, because now port names can't be more than 15 characters. I suspect others will run into the same problem so fine-tuning the error message would be good (happy to do it myself -- or leave it to the original author).

An error message like: "The name must not be longer than 15 characters and it must be composed only of the characters a-z, A-Z or a hyphen which must occur between letters."

@quinton-hoole also not the e2e logging test should not be promoted until this PR merges.

We have sort of resisted breaking errors down further, but maybe we
should.  Would it be useful if this had said:
"invalid value 'es-transport-port': too long.  Value must be a
IANA_SVC_NAME (at most 15 characters, matching regex
a-z0-9* and it must containts at least one letter
[a-z], hypens cannot be adjacent to other hyphens): e.g. "http"'
note the extra hint "too long".  We could probably do this for a lot of
error messages.  It might mean breaking regexes into distinct property
tests, but if it is more comprehensible....
On Sun, Jun 28, 2015 at 10:11 AM, Satnam Singh<EMAIL_ADDRESS>wrote:

@quinton-hoole https://github.com/quinton-hoole also not the e2e
logging test should not be promoted until this PR merges.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/10452#issuecomment-116299811
.

@bgrant0607 is it worth the risk to try to make API errors more friendly?
It will be logic changes..
On Sun, Jun 28, 2015 at 2:53 PM, Tim Hockin<EMAIL_ADDRESS>wrote:

We have sort of resisted breaking errors down further, but maybe we
should.  Would it be useful if this had said:
"invalid value 'es-transport-port': too long.  Value must be a
IANA_SVC_NAME (at most 15 characters, matching regex
a-z0-9* and it must containts at least one letter
[a-z], hypens cannot be adjacent to other hyphens): e.g. "http"'
note the extra hint "too long".  We could probably do this for a lot of
error messages.  It might mean breaking regexes into distinct property
tests, but if it is more comprehensible....
On Sun, Jun 28, 2015 at 10:11 AM, Satnam Singh<EMAIL_ADDRESS>wrote:

@quinton-hoole https://github.com/quinton-hoole also not the e2e
logging test should not be promoted until this PR merges.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/10452#issuecomment-116299811
.

Oh, to clarify my hastily written "incomprehensible" comment above (sorry 'bout that):
Current text:
The ReplicationController "elasticsearch-logging-v1" is invalid:spec.template.spec.containers[0].ports[1].name: spec.template.spec.containers[0].ports[1].name: invalid value 'es-transport-port': must be a IANA_SVC_NAME (at most 15 characters, matching regex [a-z0-9]([a-z0-9-]*[a-z0-9])* and it must containts at least one letter [a-z], hypens cannot be adjacent to other hyphens): e.g. "http"

Things I find confusing about the above (pretending to be normal K8s user):
spec.template.spec.containers[0].ports[1].name: spec.template.spec.containers[0].ports[1].name

Why is the above printed twice?
IANA_SVC_NAME

I have no idea what the above means, it is not documented anywhere (based on my Google search).  It only exists in the K8s code base.
at most 15 characters, matching regex [a-z0-9]([a-z0-9-]*[a-z0-9])* and it must containts at least one letter [a-z], hypens cannot be adjacent to other hyphens

Please either give me a proper regex that encapsulates all of the above, not a regex, plus a bunch of other confusing rules.  And/or give me a link to an accurate definition of the valid format.  And please fix the typo "it must containts...".
 e.g. "http"

It seems like we need more than one example, ideally one that includes hyphens and digits.  And perhaps a counter-example (e.g. "foo-bar but not foo--bar, a-much-too-long-name ..." etc)

PS: As discussed @thockin I don't think that it's necessary/worth the risk to break error messages down into sub-cases for v1.0.
But it would be great to fix this problem generally after v1.0.

Short fix: don't double print field names, make this error more helpful.  I can take this one.
Long-term fix: Add a clue field to ValidationError which indicates what actually went wrong.  Break down all validations into clue-able steps.  Make error message more helpful overall.


⚠ Bofrost.de has degraded performance

In e6913bf, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1285 ms

Resolved: Bofrost.de performance has improved in 5043f4e after 6 minutes.


Add annotations to scan jobs spawned by Starboard

See #356

I'd like to help with this issue.

Hi @krol3 @danielpacak
Do you folks mind if I pick this issue up if this issue hasn't been progressed upon yet? 😊

@yashvardhan-kukreja  You can take it

Thanks @krol3 :D

@danielpacak Here if I am not wrong, the user (who raised the discussion) wanted to provide custom annotations in runtime.
So, I am thinking something like a new argument called, say, custom-scanjob-annotations (we can go with a better name :P) which the user would be able to provide as a part of the starboard scan vulnerabilityreports command. Multiple annotations can be just added in a comma-separated manner which is pretty k8s compliant too.
For example, starboard scan vulnerabilityreports foo --custom-scanjob-annotations kube2iam.rolearn=arn:aws:iam:bla,custom-annotation-key1=value1
This will ensure to annotate the scanjob (and the pods it spins up) with the annotations:
kube2iam.rolearn: arn:aws:iam:bla and custom-annotation-key1: value1

👋 @yashvardhan-kukreja I think command line args will do the job for Starboard CLI but we have to provide the same behavior for Starboard Operator. Both read config from the starboard ConfigMap (see https://aquasecurity.github.io/starboard/v0.10.3/settings/). So IMO it would be better to add custom annotations to the starboard ConfigMap. WDYT? This will allow the following flow:
# 1. Init starboard
starboard init
# 2. Patch starboard ConfigMap to customize config, e.g. kubectl patch cm starboard -n starboard ...
./add-custom-annotaions.sh
# 3. Scan for vulnerabilities
starboard scan vulnerabilityreports deploy/nginx

Yep, Good point. Let's go ahead with making the user provide custom annotations via the ConfigMap.
Although, I am still a lil skeptical about running a shell script like "add-custom-annotations.sh" to patch the cm.
Doesn't look the most UX-friendly, in my opinion.
May be, some other cleaner approach can be used?
Like for example, a starboard command like starboard configure-custom-annotations annotation1=value1,annotation2=value2 and behind the scenes, this command will patch the cm.
This command can be run after starboard init hence, replacing the bash script to patch the cm.
And technically, the user can still use the shell script if they want to, hence, providing the user the flexibility as well.
So, wdyt about this approach?
PS: This approach just came on top of my mind. We can even think of some cleaner or more efficient approach than this. But yeah, for now, I'd love to know what do you think of this approach of the starboard configure-custom-annotations command

The ./add-custom-annotations.sh was just a placeholder to indicate that a user will have a chance to customise default config params and add annotations. Whether it's kubectl patch or starboard subcommand is secondary. We can always improve the UX in subsequent PRs. For UX / editing config I'd leverage the existing starboard config command, which currently works in read-only mode.

Got it, sounds good 👍🏼

👋 @danielpacak I have made the PR dealing with this feature. One thing to note here is that I haven't added any functionality/sub-command around making the user input the custom-annotations in the first place, as that topic is still under discussion.
Meaning, as of the current state of the PR, the user (or us while testing) would have to manually patch the starboard configmap with the custom annotations.
For further reference around this, you can checkout the description of the above PR.
Thanks!

We prefer smaller tasks / PRs. Do one thing at a time and then incrementally improve in the subsequent PR. Otherwise we're dealing with giant PRs that are hard to comprehend and validate. That said, it's perfectly find to add new config param that's recognised by Starboard and document that it has to be patched manually. In the next iteration we might think of flags or command-line args.

Sure, Daniel. Will make sure to cook smaller PRs at one time from next time onwards.
Speaking of the functionality in which custom annotations will be fed:
For CLI: Using the starboard config command to feed the custom annotations
For the Operator: the custom annotations can be fed via kubectl patch or via values.yaml at the time of helm installation.
Is that fine?

Could we also add in the ability to update Trivy pod resource limits requested in !572?

Could we also add in the ability to update Trivy pod resource limits requested in #572?

According to contribution guidelines and to facilitate maintenance / code review we'll add resource limits and requests in a separate PR.

Hi @danielpacak , I guess we can create another issue to work upon the functionality/capability to allow the user to feed the scanJob annotations comfortably instead of doing so via kubectl patching the configmap.
We can track the discussion further around this topic here https://github.com/aquasecurity/starboard/discussions/595 :)

I'd start with the discussion if we really need such functionality. If you look at the numer of available configuration settings maintaining them as CLI flags might be more expensive than just patching a ConfigMap. At least at this stage of this project. On the other hand there are structured config params such as annotations, tolerations, resource requests/limits that are hard to represent as CLI args / flags. We could use a discussion / thread to propose a few possible options for CLI before we jump on coding all that.

Yep, that's what I was conveying too that we can keep track of the ideas around this functionality on that "Discussion" thread which I created.
I was just exemplifying when I suggested that we could feed scan job annotations via cli args 😊


SEO not working

Hi again, I just thought I'd make you aware that the SEO part of this starter doesn't seem to work correctly. Currently it seems that basic SEO is not set such as title and description. I haven't found the source of the problem yet but none of the basic stuff seems to get set.

More info
I noticed this when I saw Google displaying "This app works best with JavaScript enabled." as the site title when the site is listed in search results.
I then used a few common SEO crawlers on both my site and the demo site of this project and they showed that neither sites had title or description set (amongst other things).
It seems strange because when inspecting the elements the meta tags are present and with the correct values but they do not seem to get picked up by the crawlers.

I will continue to report my findings, looking into this.


Experimentat - Static Malware Analyzer in RUST

Background
This is our first  Malware Static Analyzer written in RUST.
Static analysis is a well research topic, where recurrently Researches are able to achieve 95-97% detection using a series of features.
Requirements

Write a Rust app, that uses certain library to parse and extract features from a Windows PE File Format. (exe, dll, etc)
Use the following for references for the features that you want to extract.

https://github.com/HydraDragonAntivirus/HydraDragonAntivirus/blob/main/machinelearning/train.py
https://github.com/Anti-Malware-Alliance/research-papers/blob/main/Static Malware Detection and Analysis using Machine Learning Methods.pdf

You can use the following datasets, or use daily malware o collect some malware samples for testing.

https://www.kaggle.com/datasets/albertozorzetto/cic-andmal-2020-dynamic-static-analysis
https://github.com/HydraDragonAntivirus/HydraDragonAntivirus?tab=readme-ov-file

You dont need to add all features, just some to demostrate the extraction and build of the train set.
The output should be in a pandas like format, row and columns, in a parquet file, to be using in a Python pipeline to train models.

You can also look into some of the Features from this model / project.
https://github.com/Kiinitix/Malware-Detection-using-Machine-learning


Support webpack 5

When trying to upgrade my project to webpack 5, it seems to fail with ts-tranform-graphql-tag.
(node:1904777) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
        Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
        Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
(node:1904777) [DEP_WEBPACK_MODULE_ID] DeprecationWarning: Module.id: Use new ChunkGraph API
✖ ｢wdm｣: ModuleNotFoundError: Module not found: Error: Can't resolve './graphql' in '/home/dori/Projects/Work/Project/v3/client/node_modules/graphql'
Did you mean 'graphql.js'?
BREAKING CHANGE: The request './graphql' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/Compilation.js:1478:28
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:648:13
    at eval (eval at create (/home/dori/Projects/Work/Project/v3/client/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:233:22
    at eval (eval at create (/home/dori/Projects/Work/Project/v3/client/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:357:22
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:116:11
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:577:24
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:715:10
    at finishResolved (/home/dori/Projects/Work/Project/v3/client/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:278:11)
✖ ｢wdm｣: resolve './graphql' in '/home/dori/Projects/Work/Project/v3/client/node_modules/graphql'
  using description file: /home/dori/Projects/Work/Project/v3/client/node_modules/graphql/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: /home/dori/Projects/Work/Project/v3/client/node_modules/graphql/package.json (relative path: ./graphql)
      Field 'browser' doesn't contain a valid alias configuration
      /home/dori/Projects/Work/Project/v3/client/node_modules/graphql/graphql doesn't exist

Using ts-tranform-graphql-tag 0.2.1
I tried adding fullySpecified: false as recommended in this thread
  {
    test: /\.tsx?$/,
    exclude: /node_modules/,
    resolve: {
      // FIXME: graphql resolution
      // https://github.com/graphql/graphql-js/issues/2721
      fullySpecified: false,
    },
    use: [
      {
        loader: "babel-loader",
        options: {
          presets: ["@babel/preset-typescript", "@babel/preset-react"],
          // used to auto-generate proptypes from typescript in dev mode
          plugins: [
            [
              "babel-plugin-typescript-to-proptypes",
              { comments: true, strict: true },
            ],
          ],
        },
      },
      {
        loader: "ts-loader",
        options: {
          getCustomTransformers: () => ({ before: [getTransformer()] }), // compile AST queries
        },
      },
    ],
  },

Which gives me different errors:
(node:1908967) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
        Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
        Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
(node:1908967) [DEP_WEBPACK_MODULE_ID] DeprecationWarning: Module.id: Use new ChunkGraph API
✖ ｢wdm｣: ModuleNotFoundError: Module not found: Error: Can't resolve './version' in '/home/dori/Projects/Work/Project/v3/client/node_modules/graphql'
Did you mean 'version.js'?
BREAKING CHANGE: The request './version' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/Compilation.js:1478:28
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:648:13
    at eval (eval at create (/home/dori/Projects/Work/Project/v3/client/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:233:22
    at eval (eval at create (/home/dori/Projects/Work/Project/v3/client/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:357:22
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:116:11
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:577:24
    at /home/dori/Projects/Work/Project/v3/client/node_modules/webpack/lib/NormalModuleFactory.js:715:10
    at finishResolved (/home/dori/Projects/Work/Project/v3/client/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:278:11)
✖ ｢wdm｣: resolve './version' in '/home/dori/Projects/Work/Project/v3/client/node_modules/graphql'
  using description file: /home/dori/Projects/Work/Project/v3/client/node_modules/graphql/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: /home/dori/Projects/Work/Project/v3/client/node_modules/graphql/package.json (relative path: ./version)
      Field 'browser' doesn't contain a valid alias configuration
      /home/dori/Projects/Work/Project/v3/client/node_modules/graphql/version doesn't exist

This might be related to this issue: https://github.com/graphql/graphql-js/issues/2721

Hi, @AdrienLemaire
I found that you are using babel-loader, I suggest you use babel-plugin-graphql-tag instead.


[Docs] Note about apiserver outside of cluster

This change is

test-docs-please

test-me-please

Coverage remained the same at 42.984% when pulling 8f3bb17627ddb5964f8b0e766b21c6b4cb0961b2 on nebril:docs-master-outside-cluster into ad6a29a9e4208d95941134d8f3736e9c84db7233 on cilium:master.

test-docs-please

test-me-please


Associate existing session with tracker

When custom metric is triggered taking care of user client id via cookie. Google analytics dashboard not able to tell how user get to that page when the custom metric was triggered e.g. It can't say that in the session where the event was triggered the user also visited 10 pages.
So basically when we create the tracker:
tracker = Tracker.create(ga_property_id, client_id=client_id)

Is there way to associate existing session looking into cookies instead of creating a new session every time?
Let me know if this is confusing, i will try to elaborate more on it. Thanks!


How to connect to AWS Glue Schema registry using C# .Net code ?

Looking for some C# sample code for connectivity to AWS Glue schema registry.
If any sample code using AWS .NET SDK will be helpful.

Hello,
Thanks for your interest in Glue Schema Registry. Support for .NET is on the roadmap. If you are looking to call Schema Registry APIs, you can use the Glue .NET SDK. Serializers / Deserializers in .NET are not officially supported. If you are interested in building one, you can refer to the wire format. It should be similar to this.

We are tracking C# support here. Resolving as duplicate.


[bubb] Teaching bubble for starting your bot not popping up

Describe the bug
The teaching bubble prompting to start your bot after setting up LUIS/QnA isn't showing.

Version
Version:  2.0.0-nightly.241915.204a82
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
macOS
To Reproduce
Steps to reproduce the behavior:

Create conversation core bot
Go through LUIS and QnA key setup from rocket menu, selecting existing resources
Should get a teaching bubble prompting to start my bot, but it's not popping up for me

cc @Dewain27

This was a regression.  I have fixed this in #7567

Shiproom - approved as part of Fit & Finish work today


Bugfix/string data

There was a bug, where String.data would overflow Int8 if String.utf8 had characters with CharacterCode > 127

thanks! (:


[5.10] Update related dependencies branch to release/5.10

We cut release/5.10.

@swift-ci Please test

Thanks!

error: swift-llbuild is required using two different revision-based requirements (release/5.10 and main), which is not supported

We need to update swift-driver simultaneously, I guess.

https://github.com/apple/swift-driver/pull/1440
@swift-ci Please test

@swift-ci Please test


bdd2csv: inside the VM?

bdd2csv extracts a CSV out of the database.
In my experience, the process can be quite long (and can require lot of memory).
I suspect it is long because of the connection with the database hosted by the ISTIC virtual machine.
A possible workaround would be:

to execute bdd2csv inside the VM (the exchanges with the database would be "local" in this cas)
to offer a way to download the resulting CSV

Two unclear points that need some tries/experiments:

the VM should have a lot of memory to build the CSV
does the solution really reduce the time? (I assume that the cost of downloading the CSV is less than the cost of exchanging with the database)

When i was writing bdd2csv i made tests, the things that take all the time are files. When you make the SQL request for config, output, std or err log it will take longer than whitout. Otherwise the ISTIC connection is pretty fast ( ~90 Mb if i remember well), almost the same than the IRISA


fix error

I created this PR from my iPad using GitHub Codespaces ✨ 😍

@jph00 fixing a minor error ... will go ahead and merge.


⚠ Bofrost.at has degraded performance

In 33844b6, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1372 ms

Resolved: Bofrost.at performance has improved in 92b803b after 7 minutes.


A11y_SQL Azure Data Studio_NewTables_Cloumns_Info & Relationship: NVDA doesn't announce the selected item as selected in Type combobox.

GitHub Tags: #A11yMAS;#A11yTCS;#Win11;#WCAG1.3.1;#DesktopApp;#A11ySev2;#NVDA;#SH_SQL Azure Data Studio_May2022;#SQL Azure Data Studio;
Environmental Details:

VS Code: 1.59.0 Electron: 13.6.6
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0

OS Details :
Microsoft Windows 11
Screen Reader :
NVDA Version:2021.3.5
Repro Steps:
1.Add connection to the server with appropriate credentials.
2.Tab till Servers in left navigation Bar.
3.Tab till tables and Press enter
4.Tab till New tables and press enter
6.Tab till column and press enter.
7.Check the type column 3 selected item is announced as Selected or not.
Note:
Same issue found for all the dropdown
"Please do not close this bug. This bug should only be closed by TCS, C+AI Accessibility or the Divisional Driver"
Actual results:
NVDA doesn't announce the selected item as selected in Type Combo box.
Expected results:
NVDA should announce the selected item as selected in Type combo box.
User Impact:
Users will get confuse to differentiate whether the item is selected or not.
Attachments:

JAWS Behaviour

#Closed;


fixes typos on Test-DbaTempDbConfig

Type of Change

[x] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
Fix test not returned (caught also by PSSA)

tearing it up! Thanks bud! 🎉


Fix api-linter error in system GetComputationParticipant.

Fixed an error introduced in #1657

This change is


bug(web): duplicate posts

When you make a post, instead of it becoming 1 post, it duplicates it.
The possible issue might be that we're splitting the array?

Fixed https://github.com/oasis-sh/oasis/commit/afc60e8096fb053960bdf033d1afbd2f62f0956b


feat: move badge new to gix-cmp

We used to had a "Badge NEW" cmp in NNS-dapp. If this component ever gets needed again we can move it to the gix-cmp.
Original code removed from NNS-dapp in 👉 https://github.com/dfinity/nns-dapp/pull/1713

One year old issue, I guess we can safely close it.


keras dynamic rnn fails with TimeDistributed

Currently, Kers uses a RNN based implementation for TimeDistributed.call.
def call(self, X, mask=None):
        # no batch size specified, therefore the layer will be able
        # to process batches of any size
        # we can go with reshape-based implementation for performance
        if input_shape[0]:
            # batch size matters, use rnn-based implementation
            def step(x, states):
                output = self.layer.call(x)
                return output, []

            last_output, outputs, states = K.rnn(step, X,
                                                 initial_states=[])
            y = outputs
        else:
        input_length = input_shape[1]
        if not input_length:
            input_length = K.shape(X)[1]
        X = K.reshape(X, (-1, ) + input_shape[2:])  # (nb_samples * timesteps, ...)
        y = self.layer.call(X)  # (nb_samples * timesteps, ...)
        # (nb_samples, timesteps, ...)
        output_shape = self.get_output_shape_for(input_shape)
        y = K.reshape(y, (-1, input_length) + output_shape[2:])
        return y

Notice, in calling the rnn, the initial states are set to be []. However, in the new K.rnn implementation with dynamic rnn, an exception is raised for initial_states = [].
if nb_states == 0:
            raise Exception('No initial states provided.')

@fchollet Also I think current dynamic loop implementation assumes too much about the input and state shapes. It assumes that states are always 2D, and input sequences are always 3D. It also assumes that the first dim of all states are batch_size.


Fix UseOffsetPaging exception on static resolvers in static TypeExtension class

I moved the AddOffsetPagingArguments in the OnBeforeCreate to avoid to add two times the attribues.
I think it's only a workaround and there is a bug on how the static types are handled.
The OnCreateDefinition is called twice for the static resolvers and if the Arguments are added too early they are duplicated when the method is called the second time.
The only difference is StaticObjectTypeExtension.Configure()

Even if it is not a valid correction, I hope the added test case will help.
Closes #5733
@tobias-tengler

@vbornand  Thanks for the contribution! This seemed like symptom control to me so i investigated a bit.
The problem is essentially that we call .CreateDefinition() twice on the argument. In case of a static class we create a non generic extension type and then discover the properties manually:
https://github.com/ChilliCream/graphql-platform/blob/main/src/HotChocolate/Core/src/Types/Types/StaticObjectTypeExtension.cs#L41
This is the same method that we also use when we use generic object types.
We call CreateDefinition there the first time:
https://github.com/ChilliCream/graphql-platform/blob/main/src/HotChocolate/Core/src/Types/Types/Descriptors/ObjectTypeDescriptor.cs#L179
Once we configured the object type extension we create the definition of the type. There we call CreateDefinition the second time:
https://github.com/ChilliCream/graphql-platform/blob/main/src/HotChocolate/Core/src/Types/Types/Descriptors/ObjectTypeDescriptor.cs#L87
So a classic how did that ever work moment.
What we do when we infer statics, is that we use a non generic ObjectTypeExtension but infer the fields as it was a ObjectTypeExtension. During the initialisation of the ObjectTypeExtension the fields appear to be added with .Field(...). They are on the descriptor but they have already completed arguments, but the ObjectTypeExtension does know this and treats it like fields with non completed arguments. We complete twice, add the arguments twice => kaboom
I have extended your pull request here: https://github.com/ChilliCream/graphql-platform/pull/5763


Ask user if they want to send shift-enter to Interactive Window

First time shift enter + Jupyter installed = prompt user to ask for changing the global setting to send shift-enter to ipython window.

Hi @IanMatthewHuff ,
that is a great idea.
What I would like more is, that I have one Shortcut for running a cell and another one for running the selected code within terminal
So within an .py file in "Jupyter Style" (#%% Run Cell), I can easily decide, if the code shall run on Jupyter or Terminal.
Eric

@EED85 Hmm, I think that our current implementation does actually hide the send to terminal command when you start sending selection to the interactive windows instead. But I see your point that both command could be useful. I'll look into it.

thx :-)

What I would like more is, that I have one Shortcut for running a cell and another one for running the selected code within terminal

Indeed, would be great to have both; it would be much more flexible than a global setting.
Use case: I have a running kernel with tons of loaded stuff; being still able to send things to terminal lets me quickly test out things and scripts without touching the main kernel.

@aldanor , I believe what you're asking for is already possible within VS Code.
If you go to File | Keyboard Shortcuts, you can get to something like this:

In that image I double clicked on the second 'Run Selection' command and changed the keyboard shortcut to 'ALT+ENTER'. Now 'SHIFT+ENTER' sends a cell/line to the interactive window and 'ALT+ENTER' sends it to the terminal.

Hi,
I am using the same shortcut for both (shift+Enter).
When the Cursor is in a cell, then the code will be executed within PYthon interactive
when code is highlithed it will be executed in the terminal


tools/cmd/go-contrib-init: panic if not in directory

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version
go version devel +eab99a8d54 Mon Jun 26 21:12:22 2017 +0000 darwin/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sm/go"
GORACE=""
GOROOT="/Users/sm/src/go"
GOTOOLDIR="/Users/sm/src/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/l6/16ml7k9d3j728cv1qnrwsp280000gn/T/go-build974224850=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?
Following along with the gophercon workshop I ran go-contrib-init -repo scratch outside the scratch directory and the command panicked. The command worked if I cd'd into the scratch directory.
What did you expect to see?
go-contrib-init -repo scratch
All good. Happy hacking!
Remember to squash your revised commits and preserve the magic Change-Id lines.
Next steps: https://golang.org/doc/contribute.html#commit_changes

What did you see instead?
go-contrib-init -repo scratch                                                             rc: 2
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
main.detectrepo(0x60, 0x0)
        /Users/sm/src/golang.org/x/tools/cmd/go-contrib-init/contrib.go:54 +0x253
main.init()
        /Users/sm/src/golang.org/x/tools/cmd/go-contrib-init/contrib.go:27 +0x87

I seem to have had an older version of this tool.


APP CRASH ERROR

Hi Kiran,
me and some other people are getting the app crashed when open it on AA (black display), getting an error message like the one reported below.  I’m using the phone Honor 9.  Can you help to solve this problem? Why is it crashing? What I have noted is that unistalling and installing again AA from the Play Store the app comes back to work normally, but only for once, at the second connection still have the same error and crash.  Thanks in advance for your support in solving this issue.
"Maxcar crashed
java.lang.RuntimeException: Unable to create serrvice com.thekirankumar.youtubeauto.service.CarService: java.lang.RuntimeException:com.google.android.gms.car.b:java.lang.reflect.InvocationTargetException at andorid.app.ActivityThread.handleCreateService(ActivityThread.java:3362) at andoidapp.ActivityThread.-wrap5(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1662)"

Which phone and which version of android ?

Hi, the phone is Honor 9 (huawei) with Android 7.0 EMUI 5.1
Ottieni Outlook per Androidhttps://aka.ms/ghei36

From: Kiran Kumar<EMAIL_ADDRESS>Sent: Wednesday, February 7, 2018 6:53:05 AM
To: thekirankumar/youtube-android-auto
Cc: Maxdashsu; Author
Subject: Re: [thekirankumar/youtube-android-auto] APP CRASH ERROR (#32)
Which phone and which version of android ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/thekirankumar/youtube-android-auto/issues/32#issuecomment-363665247, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aig7Ls7tO4uqj2tk0nQAjYPjVn6zY3Yjks5tSTpBgaJpZM4R608R.

Huawei phones dont work well with Android auto. Im guessing even Waze app on auto doesnt work well for you right ?
Many have reported here https://forum.xda-developers.com/android-auto/android-auto-general/android-auto-compatible-huawei-phones-t3744725/page2


bors

We need bors-ng! And then I need to stop pushing directly to master, probably.

I added bors-ng to the repo but not sure if it works.

Looks like it's working.


Can not run program" adb ": error = 2, No such file or directory"

When I press the android reload js button, the following message appears.
"Unable to run the commandline: Can not run program" adb ": error = 2, No such file or directory"
Let me know how to fix it!

you must add this adb command to your PATH variable.

"brew cask reinstall android-platform-tools"
Resolved by command.
Thanks for the answer. ~

It is a very useful and good plugin.
I can not develop react-native app without this.

thx so much, this plugin is first for my personal daily react-native dev, then i decided to share to peoples like me.


By default, siad is detached and outlives the UI

Mentioned as desired behavior in #205

I'm not sure about this, as it means siad has to be closed via siac, which most newbies aren't aware of.
Maybe best would be a confirmation dialog when closing that asks if you want to shut down siad as well?

I think the desired behavior is that closing the window, will simply minimize Sia-UI.
Sia-UI should be shut down with either Ctrl+Q, selecting Quit in a window menu, or a Quit option in a toolbar menu. This is how most UIs that want to be persistent do it.
Quit'ing Sia-UI should then also shutdown siad.

Ah, good to restart the conversation about desired behavior then!


Debugger integration

If I press Ctrl+Cmd+Z and enable Chrome Debugging, I get the default "Welcome to React Native!" page in the simulator, and it seems I am not running the Om-driven app anymore.
Shouldn't it be possible to use the Chrome Debugger exactly as I do in regular Om apps (with source mapping and everything)?

Nothing has yet been done to attempt to integrate anything under the Ctrl+Cmd+Z menu. (There are likely architectural-level issues to sort through, given Ambly's remote compilation model.)


AuthType shibboleth configured without corresponding module

Getting this error in docker error logs
AH01796: AuthType shibboleth configured without corresponding module
when calling
https://domain/generateToken?room=r1

Hi @ddilushan,
Thanks for reporting this issue.
Do you have some seen issues on the docker build step ?
And did you run the generate_config_file.sh script before building the docker file ?
Regards,
Damien.

it was due to a problem with SERVER_NAME variable. You can close this

That's fine.


Changes to cloud filtering quality control

Remove the cut on cloudy_pix_frac.
Investigate if it's possible to have the median operation ignore the 0 pixel values (those that have been cloud masked). For example could try adding additional images with 255 pixel values at cloud mask locations when you add 0 pixel values, to ensure that real land pixel values are closer to the middle, and hence that the median operation is successful.
Modify check_img_ok such that the check happens on sub-images, rather than the full size image.

Investigate if it's possible to have the median operation ignore the 0 pixel values (those that have been cloud masked). For example could try adding additional images with 255 pixel values at cloud mask locations when you add 0 pixel values, to ensure that real land pixel values are closer to the middle, and hence that the median operation is successful.

Seems like the median operation should already include this behaviour https://developers.google.com/earth-engine/tutorial_api_05#masking


Issue regarding loading the product list into the Product TableView

Hi mrwim in the ProductDialogueController there is an issue closing the window while pressing cancel
@mrwim

What's the issue?

What's the issue?

The issue has been resolved sorry for any inconvenience !


yuki-iptv init at 0.0.15

Adding yuki-iptv
Closes: https://github.com/NixOS/nixpkgs/issues/269688
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg build yuki-iptv


Godot Editor hangs / crashes when adding second Omnilight in a 3d Scene

Godot version
v4.2.rc1.official [ad72de508]
System information
MacOS 10.15.7 - v4.2.rc1.official [ad72de508] - vulkan
Issue description
Godot Editor hangs / crashes when adding second Omnilight in a 3D Scene
Steps to reproduce
Step1 : Open the project
Step2 : The scene "test_baked_lightmap" should open by default
Step3 : Try adding 1 more "Omnilight3D" to the scene. The Godot editor will get stuck there
Step4 : After adding the light, the Editor hangs and user can't click on anything. I have to kill & restart the editor. On restart the 2nd Omnilight will not be present in the scene. So pratically its not possible to add a 2nd Omnilight
Minimal project to reproduce the issue:
Minimal reproduction project
Uploading squash_the_creeps_for_zip.zip…

I think the project couldn't upload in the earlier post. So here it is:
squash_the_creeps_for_zip.zip

Maybe a mac problem, can't reproduce on my windows machine. (And your test scenes are sooooo cute, I love it!!!)

I can't reproduce the issue on Linux either, with AMD Radeon RX Vega M.
What kind of Mac are you on? And what GPU?
Can you reproduce the issue in 4.1.3-stable? If not, can you test intermediate 4.2 dev snapshots to pinpoint when the bug appeared? https://godotengine.org/download/preview/

I can't reproduce it on M1 Mac. Adding multiple additional Omnilight3Ds works fine and lights are functional.
What GPU / Mac model are you using?

@akien-mga
Yes the bug is still present in:
v4.2.rc1.official [ad72de508]


Pagekit wont load on my wamp 2.5 testing / development server and displays error!!

. During the install I get error message The "https://pagekit/packages.jason" file could not be downloaded: php_network_getaddress: getaddress: getaddrinfo failed: no such host is known. failed to open stream: php_network_getaddress:getaddrinfo failed: no such host is known.

Did you try another browser?

did you manually type the url in your post or did you copy it?
if you copied it, did you set "pagekit" in your hosts file to point to your localhost and did you create a vhost for wamp?
Usually you should just leave the url at localhost, unless you have a dedicated development environment running multiple applications, in which case using multiple vhosts is recommended.

Similar problem, installation by default on a hosting (in different browsers: Firefox, Chrome) -
The "https://pagekit.com/packages.json" file could not be downloaded: failed to open stream: Connection refused

The next Pagekit release (and current dev branch) will install without external connections. So this issue is circumvented for the installer, but in certain circumstances not for the marketplace.
If the issue persists, please open a new issue.


Add ability to set game picture

Looks like currently there is no way to set game preview picture.
https://github.com/gogcom/galaxy-integrations-python-api/blob/master/src/galaxy/api/types.py#L94-L105
It would be nice if you add ability to set game preview picture.

I see you have figured this out (#10), but indeed game info is not supposed to be imported along with game ids/titles.

I wanted to add integration with my service. But alas. Add at least the ability to connect to your own JSON service.


Opening multiple OpenDAP paths with open_mfdataset fails

I'm trying to open multiple NetCDF files hosted on OpenDAP on a THREDDS server, using xarray.open_mfdataset(), but I get an error. If I open only one file (but still with open_mfdataset()), it works, if I open two, it doesn't.
For example, this works just fine:
import xarray as xr
chunks = {'time' : 1, 'depth' : 1}
paths  = [
    'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022000.nc',
    ]
d = xr.open_mfdataset(paths, chunks = chunks)

while this doesn't:
import xarray as xr
chunks = {'time' : 1, 'depth' : 1}
paths  = [
    'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022000.nc',
    'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022100.nc',
    ]
d = xr.open_mfdataset(paths, chunks = chunks)

I'm running this in a jupyter notebook, and I don't get any output in the notebook, it just keeps running, while in the terminal it prints the following
CURL Error: Failed initialization
curl error details:
CURL Error: Failed initialization
CURL Error: Failed initialization
CURL Error: Failed initialization
syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR
context: !�zF^@L������@L�Ы�J�@L�y@L�G`Lp@L�X�ڭ@L�/��a@L���@L��{�:@@L�Hl�D@L���i@L�f���@L�>����@L�x��f@L��DA�h@L�����@L��ڭ�M@L�u���@M
CURL Error: Failed initialization
curl error details:
CURL Error: Failed initialization
CURL Error: Failed initialization
syntax error, unexpected WORD_WORD, expecting $end
context: Dataset { Structure { Float64 lon[Y = 902][X = 2602]; } lon;} fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022100.nc;Data^:
CURL Error: Failed initialization
CURL Error: Failed initialization
CURL Error: Failed initialization
syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR
context: �@��&��D^@�h�N�{@��I$�@B�

and from there on, it just degenerates into printing more garbage.
Isn't this supposed to work just fine?
I'm not sure if this is relevant, as I don't know if xarray and netCDF4 use the same backends, but in any case, the following works just fine. At least that suggests the problem isn't at the server side.
import netCDF4 as nc
d = nc.MFDataset([
    'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022000.nc',
    'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022100.nc',
])

I'm running xarray version 0.9.1, and netCDF4 version 1.2.4, and python 3.5.1, all installed with Anaconda, on a Mac.

Full disclosure, I am working with the same project as OP, but I am using a Linux machine (Ubuntu 16.04 LTS), having gotten the same package versions as OP, with Python 3.5.1 from Anaconda.
The problem is reproducible also on my machine, and I've done some more digging:
Tracing the different functions invoked from the first call to open_mfdataset() goes like this:
open_mfdataset()
-> auto_combine()
-> _auto_concat()
-> concat()
-> _dataset_concat()
-> _calc_concat_over()
-> differs()
-> equals()
Now, within the equals(), xarray tests for equality, and is """True if two DataArrays have the same dimensions, coordinates and  values; otherwise False."""
With the example files OP tests for, all calls to equals() works fine until it reaches the variable "lat" (long name: latitude) (note that I am not sufficiently versed in these kinds of datasets to tell if "lat" is a variable or a coordinate, but at least it is treated as different than, say, "X", "Y" and "time".). Once the equals() function is invoked to tell if dataset[1:] is equal to dataset[0], it starts spitting out the CURL error.
This information does not illuminate the problem for me, but perhaps for any of you.

Does it work to load one of these single datasets completely into memory, e.g., by calling .load()?
There might be a general issue with loading the "lat" variable that only appears with open_mfdataset because it does the check explicitly.

Here I've got some more info:

Directly pertaining to your question, shoyer, with,

d = xr.open_mfdataset([
	'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022000.nc',
])
d.load()

I get the same CURL Error: Failed initialization
However, skipping .load() solves that particular problem when having only a single file in xr.open_mfdataset(), as this works fine:
d = xr.open_mfdataset([
	'http://thredds.met.no/thredds/dodsC/fou-hi/norkyst800m-1h/NorKyst-800m_ZDEPTHS_his.an.2017022000.nc',
])
fu = RectBivariateSpline(d.X[0:].values, d.Y[675:].values, d.u[0, 0, 675:, :].values.T)

If I skip the .values I get a Request too big error, but I do not know if it is SciPy or xarray that raises that error.

If I download several of the thredds*.nc files to my local machine, and then use xr.open_mfdataset('DataSets/*.nc') it all works beautifully: I do not get CURL errors, nor do I need to use .values in my interpolator call.

I tried following the call to .load() -> dask.array.compute(*lazy_data.values()) -> results = get(dsk, keys, **kwargs). At this point it spits out CURL errors. Dask != xarray, so perhaps the error is not with the xarray package at all.

When using open_mfdataset() to open a single local file, and then .load()-ing it, I get a memory error from dask, even if, by number, the file I am trying to load should fit in my computer's memory. This is ''an issue with load()'', but may not be related at all to the remote access problem we are trying to figure out.

I asked the people hosting the files if perhaps there were some access restrictions that might be the issue here, but they were not aware of anything.

What conclusions to draw from this I don't know. I'll make another pass later and see if perhaps I can identify exactly what is different when loading remote VS local files, in case that could tell us something. At least it is clear that when calling the .load() directly, my computer does play nice, although it seems to break for different reasons when loading remote VS local files. Also, referring back to my previous comment, it does not seem that the single VS several file openings break at the same point either, given that the equals() function does not call .load(), although perhaps it does something similar in order to do the check.

Regarding the Request too big error, I believe this comes from the server. The paths in the examples above are publicly available files from the Norwegian Meteorolgical institute, and I believe they cap downloading via OpenDAP at 500 MB per request (though you can download the NetCDF files via http, and these are all larger than 500 MB, see http://thredds.met.no/thredds/catalog/fou-hi/norkyst800m-1h/catalog.html ).


release to production

Coverage remained the same at 100.0% when pulling c0fab6268968762248e90405f8870ee288747ad7 on dev into 66170e76f193e58b9162fc50337cac0ec26af98e on production.


ANSI/IEEE Std 91/91a-1991 Symbols for the gates

From Christian Kison:
The idea is to replace standard gates with their corresponding ANSI symbol.
E.g. https://de.wikipedia.org/wiki/Datei:Logic-gate-and-us.svg AND GATE
First of all this helps ASIC reversing. Secondly, this might turn out to be an good orientation-helper. Recognizing a place with like 5 XORS is easier, compared to seeing rectangles everywhere. (Its the same for the IDA graph view in software reversing.) Thirdly fastens reversing as "default" subcircuits are seen faster. No need to look for the type of every gate in the rectangle.

currently out of scope, might come back to it later


Syntax error from concurrent/futures

pipenv install

throws an error. I also see this doing a variety of other tasks, including pipenv lock. This occurs in multiple projects. I can get rid of the problem by reverting from 11.1.3 to 9.0.1.
I get the same error as #1553, but the error occurs all the time, and I'm not in a virtualenv.
Describe your environment

OS Type MacOS 10.13.1
Python version: $ python -V 3.6.2
Pipenv version: $ pipenv --version pipenv, version 11.1.3

Expected result
Not expecting a traceback.
Actual result
~/code/python/scratch/protobufs $ pipenv install
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
kages/pipenv/patched/pip/index.py", line 31, in <module>
    from pip.wheel import Wheel, wheel_ext
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/pip/wheel.py", line 6, in <module>
    import compileall
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/compileall.py", line 20, in <module>
    from concurrent.futures import ProcessPoolExecutor
  File "/usr/local/lib/python3.6/site-packages/pipenv/../concurrent/futures/__init__.py", line 8, in <module>
    from concurrent.futures._base import (FIRST_COMPLETED,
  File "/usr/local/lib/python3.6/site-packages/pipenv/../concurrent/futures/_base.py", line 381
    raise exception_type, self._exception, self._traceback
                        ^
SyntaxError: invalid syntax

Steps to replicate
Pipfile:
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]

protobuf = "*"

[dev-packages]

[requires]

python_version = "3.6"

Commands:
pipenv install

cannot reproduce

python3  -m pip freeze:
background==0.1.1
certifi==2017.11.5
chardet==3.0.4
click==6.7
cycler==0.10.0
first==2.0.1
flake8==3.5.0
futures==3.1.1
gmplot==1.2.0
idna==2.6
janus==0.3.0
matplotlib==2.1.2
mccabe==0.6.1
mpmath==0.19
msgpack-python==0.4.8
numpy==1.14.1
pew==1.1.2
pip-tools==1.9.0
pipenv==11.1.4
py==1.4.34
pycodestyle==2.3.1
pyflakes==1.6.0
pyparsing==2.2.0
pyserial==3.4
python-dateutil==2.6.1
pythonz-bd==1.11.4
pytz==2018.3
requests==2.18.4
resumable-urlretrieve==0.1.5
semver==2.7.8
six==1.10.0
sympy==1.1.1
urllib3==1.22
virtualenv==15.1.0
virtualenv-clone==0.3.0
websockets==4.0.1

@kennethreitz #1553 two days ago, mine yesterday, and #1603 today.
Thats a pretty casual dismissal given the latest version of pipenv is unusable for me, and if those guys are experiencing the same behavior then they can't either.

just keeping tickets clean, we're working actively on both closed and open tickets.

Fixed by c7c0613 and released

I ran into this problem under the following circumstances:

System Python is 2.7.x, pipenv is installed with pip with --user
Installed futures backport with --user due to other packages dependency
Attempted to create Python 3 virtualenv with pipenv install --python=...

Haven't tried if this is fixed in the latest release yet, but hopefully, it is.

Confirm I don't see the problem anymore after upgrading to 11.1.5.
Thanks!

I'm seeing this issue too, and I have the latest version of pipenv (11.5.2).

I'm guessing this is from having both python 2.7 and python 3.x installed, with pipenv installed on 2.7.
My suggestion is you pip uninstall pipenv && python3.6 -m pip install --user --update --no-cache-dir pipenv and make sure ~/.local/bin is on your path before other items, if that doesn't help y'all gotta start providing the output of python -m pipenv.help

I don't have pipenv on python 2 since I don't use python 2.
Here's the traceback:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/help.py", line 9, in <module>
    from .core import project, system_which, find_python_in_path, python_version
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/core.py", line 16, in <module>
    import background
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/../background.py", line 4, in <module>
    import concurrent.futures
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/../concurrent/futures/__init__.py", line 8, in <module>
    from concurrent.futures._base import (FIRST_COMPLETED,
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/../concurrent/futures/_base.py", line 381
    raise exception_type, self._exception, self._traceback
                        ^
SyntaxError: invalid syntax

Here's a gist of the file with the error, in case that helps.

A clean install should fix this. Can you run python -m pipenv.help | pbcopy and past here in a <details></details> tag?

I already clean installed pipenv.
That's what I put in the gist, but here:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/help.py", line 9, in
    from .core import project, system_which, find_python_in_path, python_version
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/core.py", line 16, in
    import background
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/../background.py", line 4, in
    import concurrent.futures
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/../concurrent/futures/__init__.py", line 8, in
    from concurrent.futures._base import (FIRST_COMPLETED,
  File "/Users/alokbeniwal/Library/Python/3.6/lib/python/site-packages/pipenv/../concurrent/futures/_base.py", line 381
    raise exception_type, self._exception, self._traceback
                        ^
SyntaxError: invalid syntax

I have the same error. Python 3.4-x86 on Windows 10 and pipenv: 11.5.2.
Running via GitLab Runner.

$ pipenv install --ignore-pipfile
Traceback (most recent call last):
  File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\pipenv.exe\__main__.py", line 9, in <module>
  File "c:\python34\lib\site-packages\pipenv\vendor\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "c:\python34\lib\site-packages\pipenv\vendor\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "c:\python34\lib\site-packages\pipenv\vendor\click\core.py", line 1063, in invoke
    Command.invoke(self, ctx)
  File "c:\python34\lib\site-packages\pipenv\vendor\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\python34\lib\site-packages\pipenv\vendor\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "c:\python34\lib\site-packages\pipenv\vendor\click\decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:\python34\lib\site-packages\pipenv\cli.py", line 62, in cli
    from . import core
  File "c:\python34\lib\site-packages\pipenv\core.py", line 16, in <module>
    import background
  File "c:\python34\lib\site-packages\pipenv\vendor\background.py", line 11, in <module>
    import concurrent.futures as concurrent
  File "c:\python34\lib\site-packages\pipenv\..\concurrent\futures\__init__.py", line 8, in <module>
    from concurrent.futures._base import (FIRST_COMPLETED,
  File "c:\python34\lib\site-packages\pipenv\..\concurrent\futures\_base.py", line 381
    raise exception_type, self._exception, self._traceback
                        ^
SyntaxError: invalid syntax
```

</details>


add search bar for react projects

so user can be able to search for projects, maybe based on programming languages, tech stacks e.t.c.

Hello , I would like to work on this


Environment layer

Open questions:

Should each Environment object keep track of its own mapping of custom object types and classes? The current implementation does not.
The stix2 validator is currently not run on data in any of the datastore implementations. Should this be brought back? One thought is that the API should make it difficult to create invalid STIX anyway, so this would be redundant. On the other hand, the API may not catch all errors, and trying to do so may result in duplicate code.

Closes #37

Codecov Report

Merging #52 into master will increase coverage by 0.72%.
The diff coverage is 98.59%.

@@           Coverage Diff            @@
##           master    #52      +/-   ##
========================================
+ Coverage   95.27%    96%   +0.72%
========================================
  Files          53     53
  Lines        4506   4626     +120
========================================
+ Hits         4293   4441     +148
+ Misses        213    185      -28

Impacted Files
Coverage Δ

stix2/core.py
100% <ø> (ø)
:arrow_up:

stix2/__init__.py
100% <100%> (ø)
:arrow_up:

stix2/test/test_environment.py
100% <100%> (ø)
:arrow_up:

stix2/sources/__init__.py
96.96% <100%> (+0.19%)
:arrow_up:

stix2/environment.py
100% <100%> (ø)
:arrow_up:

stix2/sources/memory.py
83.56% <77.77%> (+7.65%)
:arrow_up:

stix2/sources/filesystem.py
22.22% <0%> (+22.22%)
:arrow_up:

Continue to review full report at Codecov.

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

My first impression is that keeping track of custom types should be an Environment function. A user could conceivably want different settings in different parts of your application, which is the purpose of the Environment class. If we decide that we want to enable custom types outside of an explicit environment (which I'm not sure we do), that means we need to keep an implicit environment for that. The core parse function would then call the parse function for that environment. An implicit environment is also a step towards the "Workbench" API, so maybe we just defer the "implicit custom types" to that level, and require an explicit Environment otherwise.
I'm fine with not running the validator for every DataSource/DataSink interaction. If it's needed, we can later add a boolean validate flag when constructing them, but it shouldn't be the default. In production applications where you trust how the STIX content is created, it's just unnecessary performance overhead, and you can always implement validation yourself next to any calls to DataSource/DataSink operations.
I'd love to hear others' opinions, especially if I'm missing any use cases.

I agree that users will want different settings in different parts of their application. But specifically for custom types, my thinking was that the only time you would have a problem with registering them "globally" (like we do currently) is if you need 2 with the same name but different properties. In that case you would need to be able to register them to separate environments, but I assumed that is an unlikely occurrence.

I was also thinking that you might want to allow custom types in some environments but not others. That does bring up the questions of how to register the same custom types in multiple environments, whether to still have a set of "global" custom types that apply to all environments, whether environments should allow nesting/inheritence, etc. It gets pretty complicated and IMO over-engineered pretty quick.
I guess what I'm saying, though, is that which custom types are supported is an environment-specific setting, but I could be wrong. The fact that the Environment.parse function doesn't depend on anything else in the Environment is, to me, a sign that it doesn't belong there, or that there should be things it depends on.


Chunk not there when requested

Timings link
No response
Expected behavior
Server not crashing.
Observed/Actual behavior
Server crashes with IllegalStateException: Chunk not there when requested.
Steps/models to reproduce
It happens randomly, not really something that is provoked. Sometimes it will pass a whole day without crashing, sometimes it just happens.
Purpur version
Tested with git-Purpur-1559 (MC: 1.18.1), but I'm updating it to the latest version. However, I don't think there was major fixes on it.
Agreements

[X] I am running the latest version of Purpur available from https://purpurmc.org/downloads.
[X] I have searched for and ensured there isn't already an open issue regarding this.
[X] My version of Minecraft is supported by Purpur.

Other
Crash Report: https://gist.github.com/luizsusin/faef3fd8361f6f8e918586987b7100b9
This might also be a problem with EcoEnchants, as it shows in the report. However, since I'm not really sure, I've opened this issue.
I can provide any information needed.
Thanks!

Looks to be a bug with EcoEnchants trying to populate the loot of a lootable chest on chunk load.

That was a perfect elucidation, thank you so much for this. I'll get in touch with the developer.


Spec out current state of the http api

Current version: http://docs.ipfs.apiary.io/#
TODO

[ ] add
[ ] bitswap (@dignifiedquire)

[ ] bitswap stat
[ ] bitswap unwant
[ ] bitswap wantlist

[ ] block (@dignifiedquire)

[ ] block get
[ ] block put
[ ] block stat

[ ] bootstrap

[ ] bootstrap add
[ ] bootstrap list
[ ] bootstrap rm

[ ] cat
[x] commands
[ ] config

[ ] config edit
[ ] config replace
[ ] config show

[ ] dht

[ ] dht findpeer
[ ] dht findprovs
[ ] dht get
[ ] dht put
[ ] dht query

[x] diag

[x] diag net
[x] diag sys

[x] dns
[ ] file

[ ] file ls

[ ] get
[x] id
[ ] log

[ ] log level
[ ] log tail

[ ] ls
[ ] mount
[ ] name

[ ] name publish
[ ] name resolve

[ ] object

[ ] object data
[ ] object get
[ ] object links
[ ] object new
[ ] object patch
[ ] object put
[ ] object stat

[ ] pin

[ ] pin add
[ ] pin ls
[ ] pin rm

[x] ping
[ ] refs

[ ] refs local

[x] repo

[x] repo gc

[x] resolve
[x] stats

[x] stats bw

[x] swarm

[x] swarm addrs
[x] swarm addrs local
[x] swarm connect
[x] swarm disconnect
[x] swarm filters
[x] swarm filters add
[x] swarm filters rm
[x] swarm peers

[ ] tar

[ ] tar add
[ ] tar cat

[x] tour

[x] tour list
[x] tour next
[x] tour restart

[x] version

Are you spec'ing out the IPFS API (as if required by a module), the HTTP API (which currently is pseudo RESTful) or the IPFS cli first?

@diasdavid I'm documenting all existing http methods that I can find, I started with the list I got from ipfs commands and go through each one of them and see if they are available, and if so how they work. All is done against the official 0.3.9 binary.

cc @kyledrake

@Dignifiedquire great find on apiary, im getting to love it

Let's bring the list defined today at the API meeting to this repo :):)

it's over at https://github.com/ipfs/api/blob/master/level1.md#ipfs-core now

Link is broken, apparently was moved to -> https://github.com/ipfs/specs/tree/master/api


Should stay on the currnet section if I changed language

Have problems with routing to home page when i change language I need  stay on the currnet section if
I changed language
const routes: Routes = [
{ path: '', component: AdminComponent, children: [
{path: '', loadChildren: './dashboard-page/dashboard.module#DashboardModule'},
{path: 'users', loadChildren: './users-page/users.module#UsersModule', data: {preload: true}},
{path: 'active-jobs', loadChildren: './active-jobs/active-jobs.module#ActiveJobsModule', data: {preload: true}},
]},
{ path: '**', component: NotFoundPageComponent }
];
I see previous solutions with (" ") but it but it does not suit me, i must keep my routes like now.
Maybe you have a any ideas or solution?

Have solve problem like this:
onChange(language: string) {
window.location.href = this.router.url.replace(this.localize.parser.currentLang, language);
};

If you are using Angular 6, it's normaly fixed on version 1.0.2 of this fork : https://www.npmjs.com/package/@gilsdav/ngx-translate-router

Hi @apolon23, please try the latest version - 1.0.1 or 2.0.0-RC.1.
If it still doesn't work, please provide a plunkr, stackblitz or something similar with the minimal repo.

Duplicate of #95


bstr must be base64url encoded

Fix #22
Signed-off-by: Thomas Fossati<EMAIL_ADDRESS>

cc @Mariam-Dessouki


18971 Finished some TODOs and implemented remaining ting business validations

Issue #: bcgov/entity#18971
Description of changes:
- app version = 5.6.12
- finished stepper validity code
- cleaned up some store code
- misc cleanup
- named and sorted rules
- added spinner (experimental)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

/gcbrun

Temporary Url for review: https://business-create-dev--pr-596-2ltsf64t.web.app

I'm going to merge this so that everyone can use the latest code.


TimePicker not working

The TimePicker is not working:
<link rel="stylesheet" href="https://unpkg.com/flatpickr/dist/flatpickr.min.css">
<input class="flatpickr" data-enabletime="true" data-time_24hr="true" data-timeFormat="H:i">
<script src="https://unpkg.com/flatpickr"></script>
<script>
try {
              flatpickr(".flatpickr");
          }
         catch (error) {
            console.log(error);
       }
  </script>
Greetings,
Luis

Hello,
I'd suggest setting config options with an object, where you're less likely to commit typos.
data-enabletime="true" should be data-enable-time="true"
Similarly, data-timeFormat="H:i" should be data-time-format="H:i"


versioning strategy

From: https://semver.org/
MAJOR version when you make incompatible API changes
MINOR version when you add functionality in a backward compatible manner
PATCH version when you make backward compatible bug fixes

https://github.com/limosa-io/laravel-scim-server/compare/v0.6.8...v0.6.9
This version has not fixed any bug
Expected: minor version
Actual: fix version

https://github.com/limosa-io/laravel-scim-server/compare/v0.6.4...v0.6.5
This version has introduced a new feature.
The feature uses PHP8 specific syntax

Expected - composer json updates the minimum php required version
Expected - minor version bump
Expected - phpunit tests catch this kind of backwards incompatible changes.
Actual: patch bump
Actual: tests pass
Actual: composer json mentions support for php7 (which is false)
Based on these notes, I would conclude that this library might be unreliable to use in projects where SEMVER versioning is used as a best practice.

Probably you are right. I could consider following are more structured versioning approach.

Now, I have introduced a breaking change and decided to follow semantic versioning.


Adele – Someone Like You(nicode)

Here’s a tiny fix for some borked Unicode data in the Miro exports.
Here’s the Sierra record with the correct spelling (and also what looks like a dodgy reference to a Miro image): https://search.wellcomelibrary.org/iii/encore/record/C__Rb1568629?lang=eng

Can we fix these more generally?

The issues is not knowing where they are, unfortunately. Once we have the reporting pipeline, we can scan for more general classes of Unicode WTFs, and maybe then write a more general fix (or just fix the metadata).
The “best” fix is to create Sierra records that get merged with the Miro work, so we can override the old metadata.

👍 Thanks, yes let's find them with reporting 😄


Update testregistry.textproto

Introducing new tests RT-3.3, RT3.31 and RT-3.32. These tests cover multiple VRFs and policy based routing used to switch traffic between VRFs, while GUE Decap and Encap is also happening.

Pull Request Functional Test Report for #3475 / a0fcfdda68aabd9235496fa1884d7f56271d1c2b
No tests identified for validation.
Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.268%

Totals

Change from base Build<PHONE_NUMBER>5:
0.0%

Covered Lines:
1983

Relevant Lines:
3588

💛  - Coveralls


Support TLS connections

What would you like to be added:
Using a TLS connection to the DB.
Why is this needed:
For improved security in this day of cloud infrastructure.

If you're using Super Graph as a library then you can configure that in your code. As for Super Graph as a service I agree it should support that and probably would not be too hard to add. Super Graph uses the pgx driver for Postgres.

Committed several fixes that you might appreciate. Added TLS config for database connections and moved things around so go get github.com/dosco/super-graph can be used to download and install the binary. https://github.com/dosco/super-graph/commit/09d6460a133f7812f178dd893879cff8878c0be6
  # Set up an secure tls encrypted db connection
  enable_tls: false

  # Required for tls. For example with Google Cloud SQL it's
  # <gcp-project-id>:<cloud-sql-instance>"
  server_name: blah

  # Required for tls. Can be a file path or the contents of the pem file
  server_cert: ./server-ca.pem

  # Required for tls. Can be a file path or the contents of the pem file
  client_cert: ./client-cert.pem

  # Required for tls. Can be a file path or the contents of the pem file
  client_key: ./client-key.pem


Packages cannot be loaded when renv is installed in subfolder of workspaceFolder

Describe the bug
Debugging an R file, while using an renv that has been created in a subfolder of ${workspaceFolder}, despite configuring "workingDirectory": "${workspaceFolder}\\subfolder" in the launch config, cannot load packages with library() commands in the debugged file. When creating the exact same renv in the ${workspaceFolder}, loading of packages works as expected
To Reproduce / Your R code
Please see the minimum working and not-working example and the readme here: https://github.com/marecabo/ManuelHentschel-VSCode-R-Debugger-149
Your Launch config
        {
            "type": "R-Debugger",
            "name": "Debug R-File",
            "request": "launch",
            "debugMode": "file",
            "workingDirectory": "${workspaceFolder}\\another-folder",
            "file": "${file}"
        },

Expected behavior
I expect installed packages to be loaded while debugging an R-file, regardless where the renv is installed as long as the workingDirectory property of the launch config points to the folder containing the .Rprofile of the desired renv.
Actual behavior
In the debugged file, packages installed in the renv cannot be loaded.
Error in library("tidytransit") :
  there is no package called 'tidytransit'

Desktop:

OS: Windows 10 1909 18363.1734 x64
R Version: 4.1.1 x64
vscDebugger Version: 0.4.7
vscode-r-debugger Version: 0.4.7

Additional Context:
Thank you for your work at this extension.

Thanks for raising this very well documented issue! I could reproduce the behavior, and unfortunately that's also the expected behavior at the moment.
The problem is caused by the fact that the launch configuration is handled inside R. So, when starting the R process, the VSCode-R-Debugger extension does not consider the workingdirectory, instead the R-package vscDebugger uses setwd() during the launch sequence to change to that directory.
As a temporary workaround, you can either set up renv in the workspace folder, or launch vscode in the subfolder when debugging.
I think the cleanest way to fix this would be to implement a launchDirectory in the launch config that is used by the vscode extension to launch R in the correct folder. This should probably default to the workingDirectory to avoid confusion.


docs: fix height of copy-css

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests
[ ] Other

Why is it needed?

the height  of Copy Code section was more than 100vh.

before:

after:

Checklist:

[x] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have ran pnpm change and documented my changes
[ ] I have add necessary docs (if needed)
[ ] Added new tests to cover the fix / functionality

I have read the CLA Document and I hereby sign the CLA

Waaaat 😳 I don't think it used to be that awful, but I can't find what made it look so bad. Maybe a change to the headless modal @thejackshelton?
Either way, thanks a lot! No need for a changeset (they're more for new features or breaking API changes), so merging 👍