Keras to pytorch model, results are different.

Platform (like ubuntu 16.04/win10): win10
Python version: 3.7
Source framework with version (like Tensorflow 1.4.1 with GPU): 1.15.2
Destination framework with version (like CNTK 2.3 with GPU): pytorch 1.5.1
Pre-trained model path (webpath or webdisk path): Customized model
Running scripts:

mmtoir --srcFramework keras --weights mcl_1655_resnet50_edu001_ep025.h5 --network mcl_1655_resnet50.json --dstPath keras_1655_resnet50

mmtocode -f pytorch -n keras_1655_resnet50.pb -w keras_1655_resnet50.npy -d keras_1665_resnet50_pytorch.py -dw keras_1655.resnet50_pytorch.npy

mmtomodel -f pytorch -in keras_1665_resnet50_pytorch.py -iw keras_1655.resnet50_pytorch.npy -o keras_1655_resnet50_pytorch.pth

I cannot use pth model since my code
torch.load("keras_1655_resnet50_pytorch.pth")

spits error "ModuleNotFoundError: No module named 'MainModel'"
so that I use npy and py file to inference, but results are different from what I expected.
I thought results should close enough to be reasonable, but too far from what I expected.
torch.return_types.sort(
values=tensor([2.3057e-22, 3.2130e-20, 3.4704e-20,  ..., 2.4499e-03, 1.1080e-02,
        9.8416e-01]),
indices=tensor([ 148, 1550,  128,  ..., 1570,  629, 1564])) torch.return_types.sort(
values=tensor([2.5458e-22, 3.5476e-20, 3.8318e-20,  ..., 2.6978e-03, 1.2086e-02,
        5.2077e-01]),
indices=tensor([ 148, 1550,  128,  ..., 1570,  629, 1564]))

Indices are same, but values are differenet. I udnerstand these frameworks have different shape of input tensor, but I found these are too different from other converting tools.
Please help me, why this happens. Thank you in advance

@leehangyu , thank you very much for the feedback. Please refer to this FAQ for loading the converted PyTorch model, and add the following code:
import imp
MainModel = imp.load_source('MainModel', "keras_1665_resnet50_pytorch.py")

before
torch.load("keras_1655_resnet50_pytorch.pth")


[PDI-14296] Load File Content in Memory corrupts data read from binary files

LoadFileInput step was modified in order to work with file content as a binary array, not as a String
filecontent field in the LoadFileInputData became byte[]

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/loadfileinput/LoadFileInput.java
  engine/src/main/java/org/pentaho/di/trans/steps/loadfileinput/LoadFileInputData.java
  engine/src/main/java/org/pentaho/di/trans/steps/scriptvalues_mod/ScriptValuesAddedFunctions.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.core.lifecycle.KettleLifecycleSupport

Branch Change: -8.4% :small_red_triangle_down:
Complexity Change: -9.1% :small_red_triangle_down:

org.pentaho.di.job.entries.evaluatetablecontent.JobEntryEvalTableContent

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.excelwriter.ExcelWriterStepMeta

Branch Change: -1.3% :small_red_triangle_down:
Complexity Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -3.1% :small_red_triangle_down:
Complexity Change: -3.1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.loadfileinput.LoadFileInput

Branch Change: -1.6% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -1.9% :small_red_triangle_down:
Line Change: -2.6% :small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -2.2% :small_red_triangle_down:
Complexity Change: -2.6% :small_red_triangle_down:

org.pentaho.di.trans.steps.processfiles.ProcessFilesMeta

Branch Change: -3.5% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:
Instruction Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.tableoutput.TableOutputMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.www.TransformationMap

Branch Change: -9.1% :small_red_triangle_down:
Complexity Change: -6.2% :small_red_triangle_down:
Instruction Change: -10% :small_red_triangle_down:
Line Change: -10% :small_red_triangle_down:

org.pentaho.di.trans.steps.gpload.GPLoadMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupdate.SalesforceUpdateMeta

Instruction Change: -0.2% :small_red_triangle_down:

@mbatchelor @pamval @mchen-len-son @bmorrise please review

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/loadfileinput/LoadFileInput.java
  engine/src/main/java/org/pentaho/di/trans/steps/loadfileinput/LoadFileInputData.java
  engine/src/main/java/org/pentaho/di/trans/steps/scriptvalues_mod/ScriptValuesAddedFunctions.java
  engine/src/test/java/org/pentaho/di/trans/steps/loadfileinput/LoadFileInputTest.java
  engine/src/test/resources/org/pentaho/di/trans/steps/loadfileinput/files/UTF-8.txt
  engine/src/test/resources/org/pentaho/di/trans/steps/loadfileinput/files/Windows-1252.txt
  engine/src/test/resources/org/pentaho/di/trans/steps/loadfileinput/files/pentaho_splash.png

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.job.entries.simpleeval.JobEntrySimpleEval

Branch Change: -0.3% :small_red_triangle_down:
Complexity Change: -0.4% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.step.StepMeta

Branch Change: -0.7% :small_red_triangle_down:
Complexity Change: -0.6% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.7% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change: -1.2% :small_red_triangle_down:
Complexity Change: -0.7% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.googleanalytics.GaInputStepMeta

Branch Change: -1.9% :small_red_triangle_down:
Complexity Change: -1.1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:


sht31: remote I/O error

this error observed in the server log when being attacked by a remote client:
<IP_ADDRESS> - - [30/Dec/2024 00:51:00] "GET / HTTP/1.1" 200 -
FATAL ERROR(send_i2c_cmd): i2c device at address 0x45 is not responding
/home/pi/github/ThermostatSupervisor/thermostatsupervisor/sht31_flask_server.py:343: RuntimeWarning: No channels have been set up yet - nothing to clean up!  Try cleaning up at the end of your program instead!
  GPIO.cleanup()  # clean up GPIO
