Let's re-evaluate if SharedService* names are working for us.

SharedServiceClass/Plan name seems weird to me because the object is not intended to be shared. It is more like common code, core to the objects.
Should we rename these internal objects to something like CommonServiceClass/Plan?

Other name suggestions from the slack discussion included "Internal", "Core" and "Anon" and union.

Where is this? Only SharedX I can find in the codebase is sharedinformers.

We could say ‘SharedXSpecFields’ or something
On Thu, Mar 15, 2018 at 4:12 PM Morgan Bauer<EMAIL_ADDRESS>wrote:

Where is this? Only SharedX I can find in the codebase is sharedinformers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-incubator/service-catalog/issues/1837#issuecomment-373507724,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWXmLatGDGPhD_tIqpTzBLoDHOpfXR4ks5tessogaJpZM4Ssnch
.


GPIO Buttons do not work

Hey guys,
first of all: Thank you so much for this wonderful project! I had so much fun and I bet my daughter will have as well 👍
I am facing an issue with the GPIO buttons. Here is what I did so far.

Installed software with install script (worked and plays stuff via headphone output)
wired an RC522 (works)
follwed the instructions for wiring GPIOs and copy the relevant script. Also added relevant services to have it available after reboot

Now I wanted to connect some arcade buttons to control the box. Unfortuantely I receive on all buttons error messages:
Volume Down -> does not work
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
/bin/sh: 1: .scripts/playout_controls.sh: not found
Traceback (most recent call last):
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 122, in volD_handler
    volD_action(channel)
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 60, in volD_action
    check_call(".scripts/playout_controls.sh -c=volumedown", shell=True)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '.scripts/playout_controls.sh -c=volumedown' returned non-zero exit status 127.

VolumeUp -> does not work
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
/bin/sh: 1: ./scripts/playout_controls.sh: not found
Traceback (most recent call last):
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 113, in volU_handler
    volU_action(channel)
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 64, in volU_action
    check_call("./scripts/playout_controls.sh -c=volumeup", shell=True)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './scripts/playout_controls.sh -c=volumeup' returned non-zero exit status 127.

Pause / Play -> DOES work eventhough there is an error
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
/bin/sh: 1: ./scripts/playout_controls.sh: not found
Traceback (most recent call last):
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 76, in halt_action
    check_call("./scripts/playout_controls.sh -c=playerpause", shell=True)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './scripts/playout_controls.sh -c=playerpause' returned non-zero exit status 127.

Next -> does not work
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
/bin/sh: 1: ./scripts/playout_controls.sh: not found
Traceback (most recent call last):
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 68, in next_action
    check_call("./scripts/playout_controls.sh -c=playernext", shell=True)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './scripts/playout_controls.sh -c=playernext' returned non-zero exit status 127.

Previous
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
/bin/sh: 1: ./scripts/playout_controls.sh: not found
Traceback (most recent call last):
  File "/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py", line 72, in prev_action
    check_call("./scripts/playout_controls.sh -c=playerprev", shell=True)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './scripts/playout_controls.sh -c=playerprev' returned non-zero exit status 127.

The shutdown works, butit also throws an error. Unfortunately I am not fast enough to copy that from the console :) However, it basically looks the same as all the errors.
First, it looks like the playout_controls.sh cannot be found. I sued that command to get the sample GPIO script:
sudo cp /home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/gpio-buttons.py.sample /home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py

Which results in the follwoing content in /home/pi/RPi-Jukebox-RFID/scripts ->
activate_amplifier.py             __pycache__
daemon_rfid_reader.py             python-phoniebox
deviceName.txt                    Reader.py
gpio-buttons.py                   Reader.py.experimental
helperscripts                     Reader.py.kkmoonRFIDreader
idle-watchdog-countdown.sh        Reader.py.original
idle-watchdog.sh                  RegisterDevice.py
inc.readArgsFromCommandLine.sh    resume_play.sh
inc.settingsFolderSpecific.sh     rfid_trigger_play.sh
inc.writeFolderConfig.sh          shuffle_play.sh
inc.writeGlobalConfig.sh          single_play.sh
__init__.py                       startup-scripts.sh
installscripts                    test
playlist_recursive_by_folder.php  userscripts
playout_controls.sh

The script seems to use the wrong file path, as it always says:
def volD_action(channel):
    check_call("./scripts/playout_controls.sh -c=mute", shell=True)

I guess the "./scripts" is to much here, sicne both scripts are in the same dir. However, when I change that to:
def volD_action(channel):
    check_call("./playout_controls.sh -c=mute", shell=True)

