Getting Invalid argument error.

I have chainstate data on my windows machine, I am trying to run the script from WSL. But I am getting the following error.
reading chainstate database
inmem
Traceback (most recent call last):
File "btcposbal2csv.py", line 201, in
for address, sat_val, block_height in add_iter:
File "btcposbal2csv.py", line 101, in in_mem
types=get_types(in_args)):
File "/mnt/e/Finrocks/btc/btcposbal2csv/utils.py", line 323, in parse_ldb
db = plyvel.DB(fin_name, compression=None)  # Change with path to chainstate
File "plyvel/_plyvel.pyx", line 247, in plyvel._plyvel.DB.init
File "plyvel/_plyvel.pyx", line 88, in plyvel._plyvel.raise_for_status
plyvel._plyvel.IOError: IO error: /mnt/f/Bitcoin/chainstate/: Invalid argument

Thank you for the issue, I'll look into it (I usually run the script in WSL so that should not be the problem).
Please check the following:

you have stopped the bitcoin core before running this script
you are using python 2.7


[yarn testnet] doesn't work with local node

UI Version: 542783c703a4004a4f802ff7df71fc9465332b3b
Description:

latest gaia
run gaiad start
producing blocks
run COSMOS_NODE=localhost yarn testnet per README instructions,
get:

like, run yarn by itself or run yarn install? I did run yarn install prior to this command (followed the readme instructions). Running npm install then this command made it work, but that's not in the readme

so it sort of works, although when i go to localhost:9080, nothing

Is this still an issue?

probably. i don't see any evidence that it was fixed

There is documentation how to run this with a local node and it works well.


updated mango-viz version and docs

Coverage remained the same at 71.073% when pulling e2ff04a1015923280d4f5b6b5fbe326321d10a3a on akmorrow13:pypi into 303f8fa69253af5a0140e3454038ab538fc7f33f on bigdatagenomics:master.

Coverage remained the same at 71.073% when pulling e2ff04a1015923280d4f5b6b5fbe326321d10a3a on akmorrow13:pypi into 303f8fa69253af5a0140e3454038ab538fc7f33f on bigdatagenomics:master.


Appointments - Page and Navigation

As required by clients, the bookings feature needs a separate page for an appointments calendar. To begin development on this, a component for the page and its buttons needed to be created, and additions to the application router and nav bar needed to be made in order to navigate to this new page. Future development for this page will include implementing a calendar component on the page that has similar functionality to the exams calendar, but implements black out periods.

I think this may have been a timing issue, but the target branch for the previous PR containing this work was looking at sprint-7, not sprint-8


Do not init apiserver config, until after config reset

CORS defaults were not being applied any more, after #791 moved the initialization to be alongside all the rest of the HTTP server config.
We were initializing those config prefixes, before we were calling coreconfig.Reset()

Codecov Report

Merging #794 (46b75af) into main (9f59036) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main      #794      +/-   ##
===========================================
+ Coverage   99.96%   100.00%   +0.03%
===========================================
  Files         302       302
  Lines       18752     18752
===========================================
+ Hits        18745     18752       +7
+ Misses          5         0       -5
+ Partials        2         0       -2

Impacted Files
Coverage Δ

cmd/firefly.go
100.00% <100.00%> (ø)

internal/adminevents/websockets.go
100.00% <0.00%> (+2.38%)
:arrow_up:

internal/adminevents/manager.go
100.00% <0.00%> (+9.30%)
:arrow_up:

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 9f59036...46b75af. Read the comment docs.


[Template] Add sidebar links to news landing and detail pages

Add sidebar to News landing and news detail pages.
https://www.hubblehomes.com/news
https://www.hubblehomes.com/news/news-detail/building-a-greener-future-hubble-homes-receives-2024-energy-star-market-leader-award-161

@varunmitra @bhellema was this still needed?

The side bar was reduced in content and recent news was added to the bottom of the article page.  I don't think there's anything left to do for this ticket.

Based on confirmation from the customer, this issue is no longer relevant.


Allow full schema customization

Adds a full callback hook to customize schema after the type annotations have been processed, not unlike pydantics own __modify_schema__ customization point. The goal here is to provide a suitable fallback for arbitrary modifications to the OpenAPI specification, in case the provided attribute processing is not yet ready for the details. The alternative, implementing the full available OpenAPI fields, is unlikely to be feasible and not readily translate to annotations.

Codecov Report

Merging #36 (4bbcbb1) into main (3648dde) will decrease coverage by 0.17%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
- Coverage   93.12%   92.94%   -0.18%
==========================================
  Files          11       11
  Lines         771      780       +9
==========================================
+ Hits          718      725       +7
- Misses         53       55       +2

Impacted Files
Coverage Δ

aiohttp_pydantic/oas/struct.py
90.61% <66.66%> (-0.30%)
:arrow_down:

aiohttp_pydantic/oas/view.py
93.80% <66.66%> (-0.75%)
:arrow_down:

aiohttp_pydantic/injectors.py
96.00% <0.00%> (+0.08%)
:arrow_up:

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 3648dde...4bbcbb1. Read the comment docs.

Please, in the readme, add paragraph "Custom Open API Schema" between "Custom Validation error" and "Demo" paragraphs.
and a unittest


rmd file support

Would love to have R Studio markdown format support, not only markdown format. (we have rm file support, just add rmd too).
https://rmarkdown.rstudio.com/authoring_quick_tour.html

What would be the use case for this? AFAIK, RStudio can convert R Markdown to PDF.

Not sure if there are any other ways to accomplish this, but it seems like the only way to convert this is going from RMD->MD->HTML->PDF. But the RMD->MD steps would require Rscript and that requires R/RStudio. I guess we could have this in the full version, but I have no idea what the size of the dependencies for this are.

Closing this feature as not planned due to RStudio requirement


Bbabel

What is this PR for? It look like this is a mistake.

@cityfurnish if you need help making an pr you can ask.


Plugin not working

I'm trying to run the Analysis through the context menu, and nothing happens.
When I right click and run, nothing appears as a toast or in the console. The console does log cleans and deletes, but nothing else.
When I try to use the keyboard shortcut, I get an error popup saying
"Running the contributed command: 'extension.editor_ghdl-analyze_file' failed."

I have the same issue. I've properly installed ghdl, gtkwave and properly set environment variables. Options on right click don't work.

I see that one person in issue #4 somehow resolved similar problem, but i don't see the solution there.


⚠ Bofrost.fr has degraded performance

In e315851, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1031 ms

Resolved: Bofrost.fr performance has improved in 5de723f.


Provide example with versioned assets

An example is provided on how to use standard assets, but it would be great to show how to serve versioned assets using something like https://github.com/sbt/sbt-digest

I have attempted to try and implement this myself as a plugin however I have hit a roadblock which you can see here https://github.com/mdedetrich/akka-http-with-scalajs-digest-issue

I have made a project here https://github.com/mdedetrich/sbt-digest-reverse-router which should greatly simplify this.
I will wait until https://github.com/sbt/sbt-digest/pull/29 is merged and sbt-digest is released as a new version, and then I will make a new PR in this folder which demonstrates versioned assets using the library


Strange behaviour when adding button

I want to add a button to the text in the editor and I am able to do it with trumbowyg.html() method or with the execCmd command, even with innerHTML the button appears in the editor but the problem is the caret remains inside the button and I can't continue editing. If I press enter it breaks the line but the cursor remains inside the button so there is no way to get the focus back to the editor and keep working.
Is there any reason for this behaviour?

Idk, it due to some contenteditable issue of the browser :/
Maybe it can be fixed on my side, but I did not want to waste time on it since it's not a core feature, sorry.

Ok, thank you, I decided to add the button at the end of the edition so I have no problem now.


Fixed issue #6394

Issue Reference
#6394
Description
Added a scroller on the empty input field on Add to cart button click

@akathuria289
Not working properly. the error should be focused only after one click.

@Sanjaybhattwebkul  FIxed

@akathuria289
Is it possible to fix this for the complete velocity package?

@akathuria289
Please resolve the conflicts

Added


Custom cache configuration using JSON Type of Redis

Hey, I have Redis hosted on a cloud provider called aiven, which does not support RedisJSON.
While using your library, autocaching works well because it stores it as Strings in the Redis DB. But I am unable to use custom cache configuration and invalidation since it's using RedisJSON. Is there any workaround for this ?

Hi @sid-js,
I have added the option to use STRING in the latest version v1.2.0. Please don't hesitate to let me know if anything.


rename the binaries

Currently the binaries built by infrakit have unhelpful names, eg cli, file (conflicts with common unix command), vagrant (its not vagrant) etc. The simplest solution is to just prefix them all infrakit-... not sure about other options.
For the plugins maybe it doesn't matter, but then we should remove the make install from the Makefile.

Are you on the latest master?  The binaries have been renamed, e.g cli to infrakit, vagrant to infrakit-instance-vagrant.
Great minds think alike :-)

Ah cool, great, will make sure I am updated...


Set a keyboard function to take screenshot

Currently you can only take screenshots on the client by using the camera button on the top of the client would it be possible to make it so a keyboard function can take a screenshot for you. Ex: prt sq key, home key, scr lk key, ETC

Duplicate of #1013


Why is this package called "SoyURT" ?

Maybe you could add a comment to README.md that explains the name. (I would have thought UST for Uniform Soy Tests).

Ah found it in the paper. "Uniform Regional Trials".


highlight.js removes mouseover event listener from child anchor w/ tooltip

So I'm trying to put a bootstrap tooltip on an anchor I put inside the code block that I put highlight.js on but I can see highlight.js is removing the mouseover event listener on the anchor. How can I either add this back or refrain this from happening to that anchor specifically?

This happens because we generate new HTML markup to replace the existing one and we keep all the old tags and attributes but not the dynamically assigned event listeners (source). I don't know if those are discoverable through DOM so we could retain those too.
One thing you could do is to run the Bootstrap init code after the highlighting. Will that work for you?

@imjoeybrennan, can you please post some example of code you are using and Bootstrap version?
It looks like you should use "live" events for tooltip handling and there was some stories how to do that: http://stackoverflow.com/questions/9958825/how-do-i-bind-twitter-bootstrap-tooltips-to-dynamically-created-elements

Closing this as outdated issue without activity.

Hi, same there, my workaround is to 1. run highlightjs, 2. use jqeury.hover (but same with plain js/html coding behaves the same). Would be great for highlightjs to keep existing callbacks on dom elements (or propagate them on replaced ones).

Would be great for highlightjs to keep existing callbacks on dom elements

How would this even be possible if we entirely replace the HTML?

or propagate them on replaced ones

Not sure what you mean, do you have an example?

If this is possible someone would be welcome to write a plugin that does this!  We have before and after callbacks...

