Stretch lite image boot fails

Hi,
on first boot I got
[      1.618965]    mmcblk0:  p1  p2
and then the Pi Zero froze.
I've solved the problem so I though I'd post here to share the knowledge.
After resizing an image the first boot fails due to (I think) the changed naming of the partitions in /etc/fstab and cmdline.txt.
My solution after much googling was to replace:
PARTUUID=0e75fcd5-01 with /dev/mmcblk0p1
and
PARTUUID=0e75fcd5-02 with /dev/mmcblk0p2
in these files.
I did it by mounting the partitions, but making the change before creating the full fat image would probably be easier. Unless it involves creating a time machine.
HTH
Bruce
Edit,
more info here
https://raspberrypi.stackexchange.com/questions/68082/why-wont-my-raspberrypi-boot-if-i-use-parted-to-adjust-the-partition

I'm having trouble replicating your issue. Are you using the latest stretch image? And whats the OS you're running pishrink from?

I'm running pishrink from Raspbian Stretch lite on a Pi3.  It was certainly downloaded as stretch and updated since, I don't know how many stretch Raspbian versions there have been so far.
Not sure if this is relevant but the image I was shrinking was a Pi-Zero gadget image, so the cmdline.txt had been edited. The link I added in the first post pointed me to an issue with PARTUUID and sure enough explicitly putting the /dev entries in fixed the issue.

Hmm, so the image I was using was booting with PARTUUID as well and I checked to make sure pisrink wasn't changing the UUID and it didn't for me. If it's the case that it is changing it I'd like to make it not do that.
I didn't run pishrink from a raspbian image, so let me try that and see if I can replicate it.

Hi
I am having a similar issue with piclone.  I run piclone on a headless Raspi with:
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)"
The cloned image won't boot.
I don't have a monitor connected so I can't tell you what messages are being outputted.  I can see from the flashing green LED that it is failing early in the boot process.
piclone is not working on multiple pi's running different software.  I have tried different SD cards.  I have tried doing full (not just quick) SD formats.
Let me know if I can provide additional info to help troubleshoot this problem.
Dazz

Closing for #255. Thank you for reporting the issue


feat: Eleventy 1.0 changes

This PR:

