SK6812 Issue. strange colors and missing led

Hi,
I desperately need your help. That really makes me desperate right now.
I removed my old WS28xx from my TV to replace it with nice SK6812 RGBW.
I connected the SK6812 to GPIO 18.
First of all the colors don't seem to be right. See photo.
And LED's are missing. I have 224 LED's in the setup and 55 of the LED's are not addressed.
Can anyone help me here?
Video:
https://youtu.be/KmLhOLSSFE0
Screenshots:
https://abload.de/img/dsc006904rcgv.jpg (Colors are not correct)
https://abload.de/img/screenshot2018-12-29ayqevh.png (Hyperion.ng configuration)

My guess is it’s sending RGB data and not RGBW data.
Did you build from source ?

Yep. Fresh build from source. Any Idea how to fix this?

Nope !
Run from command line with debugging and see what it thinks the led device config is - from memory it’s logged on startup.
Also show us the device section of the config file

hyperiond -d:

root@raspberrypi:/home/pi/hyperionng/hyperion/build/bin# ./hyperiond -d
[hyperiond MAIN]  Selected configuration file: /root/.hyperion/config/hyperion_main.json
[hyperiond LOGGER]  Logger settings overridden by command line argument
[hyperiond ChannelAdjust_BLACK]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ChannelAdjust_WHITE]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,255,255
[hyperiond ChannelAdjust_RED]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,0,0
[hyperiond ChannelAdjust_GREEN]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,255,0
[hyperiond ChannelAdjust_BLUE]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,255
[hyperiond ChannelAdjust_CYAN]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,255,255
[hyperiond ChannelAdjust_MAGENTA]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,0,255
[hyperiond ChannelAdjust_YELLOW]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,255,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond Core]  ColorAdjustment 'default' => [0; 221]
[hyperiond Core]  Hyperion.cpp:315:getLedLayoutGridSize() led layout grid: 72x43
[hyperiond ComponentRegister]  Json/Proto forwarder: off
[hyperiond LedDevice]  LedDeviceWS281x.cpp:25:init() whiteAlgorithm : white_off
[hyperiond LedDevice]  LedDevice 'ws281x' configured.
[hyperiond Core]  Creating linear smoothing
[hyperiond Smoothing]  smoothing cfg 0: interval: 4517888 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 1: pause
[hyperiond ComponentRegister]  Smoothing: activated
[hyperiond ComponentRegister]  LED device: activated
[hyperiond Smoothing]  smoothing cfg 2: interval: 30458128 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 3: interval: 30473870 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 4: interval: 30478750 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 5: interval: 30479706 ms, settlingTime: 50 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 6: interval: 30478990 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 7: interval: 30498322 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 8: interval: 30500318 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 9: interval: 30500566 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 10: interval: 30503034 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 11: interval: 30502902 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 12: interval: 30481130 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 13: interval: 30505810 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 14: interval: 30505806 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 15: interval: 30482086 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 16: interval: 30484762 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 17: interval: 30505838 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 18: interval: 30481258 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 19: interval: 30488250 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 20: interval: 30487502 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 21: interval: 30488802 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 22: interval: 30490718 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 23: interval: 30491486 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 24: interval: 30490182 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 25: interval: 30494474 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 26: interval: 30496394 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 27: interval: 30493786 ms, settlingTime: 50 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 28: interval: 30493190 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 29: interval: 30569798 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 30: interval: 30568470 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 31: interval: 30467586 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 32: interval: 30575474 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 33: interval: 30576326 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 34: interval: 30576062 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 35: interval: 30576110 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 36: interval: 30467326 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond Smoothing]  smoothing cfg 37: interval: 30578742 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond EFFECTENGINE]  35 effects loaded from directory :/effects/
[hyperiond EFFECTENGINE]  19 effect schemas loaded from directory :/effects/schema/
[hyperiond EFFECTENGINE]  0 effects loaded from directory /root/.hyperion/custom-effects
[hyperiond EFFECTENGINE]  EffectEngine.cpp:43:EffectEngine() Initializing Python interpreter
[hyperiond Core]  Hyperion.cpp:447:Hyperion() configured leds: 222 hw leds: 222
[hyperiond ChannelAdjust_BLACK]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,0
[hyperiond ChannelAdjust_RED]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,0,0
[hyperiond ChannelAdjust_GREEN]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,255,0
[hyperiond ChannelAdjust_BLUE]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,0,255
[hyperiond ChannelAdjust_CYAN]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 0,255,255
[hyperiond ChannelAdjust_MAGENTA]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,0,255
[hyperiond ChannelAdjust_YELLOW]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,255,0
[hyperiond ChannelAdjust_WHITE]  RgbChannelAdjustment.cpp:24:resetInitialized() initialize mapping with 255,255,255
[hyperiond MAIN]  Hyperion initialized
[hyperiond MAIN]  Json server created and started on port 19444
QObject::connect: No such slot ProtoServer::setVideoMode(VideoMode)
[hyperiond MAIN]  Proto server created and started on port 19445
[hyperiond MAIN]  hyperiond.cpp:301:startNetworkServices() Boblight server created
[hyperiond ComponentRegister]  Boblight server: off
[hyperiond Core]  Register new input source named 'UDPLISTENER' for priority channel '200'
[hyperiond MAIN]  hyperiond.cpp:320:startNetworkServices() UDP listener created
[hyperiond ComponentRegister]  UDP listener: off
[hyperiond MAIN]  hyperiond.cpp:343:startNetworkServices() UDP LIstener mDNS responder started
[hyperiond MAIN]  hyperiond.cpp:350:startNetworkServices() Json mDNS responder started
[hyperiond MAIN]  hyperiond.cpp:356:startNetworkServices() Proto mDNS responder started
[hyperiond BLACKBORDER]  BlackBorderDetector.cpp:26:calculateThreshold() threshold set to 0.050000 (13)
[hyperiond BLACKBORDER]  BlackBorderProcessor.cpp:26:BlackBorderProcessor() mode: default
[hyperiond BLACKBORDER]  ImageProcessor.cpp:62:setLedMappingType() set led mapping to type 0
[hyperiond ComponentRegister]  Blackborder detector: activated
[hyperiond V4L2:/dev/video0]  Grabber.cpp:33:setVideoMode() setvideomode 0
[hyperiond V4L2:/dev/video0]  Signal threshold set to: {12, 12, 12}
[hyperiond V4L2:/dev/video0]  Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
[hyperiond MAIN]  hyperiond.cpp:564:createGrabberV4L2() V4L2 grabber created
[hyperiond V4L2:/dev/video0]  configured v4l device: /dev/video0
[hyperiond V4L2:/dev/video0]  V4L2Grabber.cpp:543:init_device() width=720 height=576
[hyperiond V4L2:/dev/video0]  V4L2Grabber.cpp:557:init_device() Pixel format=YUYV
[hyperiond V4L2:/dev/video0]  Started
[hyperiond Core]  Register new input source named 'V4L2:/dev/video0' for priority channel '240'
[hyperiond MAIN]  V4L2 grabber started
[hyperiond ComponentRegister]  V4L capture device: activated
[hyperiond MAIN]  set screen capture device to 'dispmanx'
[hyperiond BLACKBORDER]  BlackBorderDetector.cpp:26:calculateThreshold() threshold set to 0.050000 (13)
[hyperiond BLACKBORDER]  BlackBorderProcessor.cpp:26:BlackBorderProcessor() mode: default
[hyperiond BLACKBORDER]  ImageProcessor.cpp:62:setLedMappingType() set led mapping to type 0
[hyperiond ComponentRegister]  Blackborder detector: activated
[hyperiond DISPMANXGRABBER]  Grabber.cpp:33:setVideoMode() setvideomode 0
[hyperiond DISPMANXGRABBER]  Display opened with resolution: 640x480
[hyperiond Core]  Register new input source named 'Dispmanx' for priority channel '250'
[hyperiond MAIN]  DISPMANX frame grabber created and started
[hyperiond Core]  Unregister input source named 'Dispmanx' from priority register
[hyperiond Dispmanx]  grabber change state to disabled
[hyperiond ComponentRegister]  Framegrabber: off
[hyperiond MAIN]  Hyperion started
[hyperiond EFFECTENGINE]  run effect Rainbow swirl fast on channel 0
[hyperiond BLACKBORDER]  BlackBorderDetector.cpp:26:calculateThreshold() threshold set to 0.050000 (13)
[hyperiond BLACKBORDER]  BlackBorderProcessor.cpp:26:BlackBorderProcessor() mode: default
[hyperiond BLACKBORDER]  ImageProcessor.cpp:62:setLedMappingType() set led mapping to type 0
[hyperiond Core]  Register new input source named 'Rainbow swirl fast' for priority channel '0'
[hyperiond MAIN]  Inital foreground effect 'Rainbow swirl fast' started
[hyperiond EFFECTENGINE]  run effect Snake on channel 254
[hyperiond BLACKBORDER]  BlackBorderDetector.cpp:26:calculateThreshold() threshold set to 0.050000 (13)
[hyperiond BLACKBORDER]  BlackBorderProcessor.cpp:26:BlackBorderProcessor() mode: default
[hyperiond BLACKBORDER]  ImageProcessor.cpp:62:setLedMappingType() set led mapping to type 0
[hyperiond Core]  Register new input source named 'Snake' for priority channel '254'
[hyperiond MAIN]  Inital background effect 'Snake' started
[hyperiond WEBSERVER]  WebConfig.cpp:38:WebConfig() WebUI initialized, document root: :/webconfig
[hyperiond WEBSERVER]  started on port 8090 name 'Hyperion WebConfig'
[hyperiond WEBSERVER]  StaticFileServing.cpp:61:onServerStarted() Web Config mDNS responder started
[hyperiond Smoothing]  set smoothing cfg: 25, interval: 0 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond V4L2:/dev/video0]  Stopped
[hyperiond Core]  Hyperion.cpp:536:bonjourRecordResolved() found hyperion session: raspberrypi.local.:8090
[hyperiond Smoothing]  set smoothing cfg: 30, interval: 0 ms, settlingTime: 40 ms, updateDelay: 0 frames
[hyperiond EFFECTENGINE]  effect finished
[hyperiond Core]  Unregister input source named 'Rainbow swirl fast' from priority register
[hyperiond BLACKBORDER]  BlackBorderDetector.cpp:26:calculateThreshold() threshold set to 0.050000 (13)
[hyperiond BLACKBORDER]  BlackBorderProcessor.cpp:26:BlackBorderProcessor() mode: default
[hyperiond BLACKBORDER]  ImageProcessor.cpp:62:setLedMappingType() set led mapping to type 0
[hyperiond WEBSOCKET]  WebSocketClient.cpp:29:WebSocketClient() New connection from ::ffff:<IP_ADDRESS>

