Add a "default" Hugo theme

Hugo needs a very simple, plain default theme that is updated along with each Hugo release to be a canonical example of a theme.  It would also make Hugo operational out of the box, which it is not now.
When you install Hugo it cheekily walks you through setting up a site and adding content and then it doesn't work because you need to add a theme.  So you go searching for a theme - this takes far too long because the themes that exist are not sortable or searchable for what version of Hugo they apply to and you don't know if they will work or not.  So you spend far too much time futzing with this just to get pages to build.
One the other hand, if you have a working base site a known good default theme now you can go futz around with what theme you like and try to get them working.
Just my view but hopefully some of you agree with me out there.  😄

I agree, and from my standpoint having a default theme probably helps with writing documentation for beginners too.

+1 from me.

@magikstm, please use the reactions feature on the initial post instead of add +1 comments.

Thanks @moorereason . I Didn't know about this feature. I removed my comment.

@bep @moorereason @digitalcraftsman
I'd be happy to take a stab at this, but is this something the maintainers are interested in?

@sethmacleod That would be great. There are two issues in this one:

Create a default theme
Make that theme available via the command line hugo -theme default (or something)

If you could start with a sketch of 1) we can tackle the other issue later. I'm not sure where to put such a theme ...
@digitalcraftsman may have some valid input about that and what such a theme should contain.

Hi, wouldn't it be enough or easier to simply create a default theme and update it along with hugo, and then simply install as with other themes, only that this one is always up to date with the latest functionality. I don't see why this should be bundled with hugo. Others don't really have this option either or?!

@pixxx the problem with "install as with other themes" is that we currently have no simple way of "installing a theme" -- it is a git clone into themes thing. I'm not saying we should bundle it, but we should (eventually):

Get some kind way of pointing to remote themes and just get them automatic
Add some "special" command option for the default theme

So, whatever we do, you should be able to download one binary and then.
hugo --someFlagForDefaultTheme

@bep that of course would be a nice option, I can understand the demand indeed, the way you explained it. Guess I like Hugo so much so that I can live with git clone way longer than other issues. Plus in the end it's all about learning go and making my own themes for me. Other themes which aren't that many, are mainly a great resource to learn from in my case, what's way more important to me is that the documentation is always up to date.

@digitalcraftsman may have some valid input about that and what such a theme should contain.

@dstroot suggested a dead simple theme. It would be good if we could define the kind of theme and its scope:

should it be more focused on blogging or rather more general purpose?

As aforementioned we've to compile a list of features as well. They shouldn't be to complicated and be relevant for the majority of users. Here are my two cents of what we should highlight:

the creation of content

url management
taxonomies

the template system (structure + directory layout)
asset handling (CSS, JS etc) + linking them
menus
basic i18n
basic settings in config file

@rdwatters this sounds like a great candidate for the revamp of the quickstart guide.

the problem with "install as with other themes" is that we currently have no simple way of "installing a theme" -- it is a git clone into themes thing. I'm not saying we should bundle it, but we should (eventually)

I already suggested in #505 that we could create a repository for the default theme. Via a special command we could download the theme as zip file, extract the theme and start the built-in server.
By adding tags in Git we're also able to download the version of the theme that corresponds with Hugo 0.xx.

@dstroot suggested a dead simple theme. It would be good if we could define the kind of theme and its scope:

should it be more focused on blogging or rather more general purpose?

@digitalcraftsman Couldn't it do both? For example, something like how Davide Petilli is set up?
Regarding features, I like what you've listed so far. Some of my thoughts:

use examples of shortcodes, both built-in and custom
fairly robust templating for a blog portion, e.g. taxonomies, archetypes, ordering, next/prev, etc.
commenting explaining how things work
sane defaults for partials

I agree that the theme doesn't need to be complex, but it should have enough for newbies to be able to learn from it as well as be a good boilerplate for people who want to get a website up quickly.

Couldn't it do both? For example, something like how Davide Petilli is set up?

The website looks nice and has a common structure. I'm not sure where we should draw the line between "newbie"-friendly and (complex?) real world example. The theme should act more as a tutorial rather than beeing yet another theme. It would be great to hear a few more voices.
You made some good additions to the list :+1:

The learning aspect of it is important.
But I think a surprising amount will actually use this for their web site, so it has to look good, and have some built-in flexibility ...

Color scheme choice
i18n support
etc.

Many people want a "cone click" web site that looks good.
So I would suggest that you start out by forking a good starting point.

Add some "special" command option for the default theme
👍 👍 👍

Whatever happens, having a theme installed by default is actually a really annoying feature. (Jekyll used to do this, I believe, and then you had to run a flag to run it without the theme.) I agree with @bep that it should be the opposite.

@rdwatters this sounds like a great candidate for the revamp of the quickstart guide.

Agreed! The default and quick start should be inseparably wedded:
hugo new site mysite -t qs
hugo new site mysite -t default (per Bjorn)

Or whatever...

updated along with each Hugo release to be a canonical example of a theme

Maybe. I think it's more important for it to be an example of how Hugo works in general, but I think we are saying the same thing.

Should it be more focused on blogging or rather more general purpose?

It should be a blog. "General purpose" is too much to tackle for a default theme. I don't think Hugo should ever be promoted as a "blogging tool"—that's a hard impression to undo—. However, a blog theme is best because it's the simplest IA for a new user to grok; i.e., posts, pages, tags, categories, homepage, comments, etc...
Even the most non-technical user understands these concepts. Plus, it's got enough to it to demonstrate the overarching concepts and can be updated along with the docs with each new major version of Hugo 😄 .
Notes on New Quick Start
I'm not hijacking this thread; I just think the the QS and default theme are inseparably wedded.
Here's some of my notes:

The current quick start is not quick. It tries to do too much. This isn't an insult. Shekhar did a great job, but it wasn't created as a Quick Start in the first place.
A bookshelf is too specific a use case.
Remove all git tutorial info. `git, basic command line usage, and comfort with a text editor are now "assumptions."
Delete the deployment step altogether

This is now it's own section within the docs
Hugo sites are deployable anywhere, so why promote one hosting solution?
How many new users want to deploy a default quick-start theme 15 minutes into using a tool?

If it takes the end user more than 20 minutes end to end to finish the QS with a project like Hugo, it's time to trim the fat

I agree it should focus on concepts, but it should not go in depth. That's what the actual documentation is for. The current QS has a detailed explanation of directory structure, which is not off-putting to new users, duplicative of other areas of the site, and therefore screws with doc search and is less maintainable. (Plus, I think some of it is just flat-out out of date.)
IMHO, a new Quick Start with the default theme has two purposes:
A. Demonstrate convenience in getting up and running
B. Introduce end users to the mental model of the tool, including sexy features
So here's the "curriculum":

Project directory structure (including static, content, layout)
Content front matter, shortcodes (Hugo built-ins or those that ship with the theme), archetypes, taxonomies
Templates lookup, blocks, lists/single, partials
Themes customization (overrides)
Next steps points users to deployments, installing additional themes, creating their own shortcodes, templating, yada, yada, yada.

The theme can/should have many of these built in so the end user can explore and see the mechanics of how things work.
As an aside, the new docs have copyable/downloadable code blocks, which will make it much easier to demonstrate concepts that seem to be confusing; e.g., partials/context and overriding themes.

I'm not saying we should bundle it...

@bep  So hear me out on this, but an easier way to keep a QS and default theme in sync would be to use a readFile shortcode in the QS body copy that reads from the default theme's directories and outputs the code blocks. In other words, a theme that would be bundled with Hugo the way that the docs are bundled. Then it's just a matter of keeping the surrounding text up to date surrounding each of the code blocks. Of course, that means treating it like, er, an internal template...and not really teaching people of git cloning the other themes...so it has obvious drawbacks.
I'm just wondering if you have any clever ideas on how these two might best be synchronized...

I'm just wondering if you have any clever ideas on how these two might best be synchronized...

Two options:

Have talked about hugo get some time ago, i.e. addressable external resources (put the full path to the theme in your config.toml and we'll pull it for you into your HUGOPATH).
Embed it into the binary (i.e. no readFile shortcodes mumbo jumbo), and write it to the user's disk on demand.

Embed it into the binary (i.e. no readFile shortcodes mumbo jumbo), and write it to the user's disk on demand.

Even better. As long as it updates the docs accordingly and means doc contributors/editors don't have to copy and paste, I'm all for it. 😄

What are people's thoughts on frameworks? Remain framework agnostic? Bootstrap v3 won't be supported soon, but v4 is still in alpha. Use HTML5 Boilerplate?

@sethmacleod I'm not a fan...at all, but for this use case they make perfect sense since there will be inevitable handoffs. That said, rather than build something new, maybe it's best to get some insight from @digitalcraftsman about the most popular blog theme currently for Hugo, fork it, and just update it to make sure it meets all the above requirements discussed on this thread?
One thing I would suggest would be something typography focused without a ton of images...since the latter is a) harder to sorta genericize and b) dealing with an asset that isn't exactly Hugo's strength (i.e., images)....

@sethmacleod same for me, I don't care for frameworks, guess the whole point is having something very basic and being able to add a framework and/or preprocessor if wanted. More of a scaffolding with all the bells and whistles Hugo offers, so that you can start something great with ease. I think that would make a lot of people happy.

I'd like to offer help in customising a theme or creating a new default theme.
As for frameworks and pre-processors: I would not include a framework and would not use a pre-processors. AFAIK most pre-processors require Ruby or NodeJS, so a third-party dependency written in a different language which means users who want to build on the default theme need to install additional software. Frameworks are nice to get a headstart but they bloat the codebase and we need to keep them in sync/update the theme with each new release.
Something minimalist that shows different Hugo features like shortcodes or partials and generally educates about the layout system would be more valuable IMO.
Anyway, if help is wanted I'm happy to offer some of my time. :)

I agree with @kevingimbel re: frameworks and pre/post-processors.
I'd like to suggest, for CSS, Tachyons. It's "atomic/functional, etc. CSS" - I only suggest it because it's easy for people to walk into a manipulate a design without running an asset pipeline, and it's about 15kb gzipped. I've got a work in progress theme using it (and am using it production on Hugo sites) and happy to collaborate with anyone on this.
As has been pointed out, seems like including a theme with Hugo New Site may not be the best approach, but would certainly be good to have an official/canonical theme that takes advantage of Hugo features, exhibits best practices generally, and is a model for code examples. I think @rdwatters might agree.
In the theme I'm developing we're using a subset of the Wordpress Unit Tests content and expect it to be fully valid across a variety of criteria. Again, happy to participate, though I don't want to muddy things if there are already a lot of people on it.

I like the idea of creating a good boilerplate theme that people can build upon, and it might be easiest to do that with no framework or preprocessor and to start a new theme. There may already be a suitable existing theme, but a lot of the current themes are ports from other well know projects. It might be good to have a distinct theme that people can recognize as Hugo's.

As this default theme should share the versioning of the main project, how about put it into
https://github.com/spf13/hugo/tree/master/examples/theme
We'll figure out how to best distribute it later, but this way we at least should ba able to keep it up to date.

I think @rdwatters might agree.

@budparr I do.
@bep I can submit a PR with basic scaffolding to show the concepts. All are welcome to hack on it and make it pretty :smile:
Are you thinking
A) A standalone site (i.e., with all the layout, content, static, etc at project root theme) or
B) A theme from the beginning (i.e., everything in theme/themes/hugodefault and a single content folder at project root)?
This is easy enough to change down the road, but I ask this in light of your previous ideas re embedding it into the binary.

@rdwatters look at the issue title.

If we can keep it small, we can just embed it into the Hugo binary with go-bindata.

So, do people have a preference for an forking an existing theme -- and if so, which one -- or creating a new theme?
Just to reiterate, many of the existing themes are ports from other well known projects. I would prefer a theme that is distinctly Hugo's.

I don't mean to spam, so let me know if this should be discussed elsewhere:
@rdwatters I like what you've done with your Hugo Starter Kit and Hugo Theme Starter. The layouts make a lot of sense and I think would be good for standardization.

@rdwatters I like what you've done with your Hugo Starter Kit and Hugo Theme Starter. The layouts make a lot of sense and I think would be good for standardization.

@sethmacleod Sorry for the delayed response. Thanks, but I'll have to review what I put in those "starters" since it's been a minute. I think it's best we decide on which Hugo features the theme should showcase and also which to include in the quick start. I appreciate you getting the ball rolling on this...

Wading in late but I just found this thread because I'm porting an old non-Hugo template and I'm finding the lack of canonical examples frustrating due to my learning style being examples/convention/source vs. docs/forums/blogs.
I'd part with a good amount of whiskey for a Hugo template that was framework free, provided clear and current real-world best-practices, prioritized theming and usability over UI because face it, there are thousands of great UIs out there yet there isn't a single Hugo blog theme that covers all of a basic blog's features that is in sync with the development of Hugo.
I'm looking forward to where this thread goes and I'll be watching hugo-default-theme to get inspired.
I'm also hoping this adds some structure and convention to how param config keys are organized. Seems every theme I clone has config keys under different sections.

Also, per @bep suggestion, might be best to keep this in said folder/dir....

Ah, I've moved my work to https://github.com/sethmacleod/hugo/tree/hugo-default-theme/examples/theme. At what point should I create a PR for a WIP?
Here are lists of features and standards to discuss:
Features

[ ] basic settings in config file
[ ] basic i18n
[ ] menus
[ ] blog

[ ] taxonomies
[ ] archetypes
[ ] next/prev
[ ] tag cloud
[ ] comments

[ ] shortcodes (built-in and custom)
[ ] color scheme choice
[ ] code commenting for newbies

Standards
The default theme should set good standards for theme creators. It should be easy for users to switch between themes. Users should not have to make extensive changes to front matter, configuration files, or templates in order to switch themes.

How to write a theme README
config.toml

no trailing slash for baseurl

the trailing slash causes issues with .LanguagePrefix
paths should have slashes between each part, e.g. {{ .Site.BaseURL }}/css/style.css instead of {{ .Site.BaseURL }}css/style.css

Multilingual ready, so have both languageCode and defaultContentLanguage
emojify set?
google analytics set?

site structure

themes should use baseof.html, even simple themes as this will make it easier for people to modify themes
head partials

complex head partials should have subdirectories, partials/head/foo-bar
styles, seo, rss, etc. -- if there are a lot, they can each get their own partial, e.g. partials/head/metadata-rss.html

archetypes

default, post, and page all with sane front matter -- can make switching themes easier

data

show how to use data with a relevant example

static

image paths should be standardized to make switching themes easier
anything else that should be standardized to make switching themes easier?

shortcodes

are there any that should be standardized that aren't built-in?

Multilingual

keep a database of translated common strings people can use?
use absLangURL and relLangURL in templates instead of absURL and relURL

I really like that you've laid out some standards. For reference, Ben Balter did something like this with a "Jekyll Style Guide" a while back. Seems like that would be a good thing to publish for theme designers, aside from this theme.

Agree about the standard being a good thing, but we have to do some proper QA so it makes sense. One example from the above:
no trailing slash for baseurl
the trailing slash causes issues with .LanguagePrefix
paths should have slashes between each part, e.g. {{ .Site.BaseURL }}/css/style.css instead of {{ .Site.BaseURL }}css/style.css

If there is an issue with/without trailing slash in Hugo, it is a bug and we should fix that in one place an not in 100s of themes.
Same with  {{ .Site.BaseURL }}/css/style.css -- much better to use  {{ "css/style.css" | absURL }}

If there is an issue with/without trailing slash in Hugo, it is a bug and we should fix that in one place an not in 100s of themes.
Also I see very few reasons to use LanguagePrefix (use relLangURL etc.)

What I'm thinking of is probably a rare use case, so I assumed LanguagePrefix was working as intended. One of the themes I ported, Dimension, runs into issues with the built-in sitemap.xml. In order to make it work, I changed the <loc> to this:
<loc>{{ $baseURL }}{{ .LanguagePrefix }}/#{{ .File.TranslationBaseName }}</loc>{{ if not .Lastmod.IsZero }}

It appears that LanguagePrefix has a leading slash, which means that if we have a trailing slash in the baseurl, we get a result of example.com//de/#foo. I figured the leading slash is intentional.
There might be a better way than what I did?

Same with {{ .Site.BaseURL }}/css/style.css -- much better to use {{ "css/style.css" | absURL }}

Right, it was the first example that I thought of. I actually used {{ "css/style.css" | relURL }} in the head.html.
I don't actually have strong feelings about the trailing slash on the baseurl. I guess what we should consider are:

IP addresses: <IP_ADDRESS> vs <IP_ADDRESS>/
subdirectories: foo vs foo/
root: example.com vs example.com/

As an example, the theme Beautiful Hugo uses no trailing slash in the baseurl and does "{{ .Site.BaseURL }}/css/main.css" in the head. I think it would make it easier for people to switch themes if we pick one as a standard. Hopefully that will minimize links breaking when people swap themes.

@sethmacleod If you want to take the reins on this and start building out what you think would be a good default theme, I say have at it. We continue to tackle the best practices as part of the code review piece while you build it out. @bep has a good point about baseURL since it's been a common source of consternation among forum users.
If you're willing to take this on, I can work in tandem on a new Quick Start, which is the last big piece of content I need to tackle with the new docs. @budparr is already doing a super-wicked-awesome job handling the homepage design and a potential new news/blog site for Hugo.

@rdwatters That sounds good to me. I'll hack away at it over the next few days and I'll let you guys know when I've made enough progress where it's worth your time to start reviewing.
I plan to incorporate code examples from your docs, and I'll make notes where I've done things differently -- it may make sense for both to use similar code. I'll also be reviewing others' themes and make notes on what we should review for standardization.
I'll do the html templating first before the styling. I would like the styling to be influenced by what @budparr designs, as I think that would help create a distinctly Hugo theme.

Making any headway on this @sethmacleod ?

Thought I'd jump in here. I'm about 90% through creating a default theme. Within the next couple of days I'll through it out to the community for vetting.

Any update on this budparr?

Here's the theme I developed: http://themes.gohugo.io/gohugo-theme-ananke/
I personally don't think that particular theme should be the "default" theme, because it probably includes too much (features/design opinions), but I believe it's pretty close. It's been in the wild for a while now, and I think the next move will be to make a pared down version of it for the default.

The absence of a default theme is a non-starter for many newcomers. I would expect something to happen in the browser if I do hugo new site and then hugo server, with no further configuration.

I'm very new to Hugo, and finding good and easy to install themes has been a key element in deciding to pick Hugo over Jekyll or Python based alternatives.
Unfortunately, the theme I picked (Hugo Future Imperfect) still works, but start to show its age (no support for image bundle, and the way pictures are handled break some basic features (eg : Twitter cards don't show pictures, etc...). It also lacks things like AMP support, etc...
I am therefore set to update the theme to match recent updates, but not having a reference theme will make this harder.

I risk adding to the chorus of "Me too!" by comenting, but I happened across this issue whilst doing something else theme-creation-related and wanted to share my tuppence.
Having Hugo ship with a simple, well-documented reference theme (with no minification or other optimisation) would be an absolute boon for those of us developing our own websites around Hugo. I would also like to see a more advanced reference theme available which takes advantage of some of Hugo's more advanced features - The documentation is pretty good, but having the code in your hands is exceptionally useful for helping understand the documentation.

I agree that a simple, styling kept to a minimum, HTML to a minimum, complexity - default theme that shows off core features and best practices that gives the new Hugo user a base to run with - would be a terrific advancement. There were great suggestions up thread as to minimum functionality that will also no doubt will help reduce questions from new users too.
What about including the "example" (rather than "default") theme scaffolding directly inside the Hugo binary and add a new capability to hugo gen? The how to could be as simple as:

Download the binary
Run hugo gen scaffold
Run hugo gen chromastyles
hugo server

This would avoid all issues with git, operating system differences, user capabilities, etc.
I'm happy to help in any way I can.

Just started exploring Hugo (and ox-hugo) and I agree 100% that there
should be some kind of theme which is bundled with Hugo.
One of the issues for me is finding a theme that I feel is trusted.
What is the status of this request?


Use more than 60 characters in the description

This PR increases the pub.dev score by 10 points and increments the version.

POWEEEER!!!


Run A/B tests with minimal environments

Run A/B tests with just dask, distributed, coiled, and s3fs in the environment file
Tested with A/B recipes:

dask, distributed, coiled, s3fs
dask, distributed, coiled, s3fs, xarray
dask, distributed, coiled, s3fs, xarray, cftime, zarr
dask, distributed, coiled, s3fs, xgboost, dask-ml, optuna
dask, distributed, coiled, s3fs, scipy

Ready for review


Supported Kernel versions for Oracle Linux 7.4

Please specify the Oracle Linux Kernel version which supports Accelerated Networking. As current UEK4 doesn't support virtual functions.

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

ID: f89338c0-968d-c22f-5b0d-ed3870ebc2fa
Version Independent ID: 6daae1cc-f758-1d37-9de3-80a2832c08ef
Content: Create an Azure virtual machine with Accelerated Networking
Content Source: articles/virtual-network/create-vm-accelerated-networking-cli.md
Service: virtual-network
GitHub Login: @gsilva5
Microsoft Alias: gsilva

@arunkp89 current supported Linux versions are listed Here. Does this answer your question, or is further clarification needed in the document?

@TravisCragg. Oracle Linux 7.4 comes with UEK4 (4.1.12-124.14.1.el7uek.x86_64 ) for the current Market Place images but UEK4 doesn't seem to support virtual functions for Accelerated NIC. It would be great if you could specify the kernel versions for Oracle Linux 7.4 like to use RHCK 3.10.0-514.6.1.el7+ or UEK5 4.1.12-124.14.1.el7uek.x86_64 and above kernels.

@arunkp89 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-cli#supported-operating-systems  - mentions Oracle 7.4 as supported, without mentioning for which kernel version (consider UEK and RHCK).
More, on https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-cli#confirm-that-accelerated-networking-is-enabled  the Oracle is missing completely from the checks. Also, in this same link, the sample output of "uname -r" for RHEL and Centos. Should be "3.10.0-693.11.6.el7.x86_64" or similar for both RHEL and CentOS.

It has been months since this issue has been reported.
A customer ran into some issues, it could have been avoided would the documentation have been updated in timely manner.

docs have been updated: https://github.com/MicrosoftDocs/azure-docs-pr/pull/71563


Public tracks of other users are shown automatically when a user first starts to annotate a video

This bug appears again in the merged version. Steps to reproduce it:

In a series there is at least one video. In this video, a user A has created at least one annotation and set his track to "Shared with all".
User B opens this video in the annotation tool.
User A's track is automatically displayed to User B. > that is the error.
User B reloads the browser.
User A's track is no longer displayed automatically, but can be shown via "Manage tracks". > This is the desired behavior.

Translated with www.DeepL.com/Translator (free version)

It now works as expected. Thx for the fix!


Two new options: security fixes

Description
Two new options: security fixes
Fixes #168
Type of change

Configuration update

Testing steps
N/A
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report
Base: 89.43% // Head: 89.43% // No change to project coverage :thumbsup:

Coverage data is based on head (f378bd4) compared to base (43f8e26).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #170   +/-   ##
=======================================
  Coverage   89.43%   89.43%
=======================================
  Files          14       14
  Lines         388      388
=======================================
  Hits          347      347
  Misses         31       31
  Partials       10       10

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


With regard to D_S_I_G_.py: Dummy DSIG does not decompile anymore

TTX is not able to decompile my dummy signatures anymore. I have a few fonts, into which I had merged the following "decompiled" dummy DSIG:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ttFont sfntVersion="OTTO" ttLibVersion="2.2">
		<DSIG>
			<hexdata>
44756D6D79
			</hexdata>
		</DSIG>
</ttFont>

44756D6D79 is the hex code for "Dummy". If I open a font file with the dummy signature in a text editor, the text "Dummy" is displayed near to the bottom of the file.
Now I have to merge the following code into a font instead, if I want to create a comparable dummy signature. "RHVtbXk=" is the base64 code for "Dummy".
<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="OTTO" ttLibVersion="3.0">
  <DSIG>
    <tableHeader flag="0x1" numSigs="1" version="1"/>
    <SignatureRecord format="1">
RHVtbXk=
    </SignatureRecord>
  </DSIG>

</ttFont>

Because I would like to avoid decompiling problems with my dummy signature in future versions of TTX/D_S_I_G_.py, I would like to know, if my new code is the best solution for adding a dummy signature.

@Arno-Enslin Yes. A while (several years, pre-GitHub font tools, possibly in this commit, https://github.com/fonttools/fonttools/commit/91bca4244286fb519c93fe92329da96b0e6f32ee, but I remember it changing earlier than this) the format for de-complied DSIGs changed to your second example. Things shifted from being a dumb hex dump of the table (what TTX does with tables it doesn't know about) to a smarter representation of it.

Thank you.
If I set raw="True" in the DSIG-Tag, TTX adds the hexdata dummy signature to the font file. I have to do more tests. Just for interest.

Hi Arno,
in your first xml snippet, the DSIG table hexdata is incomplete, because it lacks required structures like the header, number of signatures, etc.
Note that the dummy DSIG table can also be empty (i.e. containing no actual signature records), as it's just the mere presence of a DSIG table in a font which makes Windows and other MS application treat a .ttf file as an OpenType font rather than a plain TrueType font.
import sys
from fontTools.ttLib import TTFont, newTable

def add_empty_DSIG(font):
    if 'DSIG' in font:
        del font['DSIG']
    dsig = newTable('DSIG')
    dsig.ulVersion = 1
    dsig.usFlag = 0
    dsig.usNumSigs = 0
    dsig.signatureRecords = []
    font['DSIG'] = dsig

def main():
    fontfile = sys.argv[1]
    font = TTFont(fontfile)
    add_empty_DSIG(font)
    font.save(fontfile)

if __name__ == "__main__":
    main()

That's how an empty DSIG table looks like in TTX:
<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.1">

  <DSIG>
    <!-- note that the Digital Signature will be invalid after recompilation! -->
    <tableHeader flag="0x0" numSigs="0" version="1"/>
  </DSIG>

</ttFont>

Well, it should not be empty. With regard to your Python script: How can I put the text "Dummy" into SignatureRecord with the help of that script? It would be better to do this with a Python script like yours, because then I had not to care about the attributes of the ttFont tag. In the past I had used batch scripts, which created decompiled dummy DSIG-tables and merged them into the fonts. But your solution with the Python script is better, because it cares about the sfntVersion and the ttLibVersion.

as I said, it's better empty than an invalid PKCS7 structure, but if you really want to, here's how to do it:
import sys
from fontTools.misc import sstruct
from fontTools.ttLib import TTFont, newTable, getTableModule

def add_dummy_DSIG(font, data=b"dummy"):
    if 'DSIG' in font:
        del font['DSIG']
    dsig = newTable('DSIG')
    dsig.ulVersion = 1
    dsig.usFlag = 1
    dsig.usNumSigs = 1
    sigrec = getTableModule('DSIG').SignatureRecord()
    sigrec.ulFormat = 1
    sigrec.pkcs7 = data
    sigrec.cbSignature = len(sigrec.pkcs7)
    sigblock_length = sstruct.calcsize(
            getTableModule('DSIG').DSIG_SignatureBlockFormat)
    sigrec.ulLength = sigrec.cbSignature + sigblock_length
    header_length = sstruct.calcsize(
        getTableModule('DSIG').DSIG_HeaderFormat)
    record_length = sstruct.calcsize(
        getTableModule('DSIG').DSIG_SignatureFormat)
    sigrec.ulOffset = header_length + dsig.usNumSigs * record_length
    sigrec.usReserved2 = sigrec.usReserved1 = 0
    dsig.signatureRecords = [sigrec]
    font['DSIG'] = dsig

def main():
    fontfile = sys.argv[1]
    font = TTFont(fontfile)
    add_dummy_DSIG(font)
    font.save(fontfile)

if __name__ == "__main__":
    main()

and in TTX:

<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.1">

  <DSIG>
    <!-- note that the Digital Signature will be invalid after recompilation! -->
    <tableHeader flag="0x1" numSigs="1" version="1"/>
    <SignatureRecord format="1">
-----BEGIN PKCS7-----
ZHVtbXk=
-----END PKCS7-----
    </SignatureRecord>
  </DSIG>

</ttFont>

Thank you!

as I said, it's better empty than an invalid PKCS7 structure

Okay. But I primary wanted to avoid compiling/decompiling problems with TTX. Now only the PKCS7 structure is invalid. With my origin code, with the help of which I had merged hexdata into the fonts, tableHeader and SignatureRedord were completely missing. But I will consider to spare the dummy text in future. (I only wanted to have it, because I directly can see it at the bottom of a font file, if I open it in a text editor.)


Fix Visible Contributor Swap Bug and ContribManager.js TODOS

 Purpose
This PR addresses a few problems in ContribManager
A. It fixes issue #3765 which creates an unwarranted error when the first and only contributor swaps only visible contributor status with another contributor, I included some screenshots to illustrate this better.

B. This makes self.userIsAdmin no longer an observable in accordance with TODO
C. Removes unnecessary self.currentUserCanEdit in accordance with TODO.
D. Unsaved changes error now uses growlbox in accordance with TODO.
E. Stops 'Must have at least one bibliographic contributor' messages from piling up. Pictured below:

 Changes
A. Fixes check in model.py set_visible
B. Simple fix, it just doesn't need to be observable.
C. Simple fix, this check done with $.inArray('admin', pageOwner.permissions) !== -1; instead of passing it as a parameter.
D. Now uses $osf.growl
E. Simple fix, clears message observable
 Side Effects
None that I know of.

I'm closing this a braking this down into smaller PR's so it will be easier to organize.


Add migration training

A lot of the training actually ended up in https://github.com/collective/collective.exportimport#faq-tips-and-tricks as code-examples where I think it has a better chance of being kept up to date


User can see invalid fields while adding or editing an entity

[ ] User can see tabs with incomplete/incorrect entries while adding or editing
[ ] Tests are implemented
[ ] Documentation is written

Changed story as implementing a tab highlight is more trouble than it is worth. Simply telling the user which fields are incorrect is already 95% of the way there (I assume most editors would be familiar with what tab contains the Country field for a locality, for example)

[ ] #613
[ ] #614

Test results:

[x] OK: User can see invalid fields while adding or editing an entity
[x] Possibly OK: Tests are implemented
[x] Possibly OK: Documentation is written (Where?)

docs


Fix linter error wrapping key should be %w not %v

I have no idea how come this went into origin/main passing the CI green.....

Signed-off-by: Chmouel Boudjnah<EMAIL_ADDRESS>

nevermind this was fixed in main by @savita


MEMBERSHIP: piotr1215

GitHub Username
@piotr1215
Requirements

[x] I have reviewed the community membership guidelines
[x] I have enabled 2FA on my GitHub account
[x] I have joined the Crossplane slack channel
[x] I am actively contributing to the Crossplane project
[x] I have two sponsors that are current Crossplane Org members
[x] I have spoken to my sponsors ahead of this application, and they have agreed to sponsor my application

Sponsors

@negz
@jbw976

List of contributions to the Crossplane project

PRs reviewed / authored

https://github.com/crossplane/crossplane/pull/2946
https://github.com/crossplane/crossplane/pull/2970

Discussion https://github.com/crossplane/crossplane/discussions/2967, still keeping it up to date :)

+1 for me for sure! @Piotr1215 is bringing a lot of passion to the project and quickly gaining a deep understanding of the ecosystem!

+1

An invite has been sent to @Piotr1215 to join the crossplane org! 🎉


Control node anchors doesn't work inside a CanvasGroup

Godot version
v4.1.beta1.official [828ec2c5d]
System information
(Irrelevant)
Issue description
See #18166 for the exact cause.
With CanvasGroup though, I can't find an easy (not too messy) workaround since the CanvasGroup seems to ignore everything that's not a CanvasItem.
This issue makes it really hard to incorporate CanvasGroups into guis, which it's very useful for shader-based gui animations (the SubViewport approach doesn't play well with scaling).
I don't think many projects (if at all) is depending on the current behavior, so it's probably safe to just make the CanvasGroup a special case and let it pass the get_anchorable_rect() calls to its parent instead (or at least make this an option).
Steps to reproduce

Create a new UI scene
Add a CanvasGroup
Add a control node as a child of the CanvasGroup
Try changing the control node's anchors

Minimal reproduction project

Please see https://github.com/godotengine/godot/issues/18166#issuecomment-632404046

Can we expose the get_anchorable_rect() function to be overridable via gdscript?
I'm not sure if that's going to be a performance issue or something.

Okay, I guess there is a workaround for this.
I can use a dummy Control node with a script attached to sync its position and size with another Control node.
But it's still annoying since an extra layer of dummy node is involved.

Can we expose the get_anchorable_rect() function to be overridable via gdscript? I'm not sure if that's going to be a performance issue or something.
I've also tried to implement this, it kinda works, but it seems like the layout update doesn't propagate through a Node2D, which needs to be taken into account if someone wants to implement this. (I'm not familiar with C++ so I just imitated how it is done in other places, but I can't get things like editor support working, so I'm probably not gonna make a PR of this)

I'd suggest opening a PR for this, either this specially or the more general topic in #18166, as it isn't necessarily a bug, and more importantly the specifics of how to accomplish it needs to be discussed and the proposals are much better suited to that, partially because we get far more issue reports than proposals and it's easy for this one thing to be drowned out by that

Closing in favour of https://github.com/godotengine/godot-proposals/issues/7102


Added capsule mesh

Related with this issue https://github.com/ignitionrobotics/ign-common/issues/140
Signed-off-by: ahcorde<EMAIL_ADDRESS>

These two failing tests are not part of this PR

VideoEncoderTest.Exists

These two failing tests are not part of this PR

VideoEncoderTest.Exists


--host doesn't seem to pass to svelte

I'm migrating my project to the new docker image and ran into an issue of not being able to view the site on port 3000. From the logs (below), it looks like --host is being passed to the parent process but perhaps is not being received by svelte.
The process I followed was:

Backup my existing project folder by renaming it.
Create a new empty project folder
Using the instructions in this project's readme, initialize a new project folder with --init
Copy-back my pages content.

I noted in the logs that Svelte is still advertising that --host should be passed if connections from the network should be allowed.
(poe-UJy2mlGs-py3.8) aj@ajs-macbook-pro evidence % pwd
/Users/aj/Source/aj-dataops-personal/analyze/evidence
(poe-UJy2mlGs-py3.8) aj@ajs-macbook-pro evidence % docker run -v=$(pwd):/evidence-workspace -p=3000:3000 -it --rm evidencedev/devenv:latest

Starting Evidence.dev development environment mounted on /evidence-workspace in the container.
Provided arguments =>
Running command => npm install && npm run dev -- --host <IP_ADDRESS>

up to date, audited 455 packages in 3s

50 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

><EMAIL_ADDRESS>dev
> evidence dev "--host" "<IP_ADDRESS>"

  SvelteKit v1.0.0-next.202

  Use --host to expose server to other devices on this network

Attn @ud3sh.
Also, if it helps, here's my WIP MR. I'm really excited about the project simplication in the latest version! Thanks so much!

Attn @ud3sh.
Also, if it helps, here's my WIP MR: aaronsteers/aj-dataops-personal#2. I'm really excited about the project simplication in the latest version! Exciting also to move to this managed docker image. Thanks so much!

Hi Aaron, thanks for the feedback and trying this out! I suspect this has to do with migrating some artifacts to work with the new version of evidence + maybe updating some of the artifacts to work with the current image (e.g the package.json file at the root level).
I'll play around with your development branch in aaronsteers/aj-dataops-personal/.  Really appreciate you playing around with this.

Thanks, @ud3sh ! Much appreciated. I'll hold off additional testing until I hear back. If you aren't able to repro, just lmk.

@aaronsteers, it is easy to reproduce it ... the image doesn't work at all with the new version of Evidence we just shipped.


Runit repeats the start operation on service exception

Hi,
I have problem with automatic respawn of service inside docker container when service occur exception.
Is this supposed behaviour? - I thought when service throws exception runit deamon should not restart service for infinity.
Can I stop respawning that service?
nodejs app
//This will fail
var http = require('httep');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.end("Hello World\n");
});
// Listen on port 8000, IP defaults to <IP_ADDRESS>
server.listen(8000);
// Put a friendly message on the terminal
console.log("Server running at http://<IP_ADDRESS>:8000/");

Dockerfile
ADD . /app
RUN chown -R daemon:daemon /app
RUN mkdir /etc/service/app
ADD ./app.sh /etc/service/app/run
RUN chmod +x /etc/service/app/run

app.sh
#!/bin/bash
cd /app
exec /sbin/setuser daemon ./helloWorld.js

Running
 sudo docker logs 14757b9fb34e
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 96
module.js:340
    throw err;
          ^
Error: Cannot find module 'httep'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/app/helloWorld.js:33:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

Inspecting
 sudo nsenter -t $(sudo docker inspect --format '{{ .State.Pid }}' 14757b9fb34e) -m -u -i -n -p -w
 run: app: (pid 1161) 0s
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 1s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 1s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
down: app: 0s, normally up, want up
root@14757b9fb34e:/# sv status app
run: app: (pid 1227) 0s
root@14757b9fb34e:/# sv down app
root@14757b9fb34e:/# sv status app
down: app: 2s, normally up
root@14757b9fb34e:/# sv status app
down: app: 4s, normally up

This is how Runit is supposed to work. If your app exits for whatever reason, Runit respawns it.
If you want the container to shut down after the app exits, use this approach (without using Runit to supervise your app): https://github.com/phusion/baseimage-docker#oneshot


Any plans to make this great wallet work with Trezor hardware wallet?

Right now the only way to use trezor hardware wallet is using simplestaking.com which has problems with it's node A LOT.
would be awesome if we could use Temple wallet with a trezor.
Thanks,

contact him for more info<EMAIL_ADDRESS>

it's on the backlog, but with low priority

Right now the only way to use Trezor with Tezos is using the often malfunctioning Simplestaking.com - Only works occasionally.
if this comes about to working - it will be the only one properly working.


Public Endpoint Enhancement for VEText Incoming Messages from Twilio

VEText may have a need for us to replace their public endpoint product, pusher, which allows them to receive messages from Twilio (i.e. 2 way messaging). Recently pusher has been unreliable. Downtime prevents VEText from receiving messages. In may they are launching the check-in solution.

[x] Confirm we do in fact have a public endpoint (http://api.va.gov/vanotify/)
[x]  Build a listener redirect rule on Notify ALB to receive and redirect incoming vettext requests
[x]  Update TWILIO webhook to call reverse proxy endpoint with /twoway/vettext route
[x]  Confirm receipt and redirect of TWILIO webhook request
[x]  Create Calling Lambda receiving point
[x]  Create SQS for failed send requests
[x]  Add code to Lambda to call VetText endpoint and drop to SQS if send fails
[ ]  Create Scheduled Lambda that occasionally wakes up and drains the SQS
[ ]  Document

Testing:

Texting<PHONE_NUMBER> will go to our endpoint: https://api.va.gov/vanotify/. Need to update the endpoint once we do so for VEText.
To get to configuration of that number:
Log in to Twilio (VA Loma Linda SMS Development) -> Choose Phone Numbers product -> Go to Active Numbers -> Lookup<PHONE_NUMBER> ->  Go down to Messaging Section and update Webhook going to Notify endpoint
pull request for reverse proxy

Shane provided this sample endpoint for where we would forward incoming messages to:
curl --request POST \
  --url https://staging.api.vetext.va.gov/api/vetext/pub/inbound-message/twilio \
  --header 'Authorization: Basic OEZCMTRGN0I1NjE0NERDMEE2RUFCMzI5NDU4NUE4OEE6YW43ZnFCTW92a0NXeStLL29NTnZXZz09' \
  --header 'Content-Type: application/json' \
  --data '{
  "accountSid": "adg5b3d2-bcd8-550d-b82e-33a727f5b646",
  "messageSid": "abcde1",
	"messagingServiceSid": "",
	"to": "53079",
	"from": "[+19095032925](tel:+19095032925)",
	"messageStatus": "",
  "body": "here"
}'

ReverseProxy has been tested with Twilio and we have confirmed that incoming messages from Twilio can be received into AWS and redirected to Vetext.
We are currently finalizing communication with the VeTeext endpoint in Staging.

We had issues connecting to VETexts endpoints for the following reasons (which were resolved):

The lambda wasn't connected to the right VPC
We were trying to validate the vetext endpoint cert, but their engineer (Rob) told us to bypass that

We have confirmed communication flow from Twilio to Vetext.  We have also confirmed that when a message gets to us and we are unable to send it to the VeText endpoint, the message will drop into our failover queue to be tried again at a later time.
I am writing up documentation of the process and the current solution today.


Swift example?

its still understandably early, but how would you use WYPopoverController with swift from a controller from a storyboard?

You can copy the source into your project workspace and add 'WYPopoverController.h' into your bridging. No issues so far.


List of little annoyances and other stuff

A small list of things that stood out during testing and trial.
Please expand it according to your own assessment and let's talk about which are important before the first beta version is released.
Feel free to give an estimated priority as well.

[ ] Inform user about coinjoin state immediately after coinjoin is initiated. Preferably via Websocket Fetch /session immediately after starting taker (otherwise user might wait up to 10 seconds to know what is going on)
[ ] Prevent user from starting taker with insufficient funds (?)

Might be that a taker operation is started and then aborted - either unconfirmed or too little funds available

[ ] Warn user that locking wallet will abort a taker operation (if running)
[ ] Warn user that locking wallet will abort a maker operation (if running)

User journey a bit strange here.. closing the tab and unlocking wallet does not stop the maker - What should we aim at here?

[ ] Improve wording of error message when trying to send to "invalid" address: "Invalid request format." is not meaningful.
[ ] Improve wording of error message when trying to send with too little funds (server return 500 Internal Server Error as text/html - we display "JSON.parse: unexpected character at line 1 column 1 of the JSON data" as we try to parse json)

(This list should not contain missing features (e.g. "display spendable funds" or "ability to sweep"), but rather just document odd behaviour or possible improvements for existing ones.)

Fetch /session immediately after starting taker (otherwise user might wait up to 10 seconds to know what is going on)

Comment from @dennisreimann: Might be a good idea to bring back the WebSocket connection, it would contain this information.

Yeah, but I also stated it wrong - should be neutral, I did not want to propose a solution already.. will change to "Inform user about coinjoin state immediately after coinjoin is initiated.". Websocket would be great of course! :+1:

One more thing I noticed, not sure if it's already covered by the above: when "Earn" is active, i.e. the yield generator service is running, the user can't send a transaction as a coinjoin, and vice-versa. Reason: Service already started.

All of the items on the list are now either fixed, addressed in a PR or externalized as own issue. Proposing to close this issue.

Well done fellas.


security: IPsec protobuf definitions update

Signed-off-by: Vijay Ram Inavolu<EMAIL_ADDRESS>

@vijayinavolu thanks for the contribution, please fix DCO error above... you commit must have the signed-off
see https://github.com/opiproject/opi-api/pull/129/checks?check_run_id=8493450976

@mestery let's discuss the alignment in the API call today

@vijayinavolu Can you fix the DCO for this so that we can move it forward pending the alignment with the previous IPSec contribution?
Also can you work with Kyle to address the alignment in order to get a more common IPSec definition in place?

Given that we have forked the sessionOffload API, and it contains it's own tunnel offloads, I propose we actually close this PR and in fact remove the existing security APIs in favor of adopting the sessionOffload APIs for both session offload and tunnel (including IPsec) offload.

@vijayinavolu @mestery @sandersms - what do we do with this PR ?

Given that we have forked the sessionOffload API, and it contains it's own tunnel offloads, I propose we actually close this PR and in fact remove the existing security APIs in favor of adopting the sessionOffload APIs for both session offload and tunnel (including IPsec) offload.

@glimchb ☝

IPSec protobufs modified on July 1, 2024 to align with CRUD model.  PR no longer valid.  Closing...


fix newlines on table

this pr is consist only fix for newline on table

most diff from the actual pr are on readme file (before, after) and setup.py (before, after)

maybe squash the commits between https://github.com/hardikvasa/google-images-download/tree/618d1c2cf8842b7d8adaa518109f542bc90e81a8 and this pr after this pr is merged?

pypitest result can be found here https://test.pypi.org/project/google_images_download/

changes

setup.py

removing rst generation. readme file already use rst
add mit license to classifier

readme

change readme to rst
removing python2/3 usage section and example: with pip installation it is already a single command

it also mean not using python anymore on example.

removing bold effect on value in argument row
the explanation where the image downloaded

what is left

change author_email in setup.py
choose one license file. either license.txt or license.md
either give remove the example to download similar image or add that feature to program

if you want i can also upload to pypi. just reply when everything is ready.
or you can also upload it yourself to pypi

Thanks @rachmadaniHaryono
Couple questions:

removing python2/3 usage section and example: with pip installation it is already a single command I have never got this to work on my machine. here is what i did:

$ pip install google_images_download
when i go to my site-packages, i see the directory (google_images_download) in there. Then when i use $ googleimagesdownload [Arguments...]
i get the following error: -bash: googleimagesdownload: command not found
Am I not using it correctly? Should i be in a specific directory to use this command? is some path missing?

Does pypi allow both licence.md and licence.txt? If yes, then i will just remove one of them

removing python2/3 usage section and example: with pip installation it is already a single command I have never got this to work on my machine. here is what i did:

$ pip install google_images_download

when i go to my site-packages, i see the directory (google_images_download) in there. Then when i use $ googleimagesdownload [Arguments...]

my guess you are on linux.
here is the same question, which may have the similar problem
https://askubuntu.com/questions/625354/installed-script-with-pip-run-like-a-command
tldr: check your $PATH
another alternative is using this command: pip install -e . on the project folder
to quote https://stackoverflow.com/a/30306403/1766261

With pip install -e for local projects, the "SomeProject.egg-info" directory is created relative to the project path. This is one advantage over just using setup.py develop, which creates the "egg-info" directly relative the current working directory. More: docs

if you are developing this,  i recommend to use virtualenv or pyenv, or something similar (i use virtualenv due to habit). reason quoted from this link https://www.davidfischer.name/2010/04/why-you-should-be-using-pip-and-virtualenv/

Virtualenv creates a Python environment that is segregated from your system wide Python installation. In this way, you can test your module without any external packages mucking up the result, add different versions of dependency packages and generally verify the exact set of requirements for your package.

Does pypi allow both licence.md and licence.txt? If yes, then i will just remove one of them

i can't find which one is recommended. this guide that i use to upload to pypi using txt file
http://peterdowns.com/posts/first-time-with-pypi.html
also anything you use, change the setup.py like this https://stackoverflow.com/a/9977956/1766261

pip install google_images_download

that command still download the uploaded version from @psuzn, the latest version is not uploaded yet

@rachmadaniHaryono
I am actually testing it on macOS Sierra right now. i used the command which python and which python3 and it showed me the path /usr/local/bin/python.
then i checked my path by (echo $PATH) and it shows /usr/local/bin as the part of the path. So i guess this is not the issue of the path...but maybe I am wrong.
I am just stressing on this because other users might face the same issue. That is why i had added to complete command in the README.

Anyways, i will dig into the above issue a little later...merging this PR. Will make the required changes and update it here.

https://github.com/tdryer/hangups/issues/222
Can you check it like that issue.

@rachmadaniHaryono that actually worked, thanks! I will have to document this somewhere in the repo so other users do not have to go through the hassle.
one more question: should init.py just have
import google_images_download instead of import google_images_download.google_images_download because it is in the same directory?
When i am now running the command after PIP install, i get the following error...complete stacktrace below:
googleimagesdownload -k 'teddy' -l 10

Item no.: 1 --> Item name = teddy
Evaluating...
Total Image Links = 100
Starting Download...
Completed ====> 1. 41eqT-kNHaL._SL500_AC_SS350_.jpg
Completed ====> 2. ae6a28a2-e959-4836-901e-0422d52878e0_1.2a2f5614103fad624505828fd755374b.jpeg.jpg
Completed ====> 3. 151922_7.jpg
Completed ====> 4. Biggest_6ft_Life_Size_huggable_Mocha_Brown_Teddy_Bear_Sunny_Cuddles__64682.1459535455.jpg
Completed ====> 5. Meddy-Teddy-Tree-Pose_1024x1024.png
URLError on an image...trying next one... Error: <urlopen error EOF occurred in violation of protocol (_ssl.c:661)>
Completed ====> 6. 91azUGbKJyL._SL1500_.jpg
Completed ====> 7. Cozy-Love-Cuddles-cream-teddy-bear-with-heart-38in__51768.1295498306.jpg
Completed ====> 8. Tabby-Toys-Brown-Teddy-Bear-SDL718079748-1-39ccd.jpg
Completed ====> 9. teddy-image-4.jpg
Completed ====> 10. teddy_and_silk_chocolate.jpg

Everything downloaded!
Total Errors: 1

Total time taken: 14.4074530602 Seconds
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/googleimagesdownload", line 11, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google_images_download/__init__.py", line 2, in main
    import google_images_download.google_images_download
ImportError: No module named google_images_download

which seems like because of the path in init.py

either give remove the example to download similar image or add that feature to program

can you elaborate on this? Are you referring to the --similar_images switch?
if yes, then that feature is already present in the code.

your problem fixed should be fixed on new pr.

can you elaborate on this? Are you referring to the --similar_images switch?
if yes, then that feature is already present in the code.

yes, but the doc on that is different, so i haven't changed it
python3 pr.py -si <image url> -l 10

@rachmadaniHaryono i have completed the changes discussed above. Can you update the repo on pypi (1.0.2)?
Also can you or @psuzn give me access to the pypi repo so i can update it going forward?
Thanks!

@hardikvasa  can you give me your pypi username?

@psuzn, after I check it, he already got it.
@hardikvasa, please edit the recent commit. There is still some mistake there

@psuzn thanks, I got the access.
@rachmadaniHaryono  in the recent commit? Can you enlist the things that need editing?

@hardikvasa https://github.com/hardikvasa/google-images-download/commit/6efc092efb35be7fad00e65a4c0f49ff84d5179e

@rachmadaniHaryono are you referring to the sudo thing put into the troubleshooting guide?
I was thinking of putting a 'warning link' below that rather than removing it since i had a similar issue while installing the repo and sudo solved it. Seems like virtualenv should be an alternative to using the elevated permissions...

you can use --user flag. it is the easiest and don't require virtualenv

@rachmadaniHaryono sounds good. I will change the doc this weekend along with other feature updates.


Adding Dockerfile for Ubuntu18.04-pytorch1.12.1-cuda11.3-cudnn8

Complemented README.md with use cases and more instructions.
Updated Dockerfile for Ubuntu18.04-pytorch1.7.1-cuda11.0-cudnn8 to account for NVIDIA's key rotation.
Added Ubuntu18.04-pytorch1.12.1-cuda11.3-cudnn8

The added version is motivated by (a) these logical indexing errors that seem to happen in PyTorch 1.7.1, and (b) NVIDIA's GPG key errors which was taken care of in PyTorch's later images.
The earlier version is remained to cater for existing users of the Dockerfile which NVIDIA drivers might not support CUDA-11.3.

Thanks!


Fix typo, remove (+) sign

Fix #6

Seems to work fine with L4 too
thanks :)

You're welcome sir :)


1.6 stopped working with other api urls :(

I really don't know what I can give you to troobleshoot but its not working anymore on https://waka.hackclub.com/ :(
Im using wakatime.cfg file in my home directory.

We only support official WakaTime API not third parties.

Sad :cry: . Any plan for a future version ? I would be interested too


Error: Options {"loose":true} passed to a preset which does not accept options.

When using es2015-node6 (0.3.0) within another preset using require :
module.exports = {
  presets: [
    [require("babel-preset-es2015-node6"), { loose: true }]
  ]
};

I get the following error :

Error: Options {"loose":true} passed to a preset which does not accept options.

This is working fine :
module.exports = {
  presets: [
    ["es2015-node6", { loose: true }]
  ]
};

But I still need to use require for my preset (as described in official doc and in official presets)

Could you check babel-core version >= 6.13.2? The options should be work fine for babel-core ^6.13.2.

My babel-core version is actually 6.14.0 (I'm using babel-cli 6.14.0)

Oh, you should do this on another preset:
module.exports = {
  presets: [
    [require("babel-preset-es2015-node6").buildPreset, { loose: true }]
  ]
};

See latest preset usage.


HTML comments in CSS mode

Not sure if this is a bug or not but CSS mode shows HMTL comment with the same color as CSS comments which incorrectly indicates that HTML comments are allowed in CSS files.

Some git digging shows that this is a holdover from CodeMirror 1's CSS mode, repeatedly ported forward without rethinking. I've removed it in patch 9d320fd


Increase board size to 16MB

Changes device.has_correct_size() to accommodate boards with more than 2MB of flash.

Closes #18


Calling $createUserWithEmailAndPassword while logged in re-logs you in as the new user

Version info

**Angular:1.4.8
**Firebase:3.2.1
**AngularFire:2.0.1
Latest Chrome
Test case
https://plnkr.co/edit/acwPMnQJ4lSlOrjxCo0J
Steps to reproduce

Login as a valid user with email and password using $firebaseAuth().$signInWithEmailAndPassword().
Call $firebaseAuth().$createUserWithEmailAndPassword()

Expected behavior
Creates new user without changing current authorization per documentation.
Actual behavior
Creates user, then updates current logged in user to the newly created user.

Thanks for the good report and following the issue template. Which documentation are you referring to? Can you please provide a link? I think this is actually "works as intended" for the 3.x.x Firebase SDK. It's possible the AngularFire docs are out of date since this is a different behavior than the 2.x.x SDKs.

Ahh yes, interesting. I swear I saw that it said it did not, but checking https://github.com/firebase/angularfire/blob/master/docs/reference.md#createuserwithemailandpasswordemail-password it shows that it does. This is really horrible behavior for trying to create a user management portal. Is there a workaround to this?

I'd suggest you give this Google Groups thread a read. Also, please chime in if you don't like the behavior and try to expound on your use case. Closing this issue since to de-dupe the conversation and since AngularFire just calls the method from the underlying Firebase SDK.


Better handling of k8s SIGTERM when stopping workers

We've observed recently that worker pods can take more than 1h to get killed by kubernetes (see internal slack thread for example).
According to the k8s docs, at one point it sends a TERM and then after a grace period a SIGKILL on all the running processes.
If this keeps happening we need to improve the way we handle those to kill the pods faster.
One idea is to catch SIGTERM in the worker executor (main python process of workers) that would stop the worker loop (its subprocess where the actual code runs).

previous reference in Slack, by @rtrompier : https://huggingface.slack.com/archives/C04L6P8KNQ5/p1691002860789569?thread_ts=1690989017.253219&cid=C04L6P8KNQ5 (internal)

closely related to https://github.com/huggingface/datasets-server/issues/1606


Extend BG/NBD model with Time-Invariant Covariates

Extend package with functionality described in this paper

Implementation plan:
-- add fitters/beta_geo_covar_fitter.py module hosting BetaGeoCovarsFitter(BaseFitter) class
-- Extend testing routines for new class by analogy with BetaGeoFitter() and BetaGeoBetaBinomFitter() classes.


Double Url::to in web controller's redirect method

In \yii\web/Controller::redirect() used Url::to() method before calling \yii\web/Response::redirect().
But in \yii\web/Response::redirect() Url::to() used again.
I think Url::to() should be remove from \yii\web/Controller::redirect() method.

We did it once - it did not end well. :)
#13393 -> #13430


WIP - Update German translation

This adds translations to some untranslated strings and rewords some existing translations to better suit the other translations from the German GNOME translation team.
This is still WIP, because I have two questions (see the comments). Once everything is resolved, I'll mark this PR ready for review ;)

I merged https://github.com/SUPERCILEX/gnome-clipboard-history/pull/49 because it was opened first, but there are some additional changes here that I'd like to merge too. I'll resolve conflicts later tonight. I'm also going to change the "type to search" thing to "Search clipboard history..." if you want to translate that.

Thanks for the replies - no worries, I'll wait once you have done the changes and translate the new string!

@daPhipz Ok, I went ahead and merged stuff into your branch. :+1: Pull and you should be able continue.

Done - ready to merge as far as I am concerned :)

Thanks!

Ummm... I put these NBSP there for a reason 🙈
It is standard procedure in the German translation team for GNOME to put NBSPs like I did - why did you remove them?

Oh lol, I keep thinking it's a weird quirk of your text editor. Thanks for the explanation! Restored in 7361bd05d47c6ae49584ad8b41a2e1466b5a766d.

No worries :)
It wouldn't matter anyway for these small strings, but if a longer string would break right before the 3 dots or similar, it would look weird to begin a new line just for those. That's the reasoning behind the nbsp ☺


Syntax Error in line 408

Hi,
there seems to be an incomplete code line in line 408. Something is missing behind the self.
ph_delay_reg = SI5351_REGISTER_165_CLK0_INITIAL_PHASE_OFFSET + self.
Can you, please, check
Thanks
Soeren

Yes there is. I thought I had repaired that earlier.
I will track it down when I get home this evening
On Tue, Apr 2, 2024, 08:59 S. F. Peik @.***> wrote:

Hi,
there seems to be an incomplete code line in line 408. Something is
missing behind the self.
ph_delay_reg = SI5351_REGISTER_165_CLK0_INITIAL_PHASE_OFFSET + self.
Can you, please, check
Thanks
Soeren
—
Reply to this email directly, view it on GitHub
https://github.com/tdunning/SI5351/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5E6VQDUBDRFY7TAC5XULY3LIVHAVCNFSM6AAAAABFTVLBJCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZDAOBYGUYDOMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Found the problem. I hadn't pulled the live version back from the pico I was testing (and fixing) on.
Thanks so much for catching my mistake!


Link to similar calculators

I have started gathering similar tools here
https://docs.google.com/document/d/1b-QHxzKtoYfR4jQcsY8gH9xiVHUOEgSQknpdunFErFY/edit
Can someone open a pull request that includes these in the white paper (linked below the exisiting ones)?
For each one, we'd want to write a sentence or two about what we like about each one.

One more for you: https://safercovid.org/myrisk


DEC-359: Updating an exhibit does not show changes on refresh

WHY: Problem was with v1::showcases#index. View used exhibit data but cache key generation was not including this.
HOW: Changed the v1::showcases#index to use the associated exhibit when generating the cache key.

Coverage remained the same at 94.25% when pulling 45f811b2b5b750e55998e2314cce5ba41f911a53 on DEC-359 into 060a2554baee69bbe1c6d935e6e86f5649e75d72 on master.

Coverage remained the same at 94.25% when pulling 345a1aab96244e3fc79fb85971f004b3e905e85c on DEC-359 into 060a2554baee69bbe1c6d935e6e86f5649e75d72 on master.

:+1:

:+1:


solo.getWebElement(By, index) hangs WebElement

robotium:5.6.0   android:5.1.1
my test code is below:
print("start");
solo.sleep(10000);
WebElement webElement = solo.getWebElement(By.id("btnRegistNow"), 0);
int x = webElement.getLocationX();
int y = webElement.getLocationY();
print("(" + x + "," + y + ")");
solo.sleep(10000);
between start and first 10s sleep, i click the web element with my finger,it does reaction,but after solo.getWebElement is invoked, all click does not work,solo.clickOnWebElement  does not work,solo.clickOnScreen does not work,even i click with my finger ,it also does not work. so i,m sure there is bug in Webelement module.

call solo.clickOnScreen(736, 2434) without solo.getWebElement,it also works.

solo.getCurrentWebElements and solo.getWebElements() also have the problem


Correctly handle non-ascii header values

Fixes aws/aws-cli#1124
cc @kyleknap @danielgtaylor

Coverage increased (+0.01%) to 94.24% when pulling 2e6727f95816df3fbbf99d6e7077f6ed59e572e7 on jamesls:fix-utf-8-headers into 9b03d32735060c240948d2281d4f7cfe1532c0df on boto:develop.

Looks good. :ship: Had small comment.

Coverage increased (+0.02%) to 94.25% when pulling dbdc7085f7b60a959abeb141107b44c0b09db452 on jamesls:fix-utf-8-headers into 9b03d32735060c240948d2281d4f7cfe1532c0df on boto:develop.


Add status drop-down menu to RequestCard. Not correct size/responsive…

… yet.

What Github issue does this PR relate to?
Changes proposed in this pull request:

[x] Add a dop-down menu to RequestCard for status selection

What should the reviewer know?
I replaced "Pending" for now with "Please choose a status"
The size of the Select component is the same as the button and responsive as the buttons at the moment. Should be as large as the options text when width is the largest.

Quality Assurance(QA) Checklist

[x] The app builds and runs properly

After discussion in the team the dorp-down menu needs to be revised.


adjust line height of paragraph

Hi there,
Thanks for creating this awesome package!
I would like to know how do we able to adjust the line height of the paragraph?
Because according to the DEMO, I can't find any clue how to achieve this with the toolbar.
Please advise.

Hello!
I guess this is not possible directly with using document.execCommand()
Instead you'll have to create a short Vue method like:
methods: {
  setLineHeight (value_string) {
    const sel = window.getSelection();
    const element = sel.focusNode.tagName ? sel.focusNode : sel.focusNode.parentElement;
    element.style.lineHeight = value_string;
  }
}

Then you call this method with a click handler like click: () => { this.setLineHeight("15px"); }.
Good luck with that. Let me know if you still have issues.


Your Work is very appreciated for Kostal Piko <FW 5.0

Hi,
I would like to encourage you to work an your project.
On my side I am trying to get a 2013 Kostal Piko 7 FW<5 working
with homeassistant, but I still did not manage it.
Greetings
Frank

Hi Frank,
thabks for your encouragement! I did commit a pull request to the main HomeAssistant repo. Unfortunately it is still open and not yet part of the core components, so I am thinking about extending and publishing it through HACS. Any help regarding that is welcome!
Regarding your Piko 7: Does it rely on the DXS api for the website? If so, it should be possible to use it with this component. Is there something specific you are struggling with?
Cheers
David

Hi David,
i'd attach myself to this issue if you don't mind.
Unfortunately I'm struggling to get your integration to work. It seems that it won't be loaded:
2023-05-13 00:20:52.406 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration kostal_piko which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-05-13 00:20:52.406 ERROR (SyncWorker_0) [homeassistant.loader] The custom integration 'kostal_piko' does not have a version key in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details 2023-05-13 00:20:55.214 ERROR (MainThread) [homeassistant.components.hassio.handler] /store return code 500 2023-05-13 00:20:55.220 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /store -
Any idea what this could be? I've downloaded your integration by adding your github (https://github.com/scheidtdav/homeassistant-kostal-piko) as Custom Repository in HACS and hitting the "Download" Button. When reloading HA, i get the above message in the log.
Thanks a lot in advance!
Greets Dino

I tried some further things, e. g. i added a version tag in manifest.json. After that the integration was successfully loaded, but when adding the necessary parts in configuration.yaml, the log told me that this is not supported by this integration.
@scheidtdav I assume this is because the last version is supposed to be integrated as official integration and therefore should be administrated through the integration frontend?
However, it tried als your prototype version from here: https://github.com/scheidtdav/homeassistant-kostal-piko/issues/2#issuecomment-955671133
But also this i coulödn't get to work :-( the log printed something like "timeout to the kostal ip XYZ", although when fetching the dxsEntries as http request directly from the brwoser works fine for me...
I guess i need to wait until the release of your official integration...

Hey @dinomyte76 and @FrankUlbrich,
I had some time to have a look at this repo. I realized it wasn't up to date with what I had passed to the Home Assistant core repository. I have updated it since and also tested everything locally in a development environment. So far, it seems to work fine on my side and I'd be interested in your findings.
Check out the latest release to get it started.
Easiest installation is via HACS as a custom integration.
@dinomyte76 Regarding configuration through the UI, you are right. The latest version does not require any configuration through a yaml file or anything.
Cheers


Is there a bug in update note function?

The likes count on a note seems to randomly reset. Now I know that this particular note was edited. Could it be that the edit function resets the likes count?
Clearly my like is still registered, but the count reflected on the note isn't. Perhaps changing the logic to use a SQL JOIN statement to get the likes count from the following table instead of hard-coding it in the notes table.

Forgot to update the likes updating table after the migration from the posts table to notes table. I had still been updating the likes data to the posts table even though the app is now referencing the notes table.


How do I run this on glitch.com?

Hello I was wondering if you could tell me how to use this code on glitch.com

you don't host it you download it to your computer to use

No you can run code using the website
On Thu, May 7, 2020 at 1:06 PM bobby<EMAIL_ADDRESS>wrote:

you don't host it you download it to your computer to use
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SebOuellette/Discord-LiveBot/issues/47#issuecomment-625412234,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM7FIDCJGRMPPCKZTQMLKMTRQL2CTANCNFSM4M3Q5I3A
.

What do you plan on doing on the website? This program was made with electron so it opens a new browser so I'm unsure of what you're trying to achieve with this, it's specifically made to run on your pc

The website allows you to run code
On Fri, May 8, 2020, 12:20 PM dcrime<EMAIL_ADDRESS>wrote:

What do you plan on doing on the website? This program was made with
electron so it opens a new browser so I'm unsure of what you're trying to
achieve with this, it's specifically made to run on your pc
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SebOuellette/Discord-LiveBot/issues/47#issuecomment-625924364,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM7FIDALZVPS2N35RFRTE7LRQQ5NPANCNFSM4M3Q5I3A
.

Hi there. You cannot run this on glitch. Yes you can run code there, but not the electron app interface. It's not going to work


Possible mistake in the readme

I believe the readme needs to have a small s in ``formState`
in this section:
{
  "rules": {
    "react-hook-form/destructuring-formstate": "error"
  }
}