Adds an optional locale parameter to the formatDate filter (#60).
Updates the markdown filter to use Eleventy's Markdown engine, allowing any customization of the Markdown engine to be inherited by the filter (#85).

Out of curiosity what would be the reason to use the markdown filter supplied here vs the renderTemplate shortcode from 11ty? If is it worthwhile to explain this in documentation?

Out of curiosity what would be the reason to use the markdown filter supplied here vs the renderTemplate shortcode from 11ty? If is it worthwhile to explain this in documentation?

The renderTemplate function seems to have some issues when being passed a variable. For example:
---
someVariable: 'hello'
---

{% renderTemplate 'md' %}
{{ someVariable }}
{% endrenderTemplate %}

Expected:

hello

Actual:

{{ someVariable }}

Passing raw Markdown works. I think I may be misunderstanding the functionality of the Render plugin and I want to explore further, but I think maintaining this filter can't hurt, especially as it now inherits all of the Markdown engine's configuration.

The renderTemplate function seems to have some issues when being passed a variable. For example:

It seems you need to pass in the data to the shortcode directly.
Anyways, someone could always pick what the use based on the situation. It might be more convenient to not have to try to pass in data for example, especially if it's a small bit to render.

I tried that and it didn't work for me either. But yeah, I think having the filter is still not a bad idea and this means one less upgrade issue for our sites built with this plugin.


Can't install on python 3.13.0

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
When I try to install it on python3.13.0 I can't
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
Collecting yt-dlp
  Using cached yt_dlp-2024.10.7-py3-none-any.whl.metadata (171 kB)
Collecting brotli (from yt-dlp)
  Using cached Brotli-1.1.0.tar.gz (7.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: certifi in c:\users\swpar\appdata\local\programs\python\python313\lib\site-packages (from yt-dlp) (2024.8.30)
Collecting mutagen (from yt-dlp)
  Using cached mutagen-1.47.0-py3-none-any.whl.metadata (1.7 kB)
Collecting pycryptodomex (from yt-dlp)
  Using cached pycryptodomex-3.21.0-cp36-abi3-win_amd64.whl.metadata (3.4 kB)
Requirement already satisfied: requests<3,>=2.32.2 in c:\users\swpar\appdata\local\programs\python\python313\lib\site-packages (from yt-dlp) (2.32.3)
Requirement already satisfied: urllib3<3,>=1.26.17 in c:\users\swpar\appdata\local\programs\python\python313\lib\site-packages (from yt-dlp) (2.2.3)
Collecting websockets>=13.0 (from yt-dlp)
  Using cached websockets-13.1-cp313-cp313-win_amd64.whl.metadata (7.0 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\swpar\appdata\local\programs\python\python313\lib\site-packages (from requests<3,>=2.32.2->yt-dlp) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\users\swpar\appdata\local\programs\python\python313\lib\site-packages (from requests<3,>=2.32.2->yt-dlp) (3.10)
Using cached yt_dlp-2024.10.7-py3-none-any.whl (3.1 MB)
Using cached websockets-13.1-cp313-cp313-win_amd64.whl (159 kB)
Using cached mutagen-1.47.0-py3-none-any.whl (194 kB)
Using cached pycryptodomex-3.21.0-cp36-abi3-win_amd64.whl (1.8 MB)
Building wheels for collected packages: brotli
  Building wheel for brotli (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for brotli (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      C:\Users\swpar\AppData\Local\Temp\pip-build-env-u8yvh_pr\overlay\Lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating bin\lib.win-amd64-cpython-313
      copying python\brotli.py -> bin\lib.win-amd64-cpython-313
      running build_ext
      <string>:70: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
      building '_brotli' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for brotli
Failed to build brotli
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (brotli)

The issue lies not with yt-dlp, but brotli (a dependency of yt-dlp) not yet providing prebuilt Python 3.13 wheels.
Either wait for brotli to provide prebuilt wheels for python 3.13, install the build tools as the error message tells you to and build the wheels yourself, or install yt-dlp without brotli.

(this is a duplicate of https://github.com/google/brotli/issues/1208, by the way)

yt-dlp can't be installed without brotli, because this package is a mandatory dependency (for cpython). Moreover, yt-dlp can work with brotlicffi.
Is it possible to make brotli an optional dependency? Google may not build wheels for a long time. And each time it takes longer.

brotli is an optional dependency of yt-dlp. In fact all dependencies are optional. The functionality of yt-dlp may be limited, but it will still run.
Currently brotli gets installed with pip install yt-dlp due to being a recommended dependency. In due time we will remove brotli and only install it (alongside other depnendecies) when pip install yt-dlp[default] is used.
Even without that you can install yt-dlp through pip without brotli by using --no-deps.

@seproDev thanks for the reply.
When running pip install yt-dlp[default], as well as just pip install yt-dlp, pip tries to find a version that doesn't depend on brotli, and ends up installing yt-dlp-2022.2.4.
pip install yt-dlp --no-deps works. But when upgrading all packages, it still installs the old version.

Currently, [default] is an empty group: we added it months ago so that we could update our documentation in advance to instruct/condition users to install yt-dlp with the default group/extra.
When #11255 is merged, all dependencies will be truly optional and they will only be installed if the [default] group is added to yt-dlp in the pip/pipx install command.

https://github.com/google/brotli/issues/1208#issuecomment-2422460041
They've built and uploaded the wheels for Python 3.13. Should this issue be closed? Or is it better to merge #11255 before this is closed?


[QA] Multiple issues with core functionalities on Seed scene (-104,-95)

Explorer Alpha build version:

v10
v0.11.0

Issue Description:

Inside the SDK7 scene Seed /goto -104,-95 the actions that can be executed on the options pannel are not fully working or have the parity that on explorer legacy.
Steps to reproduce:

Click on the color bar on the top right screen
Activate the smoke
Activate the Color change pause
Activate the confetti
Activate the strobe lights
Turn on the auto dance
Spawn portable experience
Pause the video
Activate the chat and write to observe the bubble

Expected behaviour:
All actions should work and replicate the ones that are now on legacy
Current behaviour:
Most actions are not working or not working as expected. Example: the chat bubble appears under the avatar's feet, the smoke comes from the avatar and it doesn't render as it must.
All difference can be found with the comparission between legacy and alpha videos attached to the ticket.
Evidence:
ALPHA
https://github.com/decentraland/unity-explorer/assets/139157886/bd0929d4-eaab-4a67-88c9-ae8d7caa1395
RENDERER
https://github.com/decentraland/unity-explorer/assets/139157886/63275a1d-7955-4795-a2c3-036c1c2f3bdc
Additional Notes:

Closing the ticket since it has been parted in different ones and this contains functionalities that are also not working on Unity Renderer.


Image stretch

I've received feedback on images being stretched when changing screen size:
full size:

smaller screen:

People page is working well, can you fix this @ehab-hassan ?

fixed at staging

thank you


Add exclude-multi-locale to mobile documentation

See https://bugzilla.mozilla.org/show_bug.cgi?id=1422249
We need to update the documentation:

When adding a new locale, it needs to be added to exclude-multi-locale
When moving it to beta, it needs to be removed from that list

Got this! I wanna chat with you in Austin to make sure I get it all :) I think it's mostly clear, but just in case.


Pocket Edition World Open Error

[   ERROR][                   root.py:647]:Failed to load file C:\Users**\Minecraft****\level.dat: AttributeError("'PocketWorld' object has no attribute '_MCLevel__gameVersion'",)
I changed to **** just for privacy.

Hmmm...
Looks like something is missing somewhere.
We'll have a look :smile:

Sorry for late reply.
Here is the link: https://www.dropbox.com/s/srokzzzy78fk018/OniOniOn 0.8.0build3 Map v.1.zip?dl=0
Maps were edited in old versions of mcedit, so I tried to find out since wheat version it didn't work. But my Windows 10 has some complicated account name issues which kept me from testing old versions...

Which game version is this world?

[   ERROR][                   root.py:687]:Failed to load file /home/utku/MCPE/com.mojang/minecraftWorlds/OLD: AttributeError("'PocketWorld' object has no attribute '_MCLevel__gameVersion'",)
when trying to open map generated in mcpe 0.8.1
using 64bit ubuntu 16.10

Badly, the current <IP_ADDRESS> version of MCEdit-Unified does not support very well PE...
Thus, some progress has been made for the next release.
This error was related to 'old' PE 0.8.0 or lower worlds.
It is fixed for the next release.
The support for version 0.9.0+ has been reworked too, and at the time I'm writing, the 1+ world can be loaded in the development version of MCEdit.
You can also see this related post: https://github.com/Khroki/MCEdit-Unified/issues/676#issuecomment-279105921

it is fixed for the next release

A release that never came...


Feature Proposal: SqliteList

Hello,
I am a happy user of the SqliteDict. Thanks for making it!
I would like to store a list as a table in the same sql file.
At the moment, in order to use the same sql file, I am storing the list as a value inside a dict.
This is highly inefficient since to add an element, I rewrite the whole list to sql.
I think it would be a pretty useful feature.
Just my 2 cents :)

I have same idea, after I think about this idea twice it's not as simple as it looks, how do you implement a List over sql database? definitely involve save additional information to work row as doubly linked list data structure which might hurt performance, left my 2 cents here I might implement a simple one for fun.

Hi,
thanks for they reply. I am not sure what a good implementation of a List in sql would be.
I am just throwing in a 2 cent idea. The primary key could be a floating point number stored as a string (or just float).
As the first elements are inserted, they are stored with key "0.", "1.", "2." ...
Inserting element(s) could use intermediate float values e.g. "1.5" then "1.75" to insert 2 elements in between "1." and "2.".
We are at 6 cents so far :)

One can write a list-like wrapper around the sqlitedict, as a stopgap until this is implemented as a feature.
Here is what I did https://github.com/za3k/day29_adventure/blob/master/base.py#L18 . It's definitely not perfect performance-wise, just an example.

Why not put the lists in their own table according to standard database normalization?


Camera unavailable should not print configuration

Checklist:

[x] I updated to the latest version available
[x] I cleared the cache of my browser

Release with the issue:
Latest
Last working release (if known):
If I remember well this was not always like that.
Browser and Operating System:

N/A
Description of problem:

When my camera becomes unavailable for whatever reason (like bad Wi-Fi for example), the card should only show that the camera is unavailable and not print the entire configuration.
This is an error that is expected to happen, and not something that would require fixing the configuration.

Frigate card diagnostic information

N/A
Javascript errors shown in the web inspector (if applicable):
N/A
Additional information:
Déjà vu? No:

https://github.com/dermotduffy/frigate-hass-card/issues/759

Also, this is especially worse now that the Frigate integration itself reports unavailability:

https://github.com/blakeblackshear/frigate-hass-integration/issues/406

I figured this was coming after the frames/unavailable change :-)
I think I need to treat camera unavailability entirely differently, i.e. not render a top-level error at all, but perhaps render an error message in place of the camera feed. The distinction is that a top-level error will really stop the usability of the card (e.g. a carousel with 10 loaded cameras, if 1 goes unavailable it shouldn't prevent usage of the carousel for the other 9). This will be even worse with the new (unreleased) grid functionality.

Déjà vu? No:

BTW: One of the reasons my development is slow right now is because I'm investing a lot of time in refactoring and adding unittests as I go, specifically to raise the quality bar and prevent regressions. I hope this results in fewer bugs over time (and thus less time fixing them).

Just to be clear it wasn't my intention at all to pinpoint a regression. I am extremely grateful for your hard work on the card and I know how hard it can be to remember all the small details when doing some refactor without tests to help you catch them (and I know you did major refactors to the card since then).
My intention was only to remind you, and to cross reference the issues.

My intention was only to remind you, and to cross reference the issues.

Of course, I didn't for a moment suspect otherwise!


String: Find Longest Palindromic Substring in Java

https://leetcode.com/problems/longest-palindromic-substring/

assign this to me @akgmage


How to fetch i18n entry from getCollection

ref from:
https://docs.astro.build/en/recipes/i18n/#use-collections-for-translated-content
src/pages/[lang]/blog/[...slug].astro

however, i do not have a /[lang] folder.

so that i have no idea how to make the getStaticPaths work

then, i tried another way:

export async function getStaticPaths() {
  const blogEntries = await getCollection('posts', ({ data }) => {
    return import.meta.env.PROD ? data.draft !== true : true;
  });
  return blogEntries.map((entry) => {
    const [lang, slug] = entry.slug.split('/');
    const postslug =
      lang === defaultLocale ? `post/${slug}/` : `${lang}/post/${slug}/`;
    return {
      params: { postslug },
      props: { entry }
    };
  });
}

[
  {
    params: { postslug: 'en/post/astro-blog-from-scratch/' },
    props: { entry: [Object] }
  },
  {
    params: { postslug: 'post/astro-blog-from-scratch/' },
    props: { entry: [Object] }
  }
]

however, still default locale content all the time.

Hi @willin, please check the README for:

documentation on this library
how to use it with content collections
limitations regarding getStaticPaths

The Astro docs you linked are a completely different approach to i18n.


Feature request : Add more Scipy Optimizer

Hi,
Could it be possible to wrap the scipy.optimize.basinhopping and scipy.optimize.anneal the same way the tf.contrib.opt.ScipyOptimizerInterface allow us to use method as LBFGS with Tensorflow to minimize a function ?
Thanks

Hi!
I'd like to work on this if nobody is looking at this right now.

Hey, I'm trying use the 'dogleg' method in tf.contrib.opt.ScipyOptimizerInterface.
I'm able to compute the hessian of my objective functions with tf.hessians (which returns a list of tensors). But then when I pass that hessian to tf.contrib.opt.ScipyOptimizerInterface I get the following error message:
...
~/anaconda3/lib/python3.6/site-packages/scipy/optimize/_trustregion.py in hess(self)
     56         """Value of hessian of objective function at current iteration."""
     57         if self._h is None:
---> 58             self._h = self._hess(self._x)
     59         return self._h
     60

~/anaconda3/lib/python3.6/site-packages/scipy/optimize/optimize.py in function_wrapper(*wrapper_args)
    290     def function_wrapper(*wrapper_args):
    291         ncalls[0] += 1
--> 292         return function(*(wrapper_args + args))
    293
    294     return ncalls, function_wrapper

TypeError: 'list' object is not callable

Is the 'dogleg' method supported at all?
Thanks!

@mirca
You should pass a function the computes the Hessian of your loss function at point x to tf.contrib.opt.ScipyOptimizerInterface, not directly the list of tensors. I am trying to use it now as well.

I'm very interested in being able to implement a dogleg optimizer in tensorflow. Anyone got a simple optimization example which I can use as a starting point?

@nicaogr

scipy.optimize.basinhopping and scipy.optimize.anneal

The documentation says "anneal is deprecated", "use basinhopping instead", for the record.

Here is another tricky replacement I found on StackOverflow. We can include both Tensorflow GPU acceleration and scipy optimizer at the same time. Hopefully, it will be helpful.
https://stackoverflow.com/questions/50575332/escaping-local-minimum-with-tensorflow/50675655

Though adding more optimizers from SciPy is outside the scope of TensorFlow Core, basinhopping and anneal might be welcome additions to optimizers in TensorFlow Addons.
Transferring this issue to tensorflow/addons; @seanpmorgan for visibility.


add synonym to MONDO:0004719 'ichthyosis (disease)'

and add logical def to 'xeroderma of eyelid'
fixes #2081
@pnrobinson and @cmungall can you two (or one of you) review this one?
Tiffany asked for xeroderma to be an exact synonym of ichthyosis (disease) (according to OMOP and Snomed) and from my google search, this seems right: https://www.google.com/search?q=xeroderma&oq=xeroderma&aqs=chrome.0.69i59j0l7.398j0j7&sourceid=chrome&ie=UTF-8

I added the logical def to 'xeroderma of eyelid' - if xeroderma is an exact syn of ichthyosis (disease), then this seemed appropriate.
Thanks!

These are not synonyms!
Please add this definition for ichthyosis
The ichthyoses are disorders of cornification that are characterized by visible scaling and/or hyperkeratosis of most or all of the skin. Inherited ichthyoses, defined as the generalized form of Mendelian disorders of cornification, affect most or all of the skin. This etiologically and phenotypically heterogenous group of conditions is caused by mutations in various different genes important for keratinocyte differentiation and epidermal barrier function. Acquired forms of ichthyosis can be observed with certain autoimmune, inflammatory, metabolic, endocrine, or infectious diseases or with malignancies.
PMID: 22739337
comment:   Epidermal keratinocytes undergo a unique form of terminal differentiation and programmed cell death known as cornification. Cornification leads to the formation of the outermost skin barrier, i.e. the cornified layer, as well as to the formation of hair and nails.  PMID: 23792051
syn fish scale disease or fish skin disease
Probably use this article to develop the hierarchy: https://pubmed.ncbi.nlm.nih.gov/20643494/

Also, I do not think that xeroderma should be modeled as a disease (=dry skin). This is a phenotypic feature of many diseases and can commonly occurs as an isolated feature, e.g., in New England winters. The disease would include the etiology, so in many cases would be something like "Winter rash".
The HPO includes terms for both dry skin, which is clearly a feature, as well as for Ichthyosis HP:0008064 (An abnormality of the skin characterized the presence of excessive amounts of dry surface scales on the skin resulting from an abnormality of keratinization.). In this case, the HPO term refers to the cornification disorder observed in the skin, and is one of the features of the ichtyosis diseases. The diseases have multiple other features: https://hpo.jax.org/app/browse/disease/ORPHA:313
There is no other word in English that captures the skin feature, possible we should chance the label to ichtyotic skin though

Thanks @pnrobinson!
I will close this PR. I created a new PR to add a new def:
https://github.com/monarch-initiative/mondo/pull/2113


Remove the NULL box in leaflet

Remove box located on the top right of the map

Removed line addLayersControl(overlayGroups = c(), options = layersControlOptions(collapsed = FALSE))

Null checkbox removed in commit # 4572228


Free Travis.org is being discontinued

Travis is no longer supporting free services for continuous integration. Other NANOGrav software has been moved to GitHub Actions. See the PsrSigSim and Pint. Both of these have links to various resources for migrating to Actions.

Andrew Kaiser put together CI through actions.


Two Side bars and getting errors

Thanks for the component. We are building a proto-type app, and it's finding its spot in a good place.
I was able to utilize the sidebar on the right side and it works fine.
However, when I tried to add "two" sidebars with different #, I get this odd issue.
Error: Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'.
    at ExpressionChangedAfterItHasBeenCheckedError.ZoneAwareError (zone.js:992)
    at ExpressionChangedAfterItHasBeenCheckedError.BaseError [as constructor] (errors.js:22)
    at new ExpressionChangedAfterItHasBeenCheckedError (errors.js:59)
    at checkBinding (view_utils.js:167)
    at Wrapper_NgControlStatus.checkHost (/InternalFormsSharedModule/NgControlStatus/wrapper.ngfactory.js:33)
    at View_NgTableComponent10.detectChangesInternal (/AppModule/NgTableComponent/component.ngfactory.js:715)
    at View_NgTableComponent10.AppView.detectChanges (view.js:425)
    at View_NgTableComponent10.DebugAppView.detectChanges (view.js:620)
    at ViewContainer.detectChangesInNestedViews (view_container.js:67)
    at View_NgTableComponent9.detectChangesInternal (/AppModule/NgTableComponent/component.ngfactory.js:845)
    at View_NgTableComponent9.AppView.detectChanges (view.js:425)
    at View_NgTableComponent9.DebugAppView.detectChanges (view.js:620)
    at ViewContainer.detectChangesInNestedViews (view_container.js:67)
    at CompiledTemplate.proxyViewClass.View_NgTableComponent0.detectChangesInternal (/AppModule/NgTableComponent/component.ngfa

The container for this is very simple one as below.
<ng-sidebar-container>

  <ng-sidebar #bottombar
              [(opened)]="_displayed"
              [keyClose]="false"
              [position]="'bottom'"
              [mode]="'push'">
    Test

    <button>Test</button>

  </ng-sidebar>
</ng-sidebar-container>

Am I doing something wrong here?
The "#" name for both sidebar are different. Above is "#bottombar", but the other one is called "sidebar"..
Any help is appreciated.

What's the other sidebar like? Is it in the same container? Does the error go away if either of the two sidebars are removed?

They are on their own containers and I tried putting them in one. Same result.
Removing one makes it work of course
Sent from my iPhone

On Mar 11, 2017, at 12:28 PM, Eugene Cheung<EMAIL_ADDRESS>wrote:
What's the other sidebar like? Is it in the same container? Does the error go away if either of the two sidebars are removed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@tosehee75
Not sure if I understood this correctly, but I was able to include 2 sidebars in my project.
My mark up is as follows:
`
<dashboard-header></dashboard-header>

    <ng-sidebar-container>

        <ng-sidebar [(opened)]="_qOpened" position="left" closeOnClickOutside="true" showBackdrop="true" dock="true" dockedSize="60px">

        </ng-sidebar>

        <button (click)="_toggleqSidebar()">Toggle sidebar</button>
    </ng-sidebar-container>

`
Naturally, the  component has another <ng-sidebar-container> with it's own content.

@tosehee75
Not sure if I understood this correctly, but I was able to include 2 sidebars in my project.
My mark up is as follows:

    <dashboard-header></dashboard-header>

        <ng-sidebar-container>

            <ng-sidebar [(opened)]="_qOpened" position="left" closeOnClickOutside="true" showBackdrop="true" dock="true" dockedSize="60px">

            </ng-sidebar>

            <button (click)="_toggleqSidebar()">Toggle sidebar</button>
        </ng-sidebar-container>

Naturally, the <dashboard-header> component has another <ng-sidebar-container> with it's own content.

I was never able to reproduce this. If it's still happening with newer versions, feel free to reopen this.

@CatinhoCR
How do you include two ng-sidebars? I was trying to do the same but without success.
https://stackoverflow.com/questions/48699038/html-to-display-two-ng-sidebar
If you can help me, I'll appreciate. Thanks!

@georgeos You probably want both <ng-sidebar>s within the same <ng-sidebar-container>.

Uffff thanks @arkon !

two ng-sidebars in the same  puts the mode attribute in a state if they are different, ultimately causing errors in application. I am using version 7.2.0. How can this be rectified please?

Open a new issue, and provide more details.

okay will do


Links for events don't go to the right legistar page

If you go to "View on the Metro website" for any event, for example https://lametro.datamade.us/event/finance-budget-and-audit-committee-d2a7a5d39152/
it does not take you to the appropriate legistar page. this is an upstream data issue that I'm trying to resolve right now. If we can't get it fixed we should disable the link.

@reginafcompton, this is not possible to fix now. Please disable these links on event pages.

@fgregg Links are disabled.

DONE...we had two of the same issue.


tutorial needed for ftp

A user who wants to upload many gigs of raw reads and we can't find a tutorial for ftp.

If this now works, we can create the tutorial, but need someone to demo first.

I have created a basic page explaining the data on the FTP site and bulk upload/download to workspace using FTP client


Drive Stats Energy used differs from Charges Dashboard

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Looking at Energy Used across different Dashboards shows different results.
Within Drive Stats Energy usage is not the actual usage but based on cars.efficiency rating.
Expected Behavior
All Results should be identical across dashboards.
Steps To Reproduce

Relevant log output
-

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.30.1

closing this one, numbers are correct
Starting at Efficiency Dashboard:
Consumption (net) -> calculation identical to Drives / Drive Stats
Consumption (gross) -> calculation identical to Charges


Notebook renderers API is not really usable in its current form

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

VS Code Version:1.59
OS Version:Mac

Even though the API is table, there's no way to use this today as we have no idea what Notebook document the messages belong to.
Today the API is as follows:
    /**
     * Message received from {@link NotebookRendererMessaging.onDidReceiveMessage}
     */
    export interface NotebookRendererMessage {
        /**
         * Editor that sent the message.
         */
        readonly editor: NotebookEditor;

        /**
         * Message sent from the webview.
         */
        readonly message: any;
    }

However NotebookEditor has nothing in it in stable
export interface NotebookEditor {}

Hence the API isn't usable, even though its in stable.

I think this is just a request to stabilize the NotebookEditor API? That's coming next month I think.

I think this is just a request to stabilize the NotebookEditor API? That's coming next month I think.


foundation gem seems broken

scl@harp test % ruby --version
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
scl@harp test % npm --version
1.4.28
scl@harp test % bower --version
1.3.12
scl@harp test % grunt --version
grunt-cli v0.1.13
scl@harp test % sass --version
Sass 3.4.11 (Selective Steve)
scl@harp test % compass --version
Compass 1.0.3 (Polaris)
Copyright (c) 2008-2015 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass
scl@harp test % git --version
git version 2.2.1
scl@harp test % foundation new test_project
Creating ./test_project
      create  test_project
Cloning into 'test_project'...
remote: Counting objects: 117, done.
remote: Total 117 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (117/117), 40.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (46/46), done.
Checking connectivity... done.
Installing dependencies with bower...
/home/scl/.gem/ruby/2.2.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `read': No such file or directory @ rb_sysopen - /home/scl/test/test_project/bower_components/foundation/scss/foundation/_settings.scss (Errno::ENOENT)
        from /home/scl/.gem/ruby/2.2.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `block (2 levels) in new'
        from /home/scl/.gem/ruby/2.2.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `open'
        from /home/scl/.gem/ruby/2.2.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in `block in new'
        from /home/scl/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
        from /usr/lib64/ruby/2.2.0/fileutils.rb:127:in `chdir'
        from /usr/lib64/ruby/2.2.0/fileutils.rb:127:in `cd'
        from /home/scl/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
        from /home/scl/.gem/ruby/2.2.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:128:in `new'
        from /home/scl/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from /home/scl/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
        from /home/scl/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
        from /home/scl/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
        from /home/scl/.gem/ruby/2.2.0/gems/foundation-1.0.4/bin/foundation:4:in `<top (required)>'
        from /home/scl/.gem/ruby/2.2.0/bin/foundation:23:in `load'
        from /home/scl/.gem/ruby/2.2.0/bin/foundation:23:in `<main>'

What's wrong in my configuration?
is there some special version to use?
The file _settings.scss  is in this folder:
scl@harp test % ll test_project/scss
total 4.0K
-rw-r--r-- 1 scl scl    0 Feb  6 14:00 _settings.scss
-rw-r--r-- 1 scl scl 1.5K Feb  6 14:00 app.scss

and there's not scss folder in /home/scl/test/test_project/bower_components/foundation/
Why?

here is a simple bash script which works for me:
#!/usr/bin/env bash
app_name=$1
git clone --depth=1 https://github.com/zurb/foundation-libsass-template.git $app_name
pushd $app_name
cat <<- EOF > bower.json
{
  "name": "foundation-libsass-template",
  "dependencies": {
    "foundation": "git@github.com:zurb/bower-foundation.git"
  }
}
EOF
bower install
cp bower_components/foundation/scss/foundation/_settings.scss scss
npm install
grunt build

running this_script.sh project_name works as foundation new project_name --libsass

Strange, so the Bower install of Foundation was just missing the settings file? But when you install the dependencies by hand the file is there?

@gakimball the Bower Foundation file is not missing, I just overwrite it to change "foundation": "zurb/bower-foundation" to "foundation": "git@github.com:zurb/bower-foundation.git", which fix the problem

You can also reference the Bower package directly:
"foundation": "~5.5.1"

I'm not sure why our libsass template doesn't just reference it directly.

using "foundation": "~5.5.1" instead of "foundation": "git@github.com:zurb/bower-foundation.git" failed, it doesn't provide the scss directory in Foundation folder...

great ^^

I ran bower install foundation and inside the package I see CSS, JS, and Sass folders, along with the bower.json. What do you see in the package?

I've just ran bower install foundation, this is the tree -d output:
scl@harp test % tree -d bower_components/foundation
bower_components/foundation
├── css
└── js
    └── foundation

no Sass or Scss folder, complete log available here

complete tree -d output available here

Can you try bower cache clean and then install again?

excellent! that works, and the foundation gem works too
thanks a lot @gakimball
have you an why my bower cache had a wrong version?

We had some hiccups with our last deployment, and Bower likes to cache versions of packages. So it's possible you got a busted version 5.5.1, and after we fixed it Bower wasn't downloading the fixed version, because it was already cached on your machine.


Bind method in scheduler extender

Feature Description

One-line feature description (can be used as a release note): Support for delegation of pod binding to a scheduler extender
Primary contact (assignee): @ravigadde
Responsible SIGs: scheduling-sig
Design proposal link (community repo): #41235 and #41447 have details on requirements and solution options
Reviewer(s) - (for LGTM) recommend having 2+ reviewers (at least one from code-area OWNERS file) agreed to review. Reviewers from multiple companies preferred: @timothysc @k82cn
Approver (likely from SIG/area to which feature belongs): @davidopp
Initial target stage (alpha/beta/stable) and release (x.y): alpha 1.7

@ravigadde please, provide us with the design proposal link and docs PR link (and update the features tracking spreadsheet with it).
cc @kubernetes/sig-scheduling-feature-requests @davidopp

Sorry I can't get to #41235 and #41447. could you please paste a hyperlink ? @ravigadde

PR: https://github.com/kubernetes/kubernetes/pull/41447 , Issue: https://github.com/kubernetes/kubernetes/issues/41235

thanks a lot @k82cn


⚠ Bofrost.es has degraded performance

In b9a9486, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1580 ms

Resolved: Bofrost.es performance has improved in 709d332 after 35 minutes.


Cron schedule runs 3-5 minutes late

cron schedule with specific date and time seems to run about 3-5 minutes late, and schedule for running every minute, seems to be running every 5 minutes.  Is that normal?  Thank you.
Configuration example
Schedule for specific datetime:
{
  "bistro_settings": {
    "resources": {
      "instance": {"concurrency": {"limit": 10, "default": 1}},
      "level1": {
        "my_resource": {"limit": 3, "default": 0}
      }
    },
    "nodes": {
      "levels": ["level1", "level2"],
      "node_sources": [
        {
          "source": "manual",
          "prefs": {
            "node1": []
          }
        },

        {
          "source": "add_time",
          "prefs": {
            "parent_level": "level1",
            "schedule": [
              {
                "cron": {
                  "year": 2017,
                  "month": 5,
                  "day_of_month": 17,
                  "hour": 8,
                  "minute": 50,
                  "dst_fixes": ["unskip", "repeat_use_only_early"]
                },
                "lifetime": 6000,
                "tags": ["tag_job1"]
              }
            ]
          }
        }

      ]
    },
    "enabled" : true
  },

  "bistro_job->job1" : {
    "owner" : "test",
    "enabled" : true,
    "command" : ["/bs/job_script.sh"],
    "priority": 1,
    "resources": {
      "my_resource": 1
    },
    "filters": {
      "level2": {
        "tag_whitelist": ["tag_job1"]
      }
    }
  }

}

Here is my configuration for the task running every minute:
        {
          "source": "add_time",
          "prefs": {
            "parent_level": "level1",
            "schedule": [
              {
                "cron": {
                  "minute": {"period": 1},
                  "dst_fixes": ["unskip", "repeat_use_only_early"]
                },
                "lifetime": 40
              }
            ]
          }
        }

Example Output:
Here is example timestamps showing approx. 5 minute gaps between job runs:
$ date -d +@1494852746
2017-05-15T08:52:26
$ date -d +@1494853041
2017-05-15T08:57:21
$ date -d +@1494853342
2017-05-15T09:02:22

Could you share the scheduler logs?
Here is what I expect is happening:

I bet your add_time nodes are getting made with the correct timestamps. Is that right?
The actual runtimes of the tasks get delayed because: (i) the node refresh period is too low, (ii) the scheduler is heavily loaded or sleeping too long, or (iii) all the workers are busy.

In other words, the "cron" feature makes the task available to run at the promised time, but it may be a while before it can actually be executed.
We should be able to get this delay down to under 20 seconds, though, if you don't mind sharing some more details.

Oh, actually, here is your entire problem -- :D
DEFINE_int32(nodes_update_ms, 300000, "How often to re-read the nodes");

Just pass --nodes_update_ms=5000 or something similar, et voilà!


Wrong classes created on import when creating AP (problem with attributes?)

(see the domain and range of theme clases which do not belong there)
Happened when trying to create an AP of https://mff-uk.github.io/demo-specifications/test1/

Its because you made (in the original vocabulary) two entities with the same IRI. See dcat:theme. This broke the owl export that it generated triples from both properties under the same iri. Import then correctly created these two metaclasses as a union of all domains and ranges for the affected property.

Yes, thats it, Thanks.


Fix total range for hybrid vehicles

Proposed change

Updates total_range logic for hybrid vehicles to the weird API implementation.
See https://github.com/home-assistant/core/issues/85226#issuecomment-1377698300 for more details.
Type of change

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (which adds functionality to this library)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue: https://github.com/home-assistant/core/issues/85226#issuecomment-1377698300

Checklist

[x] The code change is tested and works locally.
[ ] Tests have been added to verify that the new code works.

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

Coverage data is based on head (b334735) compared to base (94ad4ab).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head b334735 differs from pull request most recent head 88a7bf5. Consider uploading reports for the commit 88a7bf5 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff            @@
##            master      #515   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           16        16
  Lines         1245      1250    +5
=========================================
+ Hits          1245      1250    +5

Flag
Coverage Δ

3.10
100.00% <100.00%> (ø)

3.11
100.00% <100.00%> (ø)

3.7
100.00% <100.00%> (ø)

3.8
100.00% <100.00%> (ø)

3.9
100.00% <100.00%> (ø)

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

Impacted Files
Coverage Δ

bimmer_connected/vehicle/fuel_and_battery.py
100.00% <100.00%> (ø)

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.


Restrict secrets to root and gateway namespace

Describe the feature request
As of istio 1.14, all serviceAccounts used by Istio get a ClusterRole that grants them access to ALL secrets on the cluster:
(definition on the ClusterRole istiod-istio-system and versionned equivalent: istiod-clusterrole-1-14-istio-system)
- apiGroups:
  - ""
  resources:
  - secrets
  verbs:
  - get
  - watch
  - list

I believe that the only access to secret that is required are the certificates/TLS secrets for IngressGateways (and some extra secrets on istio-system).
In a lot of cases, the ingress certificates/TLS is scoped to a single namespace (for example we use a specific namespace for all our gateways and all associated secrets).
I would suggest that we add an extra-parameter to the profile that would scope the secrets to a list of namespaces.If the list is empty, only istio-system permissions would be given.
If that parameter is not defined, the default would be to still grant secret read to the whole cluster.
Describe alternatives you've considered
Affected product area (please put an X in all that apply)
[ ] Ambient
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ x ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

In some case istiod needs to fetch secret from all namespaces, like sidecar ingress tls

This is not possible, in sidecar ingress case, istiod need to fetch secrets referenced by sidecars, which can be distributed in any namespace


Update MD file on new branch 2017-27-09_23-12-31

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


add rounded-full to config

There are plenty of reasons to keep this tailwind utility in play... For example, I might want to make a circular loading spinner with just CSS.

Hi Kyle, i merged it and published to npm. Thank you.


Ability to skip prefix cleanup on publish operations

I am publishing multiple large snapshot (e.g. Ubuntu security snapshots) under the same prefix.
I have noticed that aptly became very slow when switching and dropping publishes in that prefix, and the slow part is the "Cleaning up prefix "[...]" components main...".
If I am doing multiple switches or drops, that will take a lot of time and would not re really needed.
I am suggesting adding a -skip-cleanup component to the publish command, that would skip cleanup on all publish operations, and to add the ability to invoke the cleanup of a prefix on demand (aptly prefix cleanup).
Thanks!

Could you please provide more details, are you publishing to local file system? aptly is trying to clean up pool/ directory from package files which are not required anymore (which is non-trivial, as it has to check all the distributions published under this prefix). I wonder which part takes more time here (walking file system or loading package lists).

are you publishing to local file system?

yes

I wonder which part takes more time here (walking file system or loading package lists).

I looked at the process via htop and iotop, and it bounded by user-space CPU activity, and very little IO.
I suspect that the problem is that there are almost 200 published snapshot that share that same pool. Let me know what other info/test may help.

I think we could allow aptly to skip cleanup if request. There's no problem in that except for the fact that we're going to end up with some package files sitting there forever even if they're not referenced anymore. But once publish is run with cleanup enabled, it will take care of those files.

I think we could allow aptly to skip cleanup if requested. There's no problem in that except for the fact that we're going to end up with some package files sitting there forever even if they're not referenced anymore. But once publish is run with cleanup enabled, it will take care of those files.

yes, that would be helpful when switching or dropping many published snapshots at once. Thanks!


material-table schematics not respecting angular.json settings

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Component should be created with the correct file extension
What is the current behavior?
.css is used
What are the steps to reproduce?
ng g @angular/material:material-table --name customerList --dry-run
CREATE src/app/customers/components/customer-list/customer-list-datasource.ts (3405 bytes)
CREATE src/app/customers/components/customer-list/customer-list.component.css (0 bytes)
CREATE src/app/customers/components/customer-list/customer-list.component.html (857 bytes)
CREATE src/app/customers/components/customer-list/customer-list.component.spec.ts (654 bytes)
CREATE src/app/customers/components/customer-list/customer-list.component.ts (747 bytes)
UPDATE src/app/customers/customers.module.ts (687 bytes)

What is the use-case or motivation for changing an existing behavior?
Use-case: Make developers more effeciant
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
in angular.json
    "@schematics/angular:component": {
      "styleext": "scss"
    }

Running ng g c test will give a component with correct extension

Thanks for your issue. The style extension will be respected in the next major version. See: https://github.com/angular/material2/commit/5144aa790dfad54c1340a0e16435ca3f5253b16e


[5.0] Add #available checks for NSKeyedArchiver methods in tests

Cherry-pick from #21301
Resolves rdar://46702315

@swift-ci Please test


Unable to download Fantia posts

I tried to start download but it always shows an error message "Post Error: 1907955" (I believe the number is the post ID used on Fantia) even when trying a different creator.
The error.log file shows
4/24/2023 1:44:37 AM
1907955
at AtelierMisaka.FantiaUtils.GetPostIDsFromWebCode(String uid, Int32 index)
at AtelierMisaka.FantiaUtils.<>c__DisplayClass13_0.<GetPostIDs>b__0()

sorry, Fantia use the google cloud service, I will fix it in next version.


Add ng-forward

To make it easier to migrate to Angular 2, we should integrate ng-forward (https://github.com/ngUpgraders/ng-forward).
It helps writing AngularJS code with a syntax very close to that of Angular 2; see here for details: https://github.com/ngUpgraders/ng-forward/blob/master/API.md

To track: https://github.com/ngUpgraders/ng-forward/issues/161


[Support] Any way to view active connections via PiVPN or WireGuard logs?

In raising this issue, I confirm the following:

[xxx] I have read and understood the contributors guide.
[xxx] The issue I am reporting can be replicated.
[xxx] The issue I am reporting can be directly related to the pivpn installer script.
[xxx] The issue I am reporting isn't a duplicate (see FAQs, closed issues, and open issues).

General Comments
Installation went fairly well, and I am able to connect without issues using WireGuard.  I did encounter a bug with the installation script (ran it via curl -L https://install.pivpn.io | bash) in that I said I would be making connections via a DNS Name (not a static IP), and I was never asked by the script what my DNS Name is.  So I had to edit the configs afterwards to replace my dynamic IP with my DDNS DNS name.
Anyway, the installation script didn't go over this so I am asking a question here.  I am trying to figure out when connections occur via WireGuard.  I want to make sure I know every time there is a connection made to my VPN.  I do not see any way to view logs for this activity, which is very strange.  I know I can run the wg command, but it just tells me which peers were connected and when the latest handshake occurred...  And pivpn doesn't seem to have any ability to show current active clients (again, just "last seen").
Ideally, I would like to see a connection log (like OpenVPN has) where it indicates when a connection starts, IP information, etc.  How can we view WireGuard connection log information?  Thank you.
Have you searched for similar issues and solutions?
(yes/no / which issues?) Yes.

I tried searching for other issues containing "log" but found nothing pertaining to this
Have you taken any steps towards solving your issue?
Yes.

It mentions "Debug Logs" at https://www.wireguard.com/quickstart/, but I was unable to get this working, I think because the version of WireGuard installed by PiVPN does not include the dynamic debugging support, but I'm not sure & would appreciate further info on that too.
Thanks a bunch!  I really like WireGuard and PiVPN, the installation went very smoothly (and I'm using it seamlessly with PiHole as well).  Now I just want to make sure I can increase monitoring around the VPN so I can track when connections are happening. Thank you.

Wireguard is very light weight and does not offer the kind of functions which Openvpn does.
There is no wg --log file , for example.


Inputs not working on iPhone 6

Using an iPhone 6S 12.1.3, Chrome and Safari browsers.
It seems like the input is not working on any of the UI Components examples:
https://nacular.github.io/doodle/#/controls

https://github.com/nacular/doodle/issues/3


NFT Product Analytics Suite Grant Submission

Grant Application
Abstract

Provide a brief description of your project here summarising key points (1-2 paragraphs).
If your application is a follow-up to a previous one, please mention which one in the first line of the abstract and include a link to previous pull requests if applicable.
The details should be in the application document that is being added to the repository via this pull request.

Checklist

[ ] The application template has been copied, renamed ( project_name.md) and updated.
[ ] The total funding amount of the project is below USD $30k for first-time grant applications and $100k for follow-up ones.
[ ] A BTC or Ethereum (DAI/USDT) address for the payment of the milestones is provided inside the application.
[ ] I have read and acknowledged the Terms and Conditions.
[ ] The software delivered for this grant will be released under an open-source license specified in the application.
[ ] The initial PR contains only one commit (squash if needed before submitting your PR).
[ ] The grant will only be announced once the first milestone has been accepted.

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


the difference between musicnn and music600

thanks for your work. it's very cool. I want to known  the difference between musicnn and music600. thanks in advance.

Hi,
Unfortunately, I don't exactly remember this. @andrebola do you remember what it was?

Hi! musicnn600 was trained with 600 epochs and all the other models with max 200.

I close this issue as Andres has already answered the question and there was no further question in the last 2 months.


Added Dutch translation

:)

Hello @Vistaus
Thank you for the contribution,
but could you add the translation at this site: https://crowdin.com/project/andstatus/nl#
Please :-)

@yvolk Done! :-)

Thank you!

@Vistaus I released v.39.00 with your translation. Please check! #456


update: change function type

Changing isSecondUsageAttempt to be a public function as there is no way to check if this is a second usage of the promocode for the same user.

Thanks for update. Nice simple feature added by your pull request. ;) Well done.


Adjusting fast to slow ratio of Ar scintillation light in VD sim

According the ProtoDUNE-DP data, the ratio should be 0.23 (instead of 0.3 currently in the code).

Hi @lpaulucc sorry to arrive late on this! For 0 ppm of Xe, the ratio of fast to slow scintillation light at 128 nm should be 0.23/0.77=0.2987. So, wasn't 0.30 before correct?

@aihimmel may confirm but the idea was to have 23% of fast component for Ar, right? If this is so, I believe this parameter has to be modified.

@aihimmel may confirm but the idea was to have 23% of fast component for Ar, right? If this is so, I believe this parameter has to be modified.

You are right that the idea is to have 23% of the total light to be fast (singlet), it all boils down if this ratio is meant to be singlet/(singlet+triplet) or singlet/triplet. I have seen inconsistent comments in our code, with both possible ratio being mentioned.
If the code that actually uses this ratio is the one in PhotonLibraryPropagation_module.cc:
    //total amount of scintillation photons
    double nphot = static_cast<int>(isCalcData.numPhotons);
    //amount of scintillated photons created via the fast scintillation process
    double nphot_fast = static_cast<int>(GetScintYield(edep, *larp) * nphot);
    //amount of scintillated photons created via the slow scintillation process
    double nphot_slow = nphot - nphot_fast;

then, yes, I would say you are right, @lpaulucc , the ratio is meant to be singlet/(singlet+triplet)! So, all good.


cannot place cursor in between a line of text on the iOS editor

Are you able to reproduce this on master? I might have fixed it inadvertently with another PR
https://github.com/lockbook/lockbook/assets/6198756/939d897f-88cc-4567-a4ae-e9c2f40b5321

confirmed broken in 0.8 and fixed on master

confirmed broken in 0.8 and fixed on master

confirmed broken in 0.8 and fixed on master

closed by accident

probably a yeeting of cursor fixed by travis at some point


Include from and to indexes in Carousel slide.bs.carousel and slid.bs.carousel event

AFAIK it's not included.

It's a feature request. Any thoughts about this request @bardiharborow ?

I don't see why this couldn't be implemented, and it makes sense.

Yes I have the same opinion.
(Feature label is missing 😄 )


i have added the like function

saveLiked in API
fetchLikes from APL
add animation to like icon
used local storage to strict,one like per IP

Hi @misikir21
I've reviewed your pull request and I approve it! :thumbsup:
I really like the changes you made to the code, especially the way you animate like icons. It's going to make a big difference in the overall user experience.
Thanks for your hard work! :sparkles:
Let me know if you have any questions.
:tada: -
:rocket: - Merg the PR into the dev branch


Added @ManageIQ management platform

OK, so this PR needs some love from you guys. ManageIQ is really creating a new category along with the lines of auditing/management/operations. As more tools are launched in this space we may have to consider how to qualify these tools which will be in the next PR
I would really appreciate everyone's feedback on placing this in the proper category. Thanks!
ManageIQ -https://github.com/ManageIQ/
This tool does it all as they say. It is backed by RedHat so you can imagine this is aiming for the Enterprise segment of container/IT operations.
By submitting this pull request I confirm I've read and complied with the below requirements.
Please read it multiple times. I spent a lot of time on these guidelines and most people miss a lot.

I have read and understood the contribution guidelines
Yes
The project submitted conforms to the quality standards outlined in the contribution guidelines
Yes
Go to the contribution guidelines and read it again.

RULES (because you probably didn't read the guidelines):
Links will be tested with awesome_bot. Please make sure your URL to be listed is unique (do some search queries), otherwise put a link at the end of README.md file.

FORMAT

Use the following format: [Name](Link) - Description.
[Name] should be the title of the project
(Link) should be pointing to a GitHub repository, not to a website
Description. should end with a full stop/period
For GitHub repositories, add the name of the author with a link to its GitHub account after the description, like By [@author](GitHub account)

ORDER: The entries are in lexical order (English letter order)
LABEL (Optional): Add one of the following icons next to the project name like [Name](Link) :icon: - Description.

:heavy_dollar_sign: indicates if one needs a paying subscription to use the project.
:construction: indicates that the project is a work in progress/beta release.
:skull: indicates that the project is obsolete, but still worth mentioning it.

I thought about it and the only feature that differenciate them is the audit and optimization.
I don't think we have anything related to that category beside security related audit.
I think if we see more than one tool with these features we can of course create a separate section.
So far, I think it belongs into orchestration so you did it right.
I'm not going to merge it right away, I hope other mainteners will review and comment on this.


FailedPreconditionError: Table already initialized when use Feature Column in Eager mode

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Latest Mac OS
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.8.0
Python version: 3.6.5
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A
Exact command to reproduce: see below

Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
---------------------------------------------------------------------------
FailedPreconditionError                   Traceback (most recent call last)
<ipython-input-2-443ffe416ebf> in <module>()
      7
      8 features = df.to_dict('series')
----> 9 input_layer = tf.feature_column.input_layer(features, columns)

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in input_layer(features, feature_columns, weight_collections, trainable, cols_to_vars)
    275   """
    276   return _internal_input_layer(features, feature_columns, weight_collections,
--> 277                                trainable, cols_to_vars)
    278
    279

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in _internal_input_layer(features, feature_columns, weight_collections, trainable, cols_to_vars, scope)
    200             builder,
    201             weight_collections=weight_collections,
--> 202             trainable=trainable)
    203         num_elements = column._variable_shape.num_elements()  # pylint: disable=protected-access
    204         batch_size = array_ops.shape(tensor)[0]

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in _get_dense_tensor(***failed resolving arguments***)
   3300     # Feature has been already transformed. Return the intermediate
   3301     # representation created by _transform_feature.
-> 3302     return inputs.get(self)
   3303
   3304   def _get_sequence_dense_tensor(

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in get(self, key)
   2098     column = key
   2099     logging.debug('Transforming feature_column %s.', column)
-> 2100     transformed = column._transform_feature(self)  # pylint: disable=protected-access
   2101     if transformed is None:
   2102       raise ValueError('Column {} is not supported.'.format(column.name))

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in _transform_feature(self, inputs)
   3229       ValueError: if input rank is not known at graph building time.
   3230     """
-> 3231     id_weight_pair = self.categorical_column._get_sparse_tensors(inputs)  # pylint: disable=protected-access
   3232     id_tensor = id_weight_pair.id_tensor
   3233     weight_tensor = id_weight_pair.weight_tensor

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in _get_sparse_tensors(self, inputs, weight_collections, trainable)
   2872   def _get_sparse_tensors(
   2873       self, inputs, weight_collections=None, trainable=None):
-> 2874     return _CategoricalColumn.IdWeightPair(inputs.get(self), None)
   2875
   2876

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in get(self, key)
   2098     column = key
   2099     logging.debug('Transforming feature_column %s.', column)
-> 2100     transformed = column._transform_feature(self)  # pylint: disable=protected-access
   2101     if transformed is None:
   2102       raise ValueError('Column {} is not supported.'.format(column.name))

/usr/local/lib/python3.6/site-packages/tensorflow/python/feature_column/feature_column.py in _transform_feature(self, inputs)
   2863         num_oov_buckets=self.num_oov_buckets,
   2864         dtype=key_dtype,
-> 2865         name='{}_lookup'.format(self.key)).lookup(input_tensor)
   2866
   2867   @property

/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/lookup_ops.py in index_table_from_tensor(vocabulary_list, num_oov_buckets, default_value, hasher_spec, dtype, name)
   1097           name="table_init")
   1098       table = HashTable(
-> 1099           init, default_value, shared_name=shared_name, name=hash_table_scope)
   1100     if num_oov_buckets:
   1101       table = IdTableWithHashBuckets(

/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/lookup_ops.py in __init__(self, initializer, default_value, shared_name, name)
    277           name=scope)
    278
--> 279       super(HashTable, self).__init__(table_ref, default_value, initializer)
    280
    281

/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/lookup_ops.py in __init__(self, table_ref, default_value, initializer)
    169         default_value, dtype=self._value_dtype)
    170     self._default_value.get_shape().merge_with(tensor_shape.scalar())
--> 171     self._init = initializer.initialize(self)
    172
    173   @property

/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/lookup_ops.py in initialize(self, table)
    348                             self._values)) as scope:
    349       init_op = gen_lookup_ops.initialize_table_v2(
--> 350           table.table_ref, self._keys, self._values, name=scope)
    351     ops.add_to_collection(ops.GraphKeys.TABLE_INITIALIZERS, init_op)
    352     return init_op

