Line number plugin not working when the last line has no value

Information:

Prism version: 1.25.0
Plugins: [prism-line-numbers]
Environment: [Node]

Description
Last line number is not displaying,  If there is no values on last line.
Example
An example which reproduces the bug. This can be a link to a website - https://codepen.io/shank78/pen/yLowwev

There must not be any spaces between opening/closing
 and  tags.
This is incorrect:

var a =10;
var b = 15;

This is how it should be:

var a =10;
var b = 15;

Hope this helps @Shank78.

Thanks for quick response. In my case if I enter in the below example URL line no 3 is not showing, once started typing or when it has some value, the line number will be displayed.
Example URL - https://codesandbox.io/s/intelligent-field-96t6o

Your example isn't working for me so I don't know what you're seeing but I can guess. The
 element has the interesting property that it won't display the last line of text if that line is empty. That's in the HTML standard, it's not something Prism does. That's pretty much your problem, right?
Example: The following code blocks will both display the exact same text (with our without PrismJS):

foo
bar</foo>

foo
bar
</foo>

See it live here.
The "fix" is to add an additional new line to the code before you display it. So:

            {code + "\n"}

Yes. In my case is editor so if I adding "\n" always it will be a extra line and my expectation is need to display the last line number from prism line number if the last line is empty. I saw your example(https://jsfiddle.net/58tye71r/) here also the pre tag is showing empty if there is no value(highlighted as yellow color). The same thing I am expecting. Can we do from prism js with prism line number plugin.

The below hook is working but one issue it is not considering the line height like if we have more rows for 1 line
Modified Example URL - [https://codesandbox.io/s/intelligent-field-96t6o]
First line code : let id = document.getElementByid("main-header-id")
second line code : id.innerHtml("Hello World")
Prism.hooks.add("complete", function (env) {
// works only for  wrapped inside  (not inline)
var pre = env.element.parentNode;
var clsReg = /\s*\bline-numbers\b\s*/;
if (
!pre ||
!/pre/i.test(pre.nodeName) ||
// Abort only if nor the  nor the  have the class
(!clsReg.test(pre.className) && !clsReg.test(env.element.className))
) {
return;
}
  if (env.element.querySelector(".line-numbers-rows")) {
    // Abort if line numbers already exists
    return;
  }

  if (clsReg.test(env.element.className)) {
    // Remove the class "line-numbers" from the
    env.element.className = env.element.className.replace(clsReg, "");
  }
  if (!clsReg.test(pre.className)) {
    // Add the class "line-numbers" to the

    pre.className += " line-numbers";
  }

  var linesNum = 1 + env.code.split("\n").length;
  var lineNumbersWrapper;

  var lines = new Array(linesNum);
  lines = lines.join("");

  lineNumbersWrapper = document.createElement("span");
  lineNumbersWrapper.className = "line-numbers-rows";
  lineNumbersWrapper.innerHTML = lines;

  if (pre.hasAttribute("data-start")) {
    pre.style.counterReset =
      "linenumber " + (parseInt(pre.getAttribute("data-start"), 10) - 1);
  }

  env.element.appendChild(lineNumbersWrapper);
});

I'm sorry @Shank78 but I don't understand what you mean.
The empty-line problem is solved by adding an extra "\n" (as I said before). Changing your example does fix the problem.
@@ -38,7 +38,7 @@
         />

-            {code}
+            {code + "\n"}

can we use the above hooks to add height or any way to achieve?
Expected like this, Can we achieve this with prism - Sample URL with Prism customization

Sorry, I don't get what you mean. Do want to wrap each line into a
 like prism-react-render (thridparty) does?


Tween .onLoop doesn't trigger

I noticed this since Phaser 2.4.6 re-coding a YouTube tutorial Space Invaders clone. As the alien ships fly left and right they never move down. Using Chrome developer tools, I notice Tween .onLoop never triggers as stated in the API docs (http://phaser.io/docs/2.4.7/Phaser.Tween.html#onLoop). In the Space Invaders example, using .onRepeat instead creates the expected behavior.
In the Phaser example pages, a similar Space Invaders example (http://phaser.io/examples/v2/games/invaders#gv) uses .onLoop and you can see the bug here as the aliens never move down. .onLoop never triggers the descend() function.
function descend() {
    aliens.y += 10;
}

As the Phaser example allows me to switch versions, I noticed .onLoop works in version 2.4.4 and stops working in 2.4.5+.

I also noticed that onRepeat now acts just like onLoop used to. I don't know what's the reason behind this; I'm also curious to find out.

Richard fixed this in 2.4.7:
https://github.com/photonstorm/phaser/releases/tag/v2.4.7

Tween.update wouldn't dispatch an onLoop signal for Tweens with just one child, such as those created via Tween.to with -1 as the repeat value

In Phaser 2.4.7, with code very similar to the example from http://phaser.io/examples/v2/games/invaders lines 121-124, .onLoop still doesn't seem to work in my local dev environment - with the parameters specified..
Note that the phaser example from http://phaser.io/examples/v2/games/invaders uses 2.4.6 as default and has a problem even loading "phaser.2.4.7.min.js" which makes it hard to verify either way.
I looked at your code sample from issue https://github.com/photonstorm/phaser/issues/2407 and experimented with settings similar to your - it WORKS, sort of. The notable difference being the .tween.to "repeat" parameter. Only with repeat = -1 (infinite repeat) will onLoop trigger. With any other finite value for "repeat" (ex. 50 or 1000), onLoop does nothing.

Thank you for taking the time to open this issue. However, official support for Phaser 2 has now ended as we focus on preparing Phaser 3 for beta release. In a bid to keep the project tidy, and avoid confusion, we are closing all v2 related issues.
This does not mean your issue won't be looked-at. In November 2016 the Phaser CE (Community Edition) project began. The aim of Phaser CE was to allow the community to continue v2 development. Since then it has gained significant traction, with many updates and releases.
If you are still interested in having your issue investigated we strongly recommend testing the latest Phaser CE release. And only if the problem persists, opening an issue on the Phaser CE repo.


bump requests version

bump requests library version for yarn-exporter

Coverage increased (+0.01%) to 51.774% when pulling 5c6ed3961cd56bd626ef64775c65d744bc55ad71 on dixu/bump-requests-version into 1d018a7fb268aca116a663298011137ee6f07cde on master.

Coverage increased (+0.01%) to 51.774% when pulling 5c6ed3961cd56bd626ef64775c65d744bc55ad71 on dixu/bump-requests-version into 1d018a7fb268aca116a663298011137ee6f07cde on master.


Run median expr on parquet file column got error

Describe the bug
A clear and concise description of what the bug is.
    Finished dev [unoptimized + debuginfo] target(s) in 0.57s
     Running `target/debug/datafusion-cli`
DataFusion CLI v13.0.0
❯ create external table test stored as parquet location '/Users/yangjiang/test-data/tpch-1g/orders';
0 rows in set. Query took 0.015 seconds.
❯ select median(o_totalprice)  from test;
ArrowError(InvalidArgumentError("number of columns(10) must match number of fields(1) in schema"))
❯ select max(o_totalprice)  from test;
+------------------------+
| MAX(test.o_totalprice) |
+------------------------+
| 555285.16              |
+------------------------+
1 row in set. Query took 0.181 seconds.
❯

To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

Likely related to expression renaming. Thanks for the report @Ted-Jiang


♻  Removing unused file ExperienceTestHelper

@andretortolano ok if we close this one? I suggest we leave as-is for now, as this still has use in the UI tests we're now running with Roborazzi.


Update rest api versioning from query param to uri

As per Rest api guidelines we should have api versioning in the path rather than the query parameter...
For more information please refer to the below:

my open issue: https://github.com/MicrosoftDocs/azure-devops-docs/issues/12072
rest guidelines:  https://gist.github.com/chrisidakwo/d5c10343cc406ebee33575e21a6a63ce

@danflorescu96 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks @danflorescu96! Let's leave the Azure DevOps-specific example, good idea. If you could remove your text ("We could delete the below, unless we want an example of something specific to azure dev ops...") and label the example, I'm happy to have your update merged! Thanks so much. Hope you have a great day!

@danflorescu96 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@danflorescu96 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

thanks @chcomley !
Made the change there- please let me know if thats enough :)


Ingest creates multiple alerts

Grafana says there were 29.3K alerts on 1/11/22
Created a list of alerts in ztf_ingest with a timestamp in the right range and got 81786
Downloaded these using kafkacat and got 82630 (not sure where the extras come from)
These are mostly duplicates with only 29573 unique lines.
Files are in lasair-ztf-bootstrap:~/ingest_221101
ubuntu@lasair-ztf-bootstrap:~/ingest_221101$ wc -l list
81786 list
ubuntu@lasair-ztf-bootstrap:~/ingest_221101$ wc -l ingest_221101
82630 ingest_221101
ubuntu@lasair-ztf-bootstrap:~/ingest_221101$ cat ingest_221101 | sort | uniq | wc -l
29573

The number 81786 agrees with the status file that comes from adding individual batches on 2 nodes each with 2 processes. But other tests -- that have a single large batch -- show only 29339 from that day. I think something is wrong with the multi-processing combined with the consumer, maybe the commit() is not going through properly. See here and here.

Fixed now


Training own data get error

Hi
Thank you for making this repo. I made a 360 deg dataset of 100 pictures by iphone，which frames extracted from video. The ori picture size is (1080,1920).  I successfully used Colmap gui and imgs2poses.py  to estimate the camera poses for my own dataset. When start training nine epochs，the eval result is not very good.
The parameters for a recent experiment are listed below:
Branch: master
Data: https://drive.google.com/drive/folders/1vDBGXQXosueued3NIhC0nl8ob22D9q7p?usp=sharing
Code:
python train.py
--dataset_name llff
--root_dir $DATASET_PATH
--N_importance 64 --img_wh 270 480
--num_epochs 60 --batch_size 1024
--optimizer adam --lr 5e-4
--lr_scheduler steplr --decay_step 20 40 --decay_gamma 0.5
--exp_name $EXP_NAME
--spheric_poses
python eval.py
--root_dir $DATASET_PATH
--dataset_name llff --scene_name $SCENE_NAME
--img_wh 270 480 --N_importance 64 --ckpt_path $CKPT_PATH
--spheric_poses
Output train and eval result:

for this result，I think the reason may be that the data scene is too complex and the way of taking pictures is wrong. but I don't know where to take it from here. Hope to get your answer.
Thanks!

Hi there, I think one possible reason is that the estimated camera pose is not very accurate. The original NeRF are very sensitive to this. I encountered similar issue for custom llff-style dataset, and I solve this by using a deformable nerf (which tolerate small error of camera pose). My implementation is based on NeRF-pl, and if you are interested you can take a look.


bug: Type Instantiation is excessively deep Error when Defining a Job schema with eventTrigger

Provide environment information
System:
OS: Linux 6.1 Manjaro Linux
CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Memory: 20.98 GB / 31.13 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.5.1 - ~/.nvm/versions/node/v20.5.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v20.5.1/bin/yarn
npm: 9.8.0 - ~/.nvm/versions/node/v20.5.1/bin/npm
Describe the bug
Description
While implementing a job that fetches and stores Discourse posts using the Trigger.dev SDK and Supabase, I encountered a TypeScript error: "Type instantiation is excessively deep and possibly infinite (ts2589)".
The error occurs when defining the eventTrigger as shown below:
client.defineJob({
  id: "discourse-example-job",
  name: "Fetch and Store Discourse Posts",
  version: "0.0.1",
  trigger: eventTrigger({
    name: "supabase.fetch-data",
    schema: z.object({
      org_id: z.string(),
      base_discourse_url: z.string(),
    }),
  }),
  // ... (rest of the code)
});

Error Message
Type instantiation is excessively deep and possibly infinite.ts(2589)
Reproduction repo
Private Repo
To reproduce
Steps to Reproduce

Define a job using client.defineJob
Inside the eventTrigger method, define a z.object schema with the properties as shown above.
Upon doing so, the TypeScript error appears.

Expected Behavior
I expect to be able to define the job's trigger with eventTrigger and the z.object schema without encountering a TypeScript error.
Additional information
Additional Information
<EMAIL_ADDRESS>"^2.0.14",
<EMAIL_ADDRESS>"^2.1.0",
<EMAIL_ADDRESS>"^2.0.14",
<EMAIL_ADDRESS>"^2.0.14",
Node version: v20.5.1

This is caused by the project's zod version and @trigger.dev/sdk's zod version mismatch.
https://github.com/ericallam/t3-trigger-app/pull/1.
Try using zod 3.21.2 in your project.


ERR_HTTP_HEADERS_SENT

Lib versions:

"applicationinsights": "1.8.10",
"applicationinsights-native-metrics": "0.0.6"

Node: 14.16.1
OS: Alpine 3.13.4
ApplicationInsights:Request-Context header could not be set. Correlation of requests may be lost [
  Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
      at ClientRequest.setHeader (_http_outgoing.js:558:11)
      at Function.Util.safeIncludeCorrelationHeader (/app/node_modules/applicationinsights/out/Library/Util.js:325:21)
      at Function.AutoCollectHttpDependencies.trackRequest (/app/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js:137:26)
      at clientRequestPatch (/app/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js:52:45)
      at https.request (/app/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js:74:13)
      at Request._makeRequest (/app/node_modules/got/dist/source/core/index.js:1124:43)
      at /app/node_modules/got/dist/source/core/index.js:328:28
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:93:5) {
    code: 'ERR_HTTP_HEADERS_SENT'
  }
]
ApplicationInsights:Correlation headers could not be set. Correlation of requests may be lost. [
  Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
      at ClientRequest.setHeader (_http_outgoing.js:558:11)
      at Function.AutoCollectHttpDependencies.trackRequest (/app/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js:144:43)
      at clientRequestPatch (/app/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js:52:45)
      at https.request (/app/node_modules/applicationinsights/out/AutoCollection/HttpDependencies.js:74:13)
      at Request._makeRequest (/app/node_modules/got/dist/source/core/index.js:1124:43)
      at /app/node_modules/got/dist/source/core/index.js:328:28
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:93:5) {
    code: 'ERR_HTTP_HEADERS_SENT'
  }
]

We've started to see this happening in a TEST environment following a deployment on March 3rd (commit 32ade704). This commit didn't bring any meaningful changes to the code of the dependencies.
Previous deployment on that environment happened on March 2nd (commit cabb09a4ec) and didn't generate any of those messages.
Only meaningful thing that we've been able to track down was that the underlying Node version we were running on changed.
Deployment generating those messages was running on top of Node 14.16.0.
Previous deployment was running on top of Node 14.15.5

This is very consistent and happens on a daily basis.
These messages are generated for ~x% of our daily traffic (where 0.091 <= x < =7.837)
As this is a test environment, it doesn't get hit a lot. The daily traffic since March 3rd varies between 68k and 243k daily requests.

We eventually made some progress. It looks like some of our clients decided that sending a expect: 100-continue header would be an interesting experience.
Would you have guidance/experience with regards to usage of applicationinsights in a Node context and dealing with this header?

@nulltoken looks like the moment the outgoing request have this header the SDK cannot set custom headers anymore, this is not critical issue because is just failing to add the correlation header to the request that is still not completely done and it would be added once the expect header is not present anymore, you can turn off internal logging if this adding to much noise, or disable correlation injection for a specific domain using correlationHeaderExcludedDomains

How can I turn off this internal logging for app insights?

@0Dmitry you can use enableInternalDebugLogging, there is more info here


Allow tern to use an external tool as an analyzer for container images

Describe the Feature
Have tern use an external analyzer to analyze the filesystem's contents in a container image
Use Cases

Hook up an external file scanner (like scancode)
Hook up an external database querying tool
Hook up a security scanner

Implementation Changes

Allow room in the layer object to hold the output of the tool
Give a command line argument to run the tool
Implement formulating the subprocess command for tern to invoke and dump the output to the layer object property.
Report out the layer object property in all the reports available
Might be dependent on #262

Stretch goal - Release 1.0.0 for November

Steps to accomplish:

Create a files_analyzed property for each layer with appropriate tests
Create an analyzed_output property for each layer with appropriate tests
Create an extensions.yml file which can be empty for now
Create a report subcommand option called -x or --extend which will take in a string
Create functionality that will create the command to run the given tool, run it against each layer filesystem, and return the result and error. This will be a new file called passthrough.py in report.
In report.py for the execute_docker_image and execute_dockerfile functions, check to see if the --extend flag exists, and if it is, call the main function in passthrough.py that does all the work.
Special for SPDX documents: files_analyzed would be true for each layer. analyzed_output can be dumped into PackageComment for now.

#470 created a plugin for cve-bin-tool. We now need something that demonstrates filling up the properties for the images. Possible candidate is scancode. Roadblocks to this is that scancode is supported in python2.7 but not python3. Another candidate is binaryanalysis-ng, which is easier because python3 is supported. It cannot be installed using pip though.

Scancode's develop branch is now fully ported to python3. I will go ahead and try to build a plugin for it. @pombredanne I owe you this :)

The default, yaml and json report now includes scancode data. Closing.


pyff metadata job doesn't fail if upstream source is broken

in /opt/metadata/idps_feed.fd we explicitly have
- load verify_tls fail_on_error True:
    - /opt/metadata/certs/surfconext.xrd
    - /opt/metadata-src

However, if upstream is broken, pyff will simply ignore that source and continue, instead of exiting, causing out metadata feed to be broken:
Mar 12 16:00:03 meta-af1 systemd[1]: Starting pyFF Metadata processing...
Mar 12 16:00:03 meta-af1 pyff-metadata[828054]: Processing '/opt/metadata/idps_feed.fd'
Mar 12 16:00:13 meta-af1 pyff-metadata[828056]: WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f55244a1eb0>: Failed to establish a new connection: [Errno 111] Connection refused')': /signed/2023/idps-metadata.xml
Mar 12 16:00:14 meta-af1 pyff-metadata[828056]: WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f55244440a0>: Failed to establish a new connection: [Errno 111] Connection refused')': /signed/2023/idps-metadata.xml
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5524444250>: Failed to establish a new connection: [Errno 111] Connection refused')': /signed/2023/idps-metadata.xml
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: WARNING:pyff.fetch:error fetching https://metadata.test.surfconext.nl/signed/2023/idps-metadata.xml
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: WARNING:pyff.fetch:HTTPSConnectionPool(host='metadata.test.surfconext.nl', port=443): Max retries exceeded with url: /signed/2023/idps-metadata.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5524444d00>: Failed to establish a new connection: [Errno 111] Connection refused'))
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: ---
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: total size:     4
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: selected:       2
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]:           idps: 2
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]:            sps: 0
Mar 12 16:00:16 meta-af1 pyff-metadata[828056]: ---
Mar 12 16:00:16 meta-af1 pyff-metadata[828054]: Processing '/opt/metadata/edugain_feed.fd'
Mar 12 16:00:35 meta-af1 pyff-metadata[828064]: ---
Mar 12 16:00:35 meta-af1 pyff-metadata[828064]: total size:     5558
Mar 12 16:00:35 meta-af1 pyff-metadata[828064]: selected:       5558
Mar 12 16:00:35 meta-af1 pyff-metadata[828064]:           idps: 5558
Mar 12 16:00:35 meta-af1 pyff-metadata[828064]:            sps: 0
Mar 12 16:00:35 meta-af1 pyff-metadata[828064]: ---
Mar 12 16:00:36 meta-af1 pyff-metadata[828054]: Processing '/opt/metadata/frontend_feed.fd'
Mar 12 16:00:37 meta-af1 pyff-metadata[828073]: ---
Mar 12 16:00:37 meta-af1 pyff-metadata[828073]: total size:     1
Mar 12 16:00:37 meta-af1 pyff-metadata[828073]: selected:       1
Mar 12 16:00:37 meta-af1 pyff-metadata[828073]:           idps: 1
Mar 12 16:00:37 meta-af1 pyff-metadata[828073]:            sps: 0
Mar 12 16:00:37 meta-af1 pyff-metadata[828073]: ---
Mar 12 16:00:37 meta-af1 pyff-metadata[828054]: Processing '/opt/metadata/backend_feed.fd'
Mar 12 16:00:39 meta-af1 pyff-metadata[828077]: ---
Mar 12 16:00:39 meta-af1 pyff-metadata[828077]: total size:     1
Mar 12 16:00:39 meta-af1 pyff-metadata[828077]: selected:       1
Mar 12 16:00:39 meta-af1 pyff-metadata[828077]:           idps: 0
Mar 12 16:00:39 meta-af1 pyff-metadata[828077]:            sps: 1
Mar 12 16:00:39 meta-af1 pyff-metadata[828077]: ---
Mar 12 16:00:39 meta-af1 pyff-metadata[828054]: Installing 'idps.xml'
Mar 12 16:00:39 meta-af1 pyff-metadata[828054]: Installing 'edugain.xml'
Mar 12 16:00:39 meta-af1 pyff-metadata[828054]: Installing 'proxy_idp.xml'
Mar 12 16:00:39 meta-af1 pyff-metadata[828054]: Installing 'proxy_sp.xml'