/root/.hyperion/config/hyperion_main.json

"device": {
"colorOrder": "brg",
"dma": 5,
"gpio": 18,
"invert": false,
"latchTime": 1,
"leds": 224,
"rewriteTime": 5000,
"rgbw": true,
"type": "ws281x",
"whiteAlgorithm": "sub_min_warm_adjust"
},

hmm the log said :

whiteAlgorithm : white_off

and

[hyperiond Core] Hyperion.cpp:447:Hyperion() configured leds: 222 hw leds: 222

that's not what i defined in the config oO

Even with that it should still work.
My guess is that it’s not setting the strip type to sk6812 in https://github.com/hyperion-project/hyperion.ng/blob/master/libsrc/leddevice/dev_rpi_pwm/LedDeviceWS281x.cpp
Maybe add some debugging

its working! you're right. StripType is not set to sk6812. i have changed line 43 to
	_led_string.channel[_channel].strip_type = SK6812_STRIP_GRBW;
compile it, running and voila.... Colors ! it seems thats your config parse for rgbw is not working...

Not my code anymore ...!
I wrote the original rgbw support but it’s been refactored since then.
It also looks like the warm algorithm was never implemented. White off and subtract min that I wrote should work but might suffer the same fate as rgbw right now...

deviceConfig["rgbw"].toInt()
Maybe toBool would be better here - presuming there is a toBool

Oh dear...
In the code:
QString whiteAlgorithm = deviceConfig["white_algorithm"].toString("white_off");
In the schema:
“whiteAlgorithm": {
"type": "string",

Log spam:
[hyperiond RGBtoRGBW]  white algorithm 'sub_min_warm_adjust' is not implemented yet.

Is here a Hope that you can reimplement this Feature ?
Yep. White off and subract minimum are working correct.and yes, If i use White off, i have the same behavior like my hardcoded rgbw before.
I would like to thank you very much for your Help !

Yep, done
Also in my fixes branch

Works the way it's supposed to. Thanks a lot for that !
Is there a possibility somewhere to donate a few beers ? 🍺

Good to hear 👍 , looks resolved so closing.


Text in generated SVG is not selectable in Chrome 65.0.3325.181

I can select text in other SVGs in Chrome but not in SVGs generated by Carbon. I guess that some -webkit properties are missing/wrong in some/all elements (selecting text in the generated SVG is possible in Edge).

We are not going to support this as of now, and is out of scope for what we are solving for. We do want to support a copyable embedded iframe of Carbon soon, which should cover this.

So, I took another stab at it today. The culprits are multiple user-select (with auto and none values) properties in inline CSS of several <svg> tags in the generated document. Will you be interested in a PR that remove these?

@DeepSpace2 yup! As long as nothing else breaks 👍


Update node-fetch to obtain security update

This is the update: https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md#v261:

This is an important security release. It is strongly recommended to update as soon as possible.

Fix: honor the size option after following a redirect.

Update PR title to match the JIRA item which is associated with this PR.


Update php-fpm.conf

adapt include path to 8.2 (was 8.0)
The Issue
How This PR Solves The Issue
Manual Testing Instructions
Automated Testing Overview

Related Issue Link(s)
Release/Deployment Notes

Thanks for paying attention and catching this! But it would sure be less messy if you did a single PR.
Of course this doesn't mean anything either without pushing the resulting image.


AKS Deployments fails on an Azure Pass without registering the network provider

Folks running the workshop on an Azure Pass, need to run this command via the Azure Shell else the AKS deployment will fail.
$ az provider register -n Microsoft.Network

FYI... For those not familiar with Azure Pass (I was not), it is a program that provides free 30-day student access to Azure. https://www.microsoftazurepass.com/


NUMBERS-167: Allow precomputation of regularized gamma arguments

Coverage increased (+0.006%) to 99.663% when pulling 57472aa9590442c0401fced7ca9b08f9e3fa0ba3 on aherbert:improvement-NUMBERS-167b into 123740a1f7bc9fd3553388cb7b24455bd8f8a663 on apache:master.


URGENT: Internet-Draft references in BibXML format missing target to information resources

e.g. https://github.com/ietf-ribose/bibxml-data-ids/blob/main/data/draft--pale-email-00.xml
<reference anchor="I-D.-pale-email">
  <front>
    <title>Forming Intuitive Email Addresses</title>
    <author fullname="Predrag Pale" initials="P." surname="Pale">
      <organization/>
    </author>
    <author fullname="Kristijan Cerovski" initials="K." surname="Cerovski">
      <organization/>
    </author>
    <date year="2004" month="March"/>
    <abstract>
      <t>This memo presents a proposal for an efficient and simple way of forming email addresses. The goal is to achieve easier, more productive communication between email users, in particular by aking addresses intuitive and thus easy to remember, or guess-enabled on material-world data about the correspondent, as well as independent from technical or organizational specifics of email services.</t>
    </abstract>
  </front>
  <seriesInfo name="Internet-Draft" value="draft--pale-email-00"/>
</reference>

This is missing the <reference ... anchor="..."> anchor attribute.
This data is present in the Relaton YAML version:
https://github.com/ietf-ribose/relaton-data-ids/blob/01638f583ad43a9124c17247289bf1683a136237/data/draft--pale-email-00.yaml#L11
link:
- content: https://www.ietf.org/archive/id/draft--pale-email-00.txt
  type: TXT

The first line should be:
<reference anchor="I-D.-pale-email" target="https://www.ietf.org/archive/id/draft--pale-email-00.txt">

This issue does not happen with RFC or RFC subseries in BibXML format.

@ronaldtse the source dataset rsync.ietf.org::bibxml-idsdoesn't contain a target element:
<?xml version="1.0" encoding="UTF-8"?>
<reference anchor="I-D.-pale-email">
   <front>
      <title>Forming Intuitive Email Addresses</title>
      <author initials="P." surname="Pale" fullname="Predrag Pale">
         </author>
      <author initials="K." surname="Cerovski" fullname="Kristijan Cerovski">
         </author>
      <date month="March" day="2" year="2004" />
      <abstract>
	 <t>   This memo presents a proposal for an efficient and simple way of
   forming email addresses.  The goal is to achieve easier, more
   productive communication between email users, in particular by aking
   addresses intuitive and thus easy to remember, or guess-enabled on
   material-world data about the correspondent, as well as independent
   from technical or organizational specifics of email services.

	 </t>
      </abstract>
   </front>
   <seriesInfo name="Internet-Draft" value="draft--pale-email-00" />
   <format type="TXT" target="https://www.ietf.org/archive/id/draft--pale-email-00.txt" />
</reference>

It contains the format element with link of TXT type. Currently, Relaton renders link with src type as a target element. We can use any other type of link to create target but when we parse BibXml the target will be treated as src link. Wouldn't to be problem?
Should we add the format element with the link?

@andrew2net this is a good find. The IETF just gave guidance here: https://github.com/ietf-ribose/bibxml-service/issues/142#issuecomment-1046999571 that:

for I-Ds, use <format>
for RFCs, use <reference target="...">

For now. Feel free to close if we are compliant. Thanks.


how can we put the value from one subroutine to another subroutine, containing a function?

Hi, seniors, my question is that I have some variable outputs and say z is variable and have output of z in txt form
and from the brent's method, I want to calculate lambda(another variable) and the function containing lambda is depending on the z. so how can I put z value in the function dependent on z so that I can get the value of lambda correctly?
 `FUNCTION fzlamda(lamda)
  REAL fzlamda,z,eL,lamda
  COMMON /flamda/ eL,z,x(3,1)
!  eL=4685.0

  lamda=9*3.1415926535/180.0
  fzlamda=0.5*sin(lamda)*sqrt(1.+3.*sin(lamda)**2)+(0.5/sqrt(3.))
 +    *log(abs(sqrt(3.)*sin(lamda)+sqrt(1.+3.*sin(lamda)**2)))
 +    -abs(z)/4685.0                                              ! taking abs(z) means: lamda increases from equator as abs(z) increases
  return
  END`