/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/gen_lookup_ops.py in initialize_table_v2(table_handle, keys, values, name)
    404       else:
    405         message = e.message
--> 406       _six.raise_from(_core._status_to_exception(e.code, message), None)
    407
    408

/usr/local/lib/python3.6/site-packages/six.py in raise_from(value, from_value)

FailedPreconditionError: Table already initialized. [Op:InitializeTableV2] name: input_layer/Col2_indicator/Col2_lookup/hash_table/table_init/

Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

import pandas as pd
import tensorflow as tf

tf.enable_eager_execution()
df = pd.DataFrame([['A1', 'A2'], ['B1', 'B2'], ['C1', 'C2']], columns=['Col1', 'Col2'])

columns = [
    tf.feature_column.indicator_column(
        tf.feature_column.categorical_column_with_vocabulary_list(col, df[col].unique())) for col in df.columns
]

features = df.to_dict('list')
input_layer = tf.feature_column.input_layer(features, columns)

Maybe @alextp has some idea on how to avoid re-initialization of lookup tables in eager mode.

Nagging Assignee @rohan100jain: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

This is also the case when using multiple tf.contrib.lookup.HashTable(tf.contrib.lookup.KeyValueTensorInitializer(keys, values), -1,) calls in Eager mode, even when assigning different names in each method.