[2024-12-30 00:51:00,510] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
    resp = resource(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/flask/views.py", line 110, in view
    return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
    resp = meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/github/ThermostatSupervisor/thermostatsupervisor/sht31_flask_server.py", line 645, in get
  File "/home/pi/github/ThermostatSupervisor/thermostatsupervisor/sht31_flask_server.py", line 319, in get
    self.send_i2c_cmd(bus, sht31_config.I2C_ADDRESS, cs_enabled_high)
  File "/home/pi/github/ThermostatSupervisor/thermostatsupervisor/sht31_flask_server.py", line 179, in send_i2c_cmd
    raise exc
  File "/home/pi/github/ThermostatSupervisor/thermostatsupervisor/sht31_flask_server.py", line 173, in send_i2c_cmd
    bus.write_i2c_block_data(i2c_addr, register, data)
  File "/home/pi/.local/lib/python3.12/site-packages/smbus2/smbus2.py", line 645, in write_i2c_block_data
    ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
<IP_ADDRESS> - - [30/Dec/2024 00:51:00] "GET / HTTP/1.1" 500 -

server was unresponsive, I was unable to kill the service window so tried PC reboot and that resolved the issue.


Question regarding batch period

Hi @Jeffail, just a quick question regarding batch processor,
the docs said 'The period field is non-empty and the time since the last batch exceeds its value'. Does it means the period option will not be in effect at the first batch?
In my case, i have set it up as output-broker's processor (consisting of kafka and elasticsearch) with 20MB batch and 10000 period. But in about 15 minutes , i dont see the outputs sending any data (my data rate is relatively slow currently). Only when i set count to 100 that i see some outputs being sent.

Hey @rucciva, it should work with the first batch. Did you upgrade recently? The newest version of Benthos no longer has int based periods so it might be that you need to change a field. If you run benthos -c yourconfig.yaml --lint it should tell you.

yes i was using 0.41.1 I didn't test it further with that version but since upgrading to 0.42.1 it works.
thanks again.


Node process in the terminal not killed after closing VsCode

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.76.1 (Universal)
OS Version: Darwin arm64 22.3.0

Steps to Reproduce:

Run a node process like npm run dev.
Close the vs code
Reopen vs code and when you run npm run dev again you'll get the error port already in use.

I was using the latest vs code insiders and started facing this issue then I completely uninstalled that, installed a stable version but still this issue is not resolved.

I believe this is already fixed, can you see if you can reproduce in the Insiders build?
/label info-needed

Tried this in insiders as well, but still getting the same issue
These are details of insider build I installed
Version: 1.77.0-insider (Universal)
Commit: bbe8e872dc7c8899eb80bc4b650a6f090f4bc952
Date: 2023-03-14T05:23:55.404Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.3.0
Sandboxed: Yes

Is there any way to fix this?

I thought maybe Vite.js was to blame, because that's what I run in development mode from VSCode, but I haven't updated Vite in a while. Meanwhile, it also happens when I run Storybook from VSCode nowadays, it no longer frees the port either, so essentially I go from npx kill-port 8080 to npx kill-port 6006, etc. Thanks.

@eleanorjboyd @roblourens maybe related to the node.js issues you've been working on

I have been hitting something which I think is similar while testing a fix for a different remote-ssh issue. The remote-ssh issue I am working on has been ongoing for a bit due to a previous electron update. I will stay up to date with this thread to confirm if it is or not. Thanks!

Same here (also on macOS). This started happening for me after the update to 1.76. I downgraded to 1.75 and everything works fine there.
I usually had a few node and zsh processes hanging around after closing VS Code. Of course, this multiplies if I open/close VS Code a few times.
It was impossible to work with, so I had to downgrade and disable updates for now.

Is there any way to fix this?

@kunaaal13 go to https://code.visualstudio.com/updates/v1_75 and download that version (download links are at the top of the page).

Thanks for pin-pointing the version @JannesMeyer!
I downgraded my 1.76 back to 1.75, and this is indeed fixing this pesky issue. This is great.
Not sure if this helps, but since this is "process" related, I noticed 1.76 has process-related changes: Visual Studio Code February 2023 -- More Electron UtilityProcess adoption

@meganrogge

I don't see any suspicious February PRs that could be related to this.

Might be #174020?

@tamuratak @meganrogge @bpasero  I'm not entirely familiar with VSCode source, but it seems to me that an await is missing (here)...

It is not missing:
https://github.com/microsoft/vscode/blob/fa13bf16fd237afef07f4df0648da026f43e3963/src/vs/platform/lifecycle/node/sharedProcessLifecycleService.ts#L35

Merging to https://github.com/microsoft/vscode/issues/174956


Fix debug builds of unit test project

There is an error finding the debug version of the Google Test library when compiling the debug builds of the unit test project.

So after checking the vcpkg folders, I noticed there are separate folders for the release builds and the debug builds. In both folders, the libraries are found without the "d" suffix. That means it should just be "gtest.lib" and "gtest_main.lib".
Of course, vcpkg has automatic linking of the core library, though it's manual linking for the "main" version that includes the main function. That means we only need to explicitly specify the gtest_main.lib library, which we do use.
Now although the above fix does get the code to link, it unfortunately aborts with an error when run. During some reading, I thought I saw mention of a bug report where vcpkg uses the release version of the library for debug builds, which might explain the crash. I'm uncertain if fixing that error would mean the "d" suffix would be restored.
I'll have to do some more investigation later, and maybe link to all the relevant pieces.

So I discovered something curious. If I remove the gtest.lib library from the explicit list of libraries to link, then Google Test will still run, but it won't find any tests to execute. It just prints the summary, with no tests run.
No idea why no tests are run without explicit manual linking. Maybe something related to library include order.
It seems we can remove explicit manual linking for opengl32.lib without any issue. Though I am a bit hesitant to remove that one without first understanding the issue for gtest.lib.

I enabled a little more debug output for the linking step using:
Project -> Properties -> Configuration Properties -> Linker -> Show Progress = Display all progress messages (/VERBOSE)
Project file change under <Link> section:
<ShowProgress>LinkVerbose</ShowProgress>

It seems vcpkg was linking the release versions for gtest.lib into the Debug builds. It seems the default behaviour of vcpkg is to always link Release versions of libraries, unless specifically requested otherwise. This sort of makes sense, since you don't typically bother to debug your dependencies. It maybe makes a little less sense with Google Test, since I believe it needs to be compiled with the same settings as the project under test.
To change the setting:
Project -> Properties -> Configuration Properties -> vcpkg -> Vcpkg Configuration = Debug
Project file change under PropertyGroup Label="Vcpkg":
<VcpkgConfiguration>Debug</VcpkgConfiguration>

Changing the VcpkgConfiguration from Release to Debug changes the referenced library from the first to the second (adds the debug folder in the path):

vcpkg_installed\x64-windows\x64-windows\lib\manual-link\gtest_main.lib
vcpkg_installed\x64-windows\x64-windows\debug\lib\manual-link\gtest_main.lib

Doing a full rebuild of the Solution, using VcpkgConfiguration set to Debug allows the unit test project to run. Oddly, that only seems to be true after a full Solution rebuild. Only rebuilding just the test project will still result in crashes.
Curiously, the property pages for other projects also show the Debug setting change under the vcpkg section, even though only the test project file was updated. I'm not sure why that would be.

I looked a little further into removing gtest.lib from the explicit list of AdditionalDependencies. It seems that tests are not found only in Release mode. The Debug builds still find and run tests after removing gtest.lib from AdditionalDependencies.
I suspect maybe a Link Optimization that discards the tests, perhaps thinking they're unreferenced. I'm not too sure how Google Test keeps track of test functions, so it knows how to run them. If it traverses some kind of symbol table in the executable file, there might not be any references, and so the Linker might drop what it thinks are unreferenced symbols. Mind you, I tried adjusting the Link Optimization to drop unreferenced data, with no success at finding tests. I also adjusted options for COMDAT folding, and Link Time Code Generation, also with no success. Those seemed to be the only Link Optimizations that differed from a Debug build.


12.2 iPad Air 2 (Wi-Fi) - failed to exploit kernel (A8X) with Unc0ver v3.4.0, hanging at 1/31

Describe the bug
iPad Air 2 failing to properly exploit the kernel.
To Reproduce

Turn on the device.
Open Unc0ver v3.4.0
Click "Jailbreak"
After a couple of moments, the jailbreaking process will hang at 1/31 with no new log appearing on screen.

Screenshots

Device

iOS Version: 12.2 (Release)
iOS Device: iPad Air 2 (Wi-Fi)
unc0ver Version: 3.4.0

Place an "x" between the brackets if true:

[x] this is a bug others will be able to reproduce
[x] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[ ] this issue is present after a rootfs restore
[x] this issue is present on the latest version of unc0ver

Logs
diagnostics.plist.zip

I had the same error in the beginning since 3.3.0 then some other error until 3.4.2. Then I did a "Restore RootFS, "Reinstall Cydia", "Reset Cydia Cache",  and works fine now at 3.4.2 on iPad Air 2.


Unable to zoom using dolly when it's orthographic

Is your feature request related to a problem? Please describe.
When it's in perspective I zoom using dolly, so moving the camera closer, but when it's orthographic it's not possible to zoom.
Describe the solution you'd like

A generic function to zoom, that handles both orthographic and perspective
Exposing VtkCamera.SetParallelScale to change the zoom in orthographic. This is what it's done in the app here
A function only to zoom when orthographic similar to the other functions where you only pass the delta and not the final value
Recompute the parallel scale internally when Dolly(), SetPosition(), and SetFocalPoint() are called if the camera is orthographic (and any other methods that affect the position-focal distance), this would not change the API

Also a function to be able to save the settings without rendering would be possible, because it would let me change to perspective, save, dolly and change back. Now it needs to render to be able to save.
Additional context
This is what I have done to make it work:
https://github.com/Nokse22/Exhibit/blob/3f6b2118d0365da4eeab1e8cc87d760cb5c54dbd/src/window.py#L190-L194

wdyt @Meakk ?

for reference:

vtkCameras zoom method changes the view angle in perspective mode and the parallel scale in parallel mode
vtkInteractorStyleTrackballCamera's dolly medhod moves the camera in perspective mode and changes the parallel scale in parallel mode
in F3D there's a heuristic (copied from somewhere in VTK) to match the distance and the parallel scale when changing modes


Investigate APK update via github release

Investigate a feature that will allow pushing OTA updates via the GitHub releases. Do the following:

Look at GitHub API to find an endpoint to allow getting current releases
Investigate installing/updating the app using an APK (Android enforces some security restrictions for app updates)
Implement a settings activity that contains an option to check for updates

It seems that you do not need an authorization token to access the release API. Example of CURL call to get latest release (doesn't get drafts).
curl -L -H "Accept: application/vnd.github.json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/florinzaicu/FloatingOverlay/releases/latest

In order to implement the update feature, I need to modify the pipeline signing process to use the same key for the RC APK, otherwise, the Android app cannot self update.
It also looks like you need to flag the release as latest to not receive from the API endpoint. I need to also ensure that I can get the version and display the markdown to tell the user what the changelog is.


Create an iterative agile dashboard

Create a dashboard that highlights the iterative approach.
A tool that makes it easier for product managers and the company to understand releases / iterations.
Roadmaps today (jira, github, etc.) generally show big bulky epics on a fixed timeline. This is still waterfall. It is time for truly agile roadmaps without huge bulky epics, to foster an iterative approach, instead of waterfall in sprints.
We could:

blog about it (punchline: it is time for agile roadmaps)
use some cool framework like qwik to implement it
integrate with gitlab issues first, jira only later

Dashboard Sketch:

Ontop of this, the dashboard could also display key product KPIs / data used to come up with goals
Repos:

main project: https://gitlab.com/flyck/agile-roadmaps
github planning project for github integration: https://github.com/flyck/dummy-planning

Hypotheses:

Managing technical projects is hard for companies. There is a tendency to waterfall in sprints.
It will be easier for companies to become more agile, if they have a better overview of the iterative process.
It is kind of easy to pull a lot of the information needed for such a dashboard and display them in a UI.
A blog post on an implementation of such a dashboard could be interesting to read.

A related rant about the current use of epics:
Epics are called epics because they are huge and inspiring. They tell a story and push the team into a direction. An epic is not necessarily meant to be completed. Changes will inevitably happen, the course will be corrected. For the most cases, determining a deadline for an epic is a bit nonsensical and totally waterfall. Deadlines are sometimes needed. But in general it is enough that an epic paints the picture, while the releases make the way. You might have a successful epic, which results in postive KPIs and an enhanced user satisfaction, without ever finish all items in the epic.

Another idea: When hypothesis are itself tickets, which are assigned to the PMs, you can measure the hypothesis validation time. The shorter obviously the better ;) These hypothesis tickets would be just tickets with a special type or tag, depending on the system.
This validation time might be much more valuable - depending on the usecase - than the deadline for the epic. What we want is often not to meet a deadline, but to evaluate a hypothesis in a short amount of time.

Got a super basic prototype of an agile roadmap working in github projects 👇🏻 All the basic components are there, but they are hard to differentiate 😄 Time to build something custom...


Move rlgl and audio functions into separate libraries

As suggested in the README, this splits raylib into 2 new libraries: raylib-raudio and raylib-rlgl.
A possible improvement would be to restructure src/c into src/c/{raylib,raygui,rlgl,raudio} instead of src/c/{config,functions,stubgen,types}. I don't know what would be easier to maintain.

Thanks for tackling this issue!
What I had envisioned was the following:
There is only one single raylib package which comes with several libraries. So in opam your game would only depend on one raylib package. If you use  raylib (via (libraries raylib) in dune) you can use only the raylib core module. Then using other raylib modules requires pulling in additional libraries, e.g. (libraries raylib raylib.audio raylib.rlgl).
For inspiration I suggest the llvm package, which is structured like this (versions up to 14, at least).
As for the module granularity: Carving out audio and rlgl is as good a starting point as any. Ultimately, I think it makes sense to follow the module split of upstream raylib, which is outlined in this cheat sheet https://www.raylib.com/cheatsheet/cheatsheet.html. But you wouldn't want to do this manually, most likely. I have some (unfinished, borderline unusable) code in src/util to semi-automate the binding generation. It takes the json description of the raylib API as input. This description already separates everything into said module structure.
When we have this structure set up, it'd also make sense to move the gui binding from their own package into the raylib package as a sub-module.
Just to be clear: I don't expect you to do all of the work with this PR. I just wanted to outline a possible future state of the module split.


Bitcoin Cash?

Umm... Why pay $50 fees?

There are two issues those must be solved if someone wants to port it to Bitcoin cash.

The DoS and Sybil protection depends on >$1 average network fees.

https://github.com/nopara73/ZeroLink/#d-dos-attack
It can be solved, at least the DoS attack for sure, the document also lists 4 more strategies, they are just more complicated.

Malleability Fix/Maximum Anonymity Set

https://github.com/nopara73/ZeroLink/#speeding-up-mixing

All Chaumian CoinJoin input MUST be Segregated Witness input. This prevents the transaction to be malleated, as a result the Tumbler can accept unconfirmed Chaumian CoinJoin change outputs from the user in the next round.

I'm not sure if this can be done without malleability fix. Of course there is always the possibility to just not care. Worst case, the mix aborts after a few hours, nobody loses money.
Also with witness discount the maximum anonymity set is about 40% more, not sure if it matters that much.

Malleability was solved in November. https://github.com/Bitcoin-UAHF/spec/blob/master/nov-13-hardfork-spec.md https://github.com/bitcoin/bips/blob/d2a8fb089d7010d839530f879e07edc4e48b84fa/bip-0146.mediawiki

We decided on to not plan multi coin support within the forseeable future.


PPF-263: black isort skip ci

Codecov Report

Merging #264 (6633f0d) into master (814017e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #264   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           18        18
  Lines          862       862
=========================================
  Hits           862       862

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 814017e...6633f0d. Read the comment docs.


Simplified various templates to single asset template

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (95c33f1) 79.53% compared to head (8be1a4f) 79.65%.

:exclamation: Current head 8be1a4f differs from pull request most recent head 355ece8. Consider uploading reports for the commit 355ece8 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   79.53%   79.65%   +0.11%
==========================================
  Files         115      110       -5
  Lines        3020     3008      -12
  Branches      473      473
==========================================
- Hits         2402     2396       -6
+ Misses        352      346       -6
  Partials      266      266

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Consider having needsClick() check ancestry

Observations:

The needsClick() method returns true if the target is a label,

Synthetic clicks apparently don't reliably toggle the label's associated checkbox (input of type checkbox), which I assume was the motivation for having this method return true for labels.

Problem:

needsClick() returns false if the target is inside a label.

Thus, if the user taps (say) a nested span inside the label, needsClick() returns false, and the associated input of type checkbox doesn't get toggled.

Possible resolutions:

Have this method check ancestry, and return true if the target is a label or inside one.  (I suspect that "label" is not the only case in this method that needs this ancestry check, e.g. span within a disabled button.)

If the ancestry check is considered a performance concern, consider updating the "needsclick case 1" section of the doc so users know to watch out for this case.

Workaround:

Page author can put needsclick class on all DOM nodes inside the label's subtree, which can be verbose.

+1 needsclick in a parent node should apply to all children nodes


add reload_modules to pip install of docker-py state

simultaneously fixed in https://github.com/memex-explorer/memex-explorer/pull/509


Logo Design Proposal

hello @itzmeanjan Here's what I came up with SensorZ.. I hope you like it!

Simple and Uniform to the other Z project logos of yours. The design is a combination of the Sensor symbol and Z initial.. Colors are based from the actual projects screenshots

Readme Mock up

Now this one looks real cool :+1:
Could you please also make icons for this app, so that I can rebuild it with newly designed icon ?
Thanks mate :)