You wrap the nested element in a span or equivalent and attach to it the original listeners.

Example code?  I wasn't aware you could query an element and get it's existing listeners.

Technically highlight.js is about formatting a text

True.

but not destroying the contained actual dom

Actually, our current POV and policy is that code/text [to highlight] should NOT contain DOM at all. We feel 95% of the time it's an accident that often leads to security issues, code injection attacks, etc.  The other 5% is better served by someone willing to upkeep and maintain a plugin for these cases - we have the plug-in APIs - yet no one has volunteered to step up.

there is no real strong reaons.

I've written enough on this topic but there are definitely strong reasons, and a lot of them involve defaults and security.

Side note: it is even more important when used as highlighter with a 3rd party like asciidoctor where the plugins are way harder to inject and the issue to understand for most users IMHO.

3rd party tools should expose our easy API endpoints, if they do not I'd file an issue against those tools.

Example code? I wasn't aware you could query an element and get it's existing listeners.

Requires some "verbosity" on listing the callbacks but if (element.onmouseover) propagate(element, target, "onmouseover") kind of code should work, just needs to list supported callbacks in an array or alike somewhere and loop over it IMHO.

Actually, our current POV and policy is that code/text [to highlight] should NOT contain DOM at all.

Well, there are still very common and expected/very valid use cases like links and tooltips (ie all use cases which are not about formatting/structuring but rather interacting). This is also the use cases where the callbacks are the most important sadly.

3rd party tools should expose our easy API endpoints, if they do not I'd file an issue against those tools.

Well, consumer eat a highlighter which is supposed working and here the bug is clearly in the highlight.js destruction of the dom, not in any other 3rd party so I don't think it is sane to move the workaround in all consumers ;).
What about a compromise like a highlight.js data attribute to enable the propagation of listeners: ....

if (element.onmouseover) propagate(element, target, "onmouseover")

That's very old school API.  Does the browser map addEventListener events into those old attributes?  If not, that's not very useful for many cases.  Plus you can have multiple event listeners attached to an element, not just one... just highlighting the code while leaving existing DOM in place is not a trivial problem to solve AFAIK.

What about a compromise

Write a plugin that makes it happen and add it to the wiki. :-)  I doubt it's as simple as you think though (for general/wide use cases).

there are still very common and expected/very valid use cases

We'll disagree on "very common"... or you'd think we could find someone willing to step up and write/maintain a plugin (esp. if it was easy to do so).

bug is clearly in the highlight.js destruction of the dom

If there is a bug here, it's that we "destroy" the DOM without documenting it clearly.  So we plan to fix this in version 12.  I'd fix it right away but it's a breaking change.  In version 12 we will simply error, period, leaving the DOM intact and explain we simply do not support this (with a link to why).  That fixes the bug - then it's merely a "lack of feature", which again anyone is free to fill with a plugin.

Yep, addEventListener requires more careness - typically overriding the default one (+ remove flavor) to be able to query the additions/removals but still something fairly doable even if it would require to bind highlightjs before.
Do you mean you plan to not support highlighting any code with any dom tag in v12? Sounds like killing the project.
About the plugin option, I'd really like to avoid it since, from my experience, plugins tends to be poorly maintained if not in the core project - which creates a lot of mess after very few time and upstream releases.
But I'd like to come back on the "is it common or not" point: do you mean you don't want highglight.js to handle interactive code snippet at all? Cause it is exactly what we are talking about. It does not sound crazy to me in 202x to be able to have a link/anchor and tooltip in a code snippet, do you think it is?

Do you mean you plan to not support highlighting any code with any dom tag in v12?

We already don't.  We strip them completely and have since version 11.  The project lives on.  Your use case is not the 99% of use cases.   95% of code blocks are pure text. Perhaps 4% are text + HTML that's been inadvertently injected (a security issue waiting to happen).  The other 1% is your use case, and one that - given its complexity and security considerations simply doesn't make sense for us to deal with.

do you mean you don't want highglight.js to handle interactive code snippet at all?

Not at all, as I've said this is exactly why we have an plugin API - to support the 1% use cases.  I think it's an edge case and that the large majority of our users are better served by us closing the door on HTML injection attacks completely.  The more advanced users can figure out how to do this on their own (via plugin, etc) - or find alternatives.

Ok got it, i'm a bit disappointed as you can guess cause I really like highlightjs since years and really hoped it could support dynamic callouts without any hack but well, hacks are working for now so could be worse, just hoping it does not break too much with future versions.
Anyway, thanks for the fast feedback!

Out of curiosity, what is your "hack"?

disable default highlightAll() (auto by default in the CMS i'm using)
force an eager highlightAll()
find anchor links from the source code (guess this one can break in the future) and enable the tooltips - i'm using bootstrap flavor. Doing it after 2 makes highlightjs not going back over the dom so I can inject the listeners/modify it as needed since it will not be destroyed

Not mal hack flow would be to bind the tooltip on the link and let highlighjs run after.

find anchor links from the source code

How would you do that?

@joshgoebel for now I use something like https://gist.github.com/rmannibucau/2d5c4635d313ecf45a2911d5c97a392d


fix typo

¯_(ツ)_/¯

Codecov Report

Merging #29 into main will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #29   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            9         9
  Lines          246       246
  Branches        55        55
=========================================
  Hits           246       246

Flag
Coverage Δ

#tests
100.00% <ø> (ø)

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

Impacted Files
Coverage Δ

src/tox_ini_fmt/formatter/tox_section.py
100.00% <ø> (ø)

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 0215738...9d6d366. Read the comment docs.


Header Initial Styling + Font

Added initial styling to the nav and footer, as well as a font file (Brandon)

URL for testing:

https://header-nav--pedialytecode--rajatchawla10.hlx.page/

Merging it


Adding compilation / lex flags to a ninja running build

When building a project with make I can define a rule like:
/usr/bin/flex.exe $(LEX_FLAGS) -ofile.cpp file.l
where LEX_FLAGS can be defined in the Makefile or outside the Makefile and can be altered by means of:
make LEX_FLAGS=-d
I want to do the same with ninja, but I don't see a possibility to do it. I tried numerous possibilities but failed.
(NOTE: Also posted in the google groups forum).

Would it be correct to say you are asking for ninja to support substituting a variable with the contents of an environment variable of the same name?

Yes it is the behavior that the make and nmake command show and that would be very useful when ninja would also support this.

Thank you for the clarification!


Added premium card

Fixes Issue🛠
Closes #930
Description👨💻
Added a card with premium tag that can be used to display premium things or products. It has hover effect also.
Type of change📄

[x] New feature (non-breaking change which adds functionality)

How this has been tested✅

Checklist✅

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added demonstration in the form of GIF/video file
[x] I am an Open Source Contributor

Screenshots/GIF📷

Please can you assign me @Rakesh9100


Deprecated transitive dependency on Microsoft.NETCore.Targets

Please clearly describe what the SQL Sink is doing incorrectly:

Serilog.Sinks.MsSqlServer has a dependency on System.Private.Uri, which in turn depends on package Microsoft.NETCore.Targets, which is listed as deprecated on nuget.org.
An explicit reference to System.Private.Uri was added on #555 to address a vulnerability.  The README for this package notes that "Internal implementation package not meant for direct consumption.  Please do not reference directly".  System.Private.Uri is only seen as a dependency when a project specifies runtime identifiers in its configuration.

Please clearly describe the expected behavior:

Serilog.Sinks.MsSqlServer does not depend on deprecated packages.

List the names and versions of all Serilog packages used in the project:

Serilog: 4.0.0
Serilog.Sinks.MSSqlServer: 7.0.1
(configuration, etc.): N/A

Target framework and operating system:

[x] .NET 6
[ ] .NET Framework 4.8
[ ] .NET Framework 4.7
[ ] .NET Framework 4.6
OS: Windows 10

@david-brink-talogy thank you very much for investigating and fixing this. It is highly appreciated. :)
After the PR was merged, the dev release 7.0.2-dev-00104 was published on nuget.org. We are thankful to anyone who could give it a spin and tell us of any problems.


⚠ Bofrost.be has degraded performance

In bf8eb2f, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1359 ms

Resolved: Bofrost.be performance has improved in b480384 after 22 minutes.


Optimized logo png

Is your feature request related to a problem? Please describe.
The logo.png file is not optimized to reduce unnecessary data transfer.
Describe the solution you'd like
The logo.png file should be optimized to reduce unnecessary data transfer.
Describe alternatives you've considered
N/A
Additional context
The attached version of the logo.png file was optimized with kraken.io and ImageOptim and reduces the filesize from 3.96kb to 2.2kb with no visible impact on image quality.

Thanks for your suggestion. I'll consider this in the next PR.


Parrallel system, array/list allocation and size updates

If everything goes fine, I should be able to start on this next week

Great ! Here is some thoughts I had (and started to code on the alternative core) :
Formalism for the input
It is the same formalism as a preset logic changes !

{ key : float value ,
key : [valmin,valmax,'arraytype'],
key : a list of value }

The three types of change input

if the value is a float, then the core replace the same value for all systems
if the value is the min-max-type, then the core replace it with either a linspace or a logspace, not changing the size of the system. The input is kept (that way if the number of system is modified, then the system automatically recreate an array at the good size with the good value).
if the value is a numpy array or a list with another shape, the system force nx value to correspond the size, and use the list/array as input.

The notion of "Forcing"
If the system has a list/array with explicit values, then the system is forced into a certain quantity of system nx. The system cannot be forced into another size (no list nor nx value) while the field is loaded with forcing values.
A forcing can be lifted (replace the key with a constant/ a linlogspace ) or updated ( all forced fields consistently changed at the same time).
The way I see the code
Consistency

Look if there is a forcing size in the new inputs (if two then error)
Look if the system is already forced at another size on different field (then Error)
Look if nx is changed while forcing (then error)

Update
a. Loading all modifications (previous and future)

For each non-modified fields in this update, look if there had already been a modification and load it. If not, load [val,val,'lin'] in the modifications
Create the array for all fields
Reallocate the space for all fields in value
Add the new value
Reset the system