I'm working on a solution to this problem. I'd estimate a couple of weeks before it gets out.

@rohan100jain Thanks!

Nagging Assignee @rohan100jain: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 49 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

I see the error when using a simple
vocab_table.lookup() operation. Is there any workaround this to run it in eager mode?

@rohan100jain Any updates from your side?

Nagging Assignee @rohan100jain: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 75 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Still have the same issue when I run this tutorial: https://www.tensorflow.org/alpha/tutorials/keras/feature_columns


Eval mold/sold linkers

https://github.com/XRPLF/rippled/pull/4807

interesting

Makes builds waaaaay faster apparently
Faster builds =


[Bug]: VectorStoreIndex insert async not working

Bug Description
I might be looking at it wrong, but the async functions in VectorStoreIndex only seem to get triggered by build_index_from_nodes function and nothing else.
For example:

if we use insert_nodes it calls --> self._insert(nodes, **insert_kwargs)
_insert only calls self._add_nodes_to_index(self._index_struct, nodes, **insert_kwargs)
this completely circumvents the _async_add_nodes_to_index

In fact the only usage of the use_async parameter is in the build_index_from_nodes
Is this the intended behavior? Seems unlikely...
Version
v0.10.57
Steps to Reproduce
Just try to use async for anything BUT the build_index_from_nodes function.
Relevant Logs/Tracbacks
NA