Will do for sure!! 😊

Here's the PR #2 with the logo upload and readme update @itzmeanjan
all other version & file formats you can download HERE
I will work on your other project next! 👍

And merging done :)
Great work  @Tobaloidee  :+1:


M.2 Dual Edge TPU Not Showing up

Description
Using a Lenovo M910Q. I was hoping to see at least one coral device, but I don't see either. I see that MSI-X is enabled on my M.2 Drive, but this is a B+M key'd slot so I cannot try to use my coral there. I didn't get any errors while going through the installation steps outlined here. But when running lspci -nn | grep 089a there is no output and ls /dev/apex* returns No such file or directory
I have disabled secure boot. This is using a native A+E key slot on my motherboard that was previously occupied by a WiFi + Bluetooth chip. When running lspci -vv and checking this chip's capabilities I see MSI: Enable+, but I suspect this is just because this chip doesn't use MSI-X. Any help would be so greatly appreciated as I would love to use this module and not try to find another that works with my computer.
Click to expand!
Issue Type
Support
Operating System
Ubuntu
Coral Device
M.2 Accelerator with dual Edge TPU
Other Devices
No response
Programming Language
No response
Relevant Log Output
No response

edit: fixed link

Thanks.. please share the output of below commands also.

modinfo gasket
modinfo apex

gasket.txt
apex.txt

@MrAnonymous722 I am not able to see the Device ID 089a in any of these logs. Is the device connected properly ?

@MrAnonymous722 Are you still facing the same issue ?


Rails + Materialize: select doesn't select proper "selected" option

Using Materialize in my Rails 4.2 app, and having a problem with select to show proper "selected" option after form has been saved.
I've checked logs and variable does get saved.
I've tried:
<%= f.select :state, options_for_select(apply_us_states, :selected => params[:state]) %>

and also tried
<%= f.select :state, options_for_select(apply_us_states, params[:state])%>

Select works and shows options as it should, but won't select previously saved value.

Nvm, got it sorted out.
This is what i had to do:
<%= f.select :state, apply_us_states %>

apply_us_states is a helper
hope this helps someone else

Can we see the helper you used for the options?


Add dependabot auto approve automation

Adds ability to auto approve PRs from dependabot.

I'll be merging this as is to test against an open dependabot PR -- will remove / adjust the workflow as-needed


Create2 deployment by script does not use create2 to deploy libraries

Component
Forge
Have you ensured that all of these are up to date?

[x] Foundry
[x] Foundryup