this is the function and
here I am writing the z as
   `if(rt.eq.0)then
      write(1,1000)t/(2*pi),(x(i,1),i=1,3),lamdaroot,(x(i,2),i=1,2),
 &(x(i,3),i=1,2),alpha*180.d0/pi,kew,deta

  else
      write(1,1000)t/(2*pi),(x(i,1),i=1,3),lamdaroot,(x(i,2),i=1,2),
 &(x(i,3),i=1,2),alpha*180.d0/pi,kew,deta
  endif`

where z is z=x(3,1) and getting txt result as
for instance

the second last column values are z and the last column is  of lambda but lambda value is dependant on z as in function but still, lambda is constant throughout the calculations

Can you please clarify how this relates to FKB?
Which module are you referring to?

I am doing numerical calculations, sorry Sir I dont know about deep learining

Stack overflow is a more appropriate venue


Default logging format makes it difficult to see what's output and what's logs

@nsheff maybe a logmuse issue, but something that could be modified there or on a per-project basis, but the current (default?) log message format has no formatting template to differentiate it from actual command output. What about adding some basic formatting to log messages to make them look like log messages to make it more clearly, instantly obvious visually what's logging and what's actual output?
Here's an example from running an example in the CLI docs:
(pipestat) vince@vr-think:~/code/pipestat$ pipestat report -i number_of_things -v 100
Value for the required 'status_schema_path' argument could not be determined.
Value for the required 'flag_file_dir' argument could not be determined.
Writing to locked data...
TEST HERE
Reported records for 'sample1' in 'test' namespace:
 - number_of_things: 100
test:
  sample1:
    number_of_things: '100'

False
sample1

Can you clarify what you mean by "actual command output" ?
I think you wrote logmuse originally :). The way I've been using it is that I use it to create the actual command output, I think, if I understand the words correctly.

Can you clarify what you mean by "actual command output" ?

I meant results from something like retrieve, i.e. some sort of text representation of a "result" a user's expecting, rather than log messages emitted along the path to that result.

Ok I think I misunderstood. I think it should be fine to change the default as you suggest. this probably belongs with logmuse, though

Sounds good. I would transfer the issue directly, but it appears it's not possible, I guess maybe b/c it's under databio Github org?

I believe the original issue has been solved with the addition of passing a result_formatter function per PR: https://github.com/pepkit/pipestat/pull/60


luci-mod-status: merge status/dmesg with status/syslog

Merge "Kernel Log" with "System Log" as an extra tab.
Consolidate logging facilities for more intuitive navigation.
Signed-off-by: Vladislav Grigoryev<EMAIL_ADDRESS>

Looks good :+1:


Remove notification banner

Summary
This PR removes the notification banner since the GitLab webinar has passed. I've commented the element out – for when we decide we need to turn it back on.
Thanks!

Np @cwarnermm ! I also realized there's a few things we can tweak re: how we were capturing whether a user closed the banner, but I'll work that into the next time we change it.


Add changelog  for release v0.20.0

Description of changes:
Add change log for release v0.20.0
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/hold

Looks good to me!

/lgtm

/unhold
/lgtm

/approve

/cherrypick release-0.20

/cherrypick release-0.20

/cherrypick release-0.20


Implement smartcar front camera view on mobile app

As a user, I want to get a view of my car from the front so that I am able to see where the car is heading, especially while initiating a parking by going forward.
Acceptance criteria

[x] The hood of the car, and both corners of the hood, with obstacles in close proximity visible to be detected through the cam feed.

@adityak714 @Gabri1998 just a reminder that user story and acceptance criteria is missing.

The camera now is streaming the the front view of the car properly even during auto parking.


Change progress bar color to inat green

@Chrischuck, no harm in this, but may I ask why? At least at present primary and inatGreen are both #77b300.

@kueda i believe primary was removed from tailwind.config.js. apologies for not making an issue for it, i figured it was such a small change it wouldve been more hassle


feature: automatically notify users when new version of CLI is availible

Builds on #13 adds 67c0543688c6b8aafc7a7b4ca271bd825e17aee9
Tested by locally setting package version to 0.0.7 and setting updateCheckInterval to 1ms.
   ╭────────────────────────────────────────╮
   │                                        │
   │    Update available 0.0.7 → 0.0.8      │
   │   Run npm i @wcfactory/cli to update   │
   │                                        │
   ╰────────────────────────────────────────╯

By default it will check for CLI updates once a day.
See https://github.com/yeoman/update-notifier for full range of options.

This builds on #13, if you want both features, #13 can be closed, if you're not sure, I'd keep both open to keep the first set of changes from being blocked.

duh, ok yeah that makes sense. we'll check it out tomorrow. thanks for both of these they make a lot of sense


Adding Imagesharp-beta7 causes exception

I need the latest Imagesharp because of a bugfix. When I upgrade it to beta 7 the following code throws an exception:
var texPath = Path.Combine(AppContext.BaseDirectory, "Assets", imageName);
var imTex = new ImageSharpTexture(texPath, false);

The exception is:
System.MissingMethodException: Method not found: 'SixLabors.ImageSharp.Image`1<SixLabors.ImageSharp.PixelFormats.Rgba32> SixLabors.ImageSharp.Image.Load(System.String)'.
   at Veldrid.ImageSharp.ImageSharpTexture..ctor(String path, Boolean mipmap)
   at Engine.ImageManager.Load(String imageName) ...

The issue is not present with ImageSharp beta 6. I am using Veldrid 4.7.0, .NET Core 3

The workaround is not to use new ImageSharpTexture(string, bool), but load the image manually and then use it:
Image<Rgba32> im = Image.Load<Rgba32>(texPath);
var imTex = new ImageSharpTexture(im, false);

This was fixed by #246 and can be closed @mellinoe


Passing screenshot context from original issues to Agents

This PR addresses #213
Changes

Extract all image links from body or review threads with format ![alt text](url.com)
Pass them to the MessageAction
Updated test cases according to new functionality

Yup! In my example, I created an issue with no text description and a single image. The task was embedded inside the image

Also, the issue title wasn't specific enough for the agent to solely rely on it, thus requiring the agent to interpret the image as well. It successfully created the pull request.
Sample issue Link
Successful PR link


Resize egl window when software keyboard is shown

This only works for mobile. On other devices, needs some improvements.
For examples, wearables have a very small UI area outside the keyboard area.
The TV-emulator has a translucent software keyboard, so window resize is unnecessary.
Lastly, on real TV device, the current way that to handle HW-back key fallback
on text_input_channel is not enough.
We have to take the time and improve it one by one.

Signed-off-by: Boram Bae<EMAIL_ADDRESS>

I hope you will reimplement the current screen rotation implementation with the ecore_wl2 API in the future!

I will try it. But there are many things I don't know :worried:


Docs.MS Release Updates for azure_mgmt_digitaltwins

Update docs metadata and targeting for release of azure_mgmt_digitaltwins

Docs Build status updates of commit 2852b1f:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-services/preview/mgmt-digitaltwins-readme.md
:warning:Warning
View (azure-python-preview)
Details

ci-configs/packages-preview.json
:white_check_mark:Succeeded

docs-ref-services/preview/mgmt-digitaltwins-readme.md

Line 2, Column 1: [Warning-title-missing] Missing required attribute: 'title'. Add a title string to show in search engine results.
Line 2, Column 1: [Warning-ms-prod-and-service] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 11, Column 13: [Warning-ms-service-subservice-invalid] Invalid value for 'ms.service': 'digitaltwins'.
Line 21, Column 1: [Warning-multiple-h1s] Multiple H1s(H1 'Usage') are not allowed. You can only have one top-level heading.
Line 33, Column 1: [Warning-multiple-h1s] Multiple H1s(H1 'Provide Feedback') are not allowed. You can only have one top-level heading.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 2852b1f:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-services/preview/mgmt-digitaltwins-readme.md
:warning:Warning
View (azure-python-preview)
Details

ci-configs/packages-preview.json
:white_check_mark:Succeeded

docs-ref-services/preview/mgmt-digitaltwins-readme.md

Line 2, Column 1: [Warning-title-missing] Missing required attribute: 'title'. Add a title string to show in search engine results.
Line 2, Column 1: [Warning-ms-prod-and-service] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 11, Column 13: [Warning-ms-service-subservice-invalid] Invalid value for 'ms.service': 'digitaltwins'.
Line 21, Column 1: [Warning-multiple-h1s] Multiple H1s(H1 'Usage') are not allowed. You can only have one top-level heading.
Line 33, Column 1: [Warning-multiple-h1s] Multiple H1s(H1 'Provide Feedback') are not allowed. You can only have one top-level heading.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Adding new HeronServerTester to simplify testing servers

Adding HeronServerTester to simplify writing unit tests against Heron server. Much of what's in HeronServerTester is code that's copied in multiple tests.
Provides the following benefits:

Consolidates common boilerplate client/server code that each unit test shouldn't have to deal with (loopers, threadpools, etc)
Removes the use of timers and uses countdown latches instead. This reduces this test from 13 seconds to 1 second.
Reduces possibility of flaky tests due to mis-implementation of sleep logic.
Makes test logic easier to read and understand since other clutter is removed.

Review includes one test to show how HeronServerTester is used. I've upgraded one other that I'll do in a follow-up review. There will be a few more to upgrade after that.