And in the supported ## Supported Rules section.
Eslint complains about a large S to clarify, saying there is no such rule definition. If the rules object is used with the large version = "react-hook-form/destructuring-formState"

Thank your for the PR. Much appreciate!


web, client: added datachannel example (chat)

Main change: Added simple independent text chat function. Ability to run DataChannel independently without video or audio.
Removed: prettyPrintSDP(sdp) function.
Added: Check for DataChannel support.
Cleaned up some code.

Fix the bug, otherwise it looks good.


Copy-SFApplicationPackage returns "The operation was canceled." with no indication why or docs explaining the issue

Describe the bug
When calling Copy-SFApplicationPackage, the majority of the time, a message "The operation was canceled." is returned, with no other information.
Of 8 attempts calls, I've seen one succeed, so the command is correct.
To Reproduce
Generate a pkg folder 205 MB in size.
Connect to a secure SF Cluster using cert thumbprint identification with Connect-SFCluster
Run command:
Copy-SFApplicationPackage -ApplicationPackagePath "PathToPkgFolder" -ApplicationPackagePathInImageStore "AppType"
Expected behavior
The command is successful the majority of the time and a useful error is returned when it fails.

This should be fixed PS Module Release 1.4.1-preview1 version has the fix., if it still repros, please feel free to reopen