I think besides this, there should be a top level index.ainsert() function. Fixing the issue you ran into would just introduce more nested async, which isn't really helpful imo

That would help. The core of this is that all of the insert functions from BaseIndex also fall into this. For example, the refresh_ref_docs results in a glacial speed of embedding and insertion (we practically process each node 1 by 1). And this function should be faster than the initial index construction.
Relevant to this is also the fact that if we use refresh_ref_docs we also forgo the option of running transformations asynchronously despite the ingestion_pipeline providing for arun_transformations

@logan-markewich here's a quick fix we ended up using. I guess you'd want to integrate these methods into the BaseIndex instead of extending the VectorStoreIndex; but for us that would mean we have to recreate a new vector store index as well. This was created using already existing methods in LI's that just weren't utilized.
Further improvements can be done by adding adelete_ref_docs method.
class CustomVectorStoreIndex(VectorStoreIndex):
    """
    A subclass of VectorStoreIndex that accommodates asynchronous document ingestion
    during the refresh or update processes of the index. This class enhances the functionality
    of the base class by providing asynchronous operations for inserting and refreshing documents
    within the vector store.

    Methods
    -------
    ainsert(documents, doc_hashes, insert_kwargs)
        Asynchronously inserts a list of documents into the vector store.

    arefresh_ref_docs(documents, **update_kwargs)
        Asynchronously refreshes documents in the index that may have been updated or changed.
    """

    async def ainsert(
        self,
        documents: list[Document],
        doc_hashes: dict[str, str],
        insert_kwargs: Any,
    ) -> None:
        """
        Asynchronously insert documents into the vector store index.

        Parameters
        ----------
        documents : list[Document]
            A list of documents to be inserted into the vector store.
        doc_hashes : dict[str, str]
            A dictionary mapping document IDs to their corresponding hashes.
        insert_kwargs : Any
            Additional keyword arguments to be used during the insertion of nodes.

        Returns
        -------
        None
        """
        with self._callback_manager.as_trace("insert"):
            nodes = await arun_transformations(
                documents,
                transformations=self._transformations,
            )

            for node in nodes:
                if isinstance(node, IndexNode):
                    try:
                        node.dict()
                    except ValueError:
                        self._object_map[node.index_id] = node.obj
                        node.obj = None
            with self._callback_manager.as_trace("insert_nodes"):
                await self._async_add_nodes_to_index(
                    nodes=nodes,
                    index_struct=self.index_struct_cls(),
                    show_progress=True,
                    **insert_kwargs,
                )
                await self.docstore.aset_document_hashes(doc_hashes)
        return None

    async def arefresh_ref_docs(
        self, documents: Sequence[Document], **update_kwargs: Any
    ) -> list[bool]:
        """
        Asynchronously refreshes an index with documents that have changed, ensuring
        the index is up-to-date with the latest document versions.

        Parameters
        ----------
        documents : Sequence[Document]
            A sequence of documents to be refreshed in the index. Each document is checked against
            the existing document in the store to determine if it needs updating.
        **update_kwargs : Any
            Arbitrary keyword arguments. These could include parameters for delete and insert operations
            such as `delete_kwargs` and `insert_kwargs` which are dictionaries of additional parameters.

        Returns
        -------
        list[bool]
            A list of boolean values indicating whether each document was refreshed (True) or not (False).
        """

        with self._callback_manager.as_trace("refresh"):
            refreshed_documents = [False] * len(documents)
            docs_to_insert: list[Document] = []
            doc_hashes: dict[str, str] = {}
            for i, document in enumerate(documents):
                doc_id = document.get_doc_id()
                existing_doc_hash = self._docstore.get_document_hash(doc_id)
                doc_hash = document.hash

                if existing_doc_hash is None:
                    docs_to_insert.append(document)
                    doc_hashes[doc_id] = doc_hash
                    refreshed_documents[i] = True
                elif existing_doc_hash != document.hash:
                    docs_to_insert.append(document)
                    doc_hashes[doc_id] = doc_hash
                    self.delete_ref_doc(
                        doc_id,
                        delete_from_docstore=True,
                        **update_kwargs.pop("delete_kwargs", {}),
                    )
                    refreshed_documents[i] = True

            await self.ainsert(
                documents=docs_to_insert,
                doc_hashes=doc_hashes,
                insert_kwargs=update_kwargs.pop("insert_kwargs", {}),
            )

            return refreshed_documents