@billonahill - great pr. Wondering if there are other tests that require changes as well to take advantage of the framework.

@kramasamy yeah, a bunch. :) I've got others queued up and will submit in separate PRs, to keep them small.

Fixes #1859.


[BUG] 'tailwindcss/no-custom-classname' rule breaks ESLint

Describe the bug
I've followed the instructions for installation and configuration. Configured with the default preset and it broke ESLint. So instead I've tried to configure rules under the rules section and got the same result. After further investigation, seems that the issue was with  'tailwindcss/no-custom-classname' rule, so I removed it and everything started to work just fine.
Expected behavior
'tailwindcss/no-custom-classname' rule should work and do not break the ESLint.
Screenshots

Environment (please complete the following information):

ESLint: 7.32.0
OS: macOS
Softwares + version used:

VSCode : 1.58.2
npm: v7.18.1
node: v16.4.0

ESlint config: https://gist.github.com/KornelijusGlinskas/310fd8aed8ba3ca6168615d61b00eda3

Hi there @KornelijusGlinskas,
I'm currently on holiday but I will try to reproduce the issue as soon as I'm back.
It could be even easier for me to do so if you create a complete dummy project that I could just clone and play with.
Cheers

@KornelijusGlinskas could you validate your CSS files contain valid CSS markup? The error seems to indicate it failed to parse a css file because of an extra }. Would of course be a nice feature if it actually told you the name of the file it failed to parse.
Does it break if you only run it on a single file?

@thebuilder unfortunately, I've only tailwind directives inside my one and only CSS file.

Hi @KornelijusGlinskas, maybe you could simply omit this file by the cssFile option...
You could set it to: ["**/*.css", "!**/node_modules", "resources/assets/spa/styles/app.css"]

@KornelijusGlinskas, let me know if omitting that css file help or not, closing it for now.


[AIRFLOW-3524] Added support for Google Cloud Build

This commit adds support for Automated execution of Unit Tests and
(what is more important) System Tests using Google Cloud Build.
Its likely that this commit will be merged with some changes providing
that the supporting docker image that is used for Cloud Build
comes from an external repository. The ultimate goal is to
have an image that supports both Travis CI and Google Cloud Build at
the same time and it should be part of the Airflow repository itself.
Make sure you have checked all steps below.
Jira

[ ] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-XXX
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[ ] Here are some details about my PR, including screenshots of any UI changes:

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ ] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
All the public functions and the classes in the PR contain docstrings that explain what it does

Code Quality

[ ] Passes flake8

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@4745910). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #38   +/-   ##
=========================================
  Coverage          ?   74.61%
=========================================
  Files             ?      431
  Lines             ?    28044
  Branches          ?        0
=========================================
  Hits              ?    20924
  Misses            ?     7120
  Partials          ?        0

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 4745910...ea8efb2. Read the comment docs.


Unsupported BSON version, bson types must be from bson 5.x.x

With the latest connect-mongodb-session version v4.0.0 I started to get error Unsupported BSON version, bson types must be from bson 5.x.x (node_modules/connect-mongodb-session/index.js:224:19). Other mongodb-related dependency is mongoose, which is up to date as well. What could be the issue?

Run npm list bson and paste the output here please

Not the original poster, but ran into the same issue, here's my output:
├─┬<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>deduped

I just bumped to 4.0.0 and started getting the same here.
Error:
Error: Error setting PeTlDY8GA6n_CujSCJLJeNxENCs9--Lt to Session {
  cookie: { path: '/', _expires: null, originalMaxAge: null, httpOnly: true },
  foo: ...,
  bar: ...
}: Unsupported BSON version, bson types must be from bson 5.x.x
    at /.../node_modules/connect-mongodb-session/index.js:224:19
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

As per the instructions above:
npm list bson

├─┬<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └──<EMAIL_ADDRESS>deduped

Ok, we'll need to create a new release using MongoDB 6.x so we can get the same bson version. Will fix.

Wow, that was fast, thanks!

I'm getting this same error @5.0.0 using Mongo Atlas

Today, I am getting a similar error after updating my modules: BSONVersionError: Unsupported BSON version, bson types must be from bson 6.x.x.
npm list bson:
├─┬<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>deduped
└─┬<EMAIL_ADDRESS>invalid: "^5.7.9 || 6.x" from node_modules/@mongoosejs/double
└──<EMAIL_ADDRESS>

Getting the same error here

Facing same issue

Same issue

Same for me has anyone solved this ?

same issue as
Error updating metadata: BSONVersionError: Unsupported BSON version, bson types must be from bson 6.x.x
also i am updating the metadata field and start getting this error
npm ls bson is this
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
└─┬<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>deduped

I have the same issue. I wanted to upgrade my mongodb cluster from v6 to v7. I am still on v6 right now as my mongoose update broke the app.
I first upgraded my mongoose from v6.7.3 to v8.x. It broke the whole app, first with experiment topLevelAwait webpack config problems. After I got my mongoose back to v.6.7.3 and changed the webpack config I got the bson problem (BSONVersionError: Unsupported BSON version, bson types must be from bson 6.x.x)
My npm list bson results:
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>deduped
Is there a good article or guidance for this issue?
I just did, but I have not released my mongodb cluster upgrade from v5 to v6 that was already working in the staging cluster. MongoDB told me that it would be better to upgrade to v7, but the mongoose upgrade broke all. Now my clock is ticking as mongodb will push my production cluster to v6 at the end of October. I would be fine staying on v6 for now, but I need a solution for this bson issue. Why is it that with downgrading mongoose back this issue remained?
Thanks in advance for anyone who can help!


key elements in table of contents are missing

In the main README.md, some key elements from table of contents are missing. For example, getting started is missing. I am not able to get it working on my local system and having something like getting started would be a nice welcome.
Thanks.

@bnap00 Thanks for checking out the project! I've mostly been working on getting things up and running on fireadmin.io, so haven't gotten to the README too much yet (it is from me running generator-react-fireabse to start this project).
Would love to hear more about what you are looking for within a Firebase application manager. I have tons of ideas and would love to bounce around ideas. If you are on gitter, we can chat on there, but I am actually working on a list of features to add to this pr.


OAuth Provider - Add Org/Team membership to userinfo endpoint

Gitea version (or commit ref): 1.15.0
Git version: N/A
Operating system: Linux
Database (use [x]): N/A

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Description
When Gitea is acting as an OAuth provider, it would be nice if the /login/oauth/userinfo endpoint would return the orgs/teams to which a user is assigned if the "profile" scope is set. This would allow the client to parse this information and could possibly map it to a user group.
One implementation might add a new claim for each org, using the org name as the key for the claim.  The claim would be an array of team names to which the user belonged for that org.
Another implementation would be to add a "teams" claim containing an array of [org_name]:[team_name] strings (where the org name and team name are concatenated together, separated by a colon or dash).
Thoughts on this?  I am willing to submit a PR.

Resolved by #17367


make this into a module?

hey. i was building my terraform+PD and ran into your page.. very nice.
i am trying to make a module out of it but i feel like i will run into issue since not all teams have same escalation policies ...
any thoughts?

nevermind. i think i kinna got it.. but kinna hacky.


[AutoPR cost-management/resource-manager] add README file for cost management

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3321

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/2231


UAI: Saga Changes

Task Description
The new Data Structure will require the sagas to modified to handle the fields and actions based on new config

[ ] addToUaiStack
[ ] UpdateUai

Verified this issue on keeper app v 1.1.12(309)


ortools DLL load failed using PyInstaller

I am using pyinstaller to pack my model as a exe file.
after installation, the exe is running ok on my own computer. However, when change to another computer and click the exe, it pops up:

and by looking at the command line, the reported issue is about missing pywrpcp.py
File "ortools\constraint_solver\pywrapcp.py", line 13, in <module>

Does this "other" computer have the VS redistributable ?
My guess is pyinstaller won't pack system dll so you have to install it manually first
see: https://developers.google.com/optimization/install/python/windows#microsoft-visual-c++-redistributable

Does this "other" computer have the VS redistributable ?
My guess is pyinstaller won't pack system dll so you have to install it manually first
see: https://developers.google.com/optimization/install/python/windows#microsoft-visual-c++-redistributable

Yes, I am now downloading from here:
https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
how to check if any machine is installed with VS redistributable?
I remember I packed the same model 3 years ago using pyinstaller, and run the exe on the machine without VS redistributable successfully. Are there any changes in ortools which is now very dependent on VS redistributable?

Does this "other" computer have the VS redistributable ?
My guess is pyinstaller won't pack system dll so you have to install it manually first
see: https://developers.google.com/optimization/install/python/windows#microsoft-visual-c++-redistributable

Yes, I am now downloading from here: (please let me know if it is wrong. the file is very big to download and install)
https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
how to check if any machine is installed with VS redistributable?
I remember I packed the same model 3 years ago using pyinstaller, and run the exe on the machine without VS redistributable successfully. Are there any changes in ortools which is now very dependent on VS redistributable?

No. OR-tools always required redistributables.
Now, the visual studio version has changed.

No. OR-tools always required redistributables.
Now, the visual studio version has changed.

show I install Visual Studio 2019 or Visual Studio Code?

visual studio code is just an editor.
Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53
00
Le lun. 17 mai 2021 à 13:00, Westlife1002 @.***> a
écrit :

