How to request / help implement new languages for posts?

Is there any chance of further languages be added? I'd love to be able to have snippets in lots of languages but I'm not sure how difficult that is to implement.

How does adding new languages work / is it very difficult?
Could there be a petition or request system for new languages (similar to how repl.it lets users vote on new language candidates)
If adding languages is difficult, can we contribute to the code and help add them ourselves?

I think a lot of flexibility on language choice would be a huge boon to Epiphany's utility and appeal. Imagine if we could run small SQL snippets using in-browser sqlite?! Or if I could implement a small DSL in Clojure and then use that for the rest of my snippets?! (ie, the context of one snippet could be carried on).
Just ideas, not sure which of these if any are doable.

Ya, I want this platform to be language agnostic. I myself am not a python or js programmer to be honest. I write C++ for most of my time. I hoped to on board c++ inspired by https://tbfleming.github.io/cib/#gist=3e3b86b9d70d87a38cc61bfba2f12a79
But the project is bigger than I thought, I will try again later.
The way I add a new language is through webassembly. As long as a language's compiler or interpreter is compilable to wasm, I think supporting it should be possible, but the process won't be that straightforward.
Please let me know what language you want? We can start a petition here. I will investigate it at least to see how hard it will be .
Yes, a plugin system would be nice. I thought about it too, but I don't know how to implement it yet. It's not easy to have a robust and secure implementation though (https://www.figma.com/blog/how-we-built-the-figma-plugin-system/) .
I thought about supporting more languages, more low code environments, like https://cindyjs.org/
I also thought about adding sheet music ... There will be a lot of possibilities.
I intent to opensource 70% of the code base , including the website's frontend as a standalone editor. So people don't have to write on the platform , they can open and save files locally. And also the website backend framework, (it's in C++).

I personally would be very, very happy if any Lisp language could be added, and I think ClojureScript would be a great candidate. It compiles to JavaScript, which is already supported, so it should be (relatively) easy compared to many alternatives.
C++ would also be great! I do a lot of C so I'd be immensely grateful for that as well!

I have done some study. ClojureScript has something called self-hosting. It seems to be similar to js' eval.
http://nbeloglazov.com/2016/03/05/getting-started-with-self-hosted-cljs-part-1.html
I know very little about lisp. It will be some learning curve for me. But I will spend sometime next week to figure out how to on board it.
Essentially, there are two things I need to figure out.

how to drive this self-hosting thing from javascript. Existing examples are all written in clojurescript.

how clojurescript/js interop can be implemented, because I need to provide the clojure environment the same API to output text and create canvas.

Wow, super exciting! I hope you can make it work!
Thanks

It's actually easier than I thought!
I have a experimental support now:
https://epiphany.pub/@shi-yan/Test-ClojureScript
Would you like to test it?
There are some issues still, but I think I have a good start.
Looking forward to your post using ClojureScript. I'm totally a newbie.

The ability to open and save files locally sounds very useful. What sort of format do you intend to use? The Polynote notebook recently open sourced by Netflix uses the Jupyter .ipynb format, although I think it struggles with metadata and output cells.
Jupytext supports a range of markdown flavoured text formats which capture "input" cells (text, code) but not the output elements.
If epiphany save to/from any of those formats, or saved to a format that could be converted to/from those formats, it could open up some interesting interoperable, and even round tripping, workflows.

Thank you for the suggestions.  the current format is inspired by jsmd. I tried to find docs for you, but I couldn't.
I want to avoid ipynb, because it's not human readable.
the current format is visible here.
https://epiphany.pub/commit?postId=2684bc94f9fcb9ffe637ebfbeba2af8c797c6ad9a66181026ee4bd3806b6f211&commitId=754f41027151fc93c873a74ac876b58bee9c1c79
I will look into interoperability.

Thanks.
Jupytext supported formats are listed here: https://jupytext.readthedocs.io/en/latest/formats.html

Early in the thread there was talk of possible support for C/C++. I was wondering if that's still on the table. Thanks!

Yes, that's exactly what I am working on right now. But it's difficult, because of poor debuggability.
I was able to compile clang into wasm. And my wasm clang could build a very simple cpp code, (empty main function)
But as soon as I include some header file, like , I saw tons of issues. It seems that clang can't parse the header file properly saying it's not a utf-8 file or something.
debug tooling for wasm is kinda bad. I don't have good ways to debug it other than logging...


nerdctl does not create directory when mounting a not existing directory from host

When i try to make this command:
sudo nerdctl run -d --name test -h test -v /u02/TEST_DIRECTORY:/TEST_DIRECTORY image_name:1.12
and this directory does not exist the following error occurs:
FATA[0000] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/u02/TEST_DIRECTORY" to rootfs at "/TEST_DIRECTORY": stat /u02/TEST_DIRECTORY: no such file or directory: unknown

It would be cool if nerdctl creates a not existing directory just as docker does.
Nerdctl version:
sudo nerdctl --version

nerdctl version 0.17.1

OS Version:
cat /etc/os-release

NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.4 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.4:GA"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.4"

Seems a duplicate of https://github.com/containerd/nerdctl/issues/472


Insane query time to library API when provided key is not valid

Turns out the API 504s when API key is invalid...


HTML in markdown always getting escaped

Have a feeling I could be missing something very obvious here so apologies if this has already been addressed, but any markup in my markdown seems to be getting escaped with no way to override this behavior. I've tried modifying the sanitization options as well as the toHast options but to no avail. As far as I can tell this doesn't work in the remark-react demo either. Something like:

Testing

gets converted to:
\u003ch2\u003eTesting!\u003c/h2\u003e\

Could someone point me in the right direction here?

Hi @zsherman, welcome!
The (main?) reason to use remark-react is to create React elements from markdown without resorting to dangerouslySetInnerHTML, as that’s a potentially hazardous safety concern.
There’s no way to do this perfectly, that I know of, but there’s three alternative solutions that may help:

Use remark-html instead, it allows compiling to HTML, then you can dangerouslySetInnerHTML the result
Use markdown-to-jsx, it has some smart things to parse some basic HTML
Use remark-rehype, rehype-raw, and rehype-react. This creates React’s virtual dom just like a browser does, so it’s very powerful, but the downside is that it contains an HTML parser (which is huge, of course).

Those are all built on the remark/rehype ecosystem. I don’t know about better solutions outside that ecosystem, but YMMV.
Hope this helps!
Titus

@wooorm thanks for the thorough response! Just tried markdown-to-jsx and that did the trick 👍


[CS2103-F09-4] Connections

CONNECTIONS is an address book best suited for forgetful university students and Teaching Assistants who are part of many friend groups, love birthday celebrations, and send mass emails frequently. It is optimised for providing birthday reminders and sending mass emails to groups of contacts.

Codecov Report

Merging #62 (46dc16f) into master (ba53b8c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #62   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

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


PowerShell task does not run on assigned user or devices

Hello,
Following the instructions on the page i've setup a powershell script to run on the "TestUser" group which I have created in Microsoft Endpoint Manager. This group consists of 2 users and 2 devices, however despite trying several times, the script to restore the shortcut's deleted by the microsoft defender update still does not run. It simply lists the script as "0 successes, 0 errors on 0 devices".
Trying to run the restore.ps1 script on my device locally throws a "UnauthorizedAccess" error.
How do I fix this? I've searched around and made sure that my device and workaccount are linked/enrolled via Azure AD, yet I still cant make the restore shortcut script run.
Under device status in the script my device is simply listed as "Status: Unknown", yet I can see OS version, device ID and username associated.

Have you set to run in system context?

Needs to look like that.

You need to run this against Computers, not Users.  A user-based group will likely fail.

@ckennedy666 i've added both devices and users to the group. So why doesnt it run on the chosen devices in the group?

I've only had success with a device only group.

I've only had success with a device only group.

Even if a group only contains devices, then it still doesnt work


Add String::from_utf8_lossy and String::from_utf8

Buffer::to_string() or Bytes::to_string?

@Lampese No, IMO they are too ambiguous.
For the Bytes b with the value of [65], what should be the output of b.to_string()?

[65]
A if we treat it as utf8
Error if we treat it as utf16

It would be better to support bidirectional conversion btween UTFs instead of providing only one way interface. I remember this was requested elsewhere before.

@chawyehsu This provides the most intuitive API for converting UTF8 to a built-in String. What's the alternative API design for this?

I wrote an implementation：
https://github.com/suiyunonghen/moonvalue/blob/master/src/utf8.mbt


Background app 30 sec after that music not playing always player state show paused.

Background Task 128 ("Called by KDEAudioPlayer, from $sSo13UIApplicationC19beginBackgroundTask17expirationHandlerSo012UIBackgroundD10IdentifierayycSg_tFTO"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.

Hello any one have solution please help me,
i have use KDEAudioPlayer it's working good but when app is in Background mode & i play youtube video above 30 sec after that music not play in my app. i need to launch app again.

I'm having the same problem with this with iOS 15 or 16. Easy to replicate. Just pause the music from your app, background the app, then set a timer for x seconds, and after the timer ends. return to the app and the app won't work properly using this Library.  Any help will be appreciated!

@eddieespinal
When our app state background to foreground than set again all song data.
U can try this library to solved issue.
https://github.com/dimitris-c/AudioStreaming

@maulik3107 That library won't work as it doesn't support .m3u8 files. I do like that it supports EQ.  Do you have any solution to the current issue with the AudioPlayer background issue?

Can u please send  demo so i can check that and solved that issue


Add support for EditUserText endpoint

This api enables editing posts / comments. I needed to expose the raw markdown as part of this so that the 2X client can actually edit that
I'll squash all the [wip] commits into one commit when this is done with review and give it a proper message.
👓  @phil303  || @uzi  || @nramadas

one comment but seems good overall :nail_care:

Same thoughts as @phil303

:haircut_man:

:fish:


Edit option in JsonHero

I have installed the extension 'jsonhero.io tools for VS Code'. It opens the .json file in the browser but it does not have an edit option. Could you please let me know where do I get the edit option when the file opens in the browser. Thanks.

Hi @SonalikaG, we don't currently support editing while in the browser, but it's definitely a feature we plan on adding in the future 👍

@ericallam editing is a very basic feature. We really need it!

@ericallam Any update on this? Is there any roadmap existing? :)

@ericallam editing is a very basic feature. We really need it!


Robo reports error even if suppressed

If php encounters an error that is suppressed via the @ operator, Robo still reports it as an error after the task execution.
class RoboFile extends \Robo\Tasks
{
    public function testError()
    {
        @unlink('/not/existing/file');
    }
}

I don't know if there is another solution than checking the triggering line for an @ and not report the error if this is the case.
It may not be a severe issue (i just encountered it in a doctrine command), but maybe it's worth thinking about.

Seems to be like that, yes.
We also had this failing our build.
But the @-operator is really bad practice, so this is the way to go: https://github.com/burzum/Robo/commit/4bcc7ec5eee51bc36250fed0e496a9abce111b61
But if it is in a thrid party lib, you seem to be out of luck.
Maybe submit a PR there?

True that it is a bad practice and one could even argue that maybe PHP is not consistent in handling this.
There seems to be an easy solution to write a custom error-handler and check the error_reporting() for the current level (it will be 0 in case of a suppressed error).
I will create a PR later, then the maintainers can decide if they want to include it.

@DavertMik has the last word but if your PR is OK code wise I think this could be added. :+1:


Application start fails due to "java.lang.ClassCastException: io.dropwizard.util.Size cannot be cast to java.util.Optional"

Hi!
Has anyone seen this error already? I am using Dropwizard 1.1.0.
It happens while validating some fields (e.g. inputBufferSize field) in io.dropwizard.jetty.HttpConnectorFactory even if I do not specify a server block in my configuration YAML, so the default values are used.
java.lang.ClassCastException: io.dropwizard.util.Size cannot be cast to java.util.Optional
	at org.hibernate.validator.internal.engine.valuehandling.OptionalValueUnwrapper.handleValidatedValue(OptionalValueUnwrapper.java:20)
	at org.hibernate.validator.internal.engine.ValueContext.getCurrentValidatedValue(ValueContext.java:121)
	at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:110)
	at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.validateConstraints(ConstraintTree.java:87)
	at org.hibernate.validator.internal.metadata.core.MetaConstraint.validateConstraint(MetaConstraint.java:73)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateMetaConstraint(ValidatorImpl.java:620)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:583)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForSingleDefaultGroupElement(ValidatorImpl.java:527)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForDefaultGroup(ValidatorImpl.java:495)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:460)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:410)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateCascadedConstraint(ValidatorImpl.java:761)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateCascadedConstraints(ValidatorImpl.java:684)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:419)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateCascadedConstraint(ValidatorImpl.java:761)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateCascadedConstraints(ValidatorImpl.java:684)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:419)
	at org.hibernate.validator.internal.engine.ValidatorImpl.validate(ValidatorImpl.java:207)
	at io.dropwizard.configuration.BaseConfigurationFactory.validate(BaseConfigurationFactory.java:237)
	at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:129)
	at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:92)
	at io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:124)
	at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:72)
	at io.dropwizard.cli.Cli.run(Cli.java:74)
	at io.dropwizard.Application.run(Application.java:89)

