Pdf-Viewer doesn't show pdf

Hey radekpakula,
I tried to use your Addon in my project. I generated PDF and pass it to your PDF-Viewer as a StreamResource.
I used the code snipped from your Github-Page
StreamResource streamResource = getStreamResource();
streamResource.setMIMEType("application/pdf");
PdfViewer c = new PdfViewer(streamResource);
c.setPage(0);
c.setSizeFull();
c.setVisible(true);
// layout is a Css-Layout
layout.addComponent(c);

Then I get the following result:

saying that there are 0 Pages.
It seems that getStream() in the StreamResource is never called from the PdfView.
Is this a Bug? Or em I missing something.
Regards micah

It looks like you pdf file is not loaded properly or is defective. Try with
another file or sample pdf from the web and check if is work. If not debug
your page in web-browser like chrome or firefox and check if Js-script for
this addon is loaded. You can also check javascript console.
I see that widgetsets for this addon is not compiled properly on your side
because css is broken.
Regards Radek
2017-01-04 21:02 GMT+01:00 nimakro<EMAIL_ADDRESS>
Hey radekpakula,
I tried to use your Addon in my project. I generated PDF and pass it to
your PDF-Viewer as a StreamResource.
I used the code snipped from your Github-Page
StreamResource streamResource = getStreamResource();
streamResource.setMIMEType("application/pdf");PdfViewer c = new PdfViewer(streamResource);
c.setPage(0);
c.setSizeFull();
c.setVisible(true);// layout is a Css-Layout
layout.addComponent(c);
Then I get the following result:
[image: image]
https://cloud.githubusercontent.com/assets/21091608/21656958/985e00a6-d2c0-11e6-8a71-a642b3ff883c.png
saying that there are 0 Pages.
Any thought what I am missing?
Regards micah
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/radekpakula/pdf-viewr-addon/issues/2, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABY9wzEqPcwvx19UrFGmKwg3a-sMqR7Mks5rO_rtgaJpZM4LbApo
.

Mhm thanks for your reply,
I checked in the Browser console and I see an error that it can't find the pdf.work.js file.
It is looking for the file at APP/PUBLISHED/pdf.worker.js
So I think you are right, the widgetset is not compiled right.
I use spring-boot to run my projekt.
I did run  mvn clean vaadin:update-widgetset package
But for some reason, the pdf.worker.js file is not copied to the right directory.
Could you show me your pom.xml which is working for you to compile the widgetset.
Regards Micah

run mvn clean vaadin:compile and check again or tray compile with eclipse
plugin for vaadin
I have default pom for vaadin project
Radek
5 sty 2017 22:49, "nimakro"<EMAIL_ADDRESS>napisał(a):

Mhm thanks for your reply,
I checked in the Browser console and I see an error that it can't find the
pdf.work.js file.
It is looking for the file at APP/PUBLISHED/pdf.worker.js
So I think you are right, the widgetset is not compiled right.
I use spring-boot to run my projekt.
I did run mvn clean vaadin:update-widgetset package
But for some reason, the pdf.worker.js file is not copied to the right
directory.
Could you show me your pom.xml which is working for you to compile the
widgetset.
Regards Micah
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/radekpakula/pdf-viewr-addon/issues/2#issuecomment-270767516,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABY9w2WKBCSl8-qjJMTvIBmsbhkG7Gvvks5rPWVpgaJpZM4LbApo
.

Hay radekpakula,
I figured it out the issue. It's because I am using spring-boot with Vaadin.
Your plugin is looking for the javascript resources under the following path: APP/PUBLISHED/pdf.worker.js' (VPDFViewer Line:151)
and spring-boot is publishing them under a different static path and that's the reason why the plugin is not working correctly in my case.
Thanks for your help
Regards Micah

nimakro, I have the same issue. How do you solved it?

Hey @Bemat well, since the javascript resource paths are hardcoded and spring boot is using a different file structure, I didn't get it to work. I ended up writing my own AbstractJavaScriptComponent  and used PDF.js and PDF.Worker.js directly.

For those who are still struggling with the problem: I found a hacky workaround.
Since the addon tries to load a JS library from the localhost, which is not available at that point, this request can be forwarded to the right address via a Spring Controller.
@Controller
public class PdfJsRedirectController {

	@RequestMapping(value = "/APP/PUBLISHED/pdf.worker.js")
	public String forwardWorkerJsRequestToVaadin() {
		return "forward:/vaadinServlet/APP/PUBLISHED/pdf.worker.js";
	}

}

rel: https://stackoverflow.com/a/45331984


[AutoPR deploymentmanager/resource-manager] DeploymentManager: Override client name for python SDK

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

Build output:

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


[Bug] Update from 0.38.0 to 0.40.0 in angular environment does not work

Reproducible in vscode.dev or in VS Code Desktop?

