Option to save firmware backup locally

I get that you'd want the backup firmware on a USB drive in case of failure but as I went through it I thought it strange to not have an option to save the firmware locally. In my case I wanted to save it locally because I didn't have a USB immediately on-hand and I was planning to copy the firmware online as well.
I can help put together a PR if you think this is a valid use case.

the main reason I didn't implement that as an option was I didn't want
people backing up locally when running ChromeOS, then flashing the firmware
and not being able to access that backup (because it's encrypted and no
longer accessible).  I'd have no problem accepting a PR for a local backup
option provided it wasn't available when running the stock firmware and/or
when running ChromeOS
On Mon, Oct 29, 2018 at 6:56 PM Bryan Hyshka<EMAIL_ADDRESS>wrote:

I get that you'd want the backup firmware on a USB drive in case of
failure but as I went through it I thought it strange to not have an option
to save the firmware locally. In my case I wanted to save it locally
because I didn't have a USB immediately on-hand and I was planning to copy
the firmware online as well.
I can help put together a PR if you think this is a valid use case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MrChromebox/scripts/issues/74, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA56plZrOV1R_hL4x60OdX7pZ2B9owNNks5up5WcgaJpZM4YA61a
.

I see where you're coming from. Since ChromeOS encrypt disks by default it wouldn't be recoverable unless the user had taken a second, independent of the firmware scripts, step to copy that file to online storage. It also makes it especially hazardous as scripts offer the option to reboot after flashing new firmware.
I am going to put a little more thought into this and see if I can come up with a reasonably approach.


beforeDestroy & afterDestroy

Hi!
I am trying to make a use of before- and afterDestroy on the models but I am struggling to get the object instance that is being destroyed.
How can I get the current dataset that is being deleted? With the criteria on the beforeDestroy function I could do a database query but for this I am missing the classname.
Thanks!
Mario

Strange, this is working fine for me, i'm using 0.10.5


Could I use pyslang to parse the json format AST

Could I use pyslang to parse the json format AST？or turn the json to systemverilog code？

You could write code to do so, but the functionality does not currently exist.

@MikePopoloski How can I get the AST in JSON format using slang? Can you please help me? Thanks...


Tile out of bounds error type

I stumbled on this error handling this morning and thought we should have a specific error type in large-image for handling bad tile requests.
https://github.com/atlascope/atlascope/blob/da9b5ac19d69101d11990c6a6eea5a1f349a885f/atlascope/core/rest/endpoints/tile_endpoints.py#L137-L146
My rationale: if the z/x/y is out of bounds, then this should not throw a server error but return some sore of http error response. By having a custom error class for this issue in large-image, we could more easily capture this and handle it in rest interfaces
The exception class for this should subclass TileSourceError for consistency and backward compatibility

I think there are only two places in the code that throws this error: https://github.com/girder/large_image/blob/master/large_image/tilesource/base.py#L1439 and https://github.com/girder/large_image/blob/master/sources/pil/large_image_source_pil/init.py#L176
That second one could just call self._xyzInRange like all of the other tile sources, and then there would be only one point.
Feel free to add a new error class and modify _xyzInRange to throw it.

Thanks for pointing me to the right places. I'll see if I can whip something together


Nightly check against latest runtime failure

 Error:  Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (default-cli) on project standalone-pom: Unable to find artifact.: Could not find artifact org.apache.camel.k:camel-k-catalog:yaml:catalog:3.6.0-SNAPSHOT in apache-snapshots (https://repository.apache.org/content/repositories/snapshots-group)

It probably was a temporary hiccup. Closing.


Which one we will keep by default? The Doctrine based DBAL or our own PDO based (Mini-)DBAL ?

Dear friends,
like I said, I received instructions to improve the \Nova\Database as a lightweight alternative to \Nova\DBAL, targeted for (very) small websites.
Now, its API is much more consistent, probably being strong enough to support even the  Tom's ORM, have even an integrated a nice QueryBuilder, on top of FluentPDO and other nice things, while keeping a small profile as code dimensions.
It is also slightly faster than the Doctrine based DBAL, about 40-50%, as expected, considering that is much more lightweight (as dependencies).
Sure, if we talk about drivers support, the Doctrine DBAL is definitively superior, our mini-DBAL having right now support for only TWO: the PDO's MySQL and the PDO's SQLite3, and also, the first one having another nice components like the Schema and being Event driven.
Yet, right now we have, in the tree, two DBALs able to support a small site, yet one, our PDO based mini-DBAL sporting 764KB as total size, including its dependencies, while the Doctrine based one sports a venerable 64MB. :smile:
Our proposal is not to nuke the Doctrine based \Nova\DBAL, but to move into a separate project, living momentary in one of our branches, then, after Dave returns, we will be happy to maintain it as a Project of Nova Framework.
Worry not, we intend to use ourselves, in our projects the Doctrine based \Nova\DBAL, so its future is guaranteed.  :smirk:
And maybe, in future, we will develop yet another DBAL, for example based into Laravel Database, as our end-users (and us) to have a galore of DBALs of choice and alternatives.
Still, after considering and testing well the things, we are on opinion to leave \Nova\DBAL alone to live in its own Project.
Then, what is your opinion into this? You are about to keep the \Nova\DBAL into main tree or to move into its Project?
PS. We can keep the Doctrine Common and its Annotations with no problems, then the Tom's ORM can work directly on top of \Nova\Database with slightly modifications, as today.

@LuckyCyborg one possiblity is to have the smaller one default, and not have dbal in composer, but give instructions on how to pull in dbal if someone wanted to use it.  Like I showed, I had already tested dbal in ver 2.2.
You could have the framework dbal ready, but of course it would be disabled since not installed, and to use a person just add the requirements in the composer file and it's there.
But since you came this far, why not just use dbal?  It is a good strong and also easy to use database layer.
And yet another option is have both, but does that make sense?
Well that's my thoughts on it.

@jimgwhit Jim, if you like to know how we see the Doctrine based DBAL as separate Project, well, will be a Module.
A modules, in our POV, is not only a MVC isolated component. We see them as a mini-App or Extension.
Then, the future Doctrine based DBAL module can even sports, beyond the API, its very own Demos and other shiny thins. The user who want it, will install the Module and activate it in Application Configuration and Voila!
There is the shiny DBAL which can be used by another modules, or even for custom developments.
We just need to find a nice and meaningful name for Module.

@LuckyCyborg If you can only do one by default, may as well be doctrine Dbal.  But I don't know how @daveismyname feels about it.  In all reality, I like the way I showed using dbal in ver 2.2 also.  I guess I just like being able to have some control, like the css thing, I don't like the assets, hooks, and all that stuff.  To me I just like the:
<link href="<?php echo site_url('/assets/css/style.css'); ?>" rel="stylesheet">

way of doing it.

@jimgwhit We prefer to move to Modules the Doctrine one, being still huge for mini websites.
But, why you prefer the Doctrine DBAL one? For its QueryBuilder ? Well, also \Nova\Database sports one, and it is very efficient, in our opinion. :smirk:
In other hand, if you don't like
<link href="<?php echo site_url('/assets/css/style.css'); ?>" rel="stylesheet">

you can write
<link href="/nova/assets/css/style.css" rel="stylesheet">

But hardcoding those things will be bad when you  move the site in the final position. The site_url was invented right for helping when you develop in a sub-directory, then you have to move the site.
We, personally, always we develop in Virtual Hosts, then we can use even the direct style, with no problems.

@LuckyCyborg  so after all of the DBAL discussions, now it's not going to be included in the framework?  But can it still be pulled in with composer and used the way we discussed in the other issue?

@jimgwhit Have importance if Doctrine based DBAL live in:
namespace Nova\DBAL

or if it live in:
namespace App\Packages\DBAL

I talk about dividing it i its very own Nova Project, not about nuking it. Ourselves we intention it together with Nova in some projects.
Like another projects will be better for using the small DBAL one. And another projects to use a full Doctrine ORM.

@LuckyCyborg but my question is will Nova as downloaded and installed from the site be able to use doctrine Dbal?  Remember you are the one who originally wanted it included.

@jimgwhit It is about a better organization of the things.
For example, for some, the DBAL is overkill, and the \Nova\Database is more than enough for a site with ten pages and a three administrator on Backend.
Me and you, we want the do use the DBAL based on Doctrine. Easy, we download, install in its path, and we have everything out-of-box, with its BaseModel, etc.
Others, maybe will want Doctrine ORM into their Nova. Easy, they download, install in its path, and they have everything out-of-box, with its BaseModel, etc.
Yet, others, maybe will want Laravel Database into their Nova. Easy, they download, install in its path, and they have everything out-of-box, with its BaseModel, etc.
You see the light?
BTW, we talk about that it is better to use very important components into namespace App\Packages instead of App\Modules

@jimgwhit To undestand what will be with Doctrine based DBAL moved in it own Package, look now in my branch:
https://github.com/simple-mvc-framework/framework/tree/3.0-beta
download the ZIP and look into:
app/Packages/DBAL

@LuckyCyborg I don't see a app/Packages folder on that site.

@jimgwhit Sorry, it is about:
https://github.com/LuckyCyborg/simple-mvc-framework/tree/3.0-beta

@jimgwhit Still I do not have a better name for DBAL's Package. Maybe will be better Doctrine or even Dottrina  (in Italian) :sake:

@LuckyCyborg  So from the way we used dbal in issue #364 how would it be used in
app/Packages/DBAL?
Also from what you described above, it appears the framework will be able to use other database management tools, such as meedo, a generic PDO wrapper, illuminate database, etc. Is that now the case?

@jimgwhit

So from the way we used dbal in issue #364 how would it be used in
app/Packages/DBAL?

It is simple, just you use instead of:
use Nova\DBAL\Manager as Database;

as
use App\Packages\DBAL\Manager as Database;

or, much better:
use App\Packages\DBAL\Model as BaseModel;

class MyShinyModel extends BaseModel
{
...
}

Also from what you described above, it appears the framework will be able to use other database management tools, such as meedo, a generic PDO wrapper, illuminate database, etc. Is that now the case?

Overall, you got the idea! :smirk:
We try to make the Framework more flexible, and of course!, if someone (want and) write a Package on top of Meedo or Illuminate Database, they can be used into Framework.

@LuckyCyborg you said
a Package on top of Meedo or Illuminate Database, they can be used
Are you saying a package would have to be written, or can illuminate database be used by simply overriding the current database like in version 2.2? Also like demonstrated an issue #364 where the model was simply overwritten by the dbal information.

@jimgwhit Of course that someone would have to write a Package for Meedo, for it to work, for example. :smirk:
Think about Packages as some extensions, similar with the Modules, but without Routing, Controllers and Views support.

I will work on the orm today. Tell me if I have to move to the old engine a like.

@tomvlk About what old Engine you talk? :smile:
I refactored the \Nova\Database as small DBAL.
In other hand, right now I mussing about moving the ORM to a Package.
In other hand, if you want the ORM to remain into System, aka *\Nova* namespace, you should rely, in future, only into \Nova\Database services and Doctrine Annotations.

@LuckyCyborg for example. I installed from Composer:
"illuminate/database": "*",

What now needs to be done in Nova to use this?

@mickacz Probably to write some Wrapper or Package to integrate it? :smirk:
For example, one can want your Illuminate Database to read our Configuration style, to have a dedicated base Model, a Database instance, etc...
It is simple: the system is only for Nova's System and no one should touch it, adding or changing something. everything else should go into Application.
And, if someone want to write some more complex but reusable work, he should use Packages or Modules for that.

@tomvlk And another thing, about your ORM.
If your ORM API do not support also WHERE conditions something like:
where('username != ?', 'admin');

Again, if it do not support that type of conditions, as one of the accepted variants, our interest into your ORM is very small, it having no use for us.
Then, I strongly recommend to move it to a Package. :smirk:

@LuckyCyborg When you will have some time, can you prepare a sample package for Illuminate Database? :)