No. OR-tools always required redistributables.
Now, the visual studio version has changed.
show I install Visual Studio 2019 or Visual Studio Code?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2552#issuecomment-842228729,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3N6IZBM4WQPEBMH2MLTODZNBANCNFSM45AF5YDQ
.

both are IDE, here you just need some C++ runtime libraries so you need the Visual Studio 2019 REDISTRIBUTABLE.
note: when installing Visual Studio 2019 you have a option to install it as well as a component for C++ dev.

note: when installing Visual Studio 2019 you have a option to also install the redistributable as an internal component for C++ dev.

what do you mean by internal component ?


August lock configuration error in Home Assistant

Hi , Great component. Thank you for writing it.
I just tried to configure August lock within HA and got this error. Please take a look?
https://github.com/home-assistant/home-assistant/issues/13815

@B1tMaster can you look at here and see if that fixed your issue? https://github.com/home-assistant/home-assistant/issues/13815#issuecomment-421471022
I'll see if I can come up with a code change to handle this.


⚠ Fortnite has degraded performance

In 888f748, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1542 ms

Resolved: Fortnite performance has improved in bfed342.


Index document's text when available, and show snippet in search results

This branch adds a new field to the existing DocumentIndex search index model to allow for:

full text search on those documents that have a corresponding plain text OCR'd version
highlight of matching search terms in search results

The adding of the <end of text> custom tag in the DocumentIndex's template, plus the usage of the existing trim_snippet template tag follows the existing implementation for transcritps.

Adding a few screenshots to ease the reviewing:

Search results for Reich

Document detail view, when full-tex view was chosen, with highlights:


[Improvement] Auto-deploy ML Model with TTL in the memory

Currently the ML models are manually "deployed" or "loaded" into the memory which requires customers to manually invoke a "deploy" API before using any ML models. Also after usage, ml-common requires a manual "undeploy" or "unload" from end users. This is adding more overhead to the system and end users to use ml-common in the workflow.
We should build a auto-deploy mechanism to get rid of these "deploy" and "undeploy" operations in the workflow. Instead, we should auto deploy the model when customers use a model in the first time and setup a TTL to auto-undeploy from the system. In this way, the deploy and un-deploy APIs can be removed from the workflow and user experience are much simplified.

+1, automating management of availability of specific models would simplify operations significantly

@Zhangxunmt thanks for the proposal. This looks like a much asked feature. Couple of questions around the same:

How does the API experience will look like for the auto deploy model? Would we have a param when registering a model something like _register?auto_deploy=true?

Will we still support deploy API for users to deploy the model manually or will we deprecate the API?
As part of automating the setup of ml-commons we support DeployModelStep and UndeployModelSetp in flow framework. We might need to deprecate them here as well.

@owaiskazi19 , the BWC is still valid. Nothing is changed from your side. You can still setup deploy and undeploy in the flow frameworks. The API experience remain the same too. The model registration of "_register?auto_deploy=true" is still valid.
This change only handles the case when a cluster scale up and down, restart, or node replacement, etc. We need to auto-deploy the models in the "Prediction" stage so customers don't need to keep manually deploying again and again after each event.

https://github.com/opensearch-project/ml-commons/pull/2206


[Feature] Create new transform to ingest markdown (.md) files and conver to parquet format.

Search before asking

[X] I searched the issues and found no similar issues.

Component
Transforms/Other
Feature
Convert .md files to parquet files so that they can be processed by data prep pipeline
This is the preferred input for InstructLab
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Hi, I would like to work on this.

Sure, pls assign the issue to yourself.


feat(AlgebraicGeometry/ProjectiveSpectrum/Scheme): fromSpec and toSpec compose to identity

[ ] depends on: #9601

The proofs seem to be quite long. Is it possible to extract useful lemmas?

The proofs seem to be quite long. Is it possible to extract useful lemmas?

The length is mainly due to writing an element in some span as a sum of fractions and clear denominators. I will think about if any of these can be extracted out.

The proofs seem to be quite long. Is it possible to extract useful lemmas?

I golfed one lemma ToSpec.carrier_eq_span in #9601. Now #9601 is < 100 lines long which I think is an okay length. Could you please take a look at #9601?


Move Negate and Endorse to bottom of Point

We've been through this one. They need to be accessible when the user scrolls down, and that header is sticky.
I could repeat the buttons right after the Point, if that makes sense


SpoutReceiver not working: Failed to create 2D texture shader resource

In Unity 2023.1.0b20 I get the following warning:
d3d11: Creating a default shader resource view with dxgi-fmt=29 for a texture that uses dxgi-fmt=87
and error:
d3d11: failed to create 2D texture shader resource view id=1801 [D3D error was 80070057]
No matter what format I specify in the Unity render texture, it always creates a "dxgi-fmt" of 29 which is DXGI_FORMAT_R8G8B8A8_UNORM_SRGB according to this page. Ans this does not seem to match any output I can create in unity itself or any other program.
Same issue in Unity 2022.20b16.

I get the same issue in my tests

I have the same issue in Unity 2022.3.7f1.

This solution from another issue thread worked for me : https://github.com/keijiro/KlakSpout/issues/81#issuecomment-1067543009


Laravel 5.1 Support

Hey Ross,
The changes in this PR should allow the package to work in Laravel 5.1. Since there are a lot of changes, let me provide you with a tl;dr:
TLDR

Implemented PSR-4 Namespaces, which means the Traits, observers and Tests now all have their own namespace.
Default column names are now read from config instead a private attribute in the observer.
Since this is Laravel 5 (PHP 5.5.9) traits are now the only supported way of implementing the package imho.
Laravel 5 has this magic method of booting traits, so manually registering your model observer is no longer required!
Removed traces of created_by_id fields, since these gave me issues. Meaning:

your model created_by / edited_by / deleted_by now holds the integer field to the user, nothing else.
use the creator / updater / eraser fields to get the actual user object. Eloquent will handle the relationship mapping. You'll still need to include the Traits for these methods.

Me and coveralls had a disagreement. So I've removed it from the package.  I might need your help though.

Things to consider
If you consider merging the changes. Could you please:

Create a "legacy Laravel 4" branch of the current master branch? So legacy Laravel 4 users can still use the package (and add this to the readme afterward)
Release this package with a new Major version. Since these changes will break backward compatibility.

@rmasters Did you have any chance to look at the changes? Let me know if you need anything changed.

@nstapelbroek Hi Nico. I'm currently travelling but will be sure to have an in-depth look in about a week's time. On the face of it, this looks great and I expect I'll be happy to merge this. Thanks a lot!

Hey Ross, did you get a change to look at this?


Keep also warmup samples

Currently we do not record warmup samples. It can make sense to keep also warmup data (e.g. for timeline analysis over a single benchmark trial). We just need to keep them separate from the normal samples.

This is already in scope of #108 as we handle metrics much more generic.


Why cant I pick the 1.0 api anywhere?

The docs are locked at 4.1.
There isnt even a selector to pick something else.

Thanks for your feedback! We're actively working to surface older documentation on docs.microsoft.com.

Are there any url tricks I can use to get the older ones?   TFS 2015 is still supported, and I have to work with it.

Unfortunately there aren't any URL tricks, however we're close to surfacing older api versions. Will post the link here when the docs are live.

Older api versions can be found on our docs site by accessing this link https://docs.microsoft.com/en-us/vsts/integrate/legacy-apis/overview?view=vsts .

TY !

We've renamed the folder for these apis. Here is the new link https://docs.microsoft.com/en-us/vsts/integrate/previous-apis/overview?view=vsts


Multiple copy

Update: Copy is now automatic onto system clipboard.

Conflict with base branch appears to stem from my edit of clear command Alias from 'c' to 'x'.


CTECH-3015 add valuation example

Pull Request Checklist

[x] Read the contributing guidelines
[ ] Tests pass

Description of the PR
Add valuation example

/LGTM


Tooltips and URL Linking Don't Both Work at the Same Time

Version 0.4.0
If you take a component and add a URL Link click through things work fine.
If you take a second component and add tooltip text from the draw io editor it renders fine.
However if you take a 3rd component and add a URL click through link and a tooltip they both don't work.  I was wondering if I am doing something wrong.
It seems to me I had to make a lower Z level component do the click through URL and place another component on top that is smaller for the tooltip.
What is the recommended way to have one component that supports URL click through and tooltips?

Hi @Gyetko
This bug is known and fixed in the version 0.5.0 SNAPSHOT not let published
Can you try it at
https://algenty.github.io/flowcharting-repository/ARCHIVES.html
BR,
Arnaud


Fifo for reading data into rserve

Steve's suggestion, rather than writing to disk.

@ryanrdoherty thoughts?

so from fread's documentation i see this:

fread accepts shell commands for convenience. The input command is run and its output written to a file in tmpdir (tempdir() by default) to which fread is applied "as normal". The details are platform dependent -- system is used on UNIX environments, shell otherwise; see system.

which suggests to me that we wont so easily avoid writing to disk


Feature request: Ignore unused constraints

It would be nice to have an option to allow unused entries in a PCF file to be ignored. If there is a way to do that, I haven't found it.

My only hesitation is that if you use this option but misspell a constraint, the signal will be given a random pin assignment.  Depending on your setup, that could destroy your device.  Are you sure this is what you want?  If so, I'll add it.

