Add search_path arg

I find shutils only use PATH rather than sys.path. In jupyter it usually is the environment of the jupyter rather than the kernel. Adding this helps it search for castxml.

Hi. I added a comment and made a some minor style changes. Let me know if this is fine for you and I'll merge it.
MacOS build is failing but this is unrelated.

Fine.


Membership approval refresh (API changes)

Paired with: https://github.com/populationgenomics/cpg-infrastructure-private/pull/117
This PR introduces changes to support a user.yaml map that includes extra attributes like an azure ID, and hail batch username, some of which were hacked on as part of the config previously.
This much more cleanly represents what attributes are required for including users in our infrastructure.

@daniaki, this PR has preview errors, because it requires the cpg-infrastructure-private changes to be deployed. I've confirmed these locally, and will deploy this locally to manage the deploy.


The Breadcrumb component does not display the current item correctly

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The Breadcrumb  component does not display the current item correctly and only displays the last item as current.
I set the IsCurrentItem property of the BitBreadcrumbItem to true but it does not have any effect
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
7
Anything else?
Bit.BlazorUI => 4.8.0

Thanks for contacting us. We're investigating this issue.
We'll let you know if it's possible to work on this issue or not.

The issue is accepted and planned. Resolving it will start ASAP.

Resolving this issue has started. It will be announced when this issue is resolved.

This issue has been resolved and it will be available in the next pre-release version. It will be announced when the pre-release becomes ready.

The pre-release has been published. Please give it a try and give feedback.


Liquidation VS Debt

The concept of a liquidation seems to be hard to grasp in some instances. It's kind of the opposite of how people seem to think about money and how one person is in debt to another.
We could possibly rephrase the whole concept in the frontend by swapping directions basically. Inside the dialog the 2nd option would then  be "Add new Debt".

Since both perspectives/use cases are kinda valid and depending on the person adding that entry, probably a more generic wording like "transfer" would do. Or a UI concept for both, using the existing Liquidation in the backend.

Both perspectives are valid, but adding another one will probably just add more confusion.


Define Event Sources Using @ControllerConfiguration Annotation

It would be elegant to define event sources using annotations (just as we define dependent resources).
Proposed design for annotation would look like this:
@ControllerConfiguration(
    eventSources = @EventSources(informers = @Informer(resourceType = ConfigMap.class,
        followNamespaceChanges = true),others = @EventSource(type = MyPollingEventSource.class)))
public class SampleReconciler

where @Informer annotation would have most of the configurations, that could be defined by the config builder:
see: https://github.com/java-operator-sdk/java-operator-sdk/blob/6fd141fe1c3922fed11995814a222bcce446b015/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/Informer.java
Notes:

these event sources won't be subject of configuration override.

We agreed that this won't be supported for now.


⚠ Bofrost.de has degraded performance

In 119311c, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 980 ms

Resolved: Bofrost.de performance has improved in 2822d3b after 13 minutes.


SplashRequest does not execute LUA script

In Splash browser my lua script works fine. It must be executed in several seconds due to the some "splash:wait(1)" lines. But SplachRequest yields response with url's html.text as soon as starts.
Here is my code:
def parse(self, response):
		<...>
    script ='''
function main(splash)
splash.resource_timeout = 10.0
assert(splash:go(splash.args.url))
splash:wait(2)
local element = splash:select('a.phone-trigger')
local bounds = element:bounds()
element:mouse_click{x=bounds.width/2, y=bounds.height/2}
splash:wait(2)
return splash:html()
end
'''
    args = {'lua_source': script,
		'timeout': 10,
		'resource_timeout': 10,
		'wait': 5,
		'har': 1,
		'html': 1,
		}
    yield SplashRequest(url=buyers_link,
			callback=self.parse_buyer,
			cb_kwargs=data,
			endpoint='execute',
			args=args,
			dont_filter = True
			)
def parse_buyer(self, response,
	                Title,
			Name,
	                Contact,
	                Region
	                ):
<...>

And no matters what is it in lua script, SplashRequest always does the same. Even if I write:
script = """bla-bla-bla"""
I did everything exectly with documentation: run Docker, install all required packages, make these project settings:
DOWNLOADER_MIDDLEWARES = {
                        'scrapy_splash.SplashCookiesMiddleware': 723,
                        'scrapy_splash.SplashMiddleware': 725,
                        'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware': 810
                       }
SPIDER_MIDDLEWARES = {
                        'scrapy_splash.SplashDeduplicateArgsMiddleware': 100
                    }
DUPEFILTER_CLASS = 'scrapy_splash.SplashAwareDupeFilter'
HTTPCACHE_STORAGE = 'scrapy_splash.SplashAwareFSCacheStorage'

But it works like there is no splash at all! Please, help me in solving this problem!

I have a similar issue where Splash cannot find my lua script.
I've tried putting my lua script as a string constant and another option is to point it to a separate lua file, both returns the same error.
All my settings and request looks correct and this code was running fine last time.

How do you run scrapy? By bash command “scrapy crawl...” or by CrawlProcess()?

I have a similar issue where Splash cannot find my lua script.
I've tried putting my lua script as a string constant and another option is to point it to a separate lua file, both returns the same error.
All my settings and request looks correct and this code was running fine last time.

How do you run scrapy? By bash command “scrapy crawl...” or by CrawlProcess().crawl(...)?

A problem was in scrapy: when it runs via CrawlerProcess it does not load settings with splash middlewares from settings file.

Any more details on this issue? Not sure how this was resolved but I think I'm running into a similar issue here.

Any more details on this issue? Not sure how this was resolved but I think I'm running into a similar issue here.

 Via  bash command “scrapy crawl...” or by CrawlProcess().crawl(...)?

Ah you know what, I actually think I figured it out (commented over here) but:

setting the endpoint argument of your SplashRequest to execute (instead of the default render.html)

is what fixed me up.
Is that the expected behavior? If so I'd be happy to throw in a little note in the README making that a bit more explicit :)


Angular.io for Spanish

This is a placeholder issue. If you're interested in contributing to the localization project, please comment here and let us know how to reach you.
+guzmanpi +dvidsilva

Sign me in! You can reach me at<EMAIL_ADDRESS>

I'm interested in contributing as well. You can reach me at<EMAIL_ADDRESS>

I'm interested in contributing as well.  My email is<EMAIL_ADDRESS>

I'm interested in contributing as well. you can reach me<EMAIL_ADDRESS>

interested<EMAIL_ADDRESS>

¡Hola<EMAIL_ADDRESS>

I'm interested as well<EMAIL_ADDRESS>

I created several issues at the spanish repo so feel free to comment on one of them so I can assign them to you.
For a reference in how to translate, please check the chinese repo. Basically we leave the english version and we mix it with the spanish translation so the end users can toggle between languages.
For any other question, feel free to ask me.

I'm interested as well<EMAIL_ADDRESS>

I've sent an invite to join the Slack channel for discussion to everyone above. Please let me know if I missed you! Welcome :)

I would love to help out too<EMAIL_ADDRESS>

I'm in as well!
<EMAIL_ADDRESS>

Please, count on me<EMAIL_ADDRESS>

If you still need help<EMAIL_ADDRESS>

Count on me  too<EMAIL_ADDRESS>


new wrap: jansson

I have a wrap for jansson 2.11.
With master and 2.11 branch. Lets see if I got it right?
https://github.com/fzwoch/jansson

https://github.com/mesonbuild/jansson


'index.js' contains a valid Azure application insights key.

I'm getting this alert in a react front-end app, using the official client.

Azure application insights instrumentation keys are not secrets and can be shipped in client apps.

Hi,
you can ship in a front-end, but some attacker could get your key and add so much data that you wouldn't see yours, for example.
With that in mind, we are suggesting protecting it.
Right now, the AppInsightsKey has a warning level, which is not required to fix (since there are cases, for example, front-end pages, which might get more complicated). But we recommend using KV to store it.
This can give you an idea of how to fix it: https://devblogs.microsoft.com/premier-developer/alternative-way-to-protect-your-application-insights-instrumentation-key-in-javascript/

Hi Halid, after some review, we dropped the level from Error -> Warning.
With that, it won't flag during PRs.
I'm closing the PR for now.
Feel free to re-open.
Thank you!


Additional feature enablement query

There is a question related to some additional feature enablement in Company Communicator. Please refer the below link.
https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/issues/823
I have asked a few more questions related to that. Could you please provide answers for the following questions
We need to enable the option for specifying the list of people who only can download the reports generated after an author sends a message from author app. We got to know that it could be enabled in the next version release post internal discussion.
Below are the questions for which we are seeking some clarification:

When is the expected release of the next version which would have the enablement of "allow the download of reports only for specific people" option.
Please provide more information about the retention policy of reports and messages in the current version -
i. How long the authors can download the reports,
ii. How long the messages will be available in the chat and posts.

Hi @PrithuMahisha ,
Thanks for raising the query. We will discuss with our team and get back to you.

@PrithuMahisha , We don't have any ETA for the feature. We have added it to the backlog and depending on the priority we will be taking up in future releases but for now won't be able to commit for any specific timeline.
We will keep you posted when we plan for this feature release.
Regarding second part of your query, there will not expiration time of downloading the reports as the data is fetched from storage and we don't delete any historical data.


Missing proper sanitization of variables in class method renderForm()

A simple new class method should be implemented inside Request which handles sanitization, example:
/*
* Function to sanitize string - Strip tags, optionally strip or encode special characters.
* @Params: $string = the string, $mode = encode or strip special characters
*/

   private static function sanitize_string ($string, $mode = "strip"): string {
      if(!is_string($string))
        return;
      switch ($mode) {
            default:
            case "strip":
                $filter = array("flags"=> FILTER_FLAG_STRIP_LOW|FILTER_FLAG_STRIP_BACKTICK); //Keep characters like é and д
            break;

            case "encode":
                $filter = array("flags"=> FILTER_FLAG_ENCODE_LOW|FILTER_FLAG_ENCODE_AMP); //Keep characters like é and д
            break;

        }
      //Prevent Unicode and XSS attacks
      //https://stackoverflow.com/questions/8491431/how-to-replace-remove-4-byte-characters-from-a-utf-8-string-in-php
      return preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", filter_var(trim($string), FILTER_SANITIZE_STRING, $filter));
    }
}