@mickacz Sure, probably we will do it.
To be honest, it is one of the Packages interested into. Another one being Doctrine ORM.
But we see the Illuminate Database as a whole, including its ORM, then it will be not soo simple... :smirk:

And there is the Demo of the DBAL from App\Packages\DBAL :+1:
http://smvc3.giulianaeassociati.com/demos/models/dbal_model
Like you can see, a Package can be properly used by another Components.

@mickacz  watch the prior video Dave did on using illuminate database, and study issue #364 where dbal was used, it's similar. Also in the forum there are instructions. Basically you have to override the default database helper with the illuminate database.

@LuckyCyborg you keep speaking of the term packages, in reality don't you just mean a class, or classes? I mean at the end of the day all of the special terms are just classes doing something, I don't believe in putting special names on them like the laravel folks do.
I mean for crying out loud, recently I saw a post about mutatets, I thought to myself what in the blankety blank, they were talking about getters and setters. Why do modern people had to have pretty specialized terms for something, a sanitation engineer is a garbage man. Another one, a custodian engineer, is a janitor, now is that so hard to accept?

@LuckyCyborg how come @tomvlk mimi dbal looks similar to meedo, and it doesn't look like in the background prepared statements are used, are prepared statements used, if not that's a bad thing.
Will normal query statements still be available like doctrine Dbal uses?

@LuckyCyborg you know you could just use the illuminate database as the default database for Nova, that does not mean the ORM has to be used, this would make things so simple, and we all know the illuminate database is real real real real good. Plus it is very very easy to use. And of course have an option available to use doctrine Dbal if that's what someone wanted to do.
But really instead of messing with that mini dbal thing, why don't you ask Dave to let's just use doctrine Dbal, I think that would be a good way to go, it's also easy to use. Plee with Dave if you have to, beg him,  talk him into it somehow. @daveismyname read this.

I'm overwhelmed with the changes right now, I need to look at the different database setups that seem to now exist!
Without looking into them my initial thought is to use the helpers database then make the others optional add-ons or packages but I can't be sure right now without looking through the files and trying them out.

@daveismyname don't forget to check out issue #364  where there is an in depth doctrine Dbal example, @LuckyCyborg originally was including doctrine dbal but then changed his mind.  I hope you had a good time.

@jimgwhit I not changed my mind. I just try to organize the things. Yet I'm ashamed to see an Illuminated like you to be so... "indoctrinated" !
PS. That's your choice, Dave's here. If you convince him, I will integrate completely, finishing with Models, at you choice, the Doctrine ORM or Laravel ORM... :smirk:
Go out and fight, man! :+1:

@LuckyCyborg  I will try,  @daveismyname  PLEASE let's use doctrine Dbal.
Well @LuckyCyborg  you need to beg him to, I think we both like doctrine Dbal.

Like I've said I need to look at things before I can understand fully what we are discussing.

@daveismyname In principle, what Nova sports now is a mini-DBAL into namespace **Nova**, and the full blown Doctrine based DBAL as a Package.
The users can chose to use the lightweight one, written by us (and it is literally faster, around 40-50%) or the powerful one, based into Doctrine DBAL, living as Package, like I said.

@daveismyname please test the mini-DBAL good, does it use prepared statements and binding? Your original database helper did these things since it was based right on PDO. Family safety standpoint I'd be leery have anything that didn't Auto use prepared statements and data binding in the background.

@daveismyname and @jimgwhit
To this question I can give myself a response... :smirk:
One of the reasons of the demise of Doctrine based DBAL as Package was that while powerful, it is clearly designed to be used as base for a "machine processing style", like the eventually Doctrine ORM. Then you have to use a well defined style for ensuring the parameters quoting and  binding.
In contrast, the now \Nova\Database it is much more noob-friendly and have more relaxed specs, automatically binding the variables under prepared statements and, after all, giving a more clean syntax under the small websites case.
Before to blame \Nova\Database to note that right now permit syntax like:
$data = array(
    'activated' => true,
    'activated_by' => $userid
);

$where = array(
    'id' => array(2, 3, 4, 6),
    'activated' => false,
    'username != ?' => 'virgil'
);

$result = $connection->update('users', $data, $where);

@LuckyCyborg and @daveismyname but will regular queries be able to be written like the original database helper, sometimes and especially for me I like using regular SQL queries. And of course with the data binding and prepared statements. Please make sure this functionality is included.

automatically binding the variables under prepared statements

@jimgwhit yes is the answer to both those questions just scanned the class I can see the methods make use of a select method which internally does the prepare and bind.

@daveismyname whew thank goodness.

@LuckyCyborg and @daveismyname will doctrine Dbal or illuminate database be able to be used like we discussed in issue #364 ?

I'm confused where can I see an example of the doctrine dbal being used? unless I'm mistaken the demo module is using Nova\Database

@daveismyname The Doctrine DBAL based was that Demo where you switched fetchAssoc -> fetchArray and changed to Database\Manager from DBAL\Manager
Wondering if is better to ship the Doctrine based DBAL as a Module, including its own Demos...

@daveismyname BTW, for the Doctrine based DBAL you are kind to choosee a proper name for Package, eventually Module?
Right now, the Package  is called DBAL, and that is soooo generic.

@daveismyname look mid way in issue #364 where I had made an app\Dbl folder, and used doctrine dbal siimilar to your video you did on illuminate database. However this was done in Nova.
Another way of asking this is will medoo, doctrine dbal or the illuminate database still work in Nova if pulled in with composer, what files would have to be overwritten?
Or will Nova be restricted to using only the database helper that's included?

since there compose based they will be able to work like I did in earlier videos I would imagine, I don't see anything that would stop that from running.
Looking at the module demo so far I'm liking demos/dbal this is using system/Database/Connection which is why I'm confused I thought doctrine was the one in the package directory

@jimgwhit About what "database helper" you talk Jim?
Stop calling the Nova's Database Abstraction Layer as "database helper", please!
The single existent "database helper" is a legacy wrapper one, adapting \Nova\Database to the old/legacy style.

Another way of asking this is will medoo, doctrine dbal or the illuminate database still work in Nova if pulled in with composer, what files would have to be overwritten?

Go figure! We are talked about this subject for days!

Or will Nova be restricted to using only the database helper that's included?

Nope! You can't be restricted to a nonexistent "database helper".

@daveismyname

Looking at the module demo so far I'm liking demos/dbal this is using system/Database/Connection which is why I'm confused I thought doctrine was the one in the package directory

The Demo for Doctrine based DBAL is right now:
http://smvc3.giulianaeassociati.com/demos/models/dbal_model

ah that explains my confusion right now I like http://smvc3.giulianaeassociati.com/demos/dbal
with http://smvc3.giulianaeassociati.com/demos/models/dbal_model how would joins work? nearly all my queries require joins from usually 3 or 4 tables.

@daveismyname no matter what we need a database abstraction layer where you can write regular style queries. @LuckyCyborg I just got my terminology wrong, but you know what I meant. Also the new question was asked because you said doctrine dbal will not be included now where originally you said it would be included. If you do include it, you can write regular queries in doctrine dbal so why not include it?
@LuckyCyborg please remember it was originally you that wanted doctrine dbal, so what gives here, why pull it all of a sudden?

@daveismyname Both the Mini-DBAL, aka the \Nova\Database and the Doctrine based DBAL, aka App\Packages\DBAL, supports the JOINS like a charm.
To note that on the QueryBuilder shipped by \Nova\Database, based into FluentPDO the support for joins is at a epic level. You can write complicated joins in few commands!
@jimgwhit The Doctrine based DBAL does not go anywhere! We will maintain it, eventually in a separate repository, and we will use it ourselves.
In other hand, we arrived to conclusion that it is too big for small projects and asking for strict building style. Then, we suppose that it will create confusions to the beginners...