Hello @belmmostest
I ran into a similar problem where I needed to use an async insert_nodes method.  I was considering writing a custom async insert_nodes method to address this issue. Before I do, I'm curious if your  CustomVerctorIStoreIndex has seen any performance improvements in relation to node insertion.

Hey @RakeshReddyKondeti. The level of improvement will depend on the stores you are using,  it also depends on whether you are hosting on a server or locally. There are a lot of moving parts, so take this into account.
Using PGVectorStore (remote) we noticed improvements of 1500% (60s to 4s). The inclusion of arun_transformations and async embeddings contributes a lot to this.
If you're using _vector_store.from_documents or (like us) refresh_ref_docs to ingest a large number of files the way the default is set up means that you parse -> embed -> insert document-by-document, which is quite slow.

Thanks @belmmostest ! I'm new to building RAG applications and I've encountered a challenge with document ingestion that I hope you can help me with.
I'm working with a large document corpus that's too big to ingest all at once due to memory constraints. To address this, I've implemented a batch processing approach using the iter_data() method. I'm then ingesting these batched nodes into a Qdrant local instance as my vector store. Here's the code snippet I'm currently using:
async def index_documents() -> None:
    docs = data_loader.iter_data(show_progress=True)
    batch_size = 50
    for batched_docs in iter_batch(docs, batch_size):
        batched_docs = [item for sublist in batched_docs for item in sublist]

        nodes = await ingestion_pipeline.arun(documents=batched_docs,
                                                                       show_progress=True,
                                                                       )

        vector_index.insert_nodes(nodes, show_progress=True)  # ainsert_nodes() is not implemented in llamaindex