And then, the renderForm() method should be updated:
public function renderForm($borica) : string {
        $html = '<form action="' .  self::sanitize_string ($borica->getApiUrl())  . '" method="POST" id="boricaForm">';

        foreach ($this->toPostData() as $key => $value) {
            $html .= '<input name="' .  self::sanitize_string ($key)  . '" value="' .  self::sanitize_string ($value) . '" style="width: 100%;"><br>';
        }

        $html .= '<button type="submut">Send to Borica</button></form>';

        return $html;
    }

Hi @budiony, thanks a lot for the issue. I already added basic encoding to prevent XSS in renderForm().
The next step is to sanitize and validate the data while creating a Request.


fix: KeyError in select.py heated seats current_option

Fixes the KeyError mentioned in 996. Not entirely sure if it'll fix the battery sensor issue.

Just realized the comment for heated steering function says heated seats so I fixed it.Sent from my iPhoneOn Jun 12, 2024, at 00:32, Alan Tse @.***> wrote:
@alandtse commented on this pull request.
In custom_components/tesla_custom/select.py:

@@ -271,7 +296,7 @@ def init(
car: TeslaCar,
coordinator: TeslaDataUpdateCoordinator,
):

   """Initialize heated seat entity."""

   """Initialize heated stearing wheel entity."""

steering
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Correct, but you misspelled steering wheel.


track dvcyaml file

Now that dvc.yaml will be written to the root, this PR ensures it is git-tracked.

Codecov Report
Patch coverage is 100.00% of modified lines.

Files Changed
Coverage

tests/test_log_artifact.py
ø

src/dvclive/live.py
100.00%

tests/test_dvc.py
100.00%

:loudspeaker: Thoughts on this report? Let us know!.

Not sure why the tests are failing. Some error relating to the version.

@skshetry WDYT? Should the failure block merging?

@dberenbaum, let me try to rerun, it is probably fixed in setuptools_scm. If not, we can merge it and pin it separately. :)


Dark background color

Any chance of explicitly setting background color of output to dark background color? Visuals can be unreadable on light terminal themes.

One tip, in order to change colors you could alias the wttr.in command on your .bashrc or .zshrc like the following:
alias weather='wttr.in/YOUR_CITY | sed -e 's:226m:202m:g'

where 226m is the yellow color code on 256 colors terminals which is changed with a more readable orange (202m).
the complete list of colors could be reached here

You can reduce it to this:
_weather() {     tmpfile=$(mktemp)     curl -s wttr.in/$1 | sed -e 's:226m:202m:g' } alias weather='_weather

@m0veax No, not really! What you did is what the first alias from @alex179ohm already does — pipe curl's output to sed. But, in addition, each time _weather is called you also create a wasteful temporary file (which is not used in your script and even not deleted afterwards).

I also use a light terminal theme so I created a shell script to solve this issue.
weather.sh:
#!/bin/bash

# default location
if [[ -n "$1" ]]; then
    LOC="$1"
else
    LOC="ADD_YOUR_DEFAULT_LOCATION_HERE"
fi

# force dark background color
esc=$'\e'
bg="$esc[48;5;232m"
eol="$esc[K"

echo -e "$bg$eol"
curl -s "http://wttr.in/$LOC" | sed "s/^/$bg$eol  /;s/\[0m/\[0m$bg/g"
echo -e "$bg$eol"

The ANSI escape sequences to set a dark background could be simply sent along with the rest of the text, just like the rest of the color escapes.

@book The issue not about background color per se, the point is to preare a new color scheme, that will good work with the new background

In case anybody simply wants to remove color entirely, I do that with sed 's/\x1B[0-9\[;]\+m//g'

@C4K3 Just use ?T
wttr.in/?T
it should work. Does it work for you?

@chubin It does, awesome, I didn't know about that option.

@chubin Hi,
Sorry to ping on this, but could you make min temperature blue color just a little bit brighter, please? It's so cold here, I can barely distinguish the digits at the low end.

I'm using Konsole with slightly customized Arc Dark theme, its background color is solid #383c4a.

I've changed it to violet. I think it is better so. You know, if it is -56⁰C outside, I think blue is not blue enough for that, it should be something special

I've changed it to violet. I think it is better so. You know, if it is -56⁰C outside, I think blue is not blue enough for that, it should be something special

@Layerex It is a cool tool. Maybe it we should integrate it on the server side

@chubin would be cool. But, I guess, fine-tuning original colorscheme without full inversion would be much better. For example, making sun orange or red and darkening other colors would fix the problem of readability without significantly altering colors.

@Layerex I agree. I believe we should just create color schemes, and make it possible for the uses to add their own color schemes + select the current color scheme

Why not use a proxy to invert the colors?

What proxy do you mean?
It would be really a good feature, to be able to specify the color scheme on the server side,
so that anybody could just use it

What proxy do you mean?

One that doesn't exist yet.

@chubin https://ansi-invert-proxy.9pfs.repl.co/https:/wttr.in/
I made a proxy that uses @Layerex 's library to invert ANSI escape sequences for requests. It's currently slow, but I'll try to make it more reliable (and maybe add caching).


added tests for save playlist use case

I added testing for save playlist. However it is to note that there is no automatic teardown for removing the file. You will need to manually remove the file from the path where you downloaded the file. I will further work on this teardown if time allows.

https://github.com/finesden33/Songwarp/issues/35#issue-2000667110 This issue is now completed


x/build: corellium builders failing with signal: killed

2022-09-01T15:27:07-b5b2cf5/android-arm-corellium
2022-09-01T02:24:14-91ef076/android-arm-corellium
2022-09-01T00:42:27-64b260d/android-arm-corellium
2022-09-01T00:42:27-64b260d/android-arm64-corellium
2022-08-31T23:52:00-ca634fa/android-arm-corellium
2022-08-31T23:52:00-ca634fa/android-arm64-corellium
2022-08-31T22:22:43-e4b624e/android-arm-corellium
2022-08-31T22:09:44-5f5c018/android-arm-corellium
2022-08-31T22:04:55-af7f067/android-arm-corellium
2022-08-31T21:10:41-52d9e7f/android-arm64-corellium
2022-08-31T20:05:46-239115c/android-arm-corellium
2022-08-31T20:05:06-9085ff5/android-arm64-corellium
2022-08-31T16:37:20-ebc75ac/android-arm64-corellium
2022-08-31T15:33:00-fa0e3bf/android-arm-corellium
2022-08-31T15:30:57-d01200e/android-arm-corellium
2022-08-31T15:30:26-a25a34a/android-arm64-corellium
2022-08-31T15:12:21-d3b35a4/android-arm64-corellium
2022-08-31T15:12:18-28e3885/android-arm64-corellium
2022-08-31T09:35:10-d2e0587/android-arm-corellium
2022-08-31T01:16:54-ee0e40a/android-arm-corellium
cc @golang/android

There was no manual intervention on the builder side to my knowledge. It is either caused by internal service changes on the Corellium side or the changes in the Go code base.
There is not much we can do for the first case, although I've communicated with them many times in the past.
For the second case, if the build process somehow changes to utilize more resources, such as memory, it may hit the VM limit set by Corellium, which could lead to the build failure.

cc @cuonglm as CL 421880 seems to be the first commit that causes: https://build.golang.org/log/b787fac76217446a7796bfe687e299e2313baf67

They look like OOM kill. How much memory does the builder have? Does the build run in parallel with other programs or containers?

These are the system info collected using adb shell dumpsys meminfo as of Sep 02, 2022.
Android Builder 1:
Total RAM: 1,984,500K (status moderate)
 Free RAM: 1,084,998K (  253,370K cached pss +   728,536K cached kernel +   103,092K free)
 Used RAM:   956,023K (  765,363K used pss +   190,660K kernel)
 Lost RAM:   -56,521K
   Tuning: 48 (large 192), oom   322,560K, restore limit   107,520K (high-end-gfx)

Android Builder 2:
Total RAM: 1,984,500K (status critical)
 Free RAM: 1,239,008K (        0K cached pss +   957,908K cached kernel +   281,100K free)
 Used RAM:   829,439K (  674,879K used pss +   154,560K kernel)
 Lost RAM:   -83,947K
   Tuning: 48 (large 192), oom   322,560K, restore limit   107,520K (high-end-gfx)

Android Builder 3:
Total RAM: 1,984,500K (status low)
 Free RAM: 1,237,810K (   91,994K cached pss +   185,712K cached kernel +   960,104K free)
 Used RAM:   834,669K (  671,777K used pss +   162,892K kernel)
 Lost RAM:   -87,979K
   Tuning: 48 (large 192), oom   322,560K, restore limit   107,520K (high-end-gfx)

cc @cuonglm as CL 421880 seems to be the first commit that causes: https://build.golang.org/log/b787fac76217446a7796bfe687e299e2313baf67

This is a real failed and was fixed at tip. The OOM killed seems different problem.

Based on some recent observations, it seems that the issue is gone. Perhaps now Corellium internal becomes more stable in managing their VMs and not killing OOMed builders anymore. At some point, we may simply close this issue without any further action.


Tex/Latex is a requirement

Describe the bug
The plot is not drawn because latex could not be found.
To Reproduce
Steps to reproduce the behavior:

Go to Google Colab
install dependencies:
!pip install numpy pandas matplotlib scipy biopython matplotlib argparse opencv-python
fetch a .pdb file:
!wget https://files.rcsb.org/download/6GVE.pdb
Install Ramachandran_Plotter:
!git clone https://github.com/Joseph-Ellaway/Ramachandran_Plotter.git
Change directory:
%cd Ramachandran_Plotter and move 6GVE.pdb into the directory.
Run program:
!python RamachandranPlotter.py --pdb 6GVE.pdb --plot_type 0
See error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/matplotlib/texmanager.py", line 306, in _run_checked_subprocess
    stderr=subprocess.STDOUT)
  File "/usr/lib/python3.7/subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'latex': 'latex'

Expected behavior
The plot should be drawn.
Desktop (please complete the following information):

OS: Mac 10.14
Browser [chrome]

