Create a Github service account on GCP for github actions

Have to look into using "Github Secrets" to securely use the GCP service account in our workflows

@rawanmahdi Since you're repo owner I need you to follow the following steps when you get the chance!
Add Service Account Key to GitHub Secrets:

Navigate to your GitHub repository.
Go to the Settings tab of the repository.
In the left sidebar, click on Secrets.
Click on the New repository secret button.
Name the secret, for example: GCP_SA_KEY.
Copy the entire content of the JSON key file (I will send it to you over discord) and paste it into the value field of the secret.
Click Add secret.


Notify when SSL/TLS certificate changes

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
New Notification, New Monitor
🔖 Feature description
Option to send a message in case the current certificate is changed/renewed. Maybe somewhere in the "Аdvanced" settings, under the "Certificate Expiry Notification" or "Ignore TLS/SSL error for HTTPS websites" check box in the monitor settings.

✔ Solution
I have no idea if it's possible and how laborious it would be.
❓ Alternatives
No response
📝 Additional Context
Maybe it would help to more quickly reveal situations like: Mitigating the Hetzner/Linode XMPP.ru MitM interception incident

It would be quite useful! I vote for this.


Did you support providing a model as a decorator of a method ?

A simple question, if I suggest a PR for something like below ... will have a chance to be accepted ? or it complicate the development ?

from assembly import models, view_model, view_filter, view_order, view_model_options

class Blog(Assembly):

    @view_model(models.Article)
    @view_filter("published == true")
    @view_order("published_date desc")
    @view_model_options(per_page=10)
    def index(self):
        pass

this code should send a recordset of 10 articles to the view after gathering and applying the other arguments like current page, order, merging with user query and other filters.

It would be an interesting addition, but I would like to see more use cases for this.
However, going with this, with having the query be done explicitly in the index method, than having many decorators.
class Blog(Assembly):

    def index(self):
        results = models.Article.query()
          .filter(models.Article.published == True)
          .order_by(models.Article.published_date.desc())
          .paginate(per_page=10)

        return results

1- Decorators overload. One method could be having
2- response ? What kind of response would we have.
3- Error handling. If the Error is coming from the decorator itself, it would be harder to debug
4-
    @view_filter("published == true")
    @view_order("published_date desc")

While I don't mind reinventing the wheel, SQLAlchemy already provided such functionalities in a python manner.
But I do like where this is going though.

The purpose of my proposal is to complete the case when a view (template) is automatically rendered based on the name of the method, I wanted that I add a Model to be handled by the jinja expression.
so when I type :
@view_model(Article)
def index(self):
    pass

should render a list of article when we visit /blog.
In your case of :
class Blog(Assembly):

    def index(self):
        results = models.Article.query()
          .filter(models.Article.published == True)
          .order_by(models.Article.published_date.desc())
          .paginate(per_page=10)

        return results

the return should be return render_template('blog/index.html', {'results': results)) because the return for me is a rendered page.
You can close this issue, I will try to find another way if I can propose something more simple !

No problem my friend.  Great ideas btw and Happy New Year!


Authentication flow in IFrame

Hi,
Oidc-client currently supports two approaches for a non-silent login: signinRedirect and signinPopup. The first initiates the authentication flow by setting window.location to the authentication url, signinPopup creates first a new window and sets the url of that window to the authentication url.
Would it also be possible to handle the non-silent authentication flow in an iframe by setting the src of that iframe to the authentication url?  In this case my toplevel html remains unchanged and my users aren't confronted with a popup that appears on their screen?
Thanks in advance for your help.

You mean a visible iframe? Most login providers do frame busting, so they'd not allow the login page to be displayed that way.