The same also occurs sometimes for io.dropwizard.util.Duration (e.g. idleTimeout field).
Best regards
Maksym

I think I found how you can reproduce this!
Enable TRACE level logging for org.hibernate.validator, so the line 108 in org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree gets executed and you get those ClassCastExceptions.

For enabling TRACE in Hibernate you need org.apache.logging.log4j:log4j-core and log4j2.xml on your classpath.
log4j2.xml example:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
    <Appenders>
        <Console name="console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %class{36}:%M(%L) - %msg%n"/>
        </Console>
    </Appenders>
    <Loggers>
        <Root level="trace">
            <AppenderRef ref="console"/>
        </Root>
    </Loggers>
</Configuration>

@maksymgendin Please provide a minimal project (Maven or Gradle build) to reproduce the problem.

@joschi https://github.com/maksymgendin/dropwizard-error

Even I'm getting the same error when I use log4j2

Hey, any idea when this will be released?

I think the issue is still open, the linked pull request doesn't fix it.

@joschi Any idea when a fix will be ready? Also any advice in the mean time as to how to work around this?

I'll leave it to log4j2 users to post if they've found a workaround, but I have no idea when a fix will be ready as I don't know where and why this bug is occurring.

The only workaround that I know is setting the log4j2 log level for Hibernate validator higher than TRACE.

Is this still being tracked? I'd love to get my logs back.

Investigated some more. This is not tied to log4j2, setting dropwizard-example test-example.yml to have
logging:
    level: TRACE

will cause the failure.
DEBUG will not cause the failure.
A failure only on a TRACE level is bizarre, I git grep 'isTraceEnabled' on hibernate validator (Dropwizard has no isTraceEnabled statements) and nothing stood out that it would involve a cast.
As a temporary fix, like @maksymgendin mentioned, one can set hibernate level to a level higher than TRACE
logging:
    level: TRACE
    loggers:
       "org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree": DEBUG

This naturally leads me to suspect that issue is with the isTraceEnabled statement in CosntraintTree 🤔

Reported upstream as HV-1352. Dropwizard users can use the provided workarounds until fixed upstream.

@maksymgendin I'm unable to reproduce the issue with Dropwizard 1.2.4 and 1.3.0-rc7, so I guess it has been solved by upgrading to a newer version of Hibernate Validator.
Please add a comment if the problem still occurs for you with the latest stable version of Dropwizard.

@joschi Yeah, seems to be fixed in 5.4.2.Final. Thanks for reporting, @nickbabcock!


PEP-8 style issue detected in ./src/offsetanalysis.py:11:1:

W293 blank line contains whitespace

Fixed in #123


diff fails on ARCHIVE tables

Here is the error I get:
Execution of target "sql-diff-template" failed for the following reason:  Table "some_archive_table" does not have a primary key defined. Propel requires all tables to have a primary key.
I also read somewhere that this happens for views as well.

Sure.
My MySQL database consist of MyISAM, InnoDB and some Archive tables.
After configuring the migration as suggested on Propel documentation, I get the above error while running propel-gen diff.
Naturally, Archive table cannot have a primary key, thus there is no much I can do to workaround this error...
To reproduce:

Create a new archive table, like this: create table archive_users(id int, name varchar(20) ) engine=ARCHIVE ;
propel-gen diff

I guess you didn't use Propel to generate your archive table, and you don't use Propel to read/write it, right? It just happens to be in the same database where you store data managed by Propel?
Anyway, the migration engine must know how to deal with pk-less tables - be it for views or archives. You have a good point, we must look into a fix.

Right, those tables were created and managed separately.
Thanks!


ModuleBuildError: Module build failed: SyntaxError: Unexpected token

Recently (since yesterday), new install are broken with this kind of message
✔ ModuleBuildError: Module build failed: SyntaxError: Unexpected token (8:4)

   6 | const store = createStore(
   7 |   combineReducers(phenomicReducers),
>  8 |   { ...(typeof window !== "undefined") && window.__INITIAL_STATE__ },
     |     ^
   9 | )

This is due to latest babel-loader version (6.3.1). This PR https://github.com/babel/babel-loader/pull/379 introduces a regression for us somehow.
See https://github.com/babel/babel-loader/issues/381 for a resolution.
Meanwhile, use<EMAIL_ADDRESS>not 6.3.1

Should be fixed by<EMAIL_ADDRESS>


Feature/install target

This is a rather big rework of the cmake in order to include a install target.
The primary goal of this target is to allow clean installation where the intermediate files (like CMakeCache or .o binary files) are not in the final install folder (similarly to G4 and ROOT).
A couple of modifications were made:

this relies on two cmake files called PackageBuilder which contain useful macros for making this easier. We could live without them and have less macros, but this made my life easier. These macros are used in other packages (HK, P-Theta...) and are rather well-maintained.
Instead of one single library (WCSimRoot), two libraries are created:

WCSimRoot: related to the linkDef and root libraries
WCSimCore: contains all the classes needed by the WCSim executable (so that people could just link to this one instead of compiling any source file)

the install target will copy all the libraries, executables, data files, cmake config files and headers to a location defined by the -D CMAKE_INSTALL_PREFIX=XXX option. If none is provided, make install will copy things into the binary folder (where the cmake command was run).
A WCSimConfig.cmake file is produced: this offers the possibility to use CMake instructions like Find(WCSim <version>) in derived projects (very useful for HK where projects like hk-eventDisplay will use such Find instruction to find ROOT and WCSim).
A generic this_wcsim.sh file is produced with the install target, this sets PATH and LD_LIBRARY_PATH to point to this installation. (could be called within other setup bash script)
support to Root5 was not tested, only Root6 (not sure where I can find a Root5 installation in order to test this).

Hi,
I have a couple of comment:

Can you modify ./make.sh to work with this solution?
For ROOT5 / ROOT6 test this can be done on sukap (call setup/env_sukap.sh 5 to load ROOT5)