Notifications

Notifications have to be shown when user got new massage.
It doesn't  happen.

I think this is not related to this repo. Feel free to re-open with more details if it is. Thanks!


Corrections needed on the PowerShell commands

For the Peering creations powerShell commands (both Microsoft peering and Private Peering), the command should be stored to $ckt, so when running the set command at the end, it will have the new peering configurations.
this creates the peering config, but it didn't store it to $ckt
Add-AzExpressRouteCircuitPeeringConfig -Name "MicrosoftPeering" -ExpressRouteCircuit $ckt -PeeringType MicrosoftPeering -PeerASN 100 -PeerAddressType IPv4 -PrimaryPeerAddressPrefix "<IP_ADDRESS>/30" -SecondaryPeerAddressPrefix "<IP_ADDRESS>/30" -VlanId 300 -MicrosoftConfigAdvertisedPublicPrefixes "<IP_ADDRESS>/24" -MicrosoftConfigCustomerAsn 23 -MicrosoftConfigRoutingRegistryName "ARIN"
Add-AzExpressRouteCircuitPeeringConfig -Name "MicrosoftPeering" -ExpressRouteCircuit $ckt -PeeringType MicrosoftPeering -PeerASN 100 -PeerAddressType IPv6 -PrimaryPeerAddressPrefix "3FFE:FFFF:0:CD30::/126" -SecondaryPeerAddressPrefix "3FFE:FFFF:0:CD30::4/126" -VlanId 300 -MicrosoftConfigAdvertisedPublicPrefixes "3FFE:FFFF:0:CD31::/120" -MicrosoftConfigCustomerAsn 23 -MicrosoftConfigRoutingRegistryName "ARIN"
this updates the circuit
Set-AzExpressRouteCircuit -ExpressRouteCircuit $ckt

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