@LuckyCyborg question still not answered can it still be used in Nova after all the changes?

@jimgwhit

@LuckyCyborg question still not answered can it still be used in Nova after all the changes?

Considering that it is specially designed for Nova, go figure!

@LuckyCyborg why would doctrine dbal be too hard for beginner, when the regular queries are written the same as Dave's original database helper, just minor changes. Furthermore even a beginning  has to learn to use harder things. Remember you are the one who wanted it in the beginning for nova.

@jimgwhit I said hundreds times, the Doctrine based DBAL does not go anywhere! :smile:
We prefer to make it a (optional) Package because for small Projects, all we need it is \Nova\Database , which is faster (around 40-50%), more simpler and permit to use a more relaxed syntax.
We will use the Doctrine based DBAL for more complex projects, then it will be always available for us, if is need.


error when executing make prepare-local-env CA Certificates

#10 36.79 Total                                           3.6 MB/s |  88 MB     00:24
#10 36.79 warning: /var/cache/dnf/centos-baseos-de5175b35c7c3fbf/packages/binutils-2.30-93.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
#10 37.29 CentOS-8-BaseOS                                 0.0  B/s |   0  B     00:00
#10 37.29 Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official [SSL certificate problem: unable to get local issuer certificate]
#10 37.29 The downloaded packages were saved in cache until the next successful transaction.
#10 37.29 You can remove cached packages by executing 'yum clean packages'.
------
executor failed running [/bin/bash -o pipefail -c yum install -y gcc gcc-c++ git]: exit code: 1
Pushing image to localhost:5000/ods/helm ...
Using default tag: latest
The push refers to repository [localhost:5000/ods/helm]
An image does not exist locally with the tag: localhost:5000/ods/helm
make: *** [Makefile:19: build-and-push-images] Error 1

some proxy stuff maybe? @felipecruz91?

I forgot to mention the issue happens on an WSL2 VM, proxy is properly configured(I think)

@segator can you check that error happens when building the rest of images as well?
Just to narrow down the problem.

@segator Would you check this again?


Image does not render when using a Local File as Background in a CSS file

Originally, I had difficulty getting any of my local images to display but after I found #47 I used the tips within to get my local images to display as expected when the image is referenced is in an HTML file.
(In particular, I used MarticPicc's solution of loading a png as a base64 string into the HTML itself)
I tried to apply the same practices to the CSS file I am using alongside the HTML, but the advice does not seem to work.
1. Absolute path:
I tried using the absolute path for the image referenced in the CSS and the resulting image did not generate with the background applied.
CSS File:
.text {
    background-image: url("C:/My/Absolute/Path/to/the/Image.png");
}

2. URL
Did not try using a URL and would vastly prefer not to, but if no other solutions are known, I can try this.
3. Load_File method:
CSS File:
.text {
    background-image: url("image.png");
}

Py File:
hti = Html2Image()
hti.load_file('image.png')

#Open and read the file
with open('data.html', 'r', encoding='utf-8') as file:
    html_content = file.read()

with open('data.css', 'r', encoding='utf-8') as file:
    css_content = file.read()

hti.screenshot(html_str=html_content, css_str=css_content, save_as='html2image.png')

4. Change Temp Directory
I tried this method and was not able to render anything in the resulting png. (Created a transparent file)
CSS File:
.text {
    background-image: url("relative/path/in/project/folder.png");
}

Py File:
hti = Html2Image(temp_path='./')

# Open and read the file
with open('data.html', 'r', encoding='utf-8') as file:
    html_content = file.read()

with open('data.css', 'r', encoding='utf-8') as file:
    css_content = file.read()

hti.screenshot(html_str=html_content, css_str=css_content, save_as='html2image.png')

5. (Bonus) Base64 Encode
I used MartinPicc's solution to encode my images in Base64, but google says that css files cannot accept encoded images, and after trying it one the css, also does not appear to work.
Does anyone know of any method to get a local png file to be used as a background image as defined in a css file?

Hello, I've tried to reproduce the issue with the following code :
from html2image import Html2Image

css = """
.text {
    background-image: url("C:/path/to/bg.png");
}
"""

html = """
    <div class="text">
        This is some text with a background image!
    </div>
"""

hti = Html2Image(keep_temp_files=True)
ret = hti.screenshot(html_str=html, css_str=css)
print(ret)

But the generated image is generated with a background image.
If you use keep_temp_files=True like I did, you should be able to check your %TMP%/html2image directory and find an HTML file. This file can then be opened using chrome/edge/etc. to check how it is rendered by the browser. You can use this file to debug your html/css : if it does not have a background image when viewed from the browser, screenshots also won't have it.

Thanks for the help!
Your code snippet worked as expected for me, but I feel like I might be missing a vital step somewhere else.
I used the keep_temp_files=True to keep the html file generated, and when I open that file in my browser (Chrome), I see what I expected to see. But the screenshot captured does not match the browser.
As far as I can tell, the screenshot is a 8kb file of an entirely transparent image.

Could you share the html file you're using, or at least a minimal version
of the html file that would allow to reproduce the issue?
Le ven. 18 oct. 2024, 22:40, Alderaxen @.***> a écrit :

Thanks for the help!
Your code snippet worked as expected for me, but I feel like I might be
missing a vital step somewhere else.
I used the keep_temp_files=True to keep the html file generated, and when
I open that file in my browser (Chrome), I see what I expected to see. But
the screenshot captured does not match the browser.
As far as I can tell, the screenshot is a 8kb file of an entirely
transparent image.
—
Reply to this email directly, view it on GitHub
https://github.com/vgalin/html2image/issues/168#issuecomment-2423200072,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALNKZXK3E6OBI7YFO5O2WELZ4FW27AVCNFSM6AAAAABQECK73WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGIYDAMBXGI
.
You are receiving this because you commented.Message ID:
@.***>

Yes! I attached a zip with the file structure I am using as well, I worry that might play a role in it.
The actual 'look' of the file is still in progress, all I am working on right now is getting the background image (the parchment.png) to display.
I threw a bunch of stuff in the file, if you need more, let me know!
CSS_Local_Image_as_Backgroud.zip
Before zipping/submitting I made sure that the HTML file generated in the html2image_Temp folder correctly displays what I intend it to when I open it in a browser.

Thanks! I modified the two python files a little bit so that every path are correct on my machine, I also used absolute paths just to be sure.
I'm generating the following image using Test.py, it seems to have a parchment background as intended:

When using GithubSubmission.py, I get the following image:

Text areas seem to have parchment as a background. Is everything like it's supposed to be?
If yes, could you try to update html2image using the following command :
pip install --upgrade html2image

Recently, Chromium had some breaking changes with how headless mode works, and older versions of html2image don't work anymore. As you're getting blank/black images, I hope this will fix the issue for you.

I was able to resolve the issue by passing an absolute path for my temp_path argument instead of the relative path or not passing anything at all.
Thanks for all the help, much appreciated.

I'm glad to hear everything is working properly now! Your use case for html2image and your project sound really interesting. If you'd like, feel free to share more about it in this thread I just opened: https://github.com/vgalin/html2image/discussions/170
Have a nice day and have fun with your project.


Add documentation of header and footer for Autocomplete component

Subject
Autocomplete
Description
#2519
Add the functionality added by this PR to the document.
Are you willing to participate in creating this documentation page and create a pull request?
None

Please refer to #2634.

It's similar to https://github.com/yamada-ui/yamada-ui/pull/2634, so I'll take care of it!

@kaehehehe
Hi, thanks for the comment!
Yes, pls.


Full text search example

Hi @cigolpl,
The search with facets are working very well but I can't find an example of full text search.
I see in the source code that you use lunrjs. Can you provide me a code sample with full text search and the fields to limit the search to?
Equivalent with lunrjs code
var idx = lunr(function () {
  this.field('title')
  this.field('body')

  this.add({
    "title": "Twelfth-Night",
    "body": "If music be the food of love, play on: Give me excess of it…",
    "author": "William Shakespeare",
    "id": "1"
  })
})
idx.search("love")

Another unrelated question, I saw you use the full library minified of lodash without npm. What is the reason behind it ? I'm also using lodash but with npm so I think lodash code will be duplicated in the end because there is no dependencies manager.
I could fork the project and do the modifications if it is not a deliberate choice.

Hello @lbineau,

I have updated demo in readme for this case. Please ctrl+f for query and searchableFields

As far as I remember I've minified only specific part of lodash to make it smaller for the client side (with bower). I've used this command lodash include=some,forEach,map,mapKeys,mapValues,every,includes,intersection,filter,keys,clone,flatten,transform,sortBy -o lib/lodash.js -p. I agree - decoupling it to npm if possible would be better

So fast! Thank you it just works :)
Let me know if you want me to do something about npm. Now all the functions are in different files so you can require them separately.
Personnaly I use something like this on my new projects:
import _get from 'lodash/get' // import syntax
var _get = require('lodash/get') // or require syntax

What do you think?

@lbineau feel free to propose any changes anytime if you see a room for an improvement, even very small things.