setup/env_sukap.sh is actually outdated, here is the updated version (feel free to include it in the PR, I can't easily make one since I have another PR pending for the nuPRISM fork)
#!/bin/bash

# ROOT version as argument, default value is 6 for ROOT6
#ROOT_ARG=5
ROOT_ARG=6

if [ ! -z "$1" ] ; then
	echo "ROOT version requested to be: ${1}"
	ROOT_ARG=$1
fi

############################
# ROOT/CERN
############################

if [[ "$ROOT_ARG" == 5 ]] ; then
	echo "Use ROOT5"
	# Note: official ROOT 5.34 installation on sukap is not compatible with cmake
	#  Temporary use Guillaume Pronost's version. Should change in the future.
	#
	export ROOT_DIR=/home/pronost/software/root-5.34.38-build
	export ROOT_STR=ROOT5
else
	echo "Use ROOT6"
	# Note: There is no official ROOT 6 installation
	#  Temporary use Guillaume Pronost's version. Should change in the future.
	export ROOT_DIR=/home/pronost/software/root-6.22.00-build
	export ROOT_STR=ROOT6
fi

# Note: There is no official ROOT 6 installation
#  Temporary use Guillaume Pronost's version. Should change in the future.
#export ROOT_DIR=/home/pronost/software/root-6.22.00-build
source ${ROOT_DIR}/bin/thisroot.sh

alias root='root -l'

############################
# GEANT4
############################

pwd=$PWD
GEANT4VERSION=geant4.10.05.p01
cd /usr/local/sklib_gcc8/geant4.10.05.p01/bin/
source geant4.sh
cd /usr/local/sklib_gcc8/geant4.10.05.p01/share/Geant4-10.5.1/geant4make/
source geant4make.sh
echo "Connect a PATH of Geant4.10"
cd "$pwd"

############################
# WCSim
############################
export BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
export WCSIMDIR=$(pwd)-build/ROOT${ROOT_ARG}/$BRANCH_NAME
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WCSIMDIR

Thanks @gpronost
@guiguem if you do decide to pull the env_sukap.sh changes in, then please take them from https://github.com/WCSim/WCSim/blob/1fed529357c3bda86f8a533d52c089b5be977dbb/setup/env_sukap.sh instead (part of #336). There's a couple of quality of life improvements (use the variable $GEANT4VERSION, checking that the $ROOT_ARG variable is valid (i.e. either 5 or 6, setup an environment vairable to point to the github source directory)
Anyway, checking make.sh works (and updating it if it doesn't) is a very good idea. This file should be resource agnostic (i.e. can be run anywhere, not just sukap)

Hi @gpronost and @tdealtry sorry for the slow ping!
Thank you both for the suggestions.

I have fixed the typos (and not correctly copied files)
I made a Dockerfile.cmake file which installs using this new system; I am not sure whether I should replace the Dockerfile that already exists.
I just updated the make.sh to use cmake3 and the new build/install system. I was able to test it in a docker container.
I didn't touch the env_sukap.sh since I don't have access to it (not a SK member).

Please let me know if I forgot something!
Some missing items I can think of:

we would need to have cmake3 in the new base container. I can for sure update the Dockerfile.base, but I am not sure I have the proper privileges for pushing a new image.
I am rather unclear about the whole Continuous Integration: it seems to use make and not cmake. So maybe we can just let it this way and once you merge the hybrid/OD thing, we can revisit this?

Thanks for this @guiguem!

I think it's a good idea to keep the 2 versions of Dockerfile for now, just to keep the CI happy. As you say, can revisit it later (once OD/hybrid merge successful)
@brichards64 is the DockerHub owner for WCSim. I'll merge this in now (with cmake3 install in Dockerfile.cmake), but we would like a new base building/pushing with cmake3 included when possible (I'll put cmake3 in the Dockerfile.base install list in another PR to make it easier)


Target and release column in images table

Description
this commit add 2 new columns at images table and change the order of the column like requested in the mockup image that appear in the ticket
Fixes # (issue) -related to that ticket  -https://issues.redhat.com/browse/THEEDGE-3311
Type of change
What is it?

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] I run npm run lint:js:fix to check that my code is properly formatted

Codecov Report
Patch coverage has no change and project coverage change: -0.06 :warning:

Comparison is base (4eaaac3) 27.68% compared to head (76d9632) 27.62%.

:exclamation: Current head 76d9632 differs from pull request most recent head d607e75. Consider uploading reports for the commit d607e75 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #685      +/-   ##
==========================================
- Coverage   27.68%   27.62%   -0.06%
==========================================
  Files         129      129
  Lines        3161     3167       +6
  Branches     1035     1041       +6
==========================================
  Hits          875      875
- Misses       2072     2078       +6
  Partials      214      214

Impacted Files
Coverage Δ

src/Routes/ImageManager/ImageSetsTable.js
30.23% <0.00%> (-4.91%)
:arrow_down:

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


onInteraction is optional. Removed some PropTypes.required

Proposed Change
Made onInteraction() optional. Removed isRequired from a couple of props. Purpose: make it easy for a new user to use <Timeline ... w/o having to add props that he/she doesn't need. E.g. like in this storybook.
Change type
Put an x in the boxes that apply

[x] Bugfix
[ ] New feature

Hi! Kind reminder!


recurring export doesn't work

Hi @andrewbrereton
First of all, thank you for this plugin. I've been waiting for this for a long time and it's a turning point for me. I want to export to local (.ics) for reading via thunderbird.
If I make a parameter change, the export goes well the first time but after 5 min (default time) the update doesn't work. I get no error message in the obsidian console. 🤔