ID: 9fdfe526-1323-0a49-d650-e01ea1acf012
Version Independent ID: 89d8f012-cb76-3dc6-62e4-df5c8b67fd74
Content: Tutorial: Configure peering for ExpressRoute circuit - Azure PowerShell
Content Source: articles/expressroute/expressroute-howto-routing-arm.md
Service: expressroute
GitHub Login: @duongau
Microsoft Alias: duau

Hi @setunol , Thanks for your feedback! We will review and update this doc accordingly.

Hi @setunol , Thanks for your feedback! We will review and update this doc accordingly.

@setunol, Appreciate your patience. The doc has been edited accordingly and it would take some time for the changes to get reflect over the doc.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

@setunol, Appreciate your patience. The doc has been edited accordingly and it would take some time for the changes to get reflect over the doc.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


Add goToNextPage method

Fixes #96

Add goToNextPage() and goToPrevPage() methods, to allow moving pages programatically
Needs to be merged after #97 (this branch includes that fix on goToDate())

Thanks, @pdpino. LGTM, I'm merging.


Not compatible in Django 4.2

djangocms_slick_slider version:1.0.7
Django version: 4.2
Python version:3.10
Operating System: Ubuntu 22.04.2 LTS

Description
Hi @oesah,
I am not sure if you are maintaining this package. I required a slider/carousel in one of my Django CMS projects and found about djangocms-slick-slider from Google.
Upon configuring the project I found out that this package isn't compatible with Django version > 4.0+. The module causing this error ugettext_lazy has been dropped from >Django 4.0. You can find the discussion over here: https://github.com/oesah/djangocms-slick-slider
Do you intend to maintain this repo or perform a fix?
What I Did