Hmm... a lot of commercial tools offer this as an option (but keep the error as the default). However, it seems to me you have the same problem if you synthesis tool doesn't force you to use `default_nettype none right? If I have a constraint called FOO and I type FOOx by mistake, you'll merrily assign an unused and unconstrained IOB to it with the same result. Or do you protect against that somehow?
I suppose an alternative would be to allow a PCF file and keep the current behavior, but also allow a "board configuration" that the PCF file would override and having extras in it would be ok (but not in the PCF). So you could have:
--board-default-constraints=icestick
Or whatever and that would define a bunch of constraints. Of course, then you have to publish the names of the constraints and not everyone is going to like them so that makes a whole other set of problems.
If I were you, I'd add the option with a stern warning if you find unused constraints, but not a fatal error. So with no option it would behave like it does now. With the option it would change the fatal error to something like:
***** IMPORTANT WARNING: Constraint x not used. If you think your code uses this pin, then it is probably misspelled and assigned to a random pin. Programming this bitfile could create an output that will short circuit or otherwise be misconfigured and your chip may be damaged.
Or something like that.

OK, I will add the option and generate a warning.
I don't understand the case that can fail.  If you have a constraint FOO but misspell the signal FOOx, you get an error.  Alternatively, if you misspell the constraint FOOx with signal FOO, you also get an error.

My use case is I have a PCF file for the iCEStick that defines all the pins. The way it is now, I have to go comment out the ones I do not use or else I get an error.

Just a suggestion: Add support for a PCF syntax like set_io -noerr D1 99 to disable error reporting for individual statements.

I like Clifford's suggestion.  It seems to have all the right properties.  I checked in the change, syntax is `set_io --warn-no-port ...'.

My intuition to --warn-no-part would be that this enables warning about missing ports (warn when there is no port). I'd suggest something --no-warn-port or --no-warn-no-port instead.

That's exactly what it does: warn (instead of giving an error).  But I guess the latter is the more salient feature.  How about -no-err-port-missing?

That's exactly what it does: warn

Ah! Ok. Sorry. Now I get it... Yes, the name is fine of course.

Thanks to you both, both for the new option and the whole thing in general.


Try to use Beaker base kernel

For now the beaker-kernel-base artifact is located on my local Maven repo.

Merging to master since master is not working anyway.


LongPressDraggable doesn't have accessibility semantics for its long press action in iOS

cc @jonahwilliams

From what I can see, this also doesn't appear to be done in native draggable views either on Android.
On iOS, the system has a default announcement:

Draggable. Double tap and hold, wait for the sound to rearrange.

@DaveShuckerow shall I repurpose this issue into iOS support?

SGTM.

This is not fixed, running this code sample on iOS, announced as "drag"

Code Sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Drag app"),
        ),
        body: HomePage(),
      ),
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _HomePageState();
  }
}

class _HomePageState extends State<HomePage> {
  double width = 100.0, height = 100.0;
  Offset position;

  @override
  void initState() {
    super.initState();
    position = Offset(0.0, height - 20);
  }

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        Positioned(
          left: position.dx,
          top: position.dy - height + 20,
          child: LongPressDraggable(
            child: Container(
              width: width,
              height: height,
              color: Colors.blue,
              child: Center(
                child: Text(
                  "Drag",
                  style: Theme.of(context).textTheme.headline,
                ),
              ),
            ),
            feedback: Container(
              child: Center(
                child: Text(
                  "Drag",
                  style: Theme.of(context).textTheme.headline,
                ),
              ),
              color: Colors.blue[300],
              width: width,
              height: height,
            ),
            onDraggableCanceled: (Velocity velocity, Offset offset) {
              setState(() => position = offset);
            },
          ),
        ),
      ],
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel dev, 1.21.0-1.0.pre, on Mac OS X 10.15.6 19G73, locale
    en-GB)
    • Flutter version 1.21.0-1.0.pre at /Users/taha/Code/flutter_dev
    • Framework revision f25bd9c55c (3 weeks ago), 2020-07-14 20:26:01 -0400
    • Engine revision 99c2b3a245
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 20bf2fcf56)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.13.1

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios            • iOS
      13.6
    • macOS (desktop)        • macos                     • darwin-x64     • Mac
      OS X 10.15.6 19G73
    • Web Server (web)       • web-server                • web-javascript •
      Flutter Tools
    • Chrome (web)           • chrome                    • web-javascript •
      Google Chrome 84.0.4147.105

• No issues found!

This issue is reproducible on the latest stable and master channels with sample code at https://github.com/flutter/flutter/issues/18585#issuecomment-668584991.
When compared with iOS's home screen with list app icon (that can be draggable), it will be announced for its actions.

Demo
https://user-images.githubusercontent.com/104349824/201341078-349130d6-f344-4cfd-a11f-d78e67ba297c.MP4

I'm not sure what's expected result so I will update the label for further insights. Thanks!

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.3.8 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (23 hours ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.73.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[!] Flutter (Channel master, 3.6.0-1.0.pre.29, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-1.0.pre.29 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c6561e60a5 (57 minutes ago), 2022-11-10 20:46:09 -0500
    • Engine revision 53cfb94c5b
    • Dart version 2.19.0 (build 2.19.0-383.0.dev)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.73.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.


Add support of blockSize to download blob files in download function

Am using download function as shown below and I found that by default if the batchsize is greater than 4 MB then it downloads bytes in 16KB chunks and there is no mechanism to specify the block size to download. I also found that downloadtobuffer internally uses download function.
async function streamToBuffer(context, readableStream, serviceBusTask) {
    return new Promise((resolve, reject) => {
        var dataLen = 0;
        var chunks = [];

        // Event listener for data chunks
        readableStream.on("data", (data) => {
             // prints 16384 bytes
             context.log.verbose(`Received ${data.length} bytes of data. numChunks ${chunks.length}`);

            // Accumulate data length and push data chunk to chunks array
            dataLen += data.length;
            chunks.push(Buffer.isBuffer(data) ? data : Buffer.from(data));
        });

        // Event listener for end of stream
        readableStream.on("end", () => {
            context.log(`Finished Fetching numChunks: ${chunks.length} dataLen: ${dataLen} rowKey: ${serviceBusTask.rowKey}`);
            // Resolve the promise with concatenated buffer of all chunks
            resolve(Buffer.concat(chunks));
        });

        // Event listener for stream errors
        readableStream.on('error', (err) => {
            // Reject the promise with the error if any
            reject(err);
        });
    });
}

let downloadBlockBlobResponse = await blockBlobClient.download(startByte, batchSize, options);
await streamToBuffer(context, downloadBlockBlobResponse.readableStreamBody, serviceBusTask).then(
            async function (value) {
                context.log.verbose("Successfully downloaded data all data");
          }
);

Is this behavior expected? Previously the older apis used to download in 4 MB chunks.
The above code output prints

Hi @himanshu219 ,
The download method won't use block size, it will try to download the whole file with one request. 16KB seems like stream's buffer size. The SDK cannot change it.

got it Thanks.


docs: base_url is not defined

Hi,
There is the following javascript error on the documentation site:

ReferenceError: base_url is not defined (search.js:2)

require.config({
   baseUrl: base_url + "/search/"
});

Which break the search functionality of the documentation.

@panthony Thanks for pointing this out. We'll update base_url to avail search functionality.

@panthony Thanks for the feedback. We have updated the documentation and fixed the issue.


Explore button is disabled for Druid in SQL lab

Explore button is disabled for Druid in SQL lab. In #6557 it is said, that button is blocked because Druid does not support subqueries but this not true - Druid supports subqueries. Is there any other blocker for enabling this option ?
Expected results
Superset should enable user to create visualization for druid in SQL lab.
Actual results
Explore button is disabled for Druid in SQL lab
Environment
superset - master (97ffb762d0216e745fb1d946b4b1a4beeb66bfdf)

same issue on druid visualize on the SQL Lab


[Bug]: instanceof Date fails when using a date created from node-api (n-api)

Version
29.7.0
Steps to reproduce

create a simple example using napi-rs
Note: you will need a valid rust toolchain and configuration for this.
npx @napi-rs/cli new
cd example
update src/lib.rs with a date creating function

#![deny(clippy::all)]

use std::time::Instant;

use napi::{Env, JsDate, JsObject, NapiValue};

#[macro_use]
extern crate napi_derive;

#[napi]
pub fn create_date(env: Env) -> JsDate {
  let raw_env = env.raw();
  let mut ptr = std::ptr::null_mut();
  let dt =<PHONE_NUMBER>000.0;

  unsafe {
    napi::sys::napi_create_date(raw_env, dt, &mut ptr);
    JsDate::from_raw(raw_env, ptr).unwrap()
  }
}

build: yarn napi build
add jest as dependency: yarn add jest
create example test

// example.test.ts
const native = require("./test.node");
test("toRecords:date", () => {
    const date = native.createDate();
	    expect(date).toBeInstanceOf(Date);
});

run test: yarn jest example.test.ts

Expected behavior
I expect expect(date).toBeInstanceOf(Date) to be true.
Actual behavior
it is not true
Additional context
running it outside of jest works fine. Originally reported here, but was determined to be a bug within jest
Environment
System: Darwin 23.4.0 arm64 arm
Node: v22.1.0
Yarn: 4.3.1
NPM: 10.7.0

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

this is still a valid issue that I don't think should be closed

Duplicate of #2549


Problems with the Dataset/Autotuner

Hi there,
hope your cruise went fine !
So Autotuner is running now, but there is an issue with the test data (beside there is no decription).
Pictures and resulting code attached as files :)
Could you maybe put up some more description on the GUI ?
Axes are not described.
A tutorial R Script would be great, for GUI and R only. I would appreciate any hint right know :)
Thank you !
Maybe Parameters are the same as in IPO, so I should get along that first ?
Best, Christina