Additional context
I assume that Latex is used to draw the phi and psi symbols. It may be more universal to use the ASCI codes ( u03A6, u03A8).

Hi David G. Oppenheimer,
Thanks for opening the issue and giving such a detailed report on the problem. I think the issue has now been patched, using the unicode chars instead of the LaTeX feature set from Matplotlib. I have also included a test PDB file in example_data, which you might find useful for testing purposes.
Let me know if you're having any further issues.


Issue with diffusers models

Thanks for putting this manual together!
Unfortunately, I cant find the script convert_controlnet_to_diffusers anywhere, not in the PR.
Could you help me with this? Thanks!

Hey, it got updated in the latest commit. It seems to be a WIP commit, try to git clone the commit before the current one. This commit ID should work: 9a37409663a53f775fa380db332d37d7ea75c915

Thank you so much!!!!
Op vr 24 feb. 2023 om 13:32 schreef Garimella Hari Pawan Kishore <
@.***>:

Hey, it got updated in the latest commit. It seems to be a WIP commit, try
to git clone the commit before the current one. This commit ID should work:
9a37409663a53f775fa380db332d37d7ea75c915
—
Reply to this email directly, view it on GitHub
https://github.com/haofanwang/ControlNet-for-Diffusers/issues/7#issuecomment-1443623289,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACGUCHULDNIFU5QRWPNYQTLWZCS6TANCNFSM6AAAAAAVG23D44
.
You are receiving this because you authored the thread.Message ID:
@.***>


[Bugfix] Animate progress bar on mount, update demo

Builds on top of #21
The progress bar would not animate on the initial mount of the component because no CSS transition would occur (the bar starts at the specified width).  This adds handling to start the bar at 0 and transition to the passed in completed value.
I've also updated the code for the demo to work correctly and added a script to build the demo, build-demo.  I don't know how this gets published to GitHub Pages, but that would need to be done after rebuilding the demo code.

Coverage decreased (-11.1%) to 88.889% when pulling e31057f087740ee231798086b483dfbcdbf0f636 on lsanwick:ls/animation-fix into 8977646d5bcd6dbe2ba6177d44f247b9e678be2e on abdennour:master.

@abdennour any chance you can review this?

No worries, thanks for taking a look!

@abdennour Can you look at this now? I've rebased it against the current master branch.  Not sure how the demo gets published, so that build product might need to be ignored.


Remove shadow-box via option

I would like an option to remove the shadow-box via an option (simply by saying boxShadow: true or boxShadow: false)

We can't provide an option for each CSS property that can be configured, that's why we expose the getStyles function, so you can overwrite it. Or you can redefine the styles via CSS.


write error messages for scpi_control.searcher.searchDevices

I am calling zahner_potentiostat.scpi_control.searcher.searchDevices() with a Zennium X connected to my computer via USB which has a PP242 on channel 1 of its EPC42. The function runs for very long (sth. like 20 s) and I get the following output in my console:
Serial interfaces found: ['/dev/ttyUSB2', '/dev/ttyUSB1', '/dev/ttyUSB0', '/dev/tty7']
/dev/ttyUSB2:
error: /dev/ttyUSB2
/dev/ttyUSB1:
IDN?

error: /dev/ttyUSB1
/dev/ttyUSB0:
error: /dev/ttyUSB0
/dev/tty7:
error: /dev/tty7

I know, I am trying to detect a Zennium device via this library but I think Zennium devices are SCPI devices as well, so it should show up. Even if it should not work, the function should not take that long and it should print some readable error messages
When I connect the PP242 to my computer directly via USB, the function behaves as expected within reasonable time.
The error message error is way to short to properly debug the connection. Please add some error messages, it would help users a lot with debugging.

The Zennium X needs Thales as runtime software on Windows and is not compatible with this library.
You are also welcome to contact me personally.
<EMAIL_ADDRESS>

This will be fixed in the next release.
The error messages will be more meaningful and with a process pool with a maximum of 4 processes, the search process will be speeded up significantly.

Fixed with commit 6d210947ca02cc7607018df6982153eb1c86258f in version 1.1.0.

Fixed with commit 6d21094 in version 1.1.0.

I think you mentioned a wrong commit? Anyways, I am happy with the current error messages, no need to reopen the issue.


Text is not a constructor

Describe the bug
Can't create a text object to send a message, it returns Text is not a constructor
To Reproduce
import { Text, Image, Document } from "whatsapp-api-js/messages";

const msg = new Text(`Copia este mensaje y envíalo al proveedor para que pueda identificarte:
Este es el resumen de tu solicitud:
*Producto solicitdado:* ${quote_accept.product}
*Presupuesto:* ${quote_accept.budget}
*Categoría:* ${quote_accept.category}

*Proveedor:* ${business.name}
*Precio Propuesto:* ${offer_accept.proposal_price}
*Mensaje del proveedor:* ${offer_accept.proposal_message}`)
await Whatsapp.sendMessage(PHONE_ID as string, customer_accept.phone, msg)

creating the text inside the sendMessage function doesn't work either, it was like that

Simple and straight to the point failing snippet
See error

Expected behavior
create the Text Object to be able to send the message
Version: 2.1.2
Even   const txt = new Text('Hola', false); doesn' work

Had to rollback to 2.0.0 and it works now so something broke between 2.0.0 and 2.1.2

Huh, that's weird. Let me check if I can replicate the issue.

The only "big" change between 2.0.0 and 2.1.0 was the addition of "sideEffects": false to the package.json, which might have broken the messages/index.ts imports accidentally.
Would you mind trying out this beta release?
npm i<EMAIL_ADDRESS>
That release is exactly the same as v2 except for the side effects property. If it breaks too, it's definitely the reason.

Working with 2.0.1-beta.0

Wow, ok, that's absolutely unexpected.
Let's keep scaling. 2.1.0 contains almost no code change, most of the files are documentation and CI/CD. The only ts files changed were index.ts, template.ts and types.ts, so I expect it to work too.
npm i<EMAIL_ADDRESS>

Do you want to try out 2.1.3-beta.0? I removed the sideEffects property from package.json

2.1.3-beta.0 still says that

I will close this as solved. The issue was a mismatching package and tsconfig.
For future reference, I recommend using the library with "type": "module" in package.json and "target": "es6", "module": "nodenext" and "skipLibCheck": true in tsconfig.json, specially since CJS support might be dropped in the future.


Build fails on OTP 27

I noticed that the build is failing on OTP 27
my env:
erl
Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1]

my rebar.config:
{plugins, [pc]}.
{erl_opts, [debug_info]}.
{deps, []}.

{shell, [
  % {config, "config/sys.config"},
    {apps, [myapp]}
]}.

DEBUG=1 rebar3 compile
===> Fetching pc v1.14.0
===> Making request to get package pc from repo hexpm (#{name => <<"hexpm">>,repo_verify_origin => true,
         repo_name => <<"hexpm">>,repo_url => <<"https://repo.hex.pm">>,
         repo_organization => undefined,api_url => <<"https://hex.pm/api">>,
         repo_verify => true})
===> Version cached at /Users/milad/.cache/rebar3/hex/hexpm/packages/pc-1.14.0.tar is up to date, reusing it
===> Compile (apps)
===> Running hooks for compile in app pc (/private/tmp/myapp/_build/default/plugins/pc) with configuration:
===> 	{pre_hooks, []}.
===> Running hooks for erlc_compile in app pc (/private/tmp/myapp/_build/default/plugins/pc) with configuration:
===> 	{pre_hooks, []}.
===> Analyzing applications...
===> Compiling pc
===> compile options: {erl_opts, [debug_info,inline_list_funcs,
                                         warn_deprecated_function,
                                         warn_export_all,warn_export_vars,
                                         warn_obsolete_guard,warn_shadow_vars,
                                         warn_untyped_record,
                                         warn_unused_function,
                                         warn_unused_import,
                                         warnings_as_errors]}.
===> files to analyze ["/private/tmp/myapp/_build/default/plugins/pc/src/pc_port_specs.erl",
                              "/private/tmp/myapp/_build/default/plugins/pc/src/pc_compilation.erl",
                              "/private/tmp/myapp/_build/default/plugins/pc/src/pc_util.erl",
                              "/private/tmp/myapp/_build/default/plugins/pc/src/pc_prv_compile.erl",
                              "/private/tmp/myapp/_build/default/plugins/pc/src/pc_prv_clean.erl",
                              "/private/tmp/myapp/_build/default/plugins/pc/src/pc_port_env.erl",
                              "/private/tmp/myapp/_build/default/plugins/pc/src/pc.erl"]
===>      Compiled pc.erl
===>      Compiled pc_prv_compile.erl
===>      Compiled pc_prv_clean.erl
===>      Compiled pc_util.erl
===>      Compiled pc_port_specs.erl
===>      Compiled pc_compilation.erl
===> Compiling _build/default/plugins/pc/src/pc_port_env.erl failed
_build/default/plugins/pc/src/pc_port_env.erl:190:10: code:lib_dir/2 is deprecated; this functionality will be removed in a future release

===> throw rebar_abort [{rebar_utils,abort,0,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_utils.erl"},
                                 {line,729}]},
                               {rebar_parallel,parallel_dispatch,4,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_parallel.erl"},
                                 {line,170}]},
                               {rebar_parallel,parallel_dispatch,4,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_parallel.erl"},
                                 {line,174}]},
                               {rebar_compiler,run,4,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_compiler.erl"},
                                 {line,261}]},
                               {lists,foreach_1,2,
                                [{file,"lists.erl"},{line,2310}]},
                               {rebar_prv_compile,
                                '-build_rebar3_apps/3-lc$^0/1-0-',3,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_prv_compile.erl"},
                                 {line,374}]},
                               {rebar_prv_compile,build_rebar3_apps,3,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_prv_compile.erl"},
                                 {line,389}]},
                               {rebar_prv_compile,run_compilers,4,
                                [{file,
                                  "/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_prv_compile.erl"},
                                 {line,192}]}]
===> Errors loading plugin pc. Run rebar3 with DEBUG=1 set to see errors.

Seems to be fixed in pc v1.15 by #80

I see, the question comes to my mind is why rebar is fetching v1.14.0 ? Is there another configuration/version update needs to be done for rebar to get v1.15.0?