Yes, I mean a visible iframe. I'm trying to find a way to make authentication work with oidc-client in browser extensions. A browser extension does not just let me change the url of the toplevel window, and popup's are problematic. In Chrome it works flawlessly, but Firefox and Edge are giving me headaches. I was hoping that using iframes I could get around with both issues. BUt this might not be the case I understand from you :-(

Can the plugin do what it needs to in a new tab?

The plugin itself should really be a popup.
Perhaps the authentication flow in a tab?? Not very nice, but I'm running out of ideas...
I'm contacting Firefox people to fix things, but this may take a while. And then there is Edge....
Problem is that extension popups get closed when they create another window (the authentication popup in my case) and it gets the focus.

Any update?

Unfortunately not.
Doing the authentication in a tab will close the popup, which is not very user friendly.
The problem remains that FireFox and Edge close the popup window when another windows gets the focus. Surprisingly, this also happens for windows that are created by the pluing's popup window. I've filed issues for this for FireFox, see https://bugzilla.mozilla.org/show_bug.cgi?id=1312223 and https://bugzilla.mozilla.org/show_bug.cgi?id=1292701. Although, I see many use cases where this behavior leads to problems, it seems to get little attention and low prio.
So, I'm still stuck on this.

Hi Brock,
I'm considering if it is possible to do authentication in my browser plugin
without redirects. I've a new scheme in mind where I no longer will make
use of external login providers (like google), but use my own
identityserver instance for all authentication.
What is your opinion about using resource owner password grant type in my
browser plugins? I do read about some security concerns and my browser
plugins are typically implemented in Javascript. Is there an alternative or
is there a way to tackle these security concerns?
I hope you can help.
Merijn
On Fri, Mar 31, 2017 at 12:42 AM, Brock Allen<EMAIL_ADDRESS>wrote:

Any update?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityModel/oidc-client-js/issues/248#issuecomment-290565949,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB1vJgjEQaYEsVDLEiitkDl72o4sgOSyks5rrC_tgaJpZM4LrjQQ
.

ROPF is for highly trusted clients that are first party to the token server and user store.

Now that I'm no longer using external login providers like Google, I can (re-) consider the option of using a visible iframe for the authentication flow. In that case I don't open ROPF security issues and the authentication flow will not open any popup windows (such that I finally can support plugins on browsers other than chrome).
The only thing I need to do is to make sure my own IdentityServer doesn't use X-Frame-Options in its authentication pages (it does so by default in the SecurityHeadersAttribute class).
Are there any serious security issues that I will introduce this way (e.g., will this be a more or less secure infra than with ROPF?)?

Well, google doesn't allow its login page in an iframe...

Thanks for your reply.
It turns out that X-Frame-Options is actually deprecated (https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet) in favor of the frame-ancestors directive.
Since I know the sources who access my identity server instance, I can list these in a Content-Security-Policy header, e.g.:
Content-Security-Policy: frame-ancestors
This solves the security issue. What do you think?

CSP is logically the same, but given that v2 is not wide enough yet I don't think we can fully trust/use it.
On a side note, google recently put out a sample/ref JS implementation for native style OIDC clients as browser plugins: https://github.com/openid/AppAuth-JS

I Agree. I've looked at CSPv2 which is interesting, but not widely
supported (yet). Unfortunately.
AppAuth sounds very interesting. Thanks for the link. Does this make
oidc-client obsolete? What do you think?
On Thu, May 25, 2017 at 3:22 PM, Brock Allen<EMAIL_ADDRESS>wrote:

CSP is logically the same, but given that v2 is not wide enough yet I
don't think we can fully trust/use it.
On a side note, google recently put out a sample/ref JS implementation for
native style OIDC clients as browser plugins: https://github.com/openid/
AppAuth-JS
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityModel/oidc-client-js/issues/248#issuecomment-304008682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB1vJknFPoPa6IpzRnlftt8LEkgIJTTSks5r9YCNgaJpZM4LrjQQ
.

AppAuth sounds very interesting. Thanks for the link. Does this make oidc-client obsolete? What do you think?

oidc-client is meant for browser based JS apps. The other repo I linked is for native clients (and a browser plugin falls under the native category, even though it's done in JS). Those have different protocol requirements -- the main diff being that a native app should use hybrid and PKCE, not implicit flow.

All set on this issue -- can we close?

Sorry for being not so responsive. AppAuth wasn't a solution either. I ended up with implementing the resource owner flow in my app myself. This works great. No more popup appearing and by browser plugin now works in Edge and Firefox (in addition to Chrome and Opera).
So, you can close. Thanks!

@merijndejonge By implementing Resource Owner Password flow, how do you handle refreshing the access_token?

@tchelidze I don't refresh the token. My users have to login again.


How to change locale of numerical values?

I understand that HighChart displays numerical values as 1 092 instead of 1,092. Is there a way I can change the locale to display "," instead of space?

Refer to the link   https://github.com/AAChartKit/AAChartKit-Swift/issues/77


Build gardener images using a build app

/kind poc
What this PR does / why we need it:
This is an alternative approach to build gardener images using a dedicated build app
The steps are the same as for the tekton pipeline and it is using kaniko as build tool too, Thus, build performance of both approaches is similar.

clone git repo
build first target to create a build cache
build other targets in parallel using the build cache

The build-app is called ´image-builder` and is supposed to started as a prow job.

it starts other pods for cloning the git repository and building the specified build targets
it creates a PVC to share the source code between the pods (needed for caching)
pods created by image-builder have affinity rules which point to the image-builder pod

this allows shared access parallel running pods to the source code PVC

node selector and tolerations are copied from image-builder pod to child pods
when the build is finished logs from child pods are collected, that prow sidecar can upload them to the GCS bucket
all objects created by image-builder are cleaned up using owner references pointing to image-builder pod

current limitations

no tests yet
using JSON logging in image-builder is not optimal because deck does not parse JSON logs.
kaniko cache is not cleaned yet

Comparison with tekton

no dedicated dashboard showing status of builds
better integration into prow (deck) (showing logs etc.)
changing pipelines might need coding changes. However the requirements for building gardener images including extensions should be fullfilled
no additional external dependency

Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
This is are demo builds for gardener and ci-infra images using the image-builder app

@timebertt ready for review 😄

/remove-kind poc

/assign

@timebertt ready to review again 😄
I created an initial version of image-builder and cla-assistant with this prowjob that autobumper can (hopefully) take over.
I plan to change the image source of the golang-test image in all our test jobs with a separate PR, when this PR is merged.


Integrate Webmentions

See https://github.com/maxboeck/eleventy-webmentions as a starting point.

First version is online. Next step is to improve it.


icloud tracker error when battery isn't updated

Hi,
I'm getting this error a lot:
15-12-21 08:50:03 homeassistant.components.automation.numeric_state: Value returned from template is not a number:
This error is produced by this part of my automation:
- alias: 'batterij iphone Sharon opgeladen'
  trigger:
    - platform: numeric_state
      entity_id: device_tracker.iphonevansharon
      value_template: '{{ state.attributes.battery }}'
      above: 99
  action:
    service: notify.pushbullet
    data:
      message: 'Batterij iPhone Sharon is volgeladen.'

The error happens when iCloud doesn't send my battery information for some reason even if my location is being sent.

Is it because it's returning the number as a string? Or because there is not attribute.battery, because the last updated location was from a device_tracker that doesn't support the battery attribute.

Hmm, it just gives a number, so it should be parseable to a numeric state? In fact, sometimes my rules work and I get a message that my battery level is for example lower than 75%.
I disabled all other trackers for those devices so that can't be it...

Op 21 dec. 2015 om 15:20 heeft Kevin Panaro<EMAIL_ADDRESS>het volgende geschreven:
Is it because it's returning the number as a string? Or because there is not attribute.battery, because the last updated location was from a device_tracker that doesn't support the battery attribute.
—
Reply to this email directly or view it on GitHub.

Is there a battery attribute in developer tools on HA when you're phone is fully charged?

Not yet, but you can access it with templates...

Op 21 dec. 2015 om 17:42 heeft Kevin Panaro<EMAIL_ADDRESS>het volgende geschreven:
Is there a battery attribute in developer tools on HA when you're phone is fully charged?
—
Reply to this email directly or view it on GitHub.

no, I'm talking about on your Home Assistant webpage, under developer tools, set state. and then clicking the entity_id, device_tracker.iphonevansharon. When the phone is fully charged, in state attributes, does "battery": 100, show up?

Sorry, I misunderstood. Yes indeed, it shows up like that, it shows any number and it matches the percentage I see on my device itself.

Op 21 dec. 2015 om 17:56 heeft Kevin Panaro<EMAIL_ADDRESS>het volgende geschreven:
no, I'm talking about on your Home Assistant webpage, under developer tools, set state. and then clicking the entity_id, device_tracker.iphonevansharon. When the phone is fully charged, in state attributes, does "battery": 100, show up?
—
Reply to this email directly or view it on GitHub.

Okay, I'll check this out tonight. Need my things in front of me.

Have you been able to look into this further?

Same here

Is this still a problem?


No way to return syslog_drain_url from Bind

Done in https://github.com/pivotal-cf/brokerapi/commit/14e548f46256355eb70519c78545b3d7fc17a230


Return null when reaching at the end of input in the beginning of JsonValueParser#captureJsonValues

To use JsonValueParser#captureJsonValues from embulk-parser-json, we needed to detect the end of input in the loop of captureJsonValues calls.
This pull request is to realize it by returning null when JsonValueParser#captureJsonValues reaches at the end of input in the beginning of its reading.

Thanks!


ConstructionException: Properly print nested Exception, avoid chaining

Show the nested ConfigException if it is one, and avoid nesting ConfigException
as that would end up printing multiple file/line informations.

Codecov Report

Merging #39 (5d937a0) into v1.x.x (30dac43) will decrease coverage by 0.27%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           v1.x.x      #39      +/-   ##
==========================================
- Coverage   83.05%   82.77%   -0.28%
==========================================
  Files           5        5
  Lines         354      360       +6
==========================================
+ Hits          294      298       +4
- Misses         60       62       +2

Flag
Coverage Δ

unittests
82.77% <71.42%> (-0.28%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

source/configy/Read.d
67.97% <0.00%> (-0.45%)
:arrow_down:

source/configy/Exceptions.d
86.90% <66.66%> (-0.91%)
:arrow_down:

source/configy/Test.d
100.00% <100.00%> (ø)

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


Fix buttons disappear after fiscal tables being re-rendered

This PR closes #613

@hdoupe can we have this PR included in the new update?

Looks good to me. Thanks @GoFroggyRun


While changing in button alignments button functionality not works

Hello guys,
if i change alignment using "position:absolute,top:20,left:50" of our skip and next or get started button it's functionalities not working what to do ??

Did you find a solution to the issue? If so, please let me know.


runvx crashes when running samples

OS: Windows 10 2004
CPU: Ryzen 7 2700X
GPU: NVIDIA RTX 2080
I built MIVisionX 1.8 from sources in Visual Studio 2019 and tried to run samples but runvx crashed. Then I installed MIVisionX 1.6 from msi package that also doesn't work.
Message I get when running:

runvx.exe 1.0.0
OK: using AMD OpenVX 1.0.1
OK: OpenVX using GPU device#0 (GeForce RTX 2080) [OpenCL 1.2 CUDA] [SvmCaps 0 1]
ERROR: clCreateCommandQueueWithProperties(00000184A1ED2160,00000184A1C5E900,0,*) => -30
ERROR: vxVerifyGraph(graph) failed (-1:VX_FAILURE)

@Vitaliy223 I tried the samples from the TOT using
AMD Ryzen™ 7 PRO 3700U Processor (2.30GHz, up to 4.0GHz Max Boost, 4 cores, 4MB Cache)
Integrated AMD Radeon™ RX Vega 10 Graphics

See the results below. We have not tested the OpenCL flow with an NVIDIA GPU
runvx.exe 1.0.0
OK: using AMD OpenVX 1.0.1
OK: enabled graph scheduling in separate threads
OK: OpenVX scheduling 0 nodes on CPU and 12 nodes on GPU
OK: OpenVX using GPU device#0 (gfx902) [OpenCL 2.0 AMD-APP (3004.8)] [SvmCaps 0 0]
csv,HEADER ,STATUS, COUNT,cur-ms,avg-ms,min-ms,clenqueue-ms,clwait-ms,clwrite-ms,clread-ms
OK: capturing 480x360 image(s) into 480x360 RGB image buffer
csv,OVERALL,  PASS,     1,      ,  2.25,  2.25,  0.03,  1.47,  0.67,  0.00 (median 2.249)
> total elapsed time:   0.14 sec
Abort: Press any key to exit...
OK: OpenCL buffer usage: 708992, 2/2

I also tried to compile MIVisionX with OpenCL from Nvidia CUDA Toolkit and get another error:

runvx.exe 1.0.0
OK: using AMD OpenVX 1.0.1
OK: enabled graph scheduling in separate threads
OK: OpenVX scheduling 1 nodes on CPU and 3 nodes on GPU
OK: OpenVX using GPU device#0 (GeForce RTX 2080) [OpenCL 1.2 CUDA] [1]
csv,HEADER ,STATUS, COUNT,cur-ms,avg-ms,min-ms,clenqueue-ms,clwait-ms,clwrite-ms,clread-ms
OK: capturing 768x512 image(s) into 480x360 RGB image buffer with resize
ERROR: clWaitForEvents(1,0000025F5E390950) failed(-5) for group#1
ERROR: agoWaitForNodesCompletion: launched=1 supernode wait failed
ERROR: agoWaitForNodesCompletion failed (-1:(null))
ERROR: vxScheduleGraph() failed (-1:VX_FAILURE)
OK: OpenCL buffer usage: 1754704, 4/4

@We never validated OpenVX with OpenCL from NVidia CUDA Toolkit.  This is a new feature to support.

It doesn't work with any version of opencl. Thanks for your help anyway.

@Vitaliy223 if you do find any resolution for this please create a pull request and we will accept it. I am going to close this bug as the GPU is not a supported or tested hardware.
Thanks!


Center connect box on page

Moves "connect box" on center of the page and so, page not looks too much empty on large screens.

The Box css component is used for every container across the app that has a blue border, so when checking out this branch the rest of the layout after signing in is unusable.
What you really want to change is the connect layout here, specifically the .Connect-boxContainer class.
I have to pass on the vertical centering, though, it doesn't look right to me.  You can certainly push the box down some but I don't like it dead center on the page.  If you check out gmail.com while not logged in that's what I was going for.
This page will be changing anyway since we're not using Electron.  I'd like it to have more info on it like a landing page with game info, include links to github, etc.

@kvnneff, thanks for your detailed response, I've moved properties to the .Connect-boxContainer and now it's seems to look fine on Safari, Opera and Google Chrome. Also I've decreased top margin so we can add links on the bottom.


Add quickchart.io to example 11ty sites

I built a site using 11ty for the first time!  Hoping to share it as an example

Thank you!

Thank you!


OpenModelica 1.9.2 cannot simulate some of examples

In model i.e. LeadAcidBattery, there is a problem with string array References - expected References [1], but had References [2]. Thus refuses to even translate and simulate.
Dymola works fine.

Ahoj Filipe,
uspesne som dokoncil a odladil som ten FluidAdapter, cim by malo byt mozne
prepojenie so standardnymi komponentami v MSL 3.2 baliku Modelica.Fluid.
Jak mas cas, tak skus prosim Ta tie ukazky (Chemical.Examples.FluidAdapter
a vlastne aj vsetky ostane - pretoze som menil i komponentu Solution i
vypocet enthalpie idealneho plynu) otestovat v OpenModelice.
Dik.
Zatim
M.
2015-06-19 12:04 GMT+02:00 Filip Ježek<EMAIL_ADDRESS>
In model i.e. LeadAcidBattery, there is a problem with string array
References - expected References [1], but had References [2]. Thus refuses
to even translate and simulate.
Dymola works fine.
—
Reply to this email directly or view it on GitHub
https://github.com/MarekMatejak/Chemical/issues/6.

Generally, I would propose noting some variables in documentation, which we should look at - there is a bunch of values and conditions.
With OpenModelica 1.9.3, Nightly-build. Branch Master.
Examples.SimpleReaction - (nearly each model has this warning):
assert | warning | The following assertion has been violated at time 0.002000
H2O.solution.m >= 0.0 and H2O.solution.m <= 0.0
assert | warning |
Examples.PowerGeneration Fails - nonlinear system failed at T cca 2.86e-6s
assert | debug | Division by zero T / p
assert | debug | Solving non-linear system 182 failed at time=2.86251740229245e-006.
For more information please use -lv LOG_NLS.
Seems to have something in common also with previous problem:
stdout | warning | A Modelica assert prevents the integrator to continue. For more information use -lv LOG_SOLVER
stdout | warning | can't continue. time = 0.000003
assert | warning | The following assertion has been violated at time 0.000003
H2O_gas.solution.n >= 0.0 and H2O_gas.solution.n <= 0.0
Examples.EnzymeKinetics Fails (ES.x hits zero approx 200s before dymola does) - reduce the simulation time
Examples.LeadAcidBattery Fails in compilation
Chemical.Examples.LeadAcidBattery_03lsy.c: In function 'Chemical_Examples_LeadAcidBattery_initialLinearSystem':
Chemical.Examples.LeadAcidBattery_03lsy.c:857: error: 'Chemical_Examples_LeadAcidBattery_functionJacNLSJac5_column' undeclared (first use in this function)
Chemical.Examples.LeadAcidBattery_03lsy.c:857: error: (Each undeclared identifier is reported only once
Chemical.Examples.LeadAcidBattery_03lsy.c:857: error: for each function it appears in.)
Chemical.Examples.LeadAcidBattery_03lsy.c:858: error: 'Chemical_Examples_LeadAcidBattery_initialAnalyticJacobianNLSJac5' undeclared (first use in this function)
...
Compilation process failed. Exited with code 2.
Red Cell membrane works, but does not make any sense.


DOC-8029: Docs for Enable SQL stats (Sessions, Transactions, and Statements) to be externalized with fine granularity for production workloads

Addresses: DOC-8029
(1) Added Log SQL statistics to Datadog page with image (2) Updated Self-Hosted Deployments sidebar, added Log SQL statistics to Datadog.

@dhartunian please review the "the disabling writing to disk portion."


maliput_full: 0.1.0-2 in 'foxy/distribution.yaml' [bloom]

Increasing version of package(s) in repository maliput_full to 0.1.0-2:

upstream repository: https://github.com/maliput/maliput_infrastructure.git
release repository: https://github.com/ros2-gbp/maliput_infrastructure-release.git
distro file: foxy/distribution.yaml
bloom version: 0.11.1
previous version for package: null

maliput_full
* Adds maliput_full meta package. (#280 <https://github.com/maliput/maliput_infrastructure/issues/280>)
* Contributors: Franco Cipollone

CC: @tfoote :smile:


Tests the output of ctr stats is not empty

Follow #2050, this PR add test to check each column of the output of ListContainerStats is not empty
Signed-off-by: Qi Wang<EMAIL_ADDRESS>

/test integration

/approve

/ok-to-test

/retest

/retest

@QiWang19 you are getting a nil pointer dereference in the Travis CI https://travis-ci.org/kubernetes-sigs/cri-o/jobs/493350626#L4191.

/retest

/retest

/retest

/test kata-containers

/retest

/test kata-containers

/test kata-containers

looks like the error is not a flake
10:45:03 # time="2019-03-18T14:44:42Z" level=error msg="File descriptor 3 (pipe:[198711]) leaked on pvdisplay invocation. Parent PID 28100: /tmp/jenkins/workspace/kata-con
10:45:03 # File descriptor 6 (/dev/mapper/control) leaked on pvdisplay invocation. Parent PID 28100: /tmp/jenkins/workspace/kata-con

Are these errors related? https://github.com/clearlinux/cloud-native-setup/issues/70

@sboeuf any idea on the kata ci errors above?

@umohnani8 looks like a glitch... Let me re-spin the CI.
/test kata-containers

@umohnani8 oh no I realized what happened here... @QiWang19 fixed the ctr stats bats, and obviously ctr stats does not work with Kata Containers (v2 does but here it's only testing v1).
We need to skip the ctr stats tests for now for the Kata CI. I'll take care of this!

Fix submitted here: https://github.com/kata-containers/tests/pull/1313

@sboeuf  good to know this, thank you :)

/cc @chavafg the fix https://github.com/kata-containers/tests/pull/1313 needs to be merged as soon as possible in order to unblock this PR.

https://github.com/kata-containers/tests/pull/1313 merged, please restart kata tests here.

/retest

Thanks @chavafg

/retest

Same error message. Any changes I need to make for the new kata tests?

sorry, the name of the test was wrong on kata side. This should be fixed now.
Please send retest.

/retest

Needs lgtm label

/lgtm


How to give attribute values and Color to node of graph

I want to know how to give attribute values to a node of a graph like Bad_value, Good_value etc other than ID and label of the graph.
Also I want to create a graph where I want to give a different color to nodes based on some attribute values of nodes.
eg. Each node is having attribute values as [x, y] where 0<=x,y<=1 and x+y=1.
I want node color to be:
(i) Red if x>0.5,
(ii) white if x=0.5
(iii) Green if x<0.5

The node is basically just a JavaScript object, so you can give it anything you like as a property:
s.graph.addNode({id: 'nodeid', value: 'good', color: computeTheColor()});

Thanks a lot for the quick help.

No problem @geekyminhaj. I'll close this issue but don't hesitate to re-open it if you have further questions.


Added DGraphQAChain for DGraph databases

Description:
Added DGraphQAChain, a question answering chain for DGraph, a GraphQL powered database, extending LangChain's outreach to DGraph clients, and the DGraph community overall.
This pull request seamlessly integrates DGraph and DGraphQAChain, offering functionality similar to the other graph database integrations. Noteworthy differentiators include the introduction of an "experimental_dql_syntax_injection" flag. When activated, this feature injects text extracted from the DGraph Query Syntax guidelines page, providing valuable context to enhance the performance of less proficient Language Models and increase the likelihood of generating valid queries.
This pull requests also contains some sample queries which can be injected into the DGraphQAChain, with the use_generic_query_examples flag.
issue
https://github.com/langchain-ai/langchain/issues/11533
Dependencies:
pydgraph
Tag maintainer:
@baskaryan
Apart of UofT's CSCD01: Engineering Large Software Course 😄

closing as stale - feel free to reopen against the current state of the repo! I think this may have gotten missed in the UofT review


" Find the Access ID and Access Secret on the Project Overview tab."

Following the steps after creating a Tuya IoT account - it suggests you need to 'Find the access ID and Access Secret' on the project overview tab.
For someone not familiar with the Tuya IoT Platform, it is not clear whether you need to create a Project and how one would go about this to then 'find' the access ID and secret as I do not see the Project Overview tab once logged in.

After creating a Tuya IoT account and fumbling my way around the Tuya IoT portal I was able to generate access ID and access security - and see the 'Project Overview' tab which is nested under Cloud on the left, and then Projects. You need to create a new Project which requires you to 'signup for the $0 trial'. Once you have created a Project you will then see the Project Overview tab. You also need to link the Tuya IoT project to your Tuya app or Smartlife app account which is separate to the Tuya IoT account you have created.
Unfortunately after all of this, I receive 'Invalid Authentication'

@smckellar Can you provide the error code from the log.


Can someone provide 14.16 compiled version?

I tried to build new version myself but it does not work

When i opened skin injector

I get this UI and i get skin injector status not injected


fix: update uuid version from 3.4.0 to 7.0.0

#715

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Feature/friends

General

Added "My Profile" link to navbar (replaces "Hello Username")
Added "Logged in as Username" message to navbar
Changed a bit of styling

Profile Page

Render the ProfileSettings component (previously known as Settings.js in the pages folder)
Display list of all users on the right, with buttons to follow/unfollow (the buttons properly mutate the db)
List of users does not display currently logged in user OR the user whose page you're viewing
Click on a username on the right to view their profile
When logged in and viewing another's profile, a follow/unfollow button appears

Also I added a route to get to the profile page


How can I get soci_sqlite3_4_0.dll?

I downloaded and compiled libsqlite3,renamed it to soci_sqlite3_4_0.dll,and put it in correct directory.
But when I use sql.open("sqlite3","data.db"),soci throws a soci_error:
Failed to resolve dynamic symbol: factory_sqlite3
I think soci_sqlite3_4_0.dll is the cause of the problem
How can I fix it?

my libsqlite3 is download with vcpkg(command: vcpkg install sqlite3:x64-windows)

my soci compiled with cmake

You don't seem to have SQLite backend, probably because CMake didn't find SQLite headers/libraries. If you have them in some location not checked by CMake, you can use its options to point it to them, see the installation instructions.

it works,but there is a new problem: Failed to find shared library for backend sqlite3

is this a bug? i think std::string::size_type const found = env.find(":", searchFrom); needs to be replaced with std::string::size_type const found = env.find(";", searchFrom);

it works,but there is a new problem: Failed to find shared library for backend sqlite3

I agree that this code doesn't work well for Windows paths and should use ; as a separator there (but still : under Unix). However it should only be used if you set SOCI_BACKENDS_PATH environment variable and normally you don't need to do it, you just need to ensure that the DLLs are in the same directory as your executable. I.e. this doesn't explain why it doesn't work for you, there is probably another dependency problem -- you should use "dependency walker" or a similar tool to check that you have all the required DLLs in PATH.

yeah, i used "dependency walker" and check,but it said

i have no ideas to work out that problem...


[Fix #9523] Fix an error for Style/TrailingMethodEndStatement

Fixes #9523.
This PR fixes an error for Style/TrailingMethodEndStatement  when endless method definition signature and body are on different lines.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks!


[feature request] Override default settings via ENVs

I'd love it if the default options could be overridden using environment variables.
In my case, I need to re-start the docker container every time I change my graph, but by restarting it I lose all my settings like:

Nodes Size
Nodes Caption
Number of rows per page
GPT Api key & model

I know that certain configurations can be set for each node type/label, but currently, I just want to override the default settings using something like:

KUZU_EXPLORER_DEFAULT_NODE_SIZE=100
KUZU_EXPLORER_DEFAULT_NODE_CAPTIONSE=TABLE_LABEL
KUZU_EXPLORER_NUMBER_OF_ROWS_PER_PAGE=50

Thanks! :)

For reference, this is the workaround I'm using now :)
settings = document.querySelectorAll('div.modal-body table')[0]
settings.querySelectorAll('tr input[type=number]').forEach((a) => { a.value = 100;  a.dispatchEvent(new Event('input', { bubbles: true, cancelable: true })); });
settings.querySelectorAll('tr select').forEach((a) => { a.selectedIndex = 0; a.dispatchEvent(new Event('change', { bubbles: true, cancelable: true })); });

We have persisted the settings in a local SQLite3 database (other than the GPT token) stored under the same directory as the kuzu database you open if you open it in READ_WRITE mode. Is this not working for you? If not, there might be a bug.

Oh I see. no in my case unfortunately it does not work, not for a bug but because I always recreate the DB from the scratch and the old folder is automatically deleted :(

OK. In this case, I think I'll implement two-levels of setting storage. I would also store the settings in browser localStorage but give a preference to the SQLite database. I'll let you know when this is done.


Animated PNG layers

Hello, is it possible to use animated PNG layers? I’ve tried but i can’t get it to work
thanks.

Nope. The library only works with static PNG images,


REFPLTV-1573: RDKServices: LoadFailed event is not triggerring with t…

…he URL which is failed to load by the browser
Reason for change: LoadFailed is displaying for valid url.
Test Procedure: LoadFailed event should trigger based on URL loaded by browser.
Risks: Low
Signed-off-by: srowth513<EMAIL_ADDRESS>

 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.

Will recheck-in with proper fix.


The link to the pdf file is not found

Hello,
I am working on my thesis about using RGB-D images for object detection, and I found your paper's link, but unfortunately, it is not found. Could you please fix the link? I really appriciate

https://arxiv.org/abs/1407.5736


Add InfluxDB plugin

💡 Summary
I would like to have this docker image with weewx-influxdb plugin installed.
Motivation and context
I use InfluxDB in addition to SQLite, so it's easier to visualize my weather data via Grafana, along with other sensor metrics I store on InfluxDB.
Implementation notes
Since the docker image have already 2 plugins for weewx then I hope that would not be a big deal to include it.
No need to modify weewx.conf, since I can easily read plugin docs and add it myself.
Just add this to dokcerfile with a few more commands t actually install it.
wget -O weewx-influx.zip https://github.com/matthewwall/weewx-influx/archive/master.zip
Acceptance criteria
How do we know when this work is done?

[ ] Adjusted weewx.conf file with InfluxDB setup is active

With the release of v5 I've moved away from pre-installing extensions in the container as the migration of the WeeWX project to pip has made library management easier.


moved date format functions to EventUtils

fixes #153

@iamareebjamal this is a blocker for my next PR, if no changes are needed please merge this :)


Chart redraw

Added functionality, for redrawing a chart if wanted. (Necessary for changing data.)
Just add the reDraw="true" to your chart, and the chart will be redrawn after a period of time.
Example:

just implement OnChanges as i just did in my pull request. that will redraw every time you change the underlying data

@stefanvitz can you share how you implemented this functionality?

I needed the same functionality basically and some more.
Not sure this is the relevant place to write it but here goes:
I started with ngChanges and found out that it doesn't support changes when only adding or removing rows.
I also needed the chart wrapper and an event when the data is updated in order to be able to redraw a special tooltip I'm using.
the following is the complete code, let me know if you want a PR.
No global variables, just static. no timeouts, added chart view, got some of the ideas from angular-google-chart which I used before migrating to angular 4.
import { Directive, ElementRef, Input, Output, OnChanges, OnInit, EventEmitter, DoCheck, IterableDiffers, IterableDiffer } from "@angular/core";

@Directive({
    selector: "[GoogleChart]",
})
export class GoogleChartDirective implements OnChanges, OnInit, DoCheck {

    private element: HTMLElement;
    @Input()
    public chartType: string;
    @Input()
    public chartOptions: Object;
    @Input()
    public chartData: google.visualization.DataObject;
    @Input()
    public chartView: string[];

    @Output()
    public onWrapperReady = new EventEmitter();

    @Output()
    public afterUpdate = new EventEmitter();

    private static loaded: boolean = false;
    private chartWrapper: google.visualization.ChartWrapper;
    private dataObjectRowDiffer: IterableDiffer<google.visualization.DataObjectRow>;

    constructor(element: ElementRef,
        iterableDiffer: IterableDiffers) {
        this.dataObjectRowDiffer = iterableDiffer.find([]).create<google.visualization.DataObjectRow>(null);

        this.element = element.nativeElement;
    }

    public ngOnInit() {
        google.load("visualization", "1.0", { "packages": ["corechart"], callback: () => { this.onLoadCallback(); } });
        // the follwoing doesn't work for me for some reason... :-/
        //google.charts.load("current", { packages: ["corechart"] });
        //google.charts.setOnLoadCallback(() => { this.onLoadCallback(); });
    }

    public ngOnChanges() {
        if (!GoogleChartDirective.loaded) {
            return;
        }
        this.update();
    }

    public ngDoCheck() {
        let dataObjectChanges = this.dataObjectRowDiffer.diff(this.chartData.rows);
        if (dataObjectChanges) {
            this.update();
        }
    }

    private onLoadCallback = () => {
        this.chartWrapper = new google.visualization.ChartWrapper({
            chartType: this.chartType,
            dataTable: this.chartData,
            options: this.chartOptions || {},
            view: this.chartView
        });
        this.chartWrapper.draw(this.element);
        this.chartWrapper.setContainerId(this.element.id);
        GoogleChartDirective.loaded = true;
        this.onWrapperReady.emit(this.chartWrapper);
    }

    private update() {
        if (GoogleChartDirective.loaded)
        {
            this.chartWrapper.setChartType(this.chartType);
            this.chartWrapper.setDataTable(this.chartData as any);
            this.chartWrapper.setView(JSON.stringify(this.chartView));
            this.chartWrapper.setOptions(this.chartOptions);
            this.chartWrapper.draw();
            this.afterUpdate.emit();
        }
    }
}

Does the previous solution posted work in Angular4? Because I cannot make it work

What do you define as previous solution?
The solution I've posted is working for Angular 4.
Directive can be found here:
https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.Web/sources/application/directives/GoogleChartDirective.ts
Relevant code that uses this directive can be found here:
https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.Web/sources/application/components/routeStatisticsChart.html
https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.Web/sources/application/components/RouteStatisticsChartComponent.ts


IAM Errors when running org-wide backup policies

Describe the bug
IAM Policies deployed OR used by the LZA backup plans thrown errors
To Reproduce
Steps to reproduce the behavior.

Deploy latest LZA version 1.4.2
As part of the LZA, i used backup policies from one of the examples.
I see the following in cloud trail logs:

{
    "eventVersion": "1.08",
    "userIdentity": {
        "accountId": "XXXXXXXXXXX",
        "invokedBy": "backup.amazonaws.com"
    },
    "eventTime": "2023-07-02T23:16:51Z",
    "eventSource": "backup.amazonaws.com",
    "eventName": "ProcessBackupPlanSelection",
    "awsRegion": "us-east-2",
    "sourceIPAddress": "backup.amazonaws.com",
    "userAgent": "backup.amazonaws.com",
    "errorCode": "AccessDenied",
    "errorMessage": "The provided role arn:aws:iam::XXXXXXXXXXX:role/Backup-Role cannot be assumed by AWS Backup.",
    "requestParameters": null,
    "responseElements": null,
    "eventID": "4d7f5d50-2643-48a4-b018-7dd302857f3c",
    "readOnly": false,
    "eventType": "AwsServiceEvent",
    "managementEvent": true,
    "recipientAccountId": "XXXXXXXXXXX",
    "serviceEventDetails": {
        "backupPlanArn": "arn:aws:backup:us-east-2:XXXXXXXXXXX:backup-plan:orgs/e4548665-3dfc-36a2-92ab-9a6477109903",
        "backupPlanVersion": "OGRkZDBlNzgtNmMzNi00Mjc1LTlkZTUtMmJhNDA3NmQ2OTUy",
        "backupPlanRuleId": "468030dd-e9e4-3fd8-b9ba-e70c6450ad3d",
        "selectionId": "ca468bb5-34dd-3dab-b421-76cabe179c0a"
    },
    "eventCategory": "Management"
}

Expected behavior
Expect that the role is setup to be assumed by the backup service.
Please complete the following information about the solution:

[ ] Version: [e.g. v1.4.2]

To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "(SO0021) - Video On Demand workflow with AWS Step Functions, MediaConvert, MediaPackage, S3, CloudFront and DynamoDB. Version v5.0.0". If the description does not contain the version information, you can look at the mappings section of the template:
Mappings:
  SourceCode:
    General:
      S3Bucket: "solutions"
      KeyPrefix: "video-on-demand-on-aws/v5.0.0"

[ ] Region: us-east-2
[ ] Was the solution modified from the version published on this repository? NO
[ ] If the answer to the previous question was yes, are the changes available on GitHub?
[ ] Have you checked your service quotas for the sevices this solution uses?
[ ] Were there any errors in the CloudWatch Logs?

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Related configs:
In Global-configs:
...
backup:
  vaults:
    - name: BackupVault
      deploymentTargets:
        organizationalUnits:
          - Root

In organization-config.yaml:
...
backupPolicies:
  - name: BackupPolicy
    description: Organization Backup Policy
    policy: backup-policies/backup-plan.json
    deploymentTargets:
      organizationalUnits:
        - Root

backup-plan.json is actually with no changes from example(other than region)
{
  "plans": {
    "Hourly_Plan": {
      "regions": {
        "@@append": [
          "us-east-2"
        ]
      },
      "rules": {
        "Backup_Rule": {
          "schedule_expression": {
            "@@assign": "cron(0 5/1 ? * * *)"
          },
          "lifecycle": {
            "move_to_cold_storage_after_days": {
              "@@assign": "365"
            },
            "delete_after_days": {
              "@@assign": "1095"
            }
          },
          "target_backup_vault_name": {
            "@@assign": "BackupVault"
          }
        }
      },
      "selections": {
        "tags": {
          "Backup_Assignment": {
            "iam_role_arn": {
              "@@assign": "arn:aws:iam::$account:role/Backup-Role"
            },
            "tag_key": {
              "@@assign": "BackupPlan"
            },
            "tag_value": {
              "@@assign": [
                "Hourly"
              ]
            }
          }
        }
      }
    },
    "Daily_Plan": {
      "regions": {
        "@@append": [
          "us-east-2"
        ]
      },
      "rules": {
        "Backup_Rule": {
          "schedule_expression": {
            "@@assign": "cron(0 5 ? * * *)"
          },
          "lifecycle": {
            "move_to_cold_storage_after_days": {
              "@@assign": "365"
            },
            "delete_after_days": {
              "@@assign": "1095"
            }
          },
          "target_backup_vault_name": {
            "@@assign": "BackupVault"
          }
        }
      },
      "selections": {
        "tags": {
          "Backup_Assignment": {
            "iam_role_arn": {
              "@@assign": "arn:aws:iam::$account:role/Backup-Role"
            },
            "tag_key": {
              "@@assign": "BackupPlan"
            },
            "tag_value": {
              "@@assign": [
                "Daily"
              ]
            }
          }
        }
      }
    },
    "Weekly_Plan": {
      "regions": {
        "@@append": [
          "us-east-2"
        ]
      },
      "rules": {
        "Backup_Rule": {
          "schedule_expression": {
            "@@assign": "cron(0 5 ? * 1 *)"
          },
          "lifecycle": {
            "move_to_cold_storage_after_days": {
              "@@assign": "365"
            },
            "delete_after_days": {
              "@@assign": "1095"
            }
          },
          "target_backup_vault_name": {
            "@@assign": "BackupVault"
          }
        }
      },
      "selections": {
        "tags": {
          "Backup_Assignment": {
            "iam_role_arn": {
              "@@assign": "arn:aws:iam::$account:role/Backup-Role"
            },
            "tag_key": {
              "@@assign": "BackupPlan"
            },
            "tag_value": {
              "@@assign": [
                "Weekly"
              ]
            }
          }
        }
      }
    },
    "Monthly_Plan": {
      "regions": {
        "@@append": [
          "us-east-2"
        ]
      },
      "rules": {
        "Backup_Rule": {
          "schedule_expression": {
            "@@assign": "cron(0 5 1 * ? *)"
          },
          "lifecycle": {
            "move_to_cold_storage_after_days": {
              "@@assign": "365"
            },
            "delete_after_days": {
              "@@assign": "1095"
            }
          },
          "target_backup_vault_name": {
            "@@assign": "BackupVault"
          }
        }
      },
      "selections": {
        "tags": {
          "Backup_Assignment": {
            "iam_role_arn": {
              "@@assign": "arn:aws:iam::$account:role/Backup-Role"
            },
            "tag_key": {
              "@@assign": "BackupPlan"
            },
            "tag_value": {
              "@@assign": [
                "Monthly"
              ]
            }
          }
        }
      }
    }
  }
}```

**Additional context**
Add any other context about the problem here.

While on this subject, may I ask a few questions:

Is there a way to deploy cross-region policy (i.e. as part of backup plan copy backups to another region)
Is there a way to do cross-account backups (i.e. from accounts in Prod ou copy backups to an account in SharedServices OU (or otherwise different aws account)
Is there a way to enable s3 backup from lza configs?

a quick update:
i am adding   AWSBackupServiceRolePolicyForS3[Backup|Restore] to the Backup role -- seemed promising to resolve part of the issue.   (guessing it should have been included in the examples as those policies are not very new anymore).
Will likely take me a few days to test -- will let you know if this resolves.
For completness, this is my backup role now from iam-config.yaml:
 - name: Backup-Role
        assumedBy:
          - type: service
            principal: backup.amazonaws.com
        policies:
          awsManaged:
            - service-role/AWSBackupServiceRolePolicyForBackup
            - service-role/AWSBackupServiceRolePolicyForRestores
            - AWSBackupServiceRolePolicyForS3Backup
            - AWSBackupServiceRolePolicyForS3Restore

actually, the problem remains - I still periodically get the "assume role" error in cloud trail.    (not certain why)
Also -- is there a way to "opt in/out" services for aws backup?
OptIn of s3 is of specific interest.

Hello, Thank you for using the Landing Zone Accelerator on AWS solution. Currently, I'm attempting to recreate the IAM issues that you're having with AWS Backup as well as the service role. While I attempt to recreate this issue, do you happen to have any SCPs that could possibly be blocking this condition? If you're using AWS Control Tower and you've enabled region controls, this may cause issues depending on your configuration.
In terms of your other inquiries, our backup policies and vault constructs utilize a deploymentTargets method that deploys these resources at scale - https://awslabs.github.io/landing-zone-accelerator-on-aws/classes/_aws_accelerator_config.DeploymentTargets.html
There, you specify which accounts/OUs this gets deployed to, and can exclude at an account and region level.
In terms of the cross-account and cross-region activities, this would be handled at the policy level. There are multiple examples where you can append multiple regions in your config and specify the ARN of the vault:
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup_syntax.html


fix(lazy-load): fix breakpoint parsing when a comma is on data-srcset

When a url has a trailing comma, for instance http://some-url.com/cortina1,40x,5,2, the parsingBreakpoint method was splitting the whole string including the URL, returning wrongs urls for the image src.

Current coverage is 100% (diff: 100%)

Merging #157 into master will not change coverage

@@           master   #157   diff @@
====================================
  Files          19     19
  Lines         323    323
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
  Hits          323    323
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update d4a1588...e58b883

:shipit:


Add rbch to Developer tools section

rbch is an R package for analyzing BCH blockchain data. I am the maintainer of the package: https://cran.r-project.org/package=rbch

Looks maintained, merging.


fix: music download

Description of Change

fix /v3/song/:id endpoint that downloads music
fix lint

/test


[10] Deployments Table - Replace breadcrumbs with nested services links

Context: https://github.com/dcos/dcos-ui/pull/412#discussion_r66895216

Reviewer: @kennyt


Custom filters for the "hide dot files" option

What's the Problem?
Hiding dot "." files has been addressed, however there are other cases where a similar problem still exists. My specific problem is that word files create a temporary "~$filename.docx" file. These are usually hidden on windows, but because it's mounted from Linux (over the network) nothing is hidden. I am also sure there are other instances where this feature would be very useful (like hiding the "lost+found" folder on a Linux drive for example).
Solution/Idea
Add more advanced options under the "hide dot files" option to allow custom wildcards or filters. I know there was talk about this under this issue but I think it needs a separate issue for proper discussion. That issue does have some great thoughts and mockups!
The "hide dot files" option could drop down to a list of different filters when the advanced option is picked. The user could then add or remove filters from the list, or simply edit the string and how it should be filtered.
Alternatives
Keep it sweet and simple with just the dot option.
Priorities

Capability
Priority

This proposal will allow users to hide files that begin with a specific string
Must

This proposal will allow users to hide files that end with a specific string
Must

This proposal will allow users to easily add and remove filters from a list
Must

This proposal will allow users to hide files that contain a specific string
Could

This proposal will allow users to specify regex to hide files
Could

Files Version
N/A
Windows Version
N/A
Comments
Here is an example of some pesky files that should be hidden but aren't:

Here is a better mockup:

Insided of custom filter since i dont think there many files to hide adding ~$ to the list should be enough

@Josh-65 Yeah, that's true, although it would be just "~". The second file in my image doesn't have a "$".
Someone in the linked issue also said they worked with files that were "__file" and "_file" that should be hidden:

I work a lot with files which start with _ or __ these files clutter some folders a bit, so for me it would certainly be useful. With Regex I could even hide files with specific endings. The usecases are endless.

So it could filter these symbols:
~
_
.
However, they would have to be togglable individually at the very least. As for hiding things like the lost and found folder, or normally-hidden system files, that wouldn't be possible. It would fix most of the most common use cases though

I have the same request but for the desktop.ini files that are created in folders with custom icons. They drive me crazy.

Asking @yaichenbaum for approval.

Wouldn't .docx hide all Word documents?

@yaichenbaum If you are referring to the mockup I did, that was purely an example, I don't think you'd want to do that. But there are other more useful endings that could be put there. Like ends with .ini, or starts with $~, etc...


Save Shots broken

I tried to save shots this morning and HDF5-DIAG was unable to open the .hdf5 files to save the shots. Here is the error message. PyCMDS did not crash, but it did not save shots.

Are you sure shots were not saved? I think this error is cosmetic---it looks scary, but the file is still written.


Introduce version command and handler

Coverage remained the same at 100.0% when pulling 61cbf2201789915389c3f9acf12f943117aeeb48 on pavolloffay:build-version into 2b73fe9aa45a54c6cbf3e9459a01a31a7ce6bdcc on jaegertracing:master.

also could somebody with mac run it, I am not sure if date command works there too.

wjang-C02QJ305G8WM:jaeger won$ make build-query-linux
CGO_ENABLED=0 GOOS=linux installsuffix=cgo go build -o ./cmd/query/query-linux -ldflags "-X github.com/uber/jaeger/pkg/version.commitSHA=2b73fe9aa45a54c6cbf3e9459a01a31a7ce6bdcc -X github.com/uber/jaeger/pkg/version.latestVersion=v0.9.0 -X github.com/uber/jaeger/pkg/version.date=2017-11-07T14:34:04Z" ./cmd/query/main.go

how will it work on the command line, since we now have a root command and a single sub-command

otherwise lgtm

./cmd/collector/collector-linux help
Jaeger collector receives traces from Jaeger agents and agent and runs them through
				a processing pipeline.

Usage:
  jaeger-collector [flags]
  jaeger-collector [command]

Available Commands:
  version     Print the version

Flags:
      --cassandra.connections-per-host int           The number of Cassandra connections from a single backend instance (default 2)
      --cassandra.keyspace string                    The Cassandra keyspace for Jaeger data (default "jaeger_v1_local")
      --cassandra.max-retry-attempts int             The number of attempts when reading from Cassandra (default 3)
      --cassandra.password string                    Password for password authentication for Cassandra
      --cassandra.port int                           The port for cassandra
      --cassandra.proto-version int                  The Cassandra protocol version (default 4)
      --cassandra.servers string                     The comma-separated list of Cassandra servers (default "<IP_ADDRESS>")
      --cassandra.socket-keep-alive duration         Cassandra's keepalive period to use, enabled if > 0 (default 0s)
      --cassandra.timeout duration                   Timeout used for queries (default 0s)
      --cassandra.username string                    Username for password authentication for Cassandra
      --collector.health-check-http-port int         The http port for the health check service (default 14269)
      --collector.http-port int                      The http port for the collector service (default 14268)
      --collector.num-workers int                    The number of workers pulling items from the queue (default 50)
      --collector.port int                           The tchannel port for the collector service (default 14267)
      --collector.queue-size int                     The queue size of the collector (default 2000)
      --collector.write-cache-ttl duration           The duration to wait before rewriting an existing service or operation name (default 12h0m0s)
      --collector.zipkin.http-port int               The http port for the Zipkin collector service e.g. 9411
      --config-file string                           Configuration file in JSON, TOML, YAML, HCL, or Java properties formats (default none). See spf13/viper for precedence.
      --dependency-storage.data-frequency duration   Frequency of service dependency calculations (default 24h0m0s)
      --es.max-span-age duration                     The maximum lookback for spans in ElasticSearch (default 72h0m0s)
      --es.num-replicas int                          The number of replicas per index in ElasticSearch (default 1)
      --es.num-shards int                            The number of shards per index in ElasticSearch (default 5)
      --es.password string                           The password required by ElasticSearch
      --es.server-urls string                        The comma-separated list of ElasticSearch servers, must be full url i.e. http://localhost:9200 (default "http://<IP_ADDRESS>:9200")
      --es.sniffer                                   The sniffer config for ElasticSearch; client uses sniffing process to find all nodes automatically, disable if not required
      --es.username string                           The username required by ElasticSearch
      --log-level string                             Minimal allowed log level (default "info")
      --span-storage.type string                     The type of span storage backend to use, options are currently [cassandra,elasticsearch,memory] (default "cassandra")

Use "jaeger-collector [command] --help" for more information about a command.

./cmd/collector/collector-linux version -h
Print the version and build information

Usage:
  jaeger-collector version [flags]

./cmd/collector/collector-linux   version  --cassandra.keyspace=foo
Error: unknown flag: --cassandra.keyspace
Usage:
  jaeger-collector version [flags]

{"level":"fatal","ts":1510132598.8778965,"caller":"collector/main.go:146","msg":"unknown flag: --cassandra.keyspace","stacktrace":"main.main\n\t/home/ploffay/projects/golang/src/github.com/uber/jaeger/cmd/collector/main.go:146\nruntime.main\n\t/home/ploffay/bin/go/src/runtime/proc.go:195"}

./cmd/collector/collector-linux   version
{"gitCommit":"61cbf2201789915389c3f9acf12f943117aeeb48","GitVersion":"v0.9.0","BuildDate":"2017-11-08T09:14:05Z"}

Coverage remained the same at 100.0% when pulling 265ddadc0dc6f9a186753d4479d6e8eebdc6b0a2 on pavolloffay:build-version into 2b73fe9aa45a54c6cbf3e9459a01a31a7ce6bdcc on jaegertracing:master.

Coverage remained the same at 100.0% when pulling 843aedfafbb0494878c262d316bda4d18ee46efe on pavolloffay:build-version into 2b73fe9aa45a54c6cbf3e9459a01a31a7ce6bdcc on jaegertracing:master.


Test coverage for nb-instrumentation

Instrumentation has changed significantly and now uses the component tree methods, with some unit tests specifically around instrumentation usage.


Case-sensitive Python imports

Describe the bug

Given these imports, for examples:
from DyldExtractor.dyld.dyld_context import DyldContext
from DyldExtractor.macho.macho_context import MachOContext

Due to the fact the dyld and macho directories are actually Dyld and MachO, imports won't be resolved correctly and make running scripts impossible.
This occurs at least with Python 3.9.5 on macOS.
There are two possible solutions:

Rename the directories Dyld to dyld, MachO to macho and Converter to converter.
Replace every occurrence of dyld,macho and converter in imports with Dyld, MachO and Converter, respectively.

Oh sorry I ran into this issue before. Because git doesn’t keep track of folder case changes, when you pulled the latest version it didn’t rename it. Can you delete DyldExtractor and clone it again? Alternatively you can do 1 from your suggestions.

It's okay. By the way, if you do git mv the changes should reflect.

Thanks for letting me know!


error CS1061: 'DataFrame' does not contain a definition for 'ExploreWithSandDance' and no accessible extension method 'ExploreWithSandDance' accepting a first argument of type 'DataFrame' could be found (are you missing a using directive or an assembly reference?)

Describe the bug
error CS1061: 'DataFrame' does not contain a definition for 'ExploreWithSandDance' and no accessible extension method 'ExploreWithSandDance' accepting a first argument of type 'DataFrame' could be found (are you missing a using directive or an assembly reference?)
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.317502+9c2a225c543085a04516cc4fc490919d5925ba87
Build date: 2022-04-19T21:48:04.4582881Z
https://github.com/dotnet/interactive

OS

[ ] Windows 11
[X] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[X] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[X] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Visual Studio
[ ] Other (please specify)

Screenshots
If applicable, add screenshots to help explain your problem.

Got a hint in this thread that I needed to install another extension:
#r "nuget: SandDance.InteractiveExtension, 1.0.45"
After doing that I am getting a new error message:
 error CS1929: 'DataFrame' does not contain a definition for 'ExploreWithSandDance' and the best extension method overload 'ExploreExtensionsForSandDance.ExploreWithSandDance(TabularDataResource)' requires a receiver of type 'TabularDataResource'

After looking through the commit history on dotnet-interactive-extension-lab I found this: https://github.com/colombod/dotnet-interactive-extension-lab/commit/7b8e09e82dfaa21b37688c4f3a5a292dc5cb47c3
Seems the API was refactored and is no longer compatible with any of the examples found in the docs or the numerous blog posts throughout the internet.
To get this working you now have to do:
data.ToTabularDataResource().ExploreWithSandDance().Display();


more direct setting of hidden params in decimator

simpler way to set values.
aure did this.
updated test.

since this hasnt been merged yet, now it also uses correct values for some distortion parameters

I'll take your word for it, but just so I know, where did you get the new info for the parameter limits and defaults from?

I'll take your word for it, but just so I know, where did you get the new info for the parameter limits and defaults from?

The documentation
Right click on the property name, jump to definition.

I'll take your word for it, but just so I know, where did you get the new info for the parameter limits and defaults from?

The documentation
Right click on the property name, jump to definition.

ruh roh, lets talk about it on slack


Global context is not accessible through cbCtx

If you pass some global object, e.g., a list, as cbCtx into NotificationRecevier, and then append a value to that list - the list in the global context will remain empty.

The project maintainer (Ilya Etingof) unfortunately passed away on August 10th, 2022 and your issue will not be resolved.
There is a fork of the project with a group of maintainers called pysnmp/pysnmp

@atolikin94 you will have to provide some sample code for others to reproduce the issue you reported. Then we might see whether it needs a patch or not.

I found out how to workaround the issue already, so this one can be closed.
RIP Ilya Etingof.


Do you have a plan for applying Reinforced Self-Training (ReST)?

Thansks for sharing a great project!
Do you have any plans to apply the recently published Reinforced Self-Training (ReST)?
Reinforced Self-Training (ReST) for Language Modeling
https://arxiv.org/abs/2308.08998

Yes, openllama2 will support a lot of alignment algorithms.  You can also contribute ReST to openllama2 if you are interested in it~


research(feature): Icon Animations

To implement 'Delightful Details'
Open Source Library Options:

https://github.com/bitshadow/iconate
https://transformicons.com

Great addition!


new project added

Type of change

[X] Added new project

Changes proposed in this pull request

Project name :

Sudoku-Solver

Short description :

Sudoku Solver helps you to solve almost any Sudoku Puzzle by visualizing through the Backtracking Algorithm. We can use this logic to get its solution instantly and move further.
Checklist

[X] The code is Python 3 compatible
[X] I have added relevant comments in my file to make code understandable
[X] I have added my project in a folder which includes all the necessary files

Type of change

[x]  Added new project

Changes proposed in this pull request

Project name : Sudoku-Solver

Short description :  Sudoku Solver helps you to solve almost any Sudoku Puzzle by visualizing through the Backtracking Algorithm. We can use this logic to get its solution instantly and move further.

Checklist

[x]  The code is Python 3 compatible
[x]  I have added relevant comments in my file to make code understandable
[x]  I have added my project in a folder which includes all the necessary files

HI @sumitbaroniya
Add "x" between the "[ ]" brackets  , that will help to get the markdown sorted quickly as what you've done in the project. It basically checks the check box.
The file will look like this. You can also go through this as it will tell you how you can work with the markdown files.

@MonitSharma done. I have checked all the boxes

@MonitSharma done.
Thank you so much for your guidance.

Please merge it

Looks good , thanks for contributing 👍


Add rollback support

Just a stab at creating rollback support.
This implementation is not transactional, so it could have collision issues.

Ok I was able to test this branch locally and I got the following error:
laptop-195:empire russellballestrini$ emp-local rollback -a acme-inc v7
error: ReleasesFind not implemented

$ emp-local rollback -a acme-inc v28 -m "asdf"
Rolled back acme-inc to v28 as v31.


Support using both nullability and type overrides

Implements support for using both nullability and type overrides at the same time, following the syntax proposed by @mehcode in #489.

as "ident" emits  either DbType or Option<DbType> depending on inferred nullability
as "ident!" emits DbType regardless of inferred nullability
as "ident?" emits Option<DbType> regardless of inferred nullability
as "ident: Type" emits either Type or Option<Type> depending on inferred nullability
as "ident!: Type" emits Type regardless of inferred nullability
as "ident?: Type" emits Option<Type> regardless of inferred nullability

At the moment, the wildcard syntax stays the same, and both as "ident!: _" and as "ident?: _" result in a compile time parsing error.

as "ident: _" emits either try_get or try_get::<Option<_>, _> depending on inferred nullability
as "ident!: _" emits try_get regardless of inferred nullability
as "ident?: _" emits try_get::<Option<_>, _> regardless of inferred nullability

Addresses #489

Added support for as "ident!: _" and as "ident?: _" as discussed on Discord.

Skimming through, this looks awesome. I'm not confident in this part of the codebase though so I'll let @abonander merge this.
After #535 this needs a rebase.


⚠ ClamAV has degraded performance

In 06f4921, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 67 ms

Resolved: ClamAV performance has improved in 0d8ca21 after 543 days, 8 hours, 39 minutes.


History Items instead of json diffs

Create separate history items insted of json diffs

Create model for historyItems
Create a couple of basic types (status, text, interviewer)
Show updates on history page


Adding Waveform

Is it possible to generate an audio waveform of streaming station?

This is not supported in this project, you may need to check an external library to add this functionality to your app.


[CT-1336] [Feature] allow setting networkUri and subnetworkUri for Dataproc Serverless batches

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt-bigquery functionality, rather than a Big Idea better suited to a discussion

Describe the feature
In addition to the existing Dataproc Serverless settings, allow passing through the network and subnetworkUri fields in the job configuration: https://cloud.google.com/dataproc-serverless/docs/reference/rest/v1/projects.locations.batches#executionconfig
Describe alternatives you've considered
n/a
Who will this benefit?
dbt users on BigQuery running Python models with Dataproc Serverless. in particular, enterprise users with enterprise requirements
Are you interested in contributing this feature?
maybe; also a good first issue for anyone to pick up
Anything else?
we can provide guidance if needed

IMO we should let users pass in whatever arbitrary execution configs they require, on a per-model basis, without trying to be too opinioned or clever with our validation.
The single config we're hard-coding now is completely arbitrary:
https://github.com/dbt-labs/dbt-bigquery/blob/6ce3a3dcda46528e831d09f426d4cd74f6dd6fa4/dbt/adapters/bigquery/python_submissions.py#L133-L138

@jtcohen6  Has there been any movement or additional design thought on this issue? I'm running up against it and eager to find a workaround or contribute to a fix here.

hi @Aylr, it should be a fairly straightforward fix if it's something you'd like to contribute!
we won't have the capacity to get to it ourselves at least in the next month or so. we would need to decide if we could/should release a 1.3 patch release or wait for 1.4 to release this
if there's enough information in this issue already, feel free to open a PR and tag me -- we can get that reviewed and merged fairly quickly. let us know if you need more info to contribute this


Fix for GDAL Error handling

fix for Fiona exceptions generated from GDAL's Error handling, from #455
This doesn't entirely resolve #455 because fio info will raise and exception an terminate because of a GDALError that is a CE_Warning (err_type = 2).  This merely provides better information for the cause of the Error (or Warning).

Coverage remained the same at 75.832% when pulling 6d57ddc10dac3b0f1011be25cc439e36ca914c35 on micahcochran:patch-1 into 9d7f3f06c8c6b130783d6f33f45bc53984ae23b8 on Toblerity:master.

🙏 @micahcochran

Thanks @sgillies


”Sătmărel” is listed in the drop-down menu

Description:
"Sătmărel" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Sătmărel" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Sătmărel, SATU MARE (SATU MARE)".


Metrics: make granularity of kroxylicious_payload_size_bytes configurable

Is your feature request related to a problem? Please describe.
When we introduce virtual cluster as a metrics dimension proxy * virtualCluster * apiKey * apiVersion could add up to a lot of time series and users may not be interested in the apiVersion.
Describe the solution you'd like
Enable users to control what granularity to record the metric at, so they can specify whether the finest granularity is apiKey or apiVersion.
Options:

consider this an 'application' configuration, so it would not be part of the existing micrometer: configuration block. so we add some configuration like:

metrics:
  granularity: 'APIKEY|APIVERSION'

Control it with micrometer configuration. Micrometer can replace the tags of metrics registered with it, so we could potentially add something like:

    micrometer:
    - type: "RemoveTags"
      config:
        tagNames:
        - "api_keys"

Or go to more detail allowing it to target metrics by name
If we can do something like option 2 it might be nicer, then the application doesn't have to decide what's allowed or conditionally change tags.

Triaged on July 31, 2024: Let's close it and wait until real case reported from users to reopen it.


Add has part relationship between power-to-gas-system and water electrolyser

Description of the issue
According to its definition, a power-to-gas system uses electricity to split water into hydrogen and oxygen by means of electrolysis. Therefore we should a has part relationship.
Ideas of solution
Add 'has part' some 'water electrolyser'.
Workflow checklist

[ ] I discussed the issue with someone else than me before working on a solution
[ ] I already read the latest version of the workflow for this repository
[ ] The goal of this ontology is clear to me

I am aware that

[ ] every entry in the ontology should have a definition
[ ] classes should arise from concepts rather than from words

This small issue can be used as an example in the OEO DEV 7 meeting on 2020-06-25. Please do not implement before.


Added some changes in the TR form for word test

Word exposition on reaction test issues:

[ ]  Implement stimulus size relating it to font size instead of word label ("box") size

[ ]  Fix problem on first stimulus with missing fix point


Make hyperlinks clickable?

As the title says, can hyperlinks in lists be made clickable?
This would be useful when adding links for later review - in this particular case planning a holiday and keeping links for potential accommodation.
Thanks,
Chris

Hi Chris. I agree that this would be a useful feature. After doing a quick investigation into what it would take to get this working, it appears to be more complicated than one might expect, due to the fact that the content of an item is editable, and the current click behavior is to change the content from the "display" value to the "actual" value. My attempts to work around this have thus far failed.
As a workaround, there is a follow link command, which has the effect of clicking on the link. However, it opens the link in the current tab instead of a new tab, which isn't ideal.
For now, I am focusing on finishing the desktop app, and then other high priority tasks required before I can open the source code. So I will likely not get to this feature anytime soon, unfortunately.

Fair enough and thanks for looking into it.  The "follow link" work around is useful.
If detecting a hyperlink is easy could you do something like have a clickable symbol appear?


Temporary Instance IP addresses

Hi all @Python-for-geo-people/fall2016
here you can find temporary computer instance IP addresses:
VOL 1 for VUOKKO:
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
REST WILL BE ADDED SOON!
VOL 2 for JORINA:
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
VOL 3 extra instances if needed
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>

Thanks!
Otherwise ok
<IP_ADDRESS>
<IP_ADDRESS>
were occupied by a geologist

so we need one more

I now added more up there. Try to distribute them in a locigal manner

Or at least in such a manner that two students wouldn't work on the same instance 😄

Sorry for this again guys. CSC updated their IP-tables which is the reason for these malfunctions. I try to fix this now.

@jorina If you need more instances, just say, and I will create more.

ok vuokko occupies <IP_ADDRESS>

we need 7 more, thanks

Hi @jorina, I just added fiver for you. Will still do the rest

thats enough. where do I find them? :/

I updated the first message (above)

ok. can you give us two more? then we are happy (for now)

Kiitos !!!

@jorina I added five more on top.

@jorina @VuokkoH
Could you say to your students that they would memorialize what was their IP address, since I will keep those instances running until the Dashboard system is stable again. Thus, they can continue working with their instance as long as the system is fixed.

Hi all @Python-for-geo-people/fall2016
Now the pb.geo.helsinki.fi site is working again and you can launch instances from there. I will however, continue checking this thing now to make sure that this thing won't come back together with CSC. Thus, there might be some breakages on the website but I will send you a notice of those, if they happen.

Hi all @Python-for-geo-people/fall2016,
as the system is now up and running I will destroy the temporary instances that I launched earlier today.
I HOPE EVERYBODY HAS SAVED THEIR WORK FROM THOSE INSTANCES!!!

Cheers,
Henrikki

Hi all @Python-for-geo-people/fall2016,
argh! It seems that the system went down again. I am so sorry for this. This is getting slightly annoying for me as well.
I will launch those instances mentioned in the first post again, and you can use them. Please use only a single instance and remember the one that you are using! Add some kind of note to the terminal who you are and that the instance is taken when you reserve it. **Still remember to always save your work to GitHub!! ** I will keep those instances available until further notice.

@Python-for-geo-people/fall2016
okey guys, now all those IP addresses that are mentioned at the top of this page are instances that you can use for your work.
I will keep them running until further notice. The problem that we have with the Pouta Dashboard interface seem to be more tricky than it previously looked. I try to find a fix for it ASAP.
NOW IT IS IMPORTANT TO UNDERSTAND THAT THE INSTANCES ARE NOT SECURE! So please, be careful when using them and please do not log into any of your personal accounts from those instances (other than GitHub). If you need to read e.g. email, do it on your local machine. This is due to the fact that, anyone can now access those instances if they just know the IP address.
Few instructions on current instances

Try to use the same instance always (keep track on what IP address you used)
Save your work to GitHub in a similar manner as before!

Remove unnecessary files from the /home/geo folder so that it is clean for next "possible customer"

Again, sorry for this hassle. If you have any questions or comments, please add a comment below.
Best,
Henrikki

Dear all @Python-for-geo-people/fall2016
Now the system is up and running again at https://pb.geo.helsinki.fi.
I would like for you to help me and try again to launch instances from that site in a similar manner as always. If you face any problems with accessing the instance or the web page, I would really REALLY appreciate if you would report those problems under here as a comment. That would help me to keep track if any new problems come up.
Because the system has been unstable, I will still keep those instances running that are listed on top of this page. If any problems comes with the website or launching the instance from there, you can always use these ones listed here. Still, I would like that you first try to launch the computer from our website (it's  also way more secure because no-one else can access your instance) and hence help me out tracking that everything works.
Hopefully this is now solved. Fingers crossed.
Best,
Henrikki

Hi all @Python-for-geo-people/fall2016 ,
now the system has been stable the whole day, and we figured out with CSC what was the reason for the instability. Thus, I will SHUTDOWN those running instances mentioned on top of this page at 21:00. Thus, if you are working there, save your work, and start using our Pouta Blueprints website as usual to access the cloud computers.
Best,
Henrikki

Hi @HTenkanen. Thanks for taking care of this mess. Very good to hear that things may be working as they have been now.

As things are stable, I'll close this issue now.


Reload file?

In many other editors, when I file changes from an external change, the file either auto reloads, or a pop-up window informs the user that the file has changed and ask if it should reload. However in VSCode nothing happens. I often find myself having to close the file and open it again.
Couldn't VSCode also ask if the user wants the file to be reloaded (making it non-dirty) or keep it as is (keeping it dirty)?

@GandalfSaxe we do have a file watcher in place that will just reload the file automatically, unless it is dirty. File > Revert will also take the latest contents from disk. Could it be a file watching issue on your end?

Hmm ok. I'll try to keep an eye open for under which conditions it happens.

Ok

For simplicity I’ll close the issue and then we can reopen if I can provide more clarity.

@bpasero Ok so it happens for me especially when I use an external git client to discard changes sometimes.
Is it by design that it will maintain the contents against any changes made externally? In SublimeText you instead get a pop-up that says something like:

The file has changed, do you want to reload?

The advantage of that is that you almost always want to reload the file with changes made externally so that becomes really easy, whereas in VSCode you have to take an action actively (File -> Revert). Is that a feature? Could it be considered to have a popup asking for revert/reload like ST?


java.io.IOException: Went over by 7 bytes

Hello!
Can you please suggest me what can i do with "Went over 7 bytes" exception? One of my test devices always trows it at CheapAAC.parseMp4(CheapAAC.java:285). It's always "7" bytes for every m4a file that i try to use. How can i solve it?
Thanks.
Serge.

Hello again!
Here is more information about this issue.
I'm working with m4a files that was encoded by android MediaCodec (code below). On all of my test devices encoding works fine: resutl codec name is correct (OMX.google.aac.decoder), file is playable and can be parsed to waveform by ringdroid.
But issue comes to the one of devices when I try to parse file with your waveform-android libriary. Device is: Sony Xperia Tablet Z3 Compact under Android 5.1.1 - file that was encoded there is playable, can be parsed with ringdroid, but with waveform-android it's always throw "java.io.IOException: Went over by 7 bytes" and it's always at third step of parse iterations:
 04-03 15:08:26.853 24412-24628/com.semantive.waveformandroid.waveform.soundfile.CheapAAC: skipLen: 16, atomLen: 24, mOffset: 8, initialOffset: 0, header: [0, 0, 0, 24, 102, 116, 121, 112] 04-03 15:08:26.853 24412-24628/com.semantive.waveformandroid.waveform.soundfile.CheapAAC: skipLen: 6136, atomLen: 6144, mOffset: 32, initialOffset: 24, header: [0, 0, 24, 0, 102, 114, 101, 101] 04-03 15:08:26.854 24412-24628/com.semantive.waveformandroid.waveform.soundfile.CheapAAC: skipLen: -7, atomLen: 1, mOffset: 6176, initialOffset: 6168, header: [0, 0, 0, 1, 109, 100, 97, 116] 04-03 15:08:26.854 24412-24628/ W/System.err: java.io.IOException: Went over by 7 bytes 04-03 15:08:26.854 24412-24628/W/System.err:     at com.semantive.waveformandroid.waveform.soundfile.CheapAAC.parseMp4(CheapAAC.java:288) 04-03 15:08:26.854 24412-24628/ W/System.err:     at com.semantive.waveformandroid.waveform.soundfile.CheapAAC.ReadFile(CheapAAC.java:200) 04-03 15:08:26.855 24412-24628/ W/System.err:     at com.semantive.waveformandroid.waveform.soundfile.CheapSoundFile.create(CheapSoundFile.java:100)
If I put to Sony any m4a file, that was encoded on other device parse works fine. Here is encoding code that I used. May be I should do something in different way:
`
private static void convertWavToM4A(File wavFile, File dstM4AFile, MediaFormat format) {
    final String COMPRESSED_AUDIO_FILE_MIME_TYPE = "audio/mp4a-latm";

    final int COMPRESSED_AUDIO_FILE_BIT_RATE = 256000;

    final int SAMPLING_RATE = format == null ? 44100 : format.getInteger(MediaFormat.KEY_SAMPLE_RATE);

    final int BUFFER_SIZE = SAMPLING_RATE;

    final int CODEC_TIMEOUT_IN_MS = 5000;

    final int CHANNELS_COUNT = format == null ? 1 : format.getInteger(MediaFormat.KEY_CHANNEL_COUNT);

    try {
        FileInputStream fis = new FileInputStream(wavFile);
        if (dstM4AFile.exists()) dstM4AFile.delete();

        MediaMuxer mux = new MediaMuxer(dstM4AFile.getAbsolutePath(), MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4);

        MediaFormat outputFormat = MediaFormat.createAudioFormat(COMPRESSED_AUDIO_FILE_MIME_TYPE, SAMPLING_RATE, CHANNELS_COUNT);
        outputFormat.setInteger(MediaFormat.KEY_AAC_PROFILE, MediaCodecInfo.CodecProfileLevel.AACObjectLC);
        outputFormat.setInteger(MediaFormat.KEY_BIT_RATE, COMPRESSED_AUDIO_FILE_BIT_RATE);
        outputFormat.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, BUFFER_SIZE);

        MediaCodec codec = MediaCodec.createEncoderByType(COMPRESSED_AUDIO_FILE_MIME_TYPE);
        codec.configure(outputFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
        codec.start();

        ByteBuffer[] codecInputBuffers = codec.getInputBuffers(); // Note: Array of buffers
        ByteBuffer[] codecOutputBuffers = codec.getOutputBuffers();
        MediaCodec.BufferInfo outBuffInfo = new MediaCodec.BufferInfo();

        byte[] tempBuffer = new byte[BUFFER_SIZE];
        boolean hasMoreData = true;
        double presentationTimeUs = 0;
        int audioTrackIdx = 0;
        int totalBytesRead = 0;

        do {
            int inputBufIndex = 0;
            while (inputBufIndex != -1 && hasMoreData) {
                inputBufIndex = codec.dequeueInputBuffer(CODEC_TIMEOUT_IN_MS);

                if (inputBufIndex >= 0) {
                    ByteBuffer dstBuf = codecInputBuffers[inputBufIndex];
                    dstBuf.clear();

                    int bytesRead = fis.read(tempBuffer, 0, dstBuf.limit());

                    if (bytesRead == -1) { // -1 implies EOS
                        hasMoreData = false;
                        codec.queueInputBuffer(inputBufIndex, 0, 0, (long) presentationTimeUs, MediaCodec.BUFFER_FLAG_END_OF_STREAM);
                    } else {
                        totalBytesRead += bytesRead;
                        dstBuf.put(tempBuffer, 0, bytesRead);
                        codec.queueInputBuffer(inputBufIndex, 0, bytesRead, (long) presentationTimeUs, 0);
                        presentationTimeUs = 1000000l * (totalBytesRead / (SAMPLING_RATE/10000)) / SAMPLING_RATE;
                    }
                }
            }
            int outputBufIndex = 0;
            while (outputBufIndex != MediaCodec.INFO_TRY_AGAIN_LATER) {
                outputBufIndex = codec.dequeueOutputBuffer(outBuffInfo, CODEC_TIMEOUT_IN_MS);
                if (outputBufIndex >= 0) {
                    ByteBuffer encodedData = codecOutputBuffers[outputBufIndex];
                    encodedData.position(outBuffInfo.offset);
                    encodedData.limit(outBuffInfo.offset + outBuffInfo.size);
                    if ((outBuffInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0 && outBuffInfo.size != 0) {
                        codec.releaseOutputBuffer(outputBufIndex, false);
                    } else {
                        mux.writeSampleData(audioTrackIdx, codecOutputBuffers[outputBufIndex], outBuffInfo);
                        codec.releaseOutputBuffer(outputBufIndex, false);
                    }
                } else if (outputBufIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {
                    outputFormat = codec.getOutputFormat();

                    audioTrackIdx = mux.addTrack(outputFormat);
                    mux.start();
                } else if (outputBufIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {

                } else if (outputBufIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {
                    // NO OP
                } else {

                }
            }

        } while (outBuffInfo.flags != MediaCodec.BUFFER_FLAG_END_OF_STREAM);
        codec.stop();
        codec.release();
        fis.close();
        mux.stop();
        mux.release();

    } catch (FileNotFoundException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }
}`

I hope it's will be helpful to resolve this issue.
Thanks.
Serge.

Hi,
Waveform Android is based on the Ringdroid app, but it doesn't  use it's newest audio API (last year Ringdroid changed it completely). I can update the library to use the same audio API as the Ringdroid - this will probably solve the issue. Just to be sure, are your using the newest version of the Ringdroid (2.7.3)?

Thanks a lot for your reply!
Yes, I'am using Ringdroid 2.7.3 - everything works with this version (but it's extremely slow for me). If API update can solve the issue it's will be great if you'll do it!
Here is attached example of audio file that can cause the issue. May be it's will be useful for testing.
test_audio.m4a.zip

Hi,
I updated the library - it now works with the file you posted. The code is on a new branch new-audio-api and can be added to your gradle dependencies with compile 'com.github.Semantive:waveform-android:v1.2a'. This solution is far from being perfect - audio decoding makes it slow and memory consuming for larger files.

Hello!
Yes, new api is too slow. The reason is that source file is decoded to wav format before parsing instead of using CheapMP3 or CheapAAC as at previous api version. May be it's possible to fix CheapAAC class, but I don't really understand how it works currently. Or may be it's time for me to find another solution.
Thank you, anyway!


Error when trying deploy using dockerfile

I'm trying deploy using docker file
# Use stable Node.js LTS version
FROM node:22-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    python3 \
    git \
    ca-certificates \
    sqlite3 \
    libsqlite3-dev \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Install pnpm
RUN npm install -g<EMAIL_ADDRESS>
# Set working directory
WORKDIR /app

# Copy package files
COPY package.json pnpm-lock.yaml ./

# Install dependencies
RUN pnpm install --frozen-lockfile

# Rebuild native modules
RUN pnpm rebuild better-sqlite3

# Copy application files
COPY . .

# Expose application port
EXPOSE 3000

# Start the application with debugging
CMD ["pnpm" , "start"]

and i get this error
⛔ ERRORS
   Unhandled error in startAgents:
   {"code":"ERR_USE_AFTER_CLOSE"}

Shall I work on this issue?

hey is the issue resolved? are you able to run dockerfile?

already solved thx


cant working on ubuntu16 when i finshed install

Traceback (most recent call last):
File "/usr/local/bin/livestreamer", line 9, in
load_entry_point('livestreamer==1.12.2', 'console_scripts', 'livestreamer')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/livestreamer_cli/main.py", line 3, in
import requests
File "/usr/local/lib/python2.7/dist-packages/requests/init.py", line 53, in
from .packages.urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 73, in
ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

Your python-urllib3 is too old (you need 1.9.1-3+).


casbin.Enforcer('model.conf', adapter, True) Error，miss the last one argument

Traceback (most recent call last):
  File "/Users/wn/ide/PycharmProjects/fastapi_test/casbin_test.py", line 9, in <module>
    e = casbin.Enforcer('model.conf', adapter, True)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given

@Zxilly

working On this

@wssnail As for now, casbin.Enforcer works like
def __init__(self,
             model: Any = None,
             adapter: Any = None) -> Any

This is a doc error. I will make a PR to fix this.


[FLINK-10002] [Webfrontend] WebUI shows jm/tm logs more friendly.

What is the purpose of the change
This commit makes WebUI show jm/tm logs more friendly. WebUI can show historical logs by inputing a filename and a offset range to read of the file, shown as follows.

This pr adds 6 new REST APIs:

For JobManager
/jobmanager/log?filename=xxx&start=0&size=10240    Return logs of the current log  file or a given file in the range.
/jobmanager/loglist    Return the list of historical log filename.
/jobmanager/stdout?start=0&size=10240    Return the stdout data in the range

For TaskManager
/taskmanagers/:taskmanagerid/log?filename=xxx&start=0&size=10240    Return logs of the current log file or a given file in the range.
/taskmanagers/:taskmanagerid/loglist    Return the list of historical log filename.
/taskmanagers/:taskmanagerid/stdout?start=0&size=10240    Return the stdout data in the range

Brief change log
This pr mainly add 6 APIs in new (WebMonitorEndpoint) REST API. Besides, some related frontend codes are changed, such as

JobManagerLogFileHandler is used to handle the request to fetch stdout and log file of job manager. The related headers are JobManagerLogFileHeaders and JobManagerStdoutFileHeaders.
JobManagerLogListHandler is used to handle the request to fetch log list of job manager. The related header is JobManagerLogListHeaders, and return a LogListInfo value.
TaskManagerLogHandler is used to handle the request to fetch stdout and log file of a given task manager. The related headers are TaskManagerLogFileHeaders and TaskManagerStdoutFileHeaders.
TaskManagerLogListHandler is used to handle the request to fetch log list of a given task manager. The related header is TaskManagerLogListHeaders.
FileOffsetRange is designed to identify a range of log files, which includes a start offset and an end offset. LogFilenameQueryParameter, LogSizeQueryParameter and LogStartOffsetQueryParameter are the parameters of requests.

Verifying this change

JobManagerLogFileHandlerTest.java is used to test the request “/jobmanager/log”
JobManagerLogListHandlerTest.java is used to test the request "/jobmanager/loglist".
TaskManagerLogListHandler.java is used to test "/taskmanagers/:taskmanagerid/loglist"
Method testRequestUploadFile() in TaskExecutor.java is used to test whether task manager can upload the taskmanager log within a given offset range correctly.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented? JavaDocs

@yanghua @tillrohrmann Could you please review this pr?

@buptljy Could you please take a look at the pr.

Thanks for your contribution @zhangxinyu1. From a high level perspective, this adds a good feature. At the moment I'm quite busy and it will take some time for me to review your PR. Please bear with us until then.

@tillrohrmann Thanks, I'll resolve conflicts if it has until you review this PR.

@yanghua Thanks. Conflits are resovled.

@ifndef-SleePy Thank you so much for your suggestions. I'll modify the code this week.

@ifndef-SleePy Thanks for your suggestions. I have modified the code. I removed the legacy part and refactor the implementation.
About the test, I don't find any tests for the REST API of logs. Should I add tests for JobManagerLogFileHandler, JobManagerLogListHandler, TaskManagerLogListHandler  and TaskManagerLogFileHandler ?

About the test, I don't find any tests for the REST API of logs. Should I add tests for JobManagerLogFileHandler, JobManagerLogListHandler, TaskManagerLogListHandler  and TaskManagerLogFileHandler ?

Yes, you should add some unit tests to make sure the basic logic is right. Some old codes may not be covered well by testing. However the newer codes are covered quite well. We should keep this good habit.

I think we missed an important thing. We should offer file size to user. If not, the parameters 'start', 'end' or 'size' would be useless since the user may have no idea how to set these parameters.

Maybe we can set the start=0 and size=fileSize as the default value when user choose a log file.

Outdated and likely subsumed by FLINK-13987.


fix: remove markdown formating from summary

Also instructs AI not to repeat the title.
Closes #288

Can we also reset cache?

I'll merge it for now