Personally I prefer var _get = require('lodash/get').
The project should pass tests with command mocha tests/*


🐛 Fix running e2e upgrade tests with pre-releases

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

/test-upgrade-e2e-main

/test-ubuntu-e2e-parallel-main
/test-ubuntu-e2e-main

/test-upgrade-e2e-main

/test-upgrade-e2e-main

/test-upgrade-e2e-main

/test-ubuntu-e2e-parallel-main
/test-ubuntu-e2e-main

/test-ubuntu-e2e-parallel-main
/test-ubuntu-e2e-main
/test-upgrade-e2e-main
/test-ubuntu-integration-main

/hold

https://github.com/metal3-io/metal3-dev-env/pull/1105 is merged, I'll remove the test commit and just run integration test here.

Test commit is removed.
/test-ubuntu-integration-main
cc @lentzi90

/hold cancel

/lgtm


About GameOver voice lines.

What is your question?
Is there any chance that some LUA script exists for audio files to play on death in 0.6.2?
Everything else I've researched is outdated.

local line

function onGameOverStart()
   line = getRandomInt(1, 11)
  playSound("FleetLines/" ..line, 1)
end

u will have to edit it a bit but something like this

here
math.randomseed(os.time())
local sound = math.random(1, 6);
playSound(sound, 2)

and also rename your audio file to number 1 to 6

Is there a way to do it non-randomised ? Like, when the player died the first time it plays the audio "1", if the player died twice, it plays the audio "2", etc...

I know there is a variable that counts the number of deaths (yn when you pause the game) but I don't know where to find it.

local randomNumber = math.random(1,10)
local soundDirectory = 'STRING'
playSound(soundDirectory..'SOUNDNAME'..tostring(randomNumber), 1)

Also the variable for deaths is:     getProperty('deathCounter');

has the issue been solved?


Wrong code execution with comparison chain

I compiled a simple code:
while True:
    print(4 <= 4 <= 5)
    input()

and have a bug:

But this code return correct output.
while True:
    print(3 < 4 < 6)
    input()

I can confirm this, necessary to be in a loop, which at this time prevented the optimization of the temporary variables used inside the loop. That is of course another story to address. The reformulation seems correct, otherwise the non-loop case could not come to the correct value. I have a worry that this is a regression of the 1.0 release and comparison helper changes.

This is indeed a regression, probably due to the use of less comparison helpers, probably we are making false assumptions somewhere. We use to do this:
            tmp_assign_source_9 = RICH_COMPARE_LE_OBJECT_LONG_LONG(tmp_cmp_expr_left_1, tmp_cmp_expr_right_1);
            tmp_args_element_value_1 = RICH_COMPARE_LE_OBJECT_LONG_LONG(tmp_cmp_expr_left_2, tmp_cmp_expr_right_2);

but now it is this:
           tmp_tmp_assign_source_9_cbool_1 = RICH_COMPARE_GT_CBOOL_LONG_DIGIT(tmp_cmp_expr_right_1, tmp_cmp_expr_left_1);
            tmp_tmp_args_element_value_1_cbool_1 = RICH_COMPARE_LE_CBOOL_LONG_DIGIT(tmp_cmp_expr_left_2, tmp_cmp_expr_right_2);

The first one has reversed arguments, and uses GT, while the later uses LE with both of them using the C long type argument, first question would be why reverse at all, where the first one exists. I used to have a misconception that on reversal of the operator, the result must be inverted, maybe there are remnants of that in the code.

Ok, it seems that for 2 <= var we reverse the arguments, but we do not reverse the results, when the C types are the same, but it's done when it's similar.
Unoptimized comparison chains are probably the only times, humans write that kind of code, which explains why it escaped the attention so far. I will want to do a rebase of main to correct this after bisecting it, as well as making it a hotfix of course.

This is currently on the develop branch and is going to be part of 1.0.2 hotfix later today. I am closing it as release is immanent.


Moved storage root and base file path away from potetial real-only directory

When running with read-only root file system, GCS will fail to create any subdirectories under a ready-only directoy , such as /mnt.
I found /tmp is always not part of the read-only directory structure. If you have any idea on better place to put this, I am open to it.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Player#isPermissionSet(String) returns false when PermissionAttachment set to false

Player permissible = server.addPlayer();
permissible.addAttachment(
      plugin,
      "test.perm",
      false,
);
permissible.isPermissionSet("test.perm"); // returns false but it should be true
permissible.permissionValue("test.perm"); // returns TriState.NOT_SET but is should be TriState.FALSE

Maybe permission check logic has a bug?

I'm gonna fix this as soon as possible. Should be done this week

What Version of Mockbukkit and Minecraft are you using?


Js doc final

Assuming this is largely the same as prior pull request, with just clean up and the minor changes requested - then looks great! Thanks for getting this done.
:+1:


Parallel runner can re-run failing tests with the log-level set to DEBUG

so that log bloat (even the report generation time) can be reduced for those who want to suppress HTTP request / response logs.
probably needs research into dynamically setting log-level for the log collector.
refer this discussion: https://github.com/intuit/karate/issues/246#issuecomment-345283345

“why is karate-testing 0.9.1 not available in maven central. I am trying to utilize one of the new feature "retry until"”

@premsure542 since you double-posted to stack-overflow look over there


Date not properly showing as per example

Hi
i  have used sample demo like below code
var Table = sheet.tables.add("A1:D1", true);
Table.getHeaderRowRange().values = [["Date", "Merchant", "Category", "Amount"]];
                                                    Table.rows.add(null /*add rows to the end of the table*/, [
                                                        ["1/1/2017", "The Phone Company", "Communications", "$120"],
                                                        ["1/2/2017", "Northwind Electric Cars", "Transportation", "$142"],
                                                        ["1/5/2017", "Best For You Organics Company", "Groceries", "$27"],
                                                        ["1/10/2017", "Coho Vineyard", "Restaurant", "$33"],
                                                        ["1/11/2017", "Bellows College", "Education", "$350"],
                                                        ["1/15/2017", "Trey Research", "Other", "$135"],
                                                        ["1/15/2017", "Best For You Organics Company", "Groceries", "$97"]
                                                    ]);

but Out put was different showing me  please check on image attachment
second row i have used date in json data : 1/2/2017
but on excel sheet it show me like:   02/01/2017
so please help me regrading this issue.

@Jeshal2013  Thanks for your interest in Office Add-ins. We use the issues in this repo to track problems with the documentation. Please raise this technical question on Stack Overflow and be sure to tag it office-js. That way the whole community will benefit from the answers that you get.


docs: add AUR instructions

I reorganized the Install section and split the launch command in a new Usage one, let me know if that's correct for you

Very interesting implementation!
I've never used the 'Arch' distribution, so I'm curious. Tell me, were you able to check the installation from aur and the functionality of the application on the system?
Can you also tell me whether packages need to be uploaded manually with each version or is there synchronization with git?

To be clear, I also wrote the PKGBUILD and published it in the AUR (you can inspect it here).
It follows Arch's Go package guidelines and is built in a clean chroot.
I indeed installed and tested the basic functionality of the app built from my package, and found it working fine.
There's no need for you to upload anything else, I'll star the repo and follow the releases to update the package accordingly.

Great, thanks for the feedback and support!

There's no need for you to upload anything else, I'll star the repo and follow the releases to update the package accordingly.

also mentioned you in the README file for your contributions ;)


pkg/k8s: do not DeepCopy when converting to CiliumEndpoint

As the original structure is immediately overwritten there is no need to
perform a DeepCopy of the fields when converting them to a
CiliumEndpoint.
Signed-off-by: André Martins<EMAIL_ADDRESS>

test-me-please

Coverage increased (+0.03%) to 46.72% when pulling 255172a832642454293314bd553391adbd6a2f91 on pr/remove-deepcopy into 8804f86828f21f0af31b3e01efe97f375564cc23 on master.


Fixing cassandra blueprint

Change Overview
Fixing problem where snapshots were not getting cleaned up. Added nodetool command to cleanup snapshots.
Pull request type
Please check the type of change your PR introduces:

[ ] :construction: Work in Progress
[ ] :rainbow: Refactoring (no functional changes, no api changes)
[ ] :hamster: Trivial/Minor
[x] :bug: Bugfix
[ ] :sunflower: Feature
[ ] :world_map: Documentation
[ ] :robot: Test

Issues

#K10-5821

Test Plan
Test 1 -
Deployed cassandra and added sleep time in blueprint. While taking backup I deleted actionset.
I triggered backup process again and it worked as expected.
Test 2 -
Manually triggered snapshot in cassandra pod via kubectl using command "nodetool clearsnapshot".
Later triggered backup via cassandra blueprint. I got error "Snapshot cassandra-1 already exists".
Later I added triggered backup with new cassandra-blueprint and process completed without any error.

My last PR https://github.com/kanisterio/kanister/pull/836 was messed up due to my local copy. I raised this new PR for same changes.
@pavannd1 @TribalNightOwl @PrasadG193 @viveksinghggits


Update README.md

Summary
This pull request simplifies the README.md file by removing unnecessary content and focusing on the most important information. The changes aim to make the README more concise and easier to understand for users.
Changes

Removed the detailed description of SKonsole, its projects, and classes.
Removed the 'Getting Started' section, which included instructions for building and running the app.
Removed the 'Installing SKonsole Tool' section, which provided installation instructions.
Replaced the removed content with a single line of text: 'TESTING'.

Powered by Microsoft Semantic Kernel
This is a test to see if the skonsole-generate-pr-description action can update a PR from a forked branch.
Summary
This pull request simplifies the README.md file by removing unnecessary content and focusing on the most important information. The changes aim to make the README more concise and easier to understand for users.
Changes

Removed detailed information about getting started, projects and classes, and installing the SKonsole tool
Replaced the removed content with a single line 'TESTING'
No changes to the functionality of the code or the structure of the repository

Powered by Microsoft Semantic Kernel
Summary
This pull request simplifies the README.md file by removing unnecessary content and focusing on the most important information. The changes aim to make the README more concise and easier to understand for users.
Changes

Removed detailed information about getting started, projects and classes, and installing the SKonsole tool
Replaced the removed content with a single line 'TESTING'
No changes to the functionality of the code or the application itself

Powered by Microsoft Semantic Kernel
Summary
This pull request simplifies the README.md file by removing unnecessary content and focusing on the most important information. The changes aim to make the README more concise and easier to understand for users.
Changes

