iPhone scrolling is painful

Recently, docs.rs gained a fixed header bar. To accommodate this, all other content on the page was moved into an overflow: auto div of some kind. This is a problem. For context, there are two kinds of scrolling used on websites in Safari on an iPhone:

Inertial scrolling, keeps moving until simulated friction stops it after you lift your finger. Covers a lot of ground very quickly but allows precise scrolling at low speed. Also has some priority over child type 2 elements for determining which content to scroll.
Locked panning, 1:1 with touch movement, stops dead when finger lifts.

Type 1 is used for entire pages where the document is larger than the viewport. Type 2 is used for overflowing content, e.g. wide code blocks clipped to viewport width, scrolling horizontally.
It used to be that docs.rs pages were bigger than the viewport, and scrolled with type 1. Now that the entire page is in an overflow: auto div, Type 2 is used on everything. This means:

Scrolling is slow, because no inertia. Docs pages are very long!
You can get stuck in code blocks that are viewport height or larger. Because they take priority on touch events for scroll, you actually cannot scroll the page while they take over the screen. All touches are interpreted as locked horizontal pans, no matter how vertically you move your finger. Fortunately there is a small white margin on the left that allows (type 2) page scrolling, so you can get out, but it’s pretty bad.
You can’t use the “tap status bar to scroll to top” feature any more.

Together, this is very painful UI. I use docs.rs from my phone every day. Please use position: fixed for fixed position navigation bars, or don’t do them at all.

Hmm, maybe we should have gone with https://github.com/rust-lang/docs.rs/pull/510 after all ... cc @GuillaumeGomez @Koxiaet

FWIW the standard practice for the link-offset-with-fixed-header issue in that thread is to have an explicit, invisible, empty anchor tag with a name (maybe an id attribute instead, I’d have to check), absolutely positioned, relative to the original heading, with top: -$header_height. Navigation then scrolls to the invisible anchor, leaving it under the bar and the actual header visible. No JS necessary. Just an extra anchor for each navigable link.

For an example, open the devtools on this header: https://aglc4.cormacrelf.net/csl#3.1-Generally

@cormacrelf would you be willing to make a PR implementing those CSS changes? It sounds like you know what you're talking about :laughing:

@jyn514 It would also dig into generating the HTML — it might be a bit tricky if you’re just slapping rustdoc output in a template. would appreciate a few pointers on how you’d like links to be transformed, if there’s another option than adding it to rustdoc itself or reparsing the whole thing. The CSS is pretty easy after that.

(And if that turns out to be a significant blocker, I would request reverting the top bar change that introduced this issue as an interim measure, as usability has been impacted so much.)

It would also dig into generating the HTML

That's unfortunate, we are indeed just slapping rustdoc output into a template. Maybe you could coordinate with @GuillaumeGomez to change how rustdoc outputs HTML?

Hmm but that doesn't fix old docs. This is definitely a hard problem, I can make a PR reverting the other changes in the meantime.

Reverting the changes would bring back the anchor issue. :-/

I think they mean reverting all they way back to before the top bar was fixed.

Oh. That'd fix all issues then. :)

Sometimes a bit of vanilla JS on document load to insert anchors is just the right kind of solution. I’ll have a look at doing it that way, without changing rustdoc / having to queue a rebuild of every crate.

Scrolling is working on my phone (iPhone 8+)
Is it every iPhone, or just some iPhones?
Is it every crate or just some crates?
What happens on an android phone?

I ran it locally and -webkit-overflow-scrolling on enables momentum scrolling and makes it a lot less painful on iPhone.
div.container-rustdoc {
    text-align: left;
+    -webkit-overflow-scrolling: touch;
}

You'd still lose out on being able to go back up quickly by tapping the top bar, but I think it alleviates a lot without having to rewrite a large part of the layout right now.
I could submit a pull request for that if that would suffice, but perhaps I'm missing something @cormacrelf?