I have two questions regarding this implementation:

Given that I'm using a Qdrant local instance as my vector store, would implementing a custom asynchronous method for insert_nodes() significantly improve the ingestion speed?
Could you clarify when to use refresh_ref_doc() and insert() methods? Which would be more appropriate for this ingestion process?

@RakeshReddyKondeti
it should be something like
import asyncio
from typing import List, Any

async def process_batch(batched_docs: List[Any], semaphore: asyncio.Semaphore) -> None:
    async with semaphore:
        nodes = await ingestion_pipeline.arun(documents=batched_docs, show_progress=True)
        await vector_index.insert_nodes(nodes, show_progress=True)

async def index_documents() -> None:
    docs = data_loader.iter_data(show_progress=True)
    batch_size = 50
    concurrency_limit = 5  # Adjust based on your system's capabilities
    semaphore = asyncio.Semaphore(concurrency_limit)

    async with asyncio.TaskGroup() as tg:
        for batched_docs in iter_batch(docs, batch_size):
            flattened_batch = [item for sublist in batched_docs for item in sublist]
            tg.create_task(process_batch(flattened_batch, semaphore))


WIP pythonPackages.pypdftk: init at 0.4

Motivation for this change
Add a python wrapper for pdftk to fill out pdf forms easily.
Thinks I need help with
As this is my first python package I based this one on a copy of pypdf.
It is important to me that someone oversees this package and helps me to make it ready to merge.

