No method "predict_classes" in Model

It seems that only Sequential models have the predict_classes method, which means that a model built using the functional API cannot be wrapped using the SKlearn KerasClassifier class. Is there a technical reason this is not implemented?

`
def probas_to_classes(y_pred):
    if len(y_pred.shape) > 1 and y_pred.shape[1] > 1:
        return categorical_probas_to_classes(y_pred)
    return np.array([1 if p > 0.5 else 0 for p in y_pred])

`

from keras.utils.np_utils import probas_to_classes

I  just came across same issue. I thought the functional and sequential apis were just alternative apis with the same underlying model. Why can't sklearn predict work for both rather than calling a function only available to sequential?
And more widely are there any other pitfalls using the sklearn wrapper with the functional api. I note that the code has many references to Sequential but sees to work fine with the functional model in most cases.

@Manezx  As of Keras 2.x there is no from  probas_to_classes . Any alternative?

Here is an example for nlp
`
labels = list(set(y))
nb_classes = len(labels) + 1
label2ind = {label: index+1 for index, label in enumerate(labels)}
ind2label = {(index+1): label for index, label in enumerate(labels)}

def encode(y):
    return np.asarray([to_categorical([label2ind[word] for word in sentence], nb_classes) for  sentence in y])

def decode(y):
    y_ind = np.argmax(y, axis=-1)
    return [[ind2label[word] for word in sentence] for sentence in y_ind]`

It would be nice to add this method to the Model class, in order to give the same funtionalities of the Sequential api


In v1.4 lots of Points as direct subclasses of Thing

Hi,
Since v1.4, many "...Sensor" / "...Setpoint" / "...Parameter" classes have no subclass declaration which leads them to get out of the initial class hierarchy (brick:Class -> brick:Point -> etc...).
As a consequence, they are treated by ontology tools as direct subclasses of owl:Thing.
For consistency with the rest of the points class structure, they should be declared as subclass of brick:Point or any relevant underlying subclass of it.
Please fix it in a next revision.
BR

Thanks for the heads up @HervePruvost ! Can you share an example of one of the classes you are talking about? We should be able to fix this in an upcoming point release or nightly build

Note to self: these show up on some of the aliases and possibly some of the deprecated classes, where the equivalent class and/or alias has the subclass relationship but the term in question does not

Hi @gtfierro , among the classes I meant are for example brick:Discharge_Air_Humidity_Sensor, brick:Occupied_Cooling_Discharge_Air_Flow_Setpoint or brick:Discharge_Air_Flow_Demand_Setpoint... There are a lot of them.
They have indeed some equivalentClass properties and do not have any subClassOf properties, contrary to the other points which are correctly nested into the Brick:Point tree and have subClassOf properties.

Thanks for the quick response! We should be able to fix this by next week


chore(next): add routing

Description of Changes

Remove ./hooks workaround
[ ] Add Next.js routing
[x] Call nw.require during dev mode
[ ] Call nw.require after building app

Fixes: #1

Will have to revisit later and figure out how to call nw api in Next.


Update auth, dynamodb, s3, sqs to 2.17.233

Updates

software.amazon.awssdk:auth
software.amazon.awssdk:dynamodb
software.amazon.awssdk:s3
software.amazon.awssdk:sqs

from 2.17.193 to 2.17.233.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "software.amazon.awssdk" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #931.


DBZ-1428 Restore TX isolation level after table read lock

https://issues.jboss.org/browse/DBZ-1428

LGTM, applied. Thx, @jpechane!


Update doc for installing libomp on MacOS

Issue #, if available:
#1442
Description of changes:

Updates doc to correct install instructions for libomp on MacOS to avoid segfault.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-1453-1 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1453/1/index.html


AttributeError: 'HTTPError' object has no attribute 'replace'

Running soundscrape https://soundcloud.com/twsounds/paula-temple-live-at-time-warp-2018 results in:
Downloading: Paula Temple live at Time Warp Mannheim 2018
Problem downloading Paula Temple live at Time Warp Mannheim 2018
Traceback (most recent call last):
  File "/usr/local/bin/soundscrape", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/soundscrape/soundscrape.py", line 119, in main
    process_soundcloud(vargs)
  File "/usr/local/lib/python2.7/site-packages/soundscrape/soundscrape.py", line 292, in process_soundcloud
    id3_extras=id3_extras)
  File "/usr/local/lib/python2.7/site-packages/soundscrape/soundscrape.py", line 460, in download_tracks
    puts_safe(e)
  File "/usr/local/lib/python2.7/site-packages/soundscrape/soundscrape.py", line 1315, in puts_safe
    puts(text)
  File "/usr/local/lib/python2.7/site-packages/clint/textui/core.py", line 57, in puts
    s = tsplit(s, NEWLINES)
  File "/usr/local/lib/python2.7/site-packages/clint/utils.py", line 69, in tsplit
    string = string.replace(i, final_delimiter)
AttributeError: 'HTTPError' object has no attribute 'replace'

This is a problem with urllib. soundscrape was installed with brew and ran under python v 2.7.
Running with python v 3 fixes the problem.
Quick fix:
git clone https://github.com/Miserlou/SoundScrape
cd SoundScrape
while read p; do; pip3 install $p; done < requirements.txt
[OR: pip3 install -r requirements.txt]
cd soundscrape
python3 soundscrape [...]

Getting same error
I installed with pip install soundscrape in venv which contains python3. Technically it should work?

I also happened to get this error when I was trying to scrape something really long (>1 hour). Don't see how that error could be linked to length, but maybe it is.

@christopherjmedlin  I followed above mentioned steps and it worked for me.

another example of this issue:
$ soundscrape https://soundcloud.com/anjunadeep/the-anjunadeep-edition-241
Downloading: The Anjunadeep Edition 241 with Braxton
Problem downloading The Anjunadeep Edition 241 with Braxton
Traceback (most recent call last):
  File "/usr/local/bin/soundscrape", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 119, in main
    process_soundcloud(vargs)
  File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 292, in process_soundcloud
    id3_extras=id3_extras)
  File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 460, in download_tracks
    puts_safe(e)
  File "/usr/local/lib/python2.7/dist-packages/soundscrape/soundscrape.py", line 1315, in puts_safe
    puts(text)
  File "/usr/local/lib/python2.7/dist-packages/clint/textui/core.py", line 57, in puts
    s = tsplit(s, NEWLINES)
  File "/usr/local/lib/python2.7/dist-packages/clint/utils.py", line 69, in tsplit
    string = string.replace(i, final_delimiter)
AttributeError: 'HTTPError' object has no attribute 'replace'

PR #241 handles http errors more gracefully.


process_form_submission should return the FormSubmission instance

It would be nice if the process_form_submission method returned the FormSubmission instance that was created so the record number could be presented to the viewer / tracked.
The FormSubmission instance should then be passed to the render context for the "landing page".
In the same line of thought... it would also be nice if there was a uuid or some sort of meaningless random token on the FormSubmission instance that could be used as a reference value to pass along to the client.
It would also be nice if this token could be appended to the email subject line to prevent mail clients from grouping into one conversation (aka gmail interface)

It would be nice if the process_form_submission method returned the FormSubmission instance that was created so the record number could be presented to the viewer / tracked.

AbstractForm.process_form_submission and AbstractEmailForm.process_form_submission methods now return FormSubmission instance. See #2926 for details.

The FormSubmission instance should then be passed to the render context for the "landing page".

But we still need to pass a FormSubmission instance into a template context on a successful form submission.

In the same line of thought... it would also be nice if there was a uuid or some sort of meaningless random token on the FormSubmission instance that could be used as a reference value to pass along to the client.

You will be able to define your own form submission class once #2617 will be merged.

It would also be nice if this token could be appended to the email subject line to prevent mail clients from grouping into one conversation (aka gmail interface)

I don't think that we need to change a default behaviour, but in Wagtail 1.7 you will be able to override the AbstractEmailForm.send_mail method to define your own send mail logic.

Can this be closed? @m1kola

@lb- I think this bit is still not implemented:

The FormSubmission instance should then be passed to the render context for the "landing page".

See: https://github.com/wagtail/wagtail/blob/e8720c7627b5f92d23502830198f7119f461776d/wagtail/wagtailforms/models.py#L263-L286
But probably, we should create a separate issue for this.

@m1kola I can to a PR for that last change with some tests.

That would be great, thanks!

Looks like the PRs for #2834 may be able to solve this issue also, I have suggested a few changes to the first PR - #4024

Is it okay if the form_submission is None in preview?
Is it sensible if the preview creates a synthetic, unsaved, dummy form submission, or is it enough that you can override serve_preview to do this if your landing page have a special need for the form_submission to be filled?

I think it would be best to leave form_submisson as None. Adding the mocking logic would not be easy and also as this is a new feature we don't really know if lots of people will use it yet.

The last part of this has been resolved in #4024 - landing pages will now get form_submission in their context.


Upgrade to Node 4.0 on Prod Web Servers

@DFurnes Coordinating with you on this tomorrow.

:tada:

Deployed!


micro: CUMSUM PR3-5

PR steps 3 through 5 for the CUMSUM operator as per Issue #47290

@ddavis-2015 This PR is in draft, any update on this? Please. Thanks!


Issue while edit service image in service page

Describe the bug

When edit service image it does not display in image uploader, showing default image

Expected behavior

It should show service image which is uploaded previously
save button does not have tick icon check all page for save button tick issue

Screenshots

provide Images all type issues @Avinash-ecb

Images Load Failed Auto Default Images Load

save button is not working after edit service
download button is not working


Create a helper to check when Ember.$, $ or jQuery are used in component code

Currently we have tests that check when Ember.$, $ or jQuery are referenced in component code. Abstract a helper out of the current code that can be used in other tests.

https://github.com/softlayer/sl-ember-test-helpers/issues/156 has been created to address this


Change RegKey checks from "IIS AspNetCore Module" to "IIS AspNetCore Module V2"

Also we need to check if there are IIS Express RegKeys that should be uniquely checked too.

@shirhatti Thoughts on this one?
Please milestone or close it. Thanks.

Why do we need a unique IIS Express reg key? I'm assuming if there's a vuln, we'd want one global kill switch.
@jkotalik Let's close this