Removed detailed information about getting started, projects and classes, and installing the SKonsole tool
Replaced the removed content with a single line 'TESTING'
No changes to the functionality of the code or the application itself

Powered by Microsoft Semantic Kernel

/generate_pr_description replace

/sk generate-pr-description replace

/sk generate-pr-description replace

/sk generate-pr-description replace

/sk generate-pr-description replace

/sk generate-pr-description

/sk generate-pr-description prefix

/sk generate-pr-description suffix

/sk generate-pr-description replace


Add ability to set loopback_users (only localhost access)

Please give me feedback :)
I was unsure if this is something which should be set through the user lwrp but it
is not really handy to test it. (The rabbitmqctl has no command to verify the
loopback_users) - So I decided to make it this way.
Greetings Thomas

@tsupertramp
How about have something like below?
attributes/default.rb:
# rabbitmq.config defaults
default['rabbitmq']['default_user'] = 'guest'
default['rabbitmq']['default_pass'] = 'guest'

# List of users which are only permitted to connect to the broker via a loopback interface (i.e. localhost).
default['rabbitmq']['loopback_users'] = [ 'guest' ]

templates/default/rabbitmq.config.erb
     {default_user, <<"<%= node['rabbitmq']['default_user'] %>">>},
     {default_pass, <<"<%= node['rabbitmq']['default_pass'] %>">>},
<% if node['rabbitmq']['loopback_users'] -%>
    {loopback_users, [<%= node['rabbitmq']['loopback_users'].map{|n| "<<\"#{n}\">>"}.join(',') %>]},
<% end %>
     {heartbeat, <%= node['rabbitmq']['heartbeat'] %>}

You might want to test:

attribute value is nil
single loopback user
multiple loopback users

Consider to add some descriptions for this new attribute in README.md or even metadata.rb.

@tsupertramp looks like you got a travis failure too :)

Thanks for your feedback :)
I will prepare a new Pull Request until Saturday.
Have a nice evening guys!

Having Problems with chefspec - Seem to be a problem with gem versions - Explosion of my time box so i will continue to do it tomorrow.

test/cookbooks/rabbitmq_test/files/default/tests/minitest/cook-2151-3489_test.rb:36:1: C: Trailing whitespace detected.

I think this can be closed as a dup of PR#212

Closed due to #212


allowFontScaling={false} on TextInput have no effect on Android

To ignore the changes of global font size from device's settings, I tried to pass the AllowFontScaling={False} to its props. But it didn't work. Can you suggest any solution to it.

This should be working on latest version, if not please feel free to open a new issue


Typo in GitHub repository description

Describe the bug
Thank you for recent updates simplifying language in the README and wiki (#668, #669).
This is a minor suggestion but the word 'documentation' is misspelled in the GitHub repository description (see below). I would suggest fixing the typo or simplifying the description to just read: 'R Extension for Visual Studio Code'.
To Reproduce
Steps to reproduce the behavior:

Go to https://github.com/Ikuyadeu/vscode-R
See repository description (screenshot attached below)

AFAIK, this can only be fixed by the repository owner @Ikuyadeu.

@gvelasq Thank you for the information. Now it is updated.

I guess "lint" could be removed as it is done by R language server?

@renkun-ken I agree with you.


Error with 8-bit unpacking, kernel switch threshold ignored

It seems there is an issue with 8bit past the kernel switch threshold (128). 8bit quants will emit garbage if the initial context is past 128 tokens.
To prove it is an issue with unpacking, the following hack fixes the problem! The bug must be in the unpack for 8bit. This is on cuda branch.
diff --git a/quant.py b/quant.py
index aa63d86..c3c0c89 100644
--- a/quant.py
+++ b/quant.py
@@ -304,7 +304,7 @@ class QuantLinear(nn.Module):
             else:
                 self.bias = None

-        if not self.kernel_switch_threshold is None and (x.shape[0] * x.shape[1]) >= self.kernel_switch_threshold:
+        if self.bits < 8 and not self.kernel_switch_threshold is None and (x.shape[0] * x.shape[1]) >= self.kernel_switch_threshold:
             if self.bits == 2:
                 # Unpack 2bit weights

Extra note: passing kernel_switch_threshold=None to make_quant does NOT fix it.  Only this code change. So there is also another bug, something in between must be forgetting to pass this parameter.

fix it.
probably won't cause any problems


Fixed RStudio Viewer bug on d3tree3 on Windows machine

d3tree3 should work in the RStudio Viewer on a Windows machine now.  Used regex to parse out colors from x.legend string instead of attaching the legend to the DOM and pulling out the attributes.

great, thanks so much.

@lmccusker would you please add yourself as a contributor in DESCRIPTION or let me know what name you would like me to use?  Thanks.

You can use the name Lisa McCusker. Thanks!


bring windowless commands to the lfs package

This brings the Windows-specific improvements from #381 to the lfs package. Specifically for the git-credential and ssh execs.
/cc @bozaro @sinbad

I think you only hit this problem if you use a git.exe other than the standard msys version - I haven't seen this behaviour myself on Windows, I tend to use msys git & plink. If you need me to do some specific testing I can but not for a couple of days (my time for LFS client work is Mon-Wed unless there's something urgent)

Ah, right on. We'll worry about this when it's a problem.

I only see one potential problem: if the console application will try to ask the user any data.
But I think that everything should be fine :)


Need better directions

you have a small set of code that says to add it to the configuration.yaml file but then it has a lot of code after that and does not say where that code needs to be put. Thank you for any assistance you can give.

I agree, my documentation is bad.
Will fix it.

any idea when the info will be updated?
I try to use the integration and editing the configuration file. but to no avail atm

Updated the readme and reworked the integration. Please check again.


Help

[2022.07.03-21.16.21] got region from logs '['na', ['na-1', 'na']]'
[2022.07.03-21.16.21] Api urls: pd_url: 'https://pd.na.a.pvp.net', glz_url: 'https://glz-na-1.na.a.pvp.net'
[2022.07.03-21.16.21] opened lockfile
[2022.07.03-21.16.21] got version from logs 'release-05.00-shipping-11-729462'
[2022.07.03-21.16.21] Traceback (most recent call last):
File "main.py", line 49, in
File "D:\Tools\Val Rank Tool Source\Val Rank Tool Source\src\requests.py", line 33, in check_version
if not rStatus["status_ok"] or rStatus["print_message"]:
KeyError: 'status_ok'

i did download the 2.0 source code

Are you sure? because that specific error will only occur on versions below 2.0


fix: Remove AKS Windows adminUsername and adminPassword pattern

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

This fixes https://github.com/Azure/azure-rest-api-specs/issues/11267
Contribution checklist:

[x] I commit to follow the Breaking Change Policy of “no breaking changes
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[x] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[x] Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

@AbelHu , I removed the pattern from ContainerServiceWindowsProfile for versions < 2019-04-01 and ManagedClusterWindowsProfile for versions >= 2019-04-01

Please also remove the pattern for Windows password in AKS WindowsProfile.

s < 2019-04-01 and ManagedClusterWindowsProfile for versions >= 2019-04-01

The versions you described in the comment do not match your code.

The versions you described in the comment do not match your code.

Could you please elaborate?

/azp run automation - sdk

s < 2019-04-01 and ManagedClusterWindowsProfile for versions >= 2019-04-01

The versions you described in the comment do not match your code.

Misunderstanding. Please ignore it.

/azp run automation - sdk

Description of adminUsername will be presented as:
Specifies the name of the administrator account.

**restriction:** Cannot end in \".\"

**Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\".

**Max-length:** 20 characters)

and description of password will be presented as:
Specifies the password of the administrator account.

**Minimum-length:** 8 characters

**Max-length:** 123 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])

**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"

For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Description of adminUsername will be presented as:
Specifies the name of the administrator account.

**restriction:** Cannot end in \".\"

**Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\".

**Max-length:** 20 characters)

and description of password will be presented as:
Specifies the password of the administrator account.

**Minimum-length:** 8 characters

**Max-length:** 123 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])

**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"

For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Add min length for Windows username; Remove "resetting the password" since it does not impact the value in AKS db so it will be reset to the original value after the VMSS model is updated.

/azp run automation - sdk

/azp run automation - sdk

@mainred Please also create a PR for 2020-11-01: https://github.com/Azure/azure-rest-api-specs/blob/dev-containerservice-Microsoft.ContainerService-2020-11-01/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-11-01/managedClusters.json#L2094-L2105

@xizhamsft , could you please take a look at this PR?
I also have a PR to branch Azure:dev-containerservice-Microsoft.ContainerService-2020-11-01, https://github.com/Azure/azure-rest-api-specs/pull/11312.
Any other suggestions to fix this PR? Like do we need to add a module for 2020-10-01?  Do we need to backport this change anywhere else? Thanks
@fengzhou-msft , we plan to move the validation from the swagger and client side to server side. Could we turn the Swagger BreakingChange to green? Thanks.

@fengzhou-msft There is no any API changes for this PR. We only need to remove wrong pattern validation in the swagger so I think that it should not be a breaking change. Could we release this change as hotfix?


c sharp merging audio video

i try to merge a video merg audio
ffmpeg -i video.mp4 -i audio.mp3 -c copy merged_output.mp4
how can i do it with mediatoolkit c#

I also wanted to do this but I think you have to do it this way:
using (var engine = new Engine()) {     engine.CustomCommand("-i video.mp4 -i audio.mp3 -c copy merged_output.mp4"); }

i can't get custom commands to work


Heatmap number formatting in Continuous Coordinates tutorial

I'm pretty sure the heatmap cells had 2 or 3 digit numbers previously, not what's currently on the website:

Maybe I'm just imagining that, but in any case we probably need to specify a formatter for those values.

Fixed in https://github.com/ioam/holoviews/pull/2122.