(note that 7 IdPs should have been written to idps.xml instead of 2)

Maybe this is a bug in pyff?  It can read the xsd file correctly, of course, so maybe that's what the fail_on_error is checking?

Curiously, this failed correctly on test:
Mar 12 15:00:13 app1-tf1 systemd[1]: pyff-metadata.service: Consumed 13.169s CPU time.
Mar 12 16:00:00 app1-tf1 systemd[1]: Starting pyFF Metadata processing...
Mar 12 16:00:00 app1-tf1 pyff-metadata[2051984]: Processing '/opt/metadata/idps_feed.fd'
Mar 12 16:00:11 app1-tf1 pyff-metadata[2051987]: WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fdc337c4190>, 'Connection to metadata.test.surfconext.nl timed out. (connect timeout=10)')': /signed/2023/idps-metadata.xml
Mar 12 16:00:12 app1-tf1 pyff-metadata[2051987]: WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc337c42e0>: Failed to establish a new connection: [Errno 111] Connection refused')': /signed/2023/idps-metadata.xml
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc337c4460>: Failed to establish a new connection: [Errno 111] Connection refused')': /signed/2023/idps-metadata.xml
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: WARNING:pyff.fetch:error fetching https://metadata.test.surfconext.nl/signed/2023/idps-metadata.xml
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: WARNING:pyff.fetch:HTTPSConnectionPool(host='metadata.test.surfconext.nl', port=443): Max retries exceeded with url: /signed/2023/idps-metadata.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc337c4f10>: Failed to establish a new connection: [Errno 111] Connection refused'))
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: ERROR:pyff.builtins:<string>:0:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element '{urn:oasis:names:tc:SAML:2.0:metadata}EntitiesDescriptor': Missing child element(s). Expected is one of ( {urn:oasis:names:tc:SAML:2.0:metadata}Extensions, {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor, {urn:oasis:names:tc:SAML:2.0:metadata}EntitiesDescriptor ).
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: ERROR:pyff.pipes:Got exception when loading/executing pipe: XML schema validation failed
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: Traceback (most recent call last):
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/builtins.py", line 534, in publish
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     validate_document(req.t)
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/utils.py", line 279, in validate_document
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     schema().assertValid(t)
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "src/lxml/etree.pyx", line 3643, in lxml.etree._Validator.assertValid
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: lxml.etree.DocumentInvalid: Element '{urn:oasis:names:tc:SAML:2.0:metadata}EntitiesDescriptor': Missing child element(s). Expected is one of ( {urn:oasis:names:tc:SAML:2.0:metadata}Extensions, {urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor, {urn:oasis:names:tc:SAML:2.0:metadata}EntitiesDescriptor ).
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: During handling of the above exception, another exception occurred:
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: Traceback (most recent call last):
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/bin/pyff", line 8, in <module>
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     sys.exit(main())
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/md.py", line 33, in main
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     plumbing(p).process(md, state={'batch': True, 'stats': {}})
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/pipes.py", line 363, in process
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     return Plumbing.Request(
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/pipes.py", line 301, in process
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     return pl.iprocess(self)
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/pipes.py", line 333, in iprocess
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     raise ex
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/pipes.py", line 323, in iprocess
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     ot = pipefn(req, *opts)
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:   File "/opt/metadata/pyff-env/lib/python3.9/site-packages/pyff/builtins.py", line 537, in publish
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]:     raise PipeException("XML schema validation failed")
Mar 12 16:00:14 app1-tf1 pyff-metadata[2051987]: pyff.pipes.PipeException: XML schema validation failed
Mar 12 16:00:14 app1-tf1 systemd[1]: pyff-metadata.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 16:00:14 app1-tf1 systemd[1]: pyff-metadata.service: Failed with result 'exit-code'.
Mar 12 16:00:14 app1-tf1 systemd[1]: Failed to start pyFF Metadata processing.
Mar 12 16:00:14 app1-tf1 systemd[1]: pyff-metadata.service: Consumed 1.052s CPU time.

Can't reproduce on --container deploy of pyff locally?

At the moment the upstream server is back up again, so that's to be expected.  Does it also fail correctly if the upstream server times out?

I extended the tests and still can't reproduce with ConnectTimeoutError nor NewConnectionError (refused) exceptions?


Auto-detect BIP-157 compact filters

Block filtering, which is disabled in Bitcoin Core by default, may reduce blockchain rescan time. Add a Bus method to detect the presence of block filters, and expose this information via the /status endpoint.
As part of this issue, also perform some benchmarks on importing 30 accounts (i.e., 30 x 2 x 1000 addresses) with and without cfilters, on the mainnet.
More information on rescanning with cfilters: https://bitcoincore.reviews/15845

Benchmark

Chain
No. of descriptors
cfilter enabled
cfilter disabled
Remarks

testnet3
7 x 2 = 14
1h 1m
1h
no speedup observed

mainnet
10 x 3 x 2 = 60
2h 25m
2h 8m
minor speedup observed

Conclusions:

Enabling compact block filter index is nice to have, but the speedup is not significant.
The scan time does not grow linearly with the number of descriptors.


Drupal Rogue client

What's this PR do?
Adds functions to the new dosomething_rogue module that connects to the rogue api and sets up the wrapper for the guzzle client that makes the actual request.
How should this be reviewed?
You should be able to call ddosomething_rogue_send_reportback_to_rogue() and receive a response from rogue.
Any background context you want to provide?
Unblocks work on sending reportbacks and updates to reportbacks.
Relevant tickets
Ref #6960 #6972

🚢


Autocomplete overlaps the calendar in Microsoft Edge

Microsoft Edge 38.14393.0.0

Can you at least add an autocomplete attribute  to the input? http://www.w3schools.com/tags/att_input_autocomplete.asp
Thank you!

Autocomplete added in #78
Does this resolve the issue?


Match sequential iterator API for comparison-based reducers

Closes #148.
(The failing tests should be unrelated; they fail on master as well.)

Here's a test I had written when I was working on this issue that might be useful:
diff --git a/src/par_iter/test.rs b/src/par_iter/test.rs
index 5289cf1..ba9f615 100644
--- a/src/par_iter/test.rs
+++ b/src/par_iter/test.rs
@@ -1,3 +1,5 @@
+extern crate rand;
+
 use std::sync::atomic::{AtomicUsize, Ordering};

 use super::*;
@@ -729,3 +731,14 @@ pub fn par_iter_collect_linked_list_flat_map_filter() {
     assert_eq!(b, c);
 }

+#[test]
+pub fn min_max() {
+    use rand::Rng;
+
+    let a: Vec<i32> = rand::thread_rng().gen_iter().take(1024).collect();
+    for i in 0..a.len() {
+        let slice = &a[..i];
+        assert_eq!(slice.par_iter().min(), slice.iter().min());
+        assert_eq!(slice.par_iter().max(), slice.iter().max());
+    }
+}

@utkarshkukreti the test seems good, but maybe we can rewrite it to use a fixed seed, so that it is more deterministic? (random failures are no fun)

@nikomatsakis how about this?
#[test]
pub fn min_max() {
    use rand::{Rng, SeedableRng, XorShiftRng};

    let mut rng = XorShiftRng::from_seed([14159, 26535, 89793, 23846]);
    let a: Vec<i32> = rng.gen_iter().take(1024).collect();
    for i in 0..a.len() {
        let slice = &a[..i];
        assert_eq!(slice.par_iter().min(), slice.iter().min());
        assert_eq!(slice.par_iter().max(), slice.iter().max());
    }
}

Feel free to use it @tapeinosyne if @nikomatsakis likes it. :)

@utkarshkukreti, note that for i in 0..a.len() { let slice = &a[..i] … skips the last element, but otherwise it looks good.

(test looks good to me )

Addressed comments in rebased branch.


adblocking with EasyList breaks latest devtools roll

I can't land/deploy #21 because there's a file .../models/trace/lantern/metrics/metrics.js that loads but... my uBlock Origin blocks it.
Our very own metrics within lantern. 🤣  😢

womp womp.
I submitted https://github.com/easylist/easylist/pull/19768 to update that rule. 🤞

Fixed in easylist.
(for chrome-devtools-frontend.appspot.com only, but thats enough for us).


Error opening URL playlist on Windows 10 x64

Hi. If I execute this command, everything works fine. With the .m3u downloaded
telly-windows-amd64.exe -playlist=tv_channels_nanox5_plus.m3u -useregex "ES:"
But if I change for the URL I have always the error below.
telly-windows-amd64.exe -playlist=http://xxxxx.com/tv_channels_nanox5_plus.m3u -useregex "ES:"
[telly] [error] Could not create file: C:\Users\MIKELI~1\AppData\Local\Temp ; open C:\Users\MIKELI~1\AppData\Local\Temp: is a directory
There is any solution?
Regards

Same here, there was another thread on it that said solved but I don't see the solution, maybe I'm just dense.  I tried creating a blank .m3u file in the temp directory with the right header and in the right UT8 format but then it say it gets a file it wasn't expecting, or can't read it.
I am using Vader Streams and ended up just downloading the file as an M3U, which works, but is not an optimal solution.

Try manually specifying the temp path, e.g. -temp=C:/m3u

Thanks HazCod, someone mentioned that in a previous thread.  Tried it and got a new error.
[telly] [error] unable to read m3u file, error below
panic: Invalid m3u file format. Expected #EXTM3U file header
To clarify should the file already exist where I point it?  if so should it be a blank m3u file with the proper header, or should it be the m3u file I downloaded from the provider?  I've tried all three ways 1. With no file existing the the temp directory, with a blank file existing in the temp directory and with the full m3u file existing in the temp directory, I get the same error above any way I do it.

-temp shouldn't be necessary if you specify the file location of the playlist instead of the URL.

Thanks HazCod, didn't know if there was a benefit of having the URL vs the actual file.

So does it work now? If telly complains about the format, see whether the playlist downloaded is correct.

Yes, sorry for not responding.  All seems well right now.  Thank you


Remove "Time Started" from reports

Now that we have the Timings section this is reduntant

A warmup fix before I go into more important stuff..


alpha-group-significance viz not viewable at view.qiime2.org

Related to #185
Sample viz. q2view link
This recently came up on the forum.

Looking at the network requests, it looks like the spaces are getting double-encoded somehow. What's strange is the double encoding works for the file:// protocol, but never succeeds on the client-end of the service-worker.

I think we are double-encoding the filenames, but I would need to check to be sure. This is ringing a bell.

Yeah it looks like the files in the zip are %20 for spaces, but then that gets escaped in the browser as %2520, which is then converted back to %20 for the file:// protocol, but isn't converted in q2view. I don't think this is actually q2-diversity's fault.

This recently came up on the forum.

Fixed in https://github.com/qiime2/q2view/pull/90


No Extract produced

Tested on Windows 10 2004 (OS Build 19041.264).
Hi, when I try to run the code first time, there are no errors but it only runs as far as:
"The Symbolic link was successfully created:: '\KnownDlls\EventAggregation.dll' -> '\KernelObjects\EventAggregation.dll'
and no output is produced, but no further error?
If I try to re-run I get:
DefineDosDevice failed with error code 183 - Cannot create a file when that file already exists.
This clears after a reboot, but is there a way to clear this error without rebooting?
Can you advise on this?
Thanks.

On your first screenshot, the most probable cause is that the payload DLL isn't loaded by the child process (possibly because of a function export mismatch), but I can't say for sure.
On your second screenshot, the error message is completely normal. The first time you executed the tool, the exploit worked and the symbolic link was created in \KnownDlls. Since the payload DLL wasn't loaded, this link wasn't removed by the tool (and only a TCB PPL running as SYSTEM can remove it). Therefore, the second time you run the tool, the system tells you that the link already exists. This particular error can be bypassed using the -f option. Please have a look at the usage.
On some occasions, I found that the DLL was loaded only the second time (for a reason I ignore). So, please try and run the tool with the -f option first.
Then, if it still doesn't work, please provide me with the output of the tool in debug mode, using -d instead of -v.

Please compile in Release mode and try again.
The Debug mode isn't configured. I should have removed it from the solution.
https://github.com/itm4n/PPLdump#build-instructions

Hi, I removed all the files and extracted from master again. Recompiling as released worked then. Extract has completed successfully. Thanks for your help with this.
Amazing work !!.


phonegap remote build all

More like semantics, but the remote build doesn't care which platform to build (nor it should).
So what if phonegap remote build just works?
Need to add a platform there phonegap remote build foo even if is going to build em all.

Finishing a PR, the API docs:
http://docs.build.phonegap.com/en_US/developer_api_write.md.html#_post_https_build_phonegap_com_api_v1_apps_id_build

+1 this confused me. E.g. with a CI server, I usually want to build all platforms.


Replace airbnb shape props with PropTypes.shape

Airbnb prop types is redundant with PropTypes.shape.
Additional description

Pull Request Review checklist (do not remove)

[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at snapshot strings.
[ ] Add year-first date and commit SHA to last-slds-markup-review in package.json and push.
[ ] Request a review of the deployed Heroku app by the Salesforce UX Accessibility Team.
[ ] Add year-first review date, and commit SHA, last-accessibility-review, to package.json and push.
[ ] While the contributor's branch is checked out, run npm run local-update within locally cloned site repo to confirm the site will function correctly at the next release.

@kevinlambert I looked into this a little further and it appears that the behavior of PropType.shape has changed to match the behavior of air-bnb's. I'm not the only one confused it looks like: https://github.com/facebook/react/issues/5916
Apologies for jumping the gun on this "not working" without actually running the code. I was having flashbacks to trying to get shape working for days back in 2016, I think.
I'll update the merge conflicts and get back to you. Thanks!

Fixes: #1281

Cool. No problem. I was also a bit confused by the docs too. :)


Additional colors

Thank you for creating reasonable-colors!  I’ve been looking for a library that uses the LCH color system to ensure a similar luminance across color groups.
Unfortunately, there’s not enough colors to truly use this palette in my designs.  If you look at other palettes:

https://tailwindcss.com/docs/customizing-colors
https://mui.com/material-ui/customization/color/#color-palette
https://designsystem.digital.gov/design-tokens/color/overview/

You’ll find that they generally have 9 or 10 shades of color.  These shades are important visual indicators for interactions like hover and clicks, varying subtle shades between text and icons and backgrounds, etc.  Simply put, six shades just aren’t enough.
Since it uses the LCH color space, adding colors may be easy if they are generated.  If you tweak them by eye but keep them within a range, it would take more time.
Anyway, I’d love to see this palette grow and use it in my next project!  Thank you for picking some cool colors.

Thanks for the kind words! I am definitely aware that most color systems offer more shades, so offering 6 shades was a conscious decision. Who knows if it was right, but it was conscious.
I want to think on it a bit more and I would be interested to read additional pros/cons. One of my core arguments for fewer shades per color is: making it much simpler to build interfaces and palettes without making "contrast mistakes." I wanted people to be able to hold all of the color shades in their heads when they're designing/building, not have to repeatedly look up which components used which shades.
It also seems to me that fewer shades will result in more consistent interfaces. Selfishly, I tend to enjoy building smaller web projects and so, I find myself reaching for smaller, simpler tools. It might be that if your project does need 10 shades, then this just wouldn't be the best color system to choose.
Anyway, I'll think a bit more, perhaps I could add an "extended" set of color shades that would serve larger projects. But, it feels like the constraint of 6 shades is something core to the project.

perhaps I could add an "extended" set of color shades that would serve larger projects

I think that’s the perfect solution!  Both regular and extended palettes.

One of my core arguments for fewer shades per color is: making it much simpler to build interfaces and palettes without making "contrast mistakes."

I think it’s possible to see Reasonable Colors scale to more shades without contrast mistakes, e.g. everything 700 and above has sufficient contrast on white and the first color shade.  I think it’s possible to have the best of both worlds, rather than an either-or dilemma.

It might be that if your project does need 10 shades, then this just wouldn't be the best color system to choose.

While I could reach for something like TailwindCSS palettes, your palette’s unique appeal is the ease of keeping my designs accessible, without the drawbacks you described.

I would be interested to read additional pros/cons

For me, I think one of the clearest cut needs for more shades are interactive states.  The regular button changes colors when hovered, focused, clicked, and pressed.  Usually, these are a shade darker or lighter.  I think it’s a critical use case, as the jumps between the color pairs are just too steep for it.
Other use cases involve decorations, e.g. icons (which are supposed to be lighter than text), dividers (especially on colored backgrounds), and more.
I may not use every shade I’ve defined (e.g. error and warning colors), but I use most of the primary and neutral shades in my projects.  I always start out with a ~10-color palette, as I usually run out of options with anything fewer than 9 shades and usually have too many options with anything more than 12 shades.  Though the accessible level of green is not the same as the accessible level of grey.

Thanks for the kind words!

Anyway, yes.  Thanks again for creating and open-sourcing Reasonable Colors.  The only reason I am pushing for an extended palette is because I would love to use Reasonable Colors in my own projects—regardless, awesome library!

I came looking for this as well.
I'd like to integrate a design library that uses the open-color color scheme. To replace those colors with reasonable colors, I'd require good 10 shades of color. They have different use cases:
1 | App background
2 | Subtle background
3 | UI element background
4 | Hovered UI element background
5 | Active / Selected UI element background
6 | Subtle borders and separators
7 | UI element border and focus rings
8 | Hovered UI element border
9 | Solid backgrounds
10 | Hovered solid backgrounds
11 | Low-contrast text
12 | High-contrast text
(Picked up from https://www.radix-ui.com/docs/colors/palette-composition/understanding-the-scale)

I'm also curious if there is a dark mode of the colors in the works?

Just a tiny chime on this matter from my side, a grey-scale that matches the contrasts of the colors would be nice.


Add missing darwin-arm64 entry

Fix #102 by adding the missing darwin-arm64 entry in WORKSPACE template.

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


test not passed on Windows OS

Use File.separator instead "/" to pass this test on Windows OS
@Test     public void shouldBeAbsoluteRecordingPath() throws Exception {         recordVideo();         String lastRecordingPath = VideoRecorder.getLastRecordingPath();         assertThat(lastRecordingPath, startsWith(conf().getVideoFolder().getAbsolutePath() + File.separator + VIDEO_FILE_NAME));     }

Fixed by https://github.com/SergeyPirogov/VideoRecorder/commit/50f4f52369d8448be2445780738f98f101bbdd06


camel-knative-http: Avoid Nullpointer on KnativeHttpProducer/Consumer factory

Description

Lookup router and vertx instance when not explicitly set on the factory
Avoids Nullpointer exception when for instance running the Knative component with Camel JBang

Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[x] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[x] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

@davsclaus in fact the vertx and router instance setter never gets called in the Camel core project. When running with Camel Quarkus the camel-quarkus-knative extension sets the instance like here: https://github.com/apache/camel-quarkus/blob/main/extensions/knative/runtime/src/main/java/org/apache/camel/quarkus/component/knative/KnativeProducerRecorder.java#L33
but when run without Quarkus e.g. in Camel JBang the setter never gets called so we may lookup from the Camel context or create a new Vert.x instance.

Force pushed, assuming now that camel context is not null in the factory

Can you try with implementing doStart or doInit and setup. Those ought to be called on startup which should allow to setup vertx and whatnot.


Atom, clicking on link cause xdg-open loop to infinity and crashing the system

Hello, whenever a link is clicked, it calls the xdg-open. However it results in horrible loop that cannot be SIGKILL ed :(
See picture bellow.

My version == Atom 1.0.19
System is based on Archlinux

I am closing this, it's not an Atom bug but a Manjaro linux bug or missconfig. XDG-OPEN jumps to looping every time link is clicked from atom or qt application. System can be saved from crash with ~$ killall xdg-open


Fix deprecation warnings

When I'm running this, my output is this mess:
python -m tess_stars2px -t 70442414
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:788: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  sectors = np.arange(1,70, dtype=np.int)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:828: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  359.2829, 20.0449], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:847: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  -64.2357,-54.2315], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:866: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  226.0975,222.7721], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:885: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  2460168.152468, 2460195.429071], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:888: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  camSeps = np.array([36.0, 12.0, 12.0, 36.0], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:926: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.camRa = np.zeros((4, nPoints), dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:927: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.camDec = np.zeros((4, nPoints), dtype=np.float)
# TIC     |   RA      |   Dec     | EclipticLong | EclipticLat | Sector | Camera | Ccd | ColPix | RowPix | EdgeWarn
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:993: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.sectors = np.array([], dtype=np.int)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:994: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.onSiliconFlag = np.array([], dtype=np.int)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:995: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.possibleOnSiliconFlag = np.array([], dtype=np.int)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:996: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.cameras = np.array([], dtype=np.int)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:997: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.xpxs = np.array([], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:998: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  self.ypxs = np.array([], dtype=np.float)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:703: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  inCamera = np.array([], dtype=np.int)
/Users/ekruse/anaconda/envs/py39/lib/python3.9/site-packages/tess_stars2px.py:704: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  ccdNum = np.array([], dtype=np.int)
070442414 | 339.784600 | -32.383260 | 328.751704 | -22.043422 |  1 | 1 | 2 | 2092.507133 | 1307.282830 | 1
070442414 | 339.784600 | -32.383260 | 328.751704 | -22.043422 | 28 | 1 | 2 | 1314.457589 | 1367.937664 | 0
070442414 | 339.784600 | -32.383260 | 328.751704 | -22.043422 | 68 | 1 | 2 | 1515.694039 | 1589.320301 | 0

I just did a find/replace of np.int to int and np.float to float. Should theoretically work.

Thank you. I'll review and merge soon. Apparently no good deed (actually typing variables in python) goes unpunished.


Improvement suggestions for the tutorial on minibatch OT

This issue is opened for users to suggest improvements for the minibatch OT tutorial notebook.

found a bug when EOT matrices are plotted. They are not correct as ot_plan_list = [] is filled with MBOT plan.


Non OpenWRT (amd64-linux) compile possible ?

Was using nlbwmon on openwrt for years but missing it
on plain linux router/firewall installs ( when openwrt does not cut it )
Ntopng seems like major overkill for simple bandwith/host tracking.
wrtbwmon relies on extra iptables rulles (which i like nice and tidy, and manageable)
(just want to track all hosts being routed trough the firewall)
Was trying to compile nlbwmon for devuan (debian without systemd) .
But got stuck on avl.h and usock.h
Which seem to be parts of libubox (openwrt pkg only).
avl.h can be found with libavl-dev package but not usock.h
So was wondering if you could just use avl.h and usock.h from x86openwrt on
regular linux or any other solution that would make nlwbmon work on non openwrt linux.
Thanx

It should be enough to compile and install OpenWrt's libubox on your system, that's what I do to test nlbwon on Debian here.

Thank you jow for anwser , and for nlwbmon.
Can close or delete this thread , as it does not seem like a bug.
Just had to ask , and seemed like the right place.


Collaborate with similar projects

It seems there are a few projects around that make use of ImGUI in some form, in particular the Rust bindings. It was mentioned over at https://github.com/Gekkio/imgui-rs/pull/339 that other people have an interest in having implot Rust bindings as well, so let's talk about in what form we could collaborate.
@aloucks, it seems to me that you have quite a bit more experience than I do in creating bindings crates. If you're interested in collaboration, there are various ways we could do that:

If you're willing to put in the time to help me in places, I could build implot-rs myself. This might take some time, but teach me how to do bindings crates.
If you'd prefer getting a working implot-rs rather sooner than later and think you'd be much faster doing it yourself, I could also close the project here down and let you take over. In the end, I want the bindings, I don't much care about having my name on them.

If anyone else is interested in taking part in the project, just let me know. In the meantime I'll experiment with things some more.

@4bb4 Hello! I'm happy to point out things that may be helpful, but I'm not sure how much time I'll have to work on this directly right now.
I took a quick look at your build.rs and have a few suggestions:

Don't run bindgen from build.rs directly. This creates a hard dependency on clang (bindgen dynamically loads the libarary at runtime). Many people might not have it installed and the build will fail. I generally keep a shell script of some sort that runs bindgen. Keep both the script and the generated output in source control (rather than using OUT_DIR and include!).
Use std::path::Path where possible to build paths rather than raw string concatenation.
The defines are now exposed via DEP_IMGUI_DEFINE_* env variables now. You should be able to utilize this rather than duplicating that portion of the build script.

I've made the imguizmo-rs repo public and you can find the build.rs script here. I must warn you that this was a weekend project from last year that got sidelined for quite some time. It's API is bad/wrong and the entire thing needs considerable refactoring :) Note that I'm not using bindgen here though as there were only a handful of functions.

@aloucks Thanks for the inputs, I'll happily incorporate them - the build script will be helpful as well.

I'm happy to point out things that may be helpful, but I'm not sure how much time I'll have to work on this directly right now.

I'm always thankful for feedback and review, no matter how often it arrives. I'm currently developing this in my free time, so I don't have too much time available myself - that was the main reason for bringing up collaboration: If someone feels they would like to have the bindings sooner than my free time investment can get them ready, I wouldn't want to be in the way. If that's not the case yet, I'll keep on building at my pace :)

https://github.com/thedmd/imgui-node-editor something like that would be pretty useful to have as well.
I've not used the API yet though so can hardly tell how good it would map to rust and it certainly seems like a larger API than this one.

https://github.com/thedmd/imgui-node-editor something like that would be pretty useful to have as well.
I've not used the API yet though so can hardly tell how good it would map to rust and it certainly seems like a larger API than this one.

opened https://github.com/benmkw/imnodes-rs based on this repository, have some issues compiling which I'm not yet sure about ... but very happy to find these cbindings exist 🎉

Very nice, I like it! Regarding the setup, I copied most of it over from imgui-rs :P


PropTypes.checkPropTypes()

When I run the example version, I get : Uncaught Error: Calling PropTypes validators directly is not supported by the prop-types package. Use PropTypes.checkPropTypes() to call them.

When this is going to be fixed?


tensorflow is not using GPU

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:None
TensorFlow installed from (source or binary):binary
TensorFlow version:tensorflow-gpu==1.14
Python version:3.6.8
Installed using virtualenv? pip? conda?:pip
Bazel version (if compiling from source):none
GCC/Compiler version (if compiling from source):none
CUDA/cuDNN version:10.1/7.6.4
GPU model and memory:GeForce GTX 1060 6GB and 6144 MB

Describe the problem my problem is that my gpu is not being used during training
Provide the exact sequence of commands / steps that you executed before running into the problem
I have run the following command for training my model
python -u "DeepSpeech.py"
--train_files "/home/sehar/urdu/cv-valid-train.csv"
--dev_files "/home/sehar/urdu/cv-valid-dev.csv"
--test_files "/home/sehar/urdu/cv-valid-test.csv"
--alphabet_config_path "/home/sehar/urdu-models/alphabet.txt"
--lm_binary_path "/home/sehar/urdu-models/lm.binary"
--lm_trie_path "/home/sehar/urdu-models/trie"
--learning_rate 0.000025
--dropout_rate 0
--log_level 1
--noearly_stop
--epochs 100
--max_to_keep 1
--checkpoint_dir "/home/sehar/DeepSpeech/check"
--export_dir "/home/sehar/urdu-models"
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Please switch to cuda 10.0 or gpu support
See software requirements

@sehargul-123
Any update on this issue please. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


Unable to prepare setup for platform indego.sensor: Unable to set up component.

Hello, brand new owner of a 350S+ I fail to integrate it in HASS
Version
core-2021.7.4
supervisor-2021.06.8
I got 2 errors in logs
Logger: homeassistant.setup
Source: setup.py:311
First occurred: 11:48:41 (1 occurrences)
Last logged: 11:48:41
Unable to prepare setup for platform indego.sensor: Unable to set up component.

Error during setup of component indego
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 249, in _async_setup_component
result = await task
File "/config/custom_components/indego/init.py", line 210, in async_setup
conf = config[DOMAIN]
KeyError: 'indego'
Thank you for your help

Auto answer for closing the topic 👍
I moved the integration config in my sensor.yaml and it wasn't working here.
Moving it back to the main configuration.yaml did the trick.


map pin may not be visible when activated

Depending on the zoom and position of the map layout, a map pin may be off-screen or covered by the articles when the user navigates to the associated article.
Possible enhancement: a map pin should be automatically panned/zoomed to if invisible or obscured, but the map layout should not be changed if the pin is visible.

The map now auto-pans right/east whenever a mapmarker is underneath the article.
Fixed with commit 24ea8fa6b5cffe546a27c0c04a4acebe8ec4056d, and pushed to the literaryparis/gh-pages branch.


Statically link binaries built by goreleaser

Built using goreleaser build --snapshot
$ ls dist
artifacts.json         gotpm_darwin_arm64    gotpm_windows_amd64_v1
config.yaml            gotpm_linux_amd64_v1  gotpm_windows_arm64
gotpm_darwin_amd64_v1  gotpm_linux_arm64     metadata.json

$dist/gotpm_linux_amd64_v1/gotpm attest --tee-technology blah
Error: tee-technology should be either empty or should have values sev-snp or tdx

$ldd dist/gotpm_linux_amd64_v1/gotpm
	not a dynamic executable

/gcbrun


Search fails when searching for specific content

I often use the tag search function and it works fine for both Chinese and English bookmarks.
However, I have recently discovered a problem where I am searching for "excel" and it will not return any search content. And I do have many bookmarks with book signatures containing excel in my bookmarks.
I don't know if it's because I have too many bookmarks for this content in my favourites? I searched in the bookmark manager and there are over 80 bookmarks containing it.

The author of this extension has not updated it for more than 7 years. I suggest to use another extension

The author of this extension has not updated it for more than 7 years. I suggest to use another extension

I hadn't even noticed this, thank you very much for the heads up.
Do you have any recommendations for plugins?

The author of this extension has not updated it for more than 7 years. I suggest to use another extension

I hadn't even noticed this, thank you very much for the heads up. Do you have any recommendations for plugins?
I have installed Bookmarkie.Works well!


Add keepers to resources

Some of our resources should support keepers to support re-creating resources periodically. For example, Service Account API Keys would benefit from this capability.
There are some examples from Terraform's official providers: https://github.com/hashicorp/terraform-provider-random/blob/27fa05e361c077b2da94d19353bf45fed11a29c9/internal/provider/resource_id.go#L58-L66

keepers are a legacy concept that should not be required anymore following the introduction of lifecycle replace_triggered_by


Add ability to download Xcode without logging in using XcodeRelease

I hate having to log into my Apple Developer account, always having to put in my 2fa code, when I want to download Xcode, but Apple has never given us the ability to do so.
As a CI user, it sucks that I have to type in my credentials all the time, while trying to do a xcode install on multiple machines.
This PR changes that.
By using a public URL provided by Apple, we can get a token cookie that can be used to download the version of Xcode that we wish, without having to provide a log in. 🎉
Caveats:

This does not work when using the Apple datasource. More specifically that token doesn't work for listing the Xcode versions with https://developer.apple.com/services-account/QH65B2/downloadws/listDownloads.action

@MattKiazyk Does it still work? CLI asks me for Apple ID and if I do the ADCDownloadAuthCookie trick manually with curl it redirects me to:
Location: https://developer.apple.com/unauthorized/


How to send data from follower to cluster leader

Hi, Is there any way to send data from a follow to a cluster manager?
Does this has to be implemented separately of the raft server?
Thank you

Hi @faithware
There is no protocol to send a custom message from follower to leader. The only message that followers send is a vote (pre-vote) request. If you want to do it, that needs to be implemented outside Raft.

Hi @faithware
There is no protocol to send a custom message from follower to leader. The only message that followers send is a vote (pre-vote) request. If you want to do it, that needs to be implemented outside Raft.

Thanks @greensky00 . All is clear

This may not be within the design intent of nuraft, when forwarding is enabled (nuraft::raft_params::auto_forwarding_ = true), a follower is able to send a message to all cluster members (nuraft::append_entries).


OWL-ViT low AP on LVIS

Hi, thanks for your excellent work on OWL-ViT!
I tried to perform inference with the pre-trained model weights. On COCO 2017 dataset, it generally match the performance reported in the paper. However, the performance on LVIS nearly halves the AP performance reported in your paper.
I wonder why would this happen, and would you please provide the evaluation code on the LVIS dataset?

Hi @encounter1997
Thank you for your interest in OWL-ViT. It's great to see that you're digging deep and reproducing various reported numbers!
It's a bit surprising that you are able to match COCO AP but not LVIS AP since the eval for the two is rather similar. Unfortunately, we do not have any immediate plans to open source the evaluation code. But we plan to address this in the upcoming open source release of the training loop.
What I could try doing in the meantime, if that would be helpful for your debugging of the issue, is to export the models predictions and push them through and open source LVIS evaluator. Please let me know.
Best,
Alexey


mobile(ios) website,the option "constrainDuringPan: true" failed to constrain the image during pan

The picture will vibrate when touching the screen and moving around the picture's border, even bounce from the border to another location, it's ok on PC website. I think the "constrainDuringPan: true" didn't work on mobile website.

Thanks for the report! Hopefully someone can look into this.
Meanwhile, may I suggest that turning off constrainDuringPan for mobile would be a good idea anyway, as it's more consistent with standard touch interfaces?

I'm not in charge of the art design-w-，little things can be negotiated~ Thanks anyway~

Well, if they'll let you work on a patch for OpenSeadragon, I can help point you in the right direction.

Great，I'd love to... I will send you email as soon as I got time to look into the source code ! ! ! My email addr<EMAIL_ADDRESS>Thank you very much !!!

Wonderful! My email address is<EMAIL_ADDRESS>but we can also converse here or on https://gitter.im/openseadragon/openseadragon.
You'll probably want to look at Viewport.applyConstraints for starters:
https://github.com/openseadragon/openseadragon/blob/master/src/viewport.js#L528
I recommend disabling various parts to get a sense for what does what.
Let me know if/when you have questions... I'm happy to answer!


fix: add project for authenticated sites

Fix #373

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

GitHub release
v6.19.1

Your semantic-release bot :package::rocket:


python311Packages.python-gitlab: 4.2.0 -> 4.4.0

Changelog: https://github.com/python-gitlab/python-gitlab/blob/v4.4.0/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 282683 run on x86_64-linux 1

6 packages marked as broken and skipped:

python312Packages.criticality-score
python312Packages.criticality-score.dist
python312Packages.heudiconv
python312Packages.heudiconv.dist
python312Packages.python-gitlab
python312Packages.python-gitlab.dist

2 packages failed to build:

python311Packages.heudiconv
python311Packages.heudiconv.dist

8 packages built:

datalad
datalad.dist
packj
packj.dist
python311Packages.criticality-score
python311Packages.criticality-score.dist
python311Packages.python-gitlab
python311Packages.python-gitlab.dist

heudiconv failure is addressed with https://github.com/NixOS/nixpkgs/pull/282689

Result of nixpkgs-review pr 282683 run on x86_64-linux 1

6 packages marked as broken and skipped:

python312Packages.criticality-score
python312Packages.criticality-score.dist
python312Packages.heudiconv
python312Packages.heudiconv.dist
python312Packages.python-gitlab
python312Packages.python-gitlab.dist

10 packages built:

datalad
datalad.dist
packj
packj.dist
python311Packages.criticality-score
python311Packages.criticality-score.dist
python311Packages.heudiconv
python311Packages.heudiconv.dist
python311Packages.python-gitlab
python311Packages.python-gitlab.dist


ITIL V4

https://www.peoplecert.org/browse-certifications/it-governance-and-service-management/ITIL-1/itil-4-foundation-2565
Can I get a free certification course for the above mentioned course from *peoplecert?

yo better ask them directly.

Okay I will check
On Mon, Oct 4, 2021, 09:40 Karen Tamrazyan @.***> wrote:

Closed #36
https://github.com/cloudcommunity/Free-Certifications/issues/36.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudcommunity/Free-Certifications/issues/36#event-5401666390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKR3PABWPWBV37FQVFGBWALUFFD67ANCNFSM5FIQLHKQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Change 'devonly' behaviour to avoid magic

At the moment we find / replace a string to force a portion of the Scss to be a comment which then gets stripped out as other comments do.
My proposal would be to change this so we have an $enviroment variable, that we can set to 'development'
https://github.com/alphagov/govuk-frontend/pull/555/files#r170951075

Fixed as part of https://github.com/alphagov/govuk-frontend/pull/560


In openlayer, can grid lines be customized? Can I use it in ImageLayer

In openlayer, can grid lines be customized? Can I use it in ImageLayer

Please be more specific. Which grid lines are you referring to?


Introduce --generate flag for creating missing source file

Answering this Stack Overflow question I found that by default, if a source file name is provided but no such file is found, an example file is generated. This is mentioned in the output:
  Loading test.json
  Oops, test.json doesn't seem to exist
  Creating test.json with some default data

but is easy to miss. As the file is now created, there's no information that this happened on subsequent starts. This leaves an unwary user confused as to why their edits to the (wrong) JSON file don't seem to have any impact.
Therefore I've introduced a -g/--generate flag. Without this CLI flag, if the file is missing, the server bails out. If you supply the flag, the old behaviour is restored.
This is strictly a breaking change; anyone who was relying on this to create the file will now have to explicitly supply the flag. However it seems unlikely too many people are purposefully relying on that feature, as the default canned data isn't terribly useful.
In terms of the specific implementation, I considered:

Defaulting to generating the missing source and using a flag to disable it, but doesn't solve the problem for the unwary user.
Passing all of argv to load, but adding the extra generateFileIfMissing parameter seemed less impactful in terms of encapsulation. I'm open to other suggestions on the name...
Explicitly warning if the flag was passed for a non-file source, but that didn't seem very high value.
Adding a suggestion ("To generate a file, supply the --generate flag" or something) to the error message to ease the transition, but there didn't seem like a particularly neat way to do this.

It seems like work on v1 is ongoing @typicode - I'm happy to update this accordingly if it's considered useful, as this is a reasonable time to break API compatibility.

Thanks for the help! And sorry for not having replied before.
For now, I'm unsure how to handle this case. If there should be an option, or if db.json should be created if file is missing (previous behavior) or if just an error message should be displayed.
In case, I go with an option for that, I'll let you know here :)

Looks like the new CLI (at least as of alpha.16) simply refuses to start if the file is missing, which I think is a sensible design (and solves the issue of quietly confusing people!) If you did want to reintroduce the "create dummy data" option that might be clearer semantically as an explicit subcommand (e.g. npx json-server generate <file>) rather than a flag (-g/--generate).
FYI I've noticed a few errors popping up on Stack Overflow recently as you iterate on the alpha versions - it might be wise to publish them under a different tag (conventionally next) rather than having latest point to unstable versions.


SELECT * from a table doesn't retrieve all records

****** This issue doesn't exist in version 6.0.0 *****
System information:

Operating system (distribution) and version - macOS 10.15.7
DBeaver version - 7.3.0
Additional extensions

Connection specification:

Database name and version - Snowflake
Driver name- JDBC
Do you use tunnels or proxies (SSH, SOCKS, etc)? - yes

Describe the problem you're observing:
SELECT * from a table doesn't retrieve all records.
E.g select count(*) from table -- returns 68
select * from table -- returns 8 records only (the limit is 200)
This issue doesn't exist in version 6.0.0
Include any warning/errors/backtraces from the logs

Cannot reproduce it. The issue can be on the driver side.
Could you please try to create a connection with an older driver version (Connection Settings>Main tab>Edit driver settings>Download/Update)?

upgrading driver version to 3.12.16 solved the issue. Thanks

Great!


Update debian-buster-slim from buster-20220228-slim to buster-20220316-slim

@wader Hi, can you please tag the image so it appears as new version?
https://hub.docker.com/r/mwader/postfix-relay/tags

Sure, tagged and pushed v1.0.2, should show up soon.


Entity Creation - New Approach

Entities
New way to create an entity, value object and aggregate
@DomainEntity({name: 'User'})
export class User {

    @UniqueEntityId({primaryKey: true})
    id: string;

    @ValueObject({name: 'userName', required: true, Length:{max: 30, min: 3}, type: string})
    userName: string;

    @ValueObject({name: 'age', type: number, max: 120})
    age: number

    @DomainEntity({type: Post, required: false})
    posts: Post[];

}

References:

Class Transformer
Entity Decorators
Typeorm Entity

Hi Alessandro, I'm studying DDD and your project has been helping me, thanks for sharing this.

Hi Alessandro, I'm studying DDD and your project has been helping me, thanks for sharing this.

I'm glad to know that... Success!!!


MAHOUT-1838: Simple 2d plotting of a sampled DRM

This is a bare-bones beginning to some mahout plots.  Takes a DRM and creates a scatter plot of a sample of the first two columns.

This should be pretty much good to go as a beginning as is.  As I said it is very bare-bones,  No titles, single plots, etc, but it is a starting point.

+1 to merge
Sent from my iPhone

On Apr 29, 2016, at 4:46 PM, Andrew Palumbo<EMAIL_ADDRESS>wrote:
This should be pretty much good to go as a beginning as is. As I said it is very bare-bones, No titles, single plots, etc, but it is a starting point.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub


fix crash-inducing finish/cancel race condition in AFURLConnectionOperation

When a connection on the networking thread calls finish, it should (atomically) set the connection property to nil so that calls to cancel from the main thread are guaranteed to reach a live object. Elsewise, the cancel message can be sent to a deallocated (invalid) connection object when the connection is both finished and cancelled at nearly the same time.

After giving this some more thought, it might be better to use a mutex to lock the connection object through the finish and cancel methods. My current pull request (40483a8) greatly reduces the chance of a crash occurring but in theory it would still be possible for a connection to be deallocated in the moment between retrieving the connection object and immediately sending the cancel message to it.


Adding preconnect for the socket

Sorry it slept through, thanks for adding this!

Hopefully someone sees this comment, but how is this being used? When I navigate to https://excalidraw-socket.herokuapp.com/socket.io directly in my browser, it 404's:

Cannot GET /socket.io

The reason I ask is because I added the ability to configure backend URLs in https://github.com/excalidraw/excalidraw/pull/1848 but forgot to change this occurrence. I couldn't find anything relevant in https://github.com/excalidraw/excalidraw-room/blob/master/src/index.ts either.

This is just to initiate a TCP connection the the server to save a roundtrip, at least what I understand.
You can interpolate the env variable into the href: Referencing Environment Variables in the HTML

You can inject the env variable into the href at build: Referencing Environment Variables in the HTML

Yup I'm aware of that, just wasn't sure if it was being used. So I guess it is being used after all, and it doesn't matter that that particular URL returns 404?

and it doesn't matter that that particular URL returns 404?

Good question. Not sure. The 404 is app layer, not network layer, but who knows what browsers require :/.


Feature/shex form live update

Added LiveUpdate component to update on real time.

Just as a heads up, documentation regarding the LiveUpdate component is missing, specifically from the "Component List" section.


Ros sort c++ work?

Will this ros sort c++ version run on ros now?
Thanks I want change python to c++

Hi @Nanmei
Thank you for your interest and I am sorry that I did not implement the C++ ROS version yet and do not have plan to do it.

Thanks for your sort python


Reflection compiler option

Fixes #5492
Some questions:

Is OSFilesystem the correct API to write a file?
Does saveFile expect a NULL-terminated string? I kind of just expected it to, since there is no length argument.

All the reflection tests still seemed to pass.

For formatting, you can post a message in this thread with the content "/format" and you will get a pull request to your branch for the formatting changes.

It's not necessary to do, but it would be nice if this handled passing - to output the json to stdout.

The code still needs to be formated.

/format

There are linking errors.

/format
(@tareksander, I just fixed a bug where non-write users couldn't trigger the formatting bot, I've done it now but it should work for you in the future)

Would also be good if we can also get this added to our COM-based compilation API, in the form of IComponentType::getReflectionJson(IBlob** outBlob).

I don't have enough knowledge of that API to do that.

There are linking errors.

Weird. slang-reflection-test links with the slang library, but the linker can't find Slang::emitReflectionJSON.

This is because slang is compiled as an DLL, and functions in a dll is generally not visible to other projects, unless you explicitly export it.  You need to expose it in slang-deprecated.h similar to other reflection functions.
    SLANG_API SlangRESULT spReflection_ToJson(SlangReflection* reflection, IBlob** outBlob);

Then you will be able to call this from reflection-test.

This is because slang is compiled as an DLL, and functions in a dll is generally not visible to other projects, unless you explicitly export it. You need to expose it in slang-deprecated.h similar to other reflection functions.

Weird, since I'm on Linux, and symbols should be visible by default. That fixed it anyways, thanks.
Now I get a segfault in spReflection_GetTypeParameterCount during the test, no idea why.

The failures are due to C++ object lifetime issues.
You need to do:
*outObject = StringBlob::moveCreate(...).detach();

Otherwise the object will be deleted upon return.
Also changed the callsite to use
ComPtr<ISlangBlob> b;
spReflection_ToJson(..., b.writeRef());

instead of using raw ISlangBlob* pointer for b to ensure consistent life-time management.

/format

Everything looks good after fixing the memory management issue.
Thank you very much for your contribution!


.unwrap()

I'm submitting a

[ ] bug fix
[x] feature
[ ] documentation addition

What is the motivation / use case for changing the behavior?
Be a bit more aware of the code and handle Option and Result a bit better.

@comtrya/maintainers it would be cool if you both have time to review this PR. Please be extra careful, because I changed a lot of things here. Thanks a lot in advance!


Downloaded QR code as SVG with image results in a broken image

The SVG image tag representing the middle image is currently just using href but probably should be encoding the SVG content and embedding it using encodeURI with "data:image/svg+xml;utf8," and the image as SVG, like you shared in a previous discussion with me?

I have this problem too, when I open the file in Adobe illustrator the image doesnt load

Hi @erlingm69 it was released in version v1.8.4


Dragging is bugged when having a custom margin and rowHeight

Describe the bug
Whenever you drag a box with a custom margin and rowHeight the drag functionality becomes invalid.
Please check codesandbox for example, you will see that as soon as you start dragging an item around, it feel awkward compared to other versions.
If I increase the rowHeight it works better, but I'm currently using rowHeight={1}
Your Example Website or App
https://codesandbox.io/p/devbox/yh3s4h?file=%2Fsrc%2FApp.js%3A14%2C19
Steps to Reproduce the Bug or Issue

Navigate to the codesandbox and start the environment
Start drag number 6 box a few pixels, as soon as you start moving it, it pushes the #.2 box down immediately.

Expected behavior
When i drag it a little bit and it's still outside 2, I don't expect #.2 to be moving.
react-grid-layout library version
1.4.4
Operating System Version
Windows
Browser
Chrome
Additional context
No response
Screenshots or Videos
No response

When rowHeight<10, this problem will occur. You can try setting a relatively large value


Unused class FileWrapper

In the io manager module there is a FileWrapper class that seems to be never used anywhere?
Aside from the dubious utility of such a class (maybe if documented one could figure out) , maybe we should just remove it ?
@QCoDeS/core  ?

I forget why I made that... :hocho:


C++ API migration to C++11/14/17

Dear all,
Current Ocilib  C++ API is C++03 compliant.
It was on purpose at the time It was added in order to be compatible with existing production codebases.
On a work day to day bases, I use C++17.
To be honest, extending Ocilib C++03 API is so frustrating.
I do not want to make ocilib C++ codebase unreadable by adding complex defines everywhere to use C++1x whenever supported or falling back on legacy code if not.
Thus, I was thinking for v4.7.0 (v.4.6.0 will be released this week), to port codebase to C++1x.
It will make the codebase much simpler and also be a tiny  bit more performant.
Is there any reason why I should not do it?
Is it okay to at least require C++14?
Regards,
Vincent

Morning Vincent,
why not start a new major version - say 5.x rather than 4.7 as the C++14 version and leave a "final" release of the C++03 version as a separate release/tag in the repo? Or, as an even worse suggestion, the C++14 release could start at version, ahem, 14.x instead. (Perhaps not!)
What I'm getting at is, have a complete split from the C++03 release and the C++14 release.
Cheers,
Norm.

Hi,
Thanks for the insight :)
v5.0 could become v6.0 and v4.7 become v5.0 !
Good idead:)
Regards,
Vincent