The buttons still do not work, but I get another error:
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
expr: syntax error: unexpected argument ‘(’
./playout_controls.sh: line 276: [: -ge: unary operator expected
OK MPD 0.21.4
OK

If I try the different path, then the following buttons work without any issue:

Play/Pause/Halt
Shutdown
Next
Previous

The volume up -> does not work
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
expr: syntax error: unexpected argument ‘3’
./playout_controls.sh: line 238: [: -le: unary operator expected
OK MPD 0.21.4
OK

The volume down -> does not work
gpio-buttons.py:150: RuntimeWarning: A physical pull up resistor is fitted on this channel!
  GPIO.setup(btn_shut, GPIO.IN, pull_up_down=GPIO.PUD_UP)
gpio-buttons.py:158: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(led_power, GPIO.OUT)
expr: syntax error: unexpected argument ‘(’
./playout_controls.sh: line 276: [: -ge: unary operator expected
OK MPD 0.21.4
OK

Here is the results from the debug script:
************************************
*** PHONIEBOX INFO
*** version: 2.0 - ed888da - master
*** edition: classic
*** Audio_iFace_Name: PCM
*** Audio_Folders_Path: /home/pi/RPi-Jukebox-RFID/shared/audiofolders
*** Audio_Volume_Change_Step: 3
*** Max_Volume_Limit: 100
*** Idle_Time_Before_Shutdown: 0
*** Second_Swipe: RESTART
*** Playlists_Folders_Path: /home/pi/RPi-Jukebox-RFID/playlists
*** ShowCover: ON
************************************
*** CONF FILES DEFAULT

*** /etc/samba/smb.conf
-rw-r--r-- 1 root root 8.2K Sep 28 21:16 /etc/samba/smb.conf
   path=/home/pi/RPi-Jukebox-RFID/shared
   path=/home/pi/RPi-Jukebox-RFID/shared/audiofolders
*** /etc/lighttpd/lighttpd.conf
-rw-r--r-- 1 root root 2.1K Sep 28 21:16 /etc/lighttpd/lighttpd.conf
*** /etc/lighttpd/conf-available/15-fastcgi-php.conf
-rw-r--r-- 1 root root 575 Sep 28 21:16 /etc/lighttpd/conf-available/15-fastcgi-php.conf
*** /etc/php/7.0/fpm/php.ini
ls: cannot access '/etc/php/7.0/fpm/php.ini': No such file or directory
*** /etc/sudoers
-r--r----- 1 root root 784 Sep 28 21:16 /etc/sudoers
*** /etc/systemd/system/phoniebox*
-rw-r--r-- 1 root root 295 Sep 30 21:13 /etc/systemd/system/phoniebox-rfid-reader.service
-rwxr-xr-x 1 root root 396 Sep 30 21:14 /etc/systemd/system/phoniebox-startup-sound.service
-rw-r--r-- 1 root root 290 Sep 30 21:14 /etc/systemd/system/phoniebox-gpio-buttons.service
-rw-r--r-- 1 root root 291 Sep 30 21:14 /etc/systemd/system/phoniebox-idle-watchdog.service
*** /etc/mpd.conf
-rw-r----- 1 mpd audio 14K Sep 28 21:16 /etc/mpd.conf
music_directory		"/home/pi/RPi-Jukebox-RFID/shared/audiofolders"
# music_directory are changed.
# symbolic links outside of the configured music_directory.
# symbolic links inside of the configured music_directory.
	mixer_control	"PCM"		# optional
#	mixer_control	"PCM"		# optional
*** /etc/dhcpcd.conf
-rw-rw-r-- 1 root netdev 1.8K Nov 13  2019 /etc/dhcpcd.conf
#static ip_address=<IP_ADDRESS>/24
#static ip_address=<IP_ADDRESS>/24
#static routers=<IP_ADDRESS>
#static routers=<IP_ADDRESS>
option domain_name_servers, domain_name, domain_search, host_name
#static domain_name_servers=<IP_ADDRESS> <IP_ADDRESS> fd51:42f8:caae:d92e::1
#static domain_name_servers=<IP_ADDRESS>
*** /etc/wpa_supplicant/wpa_supplicant.conf
-rw-r--r-- 1 root root 160 Sep 30 22:06 /etc/wpa_supplicant/wpa_supplicant.conf
country=DE
************************************
*** +Spotify Edition

*** /etc/locale.gen
-rw-r--r-- 1 root root 9.2K Aug 20 13:02 /etc/locale.gen
*** /etc/locale.gen
-rw-r--r-- 1 root root 9.2K Aug 20 13:02 /etc/locale.gen
*** /etc/mopidy/mopidy.conf
ls: cannot access '/etc/mopidy/mopidy.conf': No such file or directory
cat: /etc/mopidy/mopidy.conf: No such file or directory
*** ~/.config/mopidy/mopidy.conf
ls: cannot access '/home/pi/.config/mopidy/mopidy.conf': No such file or directory
cat: /home/pi/.config/mopidy/mopidy.conf: No such file or directory

Also I just recognized, that I cannot change the volume via the app...
I am super stuck with the latter issues, as my bash script knowledge is unfortunately not as profound as it should be :(
Also I am not sure what is going on with the runtime warning regarding the GPIOs, as that always appears.
It would be super great if somebody could help me out! Thanks!!!

The path ./scripts/playout_controls.sh should be fine as the service for gpio-buttons.py runs in the root dir of Phoniebox.
Did you check that you edited the used pin numbers in gpio-buttons.py are correct?

What's the output of tail -n 500 /var/log/syslog?

Please see #1096, the paths for gpio_settings.ini were mixed up. This is now fixed in develop branch.
Please give some info, if these changes fix this issue.

Hey s-martin,
Thanks for your response! I am so sry for the late response from my side! My spam folder has eaten the git messages :(
I will have some time on Wednesday to implement #1096 and let you know.
Regards

Hey s-martin,
so I wired now four buttons:

Start/Stop
volUp
volDown
shutdown

The pins match the definition in gpio-buttons.py. I used the layout provided in the documentation and there was no need for adaption in gpio-buttons.py.
I started the phoniebox and pressed the buttons that I have wired now. The out of "tail -n 500 /var/log/syslog" is:
Oct 21 19:52:35 raspberrypi gpio-buttons.py[497]: volume: n/a   repeat: off   random: off   single: off   consume: off
Oct 21 19:52:36 raspberrypi gpio-buttons.py[497]: volume: n/a   repeat: off   random: off   single: off   consume: off
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: expr: syntax error: unexpected argument '3'
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: ./scripts/playout_controls.sh: line 238: [: -le: unary operator expected
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: OK MPD 0.21.4
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: OK
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: expr: syntax error: unexpected argument '3'
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: ./scripts/playout_controls.sh: line 238: [: -le: unary operator expected
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: OK MPD 0.21.4
Oct 21 19:53:59 raspberrypi gpio-buttons.py[3850]: OK
Oct 21 19:54:17 raspberrypi gpio-buttons.py[3850]: volume: n/a   repeat: off   random: off   single: off   consume: off
Oct 21 19:54:19 raspberrypi gpio-buttons.py[3850]: expr: syntax error: unexpected argument '3'
Oct 21 19:54:19 raspberrypi gpio-buttons.py[3850]: ./scripts/playout_controls.sh: line 238: [: -le: unary operator expected
Oct 21 19:54:19 raspberrypi gpio-buttons.py[3850]: OK MPD 0.21.4
Oct 21 19:54:19 raspberrypi gpio-buttons.py[3850]: OK
Oct 21 19:54:20 raspberrypi gpio-buttons.py[3850]: expr: syntax error: unexpected argument '('
Oct 21 19:54:20 raspberrypi gpio-buttons.py[3850]: ./scripts/playout_controls.sh: line 276: [: -ge: unary operator expected
Oct 21 19:54:20 raspberrypi gpio-buttons.py[3850]: OK MPD 0.21.4
Oct 21 19:54:20 raspberrypi gpio-buttons.py[3850]: OK

Of course I cannot show you what happened when I press the shutdown, since the shutdown works ;)
I also implemented the change from #1096 but that did not do the trick for me :(
I have a workaround that works for me so far in order to control volume via buttons. Unfortunately I cannot use the app for volume control with that solution. In the gpio-buttons.py I do the following changes:
def volD_action(channel):
    check_call("amixer -q -M sset Headphone 3%-", shell=True)
    #check_call("./scripts/playout_controls.sh -c=volumedown", shell=True) -> comment this line

def volU_action(channel):
    check_call("amixer -q -M sset Headphone 3%+", shell=True)
    #check_call("./scripts/playout_controls.sh -c=volumeup", shell=True) -> comment this line

Obviously one needs to know how to feed the amixer api for this. I found that I am not the first one asking how to do this :) : https://unix.stackexchange.com/questions/32206/set-volume-from-terminal

Since 2.1 we use GPIO control. Could you please check, if this fixes your issue?

Closing as there was no activity for a very long time.
Please check the current release 2.4 or our new implementation 3.2, if this issue still persists.
Feel free to open a new issue, if necessary.


Feature/update dev deps

want to try the actions/create-release because it allows auto creating a release changelog. wonder what that looks like 😄

This action has been deprecated for like 2 years

Maybe look into release-drafter.
The workflow is a bit different.

Maybe look into release-drafter.
The workflow is a bit different.

yea, saw it. v9.0.21 looks promising :)


Feature Request: Add "Not" to RequirementType to disable endpoint using FeatureGateAttribute when flag set to true

Using the FeatureGateAttribute we can only disable an endpoint attribute when a flag is set to false. It would be useful to be able to disable an endpoint when a flag is set to true.
This would allow using one feature flag to turn on and off a set of features. Something like:
{
  "FeatureManagement": {
    "FeatureA": true
  }
}

[FeatureGate(FeatureFlags.FeatureA)]
public async Task ThisWillWorkAsync()

[FeatureGate(RequirementType.Not(FeatureFlags.FeatureA))]
public async Task ThisWillNotWorkAsync()

Rather than adding a single Not requirement type, it would probably be better to add a NotAny and a NotAll requirement type. This would allow for the inverse / negation of both the two current requirement types rather than just the Any OR All requirement type. It would also be clearer what the new requirement types do.
These two options would also mean that the current negate option of the FeatureTagHelper could be made obsolete in favour of negate functionality that works for the entire library.

Agreed, it would be a very helpful feature

We need this 100%, would be nice if they started including basic features with their apis....

This scenario makes sense. I think we should support this with a Negate property on FeatureGateAttribute.
@rossgrambo @zhiyuanliang-ms

@michaelrp @brental @darkalfx @trconnolley Hey, guys! Sorry for late response. I think we will land on add a Negate property to FeatureGateAttribute which is similar to the implementation of FeatureTagHelper
Currently, we support the following usage of FeatureGateAttribute:
[FeatureGate("Home")]

and
[FeatureGate(requirement: RequirementType.Any, ["Alpha", "Beta"])]

After adding Netage property, we will add another constructor for FeatureGateAttribute, which will allow the following usage:
[FeatureGate(requirement: RequirementType.Any, negate: true, ["Alpha", "Beta"])]

Sounds good!

#519 merged.


Fix card image height

Describe the bug
In this task, you need to fix the height of the image in all the cards.
To Reproduce
Steps to reproduce the behavior:

Open the website on Safari Browser https://www.codingspace.codes/
Scroll to the challenge card(Challenge, solutions)
See error

Expected behavior
The height of the image should be the same on every browser/OS
Screenshots

Desktop (please complete the following information):

OS: macOS Big Sur v11.6
Browser: safari
Version: 15.0

Hello! I wld like to work on this issue. Can it be assigned to me?

@a-muk assigned to you.
Please share the screenshot of the changes before committing your code.

Can I also work on the issue ?

Can I also work on the issue ?

already assigned to @a-muk, you can pick different issue.

Still showing to me

On Safari browser also, its showing the same

Browser Version?

sir, I tried a lot but am not sure how to do this one. You can assign it to someone else 🙏🏻

@a-muk No Problem


Publish Newest Version to npm

Hello,
Could someone publish the most recent changes to the package to npm?
Thanks!

Yes, should be done by tonight.

Took longer than expected, done now.

Thanks!


Remove option to specify multiple lat/long parameters?

We discussed at the last meeting whether you should be able to specify multiple latitude/longitude points in a query to effectively created a boundary instead of a single point.
I feel like there's at least one use case for keeping the multi-ll option: "What elections are coming up in my area?" I'd think it would be cool for a neighborhood website to have a widget that just shows all the upcoming elections in their community.
One problem with most election interfaces is that it's very difficult to just explore around and try stuff. You have to know a specific address in order get your list, and you have no visiblity into other lists. Being able to specify area boundaries would allow you to increase the radius of visibility to your surrounding community.
Thoughts?

I agree that this is pretty complex and agree we put this off until after the initial release.


On the suggested lexical syntax of identifiers

It seems you want to suggest CamelCase convention for identifiers.  This is not very lispy; under Lisp this-is-the-preferred-convention and there are many editors that expect it.  It fits.

No, not really. The identifiers imported from Go will have their casing preserved, so they will have CamelCase names for exported names. Code written in Oden should be written-like-this. I think this is comparable to how interfacing with Java works in Clojure.
During Oden compilation symbols get translated to camelCase because Go does not support dashes in identifiers. The translated names should be UpperCamelCase but I haven't gotten around to fix that. When introducing some kind of public/private notion in Oden the identifiers need to be translated to UpperCamelCase and lowerCamelCase, respectively.
Does this sound reasonable?

Code written in Oden should be written-like-this.

Good.

Does this sound reasonable?

Yes, and I understand the pressure from the Go side to have compatible identifiers.  In general, once you embrace Lispy syntax, there are some things lispers expect; so 1+ is expected to be a valid identifier by many.  Some dialects of Lisp are very liberal in what is considered a valid identifier, for example number->string, ->string, => are all valid identifiers.  It is troublesome to convert those into human-readable Go identifiers, maybe you should make the constraint on readable Go "optional" and go with generated unique identifiers (like g123).

Yeah, I've come to know some of the expectations that people have on a language that has a Lispy syntax. :smile: However, Oden is not intended to be a dialect of any existing Lisp. I want to keep these conversations open-minded, not getting stuck at how it's done in CL or Scheme. Then again, like you mentioned, staying close to the existing Lisps gives Oden the benefit of being able to leverage existing editor and tooling support. Therefore, giving the exact same freedom in naming as in other Lisps do is not a strict goal, but absolutely something to strive for.
On the subject of readable Go code this is listed in the Goals section as something not to focus on, so ugly Go code is totally fine. The symbol => gets converted to _EQ__GT_ in the Go output.

Yeah, I've come to know some of the expectations that people have on a language that has a Lispy syntax.

I totally understand you.  On this subject I just want to report that it is possible to devise a lispy syntax such that: once the lexer knows the first 1 or 2 characters of the next token, it knows the category of the lexeme.  This may speed up lexing.

Cool. The current lexer is super-simple but this kind of customization may very well be necessary in the future.


dag get --localResolve vs dag resolve

@whyrusleeping learned today that you implemented the 'resolve within a single node' on a dag resolve call. I've implemented it under the dag get through an option --local-resolve, which is what I understood that we agreed after our chat at Ada's.
» ipfs dag --help
#...
  ipfs dag resolve <path>    - Resolve a path through an ipld node.
#...

Do you want to have a separate command for that? What would be the primary reason for it?

See for context, the notes I wrote at the time - https://github.com/ipfs/interface-ipfs-core/issues/81#issuecomment-277271941

To update - go-ipfs now has ipfs dag resolve:
USAGE
  ipfs dag resolve <ref> - Resolve ipld block

SYNOPSIS
  ipfs dag resolve [--] <ref>

ARGUMENTS

  <ref> - The path to resolve

DESCRIPTION

  'ipfs dag resolve' fetches a dag node from ipfs, prints it's address and remaining path.

Without a ipfs dag resolve command, it's awkward to figure out the CID of the node that a given path resolves to. In the new webui redesign, we let the user navigate through links from a root CID. As they explore the graph, we want to show the user the current CID of the node they have drilled down to, or they might simply paste in a path that crosses multiple links. Right now we have to add a chunk of application logic to walk the path, and recursively find and traverse the the links to figure out the current CID for nested CBOR nodes, but in dag-pb land we get the multihash property as part of the response.
I'm not sure if it's an important use-case, for apps that aren't trying to be generic IPLD explorers, but I figured I'd mention as a dag resolve command that would traverse links is exactly what we needed there.

@olizilla The functionality of dag resolve should be there. But it shouldn't be it's own command, but rather dag get with a parameter --localResolve

Just to check we're on the same page, right now, the go-ipfs ipfs dag resolve recursively resolves links in a path and returns the CID of the last node your path leads to:
$ ipfs --version
ipfs version 0.4.14

$ echo '{ "a": { "/": "QmYPNmahJAvkMTU6tDx5zvhEkoLzEFeTDz6azDCSNqzKkW"}}' | ipfs dag put
zdpuAyzU5ahAKr5YV24J5TqrDX8PhzHLMkxx69oVzkBDWHnjq

$ echo '{ "b": { "/": "zdpuAyzU5ahAKr5YV24J5TqrDX8PhzHLMkxx69oVzkBDWHnjq"}}' | ipfs dag put
zdpuAqxFu5LVTF8kELqUMBCp3K4fc2yERX5fRM5KZJ95j21rV

$ ipfs dag resolve zdpuAqxFu5LVTF8kELqUMBCp3K4fc2yERX5fRM5KZJ95j21rV/b
zdpuAyzU5ahAKr5YV24J5TqrDX8PhzHLMkxx69oVzkBDWHnjq

$ ipfs dag resolve zdpuAqxFu5LVTF8kELqUMBCp3K4fc2yERX5fRM5KZJ95j21rV/b/a
QmYPNmahJAvkMTU6tDx5zvhEkoLzEFeTDz6azDCSNqzKkW

$ ipfs dag resolve zdpuAqxFu5LVTF8kELqUMBCp3K4fc2yERX5fRM5KZJ95j21rV/b/a/css
QmRNaib6Pz2PUVLpEbMkEdETu5cup77Dtkief58o4NRPaM

It sounds like localResolve isn't intended to do that. The behaviour of the current ipfs dag resolve command would be useful for the IPLD explorer.

It would also reduce the number of block.get calls js-ipfs-api would have to do when using dag.get with IPLD. If we could use dag.resolve get hold of the closest CID then IPLD would only have to walk the remainder client side.
Relevant: https://github.com/ipfs/js-ipfs-api/pull/755#issuecomment-386882099

Talking to @alanshaw, it would be useful to add a canonicalAddress property to the object returned by dag get that provides the simplest address for the value that was found, with just the CID for the containing node and remainder path to that value within the node. As an example:
echo '{ "c": 9 }' | ipfs dag put
z2

echo '{ "a": { "b": { "/": "z2" }}}' | ipfs dag put
z1

ipfs dag get "z1/a/b/c"
{value: 9, remainderPath: "c", canonicalAddress: "z2/c" }

With the canonical path we get the CID for the node that contains the value and can unpack the mulitcodec to figure out how we should (de)serialize the value. Optionally, the http apis could add headers that repeat the multicodec value for the containing node to save some work.
That would give us the value of a dag resolve without an extra command, and could help solve some of the serialisation ambiguity.

@olizilla The canoncialAddress sounds really useful. But I don't like the name. It might be a non-native speaker thing, but I don't find it intuitive. In my mind a canonical address is e.g.: /a/b/../c => '/a/c. Some ideas for a different name: directPath, shortestPath, closestPath, nodeLocalPath, localPath.


core: don't catch exception for parse fail

When JSON/YAML parsing fails, you currently get a cryptic error
indicating pykwalify was unable to load the file. It is much more
helpful to see the actual parse error so that you can easily fix it. So,
just let the exception through rather than swallowing it.

It appears to me that the build failures are related to ruamel and not this change.

@markbaas i do not really get why there is a issue on the travis-ci side. I tried to rerun the job but it still fails out on 2 of the builds with wierd errors. It looks like it tries to fetch the old MR for some reason but fails to do that. I will manually check the 2 versions that fail just to be sure before merging.

@markbaas i do not really get why there is a issue on the travis-ci side. I tried to rerun the job but it still fails out on 2 of the builds with wierd errors. It looks like it tries to fetch the old MR for some reason but fails to do that. I will manually check the 2 versions that fail just to be sure before merging.

Manually merged this into master branch c3b5c7109456e36f0b3505da17f97e2a5e7c2dde
Closing as fixed/merged


There is a wrong code in Handling Section in Calculator Tutorial

There is a wrong code in Handling Event section in the Calculator Tutorial.
in tutorial:
def button_clicked(self, e):     if e.data == "AC":         self.result.value = "0"
the correct one is:
def button_clicked(self, e):     if e.control.data == "AC":         self.result.value = "0"
please fix this, it taked my 1 hour.
(Sorry for bad english)

Fixed: https://flet.dev/docs/tutorials/python-calculator#handling-events
Thanks!


Adjusted div length to ensure equal height in modal

Description
This PR fixes #1637
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@ayush844 Let's discuss this on websites call. Add this as an agenda item to the meeting minutes, if you would :)

Hi @ayush844 since this is already fixed, I am closing this PR!


Creating a job that runs on a specific week day at a specific time

I  need to create a job that  runs  on a specific week day (say every tuesday ) at  a specific time (at 4 P.M.) . Moreover, i want  that  job should run with the credentails of  currently logged on user OR  in other words....i don't want  to ask from the user his/her credentials . I tried doing this but unable to do it . One thing i am not getting is that  how to specify the time(like 4 P.M. mentioned above) in a weekly trigger .  Please help me out .
Originally posted: 2008-06-18T08:47:49

// Get the service on the local machine
TaskService ts = new TaskService();
// Create a new task definition and assign properties
TaskDefinition td = ts.NewTask();
td.RegistrationInfo.Description = "Does something";
// Set the principle to be the interactive user
td.Principal.LogonType =
TaskLogonType.InteractiveToken;
// Create a weekly trigger that will run every Tuesday
WeeklyTrigger weeklyTrigger = new WeeklyTrigger();
weeklyTrigger.DaysOfWeek = DaysOfTheWeek.Tuesday;
weeklyTrigger.WeeksInterval = 1;
// Start the trigger from today at 4pm onward (DateTime.Today starts at midnight so adding 16 hours makes it 4pm)
weeklyTrigger.StartBoundary =
DateTime.Today.AddHours(16);
td.Triggers.Add(weeklyTrigger);
// Create an action that will launch Notepad whenever the trigger fires
td.Actions.Add(new ExecAction("notepad.exe", "c:\test.log", null));
// Register the task in the root folder
ts.RootFolder.RegisterTaskDefinition("Test", td);
Originally posted: 2008-07-18T11:39:06


Speech bubbles for when player speaks

Needs speech bubble rendering, logic for them also python integration

Python, worker and eventhandler side of this works (see branch to the right), currently (intentionally) throws an error in game.js

Pupu.sano currently makes the pupu wait a second and print the string to console. The logic all the way there is complete.


8312.6 Output logs from POST /api/vault

Shippable/pm#8312
Update POST /api/vault to send output of its scripts to /logs/vault.

thsi is complete, closing


Error: Cannot find module '@primecms/field'

When I do yarn start, this error is there. What shall I do?

Are you using npm or yarn?
If you do yarn add @primecms/field, does that work for you? If so, I'll have to figure some things out.

This could be related to; https://github.com/birkir/prime/issues/211
Not running yarn compile after yarn setup.

Thanks.
I ran "yarn compile" followed by "yarn start" and it worked.


Zone Not Found

I have recently stumbled upon your repository of CloudCore and I am quite interested in taking advantage of it.  However, I can not seem to get the demo app that you have included.  I have changed the bundle ID and updated the CloudKit dashboard with the necessary items.  However, I keep running into the same error with the zone of ‘CloudCore’ with the error message of ‘Zone Not Found’. I am still pretty new into taking advantage of iCloud and I am not sure as to what I am doing wrong.
Any suggestions would be greatly appreciated.
From: Michael, by e-mail

I see an issue, I will need more time to check what is causing it, I will do it tomorrow. Problem that SetupOperation is not finished correctly. You can do fast fix (that need to be done only once per your bundle.id) by clicking "refresh" button several times and restarting Example application. That bug will be solved.


Enhancement: Support for Azure OpenAI GPT-4-Vision Model

What features would you like to see added?
Enable the image upload function/button in the OpenAIClient when using compactoable Azure OpenAI GPT-4-Vision Model
More details
Ms has recently released the GPT-4-Vision model via Azure OpenAI.
Which components are impacted by your request?
General, UI, Endpoints
Pictures
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

It's planned, maybe I can get to it this weekend

I've got it working, wrapping up my PR:

Testing different deployments/models now to see if my changes have messed regular messages
Now that I'm testing with my own Azure setup, I've understood better how LibreChat can be configured to enable multiple deployments/alternative model names/ and vision support more seamlessly, but that is more involved and the simple setup will be enough to support this for now.

Great work!!! thank you for your fast response and action.

This is now merged.
As of December 18th, 2023, Vision models seem to have degraded performance with Azure OpenAI when compared to OpenAI

Note: a change will be developed to improve current configuration settings, to allow multiple deployments/model configurations setup with ease: #1390


Disable Console

Is there a way to disable the console or to set a different URL to access it?
I'm using docker with nginx as proxy and SSL.

Thanks

There is no way today but it should be pretty simple to support an ENV variable that simply blocks console stuff 🤔

This is an important feature I guess. For our current implementation, we are exposing poxa to internal and external two domain. I want to disable poxa console from public domain. Otherwise, it's a place to harvest bad actors that will create un-necessary request to backend.


Need chinese trans for DNS for pod-sethostnameasfqdn-field

Need chinese trans for DNS for pod-sethostnameasfqdn-field
https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-sethostnameasfqdn-field

/language zh

/assign

/assign

close，for  #25017  revolve this issue


Make sure that quay-pod is properly instantiated

The pod quay-pod is created during the installation of mirror-registry. If for some reasons gets removed quay fails to start.
The systemd units should depends on another unit that makes sure that the pod is properly created

@pbertera Thanks for raising, we've created https://issues.redhat.com/browse/PROJQUAY-3261 to track the work.


Collapse Checkbox and RadioButton into MultipleChoice

a can_select_multiple flag should suffice

closing in favor of https://github.com/SexualHealthInnovations/django-wizard-builder/issues/144


What happended to sync option for properties?

What happened to sync option that could be passed to properties for customizing syncing logic? I found it to be pretty useful in some case and with Reform 2.x it's gone now.

I didn't add it to Disposable, yet. I found it too complicated, TBH, and didn't see its benefit compared to the complexity that got introduced.
Also, I never heard any feedback about it from any user so I wasn't sure if people use it.
Have you had a look at Imperative Callbacks in Disposable? They resemble what was the :sync option, e.g. they only get triggered when a property value has changed, and so on.

I actually overriden sync method, which was more straightforward in my case. The biggest issue was updating to Reform 2.0.0 as it wasn't mentioned anywhere and found it quite surprising. But I think the feature itself was quite useful and provided nice way for customizing syncing logic, used in several forms.

I never made the :sync public (did I???) that's why I thought I can sweep it under the carpet... :grimacing: Check out the imperative callbacks, they do exactly the same.

Yeah, it was public, even documented. But still I find the semantics of the sync nicer, but if it's painful to maintain then I guess the issue can be closed.

It's not that painful, we can re-add it to Disposable. Do you have any examples for me how you were using it?

One example would be formatting credit card numbers, so when doing a sync it would keep only the last 4 digits and substitute the ones before with *.

This is pretty much the same discussion we have here: #277


KAFKA-13730: OAuth access token validation fails if it does not conta…

…in the "sub" claim
Removes the requirement of presence of sub claim in JWT access tokens, when clients authenticate via OAuth.
This does not interfere with OAuth specifications and is to ensure wider compatibility with OAuth providers.
Unit test added.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@kirktrue Could you take a look?

@fonaid & @dajac - it looks pretty clear to me.
While OAuth may not require a sub claim, Kafka does need a unique identifier to act as the principal. We get it from sub by default, but the name of the claim from which to get the principal can be overridden to point to another claim in the token.

Automated test failures appear to be unrelated to this change, FYI.

Thank you @kirktrue for the feedback! Can you (or @dajac) please elaborate on the next steps to get this merged?

@rajinisivaram @omkreddy can you help in getting this reviewed?

Hello, does anyone has an idea when this will be merged to trunk and in which release it will be included?

@omkreddy Thank you for the review!


Change widget integration technology to plain javascript

We want to offer a version without AngularJS for application using a different integration technology than AngularJS.

Implemented on master (v4.0.0).


Add a license to the repository

I recently came across your project quantum_world and I noticed that the repository github.com/julianapequeno/quantum_world currently does not have a license specified.
Why Adding a License is Important?
As GitHub documents

Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

Would be possible to add a valid license to this repository? Probably something really OpenSource such as the Apache 2.0 license would fit really well.
Thanks!

Hi @cbjuan !
Thanks for the comment. I just added it :)
Best,
Ju

Thanks


[NTR] add "exposure time setting"

Preferred term label
exposure time setting
Synonyms
(e.g., Absent spleen)
Textual definition
A setting datum that specifies the duration in which an electromagnetic radiation beam is exposed to / recorded by a photosensor.
Suggested parent term
IAO:setting datum
Examples
Attribution
ORCID:0000-0002-1595-3213

This issue was created retrospectivly to have a term tracker item to link to within the ontology, for future discussions about and the tracking of possible changes of this term.

@Zack-83 is the "single integration time" you refer to in #30 wrt "total integration time" the same as / a synonym of this "exposure time setting".

Proposal to change the label an definition to this:
label: integration time setting
definition: A setting datum that specifies the length of time that a photo detector is allowed to collect photons before passing the accumulated charge to the A/D converter for processing. The minimum integration time is the shortest integration time the device supports and is dependent on how fast the detector can read out all of the pixel information. Integration time should not be confused with data transfer speed.
definition source: https://www.sciencedirect.com/topics/mathematics/time-integration

I agree. @RainerStosch you too?

@Zack-83 is the "single integration time" you refer to in #30 wrt "total integration time" the same as / a synonym of this "exposure time setting".

Yes, it is


feat: enable usage of approle wrapping tokens

Description
This PR enables the usage of wrapping tokens by the Requirer application as something optional.
This PR will enable integration with charms that require a wrapping token instead of the role secret ID, like maas-region. MAAS can be integrated with Vault by providing approle details, as described in the relevant docs section.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[x] I have added tests that validate the behaviour of the software
[x] I validated that new and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@skatsaounis are you still working on this PR? The last commit was 3 months ago and there are multiple conflicts at this point


createTranscription() doesn't work as expected in NodeJS

Describe the bug
Hi!
I tried to follow the documentation when I was writing a transcription script using NodeJS. And I wanted to get a response in .srt format. But it returns an error. I tried to use the argument response_format as well as responseFormat(). But that didn't work. Also, there is only one way to communicate with OpenAI API:
 const resp = await openai.createTranscription(
        fs.createReadStream('audio.mp3'),
        "whisper-1"
    );

But anyway, it doesn't work if I would like to specify the output file format.
To Reproduce

Run the function (one of them)
Get Required parameter model was null or undefined error

Code snippets
async function getTranscription() {
  const resp = await openai.createTranscription(
        fs.createReadStream('audio.mp3'),
        "whisper-1",
        responseFormat('srt')
    );
    console.log(resp.data);
 }

const options = {
 file:  fs.createReadStream('audio.mp3'),
 model: "whisper-1",
 response_format: "srt"
};

async function getTranscription() {
   const resp = await openai.createTranscription(options);
   console.log(resp.data);
}

### OS

macOS

### Node version

Node v.16.13.0

### Library version

openai v.3.2.1

See https://github.com/openai/openai-node/issues/77#issuecomment-1455247809, it describes a solution to this problem.

@DeveloperRyan thank you! But where is it showing a solution for the issue with the output file format (.srt not .json)?

@DeveloperRyan thank you! But where is it showing a solution for the issue with the output file format (.srt not .json)?

Sorry -- looks like I misdirected you. I missed you mentioning the srt part specifically, and assumed you were just having issues with actually getting the response. Will keep my eye opened for any solutions and update if I see any.

Having the same issue whenever I try to add a parameter other than file & model.

https://techpro.ninja/whisper-openai-tutorial-with-python-nodejs/
read this
maybe you can

Indeed, after reading Github README and API documentation you would expect that method createTranscription accepts an object but it accepts only raw parameters.
https://platform.openai.com/docs/api-reference/audio/create?lang=node
Especially the "Parameters" example is a bit misleading because it is formatted as object.

The following code works:
const fs = require('fs');
const { Configuration, OpenAIApi } = require("openai");
const configuration = new Configuration({
  apiKey: '<OPENAI API KEY>',
});
const openai = new OpenAIApi(configuration);

async function run() {

    const resp = await openai.createTranscription(
        fs.createReadStream("sample-ja.mp3"),
        "whisper-1",
        undefined,
        "srt",
        0.1,
        "ja",
    );

    return resp;
}

But object format would be easier to use because now you need some time to check the order of the arguments and insert undefined value where needed.
P.S. It really looks like a bug, because function createCompletion in README accepts an object.

same error, and The above method didn't work 🤔 please help

Need upgrade to<EMAIL_ADDRESS>

https://platform.openai.com/docs/api-reference/audio/create?lang=node

@KirillSapranov thanks! But that was one of the first things I did and checked. It doesn't work either.
I am using "openai": "3.2.1",, maybe you tried with a different version. please, let me know

So I did figure it out. The trick is - yes, use raw params. Even formData.append was acting up for me. So just pass the audio stream, model, optional prompt, temperature etc in a particular order (you can check the exact order by going through the wrapper index).
Not sure if they fixed this in any of the recent updates.

@KirillSapranov thanks! But that was one of the first things I made and checked. It doesn't work either.
I am using "openai": "3.2.1",, maybe you tried with a different version. please, let me know

Did you try the code in my comment (replace file name and language with yours)? If yes, what error do you get?
I'm also using openai 3.2.1 on Windows WSL 2 (Ubuntu).

@KirillSapranov thanks! But that was one of the first things I made and checked. It doesn't work either.
I am using "openai": "3.2.1",, maybe you tried with a different version. please, let me know

Did you try the code in my comment (replace file name and language with yours)? If yes, what error do you get?
I'm also using openai 3.2.1 on Windows WSL 2 (Ubuntu).

@KirillSapranov I re-installed openai package and now it is working! Thanks a lot!


Update window title bar to match theme

While in dark mode on Windows, the background color of the title bar on the window remains white, which does not match at all.

Fixed in https://github.com/goki/gi/commit/a5694b6f7e5a6544a3c76dbcb6bc598f0b950650, but still need to implement on other platforms.

It is unclear whether this is worth implementing on macOS, as it already adjusts to the system theme, just not ours. It is unclear whether this is relevant or possible on Linux.

We also need to implement this for the status bar text on mobile platforms.

On macOS and Linux, the title bar color is based on the system theme, and on Windows, it is based on our theme. That is perfectly fine, so the only remaining problem is the status bar text on mobile.


fix pruning

Type of Change
bug fix
Description
jira: https://jira.devtools.intel.com/browse/ILITV-3142
jira: https://jira.devtools.intel.com/browse/ILITV-3145
Expected Behavior & Potential Risk
None
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
None

Do not include internal links in the Description.


loopback-connector-ibmi

So I am trying to gather info on this connector. Is there no desire for this this connector to work on ubuntu and connect to ibmi?  I am getting started on open source and trying to create a loopback app from wsl ubuntu to use odbc to connect to ibmi.  I read the doc that has Linux directions but encountered an error implementing the data source.  Some of the comments on the loopback-connector-ibmi github page leads me to believe that at one point it was decided that no one desired to use this from Linux.  I am trying to connect from ubuntu on wsl since I have more freedom to develop in that environment.

You absolutely can use this connector from Linux. It uses an ODBC connector to connect to IBM i, so any operating system that can run Node.js and has an ODBC driver for IBM i should work. If you need setup instructions for ODBC and the IBM i driver, instructions can be found here.
If you need more help figuring out the connection mechanism/connection string options, feel free to post on the issues for the package and I can help you out.

Closing as I think this is resolved. Please reopen (or open a new issue) if this is in error. Thanks!


which URL should be use

i uses this link: localhost:8080 ,  i get this issue:
Cannot GET /

Hi Kawagan,
Are you trying to run this in local development mode?
Cannot GET / indicates that this would be a server route not being located properly
Could you list the steps you took?
When I run npm run dev my localhost port is linked to 8080 which is the default for Vue and my server is running on port 5000.

@kawagan
I have added another section in the README.md section that may be what you're trying to achieve. Let me know if that's what you were looking for or if not I can help you further

which file i put this line: NODE_ENV=development and HEROKU_DEPLOYMENT=false

Those would go inside your .env file in your server folder as an environment variable

now , it has error in register

@kawagan
Without any details about what error you're getting, assisting you is rather difficult. Can you send me what error you are getting?

There seems to be an issue with the OAuth right now but regular login/register should be working from what I have tested


Draft: the big boy actionlist CSS conversion (to be broken up)

Closes #

Changelog

New

Changed

Removed

Rollout strategy

[ ] Patch release
[ ] Minor release
[ ] Major release; if selected, include a written rollout or migration plan
[ ] None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

[ ] Added/updated tests
[ ] Added/updated documentation
[ ] Added/updated previews (Storybook)
[ ] Changes are SSR compatible
[ ] Tested in Chrome
[ ] Tested in Firefox
[ ] Tested in Safari
[ ] Tested in Edge
[ ] (GitHub staff only) Integration tests pass at github/github (Learn more about how to run integration tests)

Closing this one


Remove daily stock demo utility

This PR removes our daily stock demo utility which has been deprecated since August (~4 months). This seems like an appropriate length for a deprecation cycle. Additionally some related CI failures have started popping up (see this CI build) so I'm taking this as an opportunity to drop this utility.
cc @jsignell

Also cc @rjzamora for visibility

Thanks for reviewing @rjzamora! I'll plan to merge after CI finishes here to unblock CI on other PRs. Happy to handle any additional comments in a follow-up PR

Hmm - CI failures certainly seem unrelated

I've seen the test_scheduler_highlevel_graph_unpack_import before (only sporadically) but I didn't see an open issue for it so I just created https://github.com/dask/dask/issues/8480. The other CI failure looks like the Windows machine ran out of memory. I don't recall seeing this happen elsewhere, so I'll still plan to merge and open an issue if I see this pop up in another PR


Broker PVC StorageClass cannot be set

Describe the bug
Since v0.25.0 the StorageClass for the broker PVCs should be configurable (changelog).
However, setting the "storageClassName" parameter in the StandardInfraConfig seems to have no effect. The PVCs are still created with the default StorageClass.
To Reproduce

Modify the default StandardInfraConfig to set a StorageClass manually:

...
  broker:
    addressFullPolicy: FAIL
    resources:
      memory: 2Gi
      storage: 5Gi
    storageClassName: ontap-volume
...

Create an AddressSpace
! with a plan (= AddressSpacePlan) that is "defined by" the default StandardInfraConfig, such as standard-unlimited

apiVersion: enmasse.io/v1beta1
kind: AddressSpace
metadata:
  name: myspace
spec:
  type: standard
  plan: standard-unlimited

$ oc get addressspaceplan standard-unlimited -o yaml
apiVersion: admin.enmasse.io/v1beta1
kind: AddressSpacePlan
metadata:
  annotations:
    enmasse.io/defined-by: default <--- Defined by the "default" StandardInfraConfig
  name: standard-unlimited
addressSpaceType: standard
addressPlans:
- standard-small-queue
- ...
...

Create an Address

apiVersion: enmasse.io/v1beta1
kind: Address
metadata:
    name: myspace.myqueue
spec:
    address: myqueue
    type: queue
    plan: standard-small-queue

Review the StorageClass of the newly created PVC (can take a minute to appear)

$ oc get pvc
NAME                            STATUS    VOLUME                                       CAPACITY     ACCESS MODES   STORAGECLASS   AGE
data-broker-a10yprjqii-mvcn-0   Pending                                                                            **ontap-qtree**    3s

NOTE: ontap-qtree is our default SC, not the SC as defined in the StandardInfraConfig above (ontap-volume)
We also tried to create our own StandardInfraConfig, AddressSpacePlan and AddressPlan resources, to not overwrite the preinstalled default StandardInfraConfig. The results are the same.
Expected behavior
The PVC should have the StorageClass as configured in the {Standard,Brokered}InfraConfig.

I think I know why. The storage class names is only applied when creating the address space, while it also needs to be applied to dynamically created brokers in the standard address space.
It should get set for the PVC created for brokered address space types, but for standard we need to fix it.
Thank you for the detailed bug report!

Ok, the issue was only for the standard address space and is fixed in #2329 . The bug was that it was not updating the volume claim template of the broker statefulset.

@nathan-vp A possible workaround is to edit the configmap 'standard-broker-definitions' and add the storageClassName directly in the volume claim template: https://github.com/EnMasseProject/enmasse/blob/0.26.2/templates/address-space-controller/020-ConfigMap-standard-broker-definitions.yaml#L233

Hi @lulf! Many thanks for the quick fix. Looking forward to the next release :)
I can confirm that the workaround of editing the 'standard-broker-definitions' configmap works.


Error: "barWithErrorBars" is not a chart type.

I am trying to include the library in my application built in vue, but when I try to add the graphic with type: "barWithErrorBars" I get the mentioned error.
I have these versions in my package.json:
"chart.js": "^ 2.9.4",
"chartjs-chart-error-bars": "^ 1.2.1",
"vue": "^ 2.5.2",

This is my component:
<template>
  <canvas id="canvas"></canvas>
</template>

<script>
import Chart from 'chart.js'
export default {
  name: 'ErrorBar',
  mounted () {
    let chart = new Chart(document.getElementById('canvas').getContext('2d'), {
      type: 'barWithErrorBars',
      data: {
        labels: ['A', 'B'],
        datasets: [
          {
            data: [
              {
                y: 4,
                yMin: 1,
                yMax: 6
              },
              {
                y: 2,
                yMin: 1,
                yMax: 4
              }
            ]
          }
        ]
      },
      options: {
        scales: {
          yAxes: [
            {
              ticks: {
                beginAtZero: true
              }
            }
          ]
        }
      }
    })
    return chart
  }
}
</script>

<style scoped>
canvas {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
</style>

Am I doing something wrong?
Could you please help me?
Thanks!

this is a plugin for chart.js that has to be properly imported before it can be used.

this is a plugin for chart.js that has to be properly imported before it can be used.


NullPointerException caused by returning null in method from Parameter returning Boolean

Take a look in the parameter bellow:
    ParamQ_RetailUnitId:
      description: The id of one of the retail's units.
      in: query
      name: unit-id
      schema:
        format: int32
        type: integer

It doesn't declare a "required: false" and because of this missing, the property required of an object of class io.swagger.v3.oas.models.parameters.Parameter will have a null value as soon its parsed.
But the method below MUST not return null, it must return Boolean.FALSE !
    public Boolean getRequired() {
        return required;
    }

Can you provide more details about what you're trying to do?

Hi webron,
I'm using Vert.x Web API Contract to read and handle routes directly from my OAS3 models.
Today I was bitten by a strange nullpointer and dug it up here.

There's a reason why it is set as Boolean and not boolean, and also why it can have the value of null. When parsing a definition, it's important to have the distinction between a non-existing value and a false value. This is related to further processing down the line.
required is not the only field that behaves that way, and it should be easy enough to adapt the code to deal with it.

Yep, I understand that. I also had to deal with this kind of situation some time ago in another project. but in that time we decided to go with java.util.Optional. Optional.empty is much clear for users/devs than null.
I'll contact the guys from Vertx.


Fix _make_hgrid docstring ambiguity + Enhance format + clarity of various docstrings

This PR enhances the formatting (e.g., using double backticks to enclose variable names) and some phrasing of the docstrings.
Also, closes #52.
I still have some questions/confusion regarding the docstring so I opened this PR to discuss and deal with them.

Outstanding questions:

the grid as is generated has constant Δλ and Δφ = Δλ*cos(mean(φ)), right?
what do we mean by "This is very simple but suitable for small domains."? what is "small" domain? let's be specific otherwise it's vague. For example, I have no idea at this point.

Thanks @ashjbarnes.
OK, there is only one outstanding question: What do we mean by

This is very simple but suitable for small domains.

in the _make_hgrid docstring. If we clarify that then we can also close #52. Perhaps just a phrase is needed, e.g.,

This is very simple but suitable for small domains, e.g., for domains which the latitude range is small enough so that cos(φ_North_Side) is not much different from cos(φ_South_Side).

But I'm not sure that this is what we mean there to be honest; it's just a guess.

OK, I think I understood it --> ae31888

So something happened and the test fail at the regridder? Did I break anything?

It's crashing because 'lon' is no longer in the dataset. Perhaps it's because of some of the dimension renaming from https://github.com/COSIMA/regional-mom6/pull/98/commits/ae318886d72dc3629bbbd3b32872a57cda12091a ?

It's crashing because 'lon' is no longer in the dataset. Perhaps it's because of some of the dimension renaming from ae31888 ?

I had reverted the nlayers to vlayers in 29253d7

I reverted back everything and still test fail...

Locally tests pass.

Hm....

I think it's because xESMF pushed 0.8.3 to fix the xarray incompatibility, but it brought in this change which for whatever reason doesn't work on that particular dataset.

omg... :)
do we need a compat entry for xESMF now?

wow.. ok good find Angus! I don't think the test is doing anything crazy. Perhaps the xesfm people have overlooked something..

OK, with the compat entry test pass. Shall I merge this with the compat entry until xESMF and xarray sort it out @angus-g?

Shall I merge this with the compat entry until xESMF and xarray sort it out

Sure, I guess. Nothing has been raised with xESMF yet, I'm just trying to put together a bug report for them.


Bump to v3.1.0

Coverage remained the same at 78.431% when pulling 0247209cd66d67d338fa6e648a1327ace52fd6e9 on v3.1.0 into 96935732b143f1c610fde350b72073e01cd9ea71 on master.


[MWS] Leniency on methods that shouldn't have a body

Some apis chose to ignore standards and send payload on methods such as DELETE.
http://docs.rackspace.com/files/api/v1/cf-devguide/content/Bulk_Delete-d1e2338.html
WDYT about a mode in which we can allow MWS to accept a body for things like this?

We did this.


Need help testing a specific video

Can you provide a example code for running this tracker in a video in python?
Something like:

from HQTrack import tracker, plot_tracker

file_name = ""
frame_iterator = iter(generate_frames(file_path))

for frame in frame_iterator:
    track_result = tracker.track(frame)
    plot_tracker(track_result)

Hi~ We upload a python demo script, which supports running on arbitrary video. Hope it is useful to you.

Awesome!
It would be great if you guys create a Google Colab, this way it would be way easier to try.
By the way, great job.

I tried here but without success https://colab.research.google.com/drive/16fZ8R8rGqYhxml-lRj1FbKrvdoV1GgiQ?usp=sharing


Tag selection autofill bug

When in the item edit/add fragment and selecting tags, already selected tags are not auto-selected. This is causing some tests to fail.

Tests are passing again, thanks Peter


git ls-files|xargs sed -i .bak -e 's/PullPolicy: Always/PullPolicy: IfNotPresent/g'

git ls-files|xargs sed -i .bak -e 's/PullPolicy: Always/PullPolicy:
IfNotPresent/g'
Fixes #441
Should save a fair bit of network and overhead in tests and deployments
Now using imagePullPolicy: IfNotPresent consistently to avoid redownloading the same image over and over again. Fixes #441.

@ldemailly: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
ac364659e8ebe75116909dd98770c789f1f2d1b5
link
@istio-testing bazel test this

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

/retest

This is a dangerous PR. Please don't approve it automatically. If the tag is "0.2", it will cause inconsistent images used in pods (0.2.1 and 0.2.3). Please coordinate with Seb to make sure that only explicit tags are used, and for alias tags, change it back to Always.
cc @rshriram

And yes, we might need 2x YAML files, ones with Always and another ones with IfNotPresent. Just to make our lives better.

You accepted the pilot program, how is this different? Also we have yet to make the first 0.2.0 and using 3 digits is something raised a while ago


generate docs in json format

In this PR, a script created to generate docs in json format
The script can be launched as npm run generate-json-docs

@vlad9719 any update on that PR?


Añadidos retos 01 y 02

Me gustaría unirme al reto Python. Mando mis desafíos 01 y 02.

Hello @rburgosm! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file reto-01/rburgos/main.py:

Line 4:1: E302 expected 2 blank lines, found 1
Line 9:1: E305 expected 2 blank lines after class or function definition, found 1

In the file reto-02/rburgos/main.py:

Line 4:1: E302 expected 2 blank lines, found 1
Line 8:1: E302 expected 2 blank lines, found 1
Line 12:1: E302 expected 2 blank lines, found 1
Line 19:15: E228 missing whitespace around modulo operator
Line 24:1: E305 expected 2 blank lines after class or function definition, found 1


Do not depend on RegisterID.String()

Closes #???
Description
This method may be removed in the future[1], so let's future-proof the emulator.
[1] https://github.com/onflow/flow-go/pull/3529

For contributor use:

[x] Targeted PR against master branch
[x] Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the GitHub PR explorer
[ ] Added appropriate labels

Codecov Report

Merging #235 (6bd9c8c) into master (9379952) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #235      +/-   ##
==========================================
- Coverage   51.42%   51.42%   -0.01%
==========================================
  Files          29       29
  Lines        2347     2351       +4
==========================================
+ Hits         1207     1209       +2
- Misses        996      997       +1
- Partials      144      145       +1

Flag
Coverage Δ

unittests
51.42% <50.00%> (-0.01%)
:arrow_down:

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

Impacted Files
Coverage Δ

blockchain.go
75.00% <37.50%> (-0.17%)
:arrow_down:

blocks.go
60.00% <100.00%> (ø)

storage/badger/keys.go
76.74% <100.00%> (ø)

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

Maybe off-topic, but why would someone remove Stringer? Is it some cargo cult?

Maybe off-topic (and no offense intended), but why would someone remove Stringer? Is it some cargo cult or has some real benefit?

I would re-phrase it a bit differently: why does one add a stringer to a simple struct?  IMHO, a struct does not need a canonical string representation.
PS. This specific one was used as a hack for map indexing and would be removed.

I would re-phrase it a bit differently: why does one add a stringer to a simple struct? IMHO, a struct does not need a canonical string representation.

Probably my bad, I thought it is a bit go etiquette to provide Stringer to public structs. Though my go knowledge is limited to reading mostly stdlib code. [0]
https://cs.opensource.google/go/go/+/refs/tags/go1.19.3:src/net/unixsock.go;l=22


Error when renaming facet

I have a facet in my dataset that I rename and configure as being a datetime with format 'year'. If I re-enable the dataset I get the error below, when I try to plot it it doesn't work because selects 0 items.

The renaming seems to be the cause, because I get the same error if I just rename the facet (and not do the datetime configuration).

Correction:
The error originates from renaming.
The problem with the plotting (0 selected) happens when I configure it as datetime and do no renaming.


ValueError: Could not interpret optimizer identifier (tf.keras)

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10
TensorFlow installed from (source or binary):
binary
TensorFlow version (use command below):
1.8.0
Python version:
3.5
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
8.0/6.0
GPU model and memory:
Nvidia
Exact command to reproduce:
model.compile(optimizer=tf.keras.optimizers.Adadelta() ...)

Describe the problem
Passing in keras optimizers into a tf.keras model causes a value error, unless they are passed as strings i.e. "Adadelta" instead of Adadelta( ). This prevents arguments from being passed to the optimizer. Please note that when the optimizer is imported from vanilla Keras i.e. keras.optimizers.Adadelta(rho=0.9) there is no such issue.
Source code / logs
``
import tensorflow as tf
from tensorflow.python.keras.optimizers import Adadelta, Adam
model = deepshading.get_model()
model.compile(optimizer=tf.keras.optimizers.Adadelta(rho=0.9),
              loss=DSSIMObjective(k1=0.0001, k2=0.001, kernel_size=8),
              metrics=[DSSIMObjective(k1=0.0001, k2=0.001, kernel_size=8)])

``
Returns trace-back
identifier=identifier.__class__.__name__)) Traceback (most recent call last):   File "C:/Users/isultan/PycharmProjects/deep-shading/run.py", line 69, in <module>     train()   File "C:/Users/isultan/PycharmProjects/deep-shading/run.py", line 35, in train     metrics=[DSSIMObjective(k1=0.0001, k2=0.001, kernel_size=8)])   File "C:\Users\isultan\AppData\Local\Continuum\miniconda3\envs\tf\lib\site-packages\keras\engine\training.py", line 604, in compile     self.optimizer = optimizers.get(optimizer)   File "C:\Users\isultan\AppData\Local\Continuum\miniconda3\envs\tf\lib\site-packages\keras\optimizers.py", line 768, in get     str(identifier)) ValueError: Could not interpret optimizer identifier: <tensorflow.python.keras._impl.keras.optimizers.Adadelta object at 0x000001E563508860>

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

isaacsultan@ I am unable to reproduce this issue. Here is the code sample I am using: gist link. I am using Tensorflow version 1.8 and python 2.7.
Can you try with another example and see if you are hitting the same issue? Another thing you could try is updating tensorflow to 1.9.

Hi @anj-s  I just tried with another example, and can confirm that the issue does not reproduce. I'm closing the issue, thanks.

please help to fix this error I am running on gpu
valueError: ('Could not interpret optimizer identifier:', <keras.optimizers.Adadelta object at 0x7ff7cf7bb710>)

I got this error by using the optimizer class rather than an instance of it, e.g. optimizer = Adam instead of optimizer = Adam().

Hi
I am facing this error when I used SGD for my optimizer.
I am running the code on colab, version of tensorflow 2.2.0-rc3.
I took the sample code from Keras documentation.
I need to be able to set and get my learning_rate and other params in my optimizer. But currently only default option is working.
Could you please give a resolution or a temporary workaround for this issue, as I my work is held up for this.
Attaching the screenshot here.

Thank you

'''
import argparse
import os
import tensorflow as tf
import numpy as np
import sys
from sklearn.datasets import load_iris
from matplotlib import pyplot as plt
def overview():
print("python version=", sys.version)
print("tensorflow version=", tf.version)
if len(tf.config.list_physical_devices('GPU'))==0:
print('no gpu device is detected')
else:
print(tf.config.list_physical_devices('GPU'))
class SETTING:
epochs=30
optimizer='adam'
loss='categorical_crossentropy'
def load_data():
iris=load_data()
X=iris.data
y=iris.target
y=np.eye(len(np.unique(target)))[target]
return X, y
def set_model(fc1, fc2):
model=tf.keras.models.Sequential()
model.add(tf.keras.layers.Dense(fc1, activation='relu', input_shape=(4,)))
model.add(tf.keras.layers.Dense(fc2, activation='relu'))
model.add(tf.keras.layers.Dense(3, activation='softmax'))
return model
def train_step():
mymodel=set_model(20,10)
mymodel.compile(loss=SETTING.loss, optimizer='adam') # here
history=mymodel.fit(load_data(), epochs=SETTING.epochs, metrics=['accuracy'], validation_split=0.3)
return history
def main():
overview()
history=train_step()
plt.plot(history.history['val_accuracy'], label='val_accuracy')
if name=='main':
parser=argparse.ArgumentParser(description='simpoe ML using iris datasets')
parser.add_argument('--epochs', help='setup epochs')
parser.add_argument('--loss', help='setup loss function')
parser.add_argument('--callback', help='save best model')
parser.add_argument('--optimizer', help='setup optimizer')
# parser.add_argument('--summary', help='show model summary', action=mymodel.summary())
args=parser.parse_args()
SETTING.epochs=args.epochs
SETTING.loss=args.loss
SETTING.optimizer=args.optimizer
SETTING.callback=args.callback
main()
'''
hi bro.
i am facing same problem when i using optimizer from "SETTING" class. i tried to change optimizer 'adam', 'SGD', but it didn't solve.
it was not worked when i using 'SETTING.optimizer', but working when i using 'adam'. i don't know what is difference between 'SETTING.optimizer' and 'adam'
thank you

from tensorflow.python.keras import initializers
from tensorflow.python.keras import layers
from tensorflow.keras.optimizers import Adam
from tensorflow.python.keras.models import Model
from tensorflow.python.keras.activations import relu
from tensorflow.python.keras.layers import Input, Dense, Reshape, Flatten, LSTM, Bidirectional
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.callbacks import TensorBoard
from tensorflow.python.keras import regularizers
from sklearn.model_selection import train_test_split
...
adam_opt = Adam(learning_rate=0.0001)
loss = weighted_bce
model.compile(loss=loss, optimizer=adam_opt, experimental_run_tf_function=False)

and I got
ValueError: Could not interpret optimizer identifier: <keras.optimizer_v2.adam.Adam object at 0x7f4e5c06fca0>

does anyone have solved this problem?

Same problem

from tensorflow.python.keras import initializers
from tensorflow.python.keras import layers
from tensorflow.keras.optimizers import Adam
from tensorflow.python.keras.models import Model
from tensorflow.python.keras.activations import relu
from tensorflow.python.keras.layers import Input, Dense, Reshape, Flatten, LSTM, Bidirectional
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.callbacks import TensorBoard
from tensorflow.python.keras import regularizers
from sklearn.model_selection import train_test_split
...
adam_opt = Adam(learning_rate=0.0001)
loss = weighted_bce
model.compile(loss=loss, optimizer=adam_opt, experimental_run_tf_function=False)

and I got
ValueError: Could not interpret optimizer identifier: <keras.optimizer_v2.adam.Adam object at 0x7f4e5c06fca0>

does anyone have solved this problem?

Same problem

I solved this problem by uninstalling keras(independent package), and use keras in tensorflow.

from tensorflow.python.keras import initializers
from tensorflow.python.keras import layers
from tensorflow.keras.optimizers import Adam
from tensorflow.python.keras.models import Model
from tensorflow.python.keras.activations import relu
from tensorflow.python.keras.layers import Input, Dense, Reshape, Flatten, LSTM, Bidirectional
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.callbacks import TensorBoard
from tensorflow.python.keras import regularizers
from sklearn.model_selection import train_test_split
...
adam_opt = Adam(learning_rate=0.0001)
loss = weighted_bce
model.compile(loss=loss, optimizer=adam_opt, experimental_run_tf_function=False)

and I got
ValueError: Could not interpret optimizer identifier: <keras.optimizer_v2.adam.Adam object at 0x7f4e5c06fca0>

does anyone have solved this problem?

Same problem

I solved this problem by uninstalling keras(independent package), and use keras in tensorflow.

Thanks, I solved changing the import. Now I use from tensorflow.python.keras.optimizer_v2.adam import Adam

I'm getting the same error, but I'm importing from tensorflow_addons. It's only occurring due to the fact that I'm attempting to load the model via bytes(). Due to limitations in the platform I'm using (QuantConnect), I need to store/retrieve objects using their ObjectStore.ReadBytes / ObjectStore.SaveBytes methods. I cannot just save a file.
Using some patchwork found here, I've been able to get it to the point where I get the error this issue is about but no further. I modified the solution a bit to include keras' custom_objects.
# Normally this would include other custom Loss/Metrics classes...
custom_keras_objects = {}

def unpack(model, training_config, weights):
    restored_model = deserialize(model, custom_keras_objects)
    if training_config is not None:
        restored_model.compile(
            **saving_utils.compile_args_from_training_config(training_config, custom_keras_objects)
        )
    restored_model.set_weights(weights)
    return restored_model

# Hotfix function
def make_keras_picklable(*args):

    # Allow caller to include classes not already a part of tensorflow
    # so that deserializing won't trigger a custom_objects warning
    for obj in args:
        custom_keras_objects[obj.__name__] = obj

    def __reduce__(self):
        model_metadata = saving_utils.model_metadata(self)
        training_config = model_metadata.get("training_config", None)
        model = serialize(self)
        weights = self.get_weights()
        return (unpack, (model, training_config, weights))

    cls = Model
    cls.__reduce__ = __reduce__

# This is a grossly oversimplified and untested example...
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, InputLayer
from tensorflow_addons.optimizers import AdamW
make_keras_picklable(AdamW, SGDW)

model = Sequential()
model.add(InputLayer(batch_input_shape=(1, 1, 1)))
model.add(Dense(1)
model.compile(optimizer=self.optimizer)

Results in an error inside the call to compile_args_from_training_config:

ValueError: Could not interpret optimizer identifier: <tensorflow_addons.optimizers.weight_decay_optimizers.AdamW object at 0x7f73e9b71a58>

I am also getting this type of error!
``
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Conv1D, MaxPool1D, Flatten, Dropout
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras import regularizers
Build the CNN network
model = Sequential()
model.add(Conv1D(filters=128,
kernel_size=6,
padding="same",
strides=2,
activation="relu",
input_shape=(x_train.shape[1],x_train.shape[2])))
model.add(MaxPool1D(pool_size=1))
model.add(Flatten())
model.add(Dense(128,  activation='relu')) # Hidden 1
model.add(Dense(64,  activation='relu')) # Hidden 1
model.add(Dense(32,  activation='relu')) # Hidden 1
model.add(Dense(16,  activation='relu')) # Hidden 1
model.add(Dense(1)) # Output
model.compile(loss='mean_squared_error', optimizer= BatAlgorithm(10, 40, 1000, 0.5, 0.5, 0.0, 2.0, -10.0, 10.0, Fun))
``

ValueError                                Traceback (most recent call last)
 in ()
21 model.add(Dense(16,  activation='relu')) # Hidden 1
22 model.add(Dense(1)) # Output
---> 23 model.compile(loss='mean_squared_error', optimizer= BatAlgorithm(10, 40, 1000, 0.5, 0.5, 0.0, 2.0, -10.0, 10.0, Fun))
1 frames
/usr/local/lib/python3.7/dist-packages/keras/optimizers.py in get(identifier)
143   else:
144     raise ValueError(
--> 145         'Could not interpret optimizer identifier: {}'.format(identifier))
ValueError: Could not interpret optimizer identifier: <BatAlgorithm.BatAlgorithm object at 0x7f8472aa7310>

@ShahidHasib586 , from the stacktrace we can see that the library/ package from which  BatAlgorithm is called is missing. If it is a custom optimizer you wrote, maybe then you need to add to the path and supply the entire path in import for it to pick up. Not sure, if it has got anything to do with tf.keras [Refer to this link for the optimizers in tensorflow.keras https://www.tensorflow.org/api_docs/python/tf]
Hope this helps you


Tutorial for advanced model Control was not up to date on industry standards

i need to build a good solid frame work for the website so i can scale it grew it change it and all those nice features for a good mvc frame work to night and work on implementing it and studying it


Create database doesn't work

Hi!
I just tried InfluxDB 0.9 and I cannot create database. I tried with CLI, with Curl and the script just turning a while, wihout result.
Curl :
curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb"
InfluxDB (CLI) :
CREATE DATABASE mydb
I looked the Influx log and when I execute queries like above, I don't have any print of it.
[http] ::1 - - [12/Feb/2015:07:52:05 +0100] POST /write?u=root&p=root HTTP/1.1 500 33 - curl/7.37.1 a795e9eb-b283-11e4-a03d-74d4359d9237
[http] ::1 - - [12/Feb/2015:07:52:29 +0100] GET /query?u=root&p=root HTTP/1.1 200 2 - curl/7.37.1 b6686289-b283-11e4-a03d-74d4359d9237
[http] <IP_ADDRESS> - - [12/Feb/2015:07:52:37 +0100] GET /query?db=mydb&q=show+databases HTTP/1.1 200 59 - Go 1.1 package http bb248d83-b283-11e4-a03d-74d4359d9237
[http] <IP_ADDRESS> - - [12/Feb/2015:07:53:02 +0100] GET /query?db=mydb&q=show+databases HTTP/1.1 200 59 - Go 1.1 package http c9a5a68d-b283-11e4-a03d-74d4359d9237
[srvr] 2015/02/12 07:55:31 retention policy enforcement check commencing

With a ruby script, I have the following error (timeRequest) :
#!/usr/bin/env ruby

require 'net/http'
require 'uri'
require 'json'

http = Net::HTTP.new('localhost', 8086)
http.get('/query?' + URI.escape('q=CREATE DATABASE mydb'))

/usr/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill': Timeout::Error (Timeout::Error)
    from /usr/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
    from /usr/lib/ruby/1.9.1/net/http.rb:2563:in `read_status_line'
    from /usr/lib/ruby/1.9.1/net/http.rb:2552:in `read_new'
    from /usr/lib/ruby/1.9.1/net/http.rb:1320:in `block in transport_request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `catch'
    from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `transport_request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1294:in `request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1287:in `block in request'
    from /usr/lib/ruby/1.9.1/net/http.rb:746:in `start'
    from /usr/lib/ruby/1.9.1/net/http.rb:1285:in `request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1027:in `get'
    from influx.rb:9:in `<main>'

Please show us the entire output from curl. For example:
$ curl -G 'http://localhost:8086/query' --data-urlencode "q=CREATE DATABASE
mydb"
{"results":[{}]}
$ curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode
"q=SHOW DATABASES"
{
"results": [
{
"rows": [
{
"columns": [
"name"
],
"values": [
[
"mydb"
]
]
}
]
}
]
}
On Wed, Feb 11, 2015 at 10:48 PM, Cyril Mizzi<EMAIL_ADDRESS>wrote:

Hi!
I just tried InfluxDB 0.9 and I cannot create database. I tried with CLI,
with Curl and the script just turning arround, wihout result.
Curl :
curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE
mydb"
InfluxDB (CLI) :
CREATE DATABASE mydb
—
Reply to this email directly or view it on GitHub
https://github.com/influxdb/influxdb/issues/1584.

All is right now.
I've downloaded and compiled from Git with InfluxDB 0.8 installed (but not running). I saw that InfluxDB 0.9 took my InfluxDB 0.8 file configuration. I think it was the problem.

Is the "right way" for influxdb 0.9 with Ruby to use the ruby API, generate HTTP requests, or just use the CLI?

It's better to use API or CLI because of maintainability with often upgrades insteads of simples HTTP requests (you have to rewrite HTTP request everywhere if the syntax is changed and parse everything handly)

@eelectron I am also getting same error... How to proceed?


Fix create statement for mysql

Add ON UPDATE CURRENT_TIMESTAMP support.
Add KEY/INDEX support

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

111 of 118 (94.07%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 85.629%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/ast/ddl.rs
23
30
76.67%

Totals

Change from base Build<PHONE_NUMBER>:
0.08%

Covered Lines:
9808

Relevant Lines:
11454

💛  - Coveralls

@AugustoFKL PTAL
I made some modifications at your suggestion.

Marking as draft as it seems to be waiting on feedback. Please mark as ready for review if/when it is

@RainJoe  can you see if https://github.com/sqlparser-rs/sqlparser-rs/pull/685 works for you?


Add modal component to vanilla and React components

How might we share a11y- and behavior-related JavaScript across frameworks?

So far we have the basic UI component for both vanilla and React


Updates

Adds support for mutex, bool fields; Options and ClearRow calls

Coverage decreased (-0.2%) to 99.772% when pulling 78256a2b16071929ddf82c61904cf06f6c168da9 on yuce:updates into a69d42235f74bbe81785f84deeb0bc0b11f8e3e1 on pilosa:master.

Closing in favor of https://github.com/pilosa/java-pilosa/pull/135


steer support questions towards the forums?

This is a Feature Request

What would you like to be added

https://kubernetes.io/community/ points to all the places you can discuss Kubernetes, but I think it's not quite so obvious that at least currently github.com/kubernetes/kubernetes issues are really only used for bug tracking and that the forum and perhaps stackoverflow are best.
per @mrbobbytables we should be steering to the forums for this.
cc also @ehashman
Why is this needed
To help document expectations and direct users appropriately.
See also discussion of managing boatloads of bugs and the problems with that, e.g. in discussion on https://github.com/kubernetes/kubernetes/issues/103151, anything we can do to help reduce incoming load on the issue tracker is worth considering.
Comments

Also: do we have an official SO presence? Are we able to moderate things there at all? @kubernetes/sig-contributor-experience

/priority important-longterm
I'm not sure which SIG covers the experience of people who aren't contributed.
AIUI there isn't an official presence on Stack Overflow and in fact I recall folks suggesting we refer people to Server Fault.

I think at the very least this affects those that do contribute (misguided issue load?) so I tagged contribex but I otherwise at best uh ... SIG usability? SIG docs?
I think SIG Contributor Experience has also been nominally responsible for the forums and other official communication channels at least.

I'm convinced
/sig docs
/sig contributor-experience
/sig usability
and also
/triage accepted


.load(relations) not loading models

Introduction
I'm doing a
model.load(['role.event', 'user']).then(m => m.related('role').related('event')) and the event is coming up as an empty event Model. However the event definitively exists and the foreign keys are defined. I'm doing this in the created event on the model, if that could be the source of the issue?
Steps to reproduce issue

class Event extends Bookshelf.Model {
  roles() {
    return this.hasMany('EventRole', 'event_id');
  }
}

class EventRole extends Bookshelf.Model {
  event(){
    return this.belongsTo('Event', 'event_id');
 }
applications() {
    return this.hasMany('EventApplication', 'event_role_id');
  }
}

class EventApplication extends Bookshelf.Model {
  role() {
    return this.belongsTo('EventRole', 'event_role_id');
  }
initialize(){
 this.on('created', model => model.load(['role.event', 'user']).then(m => m.related('role').related('event')), this)
}

Expected behaviour
To load the event model
Actual behaviour
Doesn't load the event model.
EventApplication {
  attributes:
   { event_role_id: 24,
     user_id: 1,
     updated_at: 2017-09-18T13:39:27.777Z,
     created_at: 2017-09-18T13:39:27.777Z,
     id: 25 },
  _previousAttributes:
   { event_role_id: 24,
     user_id: 1,
     updated_at: 2017-09-18T13:39:27.777Z,
     created_at: 2017-09-18T13:39:27.777Z,
     id: 25 },
  changed: {},
  relations:
   { role:
      EventRole {
        attributes: [Object],
        _previousAttributes: [Object],
        changed: {},
        relations: {},
        cid: 'c8146',
        id: 24,
        _events: [Object],
        _eventsCount: 2,
        relatedData: [Object] },
     user:
      User {
        attributes: [Object],
        _previousAttributes: [Object],
        changed: {},
        relations: {},
        cid: 'c8149',
        id: 1,
        _events: [Object],
        _eventsCount: 2,
        virtuals: [Object],
        relatedData: [Object] } },
  cid: 'c8124',
  _events: { created: [Function], updating: [Function] },
  _eventsCount: 2,
  _knex: null,
  id: 25 }
EventRole {
  attributes:
   { id: 24,
     event_id: 54,
     title: 'role 2',
     about: null,
     capacity: null,
     created_at: 2017-09-18T13:39:23.919Z,
     updated_at: 2017-09-18T13:39:23.919Z,
     date_starting: null,
     date_ending: null,
     deleted_at: null },
  _previousAttributes:
   { id: 24,
     event_id: 54,
     title: 'role 2',
     about: null,
     capacity: null,
     created_at: 2017-09-18T13:39:23.919Z,
     updated_at: 2017-09-18T13:39:23.919Z,
     date_starting: null,
     date_ending: null,
     deleted_at: null },
  changed: {},
  relations: {},
  cid: 'c8146',
  id: 24,
  _events:
   { fetching: [Function: bound skipDeleted],
     'fetching:collection': [Function: bound skipDeleted] },
  _eventsCount: 2,
  relatedData:
   RelationBase {
     targetTableName: 'event_roles',
     targetIdAttribute: 'id',
     type: 'belongsTo',
     target: { [Function: EventRole] dependents: [Array] },
     foreignKey: 'event_role_id',
     foreignKeyTarget: undefined,
     parentId: 25,
     parentTableName: 'event_applications',
     parentIdAttribute: 'event_role_id',
     parentAttributes:
      { event_role_id: 24,
        user_id: 1,
        updated_at: 2017-09-18T13:39:27.777Z,
        created_at: 2017-09-18T13:39:27.777Z,
        id: 25 },
     parentFk: 24 } }
Event {
  attributes: {},
  _previousAttributes: {},
  changed: {},
  relations: {},
  cid: 'c8168',
  _events:
   { publish: [Function],
     updating: [Function],
     destroying: [Function] },
  _eventsCount: 3,
  relatedData:
   RelationBase {
     targetTableName: 'events',
     targetIdAttribute: 'id',
     type: 'belongsTo',
     target: { [Function: Event] dependents: [Array] },
     foreignKey: 'event_id',
     foreignKeyTarget: undefined,
     parentId: 24,
     parentTableName: 'event_roles',
     parentIdAttribute: 'event_id',
     parentAttributes:
      { id: 24,
        event_id: 54,
        title: 'role 2',
        about: null,
        capacity: null,
        created_at: 2017-09-18T13:39:23.919Z,
        updated_at: 2017-09-18T13:39:23.919Z,
        date_starting: null,
        date_ending: null,
        deleted_at: null },
     parentFk: 54 } }

The strange thing is the load gets called for 3 EventApplications and the last one loads the event, the others dont.

Notably when I try
model.fetch({ withRelated: ['role.event']})

The promise resolves with null

I have also tried to rename 'event' to 'ev' - perhaps its a special keyword in Bookshelf to no avail

If the model was created inside a transaction, the created event can fire before the transaction has completed. Pass through the transacting in the 3rd argument and await the promise to fix this

Even awaiting the transactions doesnt reliably work.

Eager loading fully broken for me. doing model.load(['job.organization']) in another part of the codebase is not working either.

Perhaps its only in the created event handler that this doesnt work.

Even awaiting the transactions doesnt reliably work.

seems you can't await a transaction. Makes sense

Solution:
use the saved event instead and check options.method (3rd argument) to check whether insert or update

Solved by
https://github.com/DeedMob/bookshelf-committed-plugin


Updated to accept all certificates in order to connect over https

Looks good. Did you test this out in a Testify build to make sure that the JerseyTestProcessor starts up alright?


chore: update docker-compose of IoTDB

Purpose

Update docker-compose file based on https://iotdb.apache.org/UserGuide/latest/Deployment-and-Maintenance/Docker-Install.html#have-a-try
Remarks

PR introduces (a) breaking change(s): no
PR introduces (a) deprecation(s): no

Are the logs automatically truncated with this configuration?

No, this can be achieved by modifying the log configuration: https://stackoverflow.com/questions/78177657/for-apache-iotdb-service-deployed-by-docker-how-to-modify-to-only-print-specifi
But I think this is not generally required for the DEV/CLI setup, but I'll add it as a note to the docker compose


Can't launch the application, a message shows up "the application was unabe to start corectly (0xc000007b)"

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2020.12.09
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

I can't pase the verbose because there is no versbose

Description

When I try to launch the application a message shows up "the application was unabe to start corectly (0xc000007b)"
I've tried all the proposed solutions I've found on the net :

Tried re-installing Microsoft Visual C++ 2010 Redistributable Package (x86)
Tried replacing and introducing new dll files to my system folder
All was in vain, I still have the same problem

Copying the msvcr100.dll file from another PC solved the problem


Improve Page Headers visibility

Comment from Adopt, Buy, Build review cycle highlighted that the Page title and subtitles didn't easily point to the core content of the material proposed.
Need to work with @ElminaIusifova @myp192 to see how we can improve user experience on our documents and site in general.

Page title was fixed as part of #1175


Feature request: Display voice channels & voice support

hi i would like to be able to join voice channels

me too

any updates?

I am currently in process of rewriting the application and the rewrite does display voice channels (including guild store and guild news channels). You can browse and run the code from the rewrite branch.

@ayntgl Displaying participation of vcs would be enough for me, I installed rewrite zip and unzipped it  then go build -ldflags "-s -w" but it says
../../go/pkg/mod/github.com/mattn/go-runewidth@v0.0.14/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in<EMAIL_ADDRESS>


bitcoins transfer script error.

blockchain@test:/var/www/btcxblockchainapi$ python run_transfer.py
Traceback (most recent call last):
File "run_transfer.py", line 120, in
run_transfer.main()
File "run_transfer.py", line 65, in main
total_amount = self.__get_total_amount_in_wallet()
File "run_transfer.py", line 34, in __get_total_amount_in_wallet
return reduce(lambda (coin_value), y: coin_value + y, self.coin_to_be_send_dict.values())
TypeError: reduce() of empty sequence with no initial value

This can be closed?


touch() does not update mtime on an existing file

Documentation on the touch() helper function says:
Create a file, or update mtime. Errors on stderr
... but the touch() function in its current implementation will not update mtime if the file already exists.

Good catch! Fixed in 628c559 :smiley: :+1:
Probably best if you add that commit as a patch to the WeOS version.  I'm not planning any new libite (-lite) release before the summer break.


fix(region): set ownerId as userCred when can't FetchOwnerId

这个 PR 实现什么功能/修复什么问题:

[x] 功能、bugfix描述
[x] 冒烟测试

是否需要 backport 到之前的 release 分支:

release/3.4
release/3.3

/area region
/cc @zexi @swordqiu

Codecov Report

Merging #8101 into master will decrease coverage by 3.74%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #8101      +/-   ##
=========================================
- Coverage    9.00%   5.25%   -3.75%
=========================================
  Files         456     374      -82
  Lines       55208   69525   +14317
=========================================
- Hits         4971    3653    -1318
- Misses      49741   65614   +15873
+ Partials      496     258     -238

Flag
Coverage Δ

#aFlag
5.25% <0.00%> (-3.75%)
:arrow_down:

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

Impacted Files
Coverage Δ

pkg/compute/models/cloudaccounts.go
5.14% <0.00%> (ø)

pkg/cloudcommon/db/standalone.go

pkg/cloudcommon/policy/token.go

pkg/multicloud/aws/dnshostedzone.go

pkg/cloudcommon/db/sharedresource.go

pkg/cloudcommon/db/enabledbase.go

pkg/lbagent/models/reflect.go

pkg/cloudcommon/db/resourcebase.go

pkg/monitor/alerting/ticker.go

pkg/monitor/tsdb/time_range.go

... and 679 more

Continue to review full report at Codecov.

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

/lgtm
/approve