Installed djangocms_slick_slider
Added djangocms_slick_slider.apps.DjangocmsSlickSliderConfig in INSTALLED_APPS
python mange.py makemigrations && python manage.py migrate && python mange.py runserver

Traceback (most recent call last):
  File "/app/manage.py", line 22, in <module>
    main()
  File "/app/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/usr/local/lib/python3.10/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.10/site-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.10/site-packages/django/apps/config.py", line 269, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.10/site-packages/djangocms_slick_slider/models.py", line 2, in <module>
    from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/local/lib/python3.10/site-packages/django/utils/translation/__init__.py)
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
    autoreload.raise_last_exception()
  File "/usr/local/lib/python3.10/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
    raise _exception[1]
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 394, in execute
    autoreload.check_errors(django.setup)()
  File "/usr/local/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.10/site-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.10/site-packages/django/apps/config.py", line 269, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.10/site-packages/djangocms_slick_slider/models.py", line 2, in <module>
    from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/local/lib/python3.10/site-packages/django/utils/translation/__init__.py)

@Dsujan Thanks for bringing this to my attention. I won't have time to fix it anytime soon, but you can send me a PR if you want to fix it. Should be easy to do, just check for the version of django when we import this and change it to the new import if django version is > 3.


FCS-52 fix: prefix each path with facilityId

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