So was v.4.6.0 released a couple of weeks ago as you said? I am still seeing 4.5.2 as latest https://github.com/vrogier/ocilib/releases/

Hi,
Unfortunately, I was unable to publish v4.6.0 at specified release date.
I am currently on vacation and back on November 19th.
I have modified v4.6 .0 milestone release date to November 22nd.
Sorry for the delay.
Regards,
Vincent

Probably a 5.x version updated to C++ 17 standard is more suited for the modern times. Leaving 4.x available for back-compatibility.
In particular constexpr everything will not be possible with C++14


add nil judge in  dependency and maintainer validation

Signed-off-by: wujunwei<EMAIL_ADDRESS>
What this PR does / why we need it:
fixes #11014
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[x] this PR contains unit tests
[x] this PR has been tested for backwards compatibility

I have  add some testcase about it ,please have a look. @yxxhero

Hi there, @mattfarina  is there anything else you need from me regarding this?

Hi there, @hickeyma  is there anything else you need from me regarding this? PTAL

Hi there, @hickeyma  is there anything else you need from me regarding this? PTAL

@hickeyma  Thanks for explaining,I have updated the error message, PTAL.

Needs approval from another maintainer to merge

@mattfarina  PTAL :)

Hi there, @hickeyma  @mattfarina  is there anything else you need from me regarding this? :)