What version of Foundry are you on?
forge 0.2.0 (c49e5e1 2023-04-09T00:16:17.106319000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
I have the following deployment script
// SPDX-License-Indetifier: SEE LICENSE IN LICENSE

pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import "../src/core/PermissiveFactory.sol";
import "../src/core/PermissiveAccount.sol";
import "../src/core/FeeManager.sol";
import "account-abstraction/interfaces/IEntryPoint.sol";

contract DeployScript is Script {
    function run() external {
        uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
        address entrypoint = vm.envAddress("ENTRYPOINT");
        bytes32 versionSalt = vm.envBytes32("VERSION_SALT");
        vm.startBroadcast(deployerPrivateKey);
        FeeManager feeManager = new FeeManager{salt: versionSalt}();
        PermissiveFactory factory = new PermissiveFactory{salt: versionSalt}(
            IEntryPoint(entrypoint),
            feeManager,
            versionSalt
        );
        vm.stopBroadcast();
    }
}

And the PermissiveFactory deploys the PermissiveAccount with the following
constructor(IEntryPoint _entryPoint, FeeManager feeManager, bytes32 salt) {
        accountImplementation = new PermissiveAccount{salt: salt}(
            address(_entryPoint),
            payable(address(feeManager))
        );
    }

But the problem is the following, the PermissiveAccount uses libraries with the use A for B notation. So the libraries need to be deployed and linked to the contract.
using ECDSA for bytes32;
using BytesLib for bytes;

The problem is that forge deploys the libraries without create2 opcode so they are not deterministic and impact the address of the account so the factory.
Example of what it looks like in the explorer

The deployment of the libraries (single contract) without create2
Deployment of the feeManager with create2
Deployment of the Factory with create2

Fixed it, my library was a linked library (contained external functions) Just replaced them with internal and were deployed correctly.

The responsible was a homemade library and not ECDSA and BytesLib


shuffle targets during parse phase

Description
@rjlaine found an issue where if the list of hosts changes e.g. from a scale up the new hosts may not end up in the list of target hosts. We can fix this by doing a shuffle sort during the parse phase.

Confirmed, this does fix the issue when I re-run tests.


Blog - Threat Modeling and Ortelius Machine Learning

A blog on the efforts of using the Ortelius consolidated security and devops data for building ML workflows to address threat modeling.

This is a cool topic!
Have started working on it here -- https://docs.google.com/document/d/1DJHVOALkv-ew_g5Hp2VfL5ec5Hi2LYD_CJLPjaXPHUs/edit?usp=sharing

@TracyRagan Have worked on the blog here - Can you please review it?
https://docs.google.com/document/d/1DJHVOALkv-ew_g5Hp2VfL5ec5Hi2LYD_CJLPjaXPHUs/edit?usp=sharing
(Have used markdown within Google Docs, still getting used to VSCode)

Edited and published by @TracyRagan
https://ortelius.io/blog/2024/04/09/how-ortelius-models-threats-with-ml-workflows-a-roadmap/


Question: LangChain Agent / Runnable Interface method to return working stream / generator

Hey all, I started using pipelines and really like the approach. I am currently trying to build a LangChain SQL Agent as a pipeline and facing some issues getting the output / stream / generator / iter correct.
When I initiate it in the on_startup: function, it works as expected.
self.agent_executor = create_sql_agent(llm, db=self.db, agent_type="openai-tools", verbose=False)
print("Testing the agent:")
stream = self.agent_executor.stream("Which strategies exist?")
print(type(stream)) -> returns "<class 'generator'>"
print(*stream, sep='\n') -> unpacks the generator

But when I use that pipeline from the webui, I get a network error on the webui instance and the following error on the pipeline instance:
def pipe(
            self, user_message: str, model_id: str, messages: List[dict], body: dict
    ) -> Union[str, Generator, Iterator]:
  stream = self.agent_executor.stream(user_message)
  return stream

AttributeError: 'AddableDict' object has no attribute 'startswith'
It does work if I use the invoke() function on the LangChain Agent and select the output from the dict but of course this doesn't stream responses
stream = self.agent_executor.invoke(user_message)
return stream['output']

I assume, my key questions is: Which method of a LangChain Agent / Runnable Interface must be used - or how must it subsequently be manipulated - to get the correct Generator / Iter to return in the pipe() function? The return type of pipe only says Generator, and that is what I am returning, but there appear to be further requirements as it can't contain an AddableDict.
Any documentation is welcome as well.

Hey all, I started using pipelines and really like the approach. I am currently trying to build a LangChain SQL Agent as a pipeline and facing some issues getting the output / stream / generator / iter correct. When I initiate it in the on_startup: function, it works as expected.
self.agent_executor = create_sql_agent(llm, db=self.db, agent_type="openai-tools", verbose=False)
print("Testing the agent:")
stream = self.agent_executor.stream("Which strategies exist?")
print(type(stream)) -> returns "<class 'generator'>"
print(*stream, sep='\n') -> unpacks the generator

But when I use that pipeline from the webui, I get a network error on the webui instance and the following error on the pipeline instance:
def pipe(
            self, user_message: str, model_id: str, messages: List[dict], body: dict
    ) -> Union[str, Generator, Iterator]:
  stream = self.agent_executor.stream(user_message)
  return stream

AttributeError: 'AddableDict' object has no attribute 'startswith'
It does work if I use the invoke() function on the LangChain Agent and select the output from the dict but of course this doesn't stream responses
stream = self.agent_executor.invoke(user_message)
return stream['output']

I assume, my key questions is: Which method of a LangChain Agent / Runnable Interface must be used - or how must it subsequently be manipulated - to get the correct Generator / Iter to return in the pipe() function? The return type of pipe only says Generator, and that is what I am returning, but there appear to be further requirements as it can't contain an AddableDict. Any documentation is welcome as well.

参考examples/pipelines/providers/anthropic_manifold_pipeline.py这个里面的例子，先实现stream_response函数进行yield，再在pipe函数里调用这个函数进行return

@TiFaBl 参考我上面的回答

@dukai289  thanks! While I couldn't read your response / don't speak that language, the path to the function in the example anthropic  pipeline was sufficient to figure it out.
In case anyone else is ending up, here is my solution:
for chunk in self.chain_with_history.stream(
            input={
                "input": user_message,
            },
            config=self.config,
            ):
            # self.chat_message_history.add_ai_message(str(chunk))
            for k,s in chunk.items():
                if k == "output":
                    response += s
                    yield s


Homebrew install script

Should there be a homebrew install script?
I have mtenv but it would be nice when setting up new environment to have myst in homebrew.

We've got a custom homebrew tap! https://github.com/myst-lang/homebrew-tap. I think it's mostly out of date now, though.
Myst almost definitely will not be added to homebrew-core, it's just too much of a hassle and doesn't provide the best possible experience for developing with Myst (installing multiple versions is hard, switching is even harder, etc.).
The ideal solution for me would be to maintain an official asdf-myst plugin for asdf as I think that provides the best, most versatile experience, and then let the community manage any other installation methods unofficially as people request them.


Explain declaration merging for buggy libraries

Factor out a new section, "Troubleshooting Handbook: Bugs in official typings". Add example of declaration merging.

this is pretty sweet! appreciate the contribution!


Add "garden map" (technical roadmap) content

Description

This PR adds a "garden map" to the Almanac, outlining technical roadmap considerations. During the work for this I noticed that the CONTRIBUTING.md documentation felt like it would be important to include with published work, and that together with the garden map, these could be organized into a unique section surrounding related topics. As a result, the CONTRIBUTING.md documentation has bee ported to the Jupyter Book content, retaining a link from the repository root to ensure find-ability.
I also encountered a strange bug with GitHub issues label links (specifically for https://github.com/software-gardening/almanac/issues?q=is:issue%20is:open%20label:%22good%20first%20issue%22 which linkchecker seemed to find as 404). I wasn't able to reproduce this (using, for instance curl -s -o /dev/null -w "%{http_code}" "https://github.com/software-gardening/almanac/issues?q=is:issue%20is:open%20label:%22good%20first%20issue%22") but felt that this might be agent-related or something to do with traffic protection rules GitHub may have in place. As a result, I've added a configuration file for linkchecker to enable workarounds for this and possibly other scenarios in the future.
Thank you for any thoughts and feedback you may have!
Closes #3
What is the nature of your change?

[x] Content additions or updates (adds or updates content)
[ ] Bug fix (fixes an issue).
[x] Enhancement (adds functionality).
[ ] Breaking change (these changes would cause existing functionality to not work as expected).

Checklist
Please ensure that all boxes are checked before indicating that this pull request is ready for review.

[x] I have read the CONTRIBUTING.md guidelines.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own contributions.
[x] I have commented my content, particularly in hard-to-understand areas.
[x] I have made corresponding changes to related documentation (outside of book content).
[x] My changes generate no new warnings.
[x] New and existing tests pass locally with my changes.
[ ] I have added tests that prove my additions are effective or that my feature works.
[x] I have deleted all non-relevant text in this pull request template.

Thanks @gwaybio ! I've made some additional edits based on what you mentioned and will now merge this in.


Adding gitlab collapsible tasks support.

Adding gitlab task output support.

References: https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-sections
https://github.com/deployphp/deployer/issues/2126#issuecomment-944771068

In case someone wonders about broken rendering, see https://github.com/deployphp/deployer/pull/3817


Community Call

Hey Peeps since the forum thread is closed after Balloob not handling critique i thought it might be a good thing to have an open thread here about changes and what you guys want for the component.
My plans are to change up the error messages to make it more readable the common user since the values displayed doesn't help the common user and the error messages could be better so that it tells the novice user that their psu is good or bad but i want the community help for this so its not just me doing this and nobody wanting it.

I always get one error message:
There is a problem with your power supply or system.
The error codes are different:

50000
50005
80000
This is normal?
I was watching the code. It compares the error number with a 4-digit number.
        elif _throttled == '5000':           self._description = 'CPU is throttled due to under-voltage.'       elif _throttled == '8000':           self._description = 'Soft Temp limit has occurred.'

its not good, that means its time to replace your power supply
50000 to 50005 means the power supply isnt providing the raspberry pi with enough power that can lead to corruption and crashing
80000 is overheating

Thank you, I know about the power supply.
Now I'm talking about the text description.
For the code 50005, the description "There is a problem with your power supply or system." is displayed.
I think it should be "CPU is throttled due to under-voltage.".

"The Raspberry Pi is throttled due to a bad power supply, please replace your changer"
How about that ?

I guess I didn’t explain well. English is not native and I write through a translator.
The text descriptions suits me.
For any codes, only two descriptions are displayed:
0 = Working as intended
50005, 50000, 80000 = There is a problem with your power supply or system.
I expected to see:
0 = Working as intended
50005, 50000 = CPU is throttled due to under-voltage.
80000 = Soft Temp limit has occurred.
_throttled = open(SYSFILE, 'r').read()[:-1]   # I have here _throttled == 50005 or 50000 or 80000
       # this code is always executed :         else:             self._description = 'There is a problem with your power supply or system.'

Okey this thread is more or less about changes in the component not a support thread all you need to do atm is change your powersupply
please open another thread if you want support

then get a new psu with more A and a passive heat sink

Okey this thread is more or less about changes in the component not a support thread all you need to do atm is change your powersupply
please open another thread if you want support

I opened another thread because I have the same problem in my system, clearly stating that I KNOW MY POWER SUPPLY IS FAULTY and that I have already ordered a new one. But the component is not working as it should, because it should display another message and not an error in logs. For me that means there is an issue with the code. Why has it been closed with "your powersupply is faulty"?

@aluisperezh please stop spamming threads you can reopen your thread instead of spamming additional threads.

Ok, my apologies. Bye


Fix assimp 5.2.3 with MTd and MDd runtimes

See https://github.com/assimp/assimp/pull/4444

Still no CI 😕


TensorflowLite_converter from python to C

Does anyone know if TensorFlowLite_converter and TensorflowJS converters can be converted into C/C++ code from Python?
My end goal is to then use emscripten.org  to convert both of them into WASM and try to run them from a browser javascript webpage.
I am only interested in simple ML such as a 3  dense layer model etc.

Hi @hpssjellis
TensorFlow Lite converters are not directly convertible into C/C++ code from Python. And TensorflowJS also not directly convertible into C/C++.
However, you can convert the models (once they're generated) into WebAssembly (WASM) using Emscripten and run them in a browser via JavaScript.
For a simple 3 dense layer model, you can create the model using a deep learning library, then convert it to TensorFlowLite or TensorFlow.js using their respective converters. Once you have the model in the appropriate format (.tflite for TensorFlowLite or in the case of TensorFlow.js, as a set of JavaScript files or JSON format), you can then explore the use of Emscripten to compile the model into WebAssembly.
Thank you!

@Venkat6871 That is really interesting that a tFlite file can be converter to WASM. I will look into that as I have seen it done by edgeimpulse.com .  If you have any links that would be useful.
What I am trying to do is to simplify  the full pipeline for making machine learning models for microcontrollers like Arduinos using client side browser javascript
I have already done it using webSerial, an example static webpage is here   to make a tensorflowJS model. Then a gitpod  (if you have a gitpod account just click here   ) to convert that model to a tFlite c-header file and then an old my Tensorflow library I made 3 years ago to help get the Arduino code working.
The above process works except there are two main things I wish to improve:

simplify the conversion without the user having to load a complete python environment. (This might be much easier using ipython notebooks, it still uses python not javascript but at least it would be simple.)
Update my my Tensorflow Library .   This will be a fair bit harder and I might need some help.

Hi @hpssjellis
The TFLite converter basically converts the TF/Keras/JAX models to .tflite which can be done in either ways, through python API or we can use command line tool to directly convert into .tflite without using any python code.
https://www.tensorflow.org/lite/models/convert/convert_models#command_line_tool_
The then .tflite can be used by TFJS TFLite API which is packaged in a WebAssembly binary that runs in a browser.
https://js.tensorflow.org/api_tflite/0.0.1-alpha.4
Does that help your use case?
Thanks.


Sort nodes by their x/y position

Notice

[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.

I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.

I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.

Checklist

[x] Read the contributing guidelines
[x] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
[x] Updated the documentation to reflect the code changes
[ ] Added new entries to the RELEASE.md file
[ ] Added tests to cover my changes
[x] Assigned myself to the PR
[x] Added Type label to the PR

@tolomea Hey I added another couple post-review commits, are you still happy for me to merge?

yes


steaming output support

is this repo steaming output support?
any sample code, please?

I created a PR https://github.com/adamrushy/OpenAISwift/pull/63

When will this be merged into the main branch? I need this feature to optimize the loading speed of the API :)

This is now merged ;]


Connection refused

Hi,
I'm Mr. Martian, a very friendly guy.
These two commands give me connection refused error on every machine I have tested:
export OPENLLM_ENDPOINT=http://localhost:3000
openllm query 'Explain to me the difference between "further" and "farther"'

Did you have a server running?


Increase verbosity of our build infrastructure logging (via BinaryLogger)

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Our builds output to console with minimal verbosity.
What is the expected behavior?

Builds output to console with minimal verbosity.
Builds output to reactiveui.binlog with diagnostic verbosity using the new binary logger.
Copy reactiveui.binlog to the ~/artifacts folder using cake-build.

What is the motivation / use case for changing the behavior?

Make it easier to troubleshoot our multi-platform builds.
Login to AppVeyor; download the binary log that's attached to the pull-request.
Step through it with the https://github.com/KirillOsenkov/MSBuildStructuredLog visualizer.

Other information (e.g. stacktraces, related issues, suggestions how to fix)
This cannot be done until MSBuild 15.3 ships (refer to https://github.com/Microsoft/msbuild/milestone/15)
Information about binary logger can be found at https://github.com/Microsoft/msbuild/wiki/Binary-Log and https://github.com/Microsoft/msbuild/issues/2396

See thread over at https://twitter.com/KirillOsenkov/status/893665510931308545


fix(dev-tools): Telemetry view doesn't refresh with page

Description
Repro steps:

Launch sample app and open devtools extension pane

Navigate to the "Events" tab in the extension

Refresh the webpage (but not the extension view)

You will note that the existing telemetry events do not get disposed of, and we simply add the new events from the subsequent session to the view (at least until you navigate away from the Events tab and back).
Changes

Add a message type that indicates the root devtools (FluidDevtools) has been closed ("DEVTOOLS_CLOSED" message).

Update FluidDevtools to send this message in its dispose method and DevtoolsLogger to reset its log cache.

Update the TelemetryView components to reset all states when it receives this message.

Demo
https://github.com/microsoft/FluidFramework/assets/114451900/0ae46332-709a-456f-b212-5c9af6fd6441

Looks good! I'd just like to give the rest of the team a chance to comment on terminology. Should we make the new message DevtoolsDisposed instead of DevtoolsClosed? I don't have strong feelings one way or the other...

Right. Hmm..Disposed sounds more like our use case. Updated it!


[API][Admin/Новини] It is possible to create news with the same title and main text

Environment: all
Reproducible: always
Build found: c5f554c
Preconditions
Open Postman.
Steps to reproduce

Create a new news by POST request.
Create one more mews with the same title, main text, and image.

Actual result
Both news were published. Response: 200 OK.

Expected result
The title, main text, and image are unique data and can be contained in only one news item. Response: 400 Bad Request.
User story: #835

News with the same image still can be created


setup_host.sh has packages with unstable transitive dependencies

Context
as part of spark cluster launch on batch, Aztk runs setup_host.sh script and as part of it some python packages are installed
in particular, this line where pipenv is installed - https://github.com/Azure/aztk/blob/master/aztk/node_scripts/setup_host.sh#L153
# ensure these packages are  compatible before upgrading
python3 -m pip install pip=="18.0" pipenv=="2018.7.1"

This step has failed for us twice over the past 2 days
Issue
pipenv=="2018.7.1" has open bounded transitive dependencies and new version releases to these packages causes the pipenv install to be very unstable
for example: On 11th Feb we faced this error:
Collecting pipenv==2018.7.1
  Downloading https://files.pythonhosted.org/packages/eb/64/9b2747d54f2008ac3dfe86c0b1c8ec126042726fd8a540d5208d26732701/pipenv-2018.7.1-py3-none-any.whl (5.0MB)
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.5/dist-packages (from pipenv==2018.7.1) (42.0.2)
Requirement already satisfied: pip>=9.0.1 in /usr/local/lib/python3.5/dist-packages (from pipenv==2018.7.1) (18.0)
Collecting virtualenv-clone>=0.2.5 (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/ba/f8/50c2b7dbc99e05fce5e5b9d9a31f37c988c99acd4e8dedd720b7b8d4011d/virtualenv_clone-0.5.3-py2.py3-none-any.whl
Collecting virtualenv (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/62/89/72ab7d18e001a23b25eb75ce71bbf9e2a3c142e2dad2e4e2b88012e4ca25/virtualenv-20.0.0-py2.py3-none-any.whl (4.6MB)
Collecting certifi (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
Collecting importlib-resources<2,>=1.0; python_version < "3.7" (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/2f/f7/b4aa02cdd3ee7ebba375969d77c00826aa15c5db84247d23c89522dccbfa/importlib_resources-1.0.2-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Requirement already satisfied: six<2,>=1.12.0 in /usr/local/lib/python3.5/dist-packages (from virtualenv->pipenv==2018.7.1) (1.13.0)
Collecting importlib-metadata<2,>=0.12; python_version < "3.8" (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/8b/03/a00d504808808912751e64ccf414be53c29cad620e3de2421135fcae3025/importlib_metadata-1.5.0-py2.py3-none-any.whl
Collecting appdirs<2,>=1.4.3 (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata<2,>=0.12; python_version < "3.8"->virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/21/21/ff0bfa221d5f5c5dc495977219c4de8f44ba8203f6724fb648113f9902cb/zipp-2.2.0-py2.py3-none-any.whl
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named 'setuptools'

this happened because zipp had released a new version 2.2.0 on 8th Feb which was not compatible
We hot-fixed it by preinstalling zipp==1.1.0 in setup_hosts.sh
# ensure these packages are  compatibile before upgrading
    python3 -m pip install zipp=="1.1.0"
    python3 -m pip install pip=="18.0" pipenv=="2018.7.1"

But then again on 12th Feb a new version of virtualenv was released and we faced the same issue again - same issue caused by the release of a different package (virtualenv released a new version in Feb 11)
Collecting pip==18.0
  Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
Collecting pipenv==2018.7.1
  Downloading https://files.pythonhosted.org/packages/eb/64/9b2747d54f2008ac3dfe86c0b1c8ec126042726fd8a540d5208d26732701/pipenv-2018.7.1-py3-none-any.whl (5.0MB)
Collecting virtualenv-clone>=0.2.5 (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/ba/f8/50c2b7dbc99e05fce5e5b9d9a31f37c988c99acd4e8dedd720b7b8d4011d/virtualenv_clone-0.5.3-py2.py3-none-any.whl
Collecting certifi (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
Collecting virtualenv (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/51/89/6f2827025b28eee6236b1905555b0fbe1749f27bcbd3732ee137c31a21a8/virtualenv-20.0.2-py2.py3-none-any.whl (4.6MB)
Collecting setuptools>=36.2.1 (from pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/3d/72/1c1498c1e908e0562b1e1cd30012580baa7d33b5b0ffdbeb5fde2462cc71/setuptools-45.2.0-py3-none-any.whl (584kB)
Collecting six<2,>=1.12.0 (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting importlib-resources<2,>=1.0; python_version < "3.7" (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/2f/f7/b4aa02cdd3ee7ebba375969d77c00826aa15c5db84247d23c89522dccbfa/importlib_resources-1.0.2-py2.py3-none-any.whl
Collecting importlib-metadata<2,>=0.12; python_version < "3.8" (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/8b/03/a00d504808808912751e64ccf414be53c29cad620e3de2421135fcae3025/importlib_metadata-1.5.0-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Collecting distlib<1,>=0.3.0 (from virtualenv->pipenv==2018.7.1)
  Downloading https://files.pythonhosted.org/packages/7d/29/694a3a4d7c0e1aef76092e9167fbe372e0f7da055f5dcf4e1313ec21d96a/distlib-0.3.0.zip (571kB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named 'setuptools'

we have again hot-fixed it in a similar way
# ensure these packages are  compatible before upgrading
    python3 -m pip install setuptools=="42.0.2"
    python3 -m pip install zipp=="1.1.0"
    python3 -m pip install virtualenv=="20.0.0"
    python3 -m pip install pip=="18.0" pipenv=="2018.7.1"

Solution
At the moment it looks like the only solution is to lock the transitive dependency version for all dependent packages as well
Please recommend if there is a better way of mitigating this issue

You are correct, locking the transitive dependencies is the only (short-term) solution for this issue. The hotfix you put forward will be merged and released.
Since pipenv does not lock its dependency tree, it is probably best to move to a different dependency management system. pipenv, while officially recommended for application package management, does not appear to be well maintained any longer: https://github.com/pypa/pipenv/issues/4058


Add block validation directive for Blade blocks

Summary
As discussed in https://github.com/area17/twill/discussions/1210, we can leverage the new parseMixedProperty() helper to add a @twillBlockRules() directive.
In the process, the validBlocks validation rule should be documented.

An alternative solution could be to continue building on top of https://github.com/area17/twill/pull/1308 to allow to enter the validation rules in a $rules property together with a validate method?

This is now in 2.x beta


Add a bundle 'jdk-reflection'

This allows to forbid certain reflection calls which are usually blocked by SecurityManagers, more might be useful, but this is the bare minimum set that often indicates invalid access.

Cool thanks! I will look into merging it. We also collected some bad stuff which might be added as bundles.

I general, I would remove the Method#invoke stuff. The bad stuff is only setAccessible(). Reflection is not bad per se, but working around security is a problem.

Sure, I have updated the pull request accordingly now.

Thanks. Currently I am thinking about the fact, if the reflection bundle should be made dependent on Java version like unsafe or deprecated.
One small thing. The test class should be named Java6* instead of Oracle*. The reason is that the antunit/Oracle* classes are compiled only on JVMs that are Oracle. The test is basically a test class that should compile with any JVM. I can change that before regenerating the class file.

I merged this. Will do some cleanups and adding docs in a minute.


i18n(zh-cn): Translate Deploy your Astro Site to GitHub Pages and Vercel

What kind of changes does this PR include?

Translated content

Description
A Chinese translation about how to deploy your Astro site to the web using GitHub Pages.
Here is the corresponding English page for this translation: Deploy your Astro Site to GitHub Pages
And it is been marked missing in the #438.

Update a new translated content!
This time it's a relevant translation deployed to Vercel.
Here is the corresponding English page for this translation: Deploy your Astro Site to Vercel
And it is been marked missing in the https://github.com/withastro/docs/issues/438.

I saw news about hacktoberfest in the Discord channel. So, why not?
If everything is ok with the PR, I would appreciate it beign labeled with hacktoberfest-accepted !
Thank u.😃

thanks for your suggestion @delucis


fix: CI hang issue

This is latest merged PR, just trying to verify whether it is causing an issue for CI.

Made this change as part of other PRs.


mouse right click do not dhow open in browser

Type: Feature Request
click in right button this not show a live server and open in browser
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22631
Modes:

feature request

live server

Looks like you have issue with extension, not VS Code editor itself.
If it's about VS Code editor, please create proper feature request with all necessary details.
/causedByExtension

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


Dry-run does not work when there are no users

Bug report from UEF:

TASK: [ansible-role-users | Add ssh keys to admin users] ********************
failed: [thebe-admin.uef.fi] => (item={'state': 'present', 'shell': u'/bin/bash', 'group': 'csc', 'name': 'cscluis', 'groups':                                                                 u'admin', 'pubkey': 'ssh-rsa AAAAB3NSNIPSNIPw==', 'uid': 5001}) => {"failed": true, "item": {"group": "csc", "groups": "admin", "name": "cscluis", "pubkey                                                                ": "ssh-rsa AAAAB3NzaC1ycSNIPSNIP==", "shell": "/bin/bash", "state": "present", "uid": 5001}}
msg: Failed to lookup user cscluis: 'getpwnam(): name not found: cscluis'

This isn't actually a bug. The playbook will fail because it depends on the created users to proceed. If ran in Dry-run mode, needed users will not be created and the playbook naturally fails.


how do you make this work with existing textareas

I followed the example in the index.html file but cannot get it to bind to an existing text area in my project

See this one for inspiration #69.
Basically, it's all about using a div for the editor and updating a hidden input or hidden textarea via JavaScript and JQuery.


[BUG] samsung galaxy fold view isn't good

Before

After
Image is still processing. I will update later...till now you can assign me to fix this issue. Thanks
GSSoC'23

Yes @Git21221 ,go ahead. Ya no worries, take you time to resolve it:)

The bootstrap css in navbar causing too much problem. I am writing new css for this.
Is it ok?

Before

After

There is a small changes in CSS as well as HTML. I have just overwrite some bootstrap.
Check out this changes and let me know if I need to change anything.

Before

After

what I have changed

I have changed the navbar html tags to make it use flex rather than bootstrap flex
I have override bootstrap css to use my own css flex.

what I haven't changed

I haven't changed any javascript.
Let me know if this design is good or do I need to change anything


CR-643 Add countryCode, addressType, estabType to address search result

Motivation and Context
Amend Contact Centre search results to add the attributes countryCode, addressType and estabType to the results for an address search by postcode or address string.
What has changed
Addition of required attributes to results for address search.
How to test?
Unit tests changed as required to check return of additional attributes. Running the Contact Centre may be tested in Postman by issuing appropriate URL e.g. /addresses/postcode?postcode=EX1+2NP or addresses?input=5+Summerland+Gate+Belgrave Road+Exeter
Link to interdependent PR
https://github.com/ONSdigital/census-contact-centre-service-api/pull/27
Notes
The Address Index Service has not yet implemented these additional attributes in the search results. The attributes will always be null until they send these attributes in the results. Have sent them expected JSON results we should receive from task detailing attribute names on their backlog but they cannot guarantee this, discussions are apparently ongoing about options for meeting census requirements in Address Index.

Unless I am wrong about country code being lengthy...

As mentioned in reply to your previous comment, my understanding is they will be giving us just the first character as a country code?


Raspbian OS installation issue: python-smbus is not available

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
uname -a
Linux moode 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
When running
wget https://raw.githubusercontent.com/Darmur/bassowl-hat/master/scripts/install_tas5825m_12V_raspios.sh
chmod a+x install_tas5825m_12V_raspios.sh
sudo ./install_tas5825m_12V_raspios.sh
I get thsi error:
E: Package 'python-smbus' has no installation candidate
Solution install python3-smbus instead

the scripts were made for an old version of RaspiOS (Buster), they must be updated for working with the latest ones... I will try to have a look.

I fixed by chaning line 32 from
apt -y install python-smbus
to
apt -y install python-smbus || apt -y install python3-smbus

fixed with commit 46cf326ca5bfef0ad7f830298e183c60f17d14dd


Setup from Source - 1.41

Hi,
I have question.
I'm looking for instructions on importing the source into Unity, but can't find any clear guidance. I know you can use the dll versions, but I'd like to see the code if possible.
Cheers

If it's about seeing the code, your IDE should be able to display it (decompile it)
There's no automated way to get the sources. You can fork Entitas and copy the sources from Entitas and the desired Addons manually. There might be a few places that need to be updated to work with the sources, but that should be easy to do.

Thanks, I was looking to just work with the code, but I suppose the extra step won't break my back. Thanks for the response. If I end up swapping the dll's for the source, I'll try to write a how to.

i need it too.


"Can't update data for Hotwater temp" nore "actualPower"

Describe the bug
Felet härrör från en anpassad integration.
Logger: bosch_thermostat_client.sensors.sensor
Source: custom_components/bosch/init.py:398
Integration: Bosch thermostat (documentation, issues)
First occurred: 16 oktober 2023 kl. 13:25:23 (2323 occurrences)
Last logged: 08:45:49
Can't update data for Hotwater temp. Trying uri: /system/sensors/temperatures/hotWater_t2. Error message: URI /system/sensors/temperatures/hotWater_t2 doesn not exist: 404, message='Not Found', url=URL('http://192.168.xx.xx/system/sensors/temperatures/hotWater_t2')
Can't update data for Actual Power. Trying uri: /heatSources/actualPower. Error message: URI /heatSources/actualPower doesn not exist: 404, message='Not Found', url=URL('http://192.168.xx.xx/heatSources/actualPower')
Can't update data for supplyTemperatureSetpoint. Trying uri: /heatingCircuits/hc1/supplyTemperatureSetpoint. Error message: Connection timed out for /heatingCircuits/hc1/supplyTemperatureSetpoint.
To Reproduce
N/A
Expected behavior
Expected the hot water temperature to be fetched
Screenshots
N/A
Version

HA 2023.10.3
Bosch custom component v0.23.4
Python Bosch HTTP client version? Don't know where to find

** Debug SCAN **
** IMPORTANT **
http://jsonblob.com/1163741258253721600
Additional context
Add any other context about the problem here.

I have the same on my side.
Could this be related to #289 ?

Your device doesn't provide such values as you can see:
{
      "id": "/system/sensors/temperatures",
      "type": "refEnum",
      "references": [
        {
          "id": "/system/sensors/temperatures/outdoor_t1",
          "uri": "http://THERMOSTAT/system/sensors/temperatures/outdoor_t1"
        },
        {
          "id": "/system/sensors/temperatures/supply_t1_setpoint",
          "uri": "http://THERMOSTAT/system/sensors/temperatures/supply_t1_setpoint"
        },
        {
          "id": "/system/sensors/temperatures/supply_t1",
          "uri": "http://THERMOSTAT/system/sensors/temperatures/supply_t1"
        },
        {
          "id": "/system/sensors/temperatures/return",
          "uri": "http://THERMOSTAT/system/sensors/temperatures/return"
        },
        {
          "id": "/system/sensors/temperatures/switch",
          "uri": "http://THERMOSTAT/system/sensors/temperatures/switch"
        }
      ]
    },

Same in "id": "/heatSources",, no actualPower.
So you have to disable those sensors.

Ok, thank you very much. I'll  disable them.


Added com.android.support:support-annotations

Added com.android.support:support-annotations to the dependency instructions, as the sample DetoxTest.java uses annotations.

ping


Module not found: Can't resolve 'module' in '/Users/Documents/git/fwota-ui/node_modules/require-from-string'

Environment: create-react-app (forked https://www.npmjs.com/package/custom-react-scripts)
Code change:
// import gql from 'graphql-tag';
import { gql } from 'graphql.macro';
Problem: Switching to use graphql.macro from graphql-tag throws following error:
Failed to compile.

./node_modules/require-from-string/index.js
Module not found: Can't resolve 'module' in '/Users/Documents/git/fwota-ui/node_modules/require-from-string'

Hi @jpdorsy, thank you for for reporting it.
Unfortunately, I can not reproduce it. Would you like to provide more information?
Here is the demo of the gql use case.

Thanks, your demo contains<EMAIL_ADDRESS>Does the graphql.macro work in<EMAIL_ADDRESS>

No, the graphql.macro does not work with 1.x. :(
The Babel Macros solution is only supported in 2.0.

If graphql.macro only supports 2.x.x, as per this link (https://github.com/facebook/create-react-app/pull/3909) isn't the .graphql file support already added to 2.x.x? Do we still need graphql.macro in that case? thanks.


Crash On Launch

Hey Fellas,
Was gonna try out the file you sent me, but it crashed when trying to load it with my pack.  So I tried it by itself with JEI being the only other mod, and made sure it was Forge 1.12.2-<IP_ADDRESS>9 but the crash still occurred.  Crash report attached.
crash-2017-12-26_21.37.31-client.txt

I uploaded a new version to that drive link I gave you. It was an issue with a dependency I thought would be there not actually being there.


Allow the student to resolve a comment

It would be good for comments on a solution of the same exercise to remain visible after submitting a new solution and add to the displayed comment a button to mark it as done or dismiss it somehow whenever they feel like it.

Related to #235


Scroll bar appears then disappears; chosen value of drop-down aren't displayed.

Scroll bar appears then disappears; chosen value of drop-down aren't displayed.
Steps to reproduce

bug with scroll bar is reproduced after editing the fields, input text with Ctr + V or after resizing the browser.
http://prnt.sc/cnovt2
chosen value of drop-down can disappear after several clicking on it.
http://prnt.sc/cnov5f

Versions
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-redux": "^4.4.5",
"material-ui": "^0.15.4",
webpack": "^1.13.1",

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it.
Still, we will accept PR fixes until v1-beta takes over the master branch.


Section numbers on comments section  missing after flattening the redline pdf

Describe the bug in current situation
As the part of #4450 bug fix(flattening the redline pdf), section numbers are missing on the comment section now
Link bug to the User Story
Impact of this bug
Describe the impact, i.e. what the impact is, and number of users impacted.
Chance of Occurring (high/medium/low/very low)
Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?
test-marshal
Steps to Reproduce
Steps to reproduce the behavior:

Go to redaction app and make some redactions
Create Redline package
Download the redline package pdf
Earlier on the comment section, section numbers were present on the pdf

Actual/ observed behaviour/ results
Expected behaviour
A clear and concise description of what you expected to happen. Use the gherking language.
Screenshots/ Visual Reference/ Source
If applicable, add screenshots to help explain your problem. You an use screengrab.
Private Zenhub Image
Earlier it was look like this
Private Zenhub Image

This has since been resolved - closing.


[Plugin Dev] Domain parsing seems wrong in GetApp model

Hi @krishicks & @simonleung8 ,
I am trying to access the Domain field in GetApp_RouteSummary:
https://github.com/cloudfoundry/cli/blob/master/plugin/models/get_app.go#L46
No matter for which app i try i always get this result : {   false}
Example of what routes strutct has:
[{92222bca-952e-11e5-9166-507b9d5e74f4 emir {   false}}]

I than did,  export CF_TRACE=true, checked the json response and voila:
"domain":{
            "guid":"92222bca-952e-11e5-9166-507b9d5e74f4",
            "name":"cfapps.io"
         }

I believe the marshalling of that structs domain part might have a bug, couldnt pin point where exactly the response gets marshalled into that struct..
OS: Ubuntu 15.10
Go version: 1.5.1
CF version: 6.14
Running on Pivotal Web Services
Best,
Emir

So the domain key does not have following variables:
OwningOrganizationGuid string
Shared                 bool
https://github.com/cloudfoundry/cli/blob/master/plugin/models/get_app.go#L55

Hi @emirozer,
You're right that the field is not being populated properly. This is because the API does not actually return us those fields; we're not sure why the struct member is even defined.
The API endpoint we're hitting in GetApp is https://apidocs.cloudfoundry.org/226/apps/get_app_summary.html. There is another endpoint for domains which might have given us the shared/not-shared information, https://apidocs.cloudfoundry.org/226/domains_(deprecated)/retrieve_a_particular_domain_(deprecated).html, but it is deprecated.
Could you explain what your use case here is, so we can see if there's another solution we could provide you?

Hey Kris,
Thanks for the response !
We found a work around thankfully, my use case is simply to get the app's URI information and i assumed after reading this doc: https://github.com/cloudfoundry/cli/blob/master/plugin_examples/DOC.md
GetApp seems the way to reach that information...
But yeah unfortunately through any interface in that page one cannot retrieve an app's URI.
The workaround we found is:
results, err := cliConnection.CliCommandWithoutTerminalOutput("app", appName)

Hi @emirozer,
I think you should be able to get the information you want from the GetAppModel. You just need to put together the host and the domain name to acquire the URI for each route.
E.g. given this response:
{
  "guid": "48f1c0cb-8620-4487-ad6d-8853656469b3",
  "name": "name-1827",
  "routes": [
    {
      "guid": "acabd696-ef02-4f54-89f8-befc4717876f",
      "host": "host-13",
      "domain": {
        "guid": "11430e5f-3de9-4f72-bf13-ba037bad9893",
        "name": "domain-28.example.com"
      }
    }
  ],
...snip...

You should be able to iterate through the GetAppModel struct's Routes, concatenating the route.Host and route.Domain.Name fields. Does that not work?

I will check that and give feedback here!

Wait haha, that was exactly the problem, route.Host is populated but route.Domain.Name isn't :)

What version of CC are you targeting?

(API version: 2.44.0)

Thanks for the extra information.
It is definitely a bug in the cli. The problem is due to us making multiple API calls and constructing the app object that gets passed back to the CLI with the wrong API response object.
The first API call we do to get information about the app is /v2/spaces/:space-guid/apps?q=:app-name&inline-relations-depth=1. This corresponds to this API endpoint: https://apidocs.cloudfoundry.org/226/spaces/list_all_apps_for_the_space.html
We get an entity back that has some information about the app, but not as much information as we'd get from /v2/apps/:guid/summary (https://apidocs.cloudfoundry.org/226/apps/get_app_summary.html)
On https://github.com/cloudfoundry/cli/blob/master/cf/commands/application/app.go#L85, you'll see that we call populatePluginModel with the response from the first API call. The application we should be using is retrieved just below, in the call to ShowApp, where the second API call is made: https://github.com/cloudfoundry/cli/blob/master/cf/commands/application/app.go#L103
One reason for the two calls is possibly that we just don't have the guid of the app, in which case we should only make the first call to acquire the guid, and then not use that response object anymore. But it may be the case that the first response object has information that the latter does not.

Fixed in our edge release.

tested on HEAD master. works for me.
Thanks :)


ani-cli: 4.5 -> 4.6

Description of changes
Updated ani-cli version and incorporated changes from https://github.com/NixOS/nixpkgs/pull/230301

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

tag: https://github.com/NixOS/nixpkgs/issues/248936


Sweet Alert v2

Any plans to support sweet alert v2.x that was recently released? https://github.com/t4t5/sweetalert/releases

More: https://sweetalert.js.org/guides/#upgrading-from-1x

Is it working with swal v2? I installed sweetalertv2 from npm and I'd like to use this code.


Don't copy unescaped strings

We copy a lot of strings unchanged from the document to the string buffer. What if, for strings without escapes, we simply kept an index to the original json and maybe a length? Even kookier, if the user opts in to destructive parsing, we could change the terminating " to \0 and not even store a length.
This works out for most server uses because requests are typically short lived and the request or response json already often lives until the end of the request. It's not going to apply to all situations, though. In those cases a copy is the best thing. Easy enough to make an optional post process, though. discard_json() method that copies whatever it has indexed into the document.
I contend that this is *most" strings, and definitely most keys. You could still do the small string optimization.
Another pivot is to recognize strings without unicode escapes. As long as the user knows they may have escapes and has a method to unescape them, these strings are still useful for comparisons and hashing (since the only other way to put \n in a string is a unicode escape, this is the "canonical representation").
We could avoid a backslash scan in stage 2 by emitting both the start index of a string, and the index of either the first escape, or the end quote, whichever comes first. (An addition or subtraction can buy us this knowledge.) Emitting all the escapes and the end quote could do it too, without needing the subtraction; and would enable a more efficient (less branchy) string parse to boot, at the cost of writing and reading more indexes.

One of the potential benefit of copying strings to their own buffer is to accelerate UTF validation, since you only validate what needs to be validated.

Definitely true. We'd have to bench whether the extra write/read cost outweighs the fact that we'd probably have to unnecessarily UTF-8 validate non-strings that share blocks with strings.

For large documents, we would need some kind of 64-bit index. That is fine, of course, and we probably need that in any case, but it makes the cost of copying the small string relatively small.

Good point. Also, if we are using a "small strings" optimization, this only helps with larger strings. Those are more likely to have escapes or unicode escapes, but there's still a lot of them that don't, so it might still be worthwhile.

Mutating the input string is potentially problematic from an engineering point of view. I am sure some users would object. Of course, if you do not have escapes... then you can point to the unmodified input string... but it forces you to identify those strings without escapes... So I guess it means scanning each string twice in the worst case... or else copying optimistically with a later discard if an escape is found.

Yeah, mutating is definitely an "opt in" thing. There are other parsers that do it, though, and a large percentage of use cases throw away the json text after using it, so it's still got real applicability.
For scanning, the worst case is real, especially since \n is probably the most-used escape, and that is generally going to be at the end of a line of text.
There might be a nice sweet spot where users opt into receiving istream for string types instead of char*: we skip the scan entirely until the user reads the stream, and give them our custom stream implementation that parses escapes as it goes. Larger strings in particular are often more like descriptions or messages, intended to be printed or copied to some other system if they are used at all. Sometimes they are documents that need to be parsed, though, and hooking a branchy input stream up to a branchy parser is just going to make it ... branchier. If their string process is superscalar, it's a disservice to use a branchy stream.

Initially simdjson marked string end with a null character but we got a lot of heat for that: many people seem to want null characters within their strings. The json spec allows null characters inside strings.

Yeah, but you have to escape null characters with \u0000 to use them in a JSON string, so that doesn't apply here.

People want constant-time string lengths, so we need to compute and store the string length.

Truth. We could store them in the tape if we used a 32-bit index and a 24-bit length, though (restricting this to strings with a 24-bit length).

Yes, stage 1 could produce the escape indexes and other things... this could help performance but it is also not free. My intuition would be for stage 1 to do more work, and produce fewer indexes.

Yeah. Unless you have a branch-free index production algorithm, you're probably going to make index production branchier. And writing more output is not free (the whole point of this :)).

We definitely can vectorize some of the escape decoding. It is basically a fancier version of the minifier. So our current code could maybe be faster.

Yeah. I've been thinking about that: I don't think it is worth it most of the time on single-character escapes because more than 2 \r\n\t\b in a row doesn't seem super likely. But for \uXXXX it would help tons. Not only are you already seeing 4 hex digits in a row, I've seen long runs of \uXXXX in the wild (my guess is it was used as a sort of poor-man's base 64 encoding), and surrogate pairs are already, you know, pairs.


Work on ranking using dependencies

This is an experimental attempt to change how we compute the ranking order in preparation for delayed binding operation.
For review only at this point in time, not ready for merge.
The thing that needs a bit more consideration at this point is the services. They are currently ranked in the build_services method.
The idea I was working though was to make each service client dependant on the service_impl using the phantom ranking solution (i.e just add the node_instance to the rank_marker), then make service_impl node instances dependent on the interfaces they make use of, in much the same way as currently we create the dependencies in the current code,  this way we can use the standard ranking code to organise ranking to ensure that a user of a service is always ranked below the implementation and it'd dependencies.
But was having some trouble to work out how to safely obtain the node_instance objects for the clients to do this, obviously the impl's are at handing the build_service logic.

Merged under a different request


fix skillmap step race condition and change is completed logic

Fixes https://github.com/microsoft/pxt-arcade/issues/2789
We now display the last step as 7/7 unless you actually click finish.
Also fixes a race condition when unloading the iframe where we weren't updating the activity progress before the iframe had been unloaded.

i think it should be fine, but auto-displaying the modal after completing a carousel still works as expected with this?

i think it should be fine, but auto-displaying the modal after completing a carousel still works as expected with this?

yep, still works!

yep, still works!


Optimize usecase of fn(self) -> Self

Initially we had optimization of case when function consume and return self.
This optimization was created with assumption that every structure passed as pointer into FFI, which not hold for non-opaque structures and transparent structures with non-opaque inner field.
We should explore possible ways to turn on this optimization depending on struct type, but it seems like we can't decide type of structure from just looking on structure impl block.
Original discussion.

The situation described here is something like the following:
#[FfiType]
struct S(Option<u32>);

#[ffi_export]
impl S {
    fn set_field(mut self, a: u32) -> Self {
        self.0 = Some(a);
        self
    }
}

which currently produces:
extern fn S__set_field(handle: *mut S, a: u32, output: *mut *mut S) {
    // ...
}

but should better be:
extern fn S__set_field(handle: *mut S, a: u32) {
    // ...
}

where handle is taken as a reference instead of transferring and returning ownership

Given a method fn builder([mut] self, ...) -> Self, this can be done by replacing it with fn builder(&mut self, ...) and then generating FFI function out of it for any type (opaque or not). Or in a similar fashion. The benefit is that the same allocation is reused instead of dropping the first and writing the result in the output allocation provided by the user
We can even expand this pattern so that we convert even fn builder(..., [mut] self, ...) -> Self with arguments preceding self
The question is do we want to make this function conversion or not. I would only do this for ffi_export on impl blocks where Self is received and returned from a method. I wouldn't do it on freestanding functions e.g. fn primitive(a: u32) -> u32


clarification on setting PRODUCT_UID

Adds clarification and a link about setting the product identifier if it is not defined in code. Adds missing links to examples 6 and 7 in README.md.
PR should not be merged until we have the page referenced on dev.blues.io.

 remove default PRODUCT_ID from note-arduino


checking in sample JSON for Emily to use as a basis for a script to c…

…reate a single Donor JSON

I would suggest that times use ISO 8601 format to allow for easy computation rather than being pretty-printed for human display.  This will also make the walltime_second field unnecessary


The default name of the logfile is now the same as the config file, with its extension replaced by .log.

This is addressing an issue in Sabine's issue "many small things" #179 (but does not close it)
(also fixes a bug that causes a crash in the rare event when reattempting a run that crashed before a model directory was written to the all_models table).

Closing this PR without merging because its purpose has been implemented and resolved by PR #242.


Set and retrieve SkyShell window size

Looking for these capabilities with regards to window size:

programmatically set the window size on launch (from Dart)
keep track of window size changes (in Dart) in order to be able to restore window size on subsequent launches

@chinmaygarde

keep track of window size changes (in Dart) in order to be able to restore window size on subsequent launches

This has already been implemented in the Desktop shell. Do you have the latest SkyShell.app on Mac? https://github.com/flutter/engine/pull/3215 was a change to an interface builder file.

programmatically set the window size on launch (from Dart)

I'll add this functionality as a plugin.

Tested, the updated SkyShell achieves what we need. (No need to track and restore if the size gets automatically restored). Thanks!


Gulp-Babel not works with imports

Hi there!
I have a trouble about working with gulp-babel. It looks strange, import not works there:
Part of my package.json:
{
  "devDependencies": {
    "babel-preset-es2015": "6.6.0",
    "babel-preset-react": "6.5.0",
    "gulp": "3.9.1",
    "gulp-babel": "6.1.2",
    "gulp-uglify": "1.5.3",
    "react": "0.14.8",
    "react-dom": "0.14.8"
  }
}

Js task of my gulpfile.js:
const babel = require('gulp-babel');
const gulp = require('gulp');
const uglify = require('gulp-uglify');

gulp.task('js', function () {
  gulp.src('src/js/App.js')
  .pipe(babel())
  .pipe(uglify())
  .pipe(gulp.dest('dist/js'));
});

.babelrc:
{
  "presets": ["es2015", "react"]
}

So. It must works with imports. For example it's my main Js file:
src/js/App.js:
import React from 'react'
import ReactDOM from 'react-dom'
import Main from './Main.js'

ReactDOM.render(, document.body);

This file should import react from node_modules/react/ and import Main.js.
src/js/Main.js:
import React from 'react'

export default class Main extends React.Component {
  render() {
    return (

Hello!

    );
  }
}

There is no errors. All works good, but imports are not works. What's wrong here?

import App from './Main.js'
ReactDOM.render(, document.body);

You import the component with the name App but then use  instead of <App />, that see like the main issue.

@loganfsmyth My bad. Update issue. :smiley:

Please use the dedicated support channels for support questions: https://github.com/babel/babel#looking-for-support

@azat-io hi, how you solved this problem?, something similar happens to me, but without a reactjs.


[5.7] Use dynamic light/dark availability change icons

Rationale: Fixes a bug where the dark version of API Changes icons are always used for availability badges.
Risk: Low
Risk Detail: Only minor, focused CSS-only additions
Reward: High
Reward Details: Fixes issue with icons where wrong icons might be used depending on users' preferences.
Original PR: https://github.com/apple/swift-docc-render/pull/134
Issue: rdar://91417090
Code Reviewed By: @dobromir-hristov @hqhhuang
Testing Details: Visually verified that the icons use light or dark versions depending on the background color instead of always using the dark icon.

@swift-ci test


Rename the example functions to remove the mmlogic name from them

@jeremyje  - please assign this to me :)

is there a plan to  label these or organize them into another directory such that everyone understands which examples use the MM logic API and which ones don't without having to go in and read the code?

I think for now, the examples we provide should just use the MMLogic API to access player data. Although the MMF can access redis directly, should our examples encourage that pattern through examples? The current manual example exposes the data access logic of the mmlogic in the example - with comments around each access indicating that the mmlogic api should be used instead.
I think our basic example folders can simply be under the language folder without the 'mmlogic' in the name. Once we have additional examples, a README - and the documentation either in the top level folder - or the website detailing what the example does would anyways be necessary as the folder names may not suffice to disambiguate between each.

SGTM, we should also mark the manual sample as deprecated in the next changelog too if we're going to remove it.

This issue is no longer valid since only serving harness examples are now present in 0.5


Update outreach-outcomes.md

👷 Deploy Preview for famous-marshmallow-cfbd61 processing.

Name
Link

🔨 Latest commit
4c73de43358d5e23e4dcc190854832918716412d

🔍 Latest deploy log
https://app.netlify.com/sites/famous-marshmallow-cfbd61/deploys/64ddab87297d3100078090f8