could you please elaborate how it's work and which algorithms used

Hi nvcken,
Thanks for the question. Each element in the landscape is modelled using different rules, so it is hard to explain in a few sentences. But basically I use a combination of functions (sinusoidal waves, Gaussian distribution, etc.) and randomness (Perlin noises, uniform, etc.). Is there any particular element (rock, tree, etc.) you’re interested in?
P.S. I’m planning to write a documentation detailing each step, I’ll link to it in this repo once I finish it.

this project is awesome, I want to know the principle too

What if I can draw it in JavaScript via the technique metioned here.

我也想知道各个元素是怎么提取建模的！

It would be cool if someone can port the code to generate non-stop scrolling desktop/phone wallpaper and/or screensavers!
Nice work! Looking forward to the write-up.

Can't wait to read this document!

I have rewritten this project in react with typescript.
maybe it will help to understand.
my project

Hi guys, time has passed and the documentation hasn't been created, so I made it myself.
Make a note that the code has been modernized, and most of the names have been changed for better readability.


[Bugfix] fix cleanup loop in language detection handler

What does this PR do?

Fixes a bug in the cleanup loop in language detection handler.
Motivation

The cleanup process is using a select block to listen on channel events. However, the select block is not embedded in a for block. Consequently, only the first item received from the channel is processed and all other subsequent items are ignored.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Repeat the same QA of this PR.