why rebar is fetching v1.14.0 ?

Maybe:

your rebar3 fetched pc some weeks ago, when the latest one was 1.14.
right now, you tell rebar3 to install pc  without speficying which version you want
rebar3 first looks in $HOME/.cache/rebar3/hex/hexpm/packages and finds you already pc 1.14, and uses that one, why not?

If that's your case, some ideas:

Run: rebar3 plugins upgrade --all
or specify {plugins, [{pc, "1.15.0"}]}.

This is my cache dir
$ ls -rf -l $HOME/.cache/rebar3/hex/hexpm/
total 0
drwxr-xr-x  2 milad  staff   64 25 Jun 14:50 ./
drwxr-xr-x  4 milad  staff  128 13 Jun 10:42 ../

seems like that upgrade command did the trick.
$ rebar3 plugins upgrade --all
===> Fetching pc v1.14.0
===> Analyzing applications...
===> Compiling pc
===> Compiling _build/default/plugins/pc/src/pc_port_env.erl failed
_build/default/plugins/pc/src/pc_port_env.erl:190:10: code:lib_dir/2 is deprecated; this functionality will be removed in a future release

===> Errors loading plugin pc. Run rebar3 with DEBUG=1 set to see errors.
===> Upgrading pc v1.15.0
===> Analyzing applications...
===> Compiling pc

The issue is that I'm using snappyer and in that package, the pc version is not pinned in the plugins settings.
Thanks for the hint!


Using '$where' as function not works but string is ok

db.get('surveys').find(
  {
    _id: { $nin: alreadyAnswerSurveyIds },
    status: 'RUNING',
    $where: 'this.fieldA < this.fieldB'
  },
  {
    limit: 3,
    sort: { dateCreated: 1 }
  });

works fine!
but
db.get('surveys').find(
  {
    _id: { $nin: alreadyAnswerSurveyIds },
    status: 'RUNING',
    $where: function () {
      return this.fieldA < this.fieldB
    }
  },
  {
    limit: 3,
    sort: { dateCreated: 1 }
  });

The function usage is not ok

I'm not sure how we can support that if the driver doesn't.
Does mongoose support it?

closing for lack of feedback


Android Xamarin compile error: missing com.android.installreferrer

When attempting to compile a Xamarin Android app using SDK 7.0.0 or 7.0.2 using the Bitrise build service, the following error occurs:
R8 : warning : Missing class: com.android.installreferrer.api.InstallReferrerStateListener
R8 : error : Compilation can't be completed because some library classes are missing.

Link to the stack environment information used by Bitrise:
https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-vs4mac-stable.log
Issue is not reproducible on a local build/developer machine.  Suspicion is that something is missing from the above build stack environment info, but we can't figure out what.
Issue filed with Bitrise:
https://discuss.bitrise.io/t/android-build-issue-com-android-installreferrer/12459

@antonargunov can you take a look? Thank you.

Hello, we have the same error. It only occurs if using vs> = 16.5.0 so the error will be related to the new version of xamarin android or mono. In azure pipeline with mono 6.6 compiles well. Greetings and thanks

@matthewtcarter try to add the aar file to your Xamarin.Android project, for example at location YourProject/lib/installreferrer-xxx.aar

Hello! I can confirm that adding installreferrer-1.1.2.aar to the android project solves the compilation problem. My doubt is why this happens in some projects and not in others (all with branch.io). The same with VS version >= 16.5 gives error. Thank you @antonargunov

@RaFaGG @antonargunov
Adding the .aar file to a new /lib folder in our project did not work.  The Android project's csproj file includes the .aar as such:
<ItemGroup>
    <AndroidEmbeddedJavaLibrary Include="lib\installreferrer-1.1.2.aar" />
</ItemGroup>

Do we need to build a binding project with this .aar and include the compiled .dll instead?

@RaFaGG @antonargunov
As a followup note, we just noticed that there's a specific AndroidAarLibrary build action; trying that now and will report back.  In the meantime, can you confirm that's the correct setting to use for this?


Package my application failed with electron-packager

I try to package my application with electron-packager.
I have not errors but when run my exe nothing is happening.
Have you ever packager an application ?
Thk

I have not tried electron-packager with it. If it runs normally, do you think it could be an issue with the packager config?

When run command electron . whith my application or your full exemple it's run.
But when try to package my application or your full exemple '.exe" does'nt work.
With the basic exemple it's work.
How do you package your applications?

I haven't tried packaging before now. I packaged one of the examples successfully and it ran but the window did not show. I can try to get an example running tonight if not earlier.

Any update on this?

I didn't have any immediate luck with electron-packager a couple months ago. I haven't tried it with electron-builder yet but I plan to. When I initially looked at the issue it seemed like the child process was never starting and the UI was never being displayed as a result.
It is on my short list for the holidays so I plan to knock it out soon unless you want to take a swing at it first.

I've successfully packaged my app for windows with electron-packager.
It seems that the packed application puts my server stuff into resources/app, so my electronify arguments looks like that:
{
    command: 'node',
    args: ['dist/app.js'],
    options: {
        cwd: 'resources/app/server'
    },
    url: 'http://localhost:8080',
...
}

Furthermore the child-process-promise module, which are you using to spawn the server process, uses in version 2.2.0 cross-spawn which supports windows.
Therefore I've forked your project and updated the child-process-promise.
I can create a merge request if you want.

Thanks @Cir0X for the help! The cwd was my issue. I've also merged your version changes.
@ozee31 Both of the examples now have a README on how to package using electron-packager.


params_order_field_name_remove

This PR fix is not needed as it fixed with default sorting of action table, hence closing this PR.


YamlLine.hasNestedNode() and unit test

PR for #82
Implemented YamlLine.hasNestedNode()

Coverage decreased (-0.8%) to 84.095% when pulling ae074b79c86b55afe88d22a01d7eae8fbaeb45fb on 82 into 7d63c750a873c75bf84dea392fe8bd73996c387d on master.

@rultor merge pls

@rultor merge pls

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge pls

@amihaiemil Done! FYI, the full log is here (took me 1min)


Kanister docs update to version 0.100.0

Kanister docs update to version 0.100.0

Blocked by #2368


Slider calls onChange twice

The issue is on line 263, https://github.com/xinthink/react-native-material-kit/blob/4028992a6942d0b706758c355c5e0b8894de15a3/lib/mdl/Slider.js#L263
It should be TOUCH_UP not TOUCH_DOWN

You're right, thanks for reporting!


"npm rebuild node-sass" required whenever SPFx is updated

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.
Category
[ ] Question
[ ] Typo
[X ] Bug
[ ] Enhancement / Suggestion
[ ] Additional article idea
Expected or Desired Behavior
gulp serve should just work at the end of the V3 upgrade.
Observed Behavior
After Gulp serve I got this error - Error - [sass] Error: Missing binding C:\XXX\YYYY/Documents\SPFx\Projects\documentcardexample-webpart\node_modules\node-sass\vendor\win32-x64-46\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 4.x
Found bindings for the following environments:

Windows 32-bit with Node.js 4.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to build the binding for your current environment.
Error - 'sass' sub task errored after 7.54 s
Missing binding C:\XXX\YYYY/\Documents\SPFx\Projects\documentcardexample-webpart\node_modules\node-sass\vendor\win32-x64-46\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 4.x
Found bindings for the following environments:

Windows 32-bit with Node.js 4.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to build the binding for your current environment.
Steps to Reproduce
update the CardExample and then gulp serve
Thanks for your contribution! Sharing is caring.

Thanks @NPrice99 .  Just to clarify - does this only happen when you upgrade from one drop to another?  If you were to create the CardExample from scratch on the latest drop, does everything work correctly?