Hi @bepolymathe, this may be resolved in 1.9.3. This release changes the initial starting call from onload to onLayoutReady as I was seeing a similar issue (#33).
I'm curious if the fix for #33 has also fixed this issue.


Always raise an exception unless a query has succeeded.

I propose to always raise an exception unless a query has succeeded. Client code has to handle errors anyway, including transport errors such as the server blew up or returned a 401 access denied, so without raising an exception users always have to check for response.errors and to handle other exceptions. This gives you a single path to handle errors in a consistent way and adds helpers that produce a potentially friendlier exception.
Closes https://github.com/ashkan18/graphlient/issues/18.

I 👍 this! Its useful to be able to handle errors consistently.


Pass pointers, not slices, to libc::ioctl

Slices are not FFI-safe.
&[u8] and &mut [u8] are wide pointers, which means that at the moment, we're getting lucky because they're passed via the "ScalarPair" ABI, and this means that passing a &[u8] results in passing two arguments, *const u8 and usize for pointer and length. This passes an extra argument to ioctl, which happens to work because the extra vararg is skipped. We're getting lucky right now, and we should explicitly pass the pointer we meant to pass instead.
This is normally checked on extern "C" functions, but ioctl in particular uses varargs which prevents the compiler check from reporting.
What does this PR do
Passes the buffer pointer to libc::ioctl rather than trying to pass slices across FFI.
Checklist:

[x] I have read CONTRIBUTING.md
[x] I have written necessary tests and rustdoc comments (Comment updated, no new tests)
[x] A change log has been added if this PR modifies nix's API (N/A)

Good catch! Thanks, and congratulations on your first contribution to nix!


notifications are on but not received

Describe the bug
Unfortunately, I am not receiving notifications of any kind, even though the settings in maestral are set to on. Meanwhile, the Mac settings do not show maestral under notifications and therefore are not on - maestral is not asking for permissions within the Mac environment on my end.
To Reproduce
(firstly, I installed maestral via homebrew, then removed it completely with an ending reboot)
downloaded maestral via GitHub, signed in and authenticated the app to get the token, sync is in progress and notifications in app settings are on while in Mac settings no app permission was requested. App settings for notification have been turned off and on again, no change.
Expected behaviour
Notifications would be delivered upon turning settings on + app would be listed within Mac notifications settings.
System:

Maestral version: GUI v1.6.4, daemon v1.6.4
OS: macOS Ventura 13.1

Permission will be requested not when the checkbox in Maestral's settings is checked, but when attempting to send the first notification.
Can you confirm that you did expect a notification to be sent, for example by manually creating a new folder on the Dropbox website?
Another thing to check: Notifications can be delivered silently, directly to the macOS "notification center", under some circumstances. Do you see any there?
I'm running Ventura 13.1 myself and everything appears to work as expected on my machine.

However, there are no notifications upon syncing directly from the Mac to cloud

Yes, that is indeed the expected behaviour. Maybe this can be clarified in the checkbox text, for example: "Notify for remote file changes".
Would you think that notifications for local changes are helpful? I always assumed that they add little value.


Type mismatch error with Linear layer

On the master branch, I get an errror: Expected object of scalar type Double but got scalar type Float for argument #2 \'mat2\' caused by:
https://github.com/LaurentMazare/tch-rs/blob/c6888ba746d7123939bf8f092c06b35a16319b7c/src/nn/linear.rs#L51
when passing a Kind::Double to the forward method of a Linear layer. Seems like there is a type mismatch between the weights and biases.
You can find the full backtrace here.
Here is the minimal reproducible code:
use tch::{nn, nn::Module, nn::OptimizerConfig, Device, Tensor, Kind, Reduction};

const INPUT_DIM: i64 = 784;
const BATCH_SIZE: i64 = 1;
const HIDDEN_NODES: i64 = 128;
const LABELS: i64 = 10;

fn net(vs: &nn::Path) -> impl Module {
    nn::seq()
        .add(nn::linear(
            vs / "layer1",
            INPUT_DIM,
            HIDDEN_NODES,
            Default::default(),
        ))
        .add(nn::linear(vs, HIDDEN_NODES, LABELS, Default::default()))
}

pub fn run() -> failure::Fallible<()> {
    let vs = nn::VarStore::new(Device::Cpu);
    let net = net(&vs.root());
    let opt = nn::Adam::default().build(&vs, 1e-3)?;
    for epoch in 1..200 {
        let features = Tensor::rand(&[BATCH_SIZE, INPUT_DIM], (Kind::Double, Device::Cpu));
        let labels = Tensor::rand(&[BATCH_SIZE, LABELS], (Kind::Double, Device::Cpu));

        let predictions = net.forward(&features); // This panics.

        let loss = predictions.mse_loss(&labels, Reduction::Mean);
        opt.backward_step(&loss);
        println!(
            "epoch: {:4} train loss: {:8.5}",
            epoch,
            f64::from(&loss),
        );
    }
    Ok(())
}

Yes that's actually expected: all the layers in nn use single precision float and not double precision ones. It feels like the typical use case for neural networks - although supporting half-precision float would be nice.
I imagine you already know about this but a quick workaround for your use case is to use Kind::Float for features and labels.
We could add to the parameters the kind of weights to actually generate if you think that would be helpful, although I'm not a huge fan of the idea as this is currently not reflected in the type system.

I remember seeing benchmarks showing the improved performance of using f32 versus f64. I have since assumed that it was the reason why low-level math libraries seem to use Float instead of Double.

In my use case, I can't really justify using a f64, since all my inputs are already normalized. But I wonder if there could be valid use cases for f64 or f16.
I think that ideally we would want models to be typed to prevent those kind of errors, but that might be too high level for this library.
Anyway, what do you think of adding some debug assertions so that we get better error messages? The errors returned by the c++ lib are mostly garbage.

@vegapit In my experience, there are no significant performance improvement at the single operation level, but the fact that you can fit 2X more in memory is obviously better for the cache. Also, if your bottleneck is a SSE operations, you effectively double the throughput.

The performance implications are indeed quite important, it's actually why half-precision floats are gaining momentum as on a gpu they may result on an almost 2x speedup. Double-precision floats are also notoriously slow on non-tesla gpus.
It would certainly be worth having proper error messages rather than relying on PyTorch to produce the error message. Feel free to make a PR for this if you want, otherwise I'll take a stab at it when I get a chance.

Yeah, I'll make a PR.
But more generally, do you think that preventing this kind of error using the type system is out of the scope of this library?

But more generally, do you think that preventing this kind of error using the type system is out of the scope of this library?

It's a bit unclear. It's out of scope of the Tensor structure as this part is automatically generated from some ops descriptions and these descriptions don't include enough type information to get this to be type safe.
For the nn bits, having more type safety would make more sense but that's likely to be a huge change so I'm not sure it's worth doing so: I guess it would be more a matter of having another namespace nn_typed or even another crate on top this to handle it.
Happy to hear about other people thoughts too.

I think a higher level wrapper type Tensor<D,T> where D is the dimension and T the underlying type would be ideal since it would basically prevent all possible runtime dynamic errors. But like you said the amount of work would be quite significant.

We could add to the parameters the kind of weights to actually generate if you think that would be helpful, although I'm not a huge fan of the idea as this is currently not reflected in the type system.

I think it would make sense to allow the kind of weights since this library is a binding library. While I agree this should ideally be reflected in the type system, I also think the library should not restrain use cases.

I ran into this issue too. Tensor operations like MulAssign are only implemented for f64 and not f32, and it is somewhat convenient to use the same float type for everything.


New Dags are only imported when the webserver restarts!

How does one add new dags to the system without restarting the webserver?  Running "python my_dag.py" is not importing the dag in to the db either. I am running on EC2 with a Postgresql database. I am able to see the data gets imported only on restart of the web app.
Here is the code:
This code will become the EP Data Pipeline.

The flow may eventually look like :
* 1. SQS Message Written Detect
* 2.a. Email Send Flow Started
* 2.b. Database Row Written Detect
* 3. SQS Queue Empty Detect
* 4. Email Send Flow Complete
"""
from airflow import DAG
from airflow.operators import EmailOperator
from datetime import datetime

print ' got here 1'
default_args = {
    'owner': 'airflow',
    'depends_on_past': False,
    'start_date': datetime(2015, 1, 1),
    'email'<EMAIL_ADDRESS>    'email_on_failure': True,
    'email_on_retry': True,
}

print ' got here 1'
dag = DAG('ep_demo_1', default_args=default_args)

print ' got here 1'
t1 = EmailOperator(
    task_id='email_pipeline_start',
<EMAIL_ADDRESS>    subject='EP Demo Pipeline Started (TAD)',
    html_content='',
    dag=dag)

After restarting the webapp, I still don't see any entries in the dag table in the sqlite db for my dags. I see the dags in the UI -- there seems to be a difference between loading and importing a dag.
2015-06-18 17:49:21,175 - root - INFO - Loaded DAG <DAG: ep_demo_1>
2015-06-18 17:49:21,177 - root - INFO - Importing /usr/local/lib/python2.7/site-packages/airflow/example_dags/example_bash_operator.py
2015-06-18 17:49:21,178 - root - INFO - Loaded DAG <DAG: example_bash_operator>
2015-06-18 17:49:21,179 - root - INFO - Importing /usr/local/lib/python2.7/site-packages/airflow/example_dags/example_python_operator.py
2015-06-18 17:49:21,180 - root - INFO - Loaded DAG <DAG: example_python_operator>
2015-06-18 17:49:21,181 - root - INFO - Importing /usr/local/lib/python2.7/site-packages/airflow/example_dags/tutorial.py
2015-06-18 17:49:21,182 - root - INFO - Loaded DAG <DAG: tutorial>

I've also noticed this - it doesn't feel right keep shutting the webserver down and starting it during development. Is there something we've missed?

If you have a scheduler running in the background it will discover new DAGs which get added to the list (a central list of DAGs is maintained in the database). You can refresh individual dag by clicking the refresh icon on the DAGs page. So in a production setup new dags do get discovered properly and it works with as many servers as you have running (each one of our workers runs the web server as well).
We used to have an endpoint that would tell the web server to refresh its DagBag, and do it in the scope of a web request but moved away from that as we started running muli-threaded / multiple web servers as hitting the endpoint would only refresh one thread randomly. It's a much more complicated problem when you have lots of DagBags to keep in sync. A temporary solution is to expire the DagBag and force it to refresh periodically on the web server. I could also add a hidden endpoint that you'd hit when developing to refresh the DagBag without restarting the web server.
The longer term solution is to have 100% stateless web servers that load DAGs from the pickles (serialized DAGs) from the database. The reason why this is not 100% working at this time is that jinja templates aren't serializable and I haven't found a hack to serialize them yet.

Since we are trying this out for the first time and essentially trying to convince ourselves and teammates that this is cool project, we would be running in "developer" or "test" mode, before setting it up for production. If developers don't like it here, it won't make it to production. Hence, it would be nice if we did not need to set up all of the bells and whistles just to take the UI features for a spin.
I alluded to this in Issue 51
Why not just let people drop their dags in your dag directory on a file system? Then run a background thread to check the dag directory (pointed to in airflow.cfg), compare it to the DB, and update the DB? Then have each worker poll the db and fetch new dags from the db.

Hey @r39132 ,
If you want to quickly iterate on DAGs, you have the ability to start the webserver with the "-d" flag. The webserver will start in debug mode, and will restart when files change in either the app or the dags folder. This might help taking some of the UI features for a spin without too much overhead.
This is what we use to test our dags DAGs before we integrate them in our production environment. I hope this helps.

Thanks @artwr That works for us. BTW, if I run celeryexector, do I need to start another airflow worker? I essentially only want the celeryexecutor so that I can use the UI features and have people be "blown away" by the product. But, I don't want to have to stand up more than one worker right now, if I don't need to. I will have monit restart the webapp.

One worker is all you need (until you need more slots). If you don't have any workers up, messages are just going to build up in the queue.

So, why is that my dags not being imported into the database? I see it on the UI, but not in the DB.
I'm hitting the refresh button and running in debug mode (airflow webserver -d -p 8080) . I'm using the LocalExecutor and am at a loss. Also, I'm noticing the new files are not automatically showing up in the UI.

Are you not running the scheduler?

Ok, I see the confusion. I've been reading "scheduler" as a related to "celery scheduler". Explains a lot. Thanks. We are having some issues with Celery so running Local at small scale should be fine for a while.


Earlier dispatch of new tasks

With multithreading, the task dispatcher often sits there for a long time waiting for a single difficult tile to complete after all the other threads have finished.
I wonder if it would work any better to run through each task set twice: first to generate the next zoom level and then again to do the actual tiling. If I did this, then each thread, as soon as it was available, could pick up a new set of tasks at the next zoom level without having to wait for the slowest thread to complete. Potentially several threads could even be working on the difficult tile at different zoom levels at the same time.
Risk: ballooning temporary storage space since many levels of the same data could be live at the same time.

The other thing I could do, rather than trying to juggle a queue of tasks and files to assign to processors, is to just treat the .mbtiles as a giant temporary file.
Blast through the zoom levels in one thread, writing out a complete tileset without any simplification or thinning or anything. Meanwhile, start another set of threads to run through what that first thread produces, in whatever order happens to be convenient, to do the computationally expensive parts.
The temporary tileset would get very large though.

There's probably actually no reason that the first pass couldn't produce z0, z1, and z2 at the same time from the same source data by adding a parameter for overzooming. The higher zooms would do some extra clipping, but would probably still come out ahead compared to waiting for the lower zooms to finish.
It would only need to be careful to only let the highest zoom produce a new set of child data when multiple zooms were going on at the same time.


[BACKLOG-11031] OSGI errors in pdi-ce client

Build Skipped
:white_check_mark: There was nothing to build. The changes are probably excluded by the build rules. If this is an error, please contact your system administrator.


Adding AI quick start content utilizing Spring AI.

Added Spring AI quick start examples for the following scenarios:

Chat
Completions
Use your own data

#label:"aq-pr-triaged"

#assign-reviewer:@bmitchell287

#assign-reviewer:@selvasingh

FYI, I'll create an internal PR for this submission, and we'll handle all internal reviews there. I'll keep this public PR open for now in case there is any direct feedback for @gm2552. (We can also use Teams for the feedback.) When we merge the internal PR, I'll close this public PR. Thanks!

Internal PR updated and merged. Closing.
Thanks for your contribution, @gm2552!
Thanks for your input, @mrbullwinkle!
#please-close


Implementing a Rest API that uses the script

What would be the simplest way to put the script on a Rest API , so I can query it remotely from an App in Android?
Maybe using Google App Engine? I would like to know some tips for this.

https://github.com/jaimeMF/youtube-dl-api-server


Rails/ContentTag makes rubocop crashes

With this new version, I have issues with rubocop running on a pure ruby (no HTML or whatsoever) file that plays with act_as_taggable (code contains some .tag calls tag_something etc ...
An error occurred while Rails/ContentTag cop was inspecting /Users/nathangouy/Work/**************/app/models/concerns/tenant_tagging.rb
Bugs on these 2 lines:

Originally posted by @ngouy in https://github.com/rubocop/rubocop-rails/issues/260#issuecomment-918186693
rubocop -V :
1.20.0 (using Parser <IP_ADDRESS>, rubocop-ast 1.11.0, running on ruby 2.7.2 x86_64-darwin20)
  - rubocop-faker 1.1.0
  - rubocop-performance 1.11.5
  - rubocop-rails 2.12.2

This issue is a dup with #543. But this issue also suggests that it contains different false positives. I've opened https://github.com/rubocop/rubocop-rails/pull/549.

THanks a lot @koic 🙏


Mitch/footer - Match DApp footer to Website footer

First pull request? Read our guide to contributing
Checklist:

[x] Test your work and double-check to confirm that you didn't break anything
[x] Wrap any new text/strings for translation
[ ] Map any new environment variables with a default value in the Webpack config
[ ] Update any relevant READMEs and docs

Description:
Please explain the changes you made here:
Mimic DApp footer to website footer, without font awesome dependency. Please inform me if we would like to use this dependency.

It seems like all of the links to originprotocol.com/... are timing out without the www subdomain. @joshfraser do we intend for that to redirect at the DNS level?

Confirmed that we're going a different direction on this 🙂 Thanks @mek32390 for the effort here.


Console data from k8s

We've received a request to extract console data from k8s processes.
A starting point would seem to be to configure the scope k8s demo to extract stdout/stderr data, send this data to elastic appscope and create a dashboard with relevant detail.
Review with SEs.
Apply feedback.

Using the scope-k8s-demo repo https://github.com/criblio/scope-k8s-demo
cd scope-k8s-demo
export SCOPE_VER=1.1.0-tc0
./start.sh
kubectl port-forward --address <IP_ADDRESS> deployment/cribl 9000:9000
the VM/EC2 instance needs to export port 9000 in order to access Cribl Stream
point the local browser to http://vmaddr:9000
nav to the appscope source
start live capture
validate that console data is available
a useful filter for the appscope source:
__inputId=='appscope:in_appscope' && sourcetype=='console'


Edge agent register command should not add port binding

Bug description
Not really a bug, but a useless thing to me.
When you use the edge agent setup wizard, you have this kind of cli command to copy in order to create an register the agent:
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \
              -v /var/lib/docker/volumes:/var/lib/docker/volumes \
              -v /:/host \
              --restart always \
              -e EDGE=1 \
              -e EDGE_ID=xxxx-xxxx-xxxx \
              -e EDGE_KEY=XxX \
              -e CAP_HOST_MANAGEMENT=1 \
              -p 8000:80 \
              -v portainer_agent_data:/data \
              --name portainer_edge_agent \
              portainer/agent

The port binding is use to access to the agent register interface.
Expected behavior
No port binding on the command. As the EDGE_KEY is already provided, the register is already done and the webserver is not needed.
Plus, it can be problematic on complex structure when you want to register an agent on an instance containing a another portainer (Portainer Master -> Portainer Customer -> agent), producing port binding conflict issues.
Steps to reproduce the issue:

Go to endpoints section
Click on "Add an endpoint"
Select the edge agent
Submit the form

Technical details:

Portainer version: 1.23
Docker version (managed by Portainer): Not relevant
Platform (windows/linux): Not relevant
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer): Not relevant
Browser: Not relevant

You're right, I should have removed this when when I added the edge-key to the generated command in the UI


Unable to get credentials: account-exists-with-different-credentials

Step 1: Are you in the right place?
Step 2: Describe your environment

Android device: Emulator Pixel 2
Android OS version: API 28

Step 3: Describe the problem:
Both iOS and Web detail how to handle the error account-exists-with-different-credential which occurs when trying to sign in to an account that is already set in firebase auth with a given email. However the Android documentation has no such details and in fact the explicit error documentation doesn't provide any additional info. The piece that seems to be missing is that with iOS and Web, when the error occurs, the credentials are still returned, but I can't seem to find them with the exception on Android. So how do you use the link with credentials methods if you never received the credentials (even though the sign in was successful)?
https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuthUserCollisionException getUpdatedCredentials() is null in this case, but shouldn't be.
Steps to reproduce:

Create an account with a provider
Try to login with another provider (that doesn't have a verified email)
The other SDKs return the credentials so that they can be linked

Observed Results:

GetUpdatedCredentials is null

Expected Results:

GetUpdatedCredentials should provide the credentials so they can be used to link the accounts

@ncapdevi sorry for my late response here.  Reading the docs for that method:
Returns a new valid AuthCredential if this error occurred when trying to sign in or link with an AuthCredential which was already associated with an account. Otherwise, returns null.

So it sounds like there should be a credential and this might be a bug.  However I'm not quite sure how this is a FirebaseUI problem.  Are you running into this using FirebaseUI or using the plain Firebase Auth SDK?  In either case could you give an example of some of the code you're running to cause this?

@samtstern  Not a problem. I think that you are correct on all accounts. I think that I accidentally posted the issue on this repo instead of the Android SDK repo, which is my fault, and if you wanted to close the issue, I understand.  However, I agree, it seems like a bug (credentials are returned when following the same set of operations using the Web SDK). I am not using the FirebaseUI, just the plain Firebase Auth SDK.
I've provided some Kotlin code below, but the following condition needs to be met:  An account exists with the same email address that you are trying to login with using the provider.
  fun signInWithProvider(providerID: String, activity: Activity): Task<AuthResult> {
       val provider = OAuthProvider.newBuilder(providerID).build()
       val startActivityForSignInWithProvider = rbAppListener.firebaseAuth.startActivityForSignInWithProvider(activity, provider)
       startActivityForSignInWithProvider.addOnSuccessListener { authResult ->
          // Success
           // Timber.i("We did something!" + authResult.user.displayName)

       }.addOnFailureListener { ex ->
           //Failure
           //Timber.e(ex)
           if (ex is FirebaseAuthUserCollisionException){
               //This is null
              // ex.updatedCredential
           }

       }
       return startActivityForSignInWithProvider
   }

Thanks for the feedback and help!

I'll move that over there.  cc @malcolmdeck and @lsirac before I do


Improve reference handling in Import Profiles

Need to simplify the linking of references to existing document when importing data via the import profiles.
--- add ability to find a reference based on schema/key
--- can be stored as a reference or array of references
--- can accept keys from one or multiple columns
--- if accepting keys from a single column, it could be separated with commas or \n

Rob, I think JP is hoping you will put this through its paces before he closes it. Can you give it a shot?

I've tried using this new import profile reference operation, but haven't had much success.
I keep getting an Uncaught SyntaxError: Unexpected token � in JSON at position 55 error in the console.
Testing Work Flow:
I have an import profile called 'import_profile.demo_clients' (see definition below),
{
  "_id": "import_profile.demo_clients",
  "nunaliit_import_profile": {
    "operations": [
      "copyAllAndFixNames(demo_client)",
      "reference(demo_client.bank,'bank')"
    ],
    "nunaliit_type": "import_profile",
    "options": {
      "idAttribute": "id"
    },
    "id": "import_profile.demo_clients",
    "label": {
      "nunaliit_type": "localized",
      "en": "Demo Clients"
    },
    "layerName": "public",
    "type": "json",
    "schemaName": "demo_client"
  }
}

and 2 schemas; demo_client, and demo_bank.
'demo_client' has 2 attributes; name (string), and bank (reference) (see schema definition below)
{
    "group": "demo"
    ,"id": "client"
    ,"label": "Client"
    ,"initialLayers" : ["public"]
    ,"relatedSchemas" : ["demo_bank"]
    ,"attributes": [

        {
            "type" : "string"
            ,"label" : "Name"
            ,"id" : "name"
	    ,"includedInBrief": true

        },
        {
            "type" : "reference"
            ,"id" : "bank"
            ,"label": "Bank"

        }
   ]
}

'demo_bank' has 1 attribute: name (string) (see schema definition below)
{
    "group": "demo"
    ,"id": "bank"
    ,"label": "Bank"
    ,"initialLayers" : ["client"]
    ,"attributes": [
        {
            "type" : "string"
            ,"label" : "Name"
            ,"id" : "name"

        }
   ]
}

I've create a couple sample bank documents in the database, and made the following test import json dataset;
[
{"id":"1","name":"Bill","bank":"4a7fad40f367ac5bc6a7c8767003e776"}
,
{"id":"2","name":"Jill","bank":"4a7fad40f367ac5bc6a7c8767003da02"}
,
{"id":"3","name":"Joan","bank":"4a7fad40f367ac5bc6a7c8767003e776"}
,
{"id":"4","name":"Sam","bank":""}
,
{"id":"5","name":"Pat","bank":"4a7fad40f367ac5bc6a7c8767003da02"}
,
{"id":"6","name":"Cal","bank":""}
]


Converting this starter to theme

I really love this starter.
Is there any chance that you can convert this starter into theme?
https://www.gatsbyjs.com/docs/themes/converting-a-starter/

Hi, thank you for your question.
As soon as I have free time, I plan to refactor this starter, and possibly convert this starter into a theme.
Sincerely,
Eduard.


Processing new Trainee-Callsigns in Germany with /T as callsign extension

What Feature is Missing?
Looking forward to changes in German law we should be able to log and resolve callsigns like DG9VH/T correctly concerning DXCC, CQ-Zone etc.
Why is This Feature Important?
Because middle of the year new regulations in Germany will be active we have to procede this correctly then.
Is This Feature Personal or Beneficial to Others as Well?
This is beneficial for all users worldwide.

Fresh merged to dev. Pse test and comment/close the issue, kim ;)


Authentication Error Tracking

The following user errors are based on client's having difficulties logging in or accessing the telework form.
Possible issues could be with: their IDIR (newly onboarded), their browser Cache not cleared, duplicate browser logins open, and possible other factors not yet determined.
3 Authentication Errors are being tracked:

login7  (viewed in URL)  Error - results in a blank  login screen.

Impacted Users:
a. David W. (June 29th reported) {Email chain includes: Andrew G - June 29th}
Dev Comments: The issue is on the WAM side, the SSO (Single-Sign-On) website.
Actions taken: user cleared cache. DJ forms designer followed up on July 5th to ensure user  could access the forms portal.
Current State: User is still unable to be authenticated resulting in a blank screen (URL<EMAIL_ADDRESS>
"Unexpected error when authenticating with identity provider. "

Impacted Users:
a. Ilaine M (June 7th reported)
Dev Comments:  Iman to look into it and follow up with SSO team.
Actions taken: Chris C. asks the admin assistant to loop in with OCIO (around July 7) to see if they can find the issue. Waiting for Admin Assistant to provide feedback next week (July 10-14)
Current State: User filled out a Word Document, but would like a follow by DJ team confirming a digital form can be submitted at a later date.

"The username or password you entered is incorrect" - visible under the login user name, password fields.
Impacted Users:
a. Julia C. (July 20th reported)
Dev comments: Iman - seems the user has never logged into our platform. Suggest they call 77,000. Indicated he would connect with the SSO team.
Current State: User still receiving username/password error.

We received a manager reporting "Unexpected Error when authenticating Message".  I am working with the client to remedy the situation, waiting for a response from them.

IDIR issues when logging in which is related to user changing IDIR
delete in key cloak is the temporary fix

related to #1323 using GUID and employee ID instead of IDIR
closing this


jackett: 0.20.4199 -> 0.21.17

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for jackett is: API Support for your favorite torrent trackers
meta.homepage for jackett is: https://github.com/Jackett/Jackett/
meta.changelog for jackett is: https://github.com/Jackett/Jackett/releases/tag/v0.21.17
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.21.17 with grep in /nix/store/3xbxx5k3lbsgy4lfdgks873qq1yp3wx3-jackett-0.21.17
found 0.21.17 in filename of file in /nix/store/3xbxx5k3lbsgy4lfdgks873qq1yp3wx3-jackett-0.21.17

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
jackett

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3xbxx5k3lbsgy4lfdgks873qq1yp3wx3-jackett-0.21.17 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A jackett https://github.com/r-ryantm/nixpkgs/archive/153da9ab8c9a221b0ead8ee42bad196765c2a20c.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3xbxx5k3lbsgy4lfdgks873qq1yp3wx3-jackett-0.21.17
ls -la /nix/store/3xbxx5k3lbsgy4lfdgks873qq1yp3wx3-jackett-0.21.17/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

jackett

Maintainer pings
cc @edwtjo @nyanloutre @purcell for testing.

Result of nixpkgs-review pr 233730 run on aarch64-darwin 1

1 package built:

jackett


Replaced deprecated 'path' property in Realm configuration

Following the latest trends in Swift, Realm made the decision to deprecate using strings for file paths in its API in favour of NSURL. As of the latest version of Realm, 0.103.0, the deprecated path property was completely removed.
As reported in https://github.com/Flipboard/FLEX/issues/127, this pull request updates the integration of Realm in FLEX to use the new NSURL value for file paths.

Thanks for the quick fix! :shipit:


[BEAM-3900] Improvements in Metrics translation, composite transforms, tests and win. API

List of improvements:

Larger portfolio of Euphoria test suite was enabled.
Translation of Euphoria Accumulators to Beam Metrics was added.
Euphoria windowing API adapted to Beam windowing.
Operator's API now consumes type hints to allow set coders automatically.
Composite transforms can be defined through Euphoria API.
Cleanup: Flipping tests fixed, Euphoria executor concept removed, two project modules where merged
R: @jbonofre

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
 You can probably safely rebase and just keep your changes. Like this:
$ git rebase
... see some conflicts
$ git diff
... confirmed that the conflicts are just autoformatting
... so we can just keep our changes are do our own autoformat
$ git checkout --theirs --
$ git add -u
$ git rebase --continue
$ ./gradlew spotlessJavaApply

Please ping me if you run into any difficulty.

please retest this

Run Java PreCommit

Is this PR in progress or should we close it as stale?

Hi,
this PR definitely stall. Thanks for your comment.


Move validations for registered instances to modifiers

Pull Request Test Coverage Report for Build 30

2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.8%) to 96.429%

Totals

Change from base Build 28:
0.8%

Covered Lines:
61

Relevant Lines:
62

💛  - Coveralls


Tarjan’s Algorithm

It is a graph algorithm that is used to find Strongly Connected Components.
I am creating this issue under hacktoberfest.

I am interested in contributing to this algorithm in c++ with an efficient


Uncaught Invariant Violation - GoogleMapMarkers

Hi There,
Could anyone point me into the right directing here?
I followed this jsbin example
and basically on the page where I would like to display the map I firstly:
import GoogleMap from 'google-map-react';
then set both center & zoom in page contructor and then use following:
<GoogleMap
  defaultCenter={this.state.center}
  defaultZoom={this.state.zoom}>

MyPlace

</GoogleMap>

Map container is initially hidden and once the button is clicked to display the map I get :
Uncaught Invariant Violation: Objects are not valid as a React child (found: /> */). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of GoogleMapMarkers.
package.json
"google-map-react": "^0.19.0",
"jquery": "2.2.3",
"moment": "^2.15.0",
"node-uuid": "^1.4.7",
"object-assign": "^4.1.0",
"react": "15.0.2",
"react-bootstrap": "^0.30.3",
"react-dom": "15.0.2",
"react-redux": "4.4.5",
"react-router": "2.4.0",
"react-router-redux": "4.0.4",
"redux": "3.5.2",
"redux-logger": "^2.6.1",
"redux-thunk": "2.0.1",

Are you sure that's your problem? Can we see the rest of the code? It's saying: (found: /> */) -- which tells me you might have a lagging */ comment-ending somewhere in your JSX (which isn't valid JSX)

@rhagigi indeed, it was hot reloading issue (bad jsx), thanks for your reply anyways 👍
closing this issue as unrelated to google-map-react


Makefile:7: recipe for target 'sd-image' failed

Hi,
I try to build an image with the current git version. It worked a week ago but now it seems there is a key expired.
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: /root/.gnupg/trustdb.gpg: trustdb created

FINGERPRINT_OF_FILE=6A037BB52DF7D46D99DC59C101666247EBFF1218
[[ 40 -eq 16 ]]
[[ 40 -eq 8 ]]
echo 'compare fingerprint'
compare fingerprint
++ clean_print fpr 6A037BB52DF7D46D99DC59C101666247EBFF1218
++ local fingerprint=6A037BB52DF7D46D99DC59C101666247EBFF1218
++ local func=fpr
++ nospaces=6A037BB52DF7D46D99DC59C101666247EBFF1218
++ tolowercase=6a037bb52df7d46d99dc59c101666247ebff1218
++ KEYID_long=01666247ebff1218
++ KEYID_short=ebff1218
++ [[ fpr == \f\p\r ]]
++ echo 6a037bb52df7d46d99dc59c101666247ebff1218
CHECK=6a037bb52df7d46d99dc59c101666247ebff1218
[[ 418a7f2fb0e1e6e7eabf6fe8c2e73424d59097ab == \6\a\0\3\7\b\b\5\2\d\f\7\d\4\6\d\9\9\d\c\5\9\c\1\0\1\6\6\6\2\4\7\e\b\f\f\1\2\1\8 ]]
echo 'key invalid'
key invalid
exit 1
Makefile:7: recipe for target 'sd-image' failed
make: *** [sd-image] Error 1
mv: cannot stat 'hypriotos-rpi-dirty.img.zip': No such file or directory
mv: cannot stat 'hypriotos-rpi-dirty.img.zip.sha256': No such file or directory

On a second thought the problem seems to be the way the key is extracted
[[ 418a7f2fb0e1e6e7eabf6fe8c2e73424d59097ab == \6\a\0\3\7\b\b\5\2\d\f\7\d\4\6\d\9\9\d\c\5\9\c\1\0\1\6\6\6\2\4\7\e\b\f\f\1\2\1\8 ]]

A dirty workaround
I changed in builder/chroot-script.sh
PACKAGECLOUD_FPR=6A037BB52DF7D46D99DC59C101666247EBFF1218

May the key is wrong or old?
I ran on old hypriot pis this
gpg_key_url="https://packagecloud.io/Hypriot/rpi/gpgkey"
curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null
apt update

Because the apt-key was broken.
This was found on:
https://packagecloud.io/Hypriot/rpi/install
or better
https://packagecloud.io/install/repositories/Hypriot/rpi/script.deb.sh


Wrong Chinese translation

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

VS Code Version: 1.70.1 (user setup)
OS Version: Windows 10 21H2

The translation of AuxiliaryBar exists in two forms: "辅助侧栏", "辅助边栏".
And "workbench.action.maximizeEditor" is translated into "视图: 最大化编辑器组并隐藏边栏"，while 99% of the places use "侧栏" instead of "边栏". It brings a lot of trouble to search shortcuts.
A picture is worth a thousand words:

感谢您创建此问题！
然而，由于您没有使用英语，我们很难进行处理。如果可能，请您将此问题描述修改为英文。请您直接编辑此问题，不要提交回复或新问题。
请注意，机器翻译服务通常无法处理用于讨论软件问题所需的技术性语言，所以我们推荐您寻找一位熟悉相关技术的人来协助翻译。
如果您无法做到，没有关系。此问题已经被标记为需要翻译，等待社区成员志愿进行翻译。

Thanks for creating this issue!
Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.
In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.
Otherwise, we have marked this as needing translation and a community member may be able to help out.

呵呵，这机器人脑子是不是有问题？你管这问题描述叫中文？！


Fix: correctly escape text that would otherwise be interpreted as raw HTML and HTML blocks.

See the issues linked below for a good description of the issue. Given readable text in HTML, which renders as
, the correct Turndown translation is
\\, but the current behavior is
.
Closes #106
Closes #261

I need this fixed. It will fix an issue in my projects.

I also just encountered this, would love to see it fixed. @martincizek @pavelhoral any chance you could take a look?

One more upvote for this PR (and a vouch for it—I tested this one locally and in the @11ty/import project).
Current behavior is a bit dangerous as escaped HTML is converted to unescaped HTML in Turndown output.


AST specification?

I'm considering swapping out the template-based markdown generation in documentation for generating an mdast-compatible representation and then stringifying with this module.
I think the approach has potential, but getting started I'm not sure where to learn about what inputs to stringify() will work: I can parse and debug the current output I get, but is there a document or a file I should be reading to get up to speed on what mdast nodes exist and what they're called? Thanks!

Have you seen this document?

@tmcw did @eush77's link help, or were you searching for something else?

Ah! Perfect, I had checked the other docs in docs/ but not that one - I think the morning brain thought node = nodejs rather than ast node :)

Ah, yeah that can probably be confusing in the morning :wink:
I think this can be closed right?
P.S. Cool to see interest in going for mast, ping if you need help!


What should happen?

Interesting project, would like to get it to run. Windows 22H2 x64.
This is probably user error but every suggested invocation simply hangs. Any thoughts?
Thanks.
r:\src\js>git clone https://github.com/CanadaHonk/porffor.git
Cloning into 'porffor'...
remote: Enumerating objects: 11221, done.
remote: Counting objects: 100% (2894/2894), done.
remote: Compressing objects: 100% (524/524), done.
remote: Total 11221 (delta 2534), reused 2691 (delta 2370), pack-reused 8327 (from 1)
Receiving objects: 100% (11221/11221), 5.80 MiB | 7.25 MiB/s, done.
Resolving deltas: 100% (8690/8690), done.

r:\src\js\porffor>ls bench
base64.js  bottles.js  empty.js      fib_iter.js     index.js            pearson.js      randoms.js  strcmp.js
bf.js      crypto.js   escape.js     fib_recurse.js  interp-dispatch.js  prime_basic.js  randoms.ts  sunspider
bf.ts      dots        factorial.js  hello.js        loops.js            prime_fast.js   regex.js    wellformed.js

r:\src\js\porffor>npm install -g porffor@latest

added 11 packages in 6s
npm notice
npm notice New minor version of npm available! 10.2.4 -> 10.8.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
npm notice Run npm install -g<EMAIL_ADDRESS>to update!
npm notice

r:\src\js\porffor>npm install -g<EMAIL_ADDRESS>
added 1 package in 4s

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

r:\src\js\porffor>porf
node:internal/modules/esm/resolve:853
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'acorn' imported from r:\src\js\porffor\compiler\parse.js
    at packageResolve (node:internal/modules/esm/resolve:853:9)
    at moduleResolve (node:internal/modules/esm/resolve:910:20)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleLoader.import (node:internal/modules/esm/loader:328:34)
    at importModuleDynamically (node:internal/modules/esm/translators:158:35)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:207:14)
    at loadParser (file:///r:/src/js/porffor/compiler/parse.js:21:98) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.11.1

r:\src\js\porffor>npm install acorn

added 10 packages, and audited 11 packages in 8s

found 0 vulnerabilities

r:\src\js\porffor>porf c bench\base64.js
^CTerminate batch job (Y/N)? y

r:\src\js\porffor>porf c bench\base64.js base.c
^CTerminate batch job (Y/N)? y

r:\src\js\porffor>porf  bench\base64.js
^CTerminate batch job (Y/N)? y

r:\src\js\porffor>npm install -g porffor@latest

changed 11 packages in 2s

r:\src\js\porffor>porf bench\base64.js

Have you tried another file? That base64 benchmark is meant to take a long time to try and get a good average

Hello and thanks. I did try hello.js which worked as expected out of the box.

Forgot to ask. Re the base64 example: what runtime would you expect on an 8core 4GHz i7?


[#2395] for virtual scroll, show last chunk in case of no previous match

fixes #2395

Thanks for the PR. Could you link me to a demo of the problem?

As far as I can recall, this problem only happened with #2394 applied. However, I just tested with 1.13.14 + #2394 and it seems like this PR (#2396) is no longer needed. Let me do some more testing on Monday. If nothing shows up I will close this PR.


Initial support for OVN in Kind

Use make clusters using=ovn to deploy kind with ovn

Installs j2cli to dapper image
Adds using=ovn flag
Add scripts to deploy ovn on kind

Currently this copies over ovn-kind scripts and templates from

https://github.com/ovn-org/ovn-kubernetes/blob/master/contrib/
https://github.com/ovn-org/ovn-kubernetes/tree/master/dist

Fixes: #335
Signed-off-by: Vishal Thapar<EMAIL_ADDRESS>

Would it be possible to clone the ovn-kuberentes and just call the scripts there or did you do any changes to them?
I think it'll be much better like that (if we cant figure out how to deploy it on kind ourselves), it'll save us having to maintain their code in our repo and will allow us to easily update should we need it.

There are some changes to the scripts to make it work off our shipyard dapper image. Discussed with @mangelajo earlier and plan is to make it work in our setup first. Then we figure out changes to be done in ovn-kubernetes in such a way that we can consume it by just cloning and contribute it there.

Would it be possible to clone the ovn-kuberentes and just call the scripts there or did you do any changes to them?
I think it'll be much better like that (if we cant figure out how to deploy it on kind ourselves), it'll save us having to maintain their code in our repo and will allow us to easily update should we need it.

There are some changes to the scripts to make it work off our shipyard dapper image. Discussed with @mangelajo earlier and plan is to make it work in our setup first. Then we figure out changes to be done in ovn-kubernetes in such a way that we can consume it by just cloning and contribute it there.

Would it be possible to clone the ovn-kuberentes and just call the scripts there or did you do any changes to them?
I think it'll be much better like that (if we cant figure out how to deploy it on kind ourselves), it'll save us having to maintain their code in our repo and will allow us to easily update should we need it.

There are some changes to the scripts to make it work off our shipyard dapper image. Discussed with @mangelajo earlier and plan is to make it work in our setup first. Then we figure out changes to be done in ovn-kubernetes in such a way that we can consume it by just cloning and contribute it there.

What we could do is clone and apply it dynamically (if it's not too much changes) using sed or cp, this way we have a good indication what's different so that we can easily push it to ovn-kubernetes later.
If we copy a lot of things in our repo its hard to tell what are the changes and whats just plain copied from ovn-k8s

Would it be possible to clone the ovn-kuberentes and just call the scripts there or did you do any changes to them?
I think it'll be much better like that (if we cant figure out how to deploy it on kind ourselves), it'll save us having to maintain their code in our repo and will allow us to easily update should we need it.

There are some changes to the scripts to make it work off our shipyard dapper image. Discussed with @mangelajo earlier and plan is to make it work in our setup first. Then we figure out changes to be done in ovn-kubernetes in such a way that we can consume it by just cloning and contribute it there.

What we could do is clone and apply it dynamically (if it's not too much changes) using sed or cp, this way we have a good indication what's different so that we can easily push it to ovn-kubernetes later.
If we copy a lot of things in our repo its hard to tell what are the changes and whats just plain copied from ovn-k8s

What we could do is clone and apply it dynamically (if it's not too much changes) using sed or cp, this way we have a good indication what's different so that we can easily push it to ovn-kubernetes later.
If we copy a lot of things in our repo its hard to tell what are the changes and whats just plain copied from ovn-k8s

Isn’t this one of the things git is good at? Instead of re-inventing quilt, we could add a fork of the ovn-kubernetes repo as a submodule...

What we could do is clone and apply it dynamically (if it's not too much changes) using sed or cp, this way we have a good indication what's different so that we can easily push it to ovn-kubernetes later.
If we copy a lot of things in our repo its hard to tell what are the changes and whats just plain copied from ovn-k8s

Isn’t this one of the things git is good at? Instead of re-inventing quilt, we could add a fork of the ovn-kubernetes repo as a submodule...

Would it be possible to clone the ovn-kuberentes and just call the scripts there or did you do any changes to them?
I think it'll be much better like that (if we cant figure out how to deploy it on kind ourselves), it'll save us having to maintain their code in our repo and will allow us to easily update should we need it.

There are some changes to the scripts to make it work off our shipyard dapper image. Discussed with @mangelajo earlier and plan is to make it work in our setup first. Then we figure out changes to be done in ovn-kubernetes in such a way that we can consume it by just cloning and contribute it there.

What we could do is clone and apply it dynamically (if it's not too much changes) using sed or cp, this way we have a good indication what's different so that we can easily push it to ovn-kubernetes later.
If we copy a lot of things in our repo its hard to tell what are the changes and whats just plain copied from ovn-k8s
That was my initial plan but changes required to make it work kept increasing. This should give an idea of changes in kind.sh which has most changes.

git diff  --shortstat ../../ovn-org/ovn-kubernetes/contrib/kind.sh ovn/kind.sh
 1 file changed, 70 insertions(+), 28 deletions(-)

I can look into reducing it further by about 40% now that I've got it working, but would still be too many sed or cp. A simple diff can always show the changes we've done.

Would it be possible to clone the ovn-kuberentes and just call the scripts there or did you do any changes to them?
I think it'll be much better like that (if we cant figure out how to deploy it on kind ourselves), it'll save us having to maintain their code in our repo and will allow us to easily update should we need it.

There are some changes to the scripts to make it work off our shipyard dapper image. Discussed with @mangelajo earlier and plan is to make it work in our setup first. Then we figure out changes to be done in ovn-kubernetes in such a way that we can consume it by just cloning and contribute it there.

What we could do is clone and apply it dynamically (if it's not too much changes) using sed or cp, this way we have a good indication what's different so that we can easily push it to ovn-kubernetes later.
If we copy a lot of things in our repo its hard to tell what are the changes and whats just plain copied from ovn-k8s
That was my initial plan but changes required to make it work kept increasing. This should give an idea of changes in kind.sh which has most changes.

git diff  --shortstat ../../ovn-org/ovn-kubernetes/contrib/kind.sh ovn/kind.sh
 1 file changed, 70 insertions(+), 28 deletions(-)

I can look into reducing it further by about 40% now that I've got it working, but would still be too many sed or cp. A simple diff can always show the changes we've done.

Replaced by #401

Replaced by #401


whitenoise.runserver_nostatic is ignored

What happened?
whitenoise.runserver_nostatic has no effect because of the order of INSTALLED_APPS, so the runserver command of staticfiles app is used instead of whitenoise.runserver_nostatic app

So... what? How does it impact you? Why is it a bug? Please provide more details about what's expected and what actually happened.

@browniebroke There is a package installed and added to project as Middleware and installed app but as it is now it has no use case, Django staticfiles run server is picked up instead of whitenoise's, how is this not a bug?

how is this not a bug?

I never said it wasn't: I ask for more details as I found your original message was a bit vague.

For context, this was added in https://github.com/cookiecutter/cookiecutter-django/pull/2304
I can't remeber how to identify which command is used. From what I can see in the Whitenoise docs, we seem to be doing what's needed, as the app is isntalled before django.contrib.staticfiles:
https://github.com/cookiecutter/cookiecutter-django/blob/eca21f5b774e427c49989530766f9aa660c3d264/{{cookiecutter.project_slug}}/config/settings/local.py#L45-L49
I haven't tried to re-generate a project to try to reproduce. What options have you used?
PS: we have an issue template which asks all these questions, would have been nice to follow it

I cannot reproduce. When I run python manage.py runserver --help I can see the following output:
usage: manage.py runserver [-h] [--ipv6] [--nothreading] [--noreload] [--nostatic] [--insecure] [--version] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--no-color] [--force-color] [--skip-checks] [addrport]

Starts a lightweight web server for development and also serves static files. (Wrapped by 'whitenoise.runserver_nostatic' to always enable '--nostatic')
...

The part (Wrapped by 'whitenoise.runserver_nostatic' to always enable '--nostatic') indicates that the whitenoise command is used.
I'm closing this as I cannot reproduce. Please provide more details to reproduce the problem on a fresh project generated from this template: options used and steps demonstrating the issue, with expected vs actual behaviour.


Bump distroless iptables image

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-distroless_istio
ee05b15bb363affacfff6f4f233855fc148c66eb
link
true
/test integ-distroless

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-distroless_istio
ee05b15bb363affacfff6f4f233855fc148c66eb
link
true
/test integ-distroless

release-test_istio
ee05b15bb363affacfff6f4f233855fc148c66eb
link
true
/test release-test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

In response to a cherrypick label: new pull request created: #49122

In response to a cherrypick label: new pull request created: #49123

In response to a cherrypick label: new pull request created: #49125


scss-lint fails

What triggers the problem ?
Running scss-lint
What happens exactly ?
npm ERR! Darwin 13.4.0
npm ERR! argv "/usr/local/Cellar/node/7.7.4/bin/node" "/usr/local/bin/npm" "run" "scss-lint"
npm ERR! node v7.7.4
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>scss-lint: `scss-lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>scss-lint script 'scss-lint'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic2-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     scss-lint
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic2-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic2-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Marc/Development/IonicApps/ucrowd_app/npm-debug.log

The log file in question :
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/7.7.4/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'scss-lint' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prescss-lint', 'scss-lint', 'postscss-lint' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for prescss-lint, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Marc/Development/IonicApps/ucrowd_app/node_modules/.bin:/usr/local/opt/scala/idea:/Users/Marc/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /Users/Marc/Development/IonicApps/ucrowd_app
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'scss-lint' ]
12 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
13 info lifecycle<EMAIL_ADDRESS>Failed to exec scss-lint script
14 verbose stack Error<EMAIL_ADDRESS>scss-lint: `scss-lint`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:194:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:194:7)
14 verbose stack     at maybeClose (internal/child_process.js:899:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid<EMAIL_ADDRESS>16 verbose cwd /Users/Marc/Development/IonicApps/ucrowd_app
17 error Darwin 13.4.0
18 error argv "/usr/local/Cellar/node/7.7.4/bin/node" "/usr/local/bin/npm" "run" "scss-lint"
19 error node v7.7.4
20 error npm  v4.1.2
21 error code ELIFECYCLE
22 error<EMAIL_ADDRESS>scss-lint: `scss-lint`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>scss-lint script 'scss-lint'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the ionic2-boilerplate package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     scss-lint
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs ionic2-boilerplate
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls ionic2-boilerplate
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Can you help me with that ? Can I do something else to explain the problem and context better ? Thanks in advance.

Have you installed ruby ? And run gem install scss_lint ?

Yes I did. I didn't include it because I thaught it was irrelevant but I also get many warnings on the scss of assets and node_modules before the errors I posted :
www/assets/fonts/roboto.scss:26:237 [W] StringQuotes: Prefer single quoted strings
www/assets/fonts/roboto.scss:30:16 [W] StringQuotes: Prefer single quoted strings
www/assets/fonts/roboto.scss:33:14 [W] StringQuotes: Prefer single quoted strings
www/assets/fonts/roboto.scss:33:36 [W] StringQuotes: Prefer single quoted strings
www/assets/fonts/roboto.scss:33:105 [W] StringQuotes: Prefer single quoted strings
www/assets/fonts/roboto.scss:33:167 [W] StringQuotes: Prefer single quoted strings
www/assets/fonts/roboto.scss:33:227 [W] StringQuotes: Prefer single quoted strings

Those warnings are about sass linting (this means that scss-lint is working and you should simply fix those warnings and errors).

Thank you very much ; I thought there was a problem since there were "only" warnings and it broke anyway.
I configure scss-lint to exclude node-modules and assets from the linting and discovered my own mistakes that were hidden in the mass of warnings…
Thank you for your patience.


Missing Documention Menu icons

This PR contain a quick update of icons.svg file with the following icons.
Let me know if one of them need to be changed.

testing
docker
task-runner
nodejs
emails
notification

Thank you for your contribution! 👍


What to do with the working sd card

Hi, it seems to have worked! I have the sd card running on a RPi3. Small request, do you mind a little paragraph in the Readme somewhere about what the next steps after are to use the system / grow it / add new packages. Just link to the appropriate guides.
What I'm particularly confused by is:

is what's running on this sd card the long-term nixos installation or is the sd card just an installer of sorts, so, first thing is to "install" the nixos on rPi? Kind of like most distros have a "LiveCD" which you use to install the long-term OS. Sorry, nixos newbie here
I don't see any /etc/nixos/configuration.nix file on the running system after boot. Can I just add a new one from scratch? It would feel a lot easier if there was a starter file there to evolve from. This is partly what makes me suspect that I have to do some kind of further installation on this image after popping the sd card into rPi3.

Again, not asking to write a whole NixOS or Nix tutorial, just link to the 1-2 appropriate ones and clarify what it is exactly that's running after you pop the SD card in and what can I / should I do in it?
P.S. very exciting project. Can't wait to have a .nix file describing all the smb , mpd / etc. music / media center setup I want on my various computers at home so that I don't have to sit and configure them each time something goes wrong and I forget the configuration steps. Much appreciation for your project.

It's explained in the README.md, basically once you boot NixOS, you can run those steps which will create a new "generation" in the same sdcard you used to boot. The NixOS generation you used to boot is still there and you generate a new one and switch to it, which will also be used in subsequent boots.
Make sure to follow all instructions though, the boot configuration is not the same as you'll switch to, so if you make a mistake in the /etc/nixos/configuration.nix file you'll generate, you might have to re-flash your sdcard.

ah thank you, I missed that section.

Hey, sorry - just caught up to this! Thank you so much @arsfeld for taking the time to reply, and yes - there indeed are some indications on post-installation steps in the README, even though I get how you might have missed them!
Feel free to suggest any improvement.
Thank you for using this!


Consider providing permanent links to TrueType Instruction Set.

The opentype iso standard contains the following normative reference:
TrueType Instruction Set, http://www.microsoft.com/typography/otspec/ttinst.htm
This link quickly become outdated now. The newest url is:
https://docs.microsoft.com/en-us/typography/opentype/spec/tt_instructions
I wonder if it makes sense to make this somehow a permanent link that can be updated overtime. Or make this a normative publication somehow. It would also be nice if a PDF version is provided.

Thank you for letting us know. I will submit a request to get the URL redirected. I will update when this is done.

Fixed. Old URL http://www.microsoft.com/typography/otspec/ttinst.htm now redirects to https://docs.microsoft.com/en-us/typography/opentype/spec/tt_instructions.


[Feature request] Chat ping!

It would be cool to have the ability to enable a ping feature in the config, when someone says your IGN in chat you hear a little sound!
And there could also be a settings to put a color on it so your IGN in the message would be a different color that you could chose in the config to make it more noticeable, kind of like a highlighting.

Second this, I was going to request the same thing but turns out it's already requested.
It's very useful in case you are just watching youtube while afk-ing, and get pinged when someone talks / messaged you.
But the question is, is it possible? Or rather, is it feasible?
I am not familiar with bukkit api, but I kinda understand that HuskChat "intercept" chat packet sent from client at the proxy level, without forwarding the chat packet to the backend server (unless passthrough option is enabled).
I am guessing it's gonna be difficult to implement this, as we need to somehow tell backend server to play sound (probably using bungee plugin messaging?).
Probably you want to put the ping feature as separate plugin in order to keep the simplicity of HuskChat.
I am just curious in the technical detail 😁

Interested in too !