If think step 3 to 5 could be added in reset directly (so a bigger reset than what already exist), step 1 and 2 could be mixed up also !
What I previously coded
In core
    def Change_Attributes(self, dictofChanges):
        '''
        Change a set of attributes in dparam.
        If necessary, change the number of system

        forcing mean giving an list of values with a well determined number of
        system. The system cannot be forced on multiple values

        The dictofchanges has to look like :

        { key : float,
          key : [min,max,type]} #type being either 'lin' or 'log'
          key : [val1...valn] #which force the system to be of size n
            }
        '''
        # 1.a) CHECK THE KEY OF CHANGES
        for key in dictofChanges.keys():
            # 1) Check that the change is allowed
            # the key exist
            if key not in self.__dparam.keys():
                raise Exception(key + ' Not in the model !')
            # 2) the key concern a function
            if self.__dparam[key]['eqtype'] == 'statevar':
                raise Exception(
                    key + ' Is a statevariable, you cannot force it')

        # 1.b) CHECK THE FORCING VALUE
        sizes = []
        size = self.__dparam['nx']['value']
        for val in dictofChanges.values():
            # If the change is explicitely multisystem
            if isinstance(val, list):
                # If the change is not a range
                if not (len(val) == 3 and type(val[-1]) is str):
                    sizes.append(len(val))
        sizes = list(set(sizes))
        if len(sizes) >= 2:
            raise Exception(
                "You are forcing two number of sectors at the same time")
        elif len(sizes) == 1:
            if sizes[0] != self.__dparam['nx']['value']:
                # Check if the size of the system had already been forced
                # And if this forcing is not changed
                for keyforcedbefore in self.__dmisc['sizeForced']:
                    if keyforcedbefore not in dictofChanges.keys():
                        raise Exception(
                            keyforcedbefore + ' was already forced' +
                            'at a different size')
                size = sizes[0]

        # 1.c) CHECK THAT IF nx IS EXPLICITELY CHANGED IT IS CONSISTENT
        # WITH FORCING
        if 'nx' in dictofChanges.keys():
            if (size != self.__dparam['nx']['value'] and
                    size != dictofChanges['nx']):
                raise Exception(
                    'Forcing is detected on value'+str(size) +
                    'While you ask for'+str(dictofChanges['nx'])+'systems')
            else:
                size = dictofChanges['nx']

        # 2) Rewrite the change with new sizes
        if size != self.__dparam['nx']['value']:
            print('*** The system detected a new size :', size)
            NewdictofChanges = self.ChangeSystemsize(dictofChanges, size)
        else:
            NewdictofChanges = dict(dictofChanges)

        # 2) ADD THE UPDATES
        shape = (self.__dparam['nt']['value'],
                 self.__dparam['nx']['value'])

        for key, var in NewdictofChanges.items():

            # b) Change the value or the initial
            if self.__dparam[key]['eqtype'] == 'ode':
                self.__dparam[key]['initial'] = var
                self.__dparam[key]['value'] = np.full(shape, np.nan)
            else:
                self.__dparam[key]['value'] = var

        # reset everything
        self.reset()

    def ChangeSystemsize(self, dictofChanges, size):
        '''
        rewrite dictofChanges with explicit arrays each time
        '''
        # Get new size
        self.__dparam['nx']['value'] = size

        # For each key in dparam
        for key, val in self.__dparam.items():
            # If this key has no change asked
            if (key not in dictofChanges.keys()
                    and val['group'] != 'Numerical'
                    and val['eqtype'] != 'statevar'):

                # If this key had been previously changed by a range, load it
                if 'SetInstruction' in val.keys():
                    dictofChanges[key] = val['SetInstruction']
                # if not and ode, take initial value
                elif val['eqtype'] == 'ode':
                    dictofChanges[key] = [
                        val['initial'], val['initial'], 'lin']
                # if not and parameter, take the value
                else:
                    dictofChanges[key] = [
                        val['value'], val['value'], 'lin']

                # Reassign new value
                self.__dparam[key]['setInstruction'] = dictofChanges[key]

        # Forcing identification :
        Forced = False
        for val in dictofChanges.values():
            # If the change is explicitely multisystem
            if isinstance(val, list):
                # If the change is not a range
                if not (len(val) == 3 and type(val[-1]) is str):
                    Forcing = len(val)
                    Forced = True
        if Forced:
            self.__dmisc['sizeForced'] = Forcing

        # Translate everything into right-size numpy
        newdict = {}
        for key, val in dictofChanges.items():
            # Transform 3list into numpy array
            if len(val) == 3 and type(val[-1]) is str:
                if val[-1] == 'lin':
                    newdict[key] = np.linspace(val[0], val[1], num=size)
                elif val[-1] == 'log':
                    newdict[key] = np.logspace(
                        np.log10(val[0]), np.log10(val[1]), num=size)
            else:
                newdict[key] = np.array(val)
        return newdict