Error_Console.txt

Short Trial:
`setwd("D:/R_Ordner/R_Autotuner/mmetspData/")
#Select Data Path (*.mzML)
data<-"D:/R_Ordner/R_Autotuner/mmetspData/mzMLs/"
#Select Meta Data File (*.csv)
meta<-read.csv2("mmetsp_metadata.csv", sep = ",")
myAuto<-createAutotuner(data_paths = data, runfile = meta, file_col = meta$File.Name, factorCol = meta$Organism)
`
Ending with this:
`~~~ Autotuner: Initializator ~~~

Error in FUN(X[[i]], ...) : inherits(x, "mzR") is not TRUE
> `

Hey Christina,
Thanks again for your feedback. I really appreciate you taking the time to help make AutoTuner more accessible once again. There is a tutorial R script titled Intro.Rmd within the vignette folder in this directory. Hopefully, that can help.
I tried to reproduce your error on my console, and could not. At first, I thought the error might have to do with the path you entered into AutoTuner for the data, but that gave me a different error. Do you mind running the command session.info()? I'd like to see what version of the dependencies you've downloaded.
A video showing off the GUI is on the way!
Craig

So on the GUI this is the resulting code.
R is still busy, just taking more and more RAM.
How long does "Find Peaks" normally take?
Listening on http://<IP_ADDRESS>:3559 ~~~ Autotuner: Initializator ~~~   ~~~ Parsing Raw Data into R ~~~   ~~~ Extracting the Raw Data from Individual Samples ~~~   ~~~ Storing Everything in Autotuner Object ~~~   ~~~ The Autotuner Object has been Created ~~~   Warning in eval(as.symbol(paste0("..", i))) :   restarting interrupted promise evaluation Warning: Error in : no slot of name "peak_diff" for this object of class "Autotuner"   141:    125: peakView   118:    102: totalPeaks    97: renderUI    96: func    83: origRenderFunc    82: output$peakVisualization-plotCode     2: shiny::runApp     1: launchAutotuner
R still busy after 5 h :)
Aborting, Running Session Info:
sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1  Matrix products: default  locale: [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C                           LC_TIME=English_United States.1252      attached base packages: [1] stats     graphics  grDevices utils     datasets  methods   base       other attached packages: [1] shiny_1.3.2      mmetspData_0.1.0 Autotuner_0.1.0   loaded via a namespace (and not attached):   [1] colorspace_1.4-1             seqinr_3.4-5                 class_7.3-15                 modeltools_0.2-22              [5] mclust_5.4.5                 rprojroot_1.3-2              pls_2.7-1                    ggdendro_0.1-20                [9] fs_1.3.1                     rstudioapi_0.10              mzR_2.18.0                   remotes_2.1.0                 [13] affyio_1.54.0                flexmix_2.3-15               DT_0.7                       xml2_1.2.0                    [17] codetools_0.2-16             ncdf4_1.16.1                 doParallel_1.0.14            impute_1.58.0                 [21] robustbase_0.93-5            knitr_1.23                   ade4_1.7-13                  zeallot_0.1.0                 [25] pkgload_1.0.2                Formula_1.2-3                jsonlite_1.6                 Cairo_1.5-10                  [29] cluster_2.1.0                kernlab_0.9-27               vsn_3.52.0                   httr_1.4.0                    [33] BiocManager_1.30.4           readr_1.3.1                  compiler_3.6.1               PTXQC_0.92.6                  [37] backports_1.1.4              assertthat_0.2.1             lazyeval_0.2.2               limma_3.40.2                  [41] cli_1.1.0                    later_0.8.0                  htmltools_0.3.6              prettyunits_1.0.2             [45] tools_3.6.1                  gtable_0.3.0                 glue_1.3.1                   affy_1.62.0                   [49] reshape2_1.4.3               dplyr_0.8.3                  Rcpp_1.0.1                   MALDIquant_1.19.3             [53] Biobase_2.44.0               vctrs_0.2.0                  preprocessCore_1.46.0        iterators_1.0.10              [57] fpc_2.2-3                    crosstalk_1.0.0              stringr_1.4.0                xfun_0.8                      [61] proto_1.0.0                  ps_1.3.0                     rvest_0.3.4                  testthat_2.1.1                [65] mime_0.7                     devtools_2.1.0               XML_3.98-1.20                DEoptimR_1.0-8                [69] MASS_7.3-51.4                zlibbioc_1.30.0              zoo_1.8-6                    scales_1.0.0                  [73] MSnbase_2.10.1               kohonen_3.0.8                hms_0.5.0                    pcaMethods_1.76.0             [77] promises_1.0.1               ProtGenerics_1.16.0          parallel_3.6.1               sandwich_2.5-1                [81] RColorBrewer_1.1-2           yaml_2.2.0                   memoise_1.1.0                gridExtra_2.3                 [85] ggplot2_3.2.0                stringi_1.4.3                S4Vectors_0.22.0             desc_1.2.0                    [89] foreach_1.4.4                BiocGenerics_0.30.0          pkgbuild_1.0.3               BiocParallel_1.18.0           [93] rlang_0.4.0                  pkgconfig_2.0.2              prabclus_2.3-1               mzID_1.22.0                   [97] evaluate_0.14                lattice_0.20-38              purrr_0.3.2                  htmlwidgets_1.3              [101] processx_3.4.0               tidyselect_0.2.5             plyr_1.8.4                   ChemometricsWithR_0.1.13     [105] magrittr_1.5                 R6_2.4.0                     IRanges_2.18.1               pillar_1.4.2                 [109] withr_2.1.2                  BatchCorrMetabolomics_0.1.14 nnet_7.3-12                  tibble_2.1.3                 [113] crayon_1.3.4                 shinyFiles_0.7.3             crch_1.0-3                   rmarkdown_1.14               [117] usethis_1.5.1                grid_3.6.1                   data.table_1.12.2            callr_3.3.0                  [121] webshot_0.5.1                digest_0.6.20                diptest_0.75-7               xtable_1.8-4                 [125] httpuv_1.5.1                 scoringRules_0.9.6           stats4_3.6.1                 munsell_0.5.0                [129] viridisLite_0.3.0            kableExtra_1.1.0             sessioninfo_1.1.1

| >

Seems like the GUI is dealing with another separate issue. I'm sorry about that. For me, setting up a unit test for it has been a bit of a nightmare. Shiny usually keeps going even if the operation has halted, so that would explain the duration.
In the meantime, maybe take a look at vignette and try running AutoTuner through the R command line instead. That's usually what I end up doing most of the time.
Thanks for posting the session info. I'll compare it with mine. Maybe that is what caused the inheritance error above.

I tried just in R, using your script and that worked fine :)
So i'll try to mod that one.
With the GUI, I installed it on a second PC, a little bit different in Setup, same Issue. It keeps going.
Here comand line also works fine :)

Glad to hear everything work well! This has been my first major software design project, so please work with me. I'll be happy to update and maintain the algorithm as you discover bugs. believe me when I say that I really appreciate your patience with this whole process. I'm going to close this out and create a new issue specific to the GUI.

Glad to hear everything work well! This has been my first major software design project, so please work with me. I'll be happy to update and maintain the algorithm as you discover bugs. believe me when I say that I really appreciate your patience with this whole process. I'm going to close this out and create a new issue specific to the GUI.


[FeatureRequest] Control the matching regex by displaying the matched episode and Season in the bulk matcher

Well basicly title says it all.
Control the matching regex by displaying the matched episode and Season in the bulk matcher near/under/ontop of the "Preview" button. So we know where we have to go by hand.
Thanks Dularon

Fixed in 1.7.0


Custom Chunk Reading?

Sometimes there may be data embedded in custom chunks in an image. How would one use swift-png to check for these custom chunks? For example, TavernAI uses PNG cards that have a base64 string encoded into a "chara" chunk. How would I get this using swift-png? Sorry, I know this is an issue and not a support forum, but I'm stumped!

For example, for this PNG, this text chunk named "chara" does not appear in the swift-png metadata object.


“Air pay and an early quit!”

I’d love to see a feature of the mod that deducts crew hours based on which train crew/engine that the caboose is attached to. This way you would eliminate the hassle of moving all other hacks out of the way so that the hours were only deducted from your train. I believe this would also solve an issue with the crew hours not being counted, despite the caboose being near the train, even if it’s out of the predetermined radius from the consist.

The current reason I don't restrict it to your current train's caboose, is so that you don't have to have a caboose coupled to your train while shunting etc to gain the benefit.  They are like little area of effect bombs, symbolizing "there is crew in there, that might help out if there is activity nearby".
If you have a caboose track, it deducts from a nearby one.  I could put a crew selector on it, so it finds it nearby it would prefer that crew's caboose.
interesting idea.

I insist that it would be a great and realistic addition, and if there’s that much protest, one could always have a toggle for it 🤷🏻♂


v1alpha2: Implementation of AVO that will allow it to function in HyperShift