@wujunwei Its waiting on another maintainer to approve.


ghc double free or corruption

I'm receiving some strange errors, when importing a dictionary file into Wikilon:
*** Error in `wikilon': double free or corruption (out): 0x00007f59cc002b10 ***
Aborted (core dumped)
OR (rarely)
*** Error in `wikilon': corrupted double-linked list: 0x00007f8878018c90 ***
Aborted (core dumped)
Observations:

This happens when I import an AO dictionary
It can happen on the first try or later
The problem exists for both the stackage-2.8 and stackage-2.12 builds.

Hypothesis:
The error happens due to interaction between GC and VCache. VCache uses weak pointers, which I'm not entirely inclined to trust.

Testing ideas: I could try to disable use of the VCache cache and see if this helps. I might also test whether it happens for empty AO files, or if there is a specific kind of AO file that makes it more likely (e.g. due to deep names).

Okay, so some basic tests demonstrate this can happen with a very simple file, containing just one word having a very large text. In my current dictionary model, definitions are stored with a ref to a lazy bytestring that encodes our ABC. So the VCache only sees a lazy bytestring. This makes me wonder whether there is an issue with large bytestrings.
Alternatively, the problem could be upstream of VCache, in Warp/WAI. I'll need to test further to isolate the issue.

New error result!
*** Error in `wikilon': realloc(): invalid pointer: 0x00007feb5c00e310 ***
Aborted (core dumped)

Yikes: VCache background thread has failed.
user error (VCache bug: time traveling allocator)
This suggests an LMDB-layer failure. Or a buffer overwrite somewhere.

Okay, I've been able to narrow it down to:
    vc <- openVCache 100000 "db"
    let s = replicate 10000 'x'
    vref' vs $ deref' $ vref' vs s

This almost always crashes my GHCI with the "double free or corruption (out)" error. So it's a problem with VCache. I'll take the error over there.


v0.0.15

Remove all dependencies
Allow some postfix in header

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

6 of 6 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 93.93%

Totals

Change from base Build<PHONE_NUMBER>:
0.04%

Covered Lines:
210

Relevant Lines:
210

💛  - Coveralls


Middle click selection in extension search doesn't copy text to 2nd clipboard linux

VSCode Version: 1.27.2
OS Version: kubuntu 18.04

Steps to Reproduce:

enter some text to extension search bar
select it (by the way I can only select whole text, not part of it)
Text isn't copied to the second clipboard (this is linux specific, middle button clipboard)

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

Does this work as expected when you select text from other search boxes? For example: The find widget in the editor?

@Yanpas What about from the editor? Open a file and try the same on the text in the file.

It works everywhere except extension search field. I'm sure it occurred after intellisence in this bar was introduced

@ramya-rao-a If that tiny editor would include the SelectionClipboard contribution, it would begin to work.

@alexandrudima The problem is that the editor lives in the browser layer and SelectionClipboard uses the clipboard from electron.
@roblourens Do you recall the need to have the suggestEnabledInput in the browser layer and not in the electron-browser layer?
Note: This issue will also affect the search in the new Settings editor


feat(format): Implement the protocol definition of GraphAr format

Reason for this PR

After implementation and including buf to graphar format definition, it's time to merge the format develop branch in to main.
What changes are included in this PR?

implementation of protocol of GraphAr format definition, there are some place that diff from the libraries:

the label naming to type, to distinguish with the multi-label support in the future.
extend the metadata to the definition, to including the number of vertex/edge, the chunk number of vertex, the edge num of each vertex chunk etc. We recorded the metadata with many files before.

Use buf to generate code from protobuf.
Add related CI

Are these changes tested?

Are there any user-facing changes?

No

Why diff is so big? May you, please, make a force-push from main to the branch?

By the way, based on implemented GH action I can assume that we are not storing generated code in git, right? Did you see my email in a list about it? For me the question is not so clear. @acezen

By the way, based on implemented GH action I can assume that we are not storing generated code in git, right? Did you see my email in a list about it? For me the question is not so clear. @acezen

Yes, I see the disscussion. Currently we do not storing generated code. But if some libraries implementation prefer to storing generated code, it can be added in the future.


highlighted element  becomes invisible when I add a position attribute

When I add a position attribute to highlighted element, it becomes invisible. Both absolute and relative position are the result of this.
“animate: false” didn't work.

Facing the same issue, element gets hidden. I confirmed that there is no z-index or opacity issue.

Same here. It impacts Bootstrap dropdown menu's in particular making them unusable.
When I remove the driver-active-element from the highlighted element, it displays correctly, but on the next click the driver-active-element but you cannot interact with it and it disappears again when you click inside the highlighted area.


[CELEBORN-1303] Introduce API request module for dashboard frontend

What changes were proposed in this pull request?

Adds api request module.
Adds license about @varlet/axle.
Adss pagination function.

Why are the changes needed?
API request module is required to request the backend interface for dashboard frontend.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
No.

LGTM. Thanks. Merged into main(v0.5.0).


Update level of Wycheproof tests to extended

Update level of Wycheproof tests to extended
Signed-off-by<EMAIL_ADDRESS><EMAIL_ADDRESS>

Related: https://github.com/AdoptOpenJDK/openjdk-tests/issues/1095

@Mesbah-Alam just to confirm if those tests are ready for 11? If not we will need to disable the 11 test builds.

@Mesbah-Alam confirmed that Wycheproof test behaved on Java 11 similar to how it behaves in Java 8 : https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1583/.
Should remove the limit of <subset>8</subset>


Overzealous stripping of MD newlines

The newline parsing logic introduced in https://github.com/symphonyoss/messageml-utils/issues/32 also strips newlines inside the message. This should be fixed so that only the initial newline gets stripped.

Fixed in 9b5122d2fed75fd0d268825155e409c0a17893f0