```

Thanks for thé ideas and code parts, will include it in the reflexion, starting monday :-)

@Dalus, I should be able to propose a PR on this tomorrow

Finished !


Save newly added block without saving the entire experiment

For the on-the-fly stitching, the user will first parse and save some initial blocks. Afterwards, a new block will be acquired by the microscope. Then the user would need to parse and save the newly added block.
Currently, the Experiment.save() will save all blocks, including the previously saved blocks. This will cost extra time and can overwrite the user-modified tile_id_map.json.
Therefore, it would be nice to have a function to allow saving an individual block. With this function, the user can do the following:
# Load experiment
exp = Experiment()
exp.load(exp_dir)

# Add a Block
tile_width = 3072
tile_height = 2304
tile_overlap = 220
exp.parse_block(data_dir, block_name, "g0001", 11.0,
                tile_width, tile_height, tile_overlap)

# Save the added block
exp.save_block(block_name)

I wrote a function in Experiment.py, which seems to work. Not sure whether this is consistent with the code structure and whether I need to write a test for this.

Thanks! Will take a look and merge into main.


Correctly parse byte literals like b'a'

Right now we're parsing them as Word(b), Literal('a') instead of Literal(b'a').

Please add a comment like we do in syn here.

Done :)

Thanks!


Add documentation on internal log message structure

Addresses https://github.com/Seldaek/monolog/issues/516

Both good points, thank you!
I just fixed them.
How do you feel about lines 16 through 19? I couldn't find anywhere that this was the case, but it felt right intuitively. I mentioned it because I've been confused about the existence of two arrays that appear to serve the same purpose for quite some time.

@rpkamp I recall I had a feeling like something is missing in Monolog documentation. That's it! Thanks!
And lines 16-19 make perfect sense. I'd be very surprised if that's not that case. May be @Seldaek can give us hint on this?

@hkdobrev nice catch! fixed it and fixed a few more typos while I was at it :)

ping @Seldaek

Also would be cool to link to it from some of the other doc pages, otherwise looks good to me, thanks for the work :)

Thanks, I'll add a link to it in the README at least :)


Use the ruby 2.4.1 release

First, let's see if they've fixed rspec. Then we can bump omnibus-software and go from there

looks like travis' rvm needs to get updated.  you might be able to rvm get head && rvm install ruby-2.4.1 very early in the build, but that'll make it take a whole lot longer and kind of defeat the purpose...

The binary is available now:
https://s3.amazonaws.com/travis-rubies/binaries/ubuntu/12.04/x86_64/ruby-2.4.1.tar.bz2
Perhaps you can trigger a rebuild?

@chef/maintainers assuming this goes green. Numbers look pretty tasty. I also think we should only test with 2.4.1 for 13; thoughts?

yeah should bump up everything possible to 2.4.1 but should probably still test on both 2.3.3 and 2.4.1 for rake spec.

bumping the Gemfile.lock failed on chef-zero, need to investigate that in parallel.
bumping bundler to either 1.13.x or 1.14.x is also not working right now, and gets into fights with rake tasks, there's probably some additional uncrazysaucing that needs to happen.

(appveyor is also still on ruby-2.3 because there's no ruby-2.4)

Re: appveyor and ruby 2.4 - https://github.com/appveyor/ci/issues/1350


[R-package] training continuation unit test is broken

One unit test in the R package is currently broken. Steps to reproduce on Mac
export CXX=/usr/local/bin/g++-8 CC=/usr/local/bin/gcc-8
Rscript build_r.R
cd R-package/tests
Rscript testthat.R

This results in the following error at the ends of the logs
[LightGBM] [Info] Saving data to binary file /var/folders/xq/wktq4zdx4jd3qdpk34d28m940000gn/T//RtmpiY1DzV/lgb.Dataset_15553eef826
══ testthat results  ═══════════════════════════════════════════════════════════
[ OK: 36 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
1. Error: training continuation works (@test_basic.R#71)

I'm uncertain when the issue was first introduced (we do not run R tests in CI yet, #2335), but this behavior was observed at least as of https://github.com/microsoft/LightGBM/commit/cc7a1e27398d86e9befdf6eb08141359882f3d49.

Looked into this some more tonight. I still haven't gotten to the root cause.
This was failing with basically an out-of-index error. When you do training continuation, it seems the second
# check this out:
bst1$record_evals[[data_name]][[eval_name]]$eval
bst2$record_evals[[data_name]][[eval_name]]$eval

things you'll notice:

best iteration from bst1 is iteration 3

if you compare the errors, it looks like bst2 starts from iteration 3 (notice the 4th iteration in bst1 and first in bst2 have identical error)

bst2$current_iter() is 8, also consistent with starting from the best iteration

I think the issue is here in lgb.train():
if (is.character(init_model)) {
    predictor <- Predictor$new(init_model)

The Predictor created from the initial model should be the same as the booster state after 5 iterations, I think, but it is not.
So basically you can get into a situation where the Booster thinks it has seen 8 iterations, but only 5 iterations of results are stored.

length(bst$record_evals[["train"]][["binary_logloss"]]$eval) is 10
length(bst1$record_evals[["train"]][["binary_logloss"]]$eval) is 5
length(bst2$record_evals[["train"]][["binary_logloss"]]$eval) is 5


Cuda out of memory for photos larger than 640x480px on RTX 3060 12GB

Thanks for great code released for free to public. Tried real world 4x large model. Results are great. Even better than known commercial products.
Real esrgan for example has --tile option for cuda out of memory errors. With your code I cant upscale larger than vga resolution photos with RTX 3060 12GB. Please tell me is there way for tiling or do I need to change img_size, for what values?
Thank you very much in advance!

Thanks for your advice. We have add an option --tile for testing it on large images. Example usages:
python main_test_swinir.py --task real_sr --scale 4 --model_path model_zoo/swinir/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x4_GAN.pth --folder_lq testsets/RealSRSet+5images --tile 400


Enhancement: Setting the Selection to SINGLE or MULTI automatically works

It would be nice if calling mAdapter.setMode(SelectableAdapter.MODE_SINGLE); or multi would make selection work, without having to implement FlexibleAdapter.OnItemClickListener in the activity and calling actionModeHelper.onClick(position).

@pixis, well ActionMode is considered an extension so it cannot be part of the Adapter. There are functionalities that have to be controlled by the user in the Activity.


feat: made social anchors accessible for entire food recipes website 🚀

Close #568
Description

Added aria-label attribute for social anchors like github & twitter for the entire Food Recipes Website.
The aria-label attribute is important for screen readers because it provides a text label for an object, such as a with social icons. When a screen reader encounters the object, the aria-label text is read so that the user will know what it is.
This is important for people who are blind or have low vision, as they rely on screen readers to access the web.
Improved title attribute's data, because the title attribute is intended to provide additional information to screen reader users.
And along with that i added rel for the anchors which are lacking them to ensure best practices for crawlers
Because adding the rel="noopener noreferrer" attribute can help to protect this website from security vulnerabilities and improve performance. It is a good practice to use this attribute on all external links.
Overall this PR is intended to make necessary changes to meet best practices for crawlers along with improving accessibility for social anchors
Linted the code after making them accessible to ensure best standards of web documents.

Note to the reviewer

This PR comes under level3 change because this is one of the core contribution to this project which enhances overall social anchors accessibility for the entire Food Recipes Website with n number of code changes.
Additionally the code has been refactored too.
You can further refer this manual here for more details about adding level labels to PR.

Hey there @Anupkjha2601 👋🏻
Please make sure to review and merge this PR.
Thank you for your attention!

@0xabdulkhalid there is some conflict in your code. please remove unwanted line from resolve conflict .


How to run it with Supervisor ?

I have these config
[program:worker-dev]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/html/worker.php start
autostart=true
autorestart=true
user=test
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/html/logs/worker-dev.log

It's works, but if I do supervisorctl reload, it's not start again because got error stream_socker_server(): unable to connect to tcp://<IP_ADDRESS>:4654 (Address already in use)
I use worker with with Channel, from this https://github.com/walkor/Workerman/issues/184#issuecomment-308069727

At now, I use this command for kill all process:
kill -9 $(ps aux|grep WorkerMan|grep test|awk '{print $2}')
Maybe somebody will advise better solution.

@Wakirin Set the \Workerman\Worker object's attribute reusePort to true, it may be resolved.

Workerman has a bug from posix-signal processing, the TERM signal in particular (used in supervisor by default).
Solution: use stopsignal=INT to resolve this problem.

@denfm
Thank you for your replay.
Can you describe what specific bug is?

@denfm it's working, thanks!

@walkor I think that fork processes loop when obtaining the TERM signal, i.e. this process is terminated, but it is immediately restored by the script. That is why the possible quick solution is static::$_gracefulStop set as true, or not to restore the process when obtaining such signal.

Thank you so much @denfm .
I get it.
Workerman not obtaining TERM signal before this commit at 13 Oct. So when master process of workerman got a term signal it will exits leaving the child process which still listening.
But now workerman added an graceful stop with Term signal so it will works fine now.

@walkor
do I need remove stopsignal=INT from config, if workerman will be update ?

No, you don't have to  remove it.


Branch coverage failure continue in nested if statements

This test case show missing branch coverage despite every branch being covered, AFAICT. The problem seems to be related to the continue statement and the nested if statements.
AFAICT, this is not a duplicate of #496 but may have a similar root cause.
def test_coverage_bug():
    did_something = False
    did_another_thing = False
    did_this_thing_first = False

    for i in range(5):
        if i > 0:
            if i < 5:
                if i % 2 == 0:
                    did_something = True
                else:
                    did_another_thing = True

                continue

        did_this_thing_first = True

    assert did_something
    assert did_another_thing
    assert did_this_thing_first

I think this is a duplicate of #198, which unfortunately I can't do anything about.

Yes, that appears to be the case. Thanks!


[Perf fw] add test metadata to the tests for the perf fw

fixes: #1636
Adding test metadata class and letting each test to define it.
This data is used to print the test info when running the test

closing in favor of only reviewing https://github.com/Azure/azure-sdk-for-cpp/pull/1655 as people have started to look on it


Support kubeflow pipeline, recurring run and model publish

Support kubeflow pipeline, recurring run and model publish
Closed #61
Closed #57

Close in favor of new operator api server design


SceneTreeTimer ignores SceneTree.paused state

Godot version:
3.1.1
OS/device including version:
MacOS 10.14.6 (Mohave)
Issue description:
The SceneTreeTimer continues to process even when the scene is paused (no matter what the pause_mode is set to.)
Steps to reproduce:

Create a SceneTreeTimer using get_tree().create_timer(5)
Pause the scene by setting get_tree().paused = true
The SceneTreeTimer will continue to run and timeout.

Minimal reproduction project:
createTimerExample.zip

SceneTreeTimers by default are set to process on pause. You can control this with the second argument of create_timer.
Likely related to #33102

Oh, duh. Sorry, I was looking everywhere trying to find how to change a pause_mode_process variable under SceneTree or SceneTreeTimer but I missed the second argument there.
I will close this issue.


[AutoPR datafactory/resource-manager] Add support for HDIinsight cluster with Enterprise Serurity Package

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

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


WFLY-6101 Removing of non-existent security-domain resource results i…

JIRA: https://issues.jboss.org/browse/WFLY-6101

Thanks Brian, I moved the JIRA and opened new PR: wildfly/wildfly-core#1543


Convert best hit builder to TBB

Converts MkBuilder::FindTracksBestHit() to TBB.

Uses a nested parallel for loop similar to the one used for FindTracksCloneEngineTbb to increase parallelism opportunities (OMP version only parallelized the outer loop).
Pull out loading the EventOfCandidates with Tracks into a separate routine outside the timed section to make a fair comparison with the combinatoric builders, since they have loading the EventOfCombCandidates outside the timed section.  For the best hit builder, this is a large serial section.
Add a "pragma ivdep" to the SMatrix symmetric matrix assignment operator so that it vectorizes.  This doesn't affect the final benchmark results, as this mainly contributes to loading the EventOfCandidates, which is now excluded from the timed section.
Change the indentation of FindTracksCloneEngineTbb to a slightly more compact style that I now prefer for tbb::parallel_for (no substantive change)

Benchmarks are in phiphi:/home/dsr/mictest-mt/2016-05-11-tbbbh.  These are not entirely clean as there were some competing tasks (mainly the vtune GUI on phiphi but also some competing tasks on mic0), but are good enough for the purpose.  Results show significant improvement in scaling.

Hi @dan131riley , I just killed the gui and the benchmarking of PR46 is now done, so in case you wish to resubmit the machines are free

Hi @dan131riley , @cerati ,
If we decide to merge PR#46 and this PR tomorrow, can we have a benchmarking campaign on the latest-and-greatest with OpenMP vs. TBB?  I was hoping to show the latest results at USCMS next Thursday, and these results would be nice.
Dan, do we still have a BestHit version with OpenMP?  It is not super important, but it would be nice to show how TBB has really helped in all building functions.

On May 12, 2016, at 09:15, Kevin McDermott<EMAIL_ADDRESS>wrote:
Dan, do we still have a BestHit version with OpenMP? It is not super important, but it would be nice to show how TBB has really helped in all building functions.

Hi @kmcdermo,
This PR removes the OMP BestHit.  The OMP version had never been updated to parallelize within an eta bin, limiting its scaling to the number of eta bins, so it wouldn't really be a fair comparison.

@dan131riley , @cerati ,
To muddy the waters further, I am planning to submit a PR later today with changes to Matriplex (nothing unexpected). I think it will be pretty much orthogonal to PR 46 and 47. But I guess the combined merge will not have an obvious relationship to earlier versions... Do you guys want me to benchmark both now (based on PR 44) and post-merge of 46+47?

@srlantz I think it's fine if you provide plots for your branch alone on top of the current master. I will check myself that incremental merges preserve the desired results.

On May 12, 2016, at 08:40, cerati<EMAIL_ADDRESS>wrote:
Hi @dan131riley , I just killed the gui and the benchmarking of PR46 is now done, so in case you wish to resubmit the machines are free

I don't think they need to be redone, but it does look like we have a problem with some orphaned gui's on phiphi chewing up cpu time:
slantz    3340 11064 49 May07 pts/5    2-08:38:07 amplxe-gui
slava77  23356 21687  9 Apr28 pts/13   1-10:08:45 amplxe-gui
cerati   31643 18599  7 Apr25 pts/12   1-07:13:27 amplxe-gui
we'll need to get those cleaned up before any serious benchmarking.
-dan

I've also done a first pass at fixing the double issues, which of course touches a ton of files.  The worst are the ones in header files, like Hit.h:
inline float getEta(float r, float z) {
return -1. * log( tan(getTheta(r,z)/2.) );
}
inline float getEta(float x, float y, float z)
{
float theta = atan2( std::sqrt(xx+yy), z );
return -1. * log( tan(theta/2.) );
}
or even Matrix.h:
inline float hipo(float x, float y)
{
return sqrt(xx + yy);
}
so there'll be a big PR for that after 46 is merged, and maybe another one for vectorization pragmas.
-dan

I would propose that after these two planned PR from Dan we tag the code
and send it to the intel guys
On Thu, May 12, 2016 at 7:48 PM, Dan Riley<EMAIL_ADDRESS>wrote:

I've also done a first pass at fixing the double issues, which of course
touches a ton of files. The worst are the ones in header files, like Hit.h:
inline float getEta(float r, float z) {
return -1. * log( tan(getTheta(r,z)/2.) );
}
inline float getEta(float x, float y, float z)
{
float theta = atan2( std::sqrt(xx+yy), z );
return -1. * log( tan(theta/2.) );
}
or even Matrix.h:
inline float hipo(float x, float y)
{
return sqrt(xx + yy);
}
so there'll be a big PR for that after 46 is merged, and maybe another one
for vectorization pragmas.
-dan
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cerati/mictest/pull/47#issuecomment-218833305

On 05/12/16 10:44, Dan Riley wrote:

On May 12, 2016, at 08:40, cerati<EMAIL_ADDRESS>wrote:
Hi @dan131riley , I just killed the gui and the benchmarking of PR46 is now
done, so in case you wish to resubmit the machines are free

I don't think they need to be redone, but it does look like we have a problem
with some orphaned gui's on phiphi chewing up cpu time:
slantz 3340 11064 49 May07 pts/5 2-08:38:07 amplxe-gui
slava77 23356 21687 9 Apr28 pts/13 1-10:08:45 amplxe-gui
cerati 31643 18599 7 Apr25 pts/12 1-07:13:27 amplxe-gui
we'll need to get those cleaned up before any serious benchmarking.

OK, killed those ... Steve could also do it through stemat account.
\m

-dan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/cerati/mictest/pull/47#issuecomment-218832317

Benchmarking on top of PR46 looks good:
http://uaf-6.t2.ucsd.edu/~cerati/mictest/2016-05-13-PR47/
Merging.

On May 13, 2016, at 09:29, cerati<EMAIL_ADDRESS>wrote:

Benchmarking on top of PR46 looks good:
http://uaf-6.t2.ucsd.edu/~cerati/mictest/2016-05-13-PR47/
Merging.

We're going to have to change the lower limit on the MIC parallelization benchmark again :)

good news :-)
On Fri, May 13, 2016 at 3:42 PM, Dan Riley<EMAIL_ADDRESS>wrote:

On May 13, 2016, at 09:29, cerati<EMAIL_ADDRESS>wrote:

Benchmarking on top of PR46 looks good:
http://uaf-6.t2.ucsd.edu/~cerati/mictest/2016-05-13-PR47/
Merging.

We're going to have to change the lower limit on the MIC parallelization
benchmark again :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/cerati/mictest/pull/47#issuecomment-219046284


Class constructor's FSharpSymbol is not the same on definition and calling sites

For this example:
type private PrivateClass() = class end
let _ = PrivateClass()

The following code:
let symbolsComparer =
        { new IEqualityComparer<FSharpSymbol> with
              member __.Equals (x, y) = x.IsEffectivelySameAs y
              member __.GetHashCode x = x.GetHashCode() }

let dic = Dictionary symbolsComparer

for su in symbolsUses do
    let symbol = su.SymbolUse.Symbol
    match dic.TryGetValue symbol with
    | true, uses -> dic.[symbol] <- su :: uses
    | _ -> dic.[symbol] <- [su]

Produces the following results in debugger:

According to IsEffectivelySameAs xml doc, all three symbols (the type itself, the default ctor definition and the ctor call) should be considered as same: https://github.com/fsharp/FSharp.Compiler.Service/blob/81b834ca6b699c6d057dedfb7152264323c40da0/src/fsharp/vs/Symbols.fsi#L71-L73

I'm not sure this is a bug - GetHashCode is not documented to be a suitable hash code for IsEffectivelySameAs, i.e. we don't say that IsEffectivelySameAs(x1,x2) implies GetHashCode(x1) = GetHashCode(x2)

I don't even remember what it all about.


Possibly unused carbon parameters

Determine which carbon parameters (Catm, fdir, coszen, par) need to be supplied as inputs.  Remove those that are unnecessary.

All of these variables are used:
Catm is used in canopy_assimilation() to compute photosynthesis.
Fdir is used in faparl() to compute the fraction of absorbed PAR, which is used in canopy_assimilation().
PAR is used in canopy_assimilation().
coszen is used in both faparl() and compute_Nscale_factors().
I propose moving the estimation of some of these carbon-specific input variables to the python forcing disaggregator.
Currently, these variables are estimated as follows:
Catm: vic_force() estimates this from a constant in a .h file.
PAR: vic_force() estimates this as a constant fraction of shortwave.
FDIR: This is computed in MTCLIM and passed to initialize_atmos() - presumably now this happens in the python tool.
coszen: computed in compute_coszen(), which was in turn called by initialize_atmos() but is not currently called by vic_force().  It is also called by compute_Nscale_factors(), in order to get the value of coszen at noon.
I can imagine Catm and FDIR being supplied by models or observations, and they are not generally constant, so it would make sense to keep them in the atmos data structure and have the python tool handle populating them (from user-supplied inputs or defaults - a constant in the case of Catm and the synthetic version from MTCLIM in the case of FDIR).
However, coszen is completely determined by solar geometry, so in some sense, it's redundant to store it in the atmos data structure.  If we are concerned about memory, then we could remove coszen from atmos data and just compute it as needed, which is currently only in the carbon code.
PAR seems to be a similar situation.  I need to do some research to find out if it typically changes much over time.  I suppose it could become a different fraction of total shortwave under various atmospheric conditions.  If so, we'd need it in the atmos structure.

I propose that we remove coszen from the atmos structure and only compute as needed within the carbon code.
For the other 3 variables, I propose keeping them in the atmos structure for now.  However, if we would like to reduce memory usage, and decide to only allocate them if carbon is TRUE, I think that to accomplish that we would need to split the carbon variables out into a separate structure analogous to atmos.  This could be combined with replacing the array of forcing files with a set of different files dedicated to different inputs such as veg_hist and channel_in.

@tbohn -
I'm fine with this plan.  It seems easy enough not to allocate memory for carbon only variables.

OK, so does that mean I should make allocation of the pointers for carbon variables conditional?  I can do that for channel_in as well.
I will make this happen identically in all drivers.

Yes, why don't you just add that to your remove_mtclim branch.

OK, will do.

One more issue to resolve: whether to leave assignment of default values of these variables in vic_force() or to move them into the python tool.
For classic mode, I see no problem with moving these estimates to the python tool, and requiring that they be supplied as inputs to VIC.  But for image mode, should we require these variables to be supplied as inputs (if carbon is turned on)?
If VIC is coupled to an atmospheric model that doesn't compute carbon-related variables like Catm or PAR, I suppose we could put logic in vic_force() to estimate them - this could apply to the classic driver too.  For Fdir, classic mode could rely on the python tool to pull it from MTCLIM.  But for image mode, in a coupled situation, we'd need to require Fdir from the atmospheric model (or Fclear at least; vic_force() could then compute Fdir as a simple function of Fclear).
What do you think?  If carbon is TRUE, should either Fdir or Fclear (or tskc) be required as an input?  I'd have to add tskc back in...

Yes, since they are forcing variables, I think we should remove default assignments. I think we want to get out of the business of creating forcing variables in VIC.

OK, will do.  So, I'll just make Catm, PAR, and Fdir all required input variables when carbon is true, in all drivers.

I think this issue was resolved a while back, but I'm having trouble locating the PR...

OK, this issue was resolved by PR #288.  @jhamman I think we can close this issue.

okay, thanks @tbohn
closed via #288


Flickering using SurfaceImageSource in Windows 8.1

When I use the SurfaceImageSourceTarget the screen flickers in Windows 8.1.  Is this a known issue?
You can reproduce this with the "D2DCustomPixelShaderEffect (Windows 8)" sample. Compile and start the sample and choose SurfaceImageSource.
Thanks
Jürgen

@thumbmunkeys I am revisiting this item and noticed you have a solution.  Could you please provide the source code to your implementation of SufaceImageSourceTarget.cs, I'm not clear on what your suggested changes involve.  I never see a re-use of the surface, so without seeing your changes it's not obvious what is causing the flicker.  I'm building with the latest nuget package of SharpDX by the way.  I've been able to build most of the other samples so far, but this one has me stumped.

Guess I was closer than I realized.  Here's the working code, still needs a little clean up:
/// <summary>
/// Target to render to a <see cref="SurfaceImageSource"/>, used to integrate
/// DirectX content into a XAML brush.
/// </summary>

public class SurfaceImageSourceTarget : TargetBase
{
    //private Dictionary<IntPtr, SurfaceViewData> mapSurfaces = new Dictionary<IntPtr, SurfaceViewData>();

    private int pixelWidth;
    private int pixelHeight;
    private SurfaceImageSource surfaceImageSource;
    private ISurfaceImageSourceNative surfaceImageSourceNative;
    private SharpDX.Point position;

    /// <summary>
    /// Initialzes a new <see cref="SurfaceImageSourceTarget"/> instance.
    /// </summary>
    /// <param name="pixelWidth">Width of the target in pixels</param>
    /// <param name="pixelHeight">Height of the target in pixels</param>
    public SurfaceImageSourceTarget(int pixelWidth, int pixelHeight, bool supportOpacity = false)
    {
        this.pixelWidth = pixelWidth;
        this.pixelHeight = pixelHeight;
        this.surfaceImageSource = new SurfaceImageSource(pixelWidth, pixelHeight, supportOpacity);
        surfaceImageSourceNative = Collect(ComObject.As<SharpDX.DXGI.ISurfaceImageSourceNative>(surfaceImageSource));
    }

    /// <summary>
    /// Gets the <see cref="SurfaceImageSource"/> to be used by brushes.
    /// </summary>
    public SurfaceImageSource ImageSource
    {
        get
        {
            return surfaceImageSource;
        }
    }

    /// <inveritdoc/>
    public override void Initialize(DeviceManager deviceManager)
    {
        base.Initialize(deviceManager);
        surfaceImageSourceNative.Device = Collect(DeviceManager.DeviceDirect3D.QueryInterface<SharpDX.DXGI.Device>());
    }

    /// <inveritdoc/>
    protected override Windows.Foundation.Rect CurrentControlBounds
    {
        get
        {
            return new Windows.Foundation.Rect(0, 0, pixelWidth, pixelHeight);
        }
    }

    /// <summary>
    /// Gets the relative position to use to draw on the surface.
    /// </summary>
    public SharpDX.Point DrawingPosition { get { return position; } }

    /// <inveritdoc/>
    public override void RenderAll()
    {
        SurfaceViewData viewData;

        var regionToDraw = new SharpDX.Rectangle(0, 0, pixelWidth, pixelHeight);

        // Unlike other targets, we can only get the DXGI surface to render to
        // just before rendering.

        SharpDX.Mathematics.Interop.RawPoint rawPoint;

        using (var surface = surfaceImageSourceNative.BeginDraw(regionToDraw, out rawPoint))
        {
            position = rawPoint;

            // Cache DXGI surface in order to avoid recreate all render target view, depth stencil...etc.
            // Is it the right way to do it?
            // It seems that ISurfaceImageSourceNative.BeginDraw is returning 2 different DXGI surfaces

            //if (!mapSurfaces.TryGetValue(surface.NativePointer, out viewData))
            {
                viewData = new SurfaceViewData();

                //mapSurfaces.Add(surface.NativePointer, viewData);

                // Allocate a new renderTargetView if size is different
                // Cache the rendertarget dimensions in our helper class for convenient use.
                viewData.BackBuffer = Collect(surface.QueryInterface<SharpDX.Direct3D11.Texture2D>());
                {
                    var desc = viewData.BackBuffer.Description;
                    viewData.RenderTargetSize = new Size(desc.Width, desc.Height);
                    viewData.RenderTargetView = Collect(new SharpDX.Direct3D11.RenderTargetView(DeviceManager.DeviceDirect3D, viewData.BackBuffer));
                }

                // Create a descriptor for the depth/stencil buffer.
                // Allocate a 2-D surface as the depth/stencil buffer.
                // Create a DepthStencil view on this surface to use on bind.
                // TODO: Recreate a DepthStencilBuffer is inefficient. We should only have one depth buffer. Shared depth buffer?
                using (var depthBuffer = new SharpDX.Direct3D11.Texture2D(DeviceManager.DeviceDirect3D, new SharpDX.Direct3D11.Texture2DDescription()
                {
                    Format = SharpDX.DXGI.Format.D24_UNorm_S8_UInt,
                    ArraySize = 1,
                    MipLevels = 1,
                    Width = (int)viewData.RenderTargetSize.Width,
                    Height = (int)viewData.RenderTargetSize.Height,
                    SampleDescription = new SharpDX.DXGI.SampleDescription(1, 0),
                    BindFlags = SharpDX.Direct3D11.BindFlags.DepthStencil,
                }))
                    viewData.DepthStencilView = Collect(new SharpDX.Direct3D11.DepthStencilView(DeviceManager.DeviceDirect3D, depthBuffer, new SharpDX.Direct3D11.DepthStencilViewDescription() { Dimension = SharpDX.Direct3D11.DepthStencilViewDimension.Texture2D }));

                // Now we set up the Direct2D render target bitmap linked to the swapchain.
                // Whenever we render to this bitmap, it will be directly rendered to the
                // swapchain associated with the window.
                var bitmapProperties = new SharpDX.Direct2D1.BitmapProperties1(
                    new SharpDX.Direct2D1.PixelFormat(SharpDX.DXGI.Format.B8G8R8A8_UNorm, SharpDX.Direct2D1.AlphaMode.Premultiplied),
                    DeviceManager.Dpi,
                    DeviceManager.Dpi,
                    SharpDX.Direct2D1.BitmapOptions.Target | SharpDX.Direct2D1.BitmapOptions.CannotDraw);

                // Direct2D needs the dxgi version of the backbuffer surface pointer.
                // Get a D2D surface from the DXGI back buffer to use as the D2D render target.
                viewData.BitmapTarget = Collect(new SharpDX.Direct2D1.Bitmap1(DeviceManager.ContextDirect2D, surface, bitmapProperties));

                // Create a viewport descriptor of the full window size.
                //viewData.Viewport = new SharpDX.ViewportF(position.X, position.Y, (float)viewData.RenderTargetSize.Width - position.X, (float)viewData.RenderTargetSize.Height - position.Y, 0.0f, 1.0f);

                viewData.Viewport = new ViewportF(position.X, position.Y, pixelWidth, pixelHeight, 0.0f, 1.0f);

            }

            backBuffer = viewData.BackBuffer;
            renderTargetView = viewData.RenderTargetView;
            depthStencilView = viewData.DepthStencilView;
            RenderTargetBounds = new Rect(viewData.Viewport.X, viewData.Viewport.Y, viewData.Viewport.Width, viewData.Viewport.Height);
            bitmapTarget = viewData.BitmapTarget;

            DeviceManager.ContextDirect2D.Target = viewData.BitmapTarget;

            // Set the current viewport using the descriptor.
            DeviceManager.ContextDirect3D.Rasterizer.SetViewport(viewData.Viewport);

            // Perform the actual rendering of this target
            base.RenderAll();
        }

        surfaceImageSourceNative.EndDraw();
    }

    /// <summary>
    /// This class is used to store attached render target view to DXGI surfaces.
    /// </summary>
    class SurfaceViewData
    {
        public SharpDX.Direct3D11.Texture2D BackBuffer;
        public SharpDX.Direct3D11.RenderTargetView RenderTargetView;
        public SharpDX.Direct3D11.DepthStencilView DepthStencilView;
        public SharpDX.Direct2D1.Bitmap1 BitmapTarget;
        public SharpDX.ViewportF Viewport;
        public Size RenderTargetSize;
    }
}

}


Request: Example of new "encoder" helper method?

It is not clear to me how to use this based on what can be inferred from the code base. Could you please provide a simple example?
In my case, I am trying to access the API in a Laravel Controller envrionment before loading. I would also infer that the interface for the Blade helper method would be similar, though.

When you say "trying to access the API in a Laravel Controller environment before loading"... I'm not sure what that means. Could you provide an example of what you're trying to do?
Basic usage is:
JsonApi::encoder('default')->serializeData($data);

Full signature of encoder is encoder($apiName, $host = null, $options = 0, $depth = 512)
In blade templates:
@encode($data)

That will use the default API. If you need to use a different one:
@jsonapi('v1')
@encode($data)

Full signature of @jsonapi is: @jsonapi($apiName, $host = null, $options = 0, $depth = 512)
Full signature of @encode is: @encode($data, $includePaths = null, $fieldSets = null)

Closing this as I've added documentation for both views and helpers on the develop branch (will be included in next release).

Sorry for not replying... I know I drafted a response but I think I forgot to submit.
Your tips above helped. In particular, arranging it as JsonApi::encoder('default')->serializeData($data); is what I couldn't figure out.
In case it helps, I have prepared these helper functions for myself.
    /**
     * @param Model|Collection|array $models
     * @param string|array $includes
     * @return mixed
     */
    public static function apiEncoder($models, $includes = []) {
        if (is_string($includes)) {
            $includes = [$includes];
        }

        return JsonApi::encoder('default')->serializeData($models, new EncodingParameters($includes));
    }

    /**
     * @param Model[]|Collection[]|array[] $collection
     * @return array
     */
    public static function apiArrayEncoder($collection) {
        $buffer = [];
        foreach ($collection as $row) {
            if (!is_array($row)) {
                $query = static::apiEncoder($row);
            } else {
                $query = static::apiEncoder($row[0], array_slice($row, 1));
            }
            if (array_key_exists('type', $query['data'])) {
                $query['data'] = [$query['data']];
            }
            $buffer[] = $query;
        }

        return call_user_func_array('array_merge_recursive', $buffer);
    }

    /**
     * @param Collection[]|array[] $collection
     */
    public static function apiSessionData($collection) {
        Session::flash('db', static::apiArrayEncoder($collection));
    }

In various controller environments I use this as so:
        Helpers::apiSessionData([
            [$project, 'client-company', 'project-type', 'project-status', 'office', 'tasks'],
            Office::all(),
            [ProjectType::all(), 'default-task-types'],
            ProjectStatus::all(),
            TaskType::all()
        ]);

This gets encoded to a JS object included in the header, along with a bunch of other stuff, at this call here:
<script>
    window.__HOISTWAY_STORE__ = {!! json_encode(array_merge(Helpers::sessionData(), [])) !!}
</script>

The store object is read in to VueX.
Event broadcasting uses Helpers:::apiEncoder() to generate the event payload.

These new features will help in the next version:
https://github.com/cloudcreativity/laravel-json-api/blob/develop/docs/features/helpers.md
https://github.com/cloudcreativity/laravel-json-api/blob/develop/docs/features/views.md

On events that broadcast, you can use this:
https://github.com/cloudcreativity/laravel-json-api/blob/develop/src/Broadcasting/BroadcastsData.php
I need to add something to the docs about that


ERROR:root:ChatVectorDBChain does not support async

INFO:     ('<IP_ADDRESS>', 58212) - "WebSocket /chat" [accepted]
/Users/narendra/Desktop/Metadome/chat-langchain/chatgpt/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py:191: UserWarning: ChatVectorDBChain is deprecated - please use from langchain.chains import ConversationalRetrievalChain
warnings.warn(
INFO:     connection open
ERROR:root:ChatVectorDBChain does not support async

same

same here

While it is being fix, you can use ConversationalRetrievalChain  and monkey patch, line 10--18 from this:
https://github.com/hwchase17/chat-langchain/blob/c1c89a8cd24ea91a844ab6f487accbe9e4f6e507/query_data.py

This works. Thank you

While it is being fix, you can use ConversationalRetrievalChain and monkey patch, line 10--18 from this:
https://github.com/hwchase17/chat-langchain/blob/c1c89a8cd24ea91a844ab6f487accbe9e4f6e507/query_data.py

If you fix this error, which version of langchain is needed, langchain==0.0.162 has the same error, after modifying lines 10-18, it reports an error ERROR:root:'OpenAIEmbeddings' object has no attribute 'query_model_name'?

Did you switch to ChatOpenAI instead of OpenAI?
- from langchain.llms import OpenAI
+ from langchain.chat_models import ChatOpenAI

then
    question_gen_llm = ChatOpenAI(
        model_name="gpt-3.5-turbo",
        temperature=0,
        verbose=True,
        callback_manager=question_manager,
    )

the same for streaming_llm


Remove picker from menu bar

put in other places that make sense?

less of an issue now in tab view.

added in build 2.8


CRAYSAT-1705: Fix logic for checking when staged BOS session is complete

Summary and Scope
Normally, a BOS v2 staged session will reach the state "running" when it is considered finished staging. However, if that BOS v2 staged session does not apply to any components (for example, when a limit parameter is used that does not overlap with any of the nodes in the session template), the session will go straight to "complete" instead.
Rename the target_state argument to the BOSV2SessionWaiter to target_states and change the type to a list of acceptable target states.
Issues and Related PR

Resolves CRAYSAT-1705

Testing
Tested on:

locally on macbook
TBD

Test description:
Added new unit tests. Will test on a real system as follows:

Run sat bootsys boot --stage bos-operations --staged-session using a session template that applies to application nodes, but pass --bos-limit Compute. The session should finish and sat bootsys should return.
Run the same test as above but pass two session templates: one for compute nodes and one for UANs. Both should finish and sat bootsys should return. Only computes should be staged.
Run the same test as above but without --staged-session. The computes should actually be rebooted.

Risks and Mitigations
This is a pretty small change that just adds an additional acceptable target state for staged BOS v2 sessions.
Unit tests cover the changed code.
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] CHANGELOG.md updated
[ ] Testing is appropriate and complete, if applicable
[x] HPC Product Announcement prepared, if applicable

Testing is looking good so far. I am just waiting for the actual reboot of computes to complete:
https://gist.github.com/haasken-hpe/0a420567bc169800fee4210380baf1ad

Testing is looking good so far. I am just waiting for the actual reboot of computes to complete:
https://gist.github.com/haasken-hpe/0a420567bc169800fee4210380baf1ad

I realized that 3 of the computes were not booted before, so this session will probably not actually reach a "complete" status in BOS. I think it adequately tested up to this point though.


Fix const typed array assignment

Fixes const x: Array[int] = [] and const x: Array[int] = [3,2,1] not type checking, where int can be whatever type. Copied solution from how member constants resolve types, as they work fine.
Could add a test case to modules/gdscript/tests/scripts/parser/features/typed_arrays.gd, not sure how you guys like your tests.

Could add a test case to modules/gdscript/tests/scripts/parser/features/typed_arrays.gd, not sure how you guys like your tests.

I'd create a separate file in parser/errors for this.

Sure, how's that?

Sure, how's that?

I meant that the error use case should go in parser/errors/. Successful use cases should go in parser/features/.

Or should I not print and just expect unused variable warnings in the .out?

Printing is probably a good idea to check the actual stored contents.

Sure, I think this is correct.


ERROR on creating requirements.txt - Probably problems with Meta classes

When I'm trying to run pipreqs I receive this error.
Mac OS X, Python 2.7.11
MacBook-Pro-User-2:edwin-bot igor$ pipreqs ~/work/edwin/repos/edwin-bot/
ERROR: Failed on file: /Users/igor/work/edwin/repos/edwin-bot/core/event_log.py
Traceback (most recent call last):
File "/usr/local/bin/pipreqs", line 11, in
sys.exit(main())
File "/Library/Python/2.7/site-packages/pipreqs/pipreqs.py", line 258, in main
init(args)
File "/Library/Python/2.7/site-packages/pipreqs/pipreqs.py", line 216, in init
extra_ignore_dirs = extra_ignore_dirs)
File "/Library/Python/2.7/site-packages/pipreqs/pipreqs.py", line 85, in get_all_imports
raise exc
File "", line 6
class AbstractLogDriver(object, metaclass=abc.ABCMeta):
^
SyntaxError: invalid syntax

@akaihola ah, yeah, I use Python 3. Are there any plans to support Python 3?

I think it already does, but you're trying to analyze a python 3 project with python 2.7 pipreqs, you need to install it using pip3


add edu email

@LiWeiQiangAndroid This domain is blacklisted because the college allows to register an email address there even if you are not a student of the college. If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


Add missing export and sql for splitting

Probably ome of the other changes are needed from the split-polygons branch, such as 856207c, parts of 85c23b3, b256290 or b6d6868 but this will enable support insofar as on Greenland, it will execute the landuse_split_polygon_table.sql operations.
Tested to the point in that I see it's performing the operation on the Greenland osm.pbf but considering how long it takes to complete, I left it at that.

I will use the approach of using a flag in import-sql to split the large polygons explicitly.
I'll merge this first and then merge master back into #324 and make it work there.
Thanks for contributing 😁


Implement meta referrer tag

With the advent of HTTPS as the new standard for the web, referrer data has started to fall through the cracks. In order to combat this, we can implement an extremely simple meta tag which will bring them back. Moz have a fantastic write-up on how and why this is a good idea.
This issue is to implement a default output of exactly:
<meta name="referrer" content="origin" />

within {{ghost_head}} - output on the next line after the rel="canonical" tag.

Really hoping this was as easy as it sounded...

Just thought - is this supposed to output on any particular page? Or all of them?

All of them - come on now, my spec writing isn't THAT abysmal ;)

Sorry :flushed: just wanted to be :100: % sure. :bow:

:trollface:


Porcupine Documentation Issue

What is the URL of the doc?
Free Tier Monthly User for Porcupine
https://picovoice.ai/pricing/
And other references in the console.
What's the nature of the issue? (e.g. steps do not work, typos/grammar/spelling, etc., out of date)
Provide specific definition of monthly user in terms of device or instances initialized for Porcupine.
Will 5 concurrent instances of Porcupine running on the same machine count as 5 users or 1?

what's the device and what do you mean by instances?

I think of a device as a machine (phone, desktop, TV) and an instance as the model with the process method. If I were to run 5 instances of porcupine concurrently using their process method in the same program, will it count as a single user?

If you are running all instances in the same program, then it will be counted as one.

Okay thank you!


Cannot open two instance from folder it worked till now. i am now sure what is problem

VSCode Version: Code 1.16.1 (27492b6bf3acb0775d82d2f87b25a93490673c6d, 2017-09-14T16:38:23.027Z)
OS Version: Windows_NT x64 10.0.15063
Extensions:

Extension
Author (truncated)
Version

vscode-styled-jsx
bla
0.1.1

vscode-npm-script
eg2
0.2.1

cpptools
ms-
0.13.0

vscode-icons
rob
7.14.0

Steps to Reproduce:

Reproduces without extensions: Yes/No

I don't quite understand, could you attach a screenshot? Are you trying to open two windows with the same folder?


Question about Vision-Language Adapter

Hello, thanks for sharing your interesting research!
May I ask about the  the structure of the Vision-Language Adapter mentioned in this paper and how it works during fine-tuning.
Is this adapter introduced to address a semantic gap between the embeddings of images obtained through ViT and instructions, which leads to poor performance when directly concatenated?

Hi,
Do you mean the Vision-Language Adapter shown in Figure 2 (a)? Sorry for the possible misunderstanding, Figure 2 (a) is just a schematic. This adapter is introduced by our baseline model Qwen-VL itself for connecting ViT and LLM, SeeClick did not modify the model structure of Qwen-VL.
Introducing an adapter to connect ViT and LLM is a common practice in current Large Vision-Language Models, e.g. the MLP layers in LLaVA and the Q-former in our case. These adapters are considered to contribute to vision language alignment.

I got it!
Thanks for your prompt response.


Windows defender locks zip file after downloading and resulting in failure to delete.

Fixing it by directly extracting it through an open stream.

@gregg-miskelly @chuckries


Feature/2557 Updates to Character Annex following pilot

What's included?
Closes #2557
Who should test?
✅ Product owner
✅ Developers
How to test?
Example exercise on Production:

JAC00187

Steps:

Check if the text Candidate has declared further information to Has any other character issues.
Check if the number pagination is working correctly.
Check if numbers are displaying incorrectly next to S&S dropdowns.
Check if the stage and status filters are set to default to SCC and Recommended to SCC.
Check if the Recommended SCC approach filter is working correctly.

Risk - how likely is this to impact other areas?
🟢 No risk - this is a self-contained piece of work
Additional context
Include screen grabs, video demo, notes etc.
Related permissions
Have permissions been considered for this functionality?

No permission changes required
Permissions have been added / updated. Details:

PREVIEW:PRODUCTION
can be OFF, DEVELOP or STAGING

Thanks, @HalcyonJAC. I have a few questions:

Are the candidates in the Character Annex report sorted by reference number?
Some time back, we talked about a mechanism which would allow Super users to unlock/reset the character report for teams: what happened with that?
I think you may have misunderstood the first point: under 'Has any other character issue' - 'Candidate has declare further information' - should read as 'Candidate has declared further information'
Were you able to increase the size of the underline/do sthg else to make it easier to distinguish the separate candidates in the report?

Thanks, @HalcyonJAC. I have a few questions:

Are the candidates in the Character Annex report sorted by reference number?
Some time back, we talked about a mechanism which would allow Super users to unlock/reset the character report for teams: what happened with that?
I think you may have misunderstood the first point: under 'Has any other character issue' - 'Candidate has declare further information' - should read as 'Candidate has declared further information'
Were you able to increase the size of the underline/do sthg else to make it easier to distinguish the separate candidates in the report?

The candidates are sorted by the document ID.
Yes, I can add an unlock/reset button that only Digital Super User can access it.
It has been sorted.


Stage changes before commiting

Goal

Testing

Release Notes

WHAT:
WHY:
WHO:

Current dependencies on/for this PR:

master

PR #356   👈

This stack of pull requests is managed by Graphite.


Some vanity URLs don't load after normalization

The Issue
This doesn't load: lbry://@CopChronicles , but this does: lbry://@copchronicles
    at ui.js:1
    at Array.forEach (<anonymous>)
    at o.(anonymous function) (file:///C:/Program%20Files/LBRY/resources/app.asar/ui.js:1:83535)
    at t.claimsReducer (ui.js:1)
    at ui.js:18
    at t (ui.js:33)
    at ui.js:33
    at g (ui.js:18)
    at r (ui.js:33)
    at ui.js:33
    at dispatch (ui.js:18)
    at ui.js:1

System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

This is now fixed


Update lib.dom.d.ts to include Node.isConnected

The property isConnected is not defined in the Node interface:
https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L8439
References:
https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected
https://dom.spec.whatwg.org/#dom-node-isconnected

PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.


method to load new slides

Is your feature request related to a problem? Please describe.
I'm using the marquee as a stock ticker and it would be nice to be able to update data being streamed without re-rendering the marquee completely.
Describe the solution you'd like
It would be nice to have a method that allows you to send a new set of data that replaces the current data once the current loop is finished.  To explain a little clearer, what I'm proposing is that once the data is received by the method it waits until the last piece of current content and then begins feeding the new content from that point on.  So you would have [old3] [old4] [new1] [new2].  That would make the transition seamless.

Great, I'll keep an eye out for it.  What I'm hoping to do is hook the marquee to a a websocket feed.


invalid values error in the GammaPoisson() for Reference data training process

Hi I encountered the value error saying that
ValueError: Expected value argument (Tensor of shape (2500, 20925)) to be within the support (IntegerGreaterThan(lower_bound=0)) of the distribution GammaPoisson(), but found invalid values:
tensor([[0.0000, 0.9725, 0.9725,  ..., 0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
...,
[0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000,  ..., 0.0000, 0.0000, 0.0000]],
device='cuda:0')
when I was trying to train the model on the reference dataset:
from cell2location.models import RegressionModel
mod = RegressionModel(adata_ref)
mod.train(max_epochs=250, batch_size=2500, train_size=1, lr=0.002, use_gpu=True)
The detailed error log is attached.
Currently I have trouble figuring out what caused this error, I am wondering if you could give some suggestions on this issue, thanks a lot!
simdata1_error.log

I had this exact problem and found the solution at #120. You have to pass non-normalized/non-log-transformed data.

what can i do, if i only got TPM data

Replied in https://github.com/BayraktarLab/cell2location/issues/204#issuecomment-1272416837

i use scanpy read the cellranger data why still have this error, i don't know where is wrong


Bug fixes

Addressed #248
Description:

Removed wrongly added condition for the starting normalization
Refactoring the code for the multi-branch options.
Fixing the implementation for the weighted loss.

@ravinkohli I just reverted my "bad" change for the skip connection from the previous PR, that extra change did not seem to affect performance. So, the only thing fixed here is the weighted loss. However, I am testing something small locally since I think there might be another small issue.

@ravinkohli I just reverted my "bad" change for the skip connection from the previous PR, that extra change did not seem to affect performance. So, the only thing fixed here is the weighted loss. However, I am testing something small locally since I think there might be another small issue.

Do you think it's better to add all the bugs to this PR. Or would you prefer merging a PR per fix? I personally prefer the former as we can isolate all the changes in a single commit basically. and in the meantime we can work of this branch to run experiments.

@ravinkohli I just reverted my "bad" change for the skip connection from the previous PR, that extra change did not seem to affect performance. So, the only thing fixed here is the weighted loss. However, I am testing something small locally since I think there might be another small issue.

Do you think it's better to add all the bugs to this PR? Or would you prefer merging a PR per fix? I personally prefer the former as we can isolate all the changes in a single commit basically. and in the meantime, we can work off this branch to run experiments.

Yep, I prefer to have the first option. I made the PR so you and Francisco can also have a look at the differences more clearly.


New list utility

Partially added. Needs reconsideration if it's actually worth to do the rest.
The most notable downsides are less readable syntax and inelegant ways to do some things there.
__pairs and __ipairs come with Lua 5.2, which is not supported by LOVE2D (Lua 5.1).
It's also risky to overhaul some fragile code (most notably Path.lua, SphereChain.lua and SphereGroup.lua), as it might be hard to fix annoying and game-breaking bugs and glitches resulting from that, as well as aforementioned poor syntax.

New lists were added to hold collectibles, paths, floating texts and shot spheres.
It was not added to hold particles, sphere chains, sphere groups and spheres.
Note that there were also several changes unrelated to the general topic of the branch.


Barrel walls for 17.5mm-18.5mm too thin

Barrel walls for the 17.5mm-18.5mm ranges are too thin, not sure if this is suitable for actual use especially since this is on the large spectrum.

Since no one has complained about the latest version, closing this for now.


Speed up string parsing

Codecov Report

Merging #28 (ea0c384) into master (91df038) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #28   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines          504       479   -25
  Branches       107        94   -13
=========================================
- Hits           504       479   -25

Impacted Files
Coverage Δ

tomli/_parser.py
100.00% <100.00%> (ø)

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 91df038...ea0c384. Read the comment docs.


Initial implementation of gentbl as a Starlark rule

Still a WIP. This should avoid having to list all transitive
dependencies in every invocation of gentbl and enable much nicer
includes specification.

I would really suggest getting @hlopko to review (can't properly @ him here for some reason). He understands this part of Bazel and Starlark much better than I do.


Can't open any Adobe installer

I tried downloading Adobe Creative Cloud installer, Photoshop installer and none of them are opening after I download them.

Please see this page for the fix - https://github.com/memstechtips/UnattendedWinstall/blob/main/TROUBLESHOOTING.md


BUGFIX JS require in default template

jQuery should be required via the backend from the DataExtension.

you can likely disregard, didn't remember I already had a PR branch with template work


[DNM v2.8] Add MachineProvisionImagePullPolicy setting

This will not be merged. Waiting for  release v2.8!
I just opened the PR now to get reviews / opinions on the code.
Issue:  #42294

Problem

A client needed have an air-gapped environment and was having problems wile creating a new cluster. That happens due to the ImagePullPolicy  of the ...-machine-provisioning job being set to Always.
Solution

As discussed on the jira ticket the idea is to enable the client to set the image pull policy through global settings.
If this is not configured the behavior will remain the same, that's why the default value is Always.
The setting will be enabled in initialization (once set it cannot be changed unless rancher is restarted).
Some questions:

[x] Are the function / variable names ok ?
[x] Should GetMachineProvisionImagePullPolicy() exist? I did it to avoid errors if the user set an invalid ImagePullPolicy.
[x] GetMachineProvisionImagePullPolicy() Should be on settings.go? I left it there because there are other "getters" on the file.
[ ] If the user set the ImagePullPolicy to Never without the image the pod will get stuck in ErrImageNeverPull, do we allow "Never" as a valid input?

Testing

Engineering Testing
Manual Testing

Running rancher locally, the process was basically:

set the  env CATTLE_MACHINE_PROVISION_IMAGE_PULL_POLICY
start rancher/rancher
create a downstream cluster using the UI.
kubectl edit job {JOB-NAME} -n fleet-default and check the ImagePullPolicy.
kubectl describe pod {POD-NAME} -n fleet-default and check if the image was pulled or respected the value set.

I did that test with CATTLE_MACHINE_PROVISION_IMAGE_PULL_POLICY  set to:  "" (empty), Always, Never, IfNotPresent, wrong and without it set.
Automated Testing

Test types added/modified:

Unit
None
If the GetMachineProvisionImagePullPolicy is Ok i'll do unit test for it. Just waiting to confirm if it is ok.

QA Testing Considerations

Regressions Considerations

If the ImagePullPolicy get set to Never without having the image locally  it will generate an "error", the pod will get stuck!

Since this is a global setting I do have concerns around a user configuring this. Will the images being pulled always be in the local cluster? If it's downstream, can a user have both an air gapped and a non-air gapped cluster? This would cause issues on one cluster since ImagePullPolicy is not per cluster.

The MachineProvisionImage and therefore the MachineProvisionImagePullPolicy settings are just used on the "local cluster" wile creating a downstream clusters.  That was the reason for setting it on a "global" config.
Related to your comment, I also noticed that  we have another case that "Always" is set as the default pull policy, this case happens on the downstream-cluster, wile deleting them. We are waiting for confirmation, but it will not be part of the scope of this issue.


How to call JS from .NET？

1.Is the framework already supported, and to what extent? Is there any relevant documentation I can refer to?
2.the winui-fluid example code.libnode.dll How to get it？

Hello,
In my project, I need to call JS from .NET, but there is no complete path to refer to. I want to confirm the above two questions first.

Embedding Node.js in a .NET application is still experimental, and there is not very good documentation for it yet, only the section in the README, and the example code linked above. I am working on writing more docs.
libnode is not published, but you can build your own. See https://github.com/microsoft/node-api-dotnet/issues/107#issuecomment-2057928923

I have some documentation about this in PR at https://github.com/microsoft/node-api-dotnet/pull/318/files?short_path=40fcb52#diff-40fcb526f85373b1bd3b53db8eeab6fd3eb07a2b99aa0f74c00cf53079d29855

The doc is published at https://microsoft.github.io/node-api-dotnet/scenarios/dotnet-js.html


Supporting indexing of archives in the /files endpoint

Currently our file entry type has a 1-to-1 mapping with a file on disk, however there are many cases where databases serve archive files that aggregate data on multiple structures. I would like to be able to run an index over the contents of an archive file and list them as separate files entries, e.g.,
{"id": "archive_1_bs_1", "attributes": {"url": "http://example.com/archive.tar.gz", "name": "bs_1.bands", "relpath": "bandstructures/bs_1.bands"}}
{"id": "archive_1_bs_2", "attributes": {"url": "http://example.com/archive.tar.gz", "name": "bs_2.bands", "relpath": "bandstructures/bs_2.bands"}}

where a client can be smart enough to only download the archive once. Each file can then have a relationship with the structure that the data pertains to.
relpath or relative_path is not part of the current spec, but I think it could be useful and easy to add. The archiving mechanism/compression should be handled by our current fields (e.g., "media_type": "application/tar+gzip" above) but we will lose some info on the size/type of the file at relpath after extracting (although the description seems to be the intended way to handle this anyway for files without defined mime-types).
If others agree this is useful then I am happy to concoct a PR.

cc @eimrek and @unkcpz

Good idea. I wonder whether we can re-use JSON:API relationships to describe every archive member in a same way the archive itself would be described. For sure we would need to introduce a property for the relative path as name is supposed to hold only the basename.


Carriage return fix

Hi
I was using your package but it caused newlines to appear everywhere. I believe there was a carriage return missing in the cached_output
Local tests seem to have fixed the issue now
this was it before

Best,
C

Hello @cvanelteren! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file pyprind/progbar.py:

Line 75:80: E501 line too long (87 > 79 characters)

Thanks for the PR. It actually worked fine for me before, but testing your it works fine as well. Might be an OS-related thing (are you using Windows?). Anyways, thanks for the fix!

@rasbt  I am running kitty terminal on arch 5.11.2 (if that helps any). It could be kitty issue as it appeared to me on all three common shells (bash, zsh and fish). The carriage return seemed to behave as it should now.
Best wishes,
C


[build] Support storing the commit ID and packaging time inside the J…

[build] Support storing the commit ID and packaging time inside the J…

Purpose

Linked issue: close #1820

Tests

API and Format

Documentation

Can we also add the branch name

Can we also add the branch name

i had added SCM-Branch and Packing-Time into the JAR 8029b10be7d95b3657, but attention the Packing-Time used utc time zone

close this pr, i will create a new pr soon


Execution halted when running robyn_refresh

Project Robyn
Describe issue
When I run robyn_refresh I get the following error:
Error: object 'InputCollect' not found
Execution halted
Here's my code:
Install, load, and check (latest) Robyn version, using one of these 2 sources:
A) Install the latest stable version from CRAN:
install.packages("Robyn")
B) Install the latest dev version from GitHub:
install.packages("remotes") # Install remotes first if you haven't already
remotes::install_github("facebookexperimental/Robyn/R")
library(Robyn)
library(readr)
setwd("/home/media_user/Documents/Edenred")
json_file <- "/home/xxx/RobynModel-5_279_2.json"
data("dt_prophet_holidays")
mmm_input <- read_csv("mmm_input2.csv", col_types = cols(DATE = col_date(format = "%d/%m/%Y")))
mmm_input$Webinar_S[is.na(mmm_input$Webinar_S)] <-- 0
################################################################
Optional: recreate old models and replicate results
From an exported JSON file (which is created automatically when exporting a model)
we can re-create a previously trained model and outputs. Note: we need to provide
the main dataset and the holidays dataset, which are NOT stored in the JSON file.
These JSON files will be automatically created in most cases.
############ WRITE ############
Manually create JSON file with inputs data only
robyn_write(InputCollect, dir = "/home/xxx")
select_model <- "5_279_2"
Manually create JSON file with inputs and specific model results
robyn_write(InputCollect, OutputCollect, select_model)
RobynRefresh <- robyn_refresh(
json_file = json_file,
dt_input = mmm_input,#InputCollectX$dt_input,
dt_holidays = dt_prophet_holidays,#InputCollectX$dt_holidays,
refresh_steps = 6,
refresh_mode = "manual",
refresh_iters = 1000,
refresh_trials = 1
)
Thanks for your help in advance!

sorry for the late reply. please follow the steps from here. If you have the json file, no need to do robyn_write again.


A quick question about application of liner mixed model method to detect degs

Hi, I intend to detect differential expressed genes for female people with diseases, so I change cell type into male/female and choose to assign conditions as diseases/health. Is it correct? I found that my current genes are in large divergence comparing with genes from Wilcoxon. Thanks a lot.

It's hard to know exactly what you mean? Is there an actual bug in Libra for this?

Hi, I am not sure if it is a bug or the problem of my user case.
I intend to identify differential expressed genes for diseases, and I plan to use mixed model. But the result is very strange.
My codes are like:
`
expr = GetAssayData(data, slot = 'counts', assay = 'RNA')
meta =<EMAIL_ADDRESS>meta$cell_type = "Female"
meta[meta$gender == "HC_Female",]$cell_type = "Female"
meta[meta$gender == "AD_Female",]$cell_type = "Female"
meta[meta$gender == "HC_Male",]$cell_type = "Male"
meta[meta$gender == "AD_Male",]$cell_type = "Male"
de = run_de(expr, meta = meta, de_family = 'mixedmodel',  de_method = 'negbinom')
head(de)
`
Is it correct? Thanks.

I don't understand why you would make cell type gender. Do you not have cell types?

I have cell types but I intend to find gender-specific differental expressed genes for diseases. Is it clear? So I think the cell type here represents my gender labels. Thanks.

This would require a more complex design, but does not sound like a bug in libra.

This bug has been fixed.