Hi Pat
This only happens when you upgrade from one drop to another.
I have successfully created the CardExample from scratch using the latest drop and everything works correctly without any extra steps.
Regards
Nigel
From: Pat Miller<EMAIL_ADDRESS>Sent: 15 September 2016 17:54
To: SharePoint/sp-dev-docs<EMAIL_ADDRESS>Cc: Nigel Price<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [SharePoint/sp-dev-docs] After V3 build had to run npm rebuild node-sass (#192)
Thanks @NPrice99https://github.com/NPrice99 . Just to clarify - does this only happen when you upgrade from one drop to another? If you were to create the CardExample from scratch on the latest drop, does everything work correctly?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/SharePoint/sp-dev-docs/issues/192#issuecomment-247385774, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIF00IUSvUwHN_ODV4HvF22ROicT6pw_ks5qqXgQgaJpZM4J9-VM.

No virus found in this message.
Checked by AVG - www.avg.comhttp://www.avg.com
Version: 2016.0.7688 / Virus Database: 4649/13008 - Release Date: 09/13/16

Hi @NPrice99,
this is an expectable behaviour because the binary dll's you created with older drop are no longer referenced correctly. This thing happens from my experience in many other cases too.
Even when you upgrade NodeJS to the next minor version.
In SPFX there are more binary components involved then just node-sass. In this case npm rebuild without specifing the module works best.
Another thing that works in most cases is to remove the node_modules folder and execute npm installthis will refresh all the existing node_modules, the source code for binary components will be downloaded and compiled again.

Unsure if there is any work for us here.  Marking as closed.  Feel free to reopen or create a new issue to track a specific issue.


[TODO] Path-dependent hit testing

For lines (arrow, circle, rectangles), we should only hit test when you are within X pixels of the line and not everywhere in the whitespace

Is it good idea to create multiple factories for each element type?
Every factory can define its own hit test function and draw function. Text element factory can define font, text and measure properties.

Sounds like a good idea yeah!


Feat/sse median in calculating recall cost, forget cost and learn cost

Are zeros removed? As user1823 said, we should remove all values that are precisely equal to 0.

Are zeros removed? As user1823 said, we should remove all values that are precisely equal to 0.

Should these revlogs be removed in training?

No, I meant that if review time=0 ms, it should be excluded from the median calculation. Though it might be a good idea to exclude them from everything.
@user1823 thoughts?

Now zero values have been removed in calculating the cost.

I can't verify the accuracy of the code but broadly it looks good to me.

Wait a minute, I couldn't find anything that removes the reviews with time > 20 min.

Thanks for reviews!


Expose blocknumber information for successful deployments to support creation of subgraphs

Reported on discord: https://discord.com/channels/750408878008827925/1153426756901032037/1212377098526924900
Building a subgraph requires knowing when to start indexing based on block number.
It should be possible to retrieve the block numbers of the successful transactions in the deployment.
The journal contains our on-chain interactions, including the hashes of our successful transactions. We should consider how we can expose that information and any other key transaction level metadata in Hardhat scripts and at the command line.

Perhaps an approach here is to enhance the return result from core's status function:
export interface GenericContractInfo extends DeployedContract {
  sourceName: string;
  abi: Abi;
  deployedBlockNumber: number // <-- the block number of the successful deploy transaction
}

Alternatively we could provide a mechanism for getting transaction data from the log related to a future.

even I am facing a similar issue, and need to get the blockNumber for startBlock of the subquery


Add support for specifying topics to record

Requires: https://github.com/ignitionrobotics/ign-gazebo/pull/315
Example usage:

    <record>
      <enabled>true</enabled>
      <!-- This path is used by cloudsim, please do not change -->
      <path>/tmp/ign/logs</path>
      <overwrite>true</overwrite>
      <record_topic>/world/.*</record_topic>
    </record>

Useful PR to prevent spamming: https://github.com/ignitionrobotics/ign-transport/pull/164
Signed-off-by: Nate Koenig<EMAIL_ADDRESS>

@osrf-jenkins run tests please

changes look good. Triggered new jenkins builds as there was an issue with homebrew

@osrf-jenkins run tests again

looks like we need a release of ign-gazebo2 first in order for CI to be green

@osrf-jenkins run tests now that ign-gazebo 2.25.0 is out


edit on heating_map.vtk creation

Much appreciated. Thanks for reporting and double thanks for fixing

You're welcome.
Can I ask you a question? I noticed that in the proposed example the tally 'heating' was used.
I am doing a neutronic analysis where I have to calculate the fusion power from neutrons and using the 'heating' tally I do not get the desired result, but I get a lower power value.
In my analysis I implemented a plasma source like the one proposed in the file '2_run_openmc_dagmc_simulation.py' and I noticed that by entering: “ my_source.particle = 'photon' ” I get the correct result instead.
It seems that the program is able to consider all interactions with photons, while losing some with neutrons. Could you explain me why?
Thanks again and sorry for the trouble.
Best regards.
Davide
Da: Jonathan Shimwell @.>
Inviato: martedì 14 marzo 2023 19:24
A: fusion-energy/magnetic_fusion_openmc_dagmc_paramak_example @.>
Cc: Davide Pettinari @.>; Author @.>
Oggetto: Re: [fusion-energy/magnetic_fusion_openmc_dagmc_paramak_example] edit on heating_map.vtk creation (PR #12)
Much appreciated. Thanks for reporting and double thanks for fixing
—
Reply to this email directly, view it on GitHubhttps://github.com/fusion-energy/magnetic_fusion_openmc_dagmc_paramak_example/pull/12#issuecomment-1468615314, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4O7VVWSKKGUIIIKKLBJUMDW4CZSHANCNFSM6AAAAAAV2ZVYEY.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

That is strange, have you modified the script from the example. If so feel free to post it here and I can take a look.
The only other thing I can think of is which cross sections are you using.

That is strange, have you modified the script from the example. If so feel free to post it here and I can take a look.
The only other thing I can think of is which cross sections are you using.

I noticed this in another code I wrote, but you can easily see it in this one as well.
Preface: I did not modify the script and I did not change the cross sections.
Running the script the results are:

TBR = 0.42
Heating of 16.45110774967452 MeV per source particle is deposited.
This heating value corresponds to a source of 4.11 MeV and not 14.08 MeV as it is defined.

Now, Inserting in the script '2_run_openmc_dagmc_simulation.py' the following change: my_source.particle = 'photon'.
The results obtained are:

TBR = 0 (and this is correct since photons are simulated)
Heating of 56.31 MeV per source particle is deposited.
This second result is also correct since it corresponds to a source of 14.08 MeV.
Why the difference in results?


Specify as much as possible in pyproject.toml

Look into whether the following configurations can be specified in pyproject.toml.

[x] .coveragerc
[ ] .env
[ ] .gitattributes
[ ] .gitignore
[ ] .gitmodules
[ ] .markdownlint.yaml
[ ] .pre-commit-config.yaml
[ ] .sourcery.yaml
[ ] codecov.yml
[x] pyrightconfig.json
[x] pytest.ini
[ ] renovate.json

Well, pyproject.toml has grown a lot and now has as much tooling config in it as possible. What remains cannot be specified in it.


improve logic for installing kernel devel packages to care about the actual devel files, not the package name

This is probably not the best way to do this; I haven't touched any Vagrant plugins for a long time.
In general, it would be preferable to install source packages based on the actual file we need (in this case, /usr/src/kernels/$(uname -r)) instead of trying to make assumptions about the package name (which are definitely wrong in the kernel-ml/kernel-lt/etc case, and probably for most enterprises that use differently-backported kernels, too).
I'm trying to figure out how to test this locally but figured I'd throw it over the fence for a look before I spent too much time on it.
This is an attempt to fix #325

Looks promising. Do you have a box around with one of the special kernels?


Add templated implementations of BCSR matrix operations

I was looking into implementing transpose multiplication for BCSR matrices when I discovered that the BCSR operations have separate implementations for each possible block size. I think we could get the same performance for most of the defined operations by templating on the block size, which would drastically reduce the amount of duplicated code.
So far I've added templated implementations of the 2 basic MatVec operations. I'm opening this PR to get @gjkennedy 's opinion on this before I continue converting more functions.

Timing suggests that the templated implementation of the MatVec product is as fast as the handwritten version, and both are faster than the existing generic implementation that uses BLAS. The timings below are for MatVec products computed using the stiffness matrix from one of my wingbox cases with ~420 kDOF on a single core (I'm assuming parallelisation won't make any difference to the results since the code being changed only affects the local block operations).
All compiled with EXTRA_CC_FLAGS = -fPIC -O3 -march=core-avx2 -mtune=core-avx2 -Wall
Using generic implementation (BCSRMatVecMult):
Timed for: 278 loops, best of 5
    time per loop: best=17.039 ms, mean=17.388 ± 0.3 ms

Using blocksize=6 specific implementation (BCSRMatVecMult6):
Timed for: 516 loops, best of 5
    time per loop: best=8.406 ms, mean=9.354 ± 1.0 ms

Using templated function (BCSRBlockMatVecMult<6>):
Timed for: 522 loops, best of 5
    time per loop: best=8.784 ms, mean=9.342 ± 0.2 ms


Update SDK version

@mr-flannery  I guess this should also apply for scaffolding-js?

Yeah, but I then noticed that if I could merge my own PRs, I could probably also commit directly. Which I then did.


Flutter in Debug JIT mode OOMs on Fuchsia

Found while working on https://b.corp.google.com/issues/158690361, this issue corresponds to  https://b.corp.google.com/issues/158312525.

Currently still under investigation by @iskakaushik and @rmacnak-google. Latest comment on upstream bug is OK to cross-post here, and is from 15-Jun:
In that snapshot, there's ~85MB of Strings that are retained by Scripts. That suggests the whole source for the program is taking up about half of the heap. It is not needed for execution, but some debugger tooling may want it.

As an update, @iskakaushik  been unable to reproduce this reliably, and was blocked on some issues around the target's build for much of the time since then. He'll be unavailable for the rest of the week, so there won't be forward progress on this during that time.

@iskakaushik has a reproducible case and is actively working on this issue.

@iskakaushik If there anything to do w.r.t this issue other than investigating how to trim the source string from the program? Other than that, it seems WAI that debug mode application are more resource intensive than release-mode ones.

We need to make sure that our colleagues can debug their app. How exactly we help them do that (e.g. splitting the app into smaller apps, or making Flutter more memory efficient, or something else) is up to them and us to figure out.

Update: David Murphy @ Google is attempting to change the build rules to not embed the sources and see if that lets the customer run the app in jit-debug mode. I will keep this assigned to myself so if the proposed fix doesn't work, we might need to explore other ways.

The proposed fix of --no-embed-sources has worked. Closing this issue.


Help on repeated tasks

Add a repeated attribute (default = 0) to tasks and increment it each time user keeps a pending task.
Show the repeated info next to the task label.
If repeated > 1, info becomes clickable and redirects to a new page asking why the user did not finish this task yet.

task is too big: offer to create a project from this task or split it into smaller tasks
user had no time for that: offer to move it into the tasks' inbox (not ready yet)
user had no motivation: offer user to take a break with a set of fresh new tasks such as "Watch a movie", "Read 10 pages of a book", "Wash the dishes", etc. The list should be editable and amendable.

Related to #42

I decided to take an easier option by displaying a simple information in a tooltip, I think it's enough.


Custom Allocators

The allocation step of Object:New/Object:PlacementNew is getting large enough that it might warrant a dedicated Object:Allocate step that could potentially be overloaded.
This has advantages for manual-memory based approaches, especially using attributes like LJ_Struct that can pull from native, preallocated memory blocks.

This is probably going to be a custom attribute, called Allocator. This will mean that PooledInstantiation is simply going to be an alias for a specific allocation technique.

This is implemented!


Get the view path of a widget on IE

Replace constructor.name with a new function called getName that works on Internet Explorer.
This new function is based on this workaround to support Function.name: http://matt.scharley.me/2012/03/09/monkey-patch-name-ie.html
Combined with PR #310, the library works fine on IE.
Disclaimer: I do not use Internet Explorer! However, I developed a TV panel using your library, and now we have to support IE...

Based on @rafaelescrich's comment, can someone confirm if this PR works in IE and if so, what versions?
Otherwise, no breaking changes and this seems like a desirable feature. Even if IE is lame.

Just found #310 -- seems like that PR is a better candidate as it includes these fixes as well as other changes.


Fix length change omission for StringSubstitutor cyclic detection

StringSubstitutor#substitute would throw StringIndexOutOfBoundsException when removing a variable start marker if StringSubstitutor wasn't using the internal representation of  TextStringBuilder#buffer. The local variable, priorVariables, contains unbalanced squirrely parentheses (replacing $${${TEST}} would cause priorVariables to add ${${TEST}}} -- amusingly didn't result in unexpected behavior). I discovered this when swapping all instances of buf.buffer to buf.toCharArray(). This PR ensures that both now have equivalent behavior. I was unable to tease out a test for this, as the length is only decremented to that point (but this change in length goes unused, hence the exception for toCharArray), so no overflows. I did port a test from StrSubstitutorTest.java, but the test passes before and after this change.
I believe this to be a trivial change (hence no JIRA ticket). Let me know if otherwise

Coverage increased (+0.1%) to 98.031% when pulling e291fb56ffa30536a8e9abf1fa471d4da3f4fd30 on nickbabcock:sub-cycle-fix into 8b07e17402a7ca148aa6442c1c1e25a2f700c713 on apache:master.

My apologies!

Checkout master branch
Apply diff

diff --git a/src/main/java/org/apache/commons/text/StringSubstitutor.java b/src/main/java/org/apache/commons/text/StringSubstitutor.java
index f4b53ee..4680edc 100644
--- a/src/main/java/org/apache/commons/text/StringSubstitutor.java
+++ b/src/main/java/org/apache/commons/text/StringSubstitutor.java
@@ -1330,7 +1330,7 @@ public class StringSubstitutor {
         final boolean top = priorVariables == null;
         boolean altered = false;
         int lengthChange = 0;
-        char[] chars = buf.buffer;
+        char[] chars = buf.toCharArray();
         int bufEnd = offset + length;
         int pos = offset;
         while (pos < bufEnd) {
@@ -1346,7 +1346,7 @@ public class StringSubstitutor {
                         continue;
                     }
                     buf.deleteCharAt(pos - 1);
-                    chars = buf.buffer; // in case buffer was altered
+                    chars = buf.toCharArray(); // in case buffer was altered
                     lengthChange--;
                     altered = true;
                     bufEnd--;
@@ -1432,7 +1432,7 @@ public class StringSubstitutor {
                                     pos += change;
                                     bufEnd += change;
                                     lengthChange += change;
-                                    chars = buf.buffer; // in case buffer was altered
+                                    chars = buf.toCharArray(); // in case buffer was altered
                                 } else if (undefinedVariableException) {
                                     throw new IllegalArgumentException(String.format(
                                             "Cannot resolve variable '%s' (enableSubstitutionInVariables=%s).", varName,

Run tests
Notice StringIndexOutOfBoundsException is thrown at

if (priorVariables == null) {
    priorVariables = new ArrayList<>();
    priorVariables.add(new String(chars, offset, length));
}

Understand "length" points passed the character array but since chars is implicitly relying on TextStringBuilder allocating behavior so the current implementation does not throw exception.
The real length is length - lengthChange

I think this would still require a change, as it appears to prevent an error you had (and which users may have as well). Trivial changes are more javadocs, style changes, rename a local variable, fix unused imports, etc. Anything that doesn't affect users regarding backward compatibility (binary or behaviour wise), and also don't add any new feature.

It's a logic bug that can't manifest in commons-text is due to the reliance on internal TextStringBuilder#buffer and how it's implemented. So the number of users effected by this bug is 0. I only came across the bug when a I needed to apply some changes and created the diff posted above.
Let me know if you'd want me to create a JIRA ticket still 😄

I would like feedback from the community on whether or not this should be merged. A failing test would make this a no-brainer of course but I understand this might not be possible here.


cleanup: deprecate PyTypeObject trait

The PyTypeObject trait has become a bit meaningless over time. The PyTypeInfo trait essentially covers the same role with additional functionality; there is even a blanket implementation of PyTypeObject for T: PyTypeInfo which is the only implementation I'm aware of.
To make things simpler, I suggest we fold the trait into PyTypeInfo.

Will wait for merging this until 0.16.4 is done.


Lack of clarity in documentation about exposing the "Client Secret" for Social Apps

I have the authentication workflow working properly with Google + a separate authentication workflow with email/passwords.
For the email/password workflow, here's what's working properly and looks secure to me.
  grant_type: 'password',
  client_id: 'Client ID of the social application in Django',
  username: username,
  password: password

But for the Google Authentication, I do this, and having the client secret public does not look secure to me
  grant_type: 'convert_token',
  client_id: 'Client ID of the social application in Django',
  client_secret: 'Client Secret of the social application in Django',
  token: 'Token received from Google',
  password: 'google-oauth2'

I'm pretty sure I'm missing something because this was not touched upon in the documentation. Would this be safe to deploy for production or do I need a new approach for this.
Thank you for your time!

Same issue here - convert_token endpoint requires client_secret, which I have to send from frontend. Obviously, this is not ideal

Obviously, this is not ideal

Is it possible that we're missing something about this workflow? I've avoided implementing this in a couple of live apps now because of the missing clarification.

Is it possible that we're missing something about this workflow? I've avoided implementing this in a couple of live apps now because of the missing clarification.
idk, I added a proxy which stores keys and adds them to the request automatically

What you can do is open a PR that changes the way it works. If you do not wish your apps  to keep the client secret in the FE, you can change drf-social-oauth2 so that it accetps only the client_id and works its magic from there.

@wagnerdelima Am I right in assuming from your response that it is normal to be storing the client secret generated by drf-social-oauth2 in the FE?

No, you should not store the client secret in the FE. The newest version of drf-social-oauth2 does not accept the client_secret in the request anymore. Take a look at the docs please.
The client secret should never be passed in the requests!

@AlexanderPershin @wasiqwiqar the client secret is not needed anymore. Use the latest version of the framework. Also, we shall receive the user name, family name and email from the /convert-token endpoint.

@AlexanderPershin @wasiqwiqar the client secret is not needed anymore. Use the latest version of the framework. Also, we shall receive the user name, family name and email from the /convert-token endpoint.

Thanks for the update!


question about kanata systemd service (how to reference a file in $HOME)

Issue description
I've successfully setup kanata but it was not easy, mostly because this was my first time using this kind of software.
I thought it would help to reference an external kanata configuration, such that I can just send a reload signal to kanata instead of having the slow nixos-rebuild switch
 services.kanata =  {
  enable = true;
  keyboards =  {
	main = {
	 devices = [ "/dev/input/by-path/platform-toto-serio-0-event-kbd" ];
     config = ''
        (include /home/teto/config/kanata/main.kbd)
        '';

this fails because the systemd service is highly-secure (kudos to maintainers)
https://github.com/NixOS/nixpkgs/blob/fb5f998b0cb57f1d64b12b2b1f5457136bc26538/nixos/modules/services/hardware/kanata.nix#L122
I wonder what are the implications of allowing the service to read files in my $HOME ? seems like I had to remove
UMask = "0077"; ProtectHome = true; to make it work. kanata is by default compiled without "cmd" so it should not be able to run a command.
It looks ok to me ? I am not asking for nixpkgs to support this necessarily, I could override the service settings with mkForce but I wonder if it puts me at some crazy risk ? I suppose  /home/teto/config/kanata/main.kbd is not going to be changed.
@jian-lin
on nixos-unstable

It is indeed time-consuming to run nixos-rebuild repeatedly to get a stable and usable config.
My workaround for this is to view nixos-rebuild as a deployment tool instead of a development/testing tool, i.e., I only add a stable config to my NixOS config and using nixos-rebuild to deploy it.
For kanata, one way to get a stable config without nixos-rebuild is to run it directly, such as sudo /path/to/kanata --cfg /path/to/your-config.  Since kanata's NixOS module defines it as a systemd service, your approach of opening a hole from those hardening options is also viable.  To open a smallest hole, the following snippet is enough.
systemd.services.kanata-foo.serviceConfig = {
  ProtectHome = lib.mkForce "tmpfs";
  BindReadOnlyPaths = "/home/me/test-config.kanata";
};

Whether this hole is a security issue to you depends on your threat model.  In general, it is fine to expose a read-only file to a service.


[5.7][SourceKit] Resolve a nondeterministic deadlock in SourceKit while cancelling

Explanation: This fixes a race-conditioned deadlock which could occur while cancelling SourceKit AST build request:
We have one thread that claimed CancellationRequestCallbackMtx in SwiftASTConsumer::requestCancellation and wants to claim ConsumersAndResultMtx in ASTBuildOperation::requestConsumerCancellation.
Another thread claimed ConsumersAndResultMtx in ASTBuildOperation::schedule and now wants to claim CancellationRequestCallbackMtx in SwiftASTConsumer::removeCancellationRequestCallback.
In both cases we could actually release one lock before claiming the other.
Scope: SourceKit request handling
Risk: Low, just pulls code that doesn’t need a lock out from the lock scope
Issue: rdar://90870793
Reviewer: @bnbarham on https://github.com/apple/swift/pull/42258

@swift-ci Please test


feat: aggregate attribution maps

Perturbation and gradient attribution methods provide pixel-based attributions. To make this attribution comparable with LIME attributions we propose to aggregate the pixel-based attributions.
We could group the attribution maps by channels or by spatial positions.
This approach could also make reading information from the charts easier. Since user would not need to perform the aggregation by themself, but rather look at the easier to understand data - for instance, user could easily notice, that the infrared band gives is much more important for the model than the ultraviolet.

#45 #44 are needed to be resolved first to implement this feature

Resolved with #71


Traffic Manager is configured to fail over and fail back so that production traffic is handled with minimal disruption

Copied from Azure Dev Ops Backlog
Tasks:

Configure TM with a 10 sec polling timeout
Configure TM to retry twice
Configure TM to poll each location every 20 sec

moved to entref-appservice-containers project


New loading template

Here is a quick change to add a centered loader instead of the loading text:
/client/views/loading/loading.html
<template name="loading">

</template>

and add this into  /client/styles/default/styles.less
// **** LOADING ****
.loading {
  text-align: center;
  padding: 48px 0; // to avoid seing it top when loading main pages
  vertical-align:middle;
  i {
    color: @gray-lighter;
  }
}

Added and uploaded. Thanks!

Online now v0.9.33

yey :) That makes it my first open-source contribution!
Congrats for the new version.
2015-04-19 23:22 GMT+02:00 Petar Korponaić<EMAIL_ADDRESS>
Online now v0.9.33
—
Reply to this email directly or view it on GitHub
https://github.com/perak/kitchen-site/issues/69#issuecomment-94316551.

Congratulations for first open source contribution! (Time to open champagne! :) )


The Cursor Position in Text Editor

Describe the bug
There is a bug whenever we create a long text, the editor shows the blinking cursor position few letters earlier but actually, it is not there. I have updated the editor to the version 3.10.0 but no impact, still the same. Someone else also raised the same issue but not resolved yet.

Thanks for the tip. There is an issue originally, so we'll see it there
#325

Issue not resolved. If I change the default NOTO fonts to Raleway and create a long text, The cursor shows this kind of behaviour.


Fix test runner build

Simplify exported symbols cmake code
Pass exported symbols file to STRIPFLAGS option
Remove quiet option to xcodebuild to keep full logs in Jenkins
Fix bug in run-tests when additional empty lines are dumped by test runner after the last test result line

run ci

run ci

run ci


Syntax Highlighting is Completely GONE

After I tried to apply a theme "fast-theme -t ", my syntax highlighting was gone and all the text was white. Restarting zsh didn't fix this issue.

Restarting with "fast-theme -r" fixed it but I still want to know why setting a theme doesn't work.

@Amarakon55 Did you get this resolved?
If not, please share relevant code / zinit config.

Conflicts with zsh-autocomplete if that makes any difference. Changed back to the original highlighter by @zsh-users.

@Amarakon55 please share relevant code or can this issue be closed?

@vladdoster yes I did get it resolved.
I switched back to the default theme.
As @spikespaz said, other themes conflict with zsh-autocomplete.
I will close this issue.


Gitian Linux confi8g: replace arm 32-bit with arm64 (aarch64)

See Issue #1230
My recommendation is that we only support 64-bit ARM, so this PR replaces 32-bit with 64-bit. I suppose we could do both, but unless there is someone who is really going to use (and test!) the 32-bit version, we should probably not release it.

Nice, thanks!


Build img optimization

Checklist before submitting

[x] Did you read the contributor guide?
[ ] Did you update any affected documentation?
[x] Did you write any tests to validate this change?

Description
Fixes https://github.com/open-ce/open-ce-builder/issues/5.
Following are the changes I've done to optimize the docker image size and build time -

Use local conda channel as the docker build context
Copy conda environment file and Dockerfile to be used into a TEMP_FILES folder inside local conda channel. This was needed as the docker version on ppc doesn't allow Dockerfiles to be out of context. So, I'd copy that to the local conda channel which is set as build context. And then for better structuring and ensuring cleanup, I moved the conda env file being used in the same TEMP_FILES dir. Also, to be consistent and less confusing, I kept the same setup on x86 too.
Have two different Dockerfiles for ppc and x86 as the features available in docker versions on both platforms are different
Commands in Dockerfiles are clubbed wherever possible. Also added conda clean --all and removal of local conda channel from the built image.

Review process to land

All tests and other checks must succeed.
At least one maintainer must review and approve.
If any  maintainer requests changes, they must be addressed.

@bnemanich - Yesterday, did you mean that I should add runtime Dockerfiles for ubi8 too? OR same Dockerfile to work for ubi8 too with base image being passed as an argument to the Dockerfile? If in case, we will also need to add an argument to build image to specify rhel7/rhel8 ?

Codecov Report

Merging #16 (7b79e95) into main (37c8720) will decrease coverage by 0.22%.
The diff coverage is 86.21%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
- Coverage   95.56%   95.34%   -0.22%
==========================================
  Files          20       20
  Lines        1689     1694       +5
==========================================
+ Hits         1614     1615       +1
- Misses         75       79       +4

Flag
Coverage Δ

unittests
95.34% <86.21%> (-0.22%)
:arrow_down:

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

Impacted Files
Coverage Δ

open_ce/build_image.py
92.75% <86.21%> (+0.57%)
:arrow_up:

open_ce/utils.py
91.26% <0.00%> (-2.19%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37c8720...7b79e95. Read the comment docs.

Codecov Report

Merging #16 (7b79e95) into main (37c8720) will decrease coverage by 0.22%.
The diff coverage is 86.21%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
- Coverage   95.56%   95.34%   -0.22%
==========================================
  Files          20       20
  Lines        1689     1694       +5
==========================================
+ Hits         1614     1615       +1
- Misses         75       79       +4

Flag
Coverage Δ

unittests
95.34% <86.21%> (-0.22%)
:arrow_down:

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

Impacted Files
Coverage Δ

open_ce/build_image.py
92.75% <86.21%> (+0.57%)
:arrow_up:

open_ce/utils.py
91.26% <0.00%> (-2.19%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37c8720...7b79e95. Read the comment docs.

@bnemanich - Could you please have a look at this PR and let me know your feedback?

I think these changes look really good! I added a couple of small cleanup comments. Could you also modify the description at the top of the PR to say there are two different Dockerfiles for podman and docker as opposed to x86 and Power?

Thank you @bnemanich ! I'll implement those small changes and add some tests.


Var(Value at Risk) data

Can we get Var data or I need to build and push it here ?

Hi, Can you please explain your requirements, I can help you.
Tanmay,
Tanmay

There is one file in "CM - Var Margin Rates (End of the Day)
Is it possible to get it from your code or do you have idea how can I do it ?
It will be really helpful for our community, since we don't need to do it manually.

I will add these data in next version.
Can you contact me on my WP<PHONE_NUMBER>.
Just want to know how it Var data is so relevant.

this data is available now in nselib 1.1


Ab/implement multi base custom reader

This PR:

removes the items endpoints since we don't need them yet
adds the AssetReader class which inherits from MultiBaseReader and enables dynamic definition and use of the asset reader depending on the asset type. Mostly a copy paste of the implementation of the tile method for the MultiBaseReader in https://github.com/cogeotiff/rio-tiler/pull/711. The XarrayReader is not implemented yet so the _get_reader method will throw an error for the hdf5/netcdf media types
Adds a few tests

A few questions / todos which may turn into separate issues:

[ ] would like to add a tests for index parameters since its a bit of unclear how that is intended to work in the
[ ] fix test for tile method in asset reader (very slow)
[ ] I noticed the AssetReader, since it depends on the MultiBaseReader and thus the spatial mixin requires input.bbox and input.assets - is there a way to include this in the class attributes so it's clear these keys in the input dict are required?

@vincentsarago I believe I have addressed all comments, do you mind taking another look?
There are some outstanding issues mostly around testing and type checking that I listed in the description that I will turn into issues.


Update solana.tokenlist.json

Add a new token (CatsCoffee)
I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address:
Token Name:
Token Symbol:
Logo: (logo should be uploaded under assets/mainnet//*.<png/svg>)
Link to the official homepage of token:
Coingecko ID if available (https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id_):

add a new token (cats coffee)


Add support for margin and padding shorthand properties

Thanks for the great plugin, it really helped!
Sadly, it doesn’t work with margin and padding shorthand properties. For example:
Input:
margin: 1px 2px 3px 4px;

Expected output:
margin-block: 1px 3px;
margin-inline: 4px 2px;

@sairus2k  I'll take a look at it this evening. What is the actual outcome, I'm not currently on my dev machine to check it out.

Ok, need to write some more test cases but should have this fixed by the end of the week at the latest (hopefully not too long but having to do it once I finish work for clients)

Based on caniuse, margin-inline and padding-inline aren't well-supported. At this moment, converting to margin-inline-start/end is better.

Update: is already widely supported by browsers (88.57%).
It wasn't supported by Safari, but they fixed it on the latest release.
If we can help somehow to develop or test this, let us know.

Update: is already widely supported by browsers (88.57%). It wasn't supported by Safari, but they fixed it on the latest release.
If we can help somehow to develop or test this, let us know.

Sorry for the delay. I'll take a look this week at this. If you can help that be great. It's really simple the code base so shouldn't be too hard.

@Jordan-Hall - any update on this feature?
I will be forking and working out a solution for my project if you are not already too far along.

I have the code checked out right now looking at next release. Feel free to submit any PR on the solutions and I'll get it merged.

Thank you @sc-keithbauer  for this fix. Merged and released.

Because of this change at 4.1.0 padding: 18px is incorrectly reported as an error:
Unexpected "padding" property. Use "padding-block and padding-inline". (liberty/use-logical-spec)

IMO a good solution would be if the plugin ignored padding and margin properties with 1 (applies to all sides) or 2 values (applies to block and inline).

I agree with @certainlyakey and opened #39 to follow up on this


Problem with usps site. Looks like USPS component caused it. I cannot think of anything else.

Home Assistant release with the issue:

Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):

Component/platform:

Raspberry Pi3
HomeAssistant 66.0.
Python 3.5.3
Description of problem:
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
usps:
    username:  !secret uspsusername
    password:  !secret uspspassword
    driver: phantomjs

Traceback (if applicable):

Additional information:
It worked for some time. Suddenly stopped working. I waiting for some time. Tried to remove it an add it back. Updated HA to 66.1, but nothing helped.
I decided to double check my settings on usps.com, but found that I cannot access it. I received Access denied message:

I checked and I could not connect to usps.com from any computer in my house, but I can connect to usps.com from any other network.
I emailed their support and they asked me for my address, IP address and some other information. After I replied them, I received the following:

Your IP Address was initially blocked from using the USPS.com web page due to the activity level for web scraping surpassing our acceptable threshold.

They said that my IP address is cleared now, but warned me that it could be blocked again. Now I am not sure if I should enable the USPS component again.
Any ideas why did it happen? What can I do to prevent it from happening again?

Duplicate of https://github.com/home-assistant/home-assistant/issues/13688.


Support all valid collection names

Closes #750.
Checklist.

[x] Tests are added for new functionality or fixed bugs.
[x] task all passes.

See CONTRIBUTING.md for more details.

See #815


[Kernel Bare Bones] Hard Disk load disk error Qemu.

I followed everything step by step to 13 Kernel Bare Bones where I encountered a problem.
While running os-image.bin in Qemu it says:
Booting From Hard Disk...
Boot Failed: Cannot boot from hard disk
Running it with -hda instead of -fda my bootloader throws the error Disk Error with Hex 0x0c80.
Also it gives this warning while linking kernel.o and kernel_entrypoint.o:
/usr/local/i386elfgcc/bin/i386-elf-ld: warning: cannot find entry symbol _start; defaulting to 00001000

Same code. How to fix?

make sure that the kernel offset is 0x1000 in bootsect.asm and that you are loading 2 into the dh register before calling disk_load.
also running  qemu-system-x86_64 -fda os-image.bin works pretty well for me.
The warning that you are getting that it's defaulting to 00001000 is just the kernel offset specified in bootsect.asm. Which is where the kernel will be found in memory. So this warning is nothing to worry about and will not cause any trouble when linking all your files together.
hopefully this helps

make sure that the kernel offset is 0x1000 in bootsect.asm and that you are loading 2 into the dh register before calling disk_load.
also running qemu-system-x86_64 -fda os-image.bin works pretty well for me.
The warning that you are getting that it's defaulting to 00001000 is just the kernel offset specified in bootsect.asm. Which is where the kernel will be found in memory. So this warning is nothing to worry about and will not cause any trouble when linking all your files together.
hopefully this helps

It didn't work. I mean everything you said is correct and in my code they are too. The problem is it can't load the disk so if I use -fda it loads from floppy disk (since it can't load from hard disk) but I want it to load from hard disk so I use -hda and it returns error code 0x0c80. My disk.asm is alright.
Why don't you check my source code and see if I am doing anything wrong.
https://github.com/Nabir14/AmpereOS

Not sure if you still need help, but the issue appears to be from qemu/emulation. Technically the bootloader + kernel are only 2 sectors, where the first one is loaded by the BIOS and when you are having the BIOS load more than 1 sector, there is not actually a second sector(3rd on the disk) to read. On real hardware this should work, but due to qemu it just, doesn't. This can be fixed by adding -fda or -cdrom as a flag for qemu.
Another way to fix it that I would not generally recommend is just by adding more 0x00 bytes onto the end of the bootloader and kernel.
The entry symbol problem can be fixed by adding global _start to the kernel_entry.asm file and define the _start label.

Not sure if you still need help, but the issue appears to be from qemu/emulation. Technically the bootloader + kernel are only 2 sectors, where the first one is loaded by the BIOS and when you are having the BIOS load more than 1 sector, there is not actually a second sector(3rd on the disk) to read. On real hardware this should work, but due to qemu it just, doesn't. This can be fixed by adding -fda or -cdrom as a flag for qemu.
Another way to fix it that I would not generally recommend is just by adding more 0x00 bytes onto the end of the bootloader and kernel.
The entry symbol problem can be fixed by adding global _start to the kernel_entry.asm file and define the _start label.

Yes I still need help. Well thanks I might try this and see if it works.


metasql is undefined

Caught an error in application/domain/database/start.js  after starting the server, it seems there was no metasql injection
TypeError: Cannot read property 'Database' of undefined   Object.<anonymous> (start:5:41)

Please provide full stack trace @dzxt

Please provide full stack trace @dzxt

Ubuntu 20.04.1 LTS (5.4.0-60-generic)
05:02:21  W3   info    Listen port 8002 in worker 3
05:02:21  W1   error   Can not load TLS certificates
05:02:21  W2   info    Listen port 8001 in worker 2
05:02:21  W1   info    Listen port 8000 in worker 1
05:02:21  W5   log     Start example plugin
05:02:21  W4   log     Start example plugin
05:02:21  W2   log     Start example plugin
05:02:21  W3   log     Start example plugin
05:02:21  W4   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W5   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W5   log     { get: 'keyName' }
05:02:21  W5   log     { return: 100 }
05:02:21  W4   log     { get: 'keyName' }
05:02:21  W5   log     { res: 100, cache: undefined }
05:02:21  W4   log     { return: 100 }
05:02:21  W5   debug   Connect to pg
05:02:21  W4   log     { res: 100, cache: undefined }
05:02:21  W5   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W4   debug   Connect to pg
05:02:21  W3   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W4   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W2   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W3   log     { get: 'keyName' }
05:02:21  W2   log     { get: 'keyName' }
05:02:21  W2   log     { return: 100 }
05:02:21  W2   log     { res: 100, cache: undefined }
05:02:21  W2   debug   Connect to pg
05:02:21  W2   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W3   log     { return: 100 }
05:02:21  W3   log     { res: 100, cache: undefined }
05:02:21  W3   debug   Connect to pg
05:02:21  W3   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W1   log     Start example plugin
05:02:21  W1   log     { set: { key: 'keyName', val: 100 } }
05:02:22  W5   debug   Connect to metacom
05:02:21  W1   log     { get: 'keyName' }
05:02:21  W1   log     { return: 100 }
05:02:22  W4   debug   Connect to metacom
05:02:21  W1   log     { res: 100, cache: undefined }
05:02:21  W1   debug   Connect to pg
05:02:22  W1   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:22  W3   debug   Connect to metacom
05:02:22  W2   debug   Connect to metacom
05:02:22  W1   debug   Connect to metacom
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W4   info    Application started in worker 4
05:02:22  W3   info    Application started in worker 3
05:02:22  W5   info    Application started in worker 5
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W2   info    Application started in worker 2
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W1   info    Application started in worker 1

Ubuntu 20.04.1 LTS (5.4.0-60-generic)
05:02:21  W3   info    Listen port 8002 in worker 3
05:02:21  W1   error   Can not load TLS certificates
05:02:21  W2   info    Listen port 8001 in worker 2
05:02:21  W1   info    Listen port 8000 in worker 1
05:02:21  W5   log     Start example plugin
05:02:21  W4   log     Start example plugin
05:02:21  W2   log     Start example plugin
05:02:21  W3   log     Start example plugin
05:02:21  W4   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W5   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W5   log     { get: 'keyName' }
05:02:21  W5   log     { return: 100 }
05:02:21  W4   log     { get: 'keyName' }
05:02:21  W5   log     { res: 100, cache: undefined }
05:02:21  W4   log     { return: 100 }
05:02:21  W5   debug   Connect to pg
05:02:21  W4   log     { res: 100, cache: undefined }
05:02:21  W5   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W4   debug   Connect to pg
05:02:21  W3   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W4   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W2   log     { set: { key: 'keyName', val: 100 } }
05:02:21  W3   log     { get: 'keyName' }
05:02:21  W2   log     { get: 'keyName' }
05:02:21  W2   log     { return: 100 }
05:02:21  W2   log     { res: 100, cache: undefined }
05:02:21  W2   debug   Connect to pg
05:02:21  W2   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W3   log     { return: 100 }
05:02:21  W3   log     { res: 100, cache: undefined }
05:02:21  W3   debug   Connect to pg
05:02:21  W3   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:21  W1   log     Start example plugin
05:02:21  W1   log     { set: { key: 'keyName', val: 100 } }
05:02:22  W5   debug   Connect to metacom
05:02:21  W1   log     { get: 'keyName' }
05:02:21  W1   log     { return: 100 }
05:02:22  W4   debug   Connect to metacom
05:02:21  W1   log     { res: 100, cache: undefined }
05:02:21  W1   debug   Connect to pg
05:02:22  W1   error   TypeError: Cannot read property 'Database' of undefined
Object. (start:4:41)
Application.execute (/node_modules/impress/lib/application.js:212:13)
/node_modules/impress/lib/application.js:59:59
Array.map ()
Application.init (/node_modules/impress/lib/application.js:59:42)
async /node_modules/impress/lib/worker.js:55:3
05:02:22  W3   debug   Connect to metacom
05:02:22  W2   debug   Connect to metacom
05:02:22  W1   debug   Connect to metacom
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W4   info    Application started in worker 4
05:02:22  W3   info    Application started in worker 3
05:02:22  W5   info    Application started in worker 5
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W2   info    Application started in worker 2
05:02:22  W2   log     <IP_ADDRESS>	anonymous	system/introspect
05:02:22  W1   info    Application started in worker 1

Have the same problem
Additional information: after system/introspect we have an error too
12:00:35  W2   log     <IP_ADDRESS>	anonymous	system/introspect
12:00:35  W2   error   <IP_ADDRESS>	GET	/api	403	Forbidden
12:00:35  W2   error   <IP_ADDRESS>	GET	/api	500	TypeError: Cannot read property 'select' of null
  Auth.getUser (/node_modules/impress/lib/auth.js:119:8)
  Object.method (/application/api/auth.1/signIn.js:4:41)
  Channel.rpc (/node_modules/metacom/lib/channel.js:156:33)

Have the same problem
Additional information: after system/introspect we have an error too
12:00:35  W2   log     <IP_ADDRESS>	anonymous	system/introspect
12:00:35  W2   error   <IP_ADDRESS>	GET	/api	403	Forbidden
12:00:35  W2   error   <IP_ADDRESS>	GET	/api	500	TypeError: Cannot read property 'select' of null
  Auth.getUser (/node_modules/impress/lib/auth.js:119:8)
  Object.method (/application/api/auth.1/signIn.js:4:41)
  Channel.rpc (/node_modules/metacom/lib/channel.js:156:33)

I fixed it
Add metasql & pg depending on it.
And I also suggest correcting the readme. Initialize the database required before starting the application. This is missed in readme

I fixed it
Add metasql & pg depending on it.
And I also suggest correcting the readme. Initialize the database required before starting the application. This is missed in readme


How do I delete existing annotations?

When an annotation tool is deleted, existing annotations for that tool are deleted.

I don't understand your question based on your title and the message in the body. Can you elaborate more?

cornerstoneTools.annotation.state.removeAllAnnotations(element)


Can't reach 0.2.0-SNAPSHOT

I understand that I can download jar and install it in my local maven, but why this version build is not in the repo yep?


Additional example / notebook showing how easily alternative minhash approaches can be compared

Showing how to write the code leading to the figure in comment for https://github.com/marbl/Mash/issues/45 would make a cute notebook to showcase what the library's design can do.

Jupyter notebook now in doc/notebooks:
https://github.com/lgautier/mashing-pumpkins/blob/master/doc/notebooks/Sketches for double-stranded gemomes.ipynb