[X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[ ] Not reproducible in the monaco editor playground

Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
No response
Actual (Problematic) Behavior
It doesn't compile (see screenshot). The only solution i found is to use a WebpackPlugin to compile styles but this would be a regression in my opinion. What is the point then? Version 0.38.0 works totally fine
Expected Behavior
No response
Additional Context

never mind... this error occurs if you do `import * as monaco from 'monaco-editor'


Remove grunt-shell dependency and use npm script

I can't actually get npm test to work on my machine because of the ruby dependencies but this should work.
Should speed up npm install by a second or so..
--------------------------------------------------
| Dependency            | Time | Size   | # Deps |
--------------------------------------------------
| grunt-contrib-jasmine | 9.8s | 53 MB  | 111    |
| grunt                 | 3.4s | 7.6 MB | 30     |
| grunt-cli             | 1.8s | 1.3 MB | 11     |
| grunt-contrib-sass    | 1.7s | 186 KB | 13     |
| grunt-shell           | 1.6s | 74 KB  | 10     |
| jquery                | 1.3s | 1.3 MB | 0      |
| grunt-contrib-clean   | 1.1s | 23 KB  | 2      |
--------------------------------------------------

I have tested this branch using:
git clean -dfx
npm install
npm test
Both tests run.
I also checked that the scss-linter is working by changing one of the colour values, the error was picked up.
The npm error isn't very friendly, but the linter output is shown above.

@robinwhittleton noted that if the script does fail there's a much more verbose error message that isn't as helpful for people to use.
One way to get around this could be to throw the --silent, I'll have a poke and see if this'll work.

👍


Ignore .env

See title
Don't know why nextjs doesn't ignore this by default

Hmmm, why would you need this? I'm open to merging, but Next.js uses .env.local (which is whitelisted).

My mistake, thought your README used “.env” and was just carrying the
convention through. Feel free to close

--
@jamiew https://twitter.com/jamiew | https://jamiedubs.com
https://www.jamiedubs.com/

Probably safe to merge just in case, we don't want anyone's secrets leaking 😅


reflect: ArenaNew panic non-pointer type

What version of Go are you using (go version)?

$ go version
go version go1.20.4 darwin/arm64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/r/Library/Caches/go-build"
GOENV="/Users/r/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOMODCACHE="/Users/r/go/pkg/mod"
GOOS="darwin"
GOPATH="/Users/r/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/r/sdk/go1.20.4"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/r/sdk/go1.20.4/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/j_/rq9ph2cd3h50w468sgv34lwh0000gn/T/go-build3924141508=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.20.4 darwin/arm64
GOROOT/bin/go tool compile -V: compile version go1.20.4
uname -v: Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000
ProductName:		macOS
ProductVersion:		13.3.1
ProductVersionExtra:	(a)
BuildVersion:		22E772610a
lldb --version: lldb-14<IP_ADDRESS>
Apple Swift version 5.8 (swiftlang-<IP_ADDRESS>.2 clang-14<IP_ADDRESS>.100)

What did you do?

test.go:
package main

import (
	"arena"
	"fmt"
	"reflect"
)

func main() {
	a := arena.NewArena()
	i := 0
	v := reflect.ArenaNew(a, reflect.TypeOf(i))
	fmt.Println(v.Type(), *v.Interface().(*int))
	a.Free()
}

GOEXPERIMENT=arenas  go1.20.4 run -a test.go
What did you expect to see?
print
*int 0

What did you see instead?
panic:
fatal error: arena_New: non-pointer type

goroutine 1 [running]:
runtime.throw({0x1025c532b?, 0x10254070c?})
        /Users/r/sdk/go1.20.4/src/runtime/panic.go:1047 +0x40 fp=0x140000a4e20 sp=0x140000a4df0 pc=0x102564dd0
arena.runtime_arena_arena_New(0x129cc1408?, {0x1025fa760, 0x1025eb8a0})
        /Users/r/sdk/go1.20.4/src/runtime/arena.go:113 +0x78 fp=0x140000a4e60 sp=0x140000a4e20 pc=0x10258d318
reflect.arena_New(0x140000a4ec8?, {0x1025fa760?, 0x1025eb8a0?})
        /Users/r/sdk/go1.20.4/src/arena/arena.go:89 +0x28 fp=0x140000a4e90 sp=0x140000a4e60 pc=0x1025952d8
reflect.ArenaNew(0x1025f06e0?, {0x1025ff038?, 0x1025eb8a0?})
        /Users/r/sdk/go1.20.4/src/reflect/arena.go:15 +0x2c fp=0x140000a4ed0 sp=0x140000a4e90 pc=0x1025a39fc
main.main()
        /Users/r/workspace/testcode/testarena/test.go:12 +0xa0 fp=0x140000a4f70 sp=0x140000a4ed0 pc=0x1025c1050
runtime.main()
        /Users/r/sdk/go1.20.4/src/runtime/proc.go:250 +0x248 fp=0x140000a4fd0 sp=0x140000a4f70 pc=0x1025673f8
runtime.goexit()
        /Users/r/sdk/go1.20.4/src/runtime/asm_arm64.s:1172 +0x4 fp=0x140000a4fd0 sp=0x140000a4fd0 pc=0x102592364

If I change the code to v := reflect.ArenaNew(a, reflect.TypeOf(&i)), it will pass.
But it conflicts with the comment of reflect.ArenaNew:

// ArenaNew returns a Value representing a pointer to a new zero value for the
// specified type, allocating storage for it in the provided arena. That is,
// the returned Value's Type is PointerTo(typ).

Thanks. I think the right thing to do in this circumstance is to fix the function itself, since the GOEXPERIMENT is not backed by the compatibility guarantee. The simple thing would be to just call PointerTo on the type before passing it down in src/arena/reflect.go.

@mknyszek I don't agree.  While this code is not covered by the compatibility guarantee, there's no particular reason to change it.  I think we should just change the documentation to match the actual behavior.

@ianlancetaylor Yeah, sure. That's fine with me. I don't feel strongly either way.

I agree with @mknyszek . This reflect function should behave like arena.New. It should be fixed as early as possible before moving from experiment to standard api. Or it will last forever and confuses people continuously. Don't let this inconsistency become a permanent scar. It's better to endure short-term pain than prolonged suffering.

I don't think the argument that arena.New and reflect.ArenaNew should behave the same is very strong.  They are very different functions.
That said, I admit that I found only one call to reflect.ArenaNew (https://github.com/huandu/go-clone/blob/fcc492e9d68d20fe88146b17e8e45b1c9d9e6b8e/generic/arena.go#L62) so maybe it's OK to change.
See also #56234.

https://github.com/huandu/go-clone/blob/fcc492e9d68d20fe88146b17e8e45b1c9d9e6b8e/generic/arena.go#L62
This piece of code appears to be fixing the issue precisely.
reflect.New also returns the Value with the Type of PointerTo(typ). It's better to keep the save behavior.
// New returns a Value representing a pointer to a new zero value
// for the specified type. That is, the returned Value's Type is PointerTo(typ).
func New(typ Type) Value

I think that that this is worth fixing even if it breaks existing uses.


Added a valid JWT for testing in development mode

thanks for this, added some small modifications and merge :)

great

should not the PR better be addressed to develop branch?

Yes, of course.


possible example of the sample data

Hello Zack:
Thanks a lot for your sharing of this great work! Just wondering if you can share a small example of the sample data because I'm having difficulties in understanding the data format used by this LSTM model.Specifically, in your comments I got this

"X should be a list of 2d arrays. First dimension idexes examples. Second dimension indexes sequences steps. Third dimension corresponds to the measurements within one sequence step."

I'm confused about the third dimension and hopefully I can get a real sample based on above comments. Thanks a again for your grate work.

Hi Zergxyz,
Did you mange to get the coding running with any sort of data? I think I am having errors with code, which are not related to the input data. Some seems like related to typo, with missing 's' at the end of a variable.
I was wondering whether you have the same issue, or just me.

Hi  RuoxiYu,
I have the same issue with running the code. Did you manage to fix the issues?

I have the same issues.
Without touching any data, even the simplest instantiation of the class M2M_RNN doesn't work out of the box.
rnn = M2M_RNN(num_input=13, num_hidden=64, num_output=128, clip_at=0.0)
or
rnn = M2M_RNN(num_input=13, num_hidden=[64], num_output=128, clip_at=0.0)
The errors are simple to fix though...like wrong arguments order or typo but after 2-3 naive edits, they didn't go away and I do not know how deep is the rabbit hole.
Maybe the author doesn't follow this repo anymore and therefore this issue has been left open since long. I have sent him a personal email. Let's see.

I hadn't followed the repo in some time. So pardon the delay. A few comments. First the inputs should just 2D numpy arrays. The first index should give the time step and the second should give the features (within a time step). I haven't run the code in about 1-2 years so it's possible some changes in Theano have caused bugs?
I'll look again soon when I can steal a few minutes. But likely the best thing to do is if citing this paper is to use the code from the followup work by my collaborator @turambar and colleagues who created an open benchmark: https://github.com/YerevaNN/mimic3-benchmarks
Among other advantages, that code is not in Theano so it should age better since Theano development is officially discontinued.


[Bug] Components exported by GlobalComponents interface have no type hints

Enviroments & packages:

VS Code: 1.77.3
Volar: 1.6.3
vue-tsc: 1.6.3
vue: 3.2.47
typescript: 5.0.4

Description
Actually I'm using unplugin-vue-components/vite to generate dts file:
// src/components.d.ts
export {};
declare module '@vue/runtime-core' {
  export interface GlobalComponents {
    MyUpload: typeof import('./components/MyUpload/index.vue')['default'];
  }
}

The type of component we obtain is any:

However, when we change '@vue/runtime-core' to 'vue', the type hinting works correctly：
- declare module '@vue/runtime-core' {
+ declare module 'vue' {

Try to downgrade to v1.4.4

Closed because this issue has been fixed in https://github.com/antfu/unplugin-vue-components/pull/638.


LinearProblemSolver

Creates a special "nlsolver" for linear problems that avoids re-assembly of stiffness to check if the problem converged.
This PR introduces the following changes in addition

Change order of handle_converged and postprocess! (postprocess! is now first)
Adds kwargs to  update_problem! and send nothing instead of requiring default argument for user.
With this change, the user should now define FEProblems.update_problem!(p::MyProblem, dx; kwargs...),
and potentially using the bool kwargs: update_jacobian and update_residual (to avoid updating when not required)

Codecov Report

Merging #13 (f3734dd) into main (ba6f6b7) will decrease coverage by 0.21%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   94.07%   93.86%   -0.22%
==========================================
  Files           8        8
  Lines         152      163      +11
==========================================
+ Hits          143      153      +10
- Misses          9       10       +1

Impacted Files
Coverage Δ

src/FESolvers.jl
100.00% <ø> (ø)

src/problem.jl
77.77% <ø> (ø)

src/QuasiStaticSolver.jl
91.66% <100.00%> (-4.17%)
:arrow_down:

src/nlsolvers.jl
97.91% <100.00%> (+0.61%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Issue with "Loading - Small" symbol in Grey 10 theme

Carbon Design Kit, V10
Loading>Small symbol in Grey 10 theme is incomplete. Only displays a circle. Small loader on white theme is fine.

@laurenmrice @aagonzales

@JordanWSmith15 this has been resolved in the newest sketch library updates 🎉


Archive this repo

Read my issue #85 . Soundcloud developer api is dead. this repo is useless. all developer tools are useless. theres no reason to keep them open and active when the targetted api is dead. The repo needs to be archived at this point.

People with client ids and client secrets can still use the code, so I vote to not shut this down. New sign-ups to create new apps using soundcloud's API is closed on their developer portal, this is different than it being shutdown completely.


mullvadvpn-np: Add version 2022.5

Closes https://github.com/ScoopInstaller/Extras/issues/7113

[x] I have read the Contributing Guide.

/verify

/verify

/verify

Never finished installing:
--> Installing the Manifest mullvadvpn-np.json

Installing 'mullvadvpn-np' (2022.5) [64bit]
MullvadVPN-2022.5.exe (83.0 MB) [=================================================================================] 100%
Checking hash of MullvadVPN-2022.5.exe ... ok.
Running pre_install script...

@rasa I fixed it, try again now and tell me your results please.

--> Running: scoop install  mullvadvpn-np.json

Installing 'mullvadvpn-np' (2022.5) [64bit]
MullvadVPN-2022.5.exe (83.0 MB) [=================================================================================] 100%
Checking hash of MullvadVPN-2022.5.exe ... ok.
Running pre_install script...
Linking ~\scoop\apps\mullvadvpn-np\current => ~\scoop\apps\mullvadvpn-np\2022.5
'mullvadvpn-np' (2022.5) was installed successfully!

--> Refreshing environment variables

--> Comparing ARP entries

DisplayName          DisplayVersion Publisher   ProductCode
-----------          -------------- ---------   -----------
Mullvad VPN 2022.5.0 2022.5.0       Mullvad VPN 2A356FD4-03B7-4F45-99B4-737BE580DC82

PS C:\Users\WDAGUtilityAccount\Desktop\bucket> scoop uninstall mullvadvpn-np
Uninstalling 'mullvadvpn-np' (2022.5).
Running pre_uninstall script...
Unlinking ~\scoop\apps\mullvadvpn-np\current
'mullvadvpn-np' was uninstalled.
PS C:\Users\WDAGUtilityAccount\Desktop\bucket>


Manjaro: Dependency Problem with Platform-HTTP

Another Day, another Problem.
I'm using Manjaro Arch Linux to develop software. Some days ago we expanded our camel project with the Dependencies:

camel-quarkus-platform-http
camel-quarkus-platform-http-component

If I just wanted to use the camel-quarkus-platform-http it wants camel-quarkus-platform-http-component as a dependency, but this also needs org.apache.camel:apt repo. I've added that also to it, but then this happens:
Could not resolve all dependencies for configuration ':detachedConfiguration1'.
   > Could not find org.apache.camel.quarkus:camel-quarkus-platform-http:.
     Required by:
         project : > org.apache.camel.quarkus:camel-quarkus-platform-http-deployment:0.4.0
   > Could not find org.apache.camel.quarkus:camel-quarkus-core-xml:.
     Required by:
         project : > org.apache.camel.quarkus:camel-quarkus-core-xml-deployment:0.4.0
   > Could not find org.apache.camel.quarkus:camel-quarkus-support-xml:.
     Required by:
         project : > org.apache.camel.quarkus:camel-quarkus-support-xml-deployment:0.4.0

Normally Arch Linux has no apt installed and can't fulfill this dependency. Is there a workaround or am I forced to have a system which has apt?

here apt does not mean the package manager but the annotation processor support that camel provides.

it's really a different thing.

Aahh...but why does it still not work, but for my colleagues with the same project setup? Okay, I need to investigate that further, thanks anyway.

BTW you do not need to depend on camel-quarkus-platform-http-component directly. camel-quarkus-platform-http is enough.
camel-quarkus-platform-http-component even does not exist since Camel Quarkus 1.0.0-M1 because it was moved to Camel main project.

Ah okay, good to know, idea said that component and apt were marked as missing dependencies, so I've added them. Had to move a bit around with the versions to let be build on my end. Now it works, but I will also test that.


[Clarification] Does std::chrono::milliseconds use 45 bits or does it wrap around at 32 bits? (IDFGH-1605)

The C++ spec says that the std::chrono::milliseconds type should be at least 45 bits (https://en.cppreference.com/w/cpp/chrono/duration). Since the HAL (esp32-hal.h) defines millis() as returning unsigned long, and since that's only defined to be "at least 32 bits" in the C++ spec (https://en.cppreference.com/w/cpp/language/types), I just want to confirm that retrieving the milliseconds using the chrono library doesn't wrap around at 32 bits, and it is a true 64-bit value.
Example code:
  auto now = std::chrono::steady_clock::now().time_since_epoch();
  auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(now).count();

Side question: Where do I find where the C++ core libraries use the ESP32 HAL to implement everything? For example, mutexes or yield() or the chrono library. I'd like to read the source so I can confirm these things myself.

https://github.com/espressif/esp-idf/issues/584

The short answer is that std::chrono::duration_cast<std::chrono::milliseconds>(now).count() should not wrap before 2038-01-18 (and an ESP-IDF update will be available well before this date, as per #584 linked by @negativekelvin - thanks.)
The long answer is that the question mentions a number of timekeeping features, but they're not all related to each other:

esp32-hal.h and its millis() function is part of ESP32 Arduino. The C++ STL functionality does not depend on any Arduino library functionality, libstdc++ is a lower layer in the system and Arduino doesn't implement the C++ standard. So anything implemented in the Arduino code is unrelated.
std::chrono:milliseconds is a signed 64-bit type on ESP32. You can confirm this by checking the chrono header in the toolchain's include directory: typedef duration<int64_t, milli>        milliseconds;. So this type can represent something like +/- 2.9*10^8 years (pretty long duration!), but this doesn't mean that steady_clock::now() can return this range of times.
ESP-IDF uses GNU libstdc++ (part of gcc) for libstdc++ functionality. The steady_clock::now() implementation will call the libc (newlib) standard function gettimeofday() and then convert this result into the std::chrono::milliseconds type.
So, when will the result of gettimeofday() wrap? This function currently uses a 64-bit type with a 32-bit seconds field and a 32-bit microseconds field. The "tv_sec" (seconds) field is signed 32-bit so this is the limiting factor in the range of times which can be represented (2038 problem, as linked by @negativekelvin above).
You can read the actual implementation of gettimeofday() here. The full implementation is a little hard to follow, as ESP-IDF supports different hardware clock sources for gettimeofday. However rollovers in the hardware timers themselves are accounted for by storing offsets (if relevant, the default timer is a 64-bit microsecond precision timer so no rollover is needed), so effectively the input clocks have 64-bit microsecond precision.
If you write C++ code using chrono::system_clock or chrono::steady_clock now and update ESP-IDF once the 2038 problem is solved, the code should keep working after 2038 with just a recompile against the newer libc & libstdc++.

For future reference, as this is a question rather than an bug report/feature request/etc for ESP-IDF then the best place to ask it would be the https://esp32.com forums.

Thank you very much for the detailed response (and your patience with my question here). I've already started the process of becoming Arduino-free and am trying to disentangle myself from that system and API as much as I can. There are obviously some misunderstandings I still have.
In the future I'll take these sorts of questions to the forums. Thanks again for all the details.

@ssilverman Glad that the answer was helpful. Good luck with your continued journey into embedded C++ land. :)

It's just that all these Arduino-related classes are so handy: AsyncUDP, ESPAsyncWebServer, IPAddress, Print, WiFi, FastLED, Preferences, etc. All those rely on some Arduino something or other. That's why I'm having a bumpy time moving completely to ESP-IDF.

ssilverman, I have experimented with ESP-IDF. It uses modules. There is a usable "Arduino" module which you can plug into your project. This allows libc compilation whilst still using your favourite Arduino bits.
Kind regards, and good luck with your endevours.


TypeError: Cannot set property '_nodeValue' of undefined

In my application it's throwing different error like
TypeError: Cannot set property '_nodeValue' of undefined TypeError: Cannot set property '_nodeValue' of undefined
If we have any solution please help me.
Originally posted by @krishnappahuded in https://github.com/electron/electron-quick-start/issues/30#issuecomment-459616580

Without a repro this sounds like it's an error coming from your code rather than Electron.  If you can reproduce this standalone in Electron please raise an issue on the Electron repo.


Set read only to preserve whitespaces on autosave

ST has two [arguably] useful features, which are disabled by default, iirc:

Autosave file on lost focus.
Trim trailing whitespaces on save.

The issue is that quick panel is counted as lost focus.

So you mean if you have "autosave on focus lost" enabled, ST trims trailing whitespace on save because it thinks it lost focus? That's bothersome.
The way you implemented this is problematic however, because it will remove the read_only state even if only the insert_date command was called. I'll implement this differently.

Yes, in many cases when you got cursor outside of previously active view (quick panel, console, go to anything, search, etc.), then it considers focus is lost.
Those settings are "save_on_focus_lost": true & "trim_automatic_white_space": true.

Oops, those are "save_on_focus_lost": true & "trim_trailing_white_space_on_save": true.
BTW, generally speaking, especially as a person who uses and appreciates both features/settings, I’d say that it is good, rather than bad, again generally speaking; because more saves is good thing in absence of proper autosave.
But yea, perhaps it should make exception for quick panel, since it is kind of basic way to offer custom input for 3rd party plugins.
FWIW, ST3 has show_popup_menu which keep focus in the view, but it’s not available in ST2.

show_popup_menu isn't really suited as well as a quick panel for this task though.

I think I found a good way to work around this issue, which I reported at https://github.com/SublimeTextIssues/Core/issues/980 btw.


Cocoapod support?

https://cocoapods.org/

As I am not as familiar with Swift and CocoaPods, could you create a pull request with this? Alternatively, I can look into this, but that might take some time.

As the repo owner you will need to register the repo on cocoapods.  It is worth taking the time to learn, and should only take a couple hours.

Alright, I'll look into it, my main concern is with CommonCrypto usage, the current system I have in place might not work nicely with CocoaPods.

After spending a while, CocoaPods are now supported. For future reference and anyone looking for a way to use CommonCrypto in a CocoaPod, look at the Podspec, mainly the way it uses static modulemaps and some fancy footwork to make sure the CommonCrypto import works.

awesome! thanks @henrinormak


[SUPPORT] - Hudi Delta Streamer not create table in Glue when using spark-submit deploy-mode cluster

Describe the problem you faced
We are using Hudi Delta Streamer in our data ingestion pipeline, but we have a problem syncing Hudi with Glue metastore, and this happens after the version upgrade from 0.7.0 to 0.10.0. And another stranger thing that is happened is that when we submitted the spark-submit job using deploy-mode cluster the table isn't created in glue metastore, but if we use deploy-mode client the table is created successfully. So the problem with using the deploy-mode client is because the table is created in glue metastore and s3, but the job keeps running forever.
 Hudi version 0.10.0 is able to sync tables with Glue, news tables, and incremental tables to sync new partitions.
Environment Description

Hudi version : 0.10.0

Spark version : 3.1.1

Hive version : 3.1.2

Hadoop version :

Storage (HDFS/S3/GCS..) : S3

Running on Docker? (yes/no) : no

Additional context
We are using AWS EMR version 6.3.0
Stacktrace
Unfortunately we don't have any errors to show, because the job ends normally without any problem, the problem is only when we use spark in the cluster in deploy mode, it doesn't create the table in glue, and when we use spark in the deploy -mode client it creates the table in glue, but the job is never done.

We solved this problem using clustering inline instead of async, now the data ingestion works without problems.


Enable basic authentication in URL<EMAIL_ADDRESS>

With this pull request connect-openui5 is able to handle basic auth in target URLs.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

This project has been deprecated (see https://github.com/SAP/connect-openui5/pull/222)


Remove account cookies and feedback page

In [1] we removed the first time sign up page. This was the only place
where the stored cookies and feedback data was used - to see if the
user signing in was doing so for the first time.
We no longer want to store this information in GOV.UK's account API as
we are switching GOV.UK's integration with GOV.UK Sign In to that of
any other relying party. If we do want to ask account holders for
consent about cookies and feedback then we'll create new pages in the
central account.gov.uk area where we can potentially pass this
information to other services they use with their account.
For now though, since we don't need the data we can remove the page
from frontend.

DO NOT MERGE this PR until a similar PR is ready to be deployed which
removes the link to this page from https://account.gov.uk/manage-your-account

Trello
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

The link to this page has been removed from the account management app, so this PR can be merged once I've sorted the tests out.


Dashboard: Settings Page; Cannot scroll to the right of the page at 1280px width

Bug Description
In Chrome, under Windows, perhaps macOS, I cannot scroll to the right in the settings page thus cutting off the button.

Expected Behaviour
I should be able to see all the page content. This should likely scale down the size.
Steps to Reproduce

Visit the Settings Page from the Dashboard
Ensure your browser is 1280px width.

Screenshots

Additional Context

Plugin Version:
Operating System:
Browser:

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Instead of scrolling, maybe the labels should be really above the input fields on smaller screens like this? Not a designer though :)

Verified in QA


In place prediction with cupy on windows crashes

This is a note that the following test crashes on windows currently:
pytest tests\python-gpu\test_gpu_prediction.py::TestGPUPredict::test_inplace_predict_cupy
This needs to be fixed to run cupy tests on windows, otherwise we do not have coverage for device memory interfaces on windows.

Do you have a log?  Is it only reproducible on CI?

This might be caused by using CUDA memory in TLS on Windows. Gott an cudaInitializationError in the destructor of HostDeviceVector when I spawn a new thread for testing in https://github.com/dmlc/xgboost/pull/9362


Prepare changelog for release v1.16.0

Towards https://github.com/giantswarm/giantswarm/issues/11112

Added all change info to the latest changelog entry
Removed the v1.1.5 part in the changelog, as that never got released
Cleaned up the README a bit

FYI @giantswarm/team-firecracker


Config UI Create a Pipeline: GitLab Project ID and Jira Board ID fields should only allow a single input value

Describe the bug
We've updated the instructions for these fields (GitLab Project ID and Jira Board ID) but they still allow multiple input values. We should probably switch to a basic text input field for them.

Need design @yumengwang03

will be designed by @yumengwang03 in another issue

Will be addressed by the New ConfigUI flow


Mutation is not triggered

Hello guys, i have a problem with the Mutation Widget.  I attached the runMutation callback on a button pressed event but its like the function its not being executed and dont trigger the API call.
This is my code , any help would be appreciated

What version are you running?

Hello , the version is graphql_flutter: ^0.9.5  . This is the repo
https://github.com/bloodrush/projectZ

It looks like you are relying on a different folk of this package:
flutter_graphql: ^1.0.0-rc.1

(
https://github.com/bloodrush/projectZ/blob/2c04329fa1a9316836f6e4a51657e38fa871596c/pubspec.yaml#L29)
It would be better of if you raised the issue there or switched to this package here https://pub.dartlang.org/packages/graphql_flutter/versions/1.0.0-beta.1+1

And from my attempt without changing anything, i tried to login and am getting a valid (error though) response from the graphql server
[No such user found: Undefined location]

So, it seems to be triggering the API Call on login.

Sorry about that , because of the error i didnt commited the code.  The whole thing is that im migrating from flutter_graphql to graphql_flutter. The flutter_graphql implementation works fine, problems came when i changed.  I commited the new code now using graphql_flutter:1.0.0-beta.1+1 as u adviced. Now im making the call but i got failed to host lookup. Any idea on this one ? Thanks a lot in advance.

From my own experience, that happens when you have a problem with network connectivity. On my end, everything seems in order after the update, am getting the No such user found error above, which indicates  it works as expected.

Nice yes it works as expected , thanks for the help!


Test PSBT error handling

Users are reporting silent failures with PSBT signing, where the modal just closes. Let's test this with some PSBTs that don't work, and make sure that some useful form of error message is returned to developers

Example PSBT
70736274ff01007d0200000001006f2dff5c6bbd9e908a127fc0838f63ac6df2b1f55f30b3b57d34b8e09b96b50c00000000ffffffff021027000000000000160014ca5000b93abcaab28c76e305c3224a1db5634e9e00000000000000002251206a0b4d305bdcf228da5d55f5f19aa082638c72d1d2c2df7001ec9549551dd20c000000000001012b10980200000000002251206a0b4d305bdcf228da5d55f5f19aa082638c72d1d2c2df7001ec9549551dd20c0117206ac12fe706263361d1a26e7a927cbace6485e1d66e8dcfb2f14fa4f6f0e7e1c1000000

This is very annoying, spent whole day debugging. The modal returns the same psbt given as input, which is unexpected.  Proper error handling is needed. @markmhx

Sorry for the frustration, @nftgeek! We'll dig into this soon since it's in high demand for developers generally atm.

@kyranjamie should this be reopened and tied to this PR? https://github.com/hirosystems/wallet/pull/3917

Adding a proper error flow with the work here: https://github.com/hirosystems/wallet/issues/3849


Bug while playing vertical videos

Describe the bug
Video player doesn't display 9/16, vertical video correctly. It shows the video extremely zoomed in.
Steps to reproduce

Open a vertical video with for example the resolution of 1080x1920.

Setup
Default setup of OCIS on Unraid

Transferring to the web client repo.


Implement CocoaPods podspec

CocoaPods podspec implementation would allow to put together iOS & macOS SDK.

Initial implementation done with 58ec320.


substitution character of new line is displayed in subject

Expected behavior
ISO-2022-JP encoded subject often become long. It will be separated by newline + space.
Subject: =?ISO-2022-JP?B?GyRCRnxLXDhsJEhGfEtcOGwkSEZ8S1w4bCROJUElJyVDGyhC?=
 =?ISO-2022-JP?B?GyRCJS8bKEI=?=

It will be displayed one line as,
日本語と日本語と日本語のチェック

Actual behavior
Newline character is displayed as substitution symbol.

日本語と日本語と日本語のチェッ<?>ク

Steps to reproduce

use subject what I wrote at Expected behavior.

Environment
K-9 Mail version:5.6.00
as far as I know, it happened since September.
Android version: 8.0.0
Account type (IMAP, POP3, WebDAV/Exchange): IMAP

Fixed in master.


Fixes #2381 - propagate task updates in defined order

at least for the things where it matters.

Test coverage decreased noticeable - any plans on improving that?

Looks good - Thanks!
Next Steps:

please create a ticket for the tests
please squash the PR
and I will merge. After that cherry pick that change on Master.


ORC-683: PPD: Make Floating point NaN check more strict

What changes were proposed in this pull request?
ORC-629 added an extra check (part of  RecordReaderImp) disabling PPD when DoubleColumnStats min, max or sum is a non-Finite number.
However, the check is unnecessarily broad – the way stats are updated, using just sum for the check would suffice.
https://github.com/apache/orc/blob/master/java/core/src/java/org/apache/orc/impl/ColumnStatisticsImpl.java#L568
Why are the changes needed?
Make PPD NaN check for floating point stats more strict
How was this patch tested?
TestVectorOrcFile.testPredicatePushdownWithNan()

Thank you, @pgaref . Is this a performance regression?

Thank you, @pgaref . Is this a performance regression?

Hey @dongjoon-hyun more like an optimization based on the discussion on 629: https://github.com/apache/orc/pull/508

Got it. Thanks, @pgaref . cc @wgtmac and @omalley

Merged to master/branch-1.6.


Mention rust-serialize as dependency

I think you should mention that people have also to add rustc-serialize = "*" to their dependencies in Cargo.toml in order to get the examples running. Perhaps also explain in one sentence why that's needed.

I'm not sure I follow. rustc-serialize is a dependency of docopt, so if you install docopt, you'll get rustc-serialize: https://github.com/docopt/docopt.rs/blob/master/Cargo.toml#L23

That's what I was thinking in the beginning. But when I don't add rustc-serialize to my dependencies I get the following:

Oh. Well, if you have extern crate SOMETHING in your code, then SOMETHING is a dependency that you need to add to your Cargo.toml. This really doesn't have anything to do with Docopt...
I added a small note to the Cargo.toml example though.


Typos on the Chats doc page

https://www.textmagic.com/docs/api/sms-chats/
The first paragraph should be changed to this:
In TextMagic, an SMS chat is a convenient grouping of inbound and outbound messages, addressed to specified recipients and arranged as a sorted list. Take a look at the SMS Chat feature in TextMagic Online.  Under the hood, this feature is represented by the chat resource.

Text changed.


Upgrade to Tokio v1

This is currently blocked by reqwest.

Fixed in 710fd042b4e35dcdbeaa7a9c5431ba9b11aba1e1.

Fixed in 710fd042b4e35dcdbeaa7a9c5431ba9b11aba1e1.


IRC logging

Log to IRC for easy monitoring.
http://stackoverflow.com/questions/3118059/how-to-write-custom-python-logging-handler

https://pypi.python.org/pypi/irc

Do discord instead


Bug In Track Cards

Fix the Issue in track cards
There are some issue or bug in your track cards want to change the ui of the track cards or try to fix the issue.
please assigned me for this .
regards.

@Morbius00 you are assigned


metal shader compilation, metal layer thread management, some missing…

I had to split BaseThreadProcedure in 2 functions (init & run) because bgfx init must happen in main thread for UIkit/Apple. Might change (again) when I take a look seriously at swift on iOS.
While testing, I've found an issue with bgfx. It doesn't show up with d3d11. I did see something weird with opengl and vertex streams/views messing up but found a workaround. With metal, I get the same issue but metal validation being more strict, it crashes with an exception. I'll take a closer look next monday/tuesday.

Closing PR. I'll split in 3 : babylonjs update, mac shader, thread lock for window size update.


After writing the last entity, flush the drop buffer

! @amosr

This is in https://github.com/ambiata/icicle/pull/445 now


Load balance Bigtable integration tests over multiple projects

The Bigtable integration tests push really close to the global quota for "Cloud Bigtable Admin API
/ Table write requests per day" they should load balance by picking a random project and instance to run each build, and use instances in different zones for each project.
Note that this requires some additional complexity to avoid busting the test cache for the spanner and storage tests.

We don't need this anymore since we moved more builds to the emulator.


Variable Field Names

I can accomplish this task by having seperate tick scripts, but since the scripts are doing the same thing but on different fields of a measurement, I figured I would combine them into one TICK script.
The issue I am having is two fold.
1 )AWS CW metrics sometimes will push out metrics that do not have the all fields populated. i.e. one  point may have a tag for "domain_name" but the field names vary all over the place, so I needed to filter out only the points that have a "domain_name" and "cluster_status.yellow_maximum" or "cluster_status.red_maximum"  So I am doing a eval/keep to filter that out.  This works fine as long as I don't use a variable for the field, i.e.
    |eval(lambda: "domain_name", lambda:  "cluster_status.yellow_maximum")
       .as('_domain_name', '_cluster_status')
       .keep()
       .quiet()

So problem #1 solved.

Now the variable issue if I want to have a single TICK script the above would be:

    |eval(lambda: "domain_name", lambda:  measurement_field)
       .as('_domain_name', '_cluster_status')
       .keep()
       .quiet()

where measurement_field is a variable, a string to be exact.
var measurement_field = "cluster_status.yellow_maximum"

Now this means that the metrics push into the next node would the proper domain name, but simply the string value of "measurement_field"
[elasticsearch_status-yellow:log5] 2017/01/23 20:33:48 I!  {"Name":"cloudwatch_aws_es","Database":"local","RetentionPolicy":"default","Group":"","Dimensions":{"ByName":false,"TagNames":null},"Tags":{"deployment":"local","domain_name":"test"},"Fields":{"_cluster_status":"cluster_status.yellow_maximum","_domain_name":"test","cluster_status.yellow_maximum":1},"Time":"2017-01-23T20:33:48.51813888Z"}

So my question is in a lambda expression, how do I go about expanding the variable variable? Kinda
like a double eval??
I am running kapacitor 1.1.1
Any help would be greatly appreciated.

I agree that being able to dereference field and tag names stored in a TICK variable within a lambda would be very useful and really expand the ability to template tasks.

Any update on this issue ?
I'm working with:
InfluxDB shell version: 1.5.2
Kapacitor OSS 1.5.0 (git: HEAD 4f10efc41b4dcac070495cf95ba2c41cfcc2aa3a)
RH version: Red Hat Enterprise Linux Server release 7.2 (Maipo)

Related to https://github.com/influxdata/kapacitor/issues/1511.
Unfortunately, there doesn't seem to be a workaround.

Related to https://github.com/influxdata/kapacitor/issues/1511.
Unfortunately, there doesn't seem to be a workaround.

This could be very useful for scalability. I'm guessing there is no workaround still. I'd be happy to work on this feature, if someone is up to giving me some pointers.


ROX-24563: Changing All to NoneSpecified in Collections

Description
As specified, should behave the same as before but All should be replaced as None specified to be more explicit about what the selection includes.

User-facing documentation

[ ] CHANGELOG is updated OR update is not needed
[ ] documentation PR is created and is linked above OR is not needed

Testing and quality

[x] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[x] modified existing tests

How I validated my change
Creating a new collection and viewing existing collections should result in no errors or awkward wordage.

@alwayshooin ditto what David said about tests, see:
https://github.com/stackrox/stackrox/blob/master/ui/apps/platform/src/Containers/Collections/RuleSelector/RuleSelector.cy.jsx
https://github.com/stackrox/stackrox/blob/master/ui/apps/platform/cypress/integration/collections/collectionsCrudWorkflow.test.js
https://github.com/stackrox/stackrox/blob/master/ui/apps/platform/cypress/integration/collections/deploymentMatching.test.js


fix: cli dist babel ignore tests & stories

When compiling dist:transpile:cjs or dist:transpile:esm babel was including the folders __tests__ & stories in the output. This should stop this.
There is also an issue with the cli dist:types generating type definitions for the same folders. But I see that #970 is in progress. So perhaps it will get fixed in that?

Thanks for the PR, @andykenward ❤  Could you elaborate on what you mean by "dist:types is generating type definitions for the same folders"?

Sorry, I deleted the scripts dist:types by mistake.
But I mean't that when you run yarn dist:types it generates TypeScript definitions for the __tests__ & stories folders. Which seems pointless.

Ah, I see. We do want to type check the tests and the stories but we ignore those files when publishing to npm: https://github.com/primer/components/blob/3af005c6ec7d0900cc46728d5c725887bf7ba57c/package.json#L41-L42

Ah, I see. We do want to type check the tests and the stories but we ignore those files when publishing to npm:
https://github.com/primer/components/blob/3af005c6ec7d0900cc46728d5c725887bf7ba57c/package.json#L41-L42

Perhaps also add the compiled stories folder to be ignored too, as this is only for storybookjs?
 "!lib/stories",
 "!lib-esm/stories"

@andykenward Great idea!

@colebemis Sorry in the delay in this pull request. I've made the discussed changes.


drive pipeline deployment from latest pipeline in terraform

There is a little trap in the way we deploy, which this PR is intended to fix:

To deploy, it must be on main (to put all the correct latest images on ECR)
Once on main, it gets automatically deployed to production

This means that we can't easily create a new pipeline with new code, whilst leaving the existing production pipeline unmodified.
Leaving the old code running on the existing production pipeline is desirable when there are significantly widespread changes, and we wish to run a reindex on a new pipeline in preparation for that new pipeline becoming the production pipeline. (e.g. for the change I recently made, to avoid an overload during the overnight harvest)
Previously, the choice of pipeline to deploy to was driven by asking the API which pipeline it points to.
With this change, the choice of pipeline is the most recently dated pipeline in main.tf.
It still identifies the production pipeline so that it can print a warning that production is not necessarily up to date, but its target will always be the latest pipeline in terraform.
Scenarios:

latest pipeline is production, no change to existing behaviour
latest pipeline is not production, deploys to latest, production starts to lag behind main

Normally, the latest pipeline is expected to replace production soon, so scenario 1 will resume
If a change needs to be pushed to production, without promoting the latest pipeline, we can remove the later pipeline from the tf file on main.

Another benefit of this approach is that it encodes the "must do a reindex with this merge" prose into an actual change in the code.
If a change is significant enough to require a reindex, it should include a new pipeline in main.tf, which will prevent those changes going on production until the new pipeline becomes production.


Release v16.0.0

Merged pull requests to be released:

#379
#381
#386

Full Changelog: https://github.com/Adyen/adyen-go-api-library/compare/v15.0.0...main

Closed, will re-open


Milestone 0: Setup Project

Setup Project
in this Milestone I:

Added linters
Installed React app

Dear @levy002, actually I have changed it already in the set-up branch which is for this pull request, as you can see in the picture

should I change it in both the dev and master branches also? I thought I have time to fix these branches maybe for the final project review request?


list item renders as quote

1. First item
    > Nested quote
2. Second item

renders as:

"second item" should render as a list item

Works as expected. See commonmark spec.

Ups, sorry, misunderstood. That's a bug.

Fixed, thanks!


[Playground] prepare multienvironment deployment for Playground

resolves #25736
Define additional variables for Playground deployment on one Google project with environments

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Replaced by #25994


PlotlyChart module keeps loading and cannot display the chart properly

When I try to use the example on the official website, the program keeps loading and won't display the chart properly for a long time.
my flet version is 0.3.0.dev954.

update issue

On Ubuntu 22.04 is OK, But on Windows 10 is not.

I am using Windows 10 too, and when I try the code the same issue appears (endless loading).
I copied the code from the official doc (not that different actually), and had this:

well, I have installed it. It does not pop up any error message.

Is it working now?

I think I have solved the problem. kaleido is not working on some machines for some reason, I installed kaleido with v0.1.0post1 and flet shows the charts properly.

Thanks for your feedback on this.


Disable the rubocop rules for MethodLength and AbcSize

Disabled Metrics/AbcSize, Metrics/MethodLength and Metrics/CyclomaticComplexity, as it didn't change the way we write our code cc @mfurtak

:+1:


Indicating the number of input variable during the runtime

IF YOU ARE REPORTING A BUG OR PROBLEM WITH DLIB THEN FILL OUT THE ENTIRE TEMPLATE BELOW.  ISSUES ASKING QUESTIONS ABOUT WHY SOMETHING DOESN'T WORK THAT FAIL TO FILL OUT THE ENTIRE TEMPLATE WILL BE CLOSED.
It is OK to suggest interesting improvements to dlib, even if you are not volunteering to implement them.  However, the issue tracker is not a code writing service, do not ask for someone to write code for you.  E.g. Do not ask for feature improvements to the example programs. If there is some feature improvement you want in an example program then it's up to you to write it.
Before you ask a question, check Google for a solution, the dlib FAQ, or consult the dlib documentation.  Every single function in dlib is documented in detail.  If you obviously haven't read the documentation your issue will be closed.
If you aren't reporting a bug or problem with dlib then delete this template and write whatever you want here.

Expected Behavior

Current Behavior

Steps to Reproduce

Version:
Where did you get dlib:
Platform:
Compiler:

Hi Davis, I am new to DLIB. I am trying to use dlib's mlp library in a project where the number of input variables is not known beforehand. The problem is that I don't know the size of my input variables during the compile time. I am trying to find out a way to be able to specify the size of input variables during runtime. I realized that for example in "typedef matrix<double, i, 1> sample_type;", i has to be a constant number. Is there a way to do that i can be a variable to be determined in the runtime? Thank you for your help.

Hi, did you read the matrix example?
You can just set the dimension you want to modify at runtime to 0:
typedef matrix<double, 0, 1> sample_type;
sample_type sample;
long i = 2;
sample.set_size(i, 1);

Thank you very much! This will do it.
Arash
On Sat, Mar 27, 2021 at 1:18 AM Adrià Arrufat @.***>
wrote:

Hi, did you read the matrix example http://dlib.net/matrix_ex.cpp.html?
You can just set the dimension you want to modify at runtime to 0:
typedef matrix<double, 0, 1> sample_type;
sample_type sample;long i = 2;
sample.set_size(i, 1);
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/davisking/dlib/issues/2333#issuecomment-808657506,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEUFBXRFQH32ADEOWIO2QN3TFVTA5ANCNFSM4Z34W3DA
.


feat: update BRIE specs

close #1173

where is the spec for what it does with specific events once they are approved?


Lazyloading : how to prevent picturefill 2 execution on DOM ready ?

I'm trying to pair picturefill 2 with lazyloading, which implies that picturefill() must not run on the whole markup when page is loaded, but only be triggered on images that are in the viewport (or near of it).
To do this with picturefill 1.2, you had to :

ommit the data-picture attributes of the wrapping spans,
listen to scroll / resize events,
do some maths,
add data-picture attributes where needed,
run picturefill() manually.

(As explained in this issue and that codepen).
What would be the equivalent trick for Picturefill 2 ?
The elements option can be used to target a specific image, but how to disable the automatic execution of picturefill() ?

Looks like we have a solution here, with one other bug still open #239. Closing this one. Thanks everyone.

This solution works well but how will you manage thumbnail navigation. Here is a pen I'm testing with.
http://codepen.io/anon/pen/OVveXK
If I don't go through the slides in order the images doesn't load.

Simply use lazySizes. Here is a demo using flexslider.

Yes thanks that does work well.

Is there a solution here? I saw about 3 different ones and nothing concretely concluded as the working solution.


Show wrong branch name in status bar on startup

Switch to branch other than 'master'.
Start VSCode.
You will see 'master' branch in status bar, it will be changed only when you open some file.

Issue Type: Bug
VS Code version: Code 1.43.0 (78a4c91400152c0f27ba4d363eb56d2835f9903a, 2020-03-09T19:47:57.235Z)
OS version: Windows_NT x64 10.0.10240

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 x 3600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.87GB (9.90GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (25)

Extension
Author (truncated)
Version

Bookmarks
ale
11.0.0

pascal
ale
9.0.0

pascal-formatter
ale
2.2.0

vscode-toggle-quotes
Bri
0.3.2

turbo-console-log
Cha
1.4.0

npm-intellisense
chr
1.3.0

vscode-eslint
dba
2.1.1

vscode-faker
dee
1.3.0

vscode-npm-script
eg2
0.3.11

output-colorizer
IBM
0.1.2

innosetup
idl
1.2.0

nsis
idl
3.25.1

vscode-placeholder-images
Jak
0.1.0

HTMLHint
mka
0.6.0

vscode-filesize
mkx
2.1.3

python
ms-
2020.2.64397

cpptools
ms-
0.26.3

incrementor
nms
0.1.0

LiveServer
rit
5.6.1

vscode-qt-for-python
sea
0.4.2

code-settings-sync
Sha
3.4.3

code-spell-checker
str
1.8.0

vscode-stylelint
sty
0.83.0

open-in-browser
tec
2.0.0

material-theme
zhu
3.2.3

You seem to have multiple repositories open, maybe it's showing that it's in the master branch of another repository? That would explain it would change once you open a file.

@joaomoreno Yes, I confirm it. I have a repo inside another repo and at start it shows 'master' branch of another repo even if the opened file at start is from non-master branch of another repo.

Looks like it shows the first or main repo of a workspace.

@joaomoreno  Fixed or?

The status bar will only show the branch name of one of your open repositories. By default it will take the first one. It will then switch if you open files inside other repositories or interact with them in the SCM view.

Why not take the repository of the file opened with VS Code start.


'@local_config_cc//:toolchain' does not contain a toolchain for cpu 'arm64-v8a'

Hi,
I want to compiler the run_eval for android edgetu device test. but encouter the "does not contain a toolchain for cpu 'arm64-v8a'". Could you reference the following fail and then give me some suggestions about this?
Thank a lot!
System information

OS Platform: ubuntu 20.04
Bazel version : 3.7.2

** Setup environment **
Android SDK:
- sudo apt-get install android-sdk
Android NDK
-  wget -q https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
Setup the $PATH evironment:
- echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$:/usr/lib/android-sdk//tools:/usr/lib/android-sdk//platform-tools:/usr/lib/android-sdk//tools:/usr/lib/android-sdk//platform-tools:::/home/yihsin_hung/android-ndk-r21e
** Build command **
cd tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification
bazel build -c opt --config=android_arm64 --cxxopt='--std=c++17' //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval
** Build fail Log **
w/core/tfrt/fallback,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils
ERROR: /home/yihsin_hung/.cache/bazel/_bazel_yihsin_hung/d610790c850d0b74b4f90630e4b19108/external/local_config_cc/BUILD:47:19: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'arm64-v8a'
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1596824487 -0400"
DEBUG: Repository io_bazel_rules_docker instantiated at:
/home/yihsin_hung/tensorflow/WORKSPACE:23:14: in
/home/yihsin_hung/tensorflow/tensorflow/workspace0.bzl:108:34: in workspace
/home/yihsin_hung/.cache/bazel/_bazel_yihsin_hung/d610790c850d0b74b4f90630e4b19108/external/bazel_toolchains/repositories/repositories.bzl:35:23: in repositories
Repository rule git_repository defined at:
/home/yihsin_hung/.cache/bazel/_bazel_yihsin_hung/d610790c850d0b74b4f90630e4b19108/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
ERROR: Analysis of target '//tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval' failed; build aborted: Analysis of target '@local_config_cc//:toolchain' failed
INFO: Elapsed time: 0.267s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

Hi @yishinhung ,
We see that the issue template has not been filled, could you please do so as it helps us analyse the issue [tf version, steps followed before you ran into this error or stand alone code/colab gist to reproduce the issue faced].
Also please feel free to look at this similar issue  for answers.

Hi @mohantym:
I use the ./configure  recommended by (https://github.com/tensorflow/tensorflow/issues/34520) but encounter issue about the Android build tool version(debian '27.0.1') conflict with bazel 3.7.2.
I search the error and find the https://github.com/bazelbuild/bazel/commit/dd666acb9d6e9ae80952baa11726a909d5fc7d79 patches. Is it mean the android build only support 26.0.1?
Please give me some suggestion about this?
Thank a lot!
** tf version master branch**
git clone https://github.com/tensorflow/tensorflow
** Execute the confgiure recommended by (https://github.com/tensorflow/tensorflow/issues/34520)**
yihsin_hung@xuanhao-TS700-E7-RS8:~/tensorflow$ ./configure
You have bazel 3.7.2 installed.
Please specify the location of python. [Default is /usr/bin/python3]:
Found possible Python library paths:
/usr/lib/python3/dist-packages
/usr/local/lib/python3.8/dist-packages
Please input the desired Python library path to use.  Default is [/usr/lib/python3/dist-packages]
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.
Do you wish to download a fresh release of clang? (Experimental) [y/N]:
Clang will not be downloaded.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: y
Searching for NDK and SDK installations.
Please specify the home path of the Android NDK to use. [Default is /home/yihsin_hung/Android/Sdk/ndk-bundle]: /home/yihsin_hung/android-ndk-r21e
Please specify the (min) Android NDK API level to use. [Available levels: ['16', '17', '18', '19', '21', '22', '23', '24', '26', '27', '28', '29', '30']] [Default is 21]:
Please specify the home path of the Android SDK to use. [Default is /home/yihsin_hung/Android/Sdk]: /usr/lib/android-sdk
Please specify the Android SDK API level to use. [Available levels: ['23']] [Default is 23]:
Please specify an Android build tools version to use. [Available versions: ['27.0.1', 'debian']] [Default is debian]:
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl            # Build with MKL support.
--config=mkl_aarch64    # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
--config=monolithic     # Config for mostly static monolithic build.
--config=numa           # Build with NUMA support.
--config=dynamic_kernels        # (Experimental) Build kernels into separate shared objects.
--config=v1             # Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
--config=nogcp          # Disable GCP support.
--config=nonccl         # Disable NVIDIA NCCL support.
Configuration finished
** Fail build log**
~/tensorflow/tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification$ bazel build -c opt --config=android_arm64 --cxxopt='--std=c++17' //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval
INFO: Build option --action_env has changed, discarding analysis cache.
ERROR: Analysis of target '//tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval' failed; build aborted: Bazel does not recognize Android build tools version debian
INFO: Elapsed time: 1.348s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 11 targets configured)
currently loading: @bazel_tools//tools/jdk ... (2 packages)

Hi @Saduf2019 ,Could you please look into this issue?

@yishinhung
Can you please refer to these issues and let us know: link,link1,link2 and let us know.

@yishinhung
Can you please refer to these issues and let us know: link,link1,link2 and let us know.

Hi @Saduf2019
Excuse me! I don't get some information about the following log.
Could you suggest us to build the "imagenet_image_classification:run_eva" by which version of bazel and android build tools?
Thank a lot!
** Fail log**
ERROR: Analysis of target '//tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval' failed; build aborted: Bazel does not recognize Android build tools version debian

Did you run ./configure script ?
Plz check the following.
https://www.tensorflow.org/lite/guide/build_android#configure_workspace_and_bazelrc


[llm]support dpo pp

PR types
New features
PR changes
APIs
Description

重构DPOTrainer与原版逐位对齐loss、metric
重构DPOTrainer能够支持pp & vpp
支持LoRA和多种DPO变体（包含KTO、DPO、ORPO、Simpo）
新增支持多个开源模型

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Adds Compare And Swap to Hyperbee

Adds the ability to compare and swap on a key in a Hyperbee. In particular, if we have:

a hyperbee: bee
a key: key
a value we want to set: value
the current value in bee at key: current
a value we want to compare against current: test
and a predicate that will compare test and the current value in bee at key: compare

Then Hyperbee.cas() compares current and test through compare and:
if true: sets key at value in bee and returns current
if false: return null
The default compare function encodes test through bee.valueEncoding and compares against the encoded value of current.

1.9.0


Linting

Closes #109 and fixes many linting errors.

@jhernandezb, thanks for the suggestions! Refactored.


create-platformatic fails if the stackable is a ESM module

To reproduce it: npx create-platformatic then creates an app with an ai-warp.
This will fail with Error: Cannot find module '@platformatic/ai-warp'
This might be related to the fact that   ai-warp is a ESM module (https://github.com/platformatic/ai-warp/blob/main/package.json#L5).
...and we "resolve" the package here with a require: https://github.com/platformatic/platformatic/blob/main/packages/create-platformatic-auto/src/index.mjs#L79
But needs investigation.

This is not due to being an ESM module, because the same call works perfectly when done in the same folder after the crash:
➜  tmp npx create-platformatic@latest
 Hello Matteo Collina, welcome to Platformatic 1.49.0!
? What kind of project do you want to create? Application
? Where would you like to create your project? ai3
? Which kind of project do you want to create? @platformatic/ai-warp
✔ Installing @platformatic/ai-warp...
node:internal/modules/cjs/loader:1145
  const err = new Error(message);
              ^

Error: Cannot find module '@platformatic/ai-warp'
Require stack:
- /Users/matteo/tmp/ai3/package.json
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Function.resolve (node:internal/modules/helpers:190:19)
    at importOrLocal (file:///Users/matteo/.npm/_npx/e4595f028a1d1b84/node_modules/@platformatic/create-platformatic-auto/src/index.mjs:79:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createApplication (file:///Users/matteo/.npm/_npx/e4595f028a1d1b84/node_modules/@platformatic/create-platformatic-auto/src/index.mjs:176:23)
    at async createPlatformatic (file:///Users/matteo/.npm/_npx/e4595f028a1d1b84/node_modules/@platformatic/create-platformatic-auto/src/index.mjs:125:5)
    at async file:///Users/matteo/.npm/_npx/e4595f028a1d1b84/node_modules/create-platformatic/create-platformatic.mjs:30:3 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/matteo/tmp/ai3/package.json' ]
}

Node.js v20.15.0
➜  ai3 node
Welcome to Node.js v20.15.0.
Type ".help" for more information.
> require.resolve('@platformatic/ai-warp')
<EMAIL_ADDRESS>>

What is happening here is that Node.js is caching the "missing file" inside resolve, and when trying to load the module again after installing it again it fails. Bypassing the node core caches fixes it.


Performance

name: Optimize some bottlenecks
about: I profiled the codebase and made some performance optimizations.
assignees: mwbrulhardt
- What I did
Performance enhancements include:

using OrderedDict instead of pandas in observe.py - as pandas dataframe concats are slow
using online stats in rewards.py (for sharpe, and sortino) it was slow to repeatedly calculate the mean for the window over and over - especially in a tight loop. So used Welford's algorithm to track mean, variance, std.
line 192 in order.py value in list operations are slower than direct bool logic.
modified tests.

- How I did it
- How to verify it
Ran the tests. And added more tests.
Benchmarked. Using a simple NEAT algo to trade, I noticed at least a 10x speed up

[ ] I updated the docs.

This pull request adds a new feature to TensorTrade. @mwbrulhardt, could you please take a look at it?

How did you use a NEAT algo if you tested these upgrades using TT?


tests, flakes: add sharded_repeated_test.sh for periodic flake checker

What this PR does / why we need it:
Adds sharded_repeated_test.sh, a wrapper for repeated_test.sh that generates a set of shards from the tests available, then selects a shard by time of day the script is being executed. This will allow us to run consecutively with different shards of tests.
Also it adds a --force flag to repeated_test.sh. Inherently repeated_test.sh has a check for how many tests are being run, and will back off if too many are tried. The --force flag makes is possible to override that check.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note:

NONE

Run a first test job yesterday, will evaluate the results now.

Closing due to lack of interest :confused:
/close


feat(platform,platform-server): delete project

it will redirect to home page when the project is deleted.

Should we delete the files in storage service at the same time?

Should we delete the files in storage service at the same time? @forehalo
@lizimeow Yes, we should. Adding a batch deleting interface like deleteFolder to storage service can easily achieve this.


Preconditions

Closes #179
Adds example of using the new API: https://github.com/o1-labs/snarkyjs/blob/dab7ed9aa93fe95fb88f1b184195de252046704c/src/examples/simple_zkapp.ts#L39
Adds a method for checking deep equality of two party subtypes (where "party subtype" is defined very broadly to be future-proof): https://github.com/o1-labs/snarkyjs/pull/207/commits/5bf05cdc3341b5159498daabb11b1613f313d1a7. This is used to check if the user manually modified a precondition, which counts as explicitly constraining the value, to avoid the error that we throw when it's not constrained.

TODOs:

[ ] change integration test so that it tests fetching from the graphql URI, and uses preconditions, and ideally is broken up into zkapps that test different features
[x] investigate broken prover and decide if it should be fixed as part of this issue
[ ] some precondition fields aren't implemented yet because the logic to parse them from an encoded string is missing. this could be done here or in a follow-up PR

I don’t know if I believe in the WeakMap over storing secret things on the object. (...) Also, popular and well-thought-out libraries do this (like React), so I don’t think it’s controversial.

Ok, this is good feedback. I might have overreached with the intention to move all secret props away. Specifically, I'm not sure if I can defend the move of SmartContract._executionState to a weakmap, because that prop mainly gets used internally by the SmartContract class. In that case, I guess it's more natural to make the prop private so it's removed from the TS type / doesn't pollute intellisense, but still present at runtime.

What is your reason for reaching for weakmaps here?

If we do end up sticking with WeakMaps, having just one for all the secret things at least mitigates the “hard to find” associated data problem a bit. Rather than one for each kind of associated datum.

I do think there are cases where weakmaps are better than extra class props, and it's also better to not have them in one place. For example, the precondition.ts module stores metadata associated with each Party instance, in a weakmap. I like the weakmap approach in this case because it makes the metadata book-keeping be localized to the module that is concered with it - precondition.ts. I think keeping modules encapsulated helps with understanding and maintaining the code. In this case, seeing a map of precondition-related metadata being initialized on the Party class in party.ts would be more confusing, because there's no other code in party.ts concerned with that metadata. It would mix concerns of the Party class with concerns of the precondition module.
An alternative would be to secretly set a property party._preconditionData = ... inside precondition.ts, but I think this is just not as clean, not as type-able etc as maintaining a weakmap for that data.
The same reasoning applies for the @state logic that's now encapsulated in state.ts. We used to store _states and _layout() fields on SmartContract subclasses from inside the @state logic. I think it's strictly less confusing and more maintainable now that we have a state-related weakmap inside state.ts, and not mess with the SmartContracts from that module.
Since only precondition.ts / state.ts ever need to be concerned with their respective metadata, I don't see the value of having a central weakmap which combines their stuff. Also, the keys and values of that weakmap would be a mix of completely different things if we do that, making accurate typing harder.
TL;DR, I think both of thos weakmaps help with encapsulation, code clarity and strict typing!
@bkase, what do you think of a middle-ground approach where we don't try to avoid private props in principle, but we use weakmaps if a module wants to associate data with objects that originate in a different module? I would revert the _executionState weakmap in that case.

Renaming the type? to _type? (or something) + refactoring that WeakMap for executionState and then I'll approve 💯


Cannot apply peer authentication policy to any namespace by seeing error "admission webhook "pilot.validation.istio.io" denied the request: unrecognized type PeerAuthentication"

Bug description
I am currently using istio 1.4.9 and I have been practicing the examples about how to apply the authentication policy on https://istio.io/latest/docs/tasks/security/authentication/authn-policy/.
However, when I tried commands listed from https://istio.io/latest/docs/tasks/security/authentication/authn-policy/#auto-mutual-tls
$ kubectl exec $(kubectl get pod -l app=sleep -n foo -o jsonpath={.items..metadata.name}) -c sleep -n foo -- curl http://httpbin.foo:8000/headers -s | grep X-Forwarded-Client-Cert
I could not get anything.
In addtion to that, when i tried to apply the commands from https://istio.io/latest/docs/tasks/security/authentication/authn-policy/#globally-enabling-istio-mutual-tls-in-strict-mode
$ kubectl apply -f - <<EOF apiVersion: "security.istio.io/v1beta1" kind: "PeerAuthentication" metadata:   name: "default"   namespace: "istio-system" spec:   mtls:     mode: STRICT EOF
I got an error saying "
admission webhook "pilot.validation.istio.io" denied the request: unrecognized type PeerAuthentication"
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Expected behavior
Steps to reproduce the bug
Follow the setup steps and commands on https://istio.io/latest/docs/tasks/security/authentication/authn-policy/
Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
% istioctl version --remote
client version: 1.4.9
citadel version: 1.4.9
egressgateway version: 1.4.9
egressgateway version: 1.4.9
galley version: 1.4.9
ingressgateway version: 1.4.9
ingressgateway version: 1.4.9
pilot version: 1.4.9
policy version: 1.4.9
sidecar-injector version: 1.4.9
telemetry version: 1.4.9
private-ingressgateway version:
data plane version: 1.4.9 (12 proxies)

% kubectl version
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.9", GitCommit:"e09f5c40b55c91f681a46ee17f9bc447eeacee57", GitTreeState:"clean", BuildDate:"2019-05-27T16:08:57Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.6", GitCommit:"d32e40e20d167e103faf894261614c5b45c44198", GitTreeState:"clean", BuildDate:"2020-05-20T13:08:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

% helm version
Client: &version.Version{SemVer:"v2.12.0", GitCommit:"d325d2a9c179b33af1a024cdb5a4472b6288016a", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.6", GitCommit:"dd2e5695da88625b190e6b22e9542550ab503a47", GitTreeState:"clean"}

How was Istio installed?
Running curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.4.9 sh - directly.
Environment where bug was observed (cloud vendor, OS, etc)
Additionally, please consider attaching a cluster state archive by attaching
the dump file to this issue.

You should follow 1.4 doc instead of latest one, because you have installed istio 1.4.
If I remember correct, PeerAuthentication was introduced since istio 1.5.

We are going to upgrade to 1.5 to see if it is gonna solve the issue. thank you @morvencao


 Original APK file specified is not valid

Any idea's?

@vincentcox-ordina Please sure the run.log file and the original APK file.

Hi there, Thank you for your response. I have put those files in a zip file:
data.zip
Thanks in advance!

@vincentcox-ordina Both of the APKs you shared appear to be invalid or otherwise corrupt.
root@kali:~/Downloads# keytool -printcert -jarfile du.apk
keytool error: java.util.zip.ZipException: error in opening zip file
root@kali:~/Downloads# keytool -printcert -jarfile Tumblr_v<IP_ADDRESS>_apkpure.com.apk
keytool error: java.util.zip.ZipException: error in opening zip file
root@kali:~/Downloads#

The run.log output suggests the du.apk file is invalid as well:
root@kali:~/Downloads# cat run.log
Running backdoor-apk at Thu Dec 15 19:33:24 CET 2016
/usr/bin/msfvenom
/usr/bin/d2j-dex2jar
/usr/bin/unzip
/usr/bin/keytool
/usr/bin/jarsigner
/usr/bin/apktool
third-party/proguard5.2.1/lib/proguard
third-party/android-sdk-linux/build-tools/23.0.3/dx
third-party/android-sdk-linux/build-tools/23.0.3/zipalign
Archive:  du.apk
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
note:  du.apk may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of du.apk or
        du.apk.zip, and cannot find du.apk.ZIP, period.
root@kali:~/Downloads#

I'm going to close this issue out. Be mindful of where you obtain APKs. :)


Illegal Instruction: 4

I have cloned and followed the steps except adding pusher and gcm keys
since it said optional.
set my database to sqlite
when I run php artisan webpush:vapid
It gives me Illegal instruction: 4
This is my php-v results
PHP 7.1.10 (cli) (built: Oct  2 2017 08:58:21) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.10, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.3, Copyright (c) 2002-2017, by Derick Rethans

Please post the full exception.


Field only accepts first line

System information:

Windows 10
6.2.0

Describe the problem you're observing:
When trying to edit the data on existing rows and double clicking into the field (Varchar). I would paste in the new content that has multi-lines and the result would only receive the first line.
Steps to reproduce, if exist:
Create a table with a simple varchar field. Add a row containing anything you like but then edit that row by double clicking and pasting in this comment:
This is the first sentence
This is the second sentence
This is the third sentence
The result will be that only "This is the first sentence" is saved and "This is the second sentence
This is the third sentence" will be missing.
Guess: It seems that varchar is assumed to never contain new lines and perhaps an incorrect entry field has been used in the application.

@zombiesbyte This is not a bug. You can edit multi-line string in inline editor.
Solutions:

Just paste value without opening the editor (select a cell, press ctrl+v).
Open value edit panel (f7 + click on Value icon on the right sidebar). You can edit multiline string there.


Report a lost or stolen passport updates

For Canada route, abroad only. Change opening line to: Fill in form LS01 and post it to your nearest British embassy, high commission or consulate.
https://www.gov.uk/report-a-lost-or-stolen-passport/y/abroad/canada

oooh... gotta love exceptions... :+1:


the reported warning is not the correct one in the sample code for suppressing it

it has to be SYSLIB0041 and not SYSLIB0001 as reported

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

ID: cd4ebc39-a1e1-ea04-97a9-e2e7d65b2477
Version Independent ID: 2466dc04-ee40-d8af-0b31-7e78663a0205
Content: SYSLIB0041 warning - Rfc2898DeriveBytes constructors with default hash algorithm and iteration counts are obsolete - .NET
Content Source: docs/fundamentals/syslib-diagnostics/syslib0041.md
Product: dotnet-fundamentals
GitHub Login: @gewarren
Microsoft Alias: gewarren

I'm actually going to reopen this and add ID-specific suppression text to each reference page. Thanks for letting us know this is confusing.


chore: update dependencies and remove underscore

All dependencies were updated to mitigate vulnerabilities with the exception of a moderate vulnerability in postcss that is a dependency of stylelint. This vulnerability will be patched when stylelint updates it's dependency on postcss.
In addition, the light usage of  underscore.js has been converted to use vanilla js and the dependency on underscore was removed.

Published in +<EMAIL_ADDRESS>CC @yokuze @jimjenkins5


Fim4 calib db

Copy calibration db code from dev-fim3 into the dev (fim4) codebase. Git history not available.
Also updated making it easier to deploy, along with better information for external contributors.
Changed the system so the calibration database name is configurable. This allows test databases to be setup in the same postgres db / server system. You can have more than one calb_db_keys.env running in different computers (or even more than one on one server) pointing to the same actual postgres server and service. ie) multiple dev machines can call a single production server which hosts the database.
Changes

tools

calibration-db

docker-compose.yml: changed to allow for configurable database name. (allows for more then one database in a postgres database system (one for prod, another for test if needed))
README.md: updated instructions on setup and usage.

README.md: added text talking about the system.

Additions

tools

calibration-db

calb_db_keys_template.env: a new template version of the required config values and added a new config value (db name).

Removals

tools

calibration-db

start_db.sh: Removed as the command should be run on demand and not specifically scripted because of its configurable location of the env file.

Testing
It was setup and configured with a database name of "calibration-test" (for testing purposes), against a different server. An applicable HUC of 12030102 was processed and ensured the database was created/updated correctly.
This should now be easily setup on external contributors environments, assuming they have the correct calibration db inputs as seen in gms_run_branch.sh

I ask that Ryan review it for familiarity with the updates and also that Matt try it external. @mluck it should be easy to setup and documented well for you. If you find the documentation needs adjustment, let me know.
Also.. when this is approved and merged, I will go into our servers that are running the fim3 version and replace it with the new fim4 version.

Ok. I moved the calb_db_template.env to the config folder, updated the tools/calibration-db/README.md text, added text to the root README.md and some minor tidbits. Go ahead and review/test it when you are ready (including directions).

I was getting a psycopg2.errors.UndefinedTable: relation "points" does not exist error that I'm working to find a fix for. Seems to be something in the config files setup.
##########################################################################
Performing SRC adjustments using benchmark point database
##########################################################################
This may take a few minutes...
Connecting to the PostgreSQL database...
Host name: ip-172-31-41-156
PostgreSQL database version:
('PostgreSQL 14.5 (Debian 14.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit',)
Connected to database

Finding all fim_output hucs that contain calibration points...
Traceback (most recent call last):
  File "/foss_fim/src/src_adjust_spatial_obs.py", line 421, in <module>
    run_prep(fim_directory, debug_outputs_option, ds_thresh_override,
  File "/foss_fim/src/src_adjust_spatial_obs.py", line 387, in run_prep
    ingest_points_layer(fim_directory, job_number, debug_outputs_option, log_file)
  File "/foss_fim/src/src_adjust_spatial_obs.py", line 231, in ingest_points_layer
    huc_list_db = find_hucs_with_points(conn, fim_out_huc_list)
  File "/foss_fim/src/src_adjust_spatial_obs.py", line 189, in find_hucs_with_points
    cursor.execute("SELECT DISTINCT H.huc8 FROM points P JOIN hucs H ON ST_Contains(H.geom, P.geom) WHERE H.huc8 = ANY(%s);", (fim_out_huc_list,))
psycopg2.errors.UndefinedTable: relation "points" does not exist
LINE 1: SELECT DISTINCT H.huc8 FROM points P JOIN hucs H ON ST_Conta...
                                    ^

There seems to be some sort of conflict caused by reading the database credentials in config/calb_db_keys_template.env in two different ways. If each of the environment variables in that file are preceded with export then initializing the db with docker-compose fails with a message ERROR: In file /home/matt/git/inundation-mapping/config/calb_db_keys.env: environment variable name 'export CALIBRATION_DB_HOST' may not contain whitespace. However, if the export is removed then the db will start up fine but src_spatial_adjust_obs.py fails to connect to the db (copied below). The connection does work if export is added back to the parameters.
##########################################################################
Performing SRC adjustments using benchmark point database
##########################################################################
This may take a few minutes...
Connecting to the PostgreSQL database...
Waiting for database to come online
Waiting for database to come online
Waiting for database to come online
Waiting for database to come online
Waiting for database to come online
Waiting for database to come online
unable to connect to calibration db


Session: snapshots

Make it possible to write decision trace to a snapshot file and restore from this file

We have these options:

Pickle the whole session object at every decision step. With default Pineforest the dump is about 30MB
Pickle after the last decision only and allow user to revert session state
Write down expert answers with untrained model. It would allow to reproduce session up to any decision step, but will take the same computational time as the original training

If I understood the question correctly,  I would like to save all the answers after a particular session is finished.  And leave for the user the possibility of retraining at a given step, and change answers after that point. I think that training time being the same is not a big issue -- because what is expensive is the time of the researcher.
I think this is more in accordance with item 3.

When I run zwaad I have issues like this:
ex., I make 10 answers, and then the script is broken because of some stupid thing like encoding of the letter which I answer, or I occasionally press some wrong key. so when I rerun it, I should do the same steps once again and give the same answers. If I have the file with answers, I may put into "prior_answers" option and run the script from the last answer. It is fine for me.

We discussed it with @matwey, and we see three options, and all of them are quiet straightforward to implement:

[ ] Interface for saving and loading session state
[ ] Callback for serializing model to ONNX
[ ] Callback for pickling the whole session to ONNX

The first one would lead to re-running the whole pipeline, but would be flexible enough to support use-cases we discuss here.


changed py file II

@all-contributors add @sayan1999  for Code, Research, Data

@all-contributors add @sayan1999 for Code, Research, Data

@all-contributors add @sayan1999 for Code, Research, Data


Feature better period extraction

Fixes issue #55.
Week period doesn't seem applicable.

@Allactaga just calling your attention here. :)

Hi @waqasshabbir, we need to finish tests changes in parallel PR, and then i get back to this. Sorry for the delay.

Hi @waqasshabbir, please merge master in.

Hi @Allactaga, done. Thanks!

Hi @Allactaga made all changes according to your feedback. Please review again.


[declarative-hack] [JSON] Multi-line text does not work in JSON Bot

Version
Hackathon JSON Test Bot
Describe the bug
Multi-line text activities don't work with a JSON bot. For example, I cannot have the bot output this in a single activity:

This is a multi-line list

one
two
three

To Reproduce
Run the LG Bot Sample by (in Startup.cs) commenting out return new TestBot(accessors, botResourceManager); and un-commenting return new TestBotLG(accessors);. Type "multi" and you will get:

It gets this from here
Now, switch back to the non-LG JSON bot by reversing the commenting/uncommenting above. Copy the mutli-line markdown from the link above into a new .lg file. Create a dialog that calls that .lg file and you will get:

All spacing is exactly the same. It seems to be the way the JSON bot parses multi-line text from .lg files.
[bug]
[declarative-hack]

@carlosscastro - possibly related to the dialog call to LG not picking up multi-line response from EvaluateTemplate?

Verified this has been fixed in the latest bits on 4.Future.
{
    "$schema": "../../app.schema",
    "$type": "Microsoft.AdaptiveDialog",
    "generator": "test.lg",
    "steps": [
        {
            "$type": "Microsoft.SendActivity",
            "activity": "[T1]"
        },
        {
            "$type": "Microsoft.SendActivity",
            "activity": "Step 2"
        },
        {
            "$type": "Microsoft.SendActivity",
            "activity": "Step 3"
        }
    ]
}

Where test.lg has the following
# T1
- ```
this is multi line text
- one
- two
- three


Format on save does (sometimes) not work with Pint

Hi,
I have a very strange issue with the plugin using Pint.
It does not work with format on save but when I run the :Format (from the base coc-nvim config) it does the job..
In the showOutput it shows that Pint ran and when I debugged the plugin in the class PintFixFormattingEditProvider the function _provideEdits var code has the formatted document.
Been trying to figure out why this is happening but cant solve it.
Also strange is that when I create a new PHP file in my project is does work.
What i've tried:

Disabling all plugins except coc-nvim
Revert my config and use base coc-nvim from their readme
Pint from project and downloaded Pint by plugin

My coc-settings.json:
{
  "php-cs-fixer.activateTool": "pint",
  "coc.preferences.formatOnSaveFiletypes": [
    "php"
  ]
}

Does this problem occur with large files? Perhaps a timeout is occurring. Does changing coc.preferences.willSaveHandlerTimeout to a larger value change the behavior?
coc-settings.json:
{
  // default: 500 (ms)
  "coc.preferences.willSaveHandlerTimeout": 1000,
}

Thanks for the quick reply. It is not a really big file. I tried several times with a higher timeout but doesn't fix it unfortunately. The :Format command does it in < 1 sec.

Thanks for trying. Is there any unusual information output when you run :CocInfo?

Sorry, one correction. it is a coc.preferences.willSaveHandlerTimeout setting, but unfortunately, it is not currently respected....
https://github.com/neoclide/coc.nvim/issues/3441

Ah I see, thanks!
 The file is not that big 650~ lines so maybe this should be something to tell other people before they also waste hours debugging this 😂

I just updated the readme.
By the way, it worked up to about 1700 lines on my machine.


tighten up security before go prod

Describe the task
Get someone to review the caddy config and the allow origins in the backend to ensure its following best practices
Acceptance Criteria

The frontend communication to the backend is very cludgy at the moment. Requires the following header in the index.html

which breaks running the code locally.


Clean path in path predicate and add filter to clean the path before proxying

Fixes #1454

Updated to be opt in let me know what you think

I'm going to close this for now. We can reopen if we change our minds.


No priviledge mode

@andrewschoen I also added the appropriate test, can we include it? Thanks!

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_dedicated_journal

jenkins test  ansible2.2-docker_cluster

jenkins test ansible2.2-docker_cluster

jenkins test ansible2.2-docker_dedicated_journal

I need to push some patch to ceph-docker to make the CI happy.

jenkins test this please

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_dmcrypt_journal_collocation

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_dmcrypt_journal_collocation

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-docker_dmcrypt_journal_collocation

jenkins test ansible2.2-update_dmcrypt

@andrewschoen do you know what's happening with the 3 failing scenario? It looks like an error from vagrant/libvirt...

@andrewschoen testing ansible2.2-docker_dmcrypt_journal_collocation on Centos Atomic won't work btw, the Docker version is not recent enough. On my test, only CentOS had the right version (not even Xenial...). We need at least Docker version 1.12.5.

jenkins test ansible2.2-docker_dmcrypt_journal_collocation

jenkins test ansible2.2-docker_dedicated_journal

jenkins test ansible2.2-xenial_cluster

jenkins test ansible2.2-purge_cluster

On Wed, Feb 22, 2017 at 10:51 AM, Andrew Schoen<EMAIL_ADDRESS>wrote:

import pytest

Right, I was actually doing this ^^
--
Cheers
––––––
Sébastien Han
Principal Software Engineer, Storage Architect
"Always give 100%. Unless you're giving blood."
Mail<EMAIL_ADDRESS>Address: 11 bis, rue Roquépine - 75008 Paris

jenkins test this please

jenkins test ansible2.2-update_dmcrypt

jenkins test ansible2.2-purge_cluster


Create/Update Study Area

Slide
Template: /areas/templates/areas/area_create.html
View: AreaCreateView(CreateView)
URL Pattern: 'create/'
Example on localhost: http://localhost:8001/areas/create/
Example on v2: https://whgazetteer.org/areas/create/

To do:

[ ] Add in layers for rivers and watersheds
[ ] Add satellite basemap style switcher
[ ] Fix Draw tab content visibility
[ ] Remove unused functions? fetchCount / random_rgba / zoomTo / cleanJson
[ ] Test map_init: how to get populated formGeoJSON?

TO DO

[ ] Newly-created study areas don't display