help: Fix "Related articles" in the bots section.

Adds or extends the "Related articles" lists that are either missing or incomplete in the following articles:

Bots and integrations
Add a bot or integration
Request an integration
Deactivate or reactivate a bot
Restrict bot creation
View all bots in your organization

Includes links to the new "Edit a bot" article that will be added via PR #22981.

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans.
[x] Automated tests

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Manually tested links

I'll wait to review this until it's been rebased on top of your other PR (just merged) and the CI issues are resolved.

Looks great to me! @timabbott rebased and ready for your review.

Merged, thanks @drrosa!


conda packaging

🗣 Elevator Pitch
There are enough capabilities to merit making this conda installable.
🏃 Motivation
Other projects can start testing the library, but it'd make it easier for them to do that if they could conda install ipyforcegraph.
💡 Design Ideas

Submit a new recipe to conda-forge

I think we need at least minimal robot tests (run notebooks, see no tracebacks, some canvas exists) before confidently shipping. But sure.

Absolutely, and absolute respect for the commitment to code quality.  I know we have 🤖 running the notebooks, but should we make a separate ticket to check the canvas exists and there are no tracebacks?

https://github.com/conda-forge/staged-recipes/pull/21799

:point_up: was merged, but there's a big backlog due to some resource exhaustion issues (CI tokens). hopefully up some time today. we could just go ahead and drop 0.2.0 on pypi.

https://anaconda.org/conda-forge/ipyforcegraph/files?version=0.1.0


HiveApiError

Hi there
I have has custom component on HA on a RPi4 working great for a few years now.
I trigger Hive GU10 bulbs using Shelly i3/i4 and wall switches and HA automations.
I noticed when they stopped working that Hive Integration had 'Failed to Setup'.
After much trial and error I removed/reinstalled/deleted old trusted devices etc and not the latest Hive Custom Component sets up OK.
Devices all add to HA OK and work for about a minute, then they stop working.
The issue seems to be the
raise HiveApiError