Can't start crouton on latest arnoldthebat special build

Log:
[   209.448] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.910-0ubuntu1.6 (Timo Aaltonen<EMAIL_ADDRESS>[   209.448] (WW) Falling back to old probe method for fbdev
[   209.448] (II) Loading sub module "fbdevhw"
[   209.448] (II) LoadModule: "fbdevhw"
[   209.449] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   209.449] (II) Module fbdevhw: vendor="X.Org Foundation"
[   209.449]    compiled for 1.15.1, module version = 0.0.2
[   209.449]    ABI class: X.Org Video Driver, version 15.0
[   211.604] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[   211.604] (EE) intel(0): Failed to claim DRM device.
[   211.605] (II) UnloadModule: "intel"
[   211.605] (EE) Screen(s) found, but none have a usable configuration.
[   211.605] (EE)
Fatal server error:
[   211.605] (EE) no screens found(EE)
[   211.605] (EE)
Also found  issues #524 & #1777, which seem to be just like this one.

hello i am having similar problem
wheezy - kde
on acerc720 using latest crouton installer.
cannot start X-Server.
problem only with wheezy - not with jessie.

sudo startkde
Setup completed. Entering chroot...
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-4-amd64 i686 Debian
Current Operating System: Linux localhost 3.8.11 #1 SMP Mon Aug 31 19:53:26 PDT 2015 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=6ae23ae3-1182-fe4a-ae76-bfdf10007b8a/PARTNROFF=1 hashtree=PARTUUID=6ae23ae3-1182-fe4a-ae76-bfdf10007b8a/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=38da5d8e079de303288a85e0420d1c7c60982e4f salt=112a1747e8b7f41d4e33d23397566bb755fb91abb8efd7da23a3130110a76a28" noinitrd vt.global_cursor_default=0 kern_guid=6ae23ae3-1182-fe4a-ae76-bfdf10007b8a add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic iTCO_vendor_support.vendorsupport=3
Build Date: 09 February 2015  10:12:47AM
xorg-server 2:1.12.4-6+deb7u6 (Julien Cristau<EMAIL_ADDRESS>Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Fri Sep 25 19:19:09 2015
(++) Using config file: "/etc/X11/xorg-dummy.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/usr/bin/xinit: XFree86_VT property unexpectedly has 0 items instead of 1
crouton: version 1-20150924014025~master:04ff0c11
release: wheezy
architecture: i386
xmethod: xiwi
targets: kde
host: version 7262.52.0 (Official Build) stable-channel peppy
kernel: Linux localhost 3.8.11 #1 SMP Mon Aug 31 19:53:26 PDT 2015 x86_64 GNU/Linux
freon: yes
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Unable to start display, make sure the crouton extension is installed
and enabled, and up to date. (download from http://goo.gl/OVQOEt)
Running exit commands...
/usr/bin/xinit: connection to X server lost
waiting for X server to shut down Hangup
Hangup
Hangup
Server terminated successfully (0). Closing log file.
Unmounting /mnt/stateful_partition/crouton/chroots/wheezy...

@mrkapqa, your issue is unrelated.
@cmason37: I haven't tried those Chromium OS builds, but the "intel(0): Failed to claim DRM device." is interesting.  Could you post the output of sudo edit-chroot -al?

I have the same problem. On both vivid and precise the X-Server fails to start. (Using http://arnoldthebat.co.uk/wordpress/2015/09/14/chromiumos-special-build-r47-7451/)
From /var/log/Xorg.1.log:
[  1728.454] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[  1728.454] (II) intel(0): [drm] Contents of '/sys/kernel/debug/dri/0/clients':
[  1728.454] (II) intel(0): [drm]              command   pid dev master a   uid      magic
[  1728.454] (II) intel(0): [drm]                    X  1905   0   y    y   231          0
[  1728.454] (II) intel(0): [drm]               chrome  3012   0   n    y  1000          1
[  1728.454] (II) intel(0): [drm]                 Xorg 23987   0   n    y     0          0
[  1728.454] (EE) intel(0): Failed to claim DRM device.
[  1728.454] (II) UnloadModule: "intel"

edit-chroot -al outputs
name: vivid
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/vivid...
crouton: version 1-20150924014025~master:04ff0c11
release: vivid
architecture: i386
xmethod: xorg
targets: xfce
host: version 7451.0.2015_09_13_1749 (Developer Build - tonyd) developer-build x86-atb
kernel: Linux localhost 3.19.3 #1 SMP Mon Sep 7 20:26:18 BST 2015 i686 i686 i686 GNU/Linux
freon: no
Not unmounting /mnt/stateful_partition/crouton/chroots/vivid as another instance is using it.

What does sudo enter-chroot -n vivid ls -l /usr/bin/X tell you?

It outputs:
chronos@localhost ~ $ sudo enter-chroot -n vivid ls -l /usr/bin/X
Password:
Entering /mnt/stateful_partition/crouton/chroots/vivid...
-rwsr-sr-x 1 root root 9532 Mar 16  2015 /usr/bin/X
Unmounting /mnt/stateful_partition/crouton/chroots/vivid...

[  2428.779] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[  2428.779] (EE) intel(0): Failed to claim DRM device.

I'm getting the same error messages and my /usr/bin/X file has the same permissions as @dussel0815s.
This is on my Acer C710 (parrot) using a Cloudready version of Chromium. It's just an experiment so it's no biggie but I would still like to figure out the problem so I can run a chroot or two.
My croutonversion is:
name: trusty.r39
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/trusty.r39...
crouton: version 1-20151016090355
release: trusty
architecture: i386
xmethod: xorg
targets: cli-extra,extension,keyboard,xiwi,xorg,lxde-desktop,chrome-beta
host: version 43.1.37
kernel: Linux localhost 4.0.5+ #1 SMP Wed Sep 30 02:05:19 UTC 2015 i686 i686 i686 GNU/Linux
freon: no

I'm using the following Chromium build (via Cloudready):
CHROMEOS_RELEASE_BOARD=dataart
CHROMEOS_RELEASE_BRANCH_NUMBER=86
CHROMEOS_RELEASE_BUILD_NUMBER=6946
CHROMEOS_RELEASE_BUILD_TYPE=Developer Build - neverware
CHROMEOS_RELEASE_CHROME_MILESTONE=43
CHROMEOS_RELEASE_DESCRIPTION=43.1.37
CHROMEOS_RELEASE_NAME=Chromium OS
CHROMEOS_RELEASE_PATCH_NUMBER=2015_09_30_0319
CHROMEOS_RELEASE_TRACK=developer-build
CHROMEOS_RELEASE_VERSION=43.1.37
GOOGLE_RELEASE=43.1.37
CHROMEOS_AUSERVER=https://cloudready-free-update-server.neverware.com/update
CHROMEOS_DEVSERVER=https://cloudready-free-update-server.neverware.com/

Also, xmethod 'xiwi' connects and opens but all I get is a blank screen.
I may try to add a 'kde' target to see if it acts any differently.

When I first ran crouton, I kept getting the error message:
Your version of Chromium OS is extraordinarily old.
I had to change build/wrapper.sh to use the 'version' number instead of the 'platform' number (Version Numbers) and installer/main.sh to use '_CHROME_MILESTONE=' instead of '_RELEASE_VERSION='. This should work for both Chrome OS and Chromium.

_CHROME_MILESTONE is a bit coarse, but that really just impacts how quickly we can expire old hacks and put in new dependencies.  @drinkcat: do we have a strong need for the granularity, or can we drop back to simple MILESTONE comparisons?

dev channel can keep the same milestone but upgrade the build number. So MILESTONE won't work generally (using it for the Your version of Chromium OS is extraordinarily old. check would be fine though).
Could we use CHROMEOS_RELEASE_BUILD_NUMBER ?

@dnschneid, @drinkcat - I should have noticed the build number was common to Chrome OS and Chromium but, in my haste, I overlooked it and chose the CHROMEOS_RELEASE_CHROME_MILESTONE which, like you mention, is a bit too course.
I think the CHROMEOS_RELEASE_BUILD_NUMBER might be a good parameter to use since, in the Cloudready version of Chromium, it's currently using a build number of 6946 which is greater than CROS_MIN_VERS=6310 in build/wrapper.sh so it should work for both OSes.
Thanx for looking at this.
[ It might even be a pie ;) ]
-DennisL

P.S. I've since done a full recovery on my Acer C7 that was running Cloudready and restored it back to Chrome OS since I couldn't get any gui desktops to work on the Cloudready platform. I'm not the most patient person around...
The good news is I've got my crispy CROUTON partion re-defined so I'm good to go again. ;)

I like pie!!

I like pie!!

Go for it!

Just my 2 cents worth here... Cloudready seems to be an up and coming thing.  Having Crouton run on it is also something very worthwhile for me!  @DennisLfromGA I'll go halfs on the the pie ;vP

So is the task here to replace CHROMEOS_RELEASE_CHROME_MILESTONE with
CHROMEOS_RELEASE_BUILD_NUMBER
? And if so, in which module (s) ? Should Cloudready be added to a list of
future targets, or is it something else? I've heard of it, but have not
installed or seen it  yet.
On Fri, Oct 30, 2015 at 9:00 AM, Karl Gingerich<EMAIL_ADDRESS>wrote:

Just my 2 cents worth here... Cloudready seems to be an up and coming
thing. Having Crouton run on it is also something very worthwhile for me!
@DennisLfromGA https://github.com/DennisLfromGA I'll go halfs on the
the pie ;vP
—
Reply to this email directly or view it on GitHub
https://github.com/dnschneid/crouton/issues/2126#issuecomment-152565824.

@tedm I would say yes, it should be added.  I personally have not tried to install Crouton on Cloudready, so I cannot answer your first question.  @DennisLfromGA is your guy for that question.
FWIW, Cloudready is basically a clone of ChromeOS for PC and Mac etc.  It can even be installed on existing machines.  It preformed very well for me on a Mac Air 11" (2008 era) and made it more usable again.  There does seem to be a good support 'team' behind it - tho I really have no idea how committed to the future they are.

@ted,

So is the task here to replace CHROMEOS_RELEASE_CHROME_MILESTONE with
CHROMEOS_RELEASE_BUILD_NUMBER ?
And if so, in which module (s) ?

I think the tentative proposal is to replace '_RELEASE_VERSION=' with '_RELEASE_BUILD_NUMBER' in installer/main.sh, this way, build/wrapper.sh would not have to change. You of course leave off the 'CHROMEOS' part.

Should Cloudready be added to a list of
future targets, or is it something else?

That is a whole 'nother ballgame, it is definitely 'something else'.
Cloudready is a full, chromium based OS, like Chrome OS so it's not in the 'target' category.

I think there is also another issue: I did not use the Cloudready build, but Arnoldthebats and the install had no "Your version is old" error. Instead I could not start the x server.
So there is one issue with the installer checking the wrong version but also another with the failing X server.

@dussel0815 - You're right, I think we've gotten away from the original issue.

@DennisLfromGA  Dennis, I found your code here:
https://github.com/dnschneid/crouton/blob/488c9e21c39f5a6bd644aff49128e2f8a9016978/installer/main.sh
But it says I have to be on a branch to make changes (I can't fork here, I can on my make changes online).

@tedm,
That's totally unrelated, it was a PR for 'Removed $TARGETSDIR prefix' that has already been merged.
You need to make changes to the crouton master online ( installer/main.sh ) by selecting the 'edit' icon to the right of History -

or via 'git' in a crouton chroot - see Set Up Git.

@DennisLfromGA I made the change, and initiated the pull request.
I know these commands with gitlab (which we use at work):
git push, pull, commit -a, origin, master, keygen-ssh, copy/paste keys,
What am I missing?

I was able to install Crouton (finally) onto CloudReady, but was unable to get the graphical interface to run (Xfc4). I don't know if it's the same problem that the Arnoldthebat is having.

@tedm,

What am I missing?

I looked at your PR and it doesn't look like your missing anything.
It looks good to me, now we just have to see if it looks good to the developers.

OK, thanks @dennisl
On Oct 31, 2015 7:39 AM, "DennisL"<EMAIL_ADDRESS>wrote:

@tedm https://github.com/tedm,
What am I missing?
I looked at your PR
https://github.com/tedm/crouton/commit/aebd7b44209e6461ee2c135a9361484edce4f0e4
and it doesn't look like your missing anything.
It looks good to me, now we just have to see if it looks good to the
developers.
—
Reply to this email directly or view it on GitHub
https://github.com/dnschneid/crouton/issues/2126#issuecomment-152740218.

@cmason37 @mrkapqa Does this fix your issues?

Hi,
The patch for this could be as outlined or with line 132 (on the latest crouton) as:
if ! awk -F= '/_CHROME_MILESTONE=/ { exit int($2) < '"${CROS_MIN_VERS:-0}"' }' \
In any case this allows crouton to install and be used. Only remaining issue is that on the latest cloudready (neverware) version 44 the startgnome etc. work but the Chrome extension using xiwi or extension do nothing. You just get the constant 'Connecting' and failing cycle.
Any chance someone could look at that as it would be great to be able to run the couple of missing apps that you get in Linux but not Chrome OS.
Overall Crouton is great, thanks to the team for that.

@DennisLfromGA Which patch do you think is better, the original one with PR submitted or @wsherliker 's one with awk ? I haven't used cloudready yet, so know nothing about that.

@tedm - As if my opinion would count ;), I think your current PR's solution is better because the RELEASE_BUILD_NUMBER is a 'finer' control, as opposed to the CHROME_MILESTONE number, which I originally proposed in my haste. :/
See @dnschneid's comment above - https://github.com/dnschneid/crouton/issues/2126#issuecomment-150357067

OK, @tedm's patch is merged.  Re-open if you still have issues.

These days i am using HugeGreenBugs. iso on DualBoot for the Acer C720.
Should i buy another Chromebook (possibly Toshiba Chromebook 2) anytime soon, i will let you know, cause i prefer Debian over Ubuntu. thanks for the help.

@dnschneid I'm on arnoldthebat's latest special build again, & this does not fix my issue at all.I'm still having the exact same problem, log & everything.

Same stuff here. But got success when built Chromium OS for PC by myself. Here is the howto: https://gist.github.com/gnidorah/8ca4f7db3af38b1622a8

@cmason37 Try removing the intel driver in the chroot using "sudo apt-get remove xserver-xorg-video-intel". The X server will use the fbdev driver and the chroot desktop should work.
From my limited knowledge of the linux graphics stack, I think the reason the intel driver fails is that it's not able to capture the display device through drm. If you take a look at the Xorg logs on the host you can see that "drmDropMaster" and "drmSetMaster" fail. This is because the xorg server is run as a non-root user (verified on CloudReady chromium os) and it's not able to call the DRM ioctls.
I'm trying out a few solutions and will maybe have the intel driver working this week.

@chaitan3 One needs a patch that looks like this to get drm dropping/setting to work correctly: https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/d53b6142c2b5c742d2c547568c9814597c41ede6 . Not sure what kernel arnoldthebat is using (maybe a 4.4 kernel?).

In any case, please file a new issue if this is still a problem.


how to change my  .txt data to .pth to train  pt3 model

Hello, thank you very much for your efforts and selfless dedication from you and your team members. This is an outstanding work with powerful functions and a project well worth learning.
During the learning process, I encountered some problems. According to the patient explanations of the authors of the "Q&A Area", many problems were solved, but I have not yet found solutions to other problems.
I annotate lidar point cloud data by cloudcompare, and get the .txt annotate data.  I want to segment tower and tree from raw point cloud. becasue a scence of the dataset is more than 10G. So I email more information by email to<EMAIL_ADDRESS>.
now, I have can train pt3 model on scannet. could you help me how to encapsulate my annotated data to train pt3 model to sigment  electrionic tower and tree below electronic line.
Thank you vey much！

Hi, I think you will get an answer after reading our preprocessing code for ScanNet as an example.

think you！I will try to do as you advice
---Original---
From: "Xiaoyang @.>
Date: Thu, Apr 11, 2024 00:14 AM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [Pointcept/Pointcept] how to change my  .txt data to .pth totrain  pt3 model (Issue #208)
Hi, I think you will get an answer after reading our preprocessing code for ScanNet as an example.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Dedicated semantic token for method declaration with property decorator

Currently, when method inside class is decorated with @property, it's semantic token type is set as 'property', and modifier as 'declaration'. That is consistent with the actual state, however since in code it's written as a method, there is no possibility to override the color assigned to this particular scenario (modifying color set for 'property declaration' would just override declaration of every single variable set on a class instance). As a result, you get output like on the image below:

You can see that it looks kind of weird. Anyway, it would be nice to add another modifier to the chain, like: 'property'->'declaration'->'decorator', so that it could be modified and set by the end-user in settings. Referring to the image above, that would allow to set the color to yellow for 'test_property' in lines 11 and 15, in order to have more consistency.

This seems somewhat related, but perhaps deserves its own issue if not: class constants seem to be marked as property as well, which doesn't allow any color customization on them either:

One exception is enum members, which seem to have the special token type enumMember, which is highlighted like variable by default in my theme but can be customized:

Moving this issue to discussion as an enhancement request for comments and upvotes.


Create a build feature that allows FINOS microsite developers to demonstrate their in-development Docusaurus sites from their forks

Feature Description
Create a GitHub build feature to make it easier for developers to demonstrate builds of Docusaurus microsites cloned from the FINOS project blueprint from their personal forks.
The objective is to share WIP (work in progress) builds with other collaborators from personal forks before PRs are raised to merge final changes upstream.
This scenario comes from the FINOS Pure/Alloy project where several people are working on documentation concurrently and it would be useful to share ideas prior to PRs being raised.

The following comments where raised by @brooklynrob on issue #19 before the issue was split into two separate in-development and PR merge features.

@grizzwolf @mcleo-d @maoo A good example I thought of when discussing this w/ @toshaellison today was the way in which Riko's fork, https://rikoe.github.io/FDC3/docs/use-cases/overview (no longer up) became our de facto staging/testing/integrate environment during the FDC3 doc site says. Grizz's did too.

@grizzwolf @mcleo-d @maoo Versioning might be another way to fulfill this. See https://docusaurus.io/docs/en/tutorial-version. This sentence, especially the last part, is what caught my eye: "Versioned documentation helps to show relevant documentation for the current version of a tool and also hide unreleased documentation from users, reducing confusion." -- I am looking for a way to stage/test/show documentation to a small group of reviewers for comment first before releasing it to everyone.

Another idea for how to implement this (a staging/integration environment in which to stage/evaluate proposed documentation changes) for, say, Alloy.

(Current) Production: Doc commits made to master branch configured to build and deploy pages into the gh-pages branch, which deploys to alloy.finos.org
(Suggested) Test/Stages: Commits made/merged to a (say) docs-test branch configured to build and deploy pages into the gh-pages-test branch, which deploys to alloy-test.finos.org. Changes promoted from test to production as ready to go/approved.
(Optional) Dev: Commits made/merged to a docs-dev branch configured to build and deploy pages into the gh-pages-dev branch, which deploys to alloy-dev.finos.org

I.e., use the same build infrastructure and process, and make use of branches and two new hostnames to create 1 or 2 more instances (test and dev). Additionally, probably make process that pull requests are merged into the lowest (i.e., test if there is no dev; otherwise dev) level and then commits promoted as part of the editorial review process.

@mcleo-d , I think this is done, as we have it working on PURE/Alloy and is working as expected. Are you confident to mark this issue as closed, given that the solution was presented during the last ODP meeting?


Combine all image file into one js file

Fixed in 2019-09-12.  The combined file called Scilligence.JSDraw2.Resources.js

Tianhong - can you confirm if this is OK please?

working OK, close.


Object entries requires that input parameter not be null or undefined

Issue Description
Error:  Object.entries requires that input parameter not be null or undefined
Steps to Reproduce / Code Snippets
import React from 'react'
import { StyleSheet, View, Text,Dimensions } from 'react-native'
import PDFReader from 'rn-pdf-reader-js'
export default class App extends React.Component {
render() {
return (

<PDFReader
source={{
uri: 'https://pmkusum.hareda.gov.in/Site Survey Form.pdf',
}}
webviewProps={{
startInLoadingState: true,
}}
/>

)
}
}
const styles = StyleSheet.create({
container: {
paddingTop: 30,
flex: 1,
},
imageContainer: {
flex: 1,
width: Dimensions.get("window").width,
height: Dimensions.get("window").height,
},
})
Expected Results
open pdf in pdf viewer
Additional Information

Nodejs version: v18.17.0
React version: 0.72.4
expo version: 49.0.10
rn-pdf-reader-js version: ^4.1.1
react-native-webview: ^13.6.0
Platform(s) (iOS, Android, or both?): Android

Had the same issue after upgrading to expo SDK49. I am not sure if this is the best approach, but after downgrading react-native-webview in my case back to 11.23.1 it works again. However, it is not the recommended version by expo.

Checkout the comment to make it resolve.
https://github.com/xcarpentier/rn-pdf-reader-js/issues/195#issuecomment-1693329604

Had the same issue after upgrading to expo SDK49. I am not sure if this is the best approach, but after downgrading react-native-webview in my case back to 11.23.1 it works again. However, it is not the recommended version by expo.

但是在IOS ，不行

try this to resolve:
import PDFReader, { Props } from 'rn-pdf-reader-js'

class MyPDFReader extends PDFReader {
  constructor(props: Props | Readonly<Props>) {
    super(props);
    this.state = { ...this.state, renderedOnce: true };
  }
}

....

return (
   <MyPDFReader
       source={{ uri: uri }}
       ....
   />
)


Port from SSE to NDJSON over ReadableStream

Purpose
This PR ports the app from using SSE (via the browser's EventSource object) to using ReadableStream (returned from the browser's fetch() function).
The reasoning:

Fetching a ReadableStream is simpler than setting up an SSE, since it's just a fetch() request that returns a stream (versus an EventSource object with various lifespan events).
Now we can use POST instead of GET, which is preferred for transferring the message and any other user information. I've made that change in this PR as well. (We could only use GET with EventSource).

We also convert the events received on the server side into NDJSON (newline-delimited JSON). The reasoning for this is that we might potentially receive multiple JSON objects in the same stream chunk, and we need to be able to parse them as separate objects. By outputting ndjson on the server-side, we can parse them as ndjson on the client-side. This approach is already used by Microsoft's other ChatGPT sample. To make it easier, I made a JS package that can be imported by all the samples that takes care of the JSON parsing on the frontend.
Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type
What kind of change does this Pull Request introduce?
[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

docker-compose up --build
Confirm app works
azd up
Confirm app works

FYI @achandmsft


Is it possible to upload some pretrained models of tacotron2 for the libritts dataset?

https://github.com/espnet/espnet/tree/master/egs2/libritts/tts1/conf/tuning
There are many model configs in libritts, but the only models that can be downloaded are transformer and fastspeech2. T T

Sorry, I have no pretrained model of libritts tacotron2 :(

Sorry, I have no pretrained model of libritts tacotron2 :(

Thank you for your reply, I will train one by myself


Enhance Job History Model to Include Currently Scheduled Jobs

Description
Currently, users need to navigate to the pipeline to verify the status of currently scheduled and running jobs. This process can be cumbersome and inefficient, especially when users need quick access to this information. To improve user experience and streamline job management, we propose enhancing the Job History model to include details of currently scheduled and running jobs.

Will recreate when raised by customer.


DOM now calls into AndroidDOMProvider via the UI thread

This patches DOM so that it calls into AndroidDOMProvider on the UI thread in the necessary locations. Otherwise we have a strong chance of stepping on UI objects from background threads. Proper enforcement and discovery of the threading model for AndroidDOMProvider needs a bit more chin-scratching, which we plan to do soon.
Closes #114

Looks good, rebase and merge.


Copy + Paste in Terminal

A extension, that could be limited to only Terminal.app (and other terminalapplications) is copy&paste of the selection. Very common use case in a terminal.

Ref: Conversation #4282 / Sven Erik

Ref: Conversation #5437 / Jean-Marc


⚠ Bofrost.de has degraded performance

In bf816b7, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2036 ms

Resolved: Bofrost.de performance has improved in 9f8c0f2.


ansy send package

异步发送包

Coverage decreased (-1.9%) to 78.153% when pulling 5177be5f7ceb63021b65eb5268108641fb8effb5 on yanjianlong:master into 11d65fed0c44446bceae742dce316f9764b4ef10 on funny:master.


Self Exercise 4 ToString() Issue

Tried my code in jshell and it passes all the testcases, but when I submit it the autograder gives me this error.

I think it might have something to do with the ToString method required for us in the test cases? Such as

I tried editing my toString method bodies to not explicitly have "..." inside and codecrunch passes all the testcases now. Just wondering if it's a bug with the autograder.

Thank you!

Checked with my TA and they said that I don't even need a toString method because that's the natural output of the object. Me now

that toString() doesn't need to be overridden. the default output of toString() is ClassName@<memoryaddress>, with the test cases using ellipses in place of the memory address, since the address is not consistent and doesn't matter
Ellipsis in Java denote varargs, and like many other things not covered in CS2030, CodeCrunch bans them, presumably by searching the exact literal ...


There is no Database tab in Project Settings anymore

I was looking at the README for one of the demos, and in the instructions it tells us to:
Go to ⚙ > Project Settings > Database > Database secrets
But with the Admin SDK launch, we no longer have a 'Database' tab. Database Secrets is now in a tab called "Service Accounts", and in a section called "Legacy credentials" with the following big warning in Red:
"Database secrets are currently deprecated and use a legacy Firebase token generator. Update your source code with the Firebase Admin SDK."

I have the same problem.
What do we replace "token_or_secret" with ?

duplicate of #224


consider splitting Observable into interface vs mixin

this would allow, e.g. implements Observable or with ChangeNotifier without transitively importing mirrors. I'm not sure this is necessary given that we use the standard https://github.com/dart-lang/smoke solution, and an improved https://github.com/dart-lang/reflectable is on the way, but maybe as a temporary solution for some customers.

on second thought, we should definitely do this. The current Observable mixes protected methods and interface methods. That's no good. Thanks to @matanlurey for catching this.

also while we're at it, we should add @protected annotations or make sure the documentation is really clear


Merge Preparation: Merge Precise Object Tagging to Graph Copy EOP

Preparing merging https://github.com/dfinity/motoko/pull/4544 in https://github.com/dfinity/motoko/pull/4475 (level 3 of PR stack)

LGTM. There might be a bit of unnecessary overhead passing those mostly redundant object_kinds around but perhaps we shouldn't sweat the small stuff.

Thank you very much for the review. Indeed, some object_kinds are redundant for specific cases in deserialize, but not for all cases. I guess this is the price of having a generic "mini-framework" for serialization/deserialization with a common trait for all the specific stable types.

(Still LGTM)


文档很不完善

文档很不完善，是否有完善的筹划？

ERROR in ./node_modules/viser-ng/src/Chart.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\Chart.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./node_modules/viser-ng/src/chartService.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\chartService.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./node_modules/viser-ng/src/components/Axis.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\components\Axis.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./node_modules/viser-ng/src/components/Legend.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\components\Legend.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./node_modules/viser-ng/src/components/Series.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\components\Series.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./node_modules/viser-ng/src/components/Tooltip.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\components\Tooltip.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./node_modules/viser-ng/src/module.ts
Module build failed: Error: D:\后台\frontend.ai\node_modules\viser-ng\src\module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:674:23)
at plugin.done.then (D:\后台\frontend.ai\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./src/app/routes/dashboard/v1/v1.component.ngfactory.js
Module not found: Error: Can't resolve '../../../../../node_modules/viser-ng/src/Chart.ngfactory' in 'D:\后台\frontend.ai\src\app\routes\dashboard\v1'
ERROR in ./src/app/routes/dashboard/v1/v1.component.ngfactory.js
Module not found: Error: Can't resolve '../../../../../node_modules/viser-ng/src/components/Axis.ngfactory' in 'D:\后台\frontend.ai\src\app\routes\dashboard\v1'
ERROR in ./src/app/routes/dashboard/v1/v1.component.ngfactory.js
Module not found: Error: Can't resolve '../../../../../node_modules/viser-ng/src/components/Legend.ngfactory' in 'D:\后台\frontend.ai\src\app\routes\dashboard\v1'
ERROR in ./src/app/routes/dashboard/v1/v1.component.ngfactory.js
Module not found: Error: Can't resolve '../../../../../node_modules/viser-ng/src/components/Series.ngfactory' in 'D:\后台\frontend.ai\src\app\routes\dashboard\v1'
ERROR in ./src/app/routes/dashboard/v1/v1.component.ngfactory.js
Module not found: Error: Can't resolve '../../../../../node_modules/viser-ng/src/components/Tooltip.ngfactory' in 'D:\后台\frontend.ai\src\app\routes\dashboard\v1'
ERROR in ./src/$$_lazy_route_resource lazy
Module not found: Error: Can't resolve 'D:/后台/frontend.ai/src/app/routes/customer/customer.module.ngfactory.js' in 'D:\后台\frontend.ai\src$$_lazy_route_resource'
ERROR in ./src/$$_lazy_route_resource lazy
Module not found: Error: Can't resolve 'D:/后台/frontend.ai/src/app/routes/plan/plan.module.ngfactory.js' in 'D:\后台\frontend.ai\src$$_lazy_route_resource'
ERROR in ./src/$$_lazy_route_resource lazy
Module not found: Error: Can't resolve 'D:/后台/frontend.ai/src/app/routes/power/power.module.ngfactory.js' in 'D:\后台\frontend.ai\src$$_lazy_route_resource'
ERROR in ./src/$$_lazy_route_resource lazy
Module not found: Error: Can't resolve 'D:/后台/frontend.ai/src/app/routes/project/project.module.ngfactory.js' in 'D:\后台\frontend.ai\src$$_lazy_route_resource'
ERROR in ./src/$$_lazy_route_resource lazy
Module not found: Error: Can't resolve 'D:/后台/frontend.ai/src/app/routes/role/role.module.ngfactory.js' in 'D:\后台\frontend.ai\src$$_lazy_route_resource'
ERROR in ./src/$$_lazy_route_resource lazy
Module not found: Error: Can't resolve 'D:/后台/frontend.ai/src/app/routes/user/user.module.ngfactory.js' in 'D:\后台\frontend.ai\src$$_lazy_route_resource'


fix broken link

Minor update to fix broken link:
❌ https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/#command-line-configuration-provider
✅ https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/#command-line

Thank you for fixing this link!


Fixing Ruby 3.2 removed method File::exists

The method exists is removed since Ruby 3.2 ; The method exist? is ok on Ruby 2.0 and more recent.

This fix is checked on Ruby 3.2 (linux).

Duplicate of #9 (sorry, I rocketed a fix when I saw the problem on my computer).


Add tracing vars to HostData

As of https://github.com/wasmCloud/wasmCloud/pull/522 the host will no longer proxy environment variables to providers, so providers will need to receive OTEL_TRACES_EXPORTER and OTEL_EXPORTER_OTLP_ENDPOINT from the host via HostData

Providers should not implicitly receive environment variables from the host, since this is a security risk.

I couldn't agree more with this, but no longer using environment variables passed to the provider seems to lead to incompatibility with older providers, maybe I'm overlooking something.
https://github.com/wasmCloud/wasmCloud/blob/5f922256e679091e6acbb3e0f39852abb840c8b0/crates/host/src/wasmbus/mod.rs#L1987-L1987
Is it possible to clean up the environment variables and then set some specified environment variables?

@Iceber I did a quick check of all known wasmCloud providers and confirmed that env vars weren't the only way to set config: they all support parsing from config_json in the HostData, and/or link def values
We should update all providers to not use env::var at all anymore though. I've filed that here

I see that reading about OTEL* configurations still uses environment variables and that this is a capability of the wasmbus-rpc/provider-sdk framework. Do we also need to make these two frameworks no longer use environment variables?

That's right, this ticket should capture both sides of the work:

the host should send the two OTEL config values via the HostData JSON
the provider SDK should be updated to read the two OTEL config values from this data

I've updated the description of this ticket to mention that explicitly 👍


DB class was renamed to FileRepository, but docs and comments still refer to DB class

Discussion: Should we have this rename? DB was quite a simple and general name.
If we are set on the new name we should update docs and comments.

Discussion: Should we have this rename? DB was quite a simple and general name.
If we are set on the new name we should update docs and comments

So the reason i made this change is that we have added a new type of database to the project - an in memory vector store - therefore DB would now not be a descriptive enough name to distinguish it from the vector store. I also prefer specific names over generic names especially as DB implies this class possibly defines or adds a wrapper around an actual database technology e.g. sql
This was just my instinct when coding it, to make the code more readable.

Heres Chat GPTs opinion the name change
Question: This class was renamed from DB to FileRepository - which in your opinion is a better name for the class?
<>
Answer:
Both DB and FileRepository are indicative names for the class described in the code you've presented, but they suggest different scopes and functionalities. The choice between the two names should reflect the intended use and behavior of the class as understood within the context of its application. Let's analyze both options:
DB (Database)
General Implications: The term "DB" is very generic and suggests a database of unspecified type, which could be relational, non-relational, in-memory, file-based, etc.
Ambiguity: In the context of modern software development, "DB" often refers to a more complex system or service than just file storage, such as MySQL, PostgreSQL, MongoDB, etc. Therefore, this name might be misleading if the class is simply managing files.
Simplicity: The name is very short and might not convey enough information about the class functionality, especially in a larger codebase with multiple storage mechanisms.
FileRepository
Specific Implications: "FileRepository" accurately describes the class functionality—storing data in a file system. The term "repository" often refers to storage mechanisms but can also imply version control (like Git repositories).
Clarity: It clearly communicates that this is not a full-fledged database system but rather a storage system that uses the file system.
Length: It is a bit longer but more descriptive, which can be beneficial for readability and maintainability of the code.
My Opinion
FileRepository seems to be a more fitting name given the context. It reduces ambiguity by specifying the nature of the storage (file-based) and the abstraction level (repository pattern), which suggests a collection of files where the file system is being used as the storage mechanism.
The class is designed for file-based key-value storage where the keys are filenames and the values are file contents. If the class's purpose within the system is indeed to abstract the file system operations and provide a simple key-value interface to files, then FileRepository accurately reflects its role.
It is also worth noting that the term "repository" is often used in domain-driven design to represent a collection of domain objects that are stored and retrieved, which can include file-based persistence mechanisms.
Overall, FileRepository helps to make the code more self-documenting and can make it easier for new developers to understand the purpose of the class at a glance. This is generally considered a best practice in software engineering—choosing names that clearly express the intent and functionality of the class.

I also ast chat gpt if it could improve the name. It suggested an option could FileKeyValueStore ... Its not sexy is it :)

It may have been easier to stick to the original naming, given that we have an upcoming high priority refactor. After refactoring, I believe we should have an abstract db as a base with a simple name and more descriptive names of the classes implementing it. I would defer updates of comments and documentation to after the refactor.

I Disagree with reverting it. i think DB is an objectively bad name as it is unclear and unspecific. For the reasons provided above.
Even after the refactor if the implementation of the abstract interface is a file data store it should still have the name file in the class. I also don't actually think you will ever abstract away from 'files' as a domain concept as Files are what code is written

Closing this for now since large changes are happening anyway.


[docs/jotai] link to sandbox for atomWithImmer broken

Example Sandbox for atomWithImmer is broken or missing.
https://docs.pmnd.rs/jotai/integrations/immer
<Codesandbox id="8zrqs" />

That codesandbox is deleted?? @Aslemammad Is it yours?

Original link is: https://codesandbox.io/s/jotai-immer-example-8zrqs. This came from commit 189803a982d2df86ccd444787a278e82cc5fbf13.

It is originally from https://github.com/pmndrs/jotai/commit/a1e0c4ea1f948865cbbdb184da259415afc2e0a2.

Yep, I don't remember it exactly. But I feel it is my own!
And actually I've never touched them since creating jotai examples!
Really sorry for that!
@dai-shi What example do I need to create now? same second example but with atomWithImmer?

I don't remember either. Feel free to create a new one. It can be the same, or something new (as you now have much deeper understanding than back then.)

Here's the codesandbox!

Awesome. Do you mind updating docs/jotai/integrations/immer.mdx?

Yep, going to do this!

Cool. Closing as resolved with #183.


Feature request: Use custom domain in PR comment for preview link

Is your feature request related to a problem? Please describe.
When a PR is created, the AWS Amplify GitHub bot comments the preview URL, as added in #264. This is great, except that we are using a custom domain.

So the comment mentions https://pr-{PR}.{APP_ID}.amplifyapp.com, while it should be https://pr-{PR}.example.com.
This is important for us because our app does not work on the amplifyapp.com domain due to CORS restrictions, so we must use our custom domain.
Describe the solution you'd like
Please allow configuring the PR bot to use a custom domain.

Any other news or updates? Or does anyone have a workaround that drags in the correct link each time?

Hi Duncan! 👋🏽 Thanks for raising this feature request. Currently, the Web Previews feature is only available for Amplify apps connected to custom domains managed by Amazon Route 53. We will review this feature request further with the team. 🙂

Hi @hloriana , have you discussed this feature with the team? We also would love to use such a feature to avoid CORS restrictions.

Same issue here. We were able to create previews under the custom domain (and the Preview URL in the AWS Console actually shows the right domain), but the comment is still sent with the amplify domain. This would be quite important for us to resolve, as it creates unnecessary friction and confusion with the dev team.

@santiagoaguiar how do you guys set it up to use custom domain for previews? I connected our domain successfully, but pr previews are still created on *.amplifyapp.com which yeah due to CORS issues are not what we want at all.

@sorokinvj if you have a domain registered in route 53 you can connect it in the domain management page from the amplify page on the AWS site. Then on gh I just wrote a bot that would post the correct link based on the branch name since our branches + prs are named predictably

@sorokinvj we had to enable branch deployments for all the PRs (this was unexpected, I would have expected just enabling previews would be enough).
That being said, we dropped this as we run into other issues:

(this issue) The comment was confusing for users, we attempted to hack it through GitHub actions to edit the message but amplify keep posting new ones. We opted to minimize Amplify comment and add ours which did the trick but was quite ugly.
Most of our PRs are created from branches with / in the name. For some reason, custom domains where not created for those PRs, which made the feature unusable for us. We did most of the setup on a branch without a / on it so we caught this a bit later in the process...

Honestly, this was something we expected to be simple and ended up spending more time that we wanted on it. We might do another pass at this later, or just move to something else.

Any update on this issue? We are experiencing the same problem

Any updates on this issues? I was able to connect the PR Previews to my custom domain but in Github the bot added a message that is displaying the amplify domain.

+1 I would also prefer to have the domain name in the bot comment either configurable or default to using a custom domain if there is a custom domain present.

+1 as well, we have a use case where domains are allow listed for CORS headers and the comments are basically useless and confusing

We ended up using a GitHub action to try to fix the issue.
on:
  issue_comment:
    types: [created]
jobs:
  pr_commented:
    name: PR comment
    if: ${{ github.event.issue.pull_request &&  contains(github.event.comment.user.login, 'aws-amplify-us-east-1[bot]') }}
    runs-on: ubuntu-latest
    steps:
      - run: |
          echo trying to edit comment on PR $NUMBER $USER_ID $COMMENT_ID
        env:
          USER_ID: ${{ github.event.comment.user.login }}
          COMMENT_ID: ${{ github.event.comment.id }}
          NUMBER: ${{ github.event.issue.number }}
      - name: Update comment
        uses: peter-evans/create-or-update-comment@v3
        with:
          edit-mode: replace
          comment-id: ${{github.event.comment.id}}
          body: |
            This pull request is automatically being deployed by Amplify Hosting ([learn more](https://aws.amazon.com/amplify/hosting/)).

Access this pull request here: https://pr-${{github.event.issue.number}}.example.com

We don't seem to be able to configure custom domain for PR Previews yet, anyone has a guide for it? We followed this guide and no luck.
Also, perhaps removing Amplify App from GitHub and connecting it again may do the trick for those having the old non-custom domain posted in PRs.


Update jail command description to not use UK English spellings

(yes i know some other countries also use british spellings)
This was done for a couple of reasons after a discussion about this on the discord:

It can be confusing for people who do not understand this variant of english.
Most programming languages use US english for spelling.
Most of Roblox's playerbase is american and not everyone knows british spellings...
e.g. people might know what center means but not centre

no

Scel has said to only use American spellings

no

e.g. people might know what center means but not centre

America moment.  An IQ of a lipstick. If someone can't identify what is essentially a 1 letter typo from the original, single meaning word, then may the lord have mercy on us all.
Change it if you want. I'm confident in the UK playerbase of all ages being able to understand this slight mistake/inconsistency.
😏

e.g. people might know what center means but not centre

America moment.  An IQ of a lipstick. If someone can't identify what is essentially a 1 letter typo from the original, single meaning word, then may the lord have mercy on us all.
Change it if you want. I'm confident in the UK playerbase of all ages being able to understand this slight mistake/inconsistency.
😏

More or less


Intersection etc

Rebased #9.

Rebased again, and I also added a simple test for intersection.

:+1:
I missed this somehow, sorry.

No worries :)


Create a ServiceAccount for the WLM

Give the WLM the privileges it needs to manipulate and run workflows and the related the k8s resources.
Today, Flux is using the fully-privileged kubeconfig.  It doesn't need all of that privilege.

Brian Behlendorf
22 hours ago
Have you guys considered creating a default ServiceAccount for the WLM to use?  It seems like this would fit in nicely.
Dean Roehrich
1 hour ago
Brian, help me orient  myself on this. Today, Flux is using the fully-privileged kubeconfig, is that right?  And you'd like to have Flux use something with finer-grained privs?
New
Brian Behlendorf
4 minutes ago
Exactly.  Today Flux is using the admin kubeconfig, something which is restricted only the needed permissions seems prudent.  Along the same lines as what was done for the dws-operator-controller-manager, nnf-dm-controller-manager, and nnf-fencing-agent ServiceAccounts.

The WLM role is now merged into the DWS master branch here: https://github.com/HewlettPackard/dws/blob/master/config/rbac/workload_manager_role.yaml
The documentation for creating a "flux" user and binding it to that role is in the docs main branch here: https://nearnodeflash.github.io/dev/guides/rbac-for-users/readme/


Pomodoro Timer

This is interesting but we are not seeking this type of contribution, thank you however.


chore: cibuildwheel is now part of the pypa

Be sure to checkout cibuildwheel 2.0's new config options when it comes out; you can set static values in your pyproject.toml file in 2.0!

Thanks for updating the workflow.
Do you happen to know a different project using cibuildwheel which uses OpenMP and successfully builds wheels for mac os (preferably using github actions). I would like to add support for multi threading to the package, but I failed to build the mac os wheels.

I'd add brew install libomp, then link to the so it provides, and then rely on delocate to bundle it, I think. See https://iscinumpy.gitlab.io/post/omp-on-high-sierra/ for the flags you'd need.

Otherwise, not sure of who's doing it, I'd start with https://cibuildwheel.readthedocs.io/en/stable/working-examples/ - looking at that, I'd say https://github.com/EdoPro98/SimSiPM - but I don't see any openmp usage in the cibuildwheel file, just the setup.py.

I'd add brew install libomp

Thanks! I previously tried using brew install openmp which did not work. Using brew install libomp it compiles fine :tada:

I'd say https://github.com/EdoPro98/SimSiPM

I did look into this project previously, since it is listed as a project using openmp in the cibuildwheel Readme. However it only builds a version without openmp using cibuildwheel.

Happy to add RapidFuzzto the list with 'macOS OpenMP' in the notes if you get it going. :)

@henryiii Do you have an idea, how this can be achieved when cross compiling for Universal2/ARM64?

Ouch. You'd need to figure out how to get the ARM package for libomp from brew on an Intel system, and you'd have to use that one for the Arm64 version. I don't know how to get brew to do this.
You probably could merge the two into a Universal2 lib (not sure how to do that), then you'd be able to do the "universal" wheel. It's possible to do the merge after building the wheels, but cibuildwheel doesn't have a built-in way to do that, though I'd assume you could do it after cibuildwheel runs (there's an issue open for adding a shortcut for that).


Feature request: remember "Try Elm" code across visits

It would be great if http://elm-lang.org/try remembered the last-edited program across visits. This is something that the Babel.js live demo does really well.
Babel stores the current program in localStorage and in the URL itself. The latter is especially useful for sharing example programs.
If this is desirable I'll work up a PR for either/both approaches.

:+1:

I don't want to get elm-lang.org into the IDE business. If you want to make a site that stores this kind of stuff, go for it! The website is just to help you get started and transitioned to doing it on your actual computer.
Someone made http://www.share-elm.com a while ago to make sharing code nice, but they have not been keeping up with Elm releases, so there is a niche to fill here!

I don't think this brings Try Elm into IDE territory any more than, say, the type hints/doc links (which are so useful, btw). It's about continuity for people who enjoy the zero impedance of sketching code in the browser. In case I didn't make this clear, I'm talking client-side storage only.
FWIW, this is my motivation:

The Try Elm page is excellent. It's one of the things that got me excited about Elm in the first place. It shows that this is a powerful, accessible language that is built for the front end.

The only thing I don't like is that I can't work an idea over several sessions. I'm new to Elm and FP, so sometimes it takes me some thinking time to grasp a new concept. It would be useful to return to where I left off after a Eureka moment.

Playing with an example in the browser is a natural way to get started with Elm, particularly for JS devs.

I did that with the binary tree challenges. I got into it and refined my functions over a few sessions. I pasted my code in each time, and I lost progress a couple of times when I accidentally closed a tab and my browser crashed (infinite recursion may been involved :boom:).
Recalling the last edit would have helped me out there. Regardless I found the online experience powerful and fun enough that I got pretty well into the language without having to install anything at all. To me, as an Elm beginner, this is something that should be encouraged. It didn't deter me from downloading the toolchain; it made me excited to do it.

I agree that the website isn't a substitute for downloading. I've done that too, of course, but I prefer the browser for building an intuition for the language and sketching ideas. In this case I don't care about saving my code forever, just long enough to understand it.

I often use links to the Babel live demo to share ES6 snippets. It's a useful tool for teaching people, and for teams working with the language.

Having said that, I get your argument. If you keep this closed I'll hack something with a userscript for now. I would like to build something but I can't commit the time right now.
Thanks! I'm looking forward to exploring Elm some more.

I like this feature for pretty much the same reasons. It seems like a low effort high value feature to me, but I understand if it won't be included.


[core] according to issue #279 RandomByteIterator now generates also …

…some characters. See #279.

This doesn't help the general problem with BytesIterator in #279. Other workloads could put anything they like in a ByteIterator (as could other data stores) and we should do a better job of turning htings into a String.
Specifically, in ByteIterator we should be using a CharsetDecoder (either for UTF8 or a user configurable encoding that defaults to UTF8). (and similarly if we need to go from String -> byte we should use a CharsetEncoder)

I see, so I changed the the toString() method of the ByteIterator to decode the byte array by using the java.nio.charset. This way the iterator is still be consumed by using its toArray() method and additionally the toString() method is also faster (according to a microbenchmark I did).

The new toString looks great. Why still change the way RandomBytesIterator creates its sequence of bytes?

Because the old one generated only characters between space and ? (http://www.asciitable.com/). Now the buffer is also filled with some letters because of the & 63 and & 95.

Should I revert the RandomByteIterator?

Sorry, this last week got busy even for me. We just need to confirm the new ranges, I expect it'll be fine. If @gkamat or @cmccoy have time to check it it'll get in sooner.
Eventually I want to change RandomBytesIterator to be random binary (and have a "random printable" or some such for the role the class plays now). But I don't think that burden should fall on this ticket, especially since no one has gone through the ramifications of doing such a change.


Ubuntu 22.04 upgrade

Our recent upgrade to C++20 has required switching to clang-17 + libc++ in order for our code to compile correctly. This isn't great as it's usually a good idea to be compatible with  the compiler toolchain native to an OS distro. The toolsets available on Ubuntu 20.04 are too old as we need at least g++12 and beyond, thus forcing the switch to Ubuntu 22.04. Steps in order to make this happen:

[ ] 22.04 docker that can compile and run tests
[ ] Integration of 22.04 docker into CI
[ ] Upgrade provisioning ansible scripts to support Ubuntu 22.04
[ ] Upgrade CI runners to natively use Ubuntu 22.04

Is there any reason to not use 24.04? I believe most end uses would be on the latest LTS and having CI that makes sure that version runs smoothly is critical for DX.

could do it, but currently can't create native 24.04 instances on our internal cloud

Also, tt-BUDA has 20.04 and 22.04 docker images so I'd like to stay in sync for now

Thanks for the explanation, totally understandable. I was hoping TT can move to 24.04 so I wont need spend as much time debugging build issues on the latest GCC. I'll do my best then.

Thanks for the explanation, totally understandable. I was hoping TT can move to 24.04 so I wont need spend as much time debugging build issues on the latest GCC. And can more focus on debugging my code.. I'll do my best then.

I'll look into adding Ubuntu 24.04 into CI, at least compiling with 24.04's GCC. The main problem we have is that we don't have dedicated builder machines in our internal cloud yet, and we don't want to pay for extra GH runner capacity :|.

and we don't want to pay for extra GH runner capacity

That is new to me. I might missed something but AFAIK GH hosted runners on public repositories are completely free. And projects I maintain uses them extensively without paying a dime. tt-metal should be eligible. See About billing for GitHub Actions
Quote:

GitHub Actions usage is free for standard GitHub-hosted runners in public repositories

and we don't want to pay for extra GH runner capacity

That is new to me. I might missed something but AFAIK GH hosted runners on public repositories are completely free. And projects I maintain uses them extensively without paying a dime. tt-metal should be eligible. See About billing for GitHub Actions
Quote:

GitHub Actions usage is free for standard GitHub-hosted runners in public repositories

They are but we get a maximum of 60 instances. We have a lot of people running CI jobs 😓

One of things that could help a lot is device arch independent builds, hopefully will get around to it soon.

Ah I see... hope we can get 24.04 some time soon then. I'll keep posting patches in the mean time.

Ah I see... hope we can get 24.04 some time soon then. I'll keep posting patches in the mean time.

We've found a nice method to boost our building capacity + more local builders so this should be possible once our docker workflow infra is in place

closing in favor of https://github.com/tenstorrent/tt-metal/milestone/8


Add option to disable kube-vip

Description of the change
Add an option to disable kube-vip
Benefits
Reduced resource usage on clusters that don't have a HA control plane.
Possible drawbacks
Applicable issues
Additional information
This mainly allows to not disable kube-vip because of limitations when exposing a kubernetes api endpoint via wireguard (layer3 tunnel, so ARP won't work there).

Looks good, thanks!


Unclear how to work with mkdocs-static-i18n and mike versioning at the same time

Really enjoying this project, running into a difficulty combing mike publishing and mkdocs-static-i18n language control.
I am sure I just do not understand the interaction between these two plugins.
From the "home" page the language chooser is ending up directing to 404 page:

From here https://jodygarnett.github.io/core-geonetwork/4.2.5/ selecting fr 404: https://jodygarnett.github.io/fr/

From https://jodygarnett.github.io/core-geonetwork/4.2.5/fr/ selecting en 200 (but empty): https://jodygarnett.github.io

From https://jodygarnett.github.io/core-geonetwork/4.2.5/devel/docs/markdown/ selecting fr 200: https://jodygarnett.github.io/core-geonetwork/4.2.5/fr/devel/docs/markdown/

My mkdocs.yaml configuration is I hope normal:
plugins:
  - i18n:
      docs_structure: suffix
      reconfigure_material: true
      languages:
        - locale: en
          default: true
          name: English
          build: true
        - locale: fr
          name: Français
          build: !ENV [FRENCH,true]
          site_name: 'Online Help (FR)'

And am deploying to mike using (there is no special mike configuration set):
mike deploy --push --update-aliases 4.2.5 latest

Indeed I run into similar issues testing mike serve locally.

Oh dear, if I read the manual site_url is required, which addresses this problem.
Thanks 🤣


Second homebridge for guests

Before I destroy my setup I would like to ask a question here. Please excuse if it is just a basic question: Is it possible to have two independent connections via two homebridges that are configured differently?
What I want to achieve: A second homebridge (separate docker) that only exposes two lights for my guest site in Apple Home App.
My main site should be unaffected with all lights and sensors that are already exposed. Only two lights (Living Room and Guest Room) should be accessible for guests.
In order to expose only two lights, I have to use homebridge-hue with a whitelist. I understood that it is necessary to use ressourcelinks for that.
Is it correct, that I need a second API user for that on my bridge? Is that possible without changing anything to my main/fist user/site?
How exactly do I push my whitelist for only this user via  ressourcelinks to hue bridge? With ph post?

Interesting use case.

Please excuse if it is just a basic question: Is it possible to have two independent connections via two homebridges that are configured differently?

It's perfectly possible to have multiple Homebridge Hue instances connected to the same Hue bridge and/or deCONZ gateway.  I do this quite often for development and testing.  The two instances do have different config.json files, so they can be configured differently.
The same accessories can be exposed by both instances; HomeKit tells them apart because they're exposed through different HomeKit bridges (i.c. Homebridge instances).
However, this will confuse Eve; apparently it only looks at the UUID of the accessory, not at that of the HomeKit bridge).  I don't think this will be an issue for lights, but the history of the two accessories gets combined, leading to all sorts of weirdness.  It doesn't matter whether the Homebridge instances are paired to the same HomeKit home or to different HomeKit homes.  For full separation, you need to use different iCloud accounts (and therefore different iDevices).

How exactly do I push my whitelist for only this user via resourcelinks to hue bridge? With ph post?

Currently, it's not possible to have a whitelist per instance, as the resourcelinks resources are seen by both Homebridge Hue instances.
I've considered taking into account the owner (creator) of the resourcelink, but then you would have to create it from Homebridge Hue, or at least use the same API key (username) as Homebridge Hue.  I figured that would cause more confusion than that it's worth, so I dropped that idea.
In your case, I think it wouldn't be a problem.  You'd set lights in config.json of (the Homebridge instance paired with) your own home, but not in that of your guest home.  As you expose all lights already, the whitelist doesn't change your own home, and effectively only impacts the guest home.
I would be an issue if you wanted to expose some lights only to the guest home.

Is it correct, that I need a second API user for that on my bridge? Is that possible without changing anything to my main/fist user/site?

In theory, an API key (username) could be shared by multiple API clients.  I think this is a bad practice, even with the limited amount of logging/monitoring currently provided by the Hue bridge or deCONZ gateway.  I use separate API keys for each Homebridge Hue instance (and ph instance).  Homebridge Hue and ph create an API Key with a name of homebridge-hue#host or "ph-host, so if you run the two Homebridge instances on the same host, it's a bit challenging to tell them apart.  I don't know whether they would take the host from the container or from the host system.

That is fantastic! Thank you very much for this really detailed answer!
I managed to setup my homebridge with a second user. I exposed everything with homebridge-hue and then I send this via .../debug/clip.html:
URL:
/api/XXX/resourcelinks
Message Body:
{
  "name": "homebridge-hue",
  "classid": 1,
  "description": "whitelist",
  "links": [
    "/lights/7",
    "/lights/8",
    "/groups/3"
  ]
}

Command Response is:
[
	{
		"success": {
			"id": "36131"
		}
	}
]

After restarting homebridge I receive this error:
[Hue] homebridge: error: Cannot add a Service with the same UUID '00000043-0000-1000-8000-0026BB765291' and subtype '0b' as another Service in this Accessory.

What did I do wrong and how can I fix that?

Are you still using one Homebridge instance?  You didn’t use two platform entries for Homebridge Hue in one config.json, did you?
Please attach the debug dump file and capture and attach a debug log file (of the Homebridge instance showing the error).

Could you try v0.11.76-0?  Install through sudo npm -g i homebridge-hue@beta.

Damn.  I can reproduce that; apparently Homebridge Hue tries to expose the /lights resource twice when whitelisting it.

It looks, like you already fixed the .js! Like always, very impressive work and incredible fast support. Wish I could do more like only "configuring" and "setting" things up. 😉
blacklist works fine, so I am using this for now.

Could you try v0.11.76-0?  Install through sudo npm -g i homebridge-hue@beta.

Installed the new beta, unfortunately with the same result. Here ist the dump: https://pastebin.com/TJbYXktW

You probably have multiple installations of homebridge-hue, in /usr/local/lib vs /homebridge.  Most likely, Homebridge is still loading the old version.  I don't know how you originally installed homebridge-hue, but you need to install the beta in the same way.

You probably have multiple installations of homebridge-hue, in /usr/local/lib vs /homebridge.  Most likely, Homebridge is still loading the old version.  I don't know how you originally installed homebridge-hue, but you need to install the beta in the same way.

Thanks! Hmm, I installed it via GUI.

Does the beta solve your issue?

Yep, looks good.

Hello @ebaauw,
any news on this?

Currently, it's not possible to have a whitelist per instance, as the resourcelinks resources are seen by both Homebridge Hue instances.
I've considered taking into account the owner (creator) of the resourcelink, but then you would have to create it from Homebridge Hue, or at least use the same API key (username) as Homebridge Hue. I figured that would cause more confusion than that it's worth, so I dropped that idea.
In your case, I think it wouldn't be a problem. You'd set lights in config.json of (the Homebridge instance paired with) your own home, but not in that of your guest home. As you expose all lights already, the whitelist doesn't change your own home, and effectively only impacts the guest home.

Would it be possible to alternate the use of description?
leaving "whitelist" globally for all homebridge-hue instances and add new description like whitelist $bridgeusername specifically for one instance?
That would solve my issue having only one deconz for the whole house for getting a good mesh topology and at the same time seperating all the devices for different users.
also this would keep the backwards compatibility.
Thx
Jan

No news.
I want to move to a dynamic platform accessory plugin first, so Homebridge Hue itself has persistent state across restarts.  Then, I can store the advanced configuration on what to expose in Homebridge Hue, rather than using resourcelink resources on the bridge/gateway.  Configuration would be maintained using dynamic forms on the Homebridge UI, rather than through the Hue/deCONZ API.  Long term plan, though, no ETA.


add docker-based Vizro example

let's add a Vizro example to the examples folder and a new section in the docs: https://vizro.readthedocs.io/en/stable/

Let's also add it to the explore page :) For a One click deploy this example

sounds good!


UPDATE: allow user-less deployments to rsync locations

Allows you to beam to locations based on SSH configuration which generally include user information.

I haven't compiled the phar yet, can do that if needed but there are a few errors being thrown which would need to be merged into master first from the refactor @stecman is working on.

Rebased :smile:

Thanks, @stevie-mayhew. I've merged the few updates and fixes sitting in the refactor branch and tested your changes. All good to merge once you've rebased against the updated master_ ...annd it's done. Ok, you get extra points for that.
If I was going to be super picky I'd probably say normalise/default the user value in the config to avoid isset($server['user']) propagating everywhere, but since I'm already in the middle of refactoring everything, I'll fix it later.

Yay extra points! Thanks for doing the extra work for me :)


Zabbix on Centos 7 Python 2

Hi All,
I have installed Newest version of Alerta on Ubuntu 16. I integrated Nagios on Alerta.
Now I try to send alarm to Alerta API Server with python 3.
But on my Centos 7 I have Python 2.
On log of Zabbix_server I found:
Traceback (most recent call last):
File "/usr/lib/zabbix/alertscripts/zabbix-alerta", line 9, in
load_entry_point('zabbix-alerta==3.5.0', 'console_scripts', 'zabbix-alerta')()
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 487, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 2728, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 2346, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 2352, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "build/bdist.linux-x86_64/egg/zabbix_alerta.py", line 16, in
File "/usr/lib/python2.7/site-packages/alerta-6.5.0-py2.7.egg/alertaclient/init.py", line 26, in
""")
ImportError: You are running Alerta 6.0 on Python 2
Alerta 6.0 and above are no longer compatible with Python 2.
Make sure you have pip >= 9.0 to avoid this kind  of issue,
as well as setuptools >= 24.2:
$ pip install pip setuptools --upgrade
Your choices:

Upgrade to Python 3.

Install an older version of Alerta:

$ pip install 'alerta<6.0'
See the following URL for more up-to-date information:
https://github.com/alerta/alerta/wiki/Python-3
How can I resolve this error?
Thanks.

What have you tried from the list of options in that error message?

HI,
on centos 7 I installe python3.6 on virtual env. And I can use python3 with:
python36 -m venv alerta
But on Zabbix, alerta script to forward problem su Alerta API Server use python 2.
Is there a command to invoke python virtualenv from Zabbix alerta script?

You need to install the zabbix-alerta script using the version of python or pip installed by the virtualenv. ie. /your/python3/virtualenv/bin/python setup.py install or /your/python3/virtualenv/bin/pip install git+https://github.com/alerta/zabbix-alerta

OK. Thanks.
I try.

Did you get this to work?


Unable to initiate requests in offline mode.

Problem: When chrome is in "offline" mode ARC does not allow any requests.
Use case: Anytime a request does not actually require network access such as when debugging a local resource on a flight.
Possible Solutions:

Create a setting that overrides this behavior and allows requests
Create a setting that changes the blocking behavior to a warning behavior

This is fixed and will be available with new release.


Add unit tests

For each serialization:

file:

symlink
chunk sizes
different results for different file content
different model filename returns same result

dir:

same as for file
different results for different folder names
different results for different file names
different results for different file contents
different folder name returns same result
ignore files
signature file

We should also consider resolving https://github.com/google/model-transparency/pull/64#discussion_r1378198940, which suggests reformatting some of the tests. /cc @mihaimaruseac

Update: serialize_v0 tests are finished (modulo the comment above)
serialize_v1 tests are done for files. I'll work on folder tests next


robo3t: added 1.1.1

Note, this is a newer version of "robomongo". The project changed its name.

Thanks!


[Question]: How to set the client write timeout parameter?

Actions I've taken before I'm here

[X] I've thoroughly read the documentations about this problem but still have no answer.
[X] I've searched the Github Issues/Discussions but didn't find any similar problems that have been solved.
[X] I've searched the internet for this problem but didn't find anything helpful.

Questions with details
我使用 gnet v2 的 Client 用于发送数据，请问如何设置写入超时这个参数？或则有什么更优雅的实现方式么？
Code snippets (optional)
No response

gnet 使用的是非阻塞 I/O，所以写数据的时候不会阻塞，如果出错会直接返回，你检查返回的错误即可。

🤖 Non-English text detected, translating...

gnet uses non-blocking I/O, so it will not block when writing data. If an error occurs, it will be returned directly. You can just check the returned error.


<EMAIL_ADDRESS>not yet published on npm

Even though the sites says the latest version is 0.99, it hasn't yet been published to npm for the flow-bin package, see: https://www.npmjs.com/package/flow-bin
https://flow.org/en/
https://github.com/facebook/flow/releases

@retyui https://github.com/facebook/flow/releases/tag/v0.99.0

Can be closed

@retyui why do you say that? As of the time of writing this comment npm still shows 0.98.1 as the latest version, yet version 0.99.0 as been released.

https://www.npmjs.com/package/flow-bin/v/0.99.0


Kellyroach/fix warnings

This pull request fixes assorted Xcode 9.4.1 compiler warnings.

Remove 'Ensembles iOS.xcodeproj' in Resources
Remove bqnnqguhepfxlkgqvdamggjewche directory from FRAMEWORK_SEARCH_PATHS
viewDidUnload is deprecated
Fix 'A 1024x1024 app store icon is required for iOS apps' warning
Fix block implicitly retains 'self' warnings
Xcode 9.4.1 Update 3 projects to recommended settings
Fix 'nil passed to a callee that requires a non-null 1st parameter' Analyze warning

We noticed but we did not also fix:

"240 issues" in "Tests Mac", mostly "Block implicitly retains 'self'" warnings.
object of type 'id<NSObject,NSCopying,NSCoding>' is not compatible with array element type 'MCPeerID *' -- We're afraid to touch this one since it involves MCPeerID .

UNIT TESTS
CASE: "Ensembles iOS Library" / "iPhone X:

"Tests iOS 250 tests" PASSED

Test Suite 'Tests iOS.xctest' passed at 2018-07-06 19:01:48.249.
	 Executed 250 tests, with 0 failures (0 unexpected) in 27.269 (27.972) seconds

CASE: "Ensembles Mac Framework" / "My Mac"

"Tests Mac 250 tests" PASSED

Test Suite 'Tests Mac.xctest' passed at 2018-07-06 19:05:25.040.
	 Executed 250 tests, with 0 failures (0 unexpected) in 25.621 (25.796) seconds

MANUAL TEST
Following along with the README.md "Idiomatic App" instructions.

We make these unchecked in changes to get personal bundle identifier and signing

    Bundle Identifier = com.planetquantum.idiomatic
    Team = Kelly Roach

In "iPhone X" Simulator, use the "Settings" in Simulator to

    Sign in to your iPhone
    Set up iCloud, the App Store, and more.

We sign into iCloud using our basic authentication
credentials and 2 factor.

Launch app on "iPhone X" simulator
Add 2 notes, 1 photo, 2 groups
"Enable Sync" / "iCloud"
Stop app in Xcode IDE
Launch on real device
"Enable Sync" / "iCloud"
Content we entered on "iPhone X" simulator is now on our real "iPhone 5S" device.

Amongst Xcode Console output while engaging "Enable Synch" on the simulator,
we saw:
-[CDECloudManager transferFilesInTransitCacheToRemoteDirectory:completion:]_block_invoke_2 line 446: Uploading file to remote path: ...]

CONCLUDE: This made us happy with iOS
REGARDING: macOS AND "Idiomatic Mac" / "Build Settings"

Temporarily changed without checking in "Product Bundle Identifier" to
com.planetquantum.idiomatic.osx
Apple Dev Center
https://developer.apple.com/account/mac/identifier/bundle/
"Edit" "XC com planetquantum idiomatic osx"
"iCloud Container Assignment"
Currently "0 of 2 item(s) selected"
We choose to "Select All"
"Continue"
"Assign"
"You have successfully modified your iCloud Containers"
It's also necessary to change two occurrences of
"iCloud.com.mentalfaculty.idiomatic"
-->
"iCloud.com.planetquantum.idiomatic"
in "IdiomaticMac.entitlements"
The app launches and looks OK.  Our understanding from a STACKOVERFLOW.COM
article is we would need a published and approved app to being sharing a cloud
container between iOS and macOS apps.  We aren't going that far.

Thanks! Nice job


Site sync project settings improvement.

We need to clean up site sync settings on the project level.
[cuID:OP-1939]

Closed by https://github.com/pypeclub/OpenPype/pull/2230


nvm load does not work for Mac users

The following lines to load nvm do not work on Mac (seems like these are taken from the Ubuntu setup):
# Load nvm (to manage your node versions)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

These are the lines given by the terminal after running brew install nvm from one of the students, but I believe there were some slightly different folders depending on the laptops (one of them was pointing to the homebrew folder if I recall properly):
export NVM_DIR="$HOME/.nvm"
 [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
 [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion

Saw you made the previous update, @dmilon

Saw you made the previous update, @dmilon

:wave: @trouni. Thank you for your report :pray: I've just made an update to branch the path depending on the OS.

:wave: @trouni. Thank you for your report :pray: I've just made an update to branch the path depending on the OS.

@trouni after further investigation, nvm should not be installed with brew on mac but with the official script. This installation allows to use ~/.nvm/nvm.sh as PATH for the nvm command. I've just reverted the changes I had previously made and updated the setup instructions to use the script instead of `brew.

@trouni after further investigation, nvm should not be installed with brew on mac but with the official script. This installation allows to use ~/.nvm/nvm.sh as PATH for the nvm command. I've just reverted the changes I had previously made and updated the setup instructions to use the script instead of `brew.


Fix migration to be compatible with Postgres

Another pull request from me fixing migrations to be compatible with Postgres 🙂

Hi, what's the status here?

Lgtm

Just a double check from @nuevoalex and then we can merge!
Thanks again @FilipPyrek


Order Book endpoint : order_limit incorrect

When horizon is provided an order_limit of 0, it returns the default quantity of 10. In this scenario, it should probably return nothing.
https://horizon-testnet.stellar.org/order_book/trades?limit=0&order=asc
Furthermore, negative order_limit values return internal server error's.

Diagnosis:  db2.GetPageQuery interprets an input limit of 0 as "Please use your default page size" and actions.GetPagingParams does not properly scrub input values before passing on to GetPageQuery
Solution:  return an error when a limit of 0 is explicitly specified, returning an invalid limit error response.  Implement regression test.
Thanks @gouth7 for the catch!


Confused about partial-app-loading

I've used the partial-app-loading example to build a similar process in my app, but now I'm seeing this warning message in the console:
Warning: Don't set .props.activeRoute of the React component <RouterComponent />. Instead, specify the correct value when initially creating the element.

Is the example out of date? Is there another way I should be setting the RouteHandler? The example shows the code as:
// Can't find RouteHandler in the loaded component, so we just grab
// it here first.
this.props.activeRoute = <RouteHandler/>;
return <Component {...this.props}/>;

I've switched over to using this instead: https://github.com/rackt/react-router/issues/751#issuecomment-72381416 which has made the error go away.
I also see #755 is meant to address this in the future.
Closing.

Make a new object from your props and set activeRoute. The error is from React because it doesn't want you to set props, they should only be passed into the component from a parent.
var props = this.props;
props.activeRoute = <RouteHandler/>;
return <Component {...props}/>;

@rgrwkmn That didn't help. Still getting the warning message.

Ah, right, you need to actually make a new object, just setting it to another variable still references this.props. If you use underscore or something like it, this works:
var props = _.extend({}, this.props);
props.activeRoute = <RouteHandler/>;
return <Component {...props}/>;

That did the trick.
Should I keep the issue open so the official example code can be updated?

go check out the new huge-apps example, partial-app loading just got amazing in on master (1.0 API)


feat(java): support nonexistent class deserialization in meta share mode

What does this PR do?
support nonexistent class deserialization in meta share mode
Related issues

Does this PR introduce any user-facing change?

[ ] Does this PR introduce any public API change?
[ ] Does this PR introduce any binary protocol compatibility change?

Benchmark

Hi @theweipeng @PragmaTwice @LiangliangSui , this PR is ready for review, could you help review it?