I'm not sure if doCheck = !(isPy3k); is necessary
pdftk was inherited because pypdftk depends on it. Did I include it the right way?
the build time is quite long which confuses me

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ x ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

I wanted to evaluate pypdftk today so I gave this a try and spotted a few things. (It didn't ultimately appear to do what I needed, so I haven't given its functionality a good workout really).

The pypi package at this release/version doesn't include test.py
There's no corresponding tag/release on github, so I had to manually figure out which commit was equivalent. I asked at https://github.com/revolunet/pypdftk/issues/28 for a tag/release on github.
Pypdftk needed a little help finding pdftk. I'm not sure if I did this "right", but I had to forcibly supply it to the tests via env and add it to propagatedBuildInputs for regular use.
The tests were broken at this commit/release anyways. They've been fixed in an unreleased commit (https://github.com/revolunet/pypdftk/commit/fb66dcf27c173d5c37562c1e65ada3ebf1462129), so if we want the tests to run we'll either need to use an unreleased commit or wait for upstream to cut a new release.

I'm not sure that I've done everything correctly, either, but in case it helps move this forward, this is roughly where I ended up:
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, pdftk
}:

buildPythonPackage rec {
    pname = "pypdftk";
    version = "unstable-2020-05-29";

    # Using GH latest for now. Release 0.4 on pypi is:
    # - missing test.py
    # - tests were broken at this release anyways :P
    src = fetchFromGitHub {
      owner = "revolunet";
      repo = pname;
      rev = "6ddcc2efb083b6774265b7849bb5f48194fde11c";
      sha256 = "1g7dly946hm9zbsrs0w7354a5z0gi0a5agsaimbl18lbszkbmhkv";
    };

    propagatedBuildInputs = [ pdftk ];

    checkPhase = ''
      PDFTK_PATH=${pdftk}/bin/pdftk ${python.interpreter} test.py
    '';

    meta = with stdenv.lib; {
      description = "Python wrapper for PDFTK";
      homepage = "https://github.com/revolunet/pypdftk";
      license = licenses.bsd2;
      maintainers = with maintainers; [ cap ];
    };
}

Triage: still interested in this?

Tentatively closing. Happy to reopen if anyone objects.


HolyC not included in the list of languages

HolyC repositories don't have a language bar and the language is not being detected correctly.
Here's an example HolyC repository:
https://github.com/tramplersheikhs/megaman
HolyC is a language developed by Terry A. Davis for the Temple Operating System.

See the guidelines to add support for a new language to Linguist. If HolyC meets the requirement on in-the-wild usage, don't hesitate to open a pull request.


Fix force cyling to a map, fixes #781

This is the only fix for https://github.com/twizmwazin/CardinalPGM/issues/781 I could think off.
The issue is that getting the joined string also contained the flag -f

Perhaps rather than replacing it directly, can we check if the last argument is a flag and then replace it then? Theoretically a map name could be "Ipsum-florem"

@twizmwazin the issue then is that a flag can be at any point in the command, not necessarily last

what if we checked it for being standalone so
-f with the extra white space, that way we know for certain it's a flag

Maybe search for a " -f  " space before and after the flag, or " -f"+end (without space, but at the end of the command)

The flag should be respected as such outside of the map name. If someone tries /cycle 5 Race for -f Victory 2, it should say map not found. However /cycle 5 -f Race for Victory 2 or /cycle 5 Race for  Victory 2 -f should both work.

Then just try to find it after the number, (3rd argument) or at the end

@twizmwazin the issue only arrises when we used #getJoinedString() if we get say the string at index 0 from this command /cycle -f 0 it will return 0, so what if instead of using getJoinedString we just keep appending the map name upntil there are no other indexes left or it reaches a -f on it's own

if you can address those two line comments I'll merge this


Exclude PrepareContext method from DBTX interface when emit_prepared_queries is false

What do you want to change?
I wanted a DBTX interface w/o PrepareContext when emit_prepared_queries is false in Go.
What do you think?
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go

It's a reasonable request. That said, this would be a backwards-incompatible change to the interface of DBTX. I think the best solution in the short term is to keep the interface the same and just require a dummy PrepareContext method. I know that's not ideal, but breaking existing code is a non-starter.


Invalid memory address or nil pointer dereference  on some Container

Just tried out the latest version and on Stats+Top I got:
panic: runtime error: invalid memory address or nil pointer dereference                                                ID:             4be8a0e849e5  Status:  Up 11 days
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xa94826]
goroutine 114 [running]:
github.com/moncho/dry/appui.(*ContainerStatsRow).Update(0xc420086780, 0xc420319560, 0x0)
 IP Ad/opt/gocode/src/github.com/moncho/dry/appui/stats_row.go:148 +0x26
github.com/moncho/dry/app.statsScreen(0xc420319560, 0xc42000a160, 0xc4203a25c0, 0xc420075500, 0xc4201dc010)
        /opt/gocode/src/github.com/moncho/dry/app/container_events.go:378 +0x3df
created by github.com/moncho/dry/app.(*cMenuEventHandler).handleCommand
        /opt/gocode/src/github.com/moncho/dry/app/cmenu_events.go:139 +0x650

This repeatedly  happens on the Portianer Instance.  However not all containers are affected.

Fixed in release v0.9-beta.5.