apyhiveapi.helper.hive_exceptions.HiveApiError
at the botoom of the LOG below.
Can anyone help please?
Thank you
LOG:
Logger: homeassistant.core
Source: core.py:2781
First occurred: September 29, 2024 at 23:40:58 (72 occurrences)
Last logged: 00:17:58
Error executing service: <ServiceCall light.turn_on (c:01J9013GF20R93TG1RGYCR8G8A): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702>
Error executing service: <ServiceCall light.turn_on (c:01J9014DRK018ZWVEJADDV4X62): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702>
Error executing service: <ServiceCall light.turn_on (c:01J9015B24BWP4ZYK8CB6KP86K): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702>
Error executing service: <ServiceCall light.turn_on (c:01J90168BNS5CCE35THJCN0XCG): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702>
Error executing service: <ServiceCall light.turn_on (c:01J90175N5QKMEFQPPS9SM7GPF): entity_id=['light.cellar_lights'], params=transition=30.0, color_temp=370, color_temp_kelvin=2702>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in _run_service_call_catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 626, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/group/light.py", line 179, in async_turn_on
await self.hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1021, in entity_service_call
raise result from None
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1610, in async_request_call
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 626, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/hive/init.py", line 138, in wrapper
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/hive/light.py", line 82, in async_turn_on
await self.hive.light.turnOn(
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/light.py", line 426, in turnOn
return await self.setColorTemp(device, color_temp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/light.py", line 272, in setColorTemp
resp = await self.session.api.setState(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_async_api.py", line 288, in setState
resp = await self.request("post", url, data=jsc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_async_api.py", line 92, in request
raise HiveApiError
apyhiveapi.helper.hive_exceptions.HiveApiError

Same issue here, except I got a 2FA code on mobile and HA wanted to reconfigure Hive. I added the 2FA code and got the following in logs, and I get this every start up or 'reconfigure'
2024-10-03 09:27:24.496 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry<EMAIL_ADDRESS>for hive
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_auth_async.py", line 548, in refresh_token
    result = await self.loop.run_in_executor(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/botocore/client.py", line 565, in _api_call
    return self._make_api_call(operation_name, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/botocore/client.py", line 1021, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.NotAuthorizedException: An error occurred (NotAuthorizedException) when calling the InitiateAuth operation: Invalid Refresh Token.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hive/__init__.py", line 89, in async_setup_entry
    devices = await hive.session.startSession(hive_config)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/apyhiveapi/session.py", line 502, in startSession
    await self.getDevices("No_ID")
  File "/usr/local/lib/python3.12/site-packages/apyhiveapi/session.py", line 425, in getDevices
    await self.hiveRefreshTokens()
  File "/usr/local/lib/python3.12/site-packages/apyhiveapi/session.py", line 304, in hiveRefreshTokens
    result = await self.auth.refresh_token(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_auth_async.py", line 562, in refresh_token
    raise HiveInvalid2FACode from err
apyhiveapi.helper.hive_exceptions.HiveInvalid2FACode

similar issue here
Log details (ERROR)
Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 15:31:06 (3 occurrences)
Last logged: 15:38:38
Error setting up entry<EMAIL_ADDRESS>for hive
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_auth_async.py", line 548, in refresh_token
result = await self.loop.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/botocore/client.py", line 569, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/botocore/client.py", line 1023, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.NotAuthorizedException: An error occurred (NotAuthorizedException) when calling the InitiateAuth operation: Refresh Token has expired
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hive/init.py", line 89, in async_setup_entry
devices = await hive.session.startSession(hive_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/session.py", line 502, in startSession
await self.getDevices("No_ID")
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/session.py", line 425, in getDevices
await self.hiveRefreshTokens()
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/session.py", line 304, in hiveRefreshTokens
result = await self.auth.refresh_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/apyhiveapi/api/hive_auth_async.py", line 562, in refresh_token
raise HiveInvalid2FACode from err
apyhiveapi.helper.hive_exceptions.HiveInvalid2FACode

anyone have any progress on this issue? Thanks

Bueller?
This is causing me serious problems. I cannot control my lights anymore. Hive has been working perfectly for years. I havent changed anything, just stopped working. Can any one please help?
Standard integration and Custom Component - neither work any more. Unknown error. (api_error)

I just removed this and installed the core version. It has been working fine now for a few weeks. It has new sensors now so this is not really needed.
I needed to adjust all my automations, scripts etc though as the state in this custom component uses uppercase and the core one uses lowercase


Add view for show duration of every branch

Add view for show duration of every branch with follow option :

Branch
Duration
Estimation duration input #3
Estimation percent
Save Button
...

Update :
Add view for show duration of every branch with follow option :

Branch
Duration
Duration percentage
Copy Button
...


DecorativeView

I'm pretty sure this is a dumb question, but is there a way to update/set the label into a decorative view programmatically ?
I didn't find any example about it in the project and I don't understand how I may access to the label in order to change "Revenue" by something else
Thanks in advance

Hey, the question isn’t dumb at all. Unfortunately, there is no way of simply updating  decoration views once they are set. You could try to Invalide/initialize a new collection view layout and assign it to your collection view (this would mean that everything gets redrawn) anytime you want to change the decoration view. But I am not sure if this works properly. Hope this helps.
Best regards
Wojtek

Thanks for you answer, actually I based my solution on : https://stackoverflow.com/a/39218108 .
This isn't very modular but it works in my case where I only need a topLeft decoration.

That looks interesting. Thanks for the hint.


spec: Representability reversed examples (byte, rune)

I think I have found a small problem with the Specs page from the blog.
https://golang.org/ref/spec#Representability
What did you expect to see?

'a'                rune        rune is an alias for int32, and 97 is in the set of 32-bit integers
97                   byte        97 is in the set of byte values

What did you see instead?

'a'                 byte        97 is in the set of byte values
97                  rune        rune is an alias for int32, and 97 is in the set of 32-bit integers

The table is saying that 'a' can be represented by a byte, not that its default representation has byte type.

I understand now, sorry for the confusion.


Graduate react

Fixes #4208

Merged main into 3.0 and rebased this PR on top!

Ah, the gen-wrapper-react failure was legit! Turns out we needed a number of additional changes in gen-wrapper-react

Changes were big enough to want another review please!


Changed server to take an array of uids instead of only one uid

Hi @flepes2,
Could you add some specs please?


Evaluate coverage of transfer syntaxes in IDC against OHIF capabilities

Use BQ first to select representative cases, check coverage of transfer syntaxes in IDC by OHIF Viewer.

Transfer syntaxes encountered in IDC collections (TCIA copy circa Summer 2020), with sample URLs, in the order of frequency of occurrence:

1.2.840.10<IP_ADDRESS> Explicit VR Little Endian sample
1.2.840.10008.1.2  VR Little Endian sample
1.2.840.10<IP_ADDRESS> Explicit VR Big Endian sample
1.2.840.10<IP_ADDRESS>.70 JPEG Lossless, Non-Hierarchical, First-Order Prediction(Process 14 [Selection Value 1]) sample

According to http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_8.7.3.html, "The Implicit VR Little Endian (1.2.840.10008.1.2), and Explicit VR Big Endian (1.2.840.10<IP_ADDRESS> - Retired) Transfer Syntaxes shall not be used with Web Services."

TODO: update this cross-checking with the updated content of IDC.

@igoroctaviano  @fedorov Do you guys have any documentation on this so that I can add it to our docs on what we support?

@sedghi do we have a conformant statement for OHIF?

Do you guys have any documentation on this so that I can add it to our docs on what we support?

@sedghi can you let me know what you mean by "this" in the above?

we recently added the statement
https://docs.ohif.org/conformance


When not on the VPN calling up does not stop when it can't connect to services

$ hc -f .codeship/docker-compose.yml -c .codeship/harbor-compose.yml up
Post https://auth.services.dmtio.net/v1/auth/checktoken: dial tcp <IP_ADDRESS>:443: i/o timeout
Unable to verify token: Post https://auth.services.dmtio.net/v1/auth/checktoken: dial tcp <IP_ADDRESS>:443: i/o timeout
Login with your Argonauts Login ID to run harbor compose commands. If you don't have a Argonauts Login ID, please reach out in slack to the cloud architecture team.
Username:

If auth.services.dmtio.net is unavailable process should end, not continue and ask for Username.

Thanks for reporting this @yungjames.


Increase view file limit

Am using CentOS 7 and any files either doc, docx or xlsx, xls below 1 MB am able to preview, but when its more than 1MB am not able to preview. All I get a message like

This document can't be previewed.
Click here to download it.

What parameter do I need to change in docker-compose.yml file...?
Anyone facing this issue?
Thanks

I get a error in log as below, whenever I try to open a bigger file.
alfresco_1               | 2019-10-17 20:10:06,182  ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-9] Exception from executeScript: 09170004 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js
alfresco_1               | org.springframework.extensions.webscripts.WebScriptException: 09170004 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js

Hello @saigop,
Can you please provide details regarding what docker-compose.yml file are you using (versions of container + project -> deployment/acs-packaging ) ?
The .doc, .docx, .xlsx, .xls and other office documents are usually restricted to a maximum transformation size, you can see all of them in : src/main/resources/alfresco/subsystems/Transformers/default/transformers.properties
The maxSize can be changed for each transformation by specifying the new value in JAVA_OPTS.
Try changing the maxSize value and see if it fixes the problem.


Spanner: fix connection timeout issue.

Fixes #3616

I signed it!

@chingor13, is this ready to be merged?

We have ran into a similar problem with this library and it seems that it blocks on waiting for a valid session to enter the synchronized queue.
There is a waiter that tries to grab an available session from a queue, however when the connection drops it is unable to create a session and enqueue it. This means that the waiter polls indefinitely waiting on a session to take from the queue and use.  Spanner.close() actually poisons the queue by enqueuing an exception. FWIW that is my basic understanding after spending a bit of time debugging this.
DatabaseClientImpl calls getReadSession in SessionPool which "waits" for an available session:
https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPool.java#L882
SessionPool.closeAsync which will put the poison record in the queue:
https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPool.java#L1032
So my thinking is that even if the createSession eventually "fails", then we would still hang waiting on the session queue to be populated with a session.

I will create new pull request from my branch.


Site factory ValidationError on time_zone field

Environment

Nautobot version (Docker tag too if applicable): 1.5.0
Python version: 3.7.15
Database platform, version: Postgres 13
Middleware(s):

Steps to Reproduce

in nbshell:

from nautobot.dcim.factory import SiteFactory
SiteFactory(time_zone="Pacific/Enderbury")

Expected Behavior
Site object is created

Observed Behavior
Exception raised:
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/factory/base.py", line 40, in __call__
    return cls.create(**kwargs)
  File "/usr/local/lib/python3.7/site-packages/factory/base.py", line 528, in create
    return cls._generate(enums.CREATE_STRATEGY, kwargs)
  File "/usr/local/lib/python3.7/site-packages/factory/django.py", line 117, in _generate
    return super()._generate(strategy, params)
  File "/usr/local/lib/python3.7/site-packages/factory/base.py", line 465, in _generate
    return step.build()
  File "/usr/local/lib/python3.7/site-packages/factory/builder.py", line 265, in build
    kwargs=kwargs,
  File "/usr/local/lib/python3.7/site-packages/factory/base.py", line 317, in instantiate
    return self.factory._create(model, *args, **kwargs)
  File "/source/nautobot/core/factory.py", line 15, in _create
    obj.validated_save()
  File "/source/nautobot/core/models/__init__.py", line 51, in validated_save
    self.full_clean()
  File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 1251, in full_clean
    raise ValidationError(errors)
django.core.exceptions.ValidationError: {'time_zone': ["Value <DstTzInfo 'Pacific/Enderbury' -000:00:00 STD> is not a valid choice."]}

It looks like faker uses a static list of timezones and django uses pytz.common_timezones. Maybe this should just be time_zone = factory.Faker("random_element", elements=pytz.common_timezones)

Here's an example seed to to test against that fails with the Asia/Rangoon timezone.  Reference duplicate issue #2835 for the output.
nautobot-server generate_test_data --seed XlOZCyrVO2xvFQNs


Pass down to the index resolver the indices options from the original…

… IndicesRequest.

@rendel thx, I need to review your changes so please stay tuned

Np, thanks
On Fri, Dec 14, 2018 at 7:58 AM Search Guard<EMAIL_ADDRESS>wrote:

@rendel https://github.com/rendel thx, I need to review your changes so
please stay tuned
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/floragunncom/search-guard/pull/608#issuecomment-447233792,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AErp2wigrI8WNGdF-BVXbqL-8e5trEFRks5u40wCgaJpZM4ZO-QJ
.

--
Renaud Delbru
CTO, Founder, Siren
A Avenue Roul 109, CS 40007, Talence CEDEX, Bordeaux 33405, France
E<EMAIL_ADDRESS><EMAIL_ADDRESS>W www.siren.io
http://www.siren.io?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
https://twitter.com/sirensearch?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
https://www.youtube.com/channel/UCKGsC-vD28r7hW6T9QspKPA?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
https://vimeo.com/sirenio?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
https://www.facebook.com/sirensearch?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
https://www.linkedin.com/company/11117365?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
https://www.theinnovationenterprise.com/summits/datax-new-york?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature
Siren
will be present at DataX - NYC (12th & 13th Dec.)Join us
https://www.theinnovationenterprise.com/summits/datax-new-york?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature

Implemented in v24.1 with a feature toggle. Set "searchguard.dynamic.respect_request_indices_options: true" in sg_config.yml to enable indices options from the original request. Warning: This breaks dnfof (do not fail on forbidden)


build: Update tables and PyYaml versions for python > 3.8

Description
When working in python > 3.8 environment, a few dependencies are not available.
This PR allows to work with python >= 3.9 by having a conditional versioning for:

tables
pyyaml

For python 3.8, versions are unchanged.

I didn't know we could do such a thing inside requirements, I thought we add to create specific files for each version, nice 😄
Shouldn't we also update the github workflow main.yaml to run it with different python versions ?

Indeed it would be intesting to run our tests with other python versions.
However the full matrix of [OS*python versions] will take too long to execute for each push.
What we could do is:

keeping only one python version for PR workflows
adding other python versions for merges on develop, or for a nightly workflow


Add an annotation to enable sticky session per backend

There's an open pr, and https://github.com/kubernetes/ingress/blob/master/controllers/nginx/configuration.md#allowed-parameters-in-configuration-configmap, we're lacking a good example, please write one if you have time. If that's not what you're asking for, please elaborate.

I'd like to have something like:
kind: Ingress
metadata:
  annotations:
    **ingress.kubernetes.io/enable-sticky-sessions: "true"**
  name: example
spec:
  rules:
  - host: ingress.ingress.svc.cluster.local
    http:
      paths:
      - backend:
          serviceName: example
          servicePort: 443
        path: /

Which would allow you to specify that a backend uses sticky sessions, in an ingress resource, rather than having it in a ConfigMap for the ingress controller. This would mean that we can re-use the ingress controller for ingress resources with and without sticky sessions enabled.

Yep, that's the pr (https://github.com/kubernetes/ingress/issues/258), please comment on it


Can't find working solution for search_author_custom_url()

def search_author_custom_url(self, url: str):
        """Search by custom URL and return a generator of Author objects
        URL should be of the form '/citation?q=...'"""
        return self.__nav.search_authors(url)

I am unsure to as why this is the requested format or even how to use it.  Google's Scholar Author accounts are listed as https://scholar.google.com/citations?hl=en&user=C_mP-LwAAAAJ
author.py > _CITATIONAUTH is a perfect match for this if I was to provide the user information.
When I try to manually use the requested format, scholars returns only my own profile.
When using in code it finds nothing.
author_search.append("C_mP-LwAAAAJ") #Jessica Hicks
author_search.append("/citations?hl=en&user=G2B4pOEAAAAJ") #Tod Stuber

I have tried these formats as with the full HTML with no luck.  This method would be great as I have a few users who have very common name's and right now I rely on switch to try pull the exact author without having to loop each author and check if it's the right one.  However, if Google ever updates / changes the order, then I am forced to loop one bye one and some have results of 20+.

You are correct, the current implementation of the function is broken.
Author takes the author row to be initialized.
To implement that you would need to expand the Author class to take an author page instead of an author row.
Could you propose a PR for that?

I will have to learn how to do PR's.
However for now:
author.py:
class Author:
    """Returns an object for a single author"""

    def __init__(self, nav, __data, the_id="none"):
        self.nav = nav
        self._filled = set()
        self._sections = {'basics',
                          'indices',
                          'counts',
                          'coauthors',
                          'publications'}

        if isinstance(__data, str):
            self.id = __data
        else:
            if the_id != "none":
                self.id = the_id
                return
            else:
                self.id = re.findall(_CITATIONAUTHRE, __data('a')[0]['href'])[0]

_scholarly.py:
def search_author_custom_url(self, url: str):
        """Search by custom URL and return a generator of Author objects
        URL should be of the form '/citations?hl=en&user={user's 12 character code}'"""
        return self.__nav.search_author_url(url)

_navigator.py:
def search_author_url(self, url: str):
        """Generator that returns Author object"""
        soup = self._get_soup(url)
        while True:
            row = soup.find_all('div', 'gs_scl')
            yield Author(self, row, url[len(url)-12:len(url)])
            break

Usage scholarly.search_author_url(/citations?hl=en&user={user's 12 character code})
Still returned as a object
Output is a little messed up as I didn't fully understand everything.
.email isn't working at all as _find_tag_class_name didn't work and I didn't have time to look into it.
Not the cleanest, but perhaps you can help fill in the gaps.

I am not sure what happened, but the above example is no longer working.  I will have to play with it when I get back.

I think #148 which is merged provides the required functionality here

It is now possible to search for an author using the author_id.


Bug: Traverse Notes not working

I am not totally sure since which version this occurred, since I haven't used traverse notes after I figured out a system for tag notes.
However, with tag notes not working, I tried to switch back, and it seems traverse notes also do not work. :(
I switched to link notes now, with work flawlessly
https://user-images.githubusercontent.com/73286100/148445683-f9c265a1-1399-4ab0-bc95-75818dd08241.mov

@chrisgrieser can you try out 2.22.1 and let me know if this is resolved

Well, it got a bit better, but is still missing about a two thirds of the links somehow 🤔
https://user-images.githubusercontent.com/73286100/148611096-e9297184-38a5-4100-adc6-5e460bd82f7f.mov

@HEmile can you possible help make the traversal algorithm better? the dfsAllPaths function called inside createIndex seems to miss some paths, and I'm not immediately sure how to improve it

I suppose I can take a look. It's a bit hard for me to test though as I don't have a test vault with this set up.

@chrisgrieser Can you possible provide a hierarchy note structure that creates the problem.
Something like:
- [[Parent]]
  - [[a]]
  - [[b]]
    - [[b.1]]

...it will take me at least a working day to create a hierarchy note that properly represents my vault, so I am afraid that I do not have the time to do that :(

More so just to recreate a minimal example where it fails.
But I understand that can also take some time and experimenting

Gonna call this a duplicate of #187


fix PR html stripping

Got the boolean condition on the PR description incorrect.
Closes #6138

Did you know why there is 404? on action run?

I think I have an idea, i'll investigate. At least we know the script runs
now.
On Fri, Aug 11, 2023 at 13:55 Grzegorz Bokota @.***>
wrote:

Did you know why there is 404? on action run?
—
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/pull/6139#issuecomment-1674624276, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACR5T4D2O5ZRYFRDHARABLXUYMTPANCNFSM6AAAAAA3MZFCMM
.

I think it will fail again as this PR modifies the actions script and I think GitHub will only give RO token when a PR modifies a workflow.

Hm. I'm worried that even reopening do not trigger workflow. How did you think? It is caused by editing the trigger part of the workflow file? Should I merge and check how it behaves after merging?

Yes, i think we should merge and iterate: I don't see many other ways.
On Sat, Aug 12, 2023 at 00:52 Grzegorz Bokota @.***>
wrote:

Hm. I'm worried that even reopening do not trigger workflow. How did you
think? It is caused by editing the trigger part of the workflow file?
Should I merge and check how it behaves after merging?
—
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/pull/6139#issuecomment-1675488893, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACR5T7SGFZVKB5FQDODPD3XU2ZUVANCNFSM6AAAAAA3MZFCMM
.
You are receiving this because you were assigned.Message ID:
@.***>

I agree that merging and iterating would probably be best here

@Carreau it looks like trigger is wrong: https://github.com/napari/napari/actions/runs/5853233024

@Carreau it looks like trigger is wrong: https://github.com/napari/napari/actions/runs/5853233024

I think that's because it pulls the action from the base branch ? I've tryed to rebase your see it it triggers ok... Looking into it.

This happens after I merge this PR.

I'm looking into it. It seem that the env variable set on pull_request and pull_request_target are not the same, and GH docs is incorrect wrt to what is in those env varaibles.


psycopg2-binary installation error for python ver. 3.12.2

https://github.com/HumanSignal/label-studio/blob/7951ac3f5e86d490dab5facb29fce24294641ea1/pyproject.toml#L182
This has to be changed to 2.9.9 with poverty.lock packages edit.

Yes, version 2.9.6 is not compatible with Windows, but 2.9.9 is okay.


Add fallback to symlink if hardlink fails

Fixes https://github.com/rust-lang-nursery/rustup.rs/issues/950

@Diggsey Do you think that this is a viable strategy? Do you have any alternative?
I'm running rustc, cargo and rustup in android, now I'm working in the upstream patches.

Looks fine to me - did you have some concerns?

No concerns, just asking.


Bot is not responding🥲

⬆

The bot account is just for demo. :) Heroku will pause free dynos if there's no traffic for some time. If you want to try the demo bot, you can visit this link to re-activate the bot if it's not responding.
BTW, Heroku will stop free plans after Nov 28, so that the bot will be no longer available. I will try to look for some new platform for demo.

The bot account is just for demo. :) Heroku will pause free dynos if there's no traffic for some time. If you want to try the demo bot, you can visit this link to re-activate the bot if it's not responding.
BTW, Heroku will stop free plans after Nov 28, so that the bot will be no longer available. I will try to look for some new platform for demo.

if you find a platform where you can create telegram bots for free can you please let me know? I’m searching for an alternative to heroku rn


Fix bower metadata (missing ignore).

Bower was complaining with:
bower adapter.js#*        invalid-meta adapter.js is missing "ignore" entry in bower.json

@piranna - Is it common to always have a ignore, even if empty?
I was a bit surprised with bower complaining as "invalid-meta" for missing it.

Is it common to always have a ignore, even if empty?

Honestly I'm not sure, I'm not a bower guy, sorry... :-/

I was a bit surprised with bower complaining as "invalid-meta" for missing it.

There are other fields with similar warning messages on bower.json, there are some issues regarding to don't make it so alarmist... ;-) I wouldn't worry about it.

Ok... will not merge then... noticed most polymer and paper bower packages complaing on a lot of missing "Recommended" (but not required fields).. such as main, ignore list, etc...


Battery widget broken on M1 Max Monterey

Hey @Jean-Tinland , thanks for the hard work getting this to work with yabai v4.0. Everything works great!
I did notice the battery widget seems busted. It keeps spinning and doesn't show any data:

Logs show:

Seems to be coming from battery.jsx line 43.
I ran the pmset commands manually, and they worked fine:
$ pmset -g batt | egrep '([0-9]+%).*' -o --colour=auto | cut -f1 -d'%'"
100

I looked at Utils.getSystem and it's present in lib/utils.js on d5c5c3c .
Not sure what's going on here, as JSX isn't my strong point.
Any thoughts? This is running d5c5c3c, with no changes by me.

Thanks!
This is weird indeed. Have you completely restarted Übersicht?
You could try to remove your simple-bar directory and re clone it (settings are stored in Übersicht so you won't loose anything).
Let me know if this is solving your issue.

Hey,
I restarted Übersicht and it solved the problem. Should have tried that
first :)
Thanks!
Ivan Smirnov
https://ivans.io/ | https://blog.ivansmirnov.name/
https://www.linkedin.com/in/ismirnov |
https://ivansmirnov.name/ https://ivansmirnov.name/
https://github.com/issmirnov https://ivansmirnov.name/
On Thu, Nov 25, 2021 at 1:22 AM Jean Tinland @.***>
wrote:

Thanks!
This is weird indeed. Have you completely restarted Übersicht?
You could try to remove your simple-bar directory and re clone it
(settings are stored in Übersicht so you won't loose anything).
Let me know if this is solving your issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Jean-Tinland/simple-bar/issues/258#issuecomment-978941173,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABMBCXYQE3QNH363L6HOJMTUNXW57ANCNFSM5IW5JAYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

After massive changes Übersicht has sometimes some trouble realoding everithing perfectly. It is safer to restart Übesicht after each simple-bar's update. :)


TODO

[ ] yaml config
[ ] routing support http and https
[ ] Auth
[ ] AntiBot
[ ] Rate Limit
[ ] monitoring
[ ] Access Log
[ ] Capturing and replaying live HTTP traffic into a test environment
[ ] fault-tolerant (Circuit Breaker Patten)
[ ] fallback

[ ] Router to etcd/consul interface


Remove unused variables

Coverage remained the same at 52.381% when pulling 1379e19f1654b6f765ad8b1d11e369518eb5cda2 on develop into 13caf92e0e6360bdc0e5da0ec9d093fff012262e on master.


Thrift.csproj: Stop writing AssemblyAttributes.cs to /tmp

The netstd build writes so-called TargetFrameworkMonikerAssemblyAttributes files to /tmp. These files can be left behind, and they do not feature a build-specific or user-specific name. This can be a problem in a multi-user environment, because the files block future builds by other users (that can not overwrite the files).
This PR adds a workaround by placing the files into the build directory rather than the /tmp directory. There should be no negative effects, other than a new, extra line in the Thrift.csproj settings.

[ ] Did you create an Apache Jira ticket?  (not required for trivial changes)
[ ] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
[x] Did you squash your changes to a single commit?  (not required, but preferred)
[x] Did you do your best to avoid breaking changes?  If one was needed, did you label the Jira ticket with "Breaking-Change"?
[x] If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

Could you force-push?


feat(eth-watch): process governor upgrades

What ❔
With boojum upgrades will go through governor. PR adds functionality to process such upgrades while leaving old processor as well.
Why ❔
Prepare for boojum upgrade
Checklist

[x] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[x] Documentation comments have been added / updated.
[x] Code has been formatted via zk fmt and zk lint.

🤜👍🤝


Add Keystore component

The keys scheme will be provided by the node and should be responsible
for the messages validity.
With the introduction of Keystore, (Key, ValidatorId) are
deprecated.
The mock implementation is moving closer to the fuel infrastructure, so
it uses fuel-crypto and fuel-types.

Blocked by https://github.com/FuelLabs/fuel-crypto/pull/2

Blocked by https://github.com/FuelLabs/fuel-types/pull/24

Superseded by https://github.com/FuelLabs/fuel-bft/pull/9