/merge


Multithread build on maven fails with goal updateSQL

Environment
Liquibase Version: 4.17.1
Liquibase Integration & Version: maven
Liquibase Extension(s) & Version:
Database Vendor & Version: offline
Operating System Type & Version: Linux
Infrastructure Type/Provider: <AWC, GCS, Azure, VM, etc>
Description
My app is composed of multi modules, I want to get build fast, so I use mvn with option -T 1C
When I run updateSQL goal on many modules it fails with errors like this
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.17.1:updateSQL (liquibase-install-4-tests) on project xxx-liquibase: Cannot end scope ucuxobkxqd when currently at scope gdwnihdevm -> [Help 1]
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.17.1:updateSQL (liquibase-install-4-tests) on projectyyy-liquibase: Cannot end scope xgzdkkhbwv when currently at scope psiywodkzr -> [Help 1]

Actual Behavior
Fails to build project
Expected/Desired Behavior
Work with option -T 1C
I wonder if using https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/ThreadLocalScopeManager.java would not help this.
I dont see any way in maven to control it.

it is even more problematic, as when I want to skip liquidbase -Dliquibase.skip=true it is still failing

@FBurguer  I could try to work on PR, but I wonder if you would be ok with changing ScopeManager by default or maybe it should be configuration option?

@piotrwielgolaski-tomtom I'd be OK with you changing the liquibase-maven-plugin to use the ThreadLocalScopeManager instead of SingletonScopeManager.
In the normal maven case, that shouldn't and in the multithreaded maven case I think the ThreadLocal setup should always make sense. If people find use cases where that doesn't make sense we can reconsider a config setting at that point.
Or, if you find that the way maven manages multi-threading makes more sense to have a different ScopeManager you can do that too.
Forcing ThreadLocalScopeManager (or a different one) on everyone which has otherwise not been used a lot is a bit of risk, but if there are problems it should be immediately obvious.

I'm using offline DB in few modules and it would help a lot if I could run them in parallel.

I started to look what it requires to make it work
here you can find my initial finding in form or working code (WIP)
https://github.com/piotrwielgolaski-tomtom/liquibase/commit/aceffa14e341d23fee6e4f77d0f2adde3407742d
in general scope manager requires small finetuning as it should not be forced to run with root scope, each thread should have own root scope otherwise it will idea (sharing root scope means conflicts)
the most challenging part is ChangeLogHistoryServiceFactory that is not scoped, in many places thread reset this factory and it breaks all setup.
would you agree that first step to make this implementation correct is to make ChangeLogHistoryServiceFactory scoped similar as ExecutorService?

@nvoxland I created PR only with this change https://github.com/liquibase/liquibase/pull/4023

Looks like this issue should be closed by the pr. So Im closing it. Thanks!


Test needed to differentiate between JSON Pointer or named schema in URI fragment

I have been seeing this a lot recently:
"$ref": "common.json#properties/version"

However, according to the JSON pointer spec, JSON Pointers are supposed to start with /. According to the JSON Schema spec, if the fragment isn't a JSON Pointer, it is supposed to be treated as a named schema and therefore reference something with $id set, not a path.
The proper form for a JSON pointer would be:
"$ref": "common.json#/properties/version"

(note the / after the #).
The first example would point to a named schema, however according to the spec, schema identifiers are prohibited from container the / character:

Using JSON Pointer fragments requires knowledge of the structure of
the schema.  When writing schema documents with the intention to
provide re-usable schemas, it may be preferable to use a plain name
fragment that is not tied to any particular structural location.
This allows a subschema to be relocated without requiring JSON
Pointer references to be updated.
To specify such a subschema identifier, the "$id" keyword is set to a
URI reference with a plain name fragment (not a JSON Pointer
fragment).  This value MUST begin with the number sign that specifies
a fragment ("#"), then a letter ([A-Za-z]), followed by any number of
letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons
(":"), or periods (".").
The effect of using a fragment in "$id" that isn't blank or doesn't
follow the plain name syntax is undefined.  [[CREF3: How should an
"$id" URI reference containing a fragment with other components be
interpreted?  There are two cases: when the other components match
the current base URI and when they change the base URI.  ]]

Although it would seem like the last paragraph leaves a little room for interpretation.

If I both remember right and follow reading your issue, yes, the former isn't a valid schema -- you're not saying there's a test in the suite that does so, right?
You're saying we should add what, a metaschema test to ensure {"$ref": "common.json#properties/version"} is considered by an implementation to be an invalid schema?
Happy to see that if so.

Apologies for the confusion.

You're saying we should add what, a metaschema test...

That's correct, at least based on my best understanding of all of the relevant specs that I have only just read today. Although someone more knowledgeable of the specs might want to verify that.

There’s not yet a mechanism to test for invalid schemas, since some things aren’t expressible in a meta-schema. This is one example.

Strictly speaking, that's not an invalid schema.  The value of the $ref keyword must be a uri-reference, and common.json#properties/version is a perfectly valid URI reference and, when resolved against the current base URI, will become a perfectly valid URI.  It's just that this URI won't resolve to any actual location in existence, because (as you said) the fragment portion of the URI isn't a valid json pointer nor a valid anchor.
In order to (fail to) validate this against the metaschema, we'd need to be more specific about the expectations of $ref than "uri-reference". We could potentially do this by adding a mandatory regex check -- e.g. "pattern": "(#(/.*|[A-Za-z0-9_:.-]+)?)?$"
But that's out of scope of the test suite. It would need to be done in the specification metaschema.


Accordion's bottom outline disappears when expanded (only in safari)

Steps to reproduce
Link to live example: https://stackblitz.com/~/github.com/vaughn18/mui-accordion-bug
Using the live example will be redundant as it requires you to use different browser. So you must clone this repo
Steps:

Clone the repo
install vite if not yet installed e.g. npm install -D vite
start the app with vite in terminal
Open the app in Safari (I am currently on version 17.5) it should be on localhost:5173
Expand Accordion 2

Current behavior
Bottom outline is gone

Expected behavior
Bottom outline is there (opened in chrome)

Context
I am a developer for a health software company and we happen to use React MUI for our App. It is part of our standards that we should comply to support Safari. We found this bug from testing and can confirm that it only happens on Safari, we haven't tested on any other versions aside from the one mentioned (17.5). We currently have a workaround to fix this issue which is to expand the height of the Grid container by hardcoding a specific value but it is not quite up to par with our coding conventions as we try to not to hardcode values on low level components.
Your environment

npx @mui/envinfo
  System:
    OS: macOS 14.5
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 9.7.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
  Browsers:
    Chrome: 127.0.6533.100
    Edge: 127.0.2651.98
    Safari: 17.5
  npmPackages:
    @emotion/react: ^11.13.0 => 11.13.0
    @emotion/styled: ^11.13.0 => 11.13.0
    @mui/core-downloads-tracker:  5.16.7
    @mui/icons-material: ^5.16.7 => 5.16.7
    @mui/material: ^5.16.7 => 5.16.7
    @mui/private-theming:  5.16.6
    @mui/styled-engine:  5.16.6
    @mui/system:  5.16.7
    @mui/types:  7.2.15
    @mui/utils:  5.16.6
    @types/react: ^18.3.3 => 18.3.3
    react: ^18.3.1 => 18.3.1
    react-dom: ^18.3.1 => 18.3.1

Search keywords: accordion bottom outline safari glitch disappears

I notice the glitch as well.