For OSD-13910 - largely implements the design in https://github.com/openshift/aws-vpce-operator/blob/main/designs/vpce_api_flexibility.md
It's time to make this PR...feel free to squash the commits, but they're notes from my (mostly) individual changes to get to this point
AWS IAM permission changes:
These let us more reliably pick out private hosted zones (as they're associated with a specific VPC) + the operator couldn't delete additional hosted zones it was creating previously.
Added: route53:ListHostedZonesByVPC, route53:DeleteHostedzone
Removed: route53:ListHostedZonesByName
Events/Logging
Added: an event recorder so the controller will generate events (oc get events) to help with debugging
Metrics
Added: aws_vpce_operator_unauthorized_operation_total which increments each time AVO gets an UnauthorizedOperation or AccessDenied when trying to do something in AWS. This would effectively let us monitor if IAM policies are sufficient for the operator to function.
Sample (AVO got denied when trying to run route53:DeleteHostedZone 5 times):
aws_vpce_operator_unauthorized_operation_total{action="route53:DeleteHostedZone"} 5

Testing
Tested in commercial ROSA stage BYOVPC (PrivateLink and non-PrivateLink clusters) by iterating on this CR (also tested with autoDiscoverSubnets: true, autoDiscoverPrivateHostedZone: true, and .spec.customDns.route53PrivateHostedZone.id = <ID>. Since it can create records in whatever kind of hosted zone it ends up with (the cluster's, a provided ID, or a created one based on domain name), this also completes OSD-13510
---
apiVersion: avo.openshift.io/v1alpha2
kind: VpcEndpoint
metadata:
  name: demo
  namespace: openshift-aws-vpce-operator
spec:
  serviceName: "com.amazonaws.vpce.us-east-2.vpce-svc-0dafc278c1b504df3"
  securityGroup:
    ingressRules:
      - fromPort: 6443
        toPort: 6443
        protocol: tcp
  customDns:
    route53PrivateHostedZone:
      autoDiscoverPrivateHostedZone: false
      domainName: "avo.com"
      record:
        hostname: "test"
        externalNameService:
          name: "test"
  vpc:
    autoDiscoverSubnets: false
    subnetIds:
      - "subnet-0f64d2ce8aea72990"

Codecov Report

Merging #95 (4ae8c24) into main (916307e) will decrease coverage by 13.79%.
The diff coverage is 16.15%.

Additional details and impacted files

@@             Coverage Diff             @@
##             main      #95       +/-   ##
===========================================
- Coverage   58.33%   44.55%   -13.79%
===========================================
  Files          26       27        +1
  Lines        1265     1432      +167
===========================================
- Hits          738      638      -100
- Misses        442      718      +276
+ Partials       85       76        -9

Impacted Files
Coverage Δ

controllers/vpcendpoint/vpcendpoint_controller.go
0.00% <0.00%> (ø)

pkg/aws_client/client.go
58.33% <ø> (ø)

pkg/aws_client/route53_hosted_zone.go
41.79% <0.00%> (-14.15%)
:arrow_down:

pkg/testutil/mock.go
55.55% <0.00%> (ø)

controllers/vpcendpoint/validation.go
12.50% <7.89%> (-32.53%)
:arrow_down:

controllers/vpcendpoint/cleanup.go
23.33% <12.50%> (-33.81%)
:arrow_down:

main.go
8.82% <14.28%> (+1.13%)
:arrow_up:

pkg/aws_client/subnet.go
41.86% <20.83%> (-20.64%)
:arrow_down:

controllers/vpcendpoint/helpers.go
46.86% <22.54%> (-14.37%)
:arrow_down:

pkg/aws_client/security_group.go
71.79% <33.33%> (-9.75%)
:arrow_down:

... and 11 more

fyi @dustman9000 this represents the bulk of the refactor, missing pieces that will be added shortly in a future PR:

externalSecretRef (which is currently blocking 2/3 of the HyperShift use-cases, but this unblocks 1 + covers the current FedRAMP feature set)

/lgtm


Replaced PipelineItem with Serializable with AnyRef

Related issue(s): #114
Description of changes
Removed PipelineItem() and replaced it with Serializable

Check-list
Please make sure to review and check all of these items:

[x] Are the updated classes tested?
[x] Are the updated classes documented & properly formatted?
[x] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Pull Request Test Coverage Report for Build 785

15 of 15 (100.0%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.645%

Totals

Change from base Build 776:
0.0%

Covered Lines:
760

Relevant Lines:
803

💛  - Coveralls


After I have installed numpy, panda and olmp, I try to run the example, but it failed

Hi there, could you please provide a more detailed explanation of your issue? I'd be happy to look into the dependency issue for you.


Build fails: KeyError: 'in_taxon'

The most recent build fails during merge as follows:
20:51:31  Reading node and edge files
20:51:31  Merging...
20:51:31  Generating QC report
20:51:31  Traceback (most recent call last):
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3621, in get_loc
20:51:31      return self._engine.get_loc(casted_key)
20:51:31    File "pandas/_libs/index.pyx", line 136, in pandas._libs.index.IndexEngine.get_loc
20:51:31    File "pandas/_libs/index.pyx", line 163, in pandas._libs.index.IndexEngine.get_loc
20:51:31    File "pandas/_libs/hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
20:51:31    File "pandas/_libs/hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
20:51:31  KeyError: 'in_taxon'
20:51:31
20:51:31  The above exception was the direct cause of the following exception:
20:51:31
20:51:31  Traceback (most recent call last):
20:51:31    File "run.py", line 136, in <module>
20:51:31      cli()
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
20:51:31      return self.main(*args, **kwargs)
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/click/core.py", line 1053, in main
20:51:31      rv = self.invoke(ctx)
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
20:51:31      return _process_result(sub_ctx.command.invoke(sub_ctx))
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
20:51:31      return ctx.invoke(self.callback, **ctx.params)
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/click/core.py", line 754, in invoke
20:51:31      return __callback(*args, **kwargs)
20:51:31    File "run.py", line 132, in catmerge
20:51:31      merge_with_cat_merge(merge_all, include_only, exclude)
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/kg_bioportal/merge_utils/merge_kg.py", line 165, in merge_with_cat_merge
20:51:31      cat_merge_merge(
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/cat_merge/merge.py", line 59, in merge
20:51:31      qc_report = create_qc_report(kg)
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/cat_merge/qc_utils.py", line 88, in create_qc_report
20:51:31      nodes['in_taxon'] = nodes['in_taxon'].fillna('missing taxon')
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/pandas/core/frame.py", line 3505, in __getitem__
20:51:31      indexer = self.columns.get_loc(key)
20:51:31    File "/var/lib/jenkins/workspace/NCBO/kg-bioportal/gitrepo/venv/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3623, in get_loc
20:51:31      raise KeyError(key) from err
20:51:31  KeyError: 'in_taxon'

I believe this happens because the cat-merge qc utils try to use the in_taxon field as a way to enumerate taxons specified among nodes, but the inputs for kg-bioportal do not use this field.

Temporary solution is to pin cat-merge to 0.1.7

Fixed in cat-merge.


tests: kernel: fpu_sharing: fix double-promotions

Double promotion warnings are generated with the flag -Wdouble-promotion

No reason not to -1, but this looks like a broken warning to me.
The idea behind -Wdouble-promotion is to warn you when math on your float value is going to be done in double precision (e.g. software-emulated). Here, it's being passed in the varargs list to a declared function with a printf format attribute (it's literally printf()!) and matched against a "%f" specifier, which requires that its argument be passed as a double at the ABI level.
The automatic promotion is correct; the warning is wrong. Basically: this looks like a toolchain bug to me. AFAICT, this warning isn't being enabled anywhere internal to the Zephyr tree. Not personally a fan of taking code, no matter how trivial, to work around toolchain bugs elsewhere.

This is trying to go within Zephyr see: https://github.com/zephyrproject-rtos/zephyr/pull/57154 . Just too many times people have pushed up and merged in issues where floats magically become doubles and nobody knows about it... but in order for this to go in, we've gotta get the warnings fixed throughout the CI builds including this one.
That is not a toolchain bug nor a broken warning there.... that float is being promoted to a double there and IIRC will even start to compile in the compiler libraries for double precision if there is no DPFPU

I'm thinking something like this may be cleaner...
#ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION
#define FP_CONSTANT(x)   x##f
#else
#define FP_CONSTANT(x)   x
#endif

No reason not to -1, but this looks like a broken warning to me.
The idea behind -Wdouble-promotion is to warn you when math on your float value is going to be done in double precision (e.g. software-emulated).

Some platforms only have 32-bit HW floating point capabilities. In some cases using SW emulation and linking the vast kB associated with emulation code (I'm being facetious) can be prohibitively expensive.. (I'm sure there is a use case for that, maybe). Really though, real-time motor control or something like that might be an actual use case.
Anyway... inside of this test file, in particular, I think we could get away with far fewer #ifdefs by typedefing either double or float in file scope and using the FP_CONSTANT(x) Ryan mentioned above. The only scenario where that may be tricky are specific NaNs or values that are out of range / precision for float.

That is not a toolchain bug nor a broken warning there.... that float is being promoted to a double there

Meh.  It's being promoted to a double in a context where it must be promoted to a double though.  There are no (standard) ways to printf() a 32 bit float.  Float values in varargs context must be passed as doubles per the langauge standard.  Warning about it is just wrong, and the cast adds nothing but source code bytes.
As stated though, not a -1.  Surely the warning has value in other contexts, it just cheeses me off that the toolchain didn't get the edge cases right, and makes me worry that there are other such slip-ups we'll be dealing with.