This also appears to make scrolling very laggy in macOS Safari (Version 13.0.5 (14608.5.12)) and Safari Technology Preview (Release 100 (Safari 13.2, WebKit 146<IP_ADDRESS>) and whenever switching back to the tab there's a flash of a blue border around the rustdoc_body_wrapper, which disappears after a frame moving the entire content a couple of pixels.
I tested removing both fixed attributes and the wrapper's bottom and overflow-y, and that fixed both the scroll laggyness and the flash of a border.

@cormacrelf  we reverted the change that happened around the time you opened the issue. Can you confirm whether the problem is fixed?

@cormacrelf  @Nemo157 @imjasonmiller  Could one of you please confirm whether https://github.com/rust-lang/docs.rs/pull/610 helped with this issue?

Sorry @jyn514, I didn't see your first reply! It doesn't seem to have helped me with this issue, but perhaps I'm doing something wrong? After visiting the documentation for serde, it still seems the three points raised by @cormacrelf apply to me.

Scrolling is slow, because no inertia.
You can get stuck in code blocks that are viewport height or larger.
You can’t use the “tap status bar to scroll to top” feature

Ok, this bug must have existed for a while then since the CSS isn't updated all that often. I guess that means we can merge #611 (with apologies to @Zexbe for reverting his change).
If anyone wants to work on fixing this I'm happy to mentor but without an iPhone or Safari I can't really test any changes.

I'm on the linked page with a friend's iPhone and I can't replicate any of the mentioned issues. This is an iPhone 8 with iOS 13. Can you post your version of iOS?

@jyn514 it's an older iPhone 5S, so that's iOS 12 still.

Having this issue on an iPhone 6 also, so iOS 12.

Should be fixed in https://github.com/rust-lang/docs.rs/pull/873.


Sept 2023 updates

PR Overview
This PR will address the following Issue/Feature:
https://github.com/fivetran/dbt_klaviyo/issues/28
This PR will result in the following new package version:

v0.7.0
Removing deprecated and adding new fields
Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
Following these release notes for changes made to the connector.
PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:

[x] dbt compile
[x] dbt run –full-refresh
[x] dbt run
[x] dbt test
[ ] dbt run –vars (if applicable)

Before marking this PR as "ready for review" the following have been applied:

[x] The appropriate issue has been linked and tagged
[x] You are assigned to the corresponding issue and this PR
[x] BuildKite integration tests are passing

Detailed Validation
Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":

[x] You have validated these changes and assure this PR will address the respective Issue/Feature.
[ ] You are reasonably confident these changes will not impact any other components of this package or any dependent packages.
[ ] You have provided details below around the validation steps performed to gain confidence in these changes.

dbt docs show updated ymls
downstream models succeed

Standard Updates
Please acknowledge that your PR contains the following standard updates:

Package versioning has been appropriately indexed in the following locations:

[x] indexed within dbt_project.yml
[x] indexed within integration_tests/dbt_project.yml

[x] CHANGELOG has individual entries for each respective change in this PR

[ ] README updates have been applied (if applicable)

[ ] DECISIONLOG updates have been updated (if applicable)
[ ] Appropriate yml documentation has been added (if applicable)

dbt Docs
Please acknowledge that after the above were all completed the below were applied to your branch:

[ ] docs were regenerated (unless this PR does not include any code or yml updates)

If you had to summarize this PR in an emoji, which would it be?

:dancer:

Will wait on regen docs til after PR approved

Thanks @fivetran-jamie! Updated everything and regen docs. I also realized that email in the persons staging may not necessarily exist, based off testing off the internal schema, so I removed the not null test.


Document Pod Templating best practices.

Explain that the PodTemplate object exists but you can't really use it.  And we aren't going to add support for it, probably ever (https://github.com/kubernetes/kubernetes/issues/170).
Give an example of a client side Pod template, and using that Pod template in multiple RSes/Deployments (similar to http://kubernetes.io/docs/user-guide/jobs/expansions/).
Example of user question about this:
https://groups.google.com/forum/#!msg/kubernetes-dev/e22GGoM79CA/qH_L_bIPBwAJ

/remove-lifecycle rotten


Kill release6.5 backupServer and webUI. restart the two process.There are some bugs.

Bug
in windows 10  jre 8
I start skywalking in bin/startup.sh。 all the config is default 。
I run agent in two app services
first time ,I can  got  some traceing in the web ui 。
but ,I close the skywalking webUi,and collector .
when I restart again.
I got nothing in the web ui. I request my two app .There are not got any tracing.

Reconnect is working at my side and checked in every PR commit. You may need to invest more.

2019-11-26 15:38:28,380 - org.apache.skywalking.oap.server.core.register.service.ServiceInstanceInventoryRegister - 108 [grpcServerPool-1-thread-10] WARN  [] - Service instance 2 heartbeat, but not found in storage.
2019-11-26 15:38:28,380 - org.apache.skywalking.oap.server.receiver.register.provider.handler.v6.grpc.ServiceInstancePingServiceHandler - 68 [grpcServerPool-1-thread-10] WARN  [] - Can't find service by service instance id from cache, service instance id is: 2, will send a reset command to agent side
2019-11-26 15:38:28,384 - org.apache.skywalking.oap.server.receiver.jvm.provider.handler.JVMSourceDispatcher - 51 [grpcServerPool-1-thread-9] WARN  [] - Can't find service by service instance id from cache, service instance id is: 2
the error info is above

This is not reboot, this is you have deleted the storage data or using h2 for demo. Then you need 10 mins for agent hot rebooting. We have said very clear in the document, please read them.

DEBUG 2019-11-26 16:44:08:160 DataCarrier.DEFAULT.Consumser.0.Thread TraceSegmentServiceClient : 5 trace segments have been sent to collector.
DEBUG 2019-11-26 16:44:09:488 SkywalkingAgent-5-ServiceAndEndpointRegisterClient-0 ServiceAndEndpointRegisterClient : ServiceAndEndpointRegisterClient running, status:CONNECTED.
DEBUG 2019-11-26 16:44:12:487 SkywalkingAgent-5-ServiceAndEndpointRegisterClient-0 ServiceAndEndpointRegisterClient : ServiceAndEndpointRegisterClient running, status:CONNECTED.
my agent log is above .
It seems  trace have been sent to collector.
Bug In the Ui I got nothing.
and where is the doc about agent hot reboot ? I have read  https://github.com/apache/skywalking/blob/master/docs/en/setup/service-agent/java-agent/README.md
Thanks.

ou have deleted the storage data or using h2 for demo

my config is default .so  It is use h2

The hot reboot is from the backend command system. The document is there. Agent can't do hot reboot by itself.

I have read https://skyapm.github.io/document-cn-translation-of-skywalking/zh/master/setup/backend/backend-init-mode.html
I got  the log :
use oapServiceInit.bat
OAP starts up in init mode successfully, exit now...
but restart  oapService.bat
I got no trace in ui .
Now  I change the storage h2 to ES . I use oapServiceInit fist  and waiting for init end .
and use  oapService.bat   restart
see the log the table have been creating .
But It still have not any trace in ui.  I got GET /_cat/indices?v In es  I can see the index is exsit。
But still I got no trace...
I got the agent log
DEBUG 2019-11-26 18:01:38:013 DataCarrier.DEFAULT.Consumser.0.Thread TraceSegmentServiceClient : 2 trace segments have been sent to collector.
DEBUG 2019-11-26 18:01:38:013 DataCarrier.DEFAULT.Consumser.0.Thread TraceSegmentServiceClient : 10 trace segments have been abandoned, cause by no available channel.

Read English doc and 6.5 doc. You are reading the wrong one.

Read English doc and 6.5 doc. You are reading the wrong one.

I fixed it !
Look this pages...I click 清空。。。 everyProblem disappear

This feature exists several months ago.


[consul | upsert agent acl]: Failed connect to localhost:8500; Connection refused

failed: [default] => {"changed": true, "cmd": ["/usr/local/bin/consul-acl-bootstrap.sh", "6d765095-7cca-46f3-a47e-f0f789911bf6", "0e34c948-5d67-4227-b0f5-c0bb6aef9b1e"], "delta": "0:00:00.161851", "end": "2015-05-20 10:52:33.247242", "rc": 7, "start": "2015-05-20 10:52:33.085391", "warnings": []}
stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to localhost:8500; Connection refused
FATAL: all hosts have already failed -- aborting

feature/consul-0.5.1...probably not supposed to work


Step 9 Pass in User not Event

Step 9 index.js
exports.addWelcomeMessages = functions.auth.user().onCreate((event) => {   const user = event.data;
Should be replace with:
exports.addWelcomeMessages = functions.auth.user().onCreate((user) => {
Reference https://firebase.google.com/docs/auth/extend-with-functions#trigger_a_function_on_user_creation

@polen-chheang-dmi could you tell me where you see this? I don't see any issues with https://codelabs.developers.google.com/codelabs/firebase-cloud-functions/#7

Hi @nicolasgarnier, Yes, it was updated. I am not sure when the update happen but while i am practicing the codelab, event is passed to onCreate instead of User.
I close this issue, Thanks for response. Cheer!


[WIP][Windows]Antrea Proxy NodePort Service Support

Problem
We has already implemented ClusterIP Service support (Pod) with antrea-proxy, but Kube-Proxy is still needed for NodePort services.
On Windows there're no native kit like Netfilter + Iptables which can help to filter/redirect/nat packets in kernel. Use 3rd tools will need to install additional network drivers.
As we know, kube-proxy on Windows currently runs in user space which is inefficient and will cause high latency. We intent to implement the NodePort service in Antrea by leveraging OVS to handle the kind of traffic in kernel space.

Design
antrea-proxy will handle the NodePort service after removing kube-proxy. And ClusterIP Endpoint selection flows in OVS are reused for NodePort service.
3 main cases of NodePort service according to the traffic source:

From external host.
From local host.
From local Pod.

Flow tables needed:

UplinkTable: Redirect to NodePortFilterTables to check if the packets are sent to NodePort service.
(New) NodePortFilterTable1: Filter NodePort IPs
(New) NodePortFilterTable2: Filter NodePort Ports
(New) DnatTables (& PostDNAT): Set dst IP to VIP
(New) SnatTables (& PostSNAT): For externalTrafficPolicy: "cluster", do SNAT

1. From external host

The packets of NodePort service traffic from external host enter OVS pipeline through uplink port. Before enter existing Service Endpoint selection pipeline, the packets need to be DNATed and SNATed:

DNAT (dst=$VIP):
The Service Endpoint selection pipeline (#1463) uses a VirtualIP to match the flow DSTed to NodePort service. So DNAT need to be applied.

SNAT (src=$GwIP): SNAT is required when externalTrafficPolicy is Cluster.

Then the Service Endpoint selection pipeline will loadbalance the access to backend endpoints as ClusterIP service.
Because only the NodePort service traffic is needed to apply above NATs. So we introduce several tables to filter the traffic from uplink. And only redirect NodePort service packets to NATs. The pipeline will look like:

0x1 in REG8: request
0x2 in REG8: reply

Note: "from" of a request is uplink and "out" of a reply is "antrea-gw0". antrea-gw0 --> host --> br-int --> uplink. Better to keep them same.
2. From local host
Need:

A userspace proxy (fullNAT) to start the new traffic with (GwIP, vIP) after receiving traffic from Local Process.
A new route so such traffic will be routed to antrea-gw0

Then reuse the flow pipeline already implemented in OVS.

3. From local Pod
It reuses most of the local host case. The Pod sends traffic via antrea-gw0 to the host with the help of OVS.
Then the pipeline is the same as local host case.

NodePort support is implemented in this PR: https://github.com/antrea-io/antrea/pull/2863


Emergency fix for AddAdmin

This fixes a bug that caused all commands that give admin (:admin/:pa/:owner/etc) from working, introduced in #221.
There is no new code here, it simply reverts the file back to its previous state.

I'll fix my pull request. Give me a sec..

I'll fix my pull request. Give me a sec..

The solution was changing checkTab to Admin.DoCheck. It isn't really necessary to remove the entire code you issued. And this was actually needed (ignore the debug prints)
  	for i,v in next,Settings.Blacklist do
		if Admin.DoCheck(p,v) then
			warn("DO CHECK PASSED?")
			warn("Cannot admin "..p.Name..". This person is currently blacklisted")
			return false
		end
	end

The solution was changing checkTab to Admin.DoCheck. It isn't really necessary to remove the entire code you issued. And this was actually needed (ignore the debug prints)
  	for i,v in next,Settings.Blacklist do
		if Admin.DoCheck(p,v) then
			warn("DO CHECK PASSED?")
			warn("Cannot admin "..p.Name..". This person is currently blacklisted")
			return false
		end
	end

Trust me.. I doubled check the output, and it was needed to replace checkTabwith Admin.DoCheck.

Trust me.. I doubled check the output, and it was needed to replace checkTabwith Admin.DoCheck.

The code I removed isn't necessary either though, and since the AddAdmin
function already takes some time to run, I'd say the extra overhead is not
worth it.
That's my opinion, though.
On Thu, Jan 7, 2021, 8:56 PM Alpha N. Triz<EMAIL_ADDRESS>wrote:

The solution was changing checkTab to Admin.DoCheck. It isn't really
necessary to remove the entire code you issued. And this was actually
needed (ignore the debug prints)
  for i,v in next,Settings.Blacklist do
  if Admin.DoCheck(p,v) then
  	warn("DO CHECK PASSED?")
  	warn("Cannot admin "..p.Name..". This person is currently blacklisted")
  	return false
  end

end
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Sceleratis/Adonis/pull/229#issuecomment-756530833,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFDB37GMIODIJ47E4WI5JSDSYZ65TANCNFSM4VZ3URWA
.

The code I removed isn't necessary either though, and since the AddAdmin
function already takes some time to run, I'd say the extra overhead is not
worth it.
That's my opinion, though.
On Thu, Jan 7, 2021, 8:56 PM Alpha N. Triz<EMAIL_ADDRESS>wrote:

The solution was changing checkTab to Admin.DoCheck. It isn't really
necessary to remove the entire code you issued. And this was actually
needed (ignore the debug prints)
  for i,v in next,Settings.Blacklist do
  if Admin.DoCheck(p,v) then
  	warn("DO CHECK PASSED?")
  	warn("Cannot admin "..p.Name..". This person is currently blacklisted")
  	return false
  end

end
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Sceleratis/Adonis/pull/229#issuecomment-756530833,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFDB37GMIODIJ47E4WI5JSDSYZ65TANCNFSM4VZ3URWA
.


Document Gateway API

Please describe the problem you have
Create a doc (maybe a table) that illustrates gateway api support.

Removing milestone until the community achieves a consensus on the Gateway API implementation plan.


AMQP 1.0 support

Are there plans to extend the support to 1.0 version of the spec?

AMQP 1.0 is a completely different protocol, not a newer version of 0-9-1. No single client library I know of supports both.

yes, if AMQP 1.0 comes, it would probably be in another library


Add random emoji generation.

Hmmm looks like tests are all failing. Are you open to a PR to resolve this @victorquinn ?

I see that 😢 yes would love a PR that resolves it -- not sure what has gone awry there

I see that 😢 yes would love a PR that resolves it -- not sure what has gone awry there

I have opened #600 as a first step to fixing this. Please review when you get a chance. 🚀

@dylanhamersztein you may need to sync this with master again so the new test node versions are pulled in. Then this will possibly be able to be merged

hey guys! thanks so much for all your help 😄 i've just synced this branch with master fixed the tests to account for what @victorquinn found on #601

Hi @victorquinn  😄 sorry to bother but would you mind taking another look at this please? I'd love to be able to say I contributed to this project!

Not a bother, appreciate the ping and the work @dylanhamersztein

fyi this is live on npm as 1.1.12 😄


Chromium Page Crashes

This is reported here: https://github.com/GoogleChrome/puppeteer/issues/1325#issuecomment-356964506
@dallashuggins to debug this further, can you please:

Launch chrome canary in non-headless (headful) mode and provoke the crash.
After that, open "chrome://crashes" tab in the Chrome Canary and find the most recent crash. It should be the one that just occured
Hit the "send now" button if the crash is not send yet; if the crash is sent and uploaded, share the crashId here in the issue.

A small code snippet to clarify the steps:
const puppeteer = require('.');

(async() => {
  const browser = await puppeteer.launch({
    headless: false,
    executablePath: '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary',
  });
  // here's the code that results in a crash
  const page = await browser.newPage();
  await page.goto('about:crash');

  // keep the browser open.
  // navigate to chrome://crashes and post the "crashId" here
})();

Hopefully this works out and will get us a crash stacktrace.

@dallashuggins Sorry for this taking so long. From the crash reports, it looks like the issues should be fixed already. Can you please check with pptr v1.3.0?

@dallashuggins ^^ I'm eager to know if your issues are fixed, I'm having some intermittent chromium crashes myself.


"where" filter with not equal (!=) did't work

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
No error log. But start from zero clock +0 time zone.   Solved by restart influxdb server.
Expected behavior:
Describe what you expected to happen.
exception!='None'  must return without 'None' series.

SELECT * FROM "http_request" WHERE (source_ip='<IP_ADDRESS>' AND exception!='None') AND time >= now() - 3m
name: http_request
time                exception pid source_app   source_ip  target_app          target_ip     value

Actual behavior:
Describe What actually happened.
return 'None' series.

 But start from zero clock +0 time zone.   Solved by restart influxdb server.

Anyone has got the problem?I dint't know how to solved it once for all.

@russorat The problem is more serious, this is the influxql result in same time(only "Exception" not same)：
I have tested on v1.7.10 and v1.8.3. All have the problem.

Same problem on v1.8.4

Most of the time it happens on Monday 8:00 am。My local time zone is GMT+8。And the duration of the datasource is 240h shardGroupDuration is 24h.


Form validation creation - Alex and Santiago

create form validation
Add css
Add user Experience
Add linters errors

Invalid Code Review Request ❌
Hi @AsciencioAlex and @santitoot ,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
You have submitted a project, that is a pair-programming project and must contain commits from both of you. @santitoot Please add your commits so that we know you two have worked on each repository together.
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


Push rules - Don't search domains for keywords

Push rules are defined by the spec and evaluated by all clients and servers, I suggest opening this on the matrix-doc repo
Originally posted by @t3chguy in https://github.com/vector-im/element-web/issues/20518#issuecomment-1011580153
Your use case
I made the big mistake and my matrix server is contains my nickname jokergermany.XXX
What would you like to do?
Now i get a notification because "i got mentioned" when some of the ghost user on my matrix Server a mentioned.
It would be great if this could be stopped.
Why would you like to do it?
To get no notification when puppets are mentioned.
How would you like to achieve it?
When searching for keywords, ignore domain names.
Have you considered any alternatives?
Yes, Anti-Keywords #20519

please can you give an example of a message that you are getting a notification for, that you wouldn't expect?
related: #1549

This is the same issue:
https://github.com/matrix-org/matrix-doc/issues/2319

Closing in favour of https://github.com/matrix-org/matrix-doc/issues/2319


Allow adding systems to multiple sets that share the same base set

Objective
Fixes #7702.
Solution

Added an test that ensures that no error is returned if a system or set is inside two different sets that share the same base set.
Added an check to only return an error if the two base sets are not equal.

bors r+


Getting started on the front-end

Things to consider adding

Import file feature (e.g., image import).
Text input box for user notes in text
Submit button for the file or text; after clicking the button, the data gets processed, stored, or whatever
Start coding the overall looks of the website, including titles, background, color, font-size...
Navigation bar in case we have more than one page

Figma design references
Link 1: https://www.figma.com/design/Pj5Et89SAZDB8QdG9KVJ7f/Note-Sage?node-id=0-1&t=xtGZ4nBthe8uipbp-0
Link 2: https://www.figma.com/design/KvCRYID2rrJUPZ37rMhTnR/STEM-E-Note-Summarizer?node-id=0-1&t=VhwcU3JsrA488KEZ-0

Made the front end and implemented the Gemini API to generate a result when a user inputs a prompt and clicks summarize, everything else for now is a place holder

Added the input tabs and CSS color palette


collection_query_whitelist default behaviour?

Not sure if this is an issue or a question or maybe a documentation enhancement request.
I just found out that if I don't set any collection_query_whitelist in my controller config that all parameters are allowed. I somehow assumed the opposite, that if no parameter is set all parameters will be filtered from $data.
So I expected setting no whitelist would result in the same behaviour as collection_query_whitelist => array()
Is this the correct default behaviour?
If yes, may I suggest adding a comment to the controller config documentation here that omitting the parameter will result in white listing all parameters.

That's not the correct behavior; $data should be empty if the whitelist is empty. I'll investigate.

@Wilt I cannot confirm this. I created my fetchAll() method in a code-connected REST service as follows:
public function fetchAll($params = array())
{
    return array(
        array(
            'id' => 1,
            'params' => $params,
        )
    );
}

And then sent a request to /foo?bar=baz&baz=bat. The result had an empty params object for that entity.

I am not sure since it was some time ago I asked this question but I tried once more and maybe I didn't explain it correctly. Now I noticed the following:
In my zf-rest ResourceListener instance I use the following method to get the query params from the resource event:
$queryParams = $event->getQueryParams();
If I set no collection_query_whitelist key in my controller config array this method returns me all query params that qere passed in the request. If I set an empty array as collection_query_whitelist then the method returns nothing (an empty Zend\Stdlib\Parameters object).

@weierophinney I hope you still get notified by this since you closed the issue...

Any updates on this bug?
Seems to be a security breach if you ask me. Unexpected data can add up on sensitive places in the application.

The whitelist was originally developed to filter what query parameters made their way into a resource. Before that, they were always present. With the whitelist, we could determine exactly which ones could be passed along, and indicate none should be available by passing an empty array.
The original behavior - allowing all parameters - exists essentially to allow users to use whatever query parameters they want. This can be important in development, where you may be trying different parameters and naming conventions. Ideally, once you know exactly what you need, you should create a collection_query_whitelist to lock down what is passed to the resource.
I'm failing to see how this is a potential security breach, however. Developers know the exact source, and should be filtering those parameters accordingly, and should be careful to track the origin of the parameters when merging with any other user input.
If you feel I'm missing the security implication, please use our security reporting procedures to fully explain the vector, instead of doing so in a public channel.


Automate generation of resources markdown list

My Pain
The list of awesome Panel resources are (to be) listed in the https://github.com/MarcSkovMadsen/awesome-panel/blob/master/package/awesome_panel/database/resources.py
I then need to keep the README.md and resources.md files in sync. This should be automated as much as possible.

Solved by this commit https://github.com/MarcSkovMadsen/awesome-panel/commit/3dced9ed6e2e72bfe8fe1339aea0c5b72fbc6f0d


Why do we use technical indicators as input to RL training?

What are the reasons we use technical indicators as input to RL?
Aren't these indicators human-made patterns to help humans predict and are very much open to interpretation?
Would it not be best NOT to deflect the RL by these human-made patterns, but leave the RL to work out its own patterns on the raw trading data?

Wouldn't you rather have RL detect patterns simultaneously in raw price data as well as the coinciding technical indicators? The indicators themselves are not recognized patterns, and the RL does not implement a human-designed strategy based on interpreting them. RL may find a new way to use an indicator that a human has not seen, especially when taking many indicators as inputs.

Hi @anthonyrom - thanks!  Tbh not sure as I am not an RL expert, just posing the question/suggestion.  Has anyone run an experiment to compare and contrast what RL predicts with and without technical indicators, to see if they influence the results positively or negatively?

Hi @marcipops
In my blogpost, in the RESULTS and DISCUSSION section you can see that I tested out the agent performance with OHLCV data and OHLCV+TI data. You can see the account value charts and Sharpe ratio values. Here is the GitHub link for the project.
FEW CAVEATS

Generally RL algorithms are tested with multiple seed values and the average value is taken into consideration. But here I did with one seed value. So the testing is not very rigorous
I did Hyperparameter optimization for each case

Interesting.  What was your conclusion and recommendations?

Technical Indicators are feature engineering. Generally, we have some heuristics for technical indicators, like if RSI is beyond this threshold, then it is oversold. So rather than explicitly mentioning this, we will train our model to figure out this and it will be dynamic, not hardcoded
In my testing, if we keep aside the caveats like the seed values, the state space with technical indicators gave better results. You can see the results here.


How to get process start time and the last of end time on Distribution mode

My loading test's scenario as follow,
Distribution mode is one master node, lots of slave nodes, use --no-web mode. I want get the process start time and the end time. and sended message to aws sqs at one times by master node
I use method is on_start and on_stop, but it is get all of launch user's start time and end time on the node.

How to definition work to specific master do? Because I don't want to send message by salve

Have anyone can give some tips for me?

OS: ubuntu 16.04
Python version: Python 2.7
Locust version: Locust 0.8

@windwaterbo this is an old question - do you still need help here?


KSM and DOT transactions not working on ledger error: 'Txn version not supported'

Hey, so I deleted my DOT and KSM apps of my Ledger Nano S to make room to install another app today, then when I re-installed it an hour later I now get an error saying 'Txn version not supported' on both apps. I last used Ledger to send some DOT yesterday and I used Ledger to send KSM a few weeks ago.
My DOT version on Ledger is 7.30.0 and KSM 5.30.1 my Ledger version is 1.6.1 and I've also updated my metadata for polkadot.js for both KSM and DOT.
Is anyone else having this issue for both KSM and DOT? really could do with accessing some of my funds if there is a get arround

I have the same issue. Please fix the Kusama and Polkadot apps so that they can sign the new transactions!
See https://www.reddit.com/r/Kusama/comments/qbhzul/ledgner_nano_x_error_txn_version_not_supported/
https://www.reddit.com/r/ledgerwallet/comments/qbn935/kusama_txn_version_not_supported_i_have_the/


Release Google.Cloud.Workflows.V1Beta version 2.0.0-beta04

Changes in this release:
New features

Change netstandard2.1 target to netstandard2.0 (commit 7707366)

Created release for Google.Cloud.Workflows.V1Beta-2.0.0-beta04


Cannot find module 'fs-plus' when loading rst-preview package

I'm behind a ridiculous firewall and unable to use the native package manager to install the 'rst-preview' package.
I downloaded the latest rst-preview from git (1.3.0), cd into the directory and run apm link.  Everything seems OK.  When I force reload Atom with Ctrl + Alt + r, I get an error:
Failed to load the rst-preview package
Cannot find module 'fs-plus'

I downloaded the latest 'fs-plus' package (2.8.1), cd in and run apm link.  No problem.
Force reload atom and still get the error.  I removed both packages and tried installing 'fs-plus' first.  Still the same issue.
Here is the error report:
Atom Version: 1.0.11
System: Microsoft Windows 7 Enterprise
Thrown From: Atom Core
Stack Trace
Failed to load the rst-preview package
At Cannot find module 'fs-plus'

Error: Cannot find module 'fs-plus'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (C:\Users\ballard\AppData\Local\atom\app-1.0.11\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (<anonymous>:2:6)
    at Object.<anonymous> (<anonymous>:1:1)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .coffee] (C:\Users\ballard\AppData\Local\atom\app-1.0.11\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:347:32)

Commands

Config
{
  "core": {},
  "editor": {
    "fontSize": 15,
    "invisibles": {}
  }
}

Installed Packages
# User
fs-plus, v2.8.1
rst-preview, v1.3.0

# Dev
No dev packages

I think you just need to run apm install from the rst-preview directory, to install the dependencies. Let me know if that doesn't fix it for you.

Thanks.
apm install fails:
gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
gyp WARN download ignoring invalid "proxy" config setting: "^^^^^^^^^^^^^^^^^.org:8082"

gyp WARN install got an error, rolling back install
gyp

https://atom.io is not in our corporate whitelist, so, even if the proxy were set correctly, I'm not sure it could get the .tar.gz file it needs.  Can that be installed manually?

https://atom.io is not in our corporate whitelist

Ok, well I think the only reason that apm install needs to connect to atom.io is to download the headers for Atom's version of V8. This is only needed when installing modules that contain native code. If none of the modules contain native code, you can install the dependencies with npm install. Is npmjs.com on your whitelist?

Unfortunately, no.

Ok. So Atom packages can use arbitrary node modules, and node modules aren't all on GitHub. But for some packages it will be possible to manually install each dependency. You'd have to clone the correct version of the module into node_modules. Each node module has its own dependencies that get installed to its own node_modules folder though, so you'd have to repeat that process recursively.

That may be more work than I'm ready to do for this.  Thanks for your help.


Kit create

When I've written a command to create a set, I'm taken to a menu that doesn't work, meaning I can just take items from the menu.

That's been fixed with today's plugin update, thanks for reporting!


DATE Picker in edit_ticket.html not functioning

Describe the bug
JavaScript source is not loaded before code utilized.
To Reproduce
Edit a ticket, click on Due Date field, no date picker appears.
Expected behavior
Edit a ticket, click on Due Date field, data picker appears.
Fix coming...

Merged! Thank you!


Make TwoColumnsLayout sidebar collapsible

Release Type: Non-breaking changes
Fixes https://x-team-internal.atlassian.net/browse/XP-3571
Description
Make TwoColumnsLayout sidebar collapsible.
Checklist

[x] set yourself as an assignee
[x] set appropriate labels for a PR (In Review or In Progress depending on its status)
[x] move respective JIRA issue to the PEER REVIEW column
[x] make sure your code lints (npm run lint)
[x] Flow typechecks passed (npm run flow)
[x] once finished with all the changes, you run npm run build command and committed changed files to the branch
[x] manually tested the app by running it in several different browsers (Firefox, Chrome, Opera, Safari, MS IE/Edge, etc.) and checked nothing is broken and operates as expected!

Steps to Test or Reproduce
Try this changes in XP (copy XP-UI lib files over XP node_modules).

Open http://localhost:8000/admin/search on mobile viewport and observe it loads the page with sidebar collapsed
Toggle the sidebar by clicking in the splitter
Also try out https://deploy-preview-503--xpui-develop.netlify.com/?path=/story/screens-and-layouts-twocolumnslayout-use-cases--composed-in-adminscreen-with-filters-and-sidebarheading-element

To see all details of the implementation, please take a look at this demo https://youtu.be/ZNYKln-_GTo, also make sure to read my comment in the ticket https://x-team-internal.atlassian.net/browse/XP-3571?focusedCommentId=22560&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-22560 explaining why AC 2 and 5 are not covered. (at this moment I proposed to remove these items, still waiting feedback)
Impacted Areas in Application
TwoColumnsLayout
Screenshots

the target for toggling the sidebar is pretty small.

One of the options could be increasing the padding area to give fingers enough room to make a click. cc @bernardodiasc
Out of interest @jaspax, what kind of device are you using for testing?

Bigger button:

@nicksp about this:

Not sure I'm missing anything, but it's doesn't seem that the sidebar auto-collapses (when switching to mobile), even though I can see a code that does subscribe to resize event, but doesn't seem to hook up 🤔

Can you demonstrate the problem you are having, it works for me:

But observe that once you interact with the sidebar by collapsing or expanding, your, as user,  preferences will be persisted.

Hey @bernardodiasc Why isn't this working for me?


KrakenD Plugin System - error while loading package file

Describe what are you trying to do
We decided to go ahead with KrakenD while evaluating the plethora of choices available for an API gateway. More specifically, the plugin system and its accompanying example of implementing the gRPC gateway as a HTTP-client plugin was what sealed the deal. (Since that is exactly our use-case.)
I followed the exact steps as mentioned in the tutorial and compiled the plugin library using the golang:latest image; copied the library over to the plugins folder and started KrakenD.
A couple of log lines were more peculiar upon initial inspection:
[KRAKEND] 2020/07/22 - 16:41:47.955 ▶ WARNIN loading plugins: plugin loader found 1 error(s):
opening plugin 0 (/opt/krakend/plugins/plugin.so): plugin.Open("/opt/krakend/plugins/plugin"): plugin was built with a different version of package internal/cpu

After some Googling, it was understood that this is a known problem with Go's plugin system since it's very picky about runtime and system library versions.
Your configuration file
The configuration file is the same as picked from the example:
{
    "version": 2,
    "name": "gRPC Gateway - v1",
    "port": 8080,
    "cache_ttl": "3600s",
    "timeout": "3s",
    "plugin": {
        "pattern":".so",
        "folder": "/opt/krakend/plugins/"
    },
    "extra_config": {
        "github_com/devopsfaith/krakend-gologging": {
            "level":  "DEBUG",
            "prefix": "[KRAKEND]",
            "syslog": false,
            "stdout": true
        }
    },
    "endpoints": [
        {
            "endpoint": "/user",
            "backend": [
                {
                    "host": [ "http://ignore.this" ],
                    "url_pattern": "/v1/user",
                    "querystring_params": [ "user_id" ],
                    "extra_config": {
                        "github.com/devopsfaith/krakend/transport/http/client/executor": {
                            "name": "internal-grpc-gateway",
                            "endpoints": [ "localhost:50051", "localhost:50052" ]
                        }
                    }
                }
            ]
        }
    ]
}

Commands used
The Kraken base image was used (devopsfaith/krakend:latest) and the plugin files were copied to the configured location (in this case /opt/krakend/plugins/plugin.so).
The CMD parameter was modified to:
CMD [ "--config", "/opt/krakend/config.json", "run", "--port", "8080" ]

What all have I tried
Over the last hour or so, I have tried every possible thing which may result in successful runtime precondition validation. To list out all the methods in their detail:

I started with adding the -trimpath flag as mentioned by this comment; sadly, this didn't work.
I copied the exact linker flags from the current Makefile but it gave the same error;
I used go1.12 as mentioned in the go.mod file but that gave me: plugin.Open("/opt/krakend/plugins/plugin.so"): plugin was built with a different version of package errors;
thought it might be an issue caused by transitive and indirect dependencies so I pinned the entire module set in Kraken's go.mod and added them as _ imports but still that was of no avail.

I am sure I am doing something wrong but can't pinpoint it; any help would be amazing.

in order to know the exact deps used at a given version, you can check the go.sum and Makefile from the related tag.
krakend 1.1.1 was built with go1.14.0 (https://github.com/devopsfaith/krakend-ce/blob/v1.1.1/Makefile#L21), so building your plugins with that version should fix the problem.
on the other hand, notice the plugin interface evolved from the PoC described at that blog post and the final release (https://godoc.org/github.com/devopsfaith/krakend/transport/http/client/plugin). In fact, the only thing you should change is the name of your symbol: from GRPCRegisterer to ClientRegisterer

When building with go1.14.0, updated a few packages and got the following:
[KRAKEND] 2020/07/22 - 19:02:44.310 ▶ WARNIN loading plugins: plugin loader found 1 error(s):
opening plugin 0 (/opt/krakend/plugins/plugin.so): plugin.Open("/opt/krakend/plugins/plugin"): plugin was built with a different version of package google.golang.org/genproto/googleapis/api/annotations

Since genproto is a transitive dependency for Kraken, it's a little tough to pinpoint the exact version in use. Is there a recommended way to resolve this issue because manually cherry-picking versions like this is very time consuming and prone to human errors.

as said, the go.sum file contains all the versions used in a given build: https://github.com/devopsfaith/krakend-ce/blob/v1.1.1/go.sum#L1025

Tried that out; it's too much work and leads to a very brittle build process. Thanks for the help, regardless! 😄

@labsvisual this is why we have it automated on KrakenD Studio through our gRPC plugin generator (available to KrakenD Enterprise users). If you want an evaluation or more information get in touch

try building the plugin on the same machine type. This helped me along with same go version.

@labsvisual Not sure if you managed to solve this, I had a similar issue, and I solved it by compiling krakend binary and using that binary.


Migration from v11 to v12

What are the steps to migrate from v11 to v12 specifically in regards to encryption? We are currently using the RequireEncryption mode of v11, is there no equivalent on v12? Are there any plans to bring this across? How do I know which key wrap algorithm to use?

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

ID: 86453250-5bb5-c375-d392-4fa366ddbe43
Version Independent ID: fd87a3a3-56b6-fa2e-8c51-65ba222493c7
Content: Client-Side Encryption with .NET for Microsoft Azure Storage
Content Source: articles/storage/common/storage-client-side-encryption.md
Service: storage
Sub-service: common
GitHub Login: @tamram
Microsoft Alias: tamram

@biltongza
Thanks for the feedback! We are currently investigating and will update you shortly.

@biltongza  There is not currently an equivalent of the RequireEncryption flag in v12. Can you describe how your workflow makes use of it?
The key wrap algorithm is up to you. Client-side encryption is built in such a way that you only decide on upload. The algorithm name is stored in encryption metadata and will be extracted to correctly unwrap the key on decryption, assuming your implementation recognizes the algorithm identifier. The legacy KeyVault library allowed null to be passed for algorithm name, which legacy storage used to determine the algorithm. The current keyvault SDK requires an algorithm name, so we have the user decide. You can browse supported algorithms here; ToString() on the given algorithm struct will give you the string values storage makes use of. I am unsure of what the legacy KeyVault SDK used as their default value.
Something to keep in mind is that unlike v11, v12 also supports server-side encryption, as opposed to the client-side encryption. Perhaps that is also something of interest to you.
Are these the only migration issues you're encountering for encryption?

Well I'd just like to make sure that we'll still be able to read things that we used the v11 SDK for. I assume I would need to use the key algorithm that v11 used. Basically we just use RequireEncryption so people can't go view the blobs in Azure Portal, we don't want them to be human readable.
If we were to swap to server-side encryption, would we need to download and reupload everything?

If you follow the v12 client-side encryption instructions in the document this issue was opened on, you'll be able to upload blobs with encryption and read your already-encrypted blobs on download. I'm not sure what exactly you're looking for aside from that. RequireEncryption in v11 looks like it just added behavior where it throws more eagerly on upload/download if there's no encryption detected.
Server-side encryption would require a complete download/upload of your data. It's not necessarily what you're looking for, but it's newly accessible in v12 and it ends up being a preferable choice for some.

It seems there are not further question, so I will close out this issue. Feel free to tag me and we can reopen this if there are unresolved questions.


Fix setting default project

Fix setting default project.
Testing Recommendation

Pull this branch
Go to extensions settings
Select default project
Start timer, see that project is attached to time entry

close #1119

There are issues with setting the default project again. Reported by a user here plus all of us in support can reproduce.

my bad 😊


Question - api bot message statistics

Nazim good day ! Could you please tell me in which table the history of bot's messages is saved when there is a connection via bot's API ?

Hey, unfortunately, the current API request is not being saved in a table

Nazim Greetings! please tell me, maybe you have an idea how to analyze API activity to count bot tokens ?

You can add a check in the API handler for counting tokens. You can use the 'js-tiktoken' package

Nazim Afternoon! You know the code of this project very well. Can you please tell me the logic, how can you make it possible to intercept all incoming and outgoing messages to AI models by API open ai? To record them into a database for statistics.

Hey, I have added a new table for the API integration, similar to other integrations.

Great! Thank you ! as soon as we do all the statistics I will report back how we organized everything , as a basis we took meta base , it was suitable as a universal ready api gjl connectable to docker databases


Bump version to release

Bumping the version to release

Codecov Report

Merging #616 (6f0500f) into main (2c15308) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #616   +/-   ##
=======================================
  Coverage   84.72%   84.72%
=======================================
  Files         163      163
  Lines       12886    12886
=======================================
  Hits        10918    10918
  Misses       1968     1968

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


Support Hasicorp Terraform files which have a .tf extension by default.

Terraform uses HCL but uses the .tf extension, this minor change allows .tf files to be picked up by the package.

:sparkles:  thanks.


parsing fails

Just checking this out a bit and noticed a bug.
I'm connecting to a simple wsock server with wscat from the node.js ws module on npm.
One of the header lines sent is:
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits

but "vend" is looking for the first space in the value for some reason and complains when it finds one:
permessage-deflate; client_max_window_bits

I took "vend" out and was able to connect.  No PR because obviously it's there for a reason.

For now, I've just removed the checks.
Eventually, the code should remove trailing whitespace as per HTTP spec:
"Each header field consists of a case-insensitive field name followed by a colon (":"), optional leading whitespace, the field value, and optional trailing whitespace."

The whitespace is not handled correctly.


Improve plan debug resources tree view UX

Closes #999.

Moves the debug view from its modal onto a new page routed at /plans/:planName/debug, which opens in a new tab
Adds a search bar and refresh button
Removes the TreeView clone we built here and replaces it with the new PatternFly TreeView (upgrades pf packages in the process). This fixes the gray background and indentation issues.
Moves the CLI command copy and view JSON actions into a kebab menu which appears on hover.

@vconzola, I didn't move the JSON view into a modal, it still opens in a new page since that was already implemented in the router. If we determine that isn't ideal we can move it to a modal, but it sounded like that decision wasn't final.
Note: due to a restriction with the action property on TreeView items expecting you to pass children for its internal <button> element, passing a <Dropdown> there currently renders the kebab as a button-in-a-button. We should fix this, but it will require a change in PatternFly (I opened https://github.com/patternfly/patternfly-react/issues/4799). In the meantime, there is a console warning complaining about this invalid button nesting structure, but it won't cause any problems in production. It isn't visually obvious, but technically if you click on the very edge of the kebab menu area it will activate the outer button which does nothing.
Screens

In case of errors, an alert is displayed instead of the tree:

Opened https://github.com/konveyor/mig-ui/issues/1008 to follow up about the HTML structure warning.

It feels bad to me that the kebab is hidden by default, is that a deliberate design decision? Hiding it doesn't signal to me I can interact with it to get some pretty important features, I would want that kebab displayed by default.


Add ECK to community operators

Adds ECK to community operators. It is currently in upstream community operators only, but we have been testing against OpenShift and vanilla k8s the whole time 🤦♀ . This is a replica of the content currently in the upstream operators dir

@anyasabo There are too many files(versions)  in the PR, Since this is the first release under community operator, can't you just have the latest version 1.2.0 only?

@aneeshkp yep I can do that, it just seemed simpler to keep them the same in both dirs. And going by the contributing docs it also seemed to be expected that the bundles would be copies of each other.

If your Operator works on both Kubernetes and OpenShift, place a copy of your packaged bundle in the upstream-community-operators directory, as well as the community-operators directory. Submit them as separate PRs.

@anyasabo That statement is correct, though it was written in the context of one contributed version. Since ECK wasn't available on OpenShift before I guess you would want people to start of with the newest version there?
In case there is a use case for older versions @aneeshkp I think since this Operator is already been tested by the pipeline on vanilla k8s and @anyasabo explained it was tested on OpenShift as well, we could theoretically just merge the rest of the update chain as well. The pipelines are currently only capable of testing the latest Operator version.

@dmesser thanks for clarifying that. @anyasabo, Do you want to revert back to bring in the whole bundle?

Just keeping 1.2.0 should be okay 👍

/test CVP


Dynamic Blocks In Rules Are Hardcoded to The First Value

Affected modules

*terraform-ibm-cbr
Expected behavior

If multiple contexts, resources or operations are provided they should all be added to the rule
Actual behavior

If multiple contexts, resources or operations are provided only the first value is added to the rule
Steps to reproduce (including links and screen captures)

Run terraform apply

Anything else

By submitting this issue, you agree to follow our Code of Conduct

This was missed because in testing the multiple zones were put into a single context. A better example would have been to split the zones into multiple contexts. I will clean it up and add a fix with simpler syntax along with adding tests to help prevent any regressions.


[ Question ] Sending and receiving a float type value

Hi Nico,
How are you?
I want to use your library to send and receive a float type value.
For sending a I use the send_2byte_float() function that works great. It is being received by KNX without any problem.
Now I want to do the other way round. To receive a float type value. Do you have the code to transform the mantisa from the KNX DPT to a float value? When a float is received, the msg.data_len is 3, but the  msg.data[0] is always zero. So all the 2byte float is in msg.data[2] and msg.data[1].
So my question is if you have the fragment of code to decode msg.data[2] and msg.data[1] into a float variable ?
Thanks,
Adrian

Hi,
Yes, there is ESPKNXIP::data_to_2byte_float
Cheers,
Nico

You Rock!
Thanks a lot :+1:


feat: update image label with actual kernel version

Sets a variable with for the specific kernel being installed and uses that both to select the desired AKMODS layer and set the ostree.linux image label as appropriate.
I'll be doing this on HWE also: https://github.com/ublue-os/hwe/issues/220

Awesome surprise, thank you!


Why store both timestamp and date?

This seems redundant - why not just store the date property?

Hello @chafey ,
So you may use one, another or both.

Isn't it the exact same data just in two different forms?  If so - what is the justification for storing it twice?  I can't think of anything I can do with the timestamp I can't do with the date.  Seems wasteful and unnecessary, especially for something that could end up holding a lot of data

In case if you will need to build an index, to sort/select records by date, you want to use timestamp as it will be almost twice smaller in terms of memory consumption. But in some cases when you need to work with actual Date, involving timezones and other Date features, you will end up building index on date field.
As I've said before - so you may use one, another or both, to meet everyone's needs.
Speaking of extra bytes on your storage, in terms of 2017, additional 8 bytes per record is negligible


Incorrect package names and imports in templates

In latest git version some templates are still using the default package name 'com.mycompany.myapp'. I committed a fix here: https://github.com/nitram84/generator-jhipster-entity-audit/commit/bf4a0f8709b1978fef32dc73d324f25d2a54c650

👍

Closed with https://github.com/hipster-labs/generator-jhipster-entity-audit/pull/187


What Target features does Web SDK Support?

Issue in ./help/edge/personalization/adobe-target/target-overview.md
I'd like to be able to have a table which i can quickly scan to see which Target features are currently supported by Web SDK and which aren't so I can evaluate if I am ready to upgrade. Source data is here: https://github.com/adobe/alloy/projects/5 so at the very minimum it would be good to have a link, however a formatted table on the Target Overview page would make it much easier.

Created https://jira.corp.adobe.com/browse/PLAT-87609 to track this update. Please feel free to add additional comments or questions there.

Documentation has been updated and Jira ticket has been closed.
Doc update: https://experienceleague.adobe.com/docs/experience-platform/edge/personalization/adobe-target/target-overview.html?lang=en#personalization


Write script pod events to task log

Background
We have situations where a script pod gets stuck n the Pending state or is behaving strangely. In these cases, customers have to use kubectl or another tool to work out what the issue is (such as a bad image name).
This PR adds functionality so that pod events are now retrieved and written to the task log as verbose messages.
Results
When we are retrieving the pod logs, we now also make a call to the Kubernetes API to retrieve all the events that have occurred for the pod. We then filter those events to only those we haven't seen since last time we retrieved logs, then interlace them with the rest of the logs.
So we don't lose the "sinceTime" for the events if tentacle restarts, we write the current timestamp to a file in the workspace and only load if from the file if we can't find the value in memory.
If the event is a warning event, we flag it as a warning log message.
If the event is a Pulling or Pulled event for a previous Pulling event, we show it as the Wait category, to show users that we are waiting for the pull to complete before running their pods.
These events can be disabled by setting the OCTOPUS__K8STENTACLE__DISABLEPODEVENTSINTASKLOG env var to true.
Shortcut story: [sc-74374]
After
Pod events

Warning events

Pulling/Pulled

How to review this PR

Quality :heavy_check_mark:

Pre-requisites

[ ] I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
[x] I have considered informing or consulting the right people, according to the ownership map.
[x] I have considered appropriate testing for my change.

Minor review comments (mostly about my own understanding), but otherwise LGTM! I was wondering if there's any way for us to test these events work, since it feels like a low hanging fruit, but not enough to block this merge. :shipit:

I can write a test that runs a script in a container only we care about in that test, observes that it runs the script, then re-run that script and observe that it doesn't write the pulling message a 2nd time

Minor review comments (mostly about my own understanding), but otherwise LGTM! I was wondering if there's any way for us to test these events work, since it feels like a low hanging fruit, but not enough to block this merge. :shipit:

I can write a test that runs a script in a container only we care about in that test, observes that it runs the script, then re-run that script and observe that it doesn't write the pulling message a 2nd time

I was honestly more on the side of a small unit test here to ensure that the events were able to be processed properly if we collect them, since the k8s contract for events is well known. We can likely also simply check that any deployment has an event written to the log to test that the collection part works.

We can likely also simply check that any deployment has an event written to the log to test that the collection part works.

I added a check to the simple integration test to verify at least some pod events are being written


Changing the background of the website for look enhancement

I will change the background of this section to minimalist background related to the website .
Also will try resizing the Dog cards for improving the visiblity on the website.
It will improve the look of website.
Please assign this issue to me in Gssoc 24. I will fix this issue at earliest.
Thank you

Hello @akshitagupta15june , I would like to work on this issue under GSSoC'24. I have already built a blogging website whose github link is given below.
link - https://github.com/pahuja-sahil/Online-Blogging-System.
I can add a background image matching the theme of you website and matching the color pallete as well. kindly assign this issue to me.
Thank you.

Please assign it to me as I raised the issue.
Thank you

Please assign me this issue

Hello , I would like to contribute on this project. Please assign me this issue.

hello @akshitagupta15june, i would love to contribute to this issue. Please assign this to me.

Hello @akshitagupta15june Please assign this issue to me I had resolved it

I would like to work on this issue. Please assign it to me under GSSOC'24 @akshitagupta15june

I want to work on this issue. @akshitagupta15june please assign it to me.

Can you assign me this problem under gssoc'24

/assign

If this issue is still pending, I can work on this under GSSoC'24. Lemme know :)

hey @akshitagupta15june i also want to do work with this project

Mam please assign it to me, its still pending from long time.

hi, I have been following your project and would love to contribute, please assign me


Create LICENSE

Add license so other's may use the library freely.

Hi Hüseyin,
Excellent library you've made.  I would like to use this in a project of my own.  Would you please add a license so that I may do so?
Thank you,
Alex

Thanks, of course you can use it and help me develop if you need more features. I am merging your Licence file now


Add W3C software and document license (2023-01-01)

Whilst previous W3C licenses are in the SPDX repository, the 2023-01-01 license version was not yet, there's an open pull request for that here: https://github.com/spdx/license-list-XML/pull/2269
As all the W3C groups tend to use GitHub for specification work, being able to select from the "Add a license" dropdown the latest W3C license is quite useful. A code-search for W3C in license files showed 49k code matches and 4k repositories.
The link https://spdx.org/spdx-license-list/request-new-license appears to be broken, so I sent a PR to the spdx repository, hopefully that's the correct process.
The previous version of this license is on the OSI's license list, the current version is not (I suspect just because it's not been updated?) https://opensource.org/license/w3c/ — I have tried to reach out to appropriate people at the W3C to follow the OSI's fairly lengthy process for updating their license.

I would not mind adding this eventually (though that doesn't mean it would automatically appear in the drop-down, which I think is fine, this really has a niche use case and people familiar with that can copy and paste). In addition to the SPDX and OSI processes (thanks for starting) the "used by" examples probably will need replacing. Not clear to me there's a license in the AS2 repo, and the others use a link which can't currently be detected, needs the full text.

I would not mind adding this eventually (though that doesn't mean it would automatically appear in the drop-down, which I think is fine, this really has a niche use case and people familiar with that can copy and paste). In addition to the SPDX and OSI processes (thanks for starting) the "used by" examples probably will need replacing. Not clear to me there's a license in the AS2 repo, and the others use a link which can't currently be detected, needs the full text.

The link format seems to be the most common way, rather than embedding the full text of the license.
To clarify, I'm just an independent, but it did come up at an SWICG meeting that having it searchable in the license list would make it easier for CGs and WGs to start repos.
Haven't been able to follow up on SPDX yet. Apparently I missed something in their process.

FWIW, looks like the SPDX license issue URL is uncool, moved to https://tools.spdx.org/app/submit_new_license/ without redirect. 😬

Whilst previous W3C licenses are in the SPDX repository, the 2023-01-01 license version was not yet, there's an open pull request for that here: https://github.com/spdx/license-list-XML/pull/2269
As all the W3C groups tend to use GitHub for specification work, being able to select from the "Add a license" dropdown the latest W3C license is quite useful. A code-search for W3C in license files showed 49k code matches and 4k repositories.
The link https://spdx.org/spdx-license-list/request-new-license appears to be broken, so I sent a PR to the spdx repository, hopefully that's the correct process.
The previous version of this license is on the OSI's license list, the current version is not (I suspect just because it's not been updated?) https://opensource.org/license/w3c/ — I have tried to reach out to appropriate people at the W3C to follow the OSI's fairly lengthy process for updating their license.

@


Fix ImagePicker crashed when it works with keyboard

I want to pop-up the image picker when I press a button. But if the keyboard is active and displayed on the screen, I will get a

-[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread.

crash error. Move present image picker view code to main thread queue is able to fix the problem.

Those methods should already be called on the main thread due to the
- (dispatch_queue_t)methodQueue
{
  return dispatch_get_main_queue();
}

Can you please provide a sample project demonstrating the crash so I can investigate further?

Hey @cizhaoyang! Thanks for making the pull request, but we are closing it due to inactivity (115 days with no activity) to make sure all pull requests are either being worked on or closed. If you want to get your proposed changes merged, please rebase your branch with master and send a new pull request :)
Based on the comment above:

Can you please provide a sample project demonstrating the crash so I can investigate further?


arrow keys don't change selection when tabbing to an input

As can be seen at http://select2.github.io/examples.html
When tabbing through the screen to the first select box that doesn't have select2, you can then hit up/down and cycle through the options.  If you tab to the second one, the first on the page that has select2, up and down while it's focused only scrolls the page up and down.  It should open the option list and let you key through it.
On multiple select boxes tabbing and using the arrows opens the option list.

Closing as duplicate of https://github.com/select2/select2/issues/3472

This is a duplicate of https://github.com/select2/select2/issues/3472. Multiple selects don't have a preexisting key binding for the arrow keys, so we are currently making it open the dropdown. Single selections do though.


Segmentation Fault When Calling meanStdDev or Mat.variance()

Describe the bug
I am encountering a segmentation fault when calling meanStdDev or the laplac.variance()  in the opencv_dart package. The crash seems to occur specifically after calculating the Laplacian of a grayscale image. This issue started happening after updating to the latest version of the package.
Environment
Package Version: 1.0.3+2
Flutter Version: 3.19.1
Platform: Android
Device: Redmi
Device Architecture: arm64-v8a
Android Version: 14
To Reproduce
Steps to reproduce the behavior:

Load an image from a file.
Convert the image to grayscale.
Calculate the Laplacian of the grayscale image.
Call meanStdDev on the Laplacian matrix.

Code Snippet
`import 'dart:io';
import 'dart:typed_data';
import 'package:opencv_dart/opencv_dart.dart' as cv;
import 'package:flutter/foundation.dart';
Future detectBlur(File file) async {
try {
// Load image from file
final Uint8List imageData = await file.readAsBytes();
debugPrint('Image data loaded successfully.');
// Convert image data to OpenCV format
final src = cv.imdecode(imageData, cv.IMREAD_COLOR);
if (src.isEmpty) {
  debugPrint('Failed to decode image.');
  return;
}
debugPrint('Image decoded successfully.');

// Convert image to grayscale
final gray = cv.cvtColor(src, cv.COLOR_BGR2GRAY);
if (gray.isEmpty) {
  debugPrint('Failed to convert image to grayscale.');
  return;
}
debugPrint('Image converted to grayscale.');

// Calculate Laplacian variance as a measure of blur
final laplac = cv.laplacian(gray, cv.MatType.CV_64F);
if (laplac.isEmpty) {
  debugPrint('Failed to calculate Laplacian.');
  return;
}
debugPrint('Laplacian calculated.');

// Ensure meanStdDev is being called correctly
final meanStdDevResult = cv.meanStdDev(laplac);
final mean = meanStdDevResult.$1;
final stddev = meanStdDevResult.$2;

debugPrint('Mean: ${mean.val}, StdDev: ${stddev.val}');

// Calculate the variance using the new variance method
final variance = stddev.val[0] * stddev.val[0];

// Determine if the image is blurry based on the variance threshold
const threshold = 400.0; // Adjust as needed
final isBlurry = variance < threshold;
debugPrint('Variance: $variance');
debugPrint('Image is blurry: $isBlurry');

// Clean up
src.release();
gray.release();
laplac.release();

} catch (e) {
debugPrint('Error occurred: $e');
}
}
**Error Logs**I/flutter (25538): Laplacian calculated.
I/libc    (25538): handling signal: 11
F/libc    (25538): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x13 in tid 25696 (1.ui), pid 25538 (cv_dart_example)
...
`
Expected behavior
The meanStdDev function should execute without causing a segmentation fault.
The function should return the mean and standard deviation of the Laplacian matrix as expected.
The application should be able to proceed to calculate the variance and determine if the image is blurry based on the variance threshold.
Additional context
The issue seems to be a null pointer dereference within the native library. The code works until the meanStdDev call. Here are the relevant changes from the changelog that might be related:
API change in v1.0.2: (Mat mean, Mat stdDev) meanStdDev(InputArray src, {OutputArray? mean, OutputArray? stdDev}) => (Scalar mean, Scalar stddev) meanStdDev(InputArray src, {InputArray? mask})
New: Mat.stdDev(), Mat.variance()
New: Scalar operator +, -, *, /, sqrt(), pow(int n)
The following existing code works fine on 1.0.1
` // Load image from assets or other sources
final imageData = await file.readAsBytes();
print('Image data loaded successfully.');
  // Convert image data to OpenCV format
  final src = cv.imdecode(imageData, cv.IMREAD_COLOR);
  print('Image decoded successfully.');

  // Convert image to grayscale
  final gray = cv.cvtColor(src, cv.COLOR_BGR2GRAY);
  print('Image converted to grayscale.');

  // Calculate Laplacian variance as a measure of blur
  final laplac = cv.laplacian(gray, cv.MatType.CV_64F);
  print('Laplacian calculated.');

I will test and try to reproduce it, thanks

I have tested your code with some small changes and it worked fine, both on windows and android...

Code
import 'package:opencv_dart/opencv_dart.dart' as cv;

void func() {
  // Convert image data to OpenCV format
  final src = cv.imread("test/images/circles.jpg", flags: cv.IMREAD_COLOR);
  if (src.isEmpty) {
    print('Failed to decode image.');
    return;
  }
  print('Image decoded successfully.');

  // Convert image to grayscale
  final gray = cv.cvtColor(src, cv.COLOR_BGR2GRAY);
  if (gray.isEmpty) {
    print('Failed to convert image to grayscale.');
    return;
  }
  print('Image converted to grayscale.');

  // Calculate Laplacian variance as a measure of blur
  final laplac = cv.laplacian(gray, cv.MatType.CV_64F);
  if (laplac.isEmpty) {
    print('Failed to calculate Laplacian.');
    return;
  }
  print('Laplacian calculated.');

  // Ensure meanStdDev is being called correctly
  final (mean, stddev) = cv.meanStdDev(laplac);
  final sd = laplac.stdDev();
  assert(sd == stddev);
  print('Mean: ${mean.val}, StdDev: ${stddev.val}');

  // Calculate the variance using the new variance method
  final variance = laplac.variance().val1;

  // Determine if the image is blurry based on the variance threshold
  const threshold = 400.0; // Adjust as needed
  final isBlurry = variance < threshold;
  print('Variance: $variance');
  print('Image is blurry: $isBlurry');
}

void main(List<String> args) {
  for (var i = 0; i < 1000; i++) {
    func();
  }
}

I also checked the source code carefully, but it seems every thing is ok, so the only reason I can think of is that the previous step may failed, try to save gray and laplac to see if it is really success

@rainyl Thank you for your prompt response.
After running the following setup commands:
dart run opencv_dart:setup android --arch x86_64 dart run opencv_dart:setup android --arch armeabi-v7a dart run opencv_dart:setup android --arch arm64-v8a
and updating the code to reference the variance correctly:
variance = laplac.variance().val1;
the issue has been resolved.
I appreciate your assistance!

You are welcome.


Author_profile not showing for single layout

[X] This is a question about using the theme.
[ ] This is a feature request or enhancement.
[ ] I believe this to be a bug with the theme.

[X] I am using the latest version of the theme.
[X] I have updated all gems with bundle update.
[X] I have tested locally with bundle exec jekyll build.

Environment informations

Minimal Mistakes version: 4.10.0
Jekyll version: 3.6.2
GitHub Pages hosted: yes
Operating system: Windows 10 Pro

Expected behavior
Can't manage to see Author_Profile in any post
Example: https://pateskinasy.github.io/blog-test/
Background:
Layout for post is single
Author_profile is set to true (both in config.yml defaults as well as in post YAML), but I can't figure out what sort of CSS interference is going on
I've even tried the suggested solution in this issue: https://github.com/mmistakes/minimal-mistakes/issues/735, but no luck
Steps to reproduce the behavior

https://github.com/pateskinasy/pateskinasy.github.io
$ bundle exec jekyll build --trace
Configuration file: C:/Users/Patricia/documents/github/pateskinasy.github.io/_co                                                                                nfig.yml
Source: C:/Users/Patricia/documents/github/pateskinasy.github.io
Destination: C:/Users/Patricia/documents/github/pateskinasy.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
Remote Theme: Using theme mmistakes/minimal-mistakes
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
Liquid Warning: Liquid syntax error (line 4): Unexpected character & in "paginator.page == 1 && featured_posts.size > 0" in /_layouts/home.html
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/main.scss':
File to import not found or unreadable: minimal-mistakes/skins/contrast. Load path: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-theme-primer-0.5.2/_sass on line 3
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-sass-converter-1.5.0/lib/jekyll/converters/scss.rb:123:in rescue in convert': File to import not found or unreadable: minimal-mistakes/skins/contrast. (Jekyll::Converters::Scss::SyntaxError) Load path: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-theme-primer-0.5.2/_sass on line 3         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-sass-converter-1.5.0/lib/jekyll/converters/scss.rb:118:in convert'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:98:in block in convert'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:96:in each'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:96:in reduce'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:96:in convert'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:80:in render_document'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:62:in run'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:466:in block in render_pages'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:464:in each'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:464:in render_pages'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:193:in render'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:73:in process'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/command.rb:28:in process_site'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:65:in build'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:36:in process'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:18:in block (2 levels) in init_with_program'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go'         from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/exe/jekyll:15:in <top (required)>'         from C:/Ruby25-x64/bin/jekyll:23:in load'
from C:/Ruby25-x64/bin/jekyll:23:in `'
$ bundle exec jekyll build --trace ---verbose is ultra long, let me know if needed.

The author profile is there, it's just not populating it with any content which makes it look like it's blank.

What I believe is happening is your posts have author: "Pat Eskinasy" in their YAML Front Matter. When you use this method you also have to include a key with that data in _data/authors.yml so it knows what name, image, social links, etc. to pull in.
Check the documentation on an example of that.
If your site is a single author site just remove those author lines from the post. The theme will use what you've defined as the author in _config.yml instead.

Thanks Michael. Confirmed. Removing the author line from the post file did the trick.
Thanks again


merge Open File and Open Folder into one

afaik Mac version only has open, which can open either open files or directories.
however, Linux version has two different option, Open File and Open Folder, which is very frustrating to use because what if i wanted to open a directory but accidently pressed Open Folder and vice versa?
at least an option to merge the both one as Open would be great.
vscode version:
Version: 1.71.2
Commit: 74b1f979648cc44d385a2286793c226e611f59e7
Date: 2022-09-14T21:12:14.256Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.15.0-48-generic
Sandboxed: No

I think this is a limitation of the native APIs, cc @bpasero

Only macOS allows to pick files and folders at once from the native dialog. We would have to use the custom file picker maybe for this case, not sure whether it is supported @alexr00

The simple file picker does support this, but I assume that the Open commands are contributed based on the OS.

maybe it could be resolving by using this solution to relevent electron code?


pyenv install python 2.7.8 numpy not work

I have problem with numpy install in pyenv installed python2.
Details:
System: Ubuntu 14.04
Python:  pyenv install 2.7.8
Python Env: pyenv virtualenv 2.7.8 test_env
Numpy: pip install numpy
The error is following:
$ python
Python 2.7.8 (default, Jan  7 2016, 17:45:25)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/shixd/.pyenv/versions/test_env/lib/python2.7/site-packages/numpy/__init__.py", line 180, in <module>
    from . import add_newdocs
  File "/home/shixd/.pyenv/versions/test_env/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/home/shixd/.pyenv/versions/test_env/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/home/shixd/.pyenv/versions/test_env/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/home/shixd/.pyenv/versions/test_env/lib/python2.7/site-packages/numpy/core/__init__.py", line 14, in <module>
    from . import multiarray
ImportError: /home/shixd/.pyenv/versions/test_env/lib/python2.7/site-packages/numpy/core/multiarray.so: undefined symbol: PyUnicodeUCS4_AsUnicodeEscapeString

How should I fix this problem?
The Ubuntu system has python 2.7.6 as default.

Google it
http://stackoverflow.com/questions/15403273/possible-conflicting-python-installations

The problem in my case is not same as: http://stackoverflow.com/questions/15403273/possible-conflicting-python-installations
$ which python
/home/shixd/.pyenv/shims/python

this is no numpy installed in /usr/local/lib/python2.7/dist-packages
What is the problem causing this? Can pyenv handle it?
What are the additional operations needed for set it up?

My case on Mac OS X 10.9.5 and python 2.7.11 was solved with tweaking build options.
First messages I got :
cu39@mbp:~/% pyenv local 2.7.11
cu39@mbp:~/% python
Python 2.7.11 (default, Mar 20 2016, 22:38:41)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
(...)
ImportError: dlopen(/Users/cu39/.anyenv/envs/pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString

suggests multiarray.so does not have _PyUnicodeUCS2_AsASCIIString which is supported with nm's output (U means Undefined) (reflink) :
cu39@mbp:~/% nm ~/.anyenv/envs/pyenv/versions/2.7.11/lib/python2.7/site-packages/numpy/core/multiarray.so | grep _PyUnicode
0000000000156ae8 d _PyUnicodeArrType_Type
                 U _PyUnicodeUCS2_AsASCIIString
                 U _PyUnicodeUCS2_AsUnicodeEscapeString
                 U _PyUnicodeUCS2_FromUnicode
00000000000dcc50 t _PyUnicode_FromUCS4
                 U _PyUnicode_Type
0000000000150d68 d __PyUnicode_ArrFuncs

BTW python-build (pyenv install) builds them with --enable-unicode=ucs4 (source) #257
You can confirm it in REPL (reflink) :
>>> import sysconfig
>>> sysconfig.get_config_vars()['CONFIG_ARGS']

numpy wheel for OS X have been built for UCS2-enabled python so my case was solved with giving PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 to pyenv install :
CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \
PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
pyenv install -v 2.7.11

pip install --upgrade pip
pip install numpy

>>> import numpy

Though this is not a case for Ubuntu in which python deb package is UCS4-enabled, investigations with nm and sysconfig.get_config_vars() may give you some hints.

The above information by @cu39 resolved my issue. I was receiving the undefined symbol exception on OSX, using tox on top of a pyenv virtualenv. I hit the ImportError exceptions with undefined UCS2 symbols on pyzmq and lxml.etree while rerolling the pyenv/tox envs. Wiping both and rebuilding my Python versions with PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 resolved the issue.
Also, as this was an issue of the wheels being installed from UCS2 builds, installing with pip --no-binary lxml,pyzmq would in theory have the same effect for my case -- that is, if i wanted to special case all of my tox configurations.
I believe pep 513 aims to address this, though I'm not sure what tool support looks like currently.

@cu39 the solution also worked for me, but I had to delete my old virtualenv which was build based on the Python 2.7.11 that didn't have the specified configurations, and build a new virtualenv that's based on the configured Python 2.7.11, thanks!


UI: Display filament material in the dropdown when creating spool

currently when you add a spool and select the filament from the dropdown it shows vender and name (usualy colour) but not material. that means that do see what material it is in the dropdown you need to put it in the name as well as in the material section. but then in the spool list you end up with the material listed twice.
i recomend adding the filament material to the dropdown along with name and vender so you dont need redundent information in different fields

i decided to just do it and make a PR


Only apply GF_INSTALL_PLUGINS env var if there are plugins

I Used to be able to set GF_INSTALL_PLUGINS through a ConfigMap using envFrom.
This appears to have broken as GF_INSTALL_PLUGINS gets set on the grafana container whether or not there are plugins to be managed by the dashboard/datasource CRs. The container then has an empty GF_INSTALL_PLUGINS env variable.
$ env | grep PLUGINS
GF_INSTALL_PLUGINS=

This change should mean that the env variable only gets created on the container if plugins are managed by the operator.

Closing as bitnami/grafana image is now fixed to handle grafana-operator GF_INSTALL_PLUGINS env var.


PLSR ValueError

First of all, thanks to you guys for organizing such a useful and lightweight algorithm package.
In program PCA， it works perfectly。
The problem appears in PLSR，I got matrix A (shape(96， 158)) as arrX and matrix B (shape(96, 1)) as arrY.
When I run code like ‘model = ho.nipalsPLS1(arrX=mathdata, vecy=value, numComp=4, Xstand=False, )’, I got error ‘ValueError: shapes (96,1,4) and (4,1,158) not aligned: 4 (dim 2) != 1 (dim 1)’。
My operating environment is win7 + Anaconda（python3.6）
I hope this situation can be resolved as soon as possible。
THX again.

No worries. Glad you found hoggorm useful so far. And sorry about the late reply ... drowning in work. Could you copy and paste the full error message for me? I could not reproduce the error with my own data.

Hi,
Sorry about the late reply ，drowning in work too.
I have tried to import data from .csv(I used to import data from .mat(matlab data format))after that，and no errors have occurred，I don't know why there is such a difference.
Anyway，it works(Modeling).
Apart from this，is there any function that can be used directly for prediction?I did not find  related information in the help documentation.

Hi,
thank you for your feedback. If the error should occur again, I'd be very thankful if you could send me the error message. Using numpy.freeze (https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.squeeze.html) at the place where the error occurs should fix the problem.
There is indeed a class method (function) that you can use for prediction. It is Y_predict(). You can find it here:
http://hoggorm.readthedocs.io/en/latest/plsr.html#hoggorm.plsr1.nipalsPLS1.Y_predict
Thanks again for reporting back.


Unable to load World [1.7.10]

I was planning to use TerrainControl, followed the guide from the wiki. But there is an Issue I don't know why it's coming.
https://pastebin.com/uwxDxNab
It is an instant shutdown and I can't join the world.
I know I am using an old Minecraft Version but I'd ask for help/possible fix please.
Note: This is Forge Singleplayer.

1.7.10 is not supported.


Do not propagate applyset labels

Pull Request Motivation

Resources with applyset labels will be pruned, which is problematic.
Instead of a generic annotation to control label propagation, the applyset labels are always excluded. This should be a good middleground whilst an API for doing this in a more generic way is discussed. The label should not ever be propagated, and so is a safe default.
Fixes: #7306
Kind

/kind bug

Release Note

NONE

/kind bug

Thanks for reviewing @ThatsMrTalbot! :)


Refactor application controller

This refactors some methods out of ApplicationController, adding them to new Encoder and NotificationEndpoint concerns. The ZencoderAuthentication concern has been removed, and its authentication statement has been subsumed by NotificationEndpoint.
In the process of refactoring, Encoder#create_media has been given the ability to handle exceptions thrown by #create_transcoding_job, which had apparently been left out as an oversight.
Coverage should be slightly improved with the refactored tests.
I've removed an unnecessary test for http_basic_authenticate_with because that functionality should be verified by Rails's tests.
See https://issues.dp.la/issues/8072

@markbreedlove This all looks good to me.  I made one suggestion of a place to add a comment, but otherwise, I think this is good to go, once its been rebased to develop, and squashed if you're so inclined.

OK, that's squashed into two commits and rebased.


Hardcoded true value for mv

https://github.com/rvkulikov/pg-deps-management/blob/main/ddl.sql#L551
this line is hardcoded, parameter should be used

Done


New integration: The Lounge self hosted web IRC client.

And a ZIP for those who want to have the plug-in right away!
thelounge.zip

there's a way to port it for franz 5


[Content update] DaprCon blog post

URL
https://blog.dapr.io/posts/2022/08/17/announcing-daprcon-2022/
Description
Would like to update the daprcon blog post to include the daprcon schedule, and edit the wording for virtual viewing to clarify there is no live streaming. DaprCon can only be viewed virtually via the dapr youtube channel the next day.

Close


How do you want to implement the Android build system for Linux? bash, python, cmake, etc.

I'm considering porting the android build to work from Linux.
If I do, will you consider merging it?
Looks trivial, just porting those .bat under android, which basically just call mkdir, cp and android?
If yes, then how do you want it to be done?
I see a few possibilities:

bash: would be easy to do, but would duplicate the Windows .bat thing
python: also easy, and would work both on Windows and Linux. Only possible concern is availability in Windows
cmake: not sure if possible, a bit less easy, but would be good since already used in repo

The newer examples already use python to build with the NDK on linux, so no need for a PR. I'll move all examples from the windows batch files to pyhton scripts in the future.

Ah true, they actually work! :-)
cd android/pbrbasic
android update project -p . -t android-23
python build.py

I'm currently going through all examples adding support for ASTC and ETC2 texture compression format and will also replace the batch files with python build files along the way.

@cirosantilli: I have so far updated all build files to python, including the ones in the base folder for building all examples. The samples use android-23 by default, if you want to change you need to adjust the SDK_VERSION variable in the main build.py (in the android folder). I'll update the documentation later on.
Note that I have only tested this on windows, so I'll leave this issue open until I get positive feedback on this from a linux user.

Has python build-all.py run for you without exceptions? :-)
For it to work in Python 2 (I'd recommend writing a Python 2 / 3 subset), off the bat you need:
diff --git a/android/build-all.py b/android/build-all.py
index 56b46dc..9d9849a 100644
--- a/android/build-all.py
+++ b/android/build-all.py
@@ -70,7 +70,7 @@ print("Building all examples...")

 for example in EXAMPLES:
     print(COLOR_GREEN + "Building %s (%d/%d)" % (example, CURR_INDEX, len(EXAMPLES)) + COLOR_END)
-    if subprocess.call("python build.py %s %s" % (example, BUILD_ARGUMENTS)) != 0:
+    if subprocess.call(["python", "build.py", example, BUILD_ARGUMENTS]) != 0:
         print("Error during build process for %s" % example)
         sys.exit(-1)
     CURR_INDEX += 1
diff --git a/android/build.py b/android/build.py
index 1097d78..f1b1fd9 100644
--- a/android/build.py
+++ b/android/build.py
@@ -20,7 +20,7 @@ if not os.path.exists(PROJECT_FOLDER):
 # Check if a build file is present, if not create one using the android SDK version specified
 if not os.path.isfile(os.path.join(PROJECT_FOLDER, "build.xml")):
     print("Build.xml not present, generating with %s " % SDK_VERSION)
-    if subprocess.call("android.bat update project -p ./%s -t %s" % (PROJECT_FOLDER, SDK_VERSION)) != 0:
+    if subprocess.call(["android", "update", "project", "-p",  PROJECT_FOLDER, "-t", SDK_VERSION]) != 0:
         print("Error: Project update failed!")
         sys.exit(-1)

@@ -29,7 +29,7 @@ if not os.path.isfile(os.path.join(PROJECT_FOLDER, "build.py")):
     print("Error: No build script present!")
     sys.exit(-1)

-BUILD_ARGUMENTS = ""
+BUILD_ARGUMENTS = []
 for arg in sys.argv[1:]:
     if arg == "-deploy":
         BUILD_ARGUMENTS += "-deploy"
@@ -37,12 +37,14 @@ for arg in sys.argv[1:]:
         BUILD_ARGUMENTS += "-validation"

 os.chdir(PROJECT_FOLDER)
-if subprocess.call("python build.py %s" % BUILD_ARGUMENTS) != 0:
+if subprocess.call(["python", "build.py"] + BUILD_ARGUMENTS) != 0:
     print("Error during build process!")
     sys.exit(-1)

 # Move apk to bin folder
-os.makedirs("../bin", exist_ok=True)
+bin = "../bin"
+if not os.path.exists(bin):
+    os.makedirs(bin)
 for file in glob.glob("vulkan*.apk"):
     print(file)
     shutil.move(file, "../bin/%s" % file)

But then we get TypeError: makedirs() got an unexpected keyword argument 'exist_ok' on Python 2.
And because of code duplication that has to be fixed in all directories if we want to support Python 2 :-(
I might do a full patch later if you are interested in reviewing it.

Is Python 2 still widely used? I moved to version 3.x for all private and work projects so I went for Python 3 compatibility. Any reason you can't upgrade?
I plan on having only one build script template in the future that is auto-generated for each example upon build time, which would make changes a lot easier.

Python 2 is the default on the latest Ubuntu 16.10, and so I expect it to be the case for most distros.

Is Python 2 still widely used? I moved to version 3.x for all private and work projects so I went for Python 3 compatibility. Any reason you can't upgrade?

Most distros also come with Python 3, but here it doesn't work to simply do python3 build-all because of the subshell calls to python.
And using setting python 3 as you default python is asking for trouble since many components use Python.
Not to mention corporate environments, which will be running Ubuntu 16.04 until 2020 :-)
Writing Python 2 / 3 subset for such simple scripts is simple however,  exist_ok should be the last obstacle. I can patch if you will review it.

I plan on having only one build script template in the future that is auto-generated for each example upon build time, which would make changes a lot easier.

Awesome. I also recommend that instead of auto-generating python code, that we just use standard python imports or the like.

Is Python 2 still widely used? I moved to version 3.x for all private and work projects so I went for Python 3 compatibility. Any reason you can't upgrade?

Because there's still a lot of Python v2 specific code around, all the distros still provide Python v2.  Except for older enterprise distros, all the still supported distros versions support also Python v3.

Python 2 is the default on the latest Ubuntu 16.10, and so I expect it to be the case for most distros.

I assume you mean that /usr/bin/python symlink points to Python v2.  That's for backwards compatibility, and won't change.  At some point it will just go away:
https://www.python.org/dev/peps/pep-0394/
Ubuntu has supported Python v3 at least since 12.04.  Python v3 scripts just need to use correct hashbang: /usr/bin/python3

@eero-t yes, updating shebangs and the subprocess calls to ['python3' would be fine too.

Finally found some time to rework the android build scripts. As of now there is only one global python build script (android/build.py) and the examples are defined using .json files (e.g. android/pbrtexture/example.json). The build script will use these json definition files to gather assets and build the example. It should now also run fine on Linux but still require python3.

Android build works fine now.

All I'd need to close this issue is: https://github.com/SaschaWillems/Vulkan/pull/391 :-)


parsed_yaml.js generator doesn't escape backticks

what the title says, this breaks the keyboard online
(created by emanresu A here)

Oops