text:
recent versions of Kivy.app contain a file infected with malware

I'm aware of this problem in at least the 1.9.1 and 1.10 versions of Kivy.app for python 3. The file Kivy.app/Contents/MacOS/Kivy (a Unix executable with a creation date of April 25, 2015) is infected with the Backdoor.Eleanor malware.
Here's an analysis of the file: https://www.virustotal.com/en/file/896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb/analysis/1496410669/

@gkanarek, thanks for the report.
We have stopped serving https://kivy.org/downloads/ while we look into the issue.

@gkanarek I've uploaded to virustotal the clean .dmg file and I got perfect results. If I were you, I'd probably peak into the past and remember if I installed something called EasyDoc Converter(maybe there's a log somewhere, or maybe it's still installed?)
Or, it might be the platypus thing, but I don't believe it.

@KeyWeeUsr What I did was download the dmg, mount it, and show the Kivy.app package contents directly off the disk image, without copying to my hard drive. Then I uploaded the "infected file" to virustotal, which resulted in the link I posted above.

@KeyWeeUsr and specifically, I have definitely not installed EasyDoc Converter on this machine. I also checked everywhere else on my machine, and nothing else has the malware.

Okay, now it makes sense to me:

whole app(detected)

MacOS subfolder(detected)

Kivy86(clean)
Kivy64(clean)

... or not :D

Confirmed in py2:

Kivy file

x64
x86

The fact that it's basically ONLY MacAfee that's flagging these files makes the Platypus thing seem more likely IMO...

Seems like that after all. Also, it seems like it's the container with the detected malware, not the content:

Kivy~x86 file(inside Kivy)
Kivy~x64 file(inside Kivy)

because when scanned after unpacking and packing into a .zip, no such thing is detected.

As i say on IRC, this is weird. The Kivy binary is generated on the fly during packaging.
I did the packaging on a fresh macbook pro (~2 month), with bare minimal environment (nothing related to easydoc).
Quanon did the packaging of Python 3 version.
It would be weird that both have the malware that would infect the binary, just before uploading. I just generated a fresh version of Kivy (by adding exit 0 after https://github.com/kivy/kivy-sdk-packager/blob/master/osx/create-osx-bundle.sh#L24).

If it's the container, it's pure OSX. This may just be a false positive that need to be reported.

@tito the thing you sent didn't have any of the x86 or x64 stuff inside.

sha256sum for Kivy.app/Contents/MacOS/Kivy:
5f52ce79d5e6d004122bdc2a159d2668024e25412fe1512e878c970084a8446b
Kivy-1.9.0-osx.dmg (py2)
https://drive.google.com/open?id=0By88oIfn3BI4Szkzb1cxMVJ4MUk
(0 / 56) https://www.virustotal.com/en/file/5f52ce79d5e6d004122bdc2a159d2668024e25412fe1512e878c970084a8446b/analysis/
896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb
Kivy-1.9.0-rev3-osx.dmg (py3)
https://drive.google.com/open?id=0B1WO07-OL50_ZmNFTWk0SDgxcEE
(3 / 56) https://www.virustotal.com/en/file/896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb/analysis/
daa1900743fc3b4968f80f80d1a1774d3547f76aa55d5237807f1ae8ac89578a
Kivy-1.9.1-osx-python2.7z (py2)
https://drive.google.com/open?id=0B1WO07-OL50_ejNkZmE4RlJuRGM
(0 / 56) https://www.virustotal.com/en/file/daa1900743fc3b4968f80f80d1a1774d3547f76aa55d5237807f1ae8ac89578a/analysis/
896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb
Kivy-1.9.1-osx-python3.7z (py3)
https://drive.google.com/open?id=0B1WO07-OL50_eGlJaWJYeVdld1U
(3 / 56) https://www.virustotal.com/en/file/896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb/analysis/
896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb
Kivy-1.10.0-osx-python2.dmg (py2)
https://drive.google.com/open?id=0B1WO07-OL50_Zm5udkRUZDNfaTg
(3 / 56) https://www.virustotal.com/en/file/896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb/analysis/
896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb
Kivy-1.10.0-osx-python3.5.dmg (py3)
https://drive.google.com/open?id=0B1WO07-OL50_a3FpU3FQWjctdDg
(3 / 56) https://www.virustotal.com/en/file/896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb/analysis/

@dessant thanks, it's definitively a false positive. So what action can we take?

@tito, were you able te reproduce this file during a full build?
896c863de42f4ec63a53657ecc5cfbcc780ac60149564e1be40e3899851571bb

Hi, just a suggestion, when stop serving download, please post a notice instead of showing 404...I wanted to report the download issue but luckily I see this.

@tito. We would need to submit a False Positive report through McAfee's Service Portal.
https://kc.mcafee.com/corporate/index?page=content&id=KB85567

Scanning my system with ClamXAV shows a 0 viruses. I am going to try out
Macafee next.
On Mon, Jun 5, 2017 at 11:41 AM, Richard Larkin notifications@github.com
wrote:

@tito https://github.com/tito. We would need to submit a False Positive
report through McAfee's Service Portal.
https://kc.mcafee.com/corporate/index?page=content&id=KB85567
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kivy/kivy/issues/5211#issuecomment-306111400, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAwGN3uWai3a_vxG0II39BrWa12_lLieks5sA5wXgaJpZM4NuT7H
.

@dessant No, i didn't able to have the same sha256.
My steps:

I cleaned out the previous build in kivy-sdk-packager
./create-osx-bundle.sh
shasum -a 256 Kivy.app/Contents/MacOS/Kivy -> b876d0000c000ce8e488142431c5a4c39c59b963c33762619712fd50200012e9

Nothing found: https://www.virustotal.com/fr/file/b876d0000c000ce8e488142431c5a4c39c59b963c33762619712fd50200012e9/analysis/1496678235/

./create-osx-dmg.sh Kivy.app
open the dmg
copy Kivy.app on the Desktop
sha256 is still the same for ~/Desktop/Kivy.app/Contents/MacOS/Kivy

No clue where the previous file came from, at this point, a hexdiff may help, but i can just ensure that it is generated, not copied from previous generation, if the sdk packager is used. You can see that everytime we bundle, it is generated.
Meanwhile, i'm downloding macaffe for a scan, but i really doubt it would show anything.
Also, please see that: https://www.jamf.com/jamf-nation/discussions/20521/app-packager-is-being-flagged-as-eleanor-malware < it has already been seen by others.

@tito, thanks for the test.
The odd part is the file hash and modification time has stayed the same since @akshayaurora uploaded it with the Kivy-1.9.0-rev3-osx.dmg package on April 25, 2015.
Over the years multiple Platypus versions were used to create these packages, and around 6 months ago the system was also fully reinstalled, but this file did not change in new packages. He was able to reproduce the hash today with Platypus 5.0 (this version was used for Kivy 1.10.0) and 5.2.
April 25, 2015 is the file modification time. I couldn't immediately link it to a specific Platypus release, it only coincides with the date the file appeared on our storage for the first time.
Even if this is a false positive (and that we are only guessing at this time), it's not ideal that we can't account for how certain files distributed to our users came to be.
I think we have to find a reproducible explanation for this, or seek help from Platypus developers, maybe they could help finding one.

@tito, it would be interesting to know if running create-osx-bundle.sh again produces the same hash you shared, or a new one.

My guts still tell me that it would be highly probable that it's a real malware. Even if it's not reproducible because i have a new computer, and quanon reinstalled, then just publish the newest regenerated version?

@jerrysoft-x, we have added a notice and made an announcement on the mailing list, sorry for the delay.

So on a clean new Mac Mini, I download a Platypus.app and pass it through the virus scanning tool.
It is still detecting malware inside the Platypus.app although a new one this time.
https://www.virustotal.com/en/file/09d6511a62a6965b0d69c7e92455ead70853c299bf1649ea52ba00e528cb34f4/analysis/1496732777/
I don't understand this, is this confirmed to be a false positive or is platypus really being distributed with these malware?

Platypus 5.2 https://www.virustotal.com/en/file/09d6511a62a6965b0d69c7e92455ead70853c299bf1649ea52ba00e528cb34f4/analysis/1496732777/
Platypus 5.1 https://www.virustotal.com/en/file/14a3595cc4e61f3e4e3051ddd0dde813119b6d2d2f19fa6271c259320b5b9d17/analysis/1496732938/
Platypus 5.0
https://www.virustotal.com/en/file/a14c9f2360feff9f07d5db5eeee238fbc602dccf574c3ebd1ce875fede43bdb1/analysis/1496733092/
Platypus 4.9
https://www.virustotal.com/en/file/f28ed1f0c3f4d4109c55d580dbf69950ad865fa7e91f32bc64d592546f382c6a/analysis/1496733164/
Platypus 4.8
https://www.virustotal.com/en/file/754d9153b92e32faf7e56a4e181de59c6f0b72b3208663042a22e1767d87cb05/analysis/1496733387/
This 4.8 version seems to be the one detected without any malware, should we just test building with this version ?

so a version of the Kivy.app created using 4.8 version of Platypus does pass the test https://www.virustotal.com/en/file/e9ee58d23ade5fa98faa5fb2030ee3a451d9646c0ee187431eca65f13d1ad009/analysis/1496735376/

Just for reference
shasum -a 256 Kivy.app/Contents/MacOS/Kivy
eb0a89698eff83a62973e57f65a82cd0682b691c136a0e637acec3e799a52c67

Just created a platypus.app using sources and here is the result of it's scan
Source scanned as clean but the .app scans as
https://www.virustotal.com/en/file/463d4dbf6df96f5513b0bb4c877e86cad72ef5609ae394dd4582375388e015a1/analysis/1496739815/
Don't know what to make of this...

Any word on this? I'd like to be able to make my Kivy app available to my users again... Lol.

We're working (basically @akshayaurora ) on getting new versions of the package built that don't show this issue (likely built on travis before we release it). We put downloads back up but removed the files with the issue. I guess we'll update the when the files are ready.

OK. Any suggestions for the kivy sdk packager in the meantime?

The latest files are available here Python2 https://drive.google.com/open?id=0B1WO07-OL50_cTJiSEc4Rkh1V3M and here Python 3.5 https://drive.google.com/open?id=0B1WO07-OL50_UXNPTlIxNUNtVU0
@tshirtman already tested them
Could some one else please test them too and let us know if they work.
The procedure for creating your own Kivy.app is very simple though.
This methods expects you to have pip, python installed, frameworks of sdl2 example https://www.libsdl.org/release/SDL2-2.0.5.dmg same for sdl2_image, sdl2_mixer, gstreamer installed on your system.
git clone http://kivy-sdk-packager
cd kivy-sdk-packager
./create-osx-bundle.sh

This should create a Kivy.app using the system python in the current directory.
to create .dmg ./create-osx-dmg Kivy.app

I grabbed that py3.5 version. The "Kivy" file which had been flagged before is clean on VirusTotal. I can't scan the full Kivy.app (even archived) because it's too big, so I can't comment on that.

I assume since this hasn't been closed, this is still an issue. Could we get an update? Thanks!

I downloaded these both, and they scan clean through AVG.  However both seem to modify python 2.7

Is 1.9.0 clean and safe to use until the next clean version is released?

AVG tested clean on the first tests, so I doubt it's a good test. Malware bytes for OSX claims to detect it.
https://blog.malwarebytes.com/cybercrime/2016/07/new-mac-backdoor-malware-eleanor/
As McAfee reported the initial positive, a test with that would be first prize. I'll try testing that over the next few days with both.
@tomfitzphilly. How do they seem to modify python? What did you do to detect that?
@tjGhani. I would using the links for 1.10.0 akshayaurora posted above and scanning them with a tool that detects the threat (OSX/Backdoor.Eleanor). 1.10.0 contains many improvements, and helping us test that would be a great way to help out. Please post your findings if you do. Otherwise, I'll post my finding as soon as I can....
Thanks

https://drive.google.com/open?id=0B1WO07-OL50_cTJiSEc4Rkh1V3M
result
https://www.virustotal.com/en/file/32b23fe2da063fdae792babc3b9e8642eebf867e33c0f3b3f7e4e8e57497adf9/analysis/1519157415/
https://drive.google.com/open?id=0B1WO07-OL50_UXNPTlIxNUNtVU0
result
https://www.virustotal.com/en/file/615b585db52e12768cc484e3df32c0f79f3bc40afc16b0e66cea282296905931/analysis/1519157711/

@Zen-CODE since these packages pass I think we should put them up on the website, what say you ?

Malware bytes detects no virus either. Let's close this ticket, and it can be re-opened if anyone provides a positive.

authors: KeyWeeUsr Zen-CODE akshayaurora dessant devMoxie gkanarek jerrysoft-x matham tito tjGhani tomfitzphilly


text:
fix wrong Available options in title_align

replace middle -> center

:+1:

source: gharchive/pull-request

authors: dessant maltouzes

repo: kivy/kivy

license: MIT

license_type: permissive

license_source: github-api


text:
fix merge conflicts for loadidentity-fix

This fix looked good to me, just needed to be updated. #2756 was so old I figured it best to just do so myself.

@Kovak #71 Failure: NameError (name 'unittest' is not defined) ... ERROR

@Kovak :+1:

authors: Kovak akshayaurora dessant


text:
CommonElevationBehavior example code is not working

elevation is not showing
Code and Logs
from kivy.uix.behaviors import ButtonBehavior

from kivymd.app import MDApp
from kivymd.uix.behaviors import (
    RectangularRippleBehavior,
    BackgroundColorBehavior,
    CommonElevationBehavior,
)

KV = '''
<ElevationWidget>
    size_hint: None, None
    size: "250dp", "50dp"

MDScreen:

    # With elevation effect
    md_bg_color:[1,1,1,1]
    ElevationWidget:
        pos_hint: {"center_x": .5, "center_y": .6}
        elevation: 4
        shadow_offset: 0, -6
        shadow_softness: 4

    # Without elevation effect
    ElevationWidget:
        pos_hint: {"center_x": .5, "center_y": .4}
'''

class ElevationWidget(
    RectangularRippleBehavior,
    CommonElevationBehavior,
    ButtonBehavior,
    BackgroundColorBehavior,
):
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.md_bg_color = "red"

class Example(MDApp):
    def build(self):
        return Builder.load_string(KV)

Example().run()
![Screenshot from 2024-04-26 11-55-45](https://github.com/kivymd/KivyMD/assets/57060638/d4dfd830-e046-4d0d-95de-f35cc0a47512)

Screenshots
Add images to explain us this bug. Paste urls here.
Remove this section if no images here
Versions

OS: ubunut
Python: 3.10
Kivy: 2.3.0
KivyMD: 2.0.1dev0

https://github.com/kivymd/KivyMD/issues/1631

elevation_level

source: gharchive/issue

authors: HeaTTheatR Sahil-pixel

repo: kivymd/KivyMD


text:
[WIP] CLI refactoring

[x] Relative imports
[x] Better naming for functions
[x] Move usage of pretty_print_stats to the loop with event handling, cleanup main
[x] Add docstrings
[ ] Add more tests to cover cases found by mutmut
[x] Fix & update tests

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@c28cb9b). Click here to learn what that means.
The diff coverage is 100%.

@@           Coverage Diff           @@
##             master   #180   +/-   ##
=======================================
  Coverage          ?   100%
=======================================
  Files             ?     18
  Lines             ?    838
  Branches          ?    116
=======================================
  Hits              ?    838
  Misses            ?      0
  Partials          ?      0

Flag
Coverage Δ

#unittests
100% <100%> (?)

Impacted Files
Coverage Δ

src/schemathesis/models.py
100% <100%> (ø)

src/schemathesis/cli/__init__.py
100% <100%> (ø)

src/schemathesis/runner/__init__.py
100% <100%> (ø)

src/schemathesis/cli/output.py
100% <100%> (ø)

src/schemathesis/runner/events.py
100% <100%> (ø)

Continue to review full report at Codecov.

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

repo: kiwicom/schemathesis


text:
Changing firstDayOfWeek on CalendarState in Compose module doesn't refresh the current month

Library information:

Version: com.kizitonwose.calendar:compose:2.4.0
View or Compose module: Compose

Describe the bug**
Calling calendarState.firstDayOfWeek = DayOfWeek.SUNDAY doesn't refresh the view correctly. Navigating to the previous or next month and moving back to the first one makes it work though, so it's really just a matter of redrawing the current month.
To Reproduce (if applicable)
Steps to reproduce the behavior:

Use a first value for firstDayOfWeek, let's say MONDAY, using the HorizontalCalendar in Compose
Change it after the calendar is displayed, using an effect, to something else
Observe the calendar doesn't refresh

Expected behavior (if applicable)
I expect the calendar and its header/footer to be refreshed with the right value

This is now fixed in the latest library snapshot.
You can use the snapshot to check that it works as expected.
Snapshot url: maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
Snapshot artifact:  implementation 'com.kizitonwose.calendar:compose:2.5.1-SNAPSHOT'

Thanks a lot @kizitonwose , I'll wait for the fix to land in stable but I'll make sure to take a look once it is! Many thanks once again

Now released in 2.4.1

authors: benoitletondor kizitonwose

repo: kizitonwose/Calendar


text:
compose HorizontalCalendar nestedScroll

Library information:

Version: [e.g. 2.5.4]
View or Compose module: [e.g. Compose]

Question:
Any solusion to use HorizontalCalendar in HorizontalPager?
Normally LazyRow in HorizontalPager can nestedScroll, HorizontalCalendar is LazyRow too,but why it can't?

Kindly provide a way to reproduce this

authors: BLOODMAGEBURT kizitonwose


text:
Full country Name

How to show Full country Name.
Country phone Code Hiding is not working.

How to show Full country Name.

The Country struct has a name property.

Country phone Code Hiding is not working.

Can you explain further? Works on my end.

Closing due to inactivity.

authors: gowthamSakthi kizitonwose

repo: kizitonwose/CountryPickerView


text:
Add development tools

[x] black
[ ] flake8
[x] pre-commit
[x] pytest

Let me know if you prefer other tools.

Poetry currently has black, isort, and pytest as dev dependencies.
I can see removing black and sort and adding pre-commit as a test in CI/CD.

in the meantime I am going to run black+isort on this and setup pre-commit (outside of gh actions)

#13b0f58d8a461d70b75525a490e1ee92660b1c1d - refactors and adds pre-commit.yaml

[ADDED]:

pre-commit

black
isort

mypy

[REMOVED]:

FROM (pyproject.toml)

black
isort

[NOT ADDED]:

flake8

authors: kjaymiller pamelafox

repo: kjaymiller/Az-Queue-Tweeter


text:
force framerate

Hey Guys!
Follwing my last issue was wondering if there was a binding for FFMPEG's -r command. Where you force a framerate on the output command. Im ingesting EXR's at 24 but its still defaulting to 25 even when i set framerate in the output call as bellow
stream = ffmpeg.output(stream,os.path.join(mov_path,fixed_mov_name),vcodec='prores_ks',profile='lt', framerate=24)

Instead of framerate use r.
stream = ffmpeg.output(stream, os.path.join(mov_path, fixed_mov_name), vcodec='prores_ks', profile='lt', r=24)

repo: kkroening/ffmpeg-python

license_source: bigquery


text:
Getting a frame-by-frame iterator?

Hello,
Is it possible to iterate a video with a "frame-by-frame" iterator and get pixel data for each frame?

This is pretty much what I ended up with:
command = ['ffmpeg',
           '-i', filename,
           '-f', 'image2pipe',
           '-pix_fmt', 'rgb24',
           '-vcodec', 'rawvideo', '-']

with sp.Popen(command, stdout=sp.PIPE, bufsize=WIDTH * HEIGHT * 3) as pipe:
    while True:
        raw_image = pipe.stdout.read(WIDTH * HEIGHT * 3)
        ....


text:
Proposal for an all-in-one enclosure

I flashed this to a Wemos D1 Micro last night and although I have not tested the functionality yet, it flashed OK and it should work as it's an ESP8266. Given the very small size of the Wemos D1 Mini, this led me to think that there is potential for the sensor and MCU to be in a single case, which would be quite a neat solution I think. Unfortunately I'm not skilled at 3D design, but maybe someone in the community could design something?

Is yours really called Wemos D1 Micro? I can't find any references to such a board.
I use Wemos D1 Mini and D1 Mini Pro myself, so I will at least try to come up with modified cases that fit those two at some point.

Sorry, I got the name wrong. You are correct, it is a Wemos D1 Mini. I think a case incorporating the Di Mini and the photodiode board would be a great all-in-one solution.

@slovdahl how did you design the cases? If it's Fusion360 I'd be happy to help with taking the design files and creating something for the D1 Mini

@slovdahl how did you design the cases? If it's Fusion360 I'd be happy to help with taking the design files and creating something for the D1 Mini

I haven't designed anything yet :slightly_smiling_face: I'll try to modify the current ones whenever I can find the time.
Maybe @klaasnicolaas can shed some light on how they were originally designed?

@slovdahl - sorry!! i thought you have designed the original enclosures!! 🤦♂

@m-s-e I modified a little bit the original files, because I use a Geekcreit ESP 12F instead of an ESP32 module. I also modified a photodiode case because it was too loose  for my taste.
HA Glow.zip

@m-s-e I modified a little bit the original files, because I use a Geekcreit ESP 12F instead of an ESP32 module. I also modified a photodiode case because it was too loose for my taste.
HA Glow.zip

Any chance you could share an STL of your photodiode enclosure modification, as I find the one I have printed to be very loose?
It would be even better though if someone was able to create the suggests all-in-one Wemos D1 Mini case.

@bedfelllow see attached the 3MF files.
Sensor case.zip

@bedfelllow see attached the 3MF files.
Sensor case.zip

Great, thank you.

@m-s-e The original case is designed by me 😉
Unfortunately I can't design a case for a Wemos D1 at the moment because I'm out of stock of that board.

all, any thoughts on how the boards might be arranged for an all-in-one enclosure?
on top of each other / side by side / above&below ?

all, any thoughts on how the boards might be arranged for an all-in-one enclosure?
on top of each other / side by side / above&below ?

I initially considered them being on top of each other as that would make a very compact assembly but I'm not sure of the practicalities of wiring the two together in this configuration. It therefore may be easier to have them both at the same level within the enclosure and I also think this would be an easier design.

A case something on the basis of this may be practical, though it would obviously be a lot shorter: https://cdn-blog.adafruit.com/uploads/2021/01/Wemos-Lolin-D1-Mini-Adafruit-dual-sensor-case-600x400.jpg

Or maybe something like this but replacing the DHT22 sensor with the photodiode board? https://www.thingiverse.com/thing:4274361

This seems to be the shorter version of the first link I posted. https://www.thingiverse.com/thing:4711281

I mashed this together using the sensor case from this project and this one from thingiverse: https://www.thingiverse.com/thing:4304401
It's obviously not ideal but as a proof of concept it works.
https://i.ibb.co/0ffM4BP/IMG-20210914-220409.jpg
https://i.ibb.co/1qvm5vc/IMG-20210914-220354.jpg
https://i.ibb.co/6FPpfbs/IMG-20210914-220330.jpg

I've combined the sensor case from this project and a modification of this case https://www.thingiverse.com/thing:4861266/files, cutting the lightning bolt in the lid using this as design: https://www.thingiverse.com/thing:2553540/files to come up with this:

This project really should live in one small box.  Here is how i wired the photo sensor to an esp32 dev board.  I'm plannig to design a small case for this.  I'm considering a vertical rail so that sticky tape attachment is only on the top surface of the metering device.

oh yeah, that reminds me, i've sill gotta publish mine ;)

Looking forward to trying both of these designs. Thanks.

authors: KixMan28 anverx bedfelllow klaasnicolaas m-s-e slovdahl

repo: klaasnicolaas/home-assistant-glow


text:
Using token endpoint for profile requests when a push token is present in SDK state

Description
Previously we used Klaviyo's client/profiles endpoint for all profile related updates and the client/push-tokens endpoint for just setting the push token when it was passed to the SDK. This works fine for most cases but in the case a profile changes, we would require developers to call our SDK's setPushToken method to reset the push token when seemed unnecessary since push token doesn't change with the changing profile.
To address this, we are now using the token endpoint for even the profile updates so that when a profile or any profile identifier changes the token is automatically moved over to the new profile w/o the developer needing to do this. This should not only lower the number of calls to our endpoint but also improve network bandwidth consumption of host apps.
One thing to note is if a push token is not set then we will always call the profiles endpoint.
Below is a table reflecting the change in more detail -

Token Set?
SDK method
Tokens API
Profiles API

⛔
set(profile: Profile)

✅

⛔
set(email: String)

✅

⛔
set(phoneNumber: String)

✅

⛔
set(externalId: String)

✅

⛔
set(profileAttribute: Profile.ProfileKey, value: Any)

✅

✅
set(profile: Profile)
✅

✅
set(email: String)
✅

✅
set(phoneNumber: String)
✅

✅
set(externalId: String)
✅

✅
set(profileAttribute: Profile.ProfileKey, value: Any)
✅

Check List

[ ] Are you changing anything with the public API?
[ ] Are your changes backwards compatible with previous SDK Versions?
[ ] Have you tested this change on real device?
[ ] Have you added unit test coverage for your changes?
[ ] Have you verified that your changes are compatible with all Android versions the SDK currently supports?

Changelog / Code Overview

Test Plan
Installed a proxy and made sure that all profile related calls like set profile, set email, set external id were routed through the profiles endpoint when a push token wasn't set. When a push token was set in the SDK state verified that all profiles related called including then profile attributes were made to the token endpoint.
Related Issues/Tickets

Looking at the failing tests.

Looking at the failing tests.

Fixed tests. Looking at adding some tests.

com.klaviyo.analytics.KlaviyoUninitializedTest > Push token getter is protected FAILED
    java.lang.AssertionError at KlaviyoUninitializedTest.kt:95

This test might be relying on reset state to clear the push token from the data store, might have to update the setup or teardown function.

KlaviyoUninitializedTest

Can you help me understand which test? None of the tests in KlaviyoUninitializedTest is failing for me.

A+ Branch name.
When resetProfile is called, are we meant to immediately enqueue a token API request to register the token to a new anonymous profile (i.e. is that what iOS does, and/or is that what we should be doing)? Let's add a test to this PR that verifies the expected push token API behavior after resetProfile

Luckily since flushProfile was already being called when a profile was reset and my changes were downstream from there I didn't have to do anything additional. Also, since now when resetting we don't clear the push token state, my downstream changes to can make a token request for any profile updates when a token is set.
Updated the existing test and added one for verifying that token endpoint is indeed being called when resetting.

KlaviyoUninitializedTest

Can you help me understand which test? None of the tests in KlaviyoUninitializedTest is failing for me.

nvm I see it now. Looking into fixing it.

authors: ajaysubra evan-masseau

repo: klaviyo/klaviyo-android-sdk


text:
Facing issue while setting up klaytn local network from windows machine

Describe the bug
When the network setup is done for local using "npm run run:klay" in Windows machine from GITBASH, an error occurs with local-klay-deploy repository flow.
How to reproduce

Open gitbash from windows machine
From the root directory, run "npm run run:klay"
docker-compose.yml file is not generated after running the docker-compose.yml generation step in 1.prepare.sh from local-klaytn-deploy repository

Expected behavior
Should be able to generate docker-compose.yml file and setup the klaytn network in windows local machine without any issues. Reduce the shell script dependencies.
Attachments

Environment (please complete the following information)

Latest sandbox version
Windows 10

Closing the issue as it is handled in dev-sandox and local klaytn repo. Currently the network setup commands can work from windows gitbash cli also

repo: klaytn/klaytn-dev-sandbox


text:
Custom save path + torrent identifier

Hi!
As I said, i will probably come back. :)
I used torrentflux-ng until now, but he became very heavy and i had to do some hacks to integrate SSO, etc...  so... I decided to create my own. And is made possible thanks to you :)
I have a few questions:
1)
Is there any way to set a custom save path when adding a torrent? I'm creating a multi user interface, and every user has his own storage space.

I store user (id) and torrent (hash) into a database, but i realized that torrent must be added firstly to get the hash info. Is there a way to generate hash info (or id) before adding it into transmission? I saw that's not md5 or sha1.
Thanks a lot :+1:

how to get Hash from magnet  using this lib...  ? just like upper example with .torrent file

repo: kleiram/transmission-php


text:
rabbitmq-server dependencies

Hi !
I just add the submodule as it says in the documentation. I did vagrant up in the "vagrant" folder and I just have this message:
TASK: [rabbitmq | Update apt again] *******************************************
ok: [default]

TASK: [rabbitmq | Install RabbitMQ] *******************************************
failed: [default] => {"failed": true}
stderr: E: Unable to correct problems, you have held broken packages.

stdout: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 rabbitmq-server : Depends: erlang-nox (>= 1:16.b.3) but it is not going to be installed or
                            esl-erlang but it is not installable

msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'rabbitmq-server'' failed: E: Unable to correct problems, you have held broken packages.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/poteirard/site.retry

default                    : ok=34   changed=27   unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Using:
Vagrant 1.8.1
VirtualBox: 5.0.10
Any ideas how to solve this?
Thanks

Hi there!
That's a new one! I'll look into it. Maybe the setup for RabbitMQ changed...

@kleiram Have a look at https://github.com/kleiram/vagrant-symfony/pull/30

Thanks guys :+1:

Fix with PR #30!

authors: kleiram mablae poteirard

repo: kleiram/vagrant-symfony


text:
Migrate to TheGraph network

Affected code: https://github.com/kleros/cross-chain-realitio-proxy/blob/7368a6938260009ae9e9f9f25c50292e1320e6d1/evidence-display/.env.example#L3
Blocked by https://github.com/kleros/omen-subgraph/issues/1
Resolves https://github.com/kleros/builder-baseline/issues/22

Migrated to: https://thegraph.com/explorer/subgraphs/9fUVQpFwzpdWS9bq5WkAnmKbNNcoBwatMR4yZq81pbbz?view=Query&chain=arbitrum-one
Defined here only but not used: https://github.com/kleros/cross-chain-realitio-proxy/blob/7368a6938260009ae9e9f9f25c50292e1320e6d1/evidence-display/.env.example#L3

repo: kleros/cross-chain-realitio-proxy


text:
Curate arbitrable for Kleros v2

[x] https://github.com/kleros/tcr/issues/62
[x] https://github.com/kleros/gtcr-subgraph/issues/16
[x] https://github.com/kleros/gtcr-injected-uis/issues/6
[x] https://github.com/kleros/gtcr/issues/255
[x] https://github.com/kleros/gtcr/issues/256
[x] https://github.com/kleros/gtcr-action-bot/issues/19

Blocker for #253

Light Curate Contracts

LightGeneralizedTCR: 0xbF8d2aA8002c8E606DE16C3f3805335fC143CB21
LightGeneralizedTCRView: 0xE86f3aA740E47B35CB974dF79897Ca2c8467ac72
LightBatchWithdraw: 0x2692c903E6bFcc1420b7396AD2841bC199A3Bd9f
LightGTCRFactory: 0xBf429eA497b295Ecb26c5dbfF396C90df82F4b44
List for the Telegram groups: 0x5e49756dda40da16ee0d084ee749da270f926f17 (created by the factory)
List for the Telegram groups bis: 0x5ad38f241f7c743b7341e732981f65987973adc7 (created by the factory)

Classic Curate Contracts

GeneralizedTCR: ??
GeneralizedTCRView: 0x593D08efEC199890360A4CD5B5b62a97B9317583
BatchWithdraw: 0xb96f168BEF8c3Ce0EDEC0c85556D8F721B79709E
GTCRFactory: 0x65b966068F7cce87526C15D143daDf79476BD0A9

Others

TransactionBatcher: 0x6396904204e6c430B0e9E6c9EEafD09B7cCC428F


text:
douyin推流这块代码可以借鉴下吗

你好，抖音直播推流地址这块是如何通过扫二维码获取的，这块代码逻辑可以介绍下吗？一直没有找到

你好，本项目并没有实现直播推流模块呢，详细的api可以参考抖音项目【青训营】

repo: kloein/douyin


text:
Keyframes

Hey,
I have to create a wave. Is it possible for me to use keyframes. I want to do something like this:
const wave = {
0: {
translateY: 0
},
0.5: {
translateY: -50
},
1: {
translateY: 0
}
};

What about interpolation, something like this:
Animated.interpolate(this.translateAnim, {
  inputRange: [0, 0.5, 1],
  outputRange: [0, -50, 0],
});

I used Animated.sequence in Animated.loop.

repo: kmagiera/react-native-reanimated


text:
[QA] Test all logical commands with Gator

[ ] Assign user
[ ] Assign next
[ ] Staff
[ ] Message

Issues with staff with Gator:
<@U012M9FT0BC|rota> "rotato" staff <@U01238R77J6|yi.mihi> <@U012YACCB19|kim> _(sent with '/gator')_ does not pass and can't be understood

Testing for commands completed.

repo: kmaida/rota-slackbot


text:
LocalStorage problems

Hi
I experience the same problem, as described here http://stackoverflow.com/questions/15111361/backbone-localstorage-saves-but-does-not-fetch-collection-using-knockback
For some reason knockback can't see localstorage backbone collection. If I set it manually, it works
P.S. Thanks for the great lib :-)

I've added a test case and it seems to work just fine - if you call fetch on the collection, it gets populated with the models and the collection observable renders the view models.
Try it out and let me know what is not working: https://github.com/kmalakoff/knockback/blob/master/test/issues/issue145

I'm so sorry - it was my problem. Everything works fine!

Good to hear

repo: kmalakoff/knockback

license: mit


text:
Add a test to demonstrate issue with django 1.11

If model with state field has other fields that access their field value
via a property or a Virtal Field, then creation of instances will fail.
I do not know yet how to fix it but I will work on it.

I think this https://github.com/kmmbvnr/django-fsm/pull/173 will solve problem.

Thank you @dtatarkin. I cherry-picked your fix in the pull request.

i had the same issue and can confirm that the fix actually fixes it, i'm now using this branch in my project. @kmmbvnr a merge would be greatly appreciated :)

This fix is blocker for Django 1.11 support. @kmmbvnr could you please accept it?

authors: AmbientLighter dtatarkin karyon ticosax

repo: kmmbvnr/django-fsm


text:
update owners files after PR#5 merged

Signed-off-by: Yuval Lifshitz ylifshit@redhat.com
updating OWNERS file as requested here: https://github.com/knative-sandbox/eventing-ceph/pull/5#issuecomment-704188382

The following users are mentioned in OWNERS file(s) but are untrusted for the following reasons. One way to make the user trusted is to add them as members of the knative-sandbox org. You can then trigger verification by writing /verify-owners in a comment.

yuvalif

User is not a member of the org. User is not a collaborator. Satisfy at least one of these conditions to make the user trusted.

@matzew could you please have a look?

@yuvalif can you add yourself to the knative org first? Create a PR adding your github username to the members list in this file https://github.com/knative/community/blob/master/peribolos/knative.yaml

/verify-owners

/verify-owners

The following users are mentioned in OWNERS file(s) but are untrusted for the following reasons. One way to make the user trusted is to add them as members of the knative-sandbox org. You can then trigger verification by writing /verify-owners in a comment.

yuvalif

User is not a member of the org. User is not a collaborator. Satisfy at least one of these conditions to make the user trusted.

@matzew I was added to the knative members file, but the /verify-owners check is still failing

/verify-owners

@yuvalif oh...  this needs to be updated too: https://github.com/knative/community/blob/master/peribolos/knative-sandbox.yaml
:facepalm:

@yuvalif oh... this needs to be updated too: https://github.com/knative/community/blob/master/peribolos/knative-sandbox.yaml

done here: https://github.com/knative/community/pull/352

/verify-owners
/lgtm
/approve

/verify-owners

/verify-owners

The following users are mentioned in OWNERS file(s) but are untrusted for the following reasons. One way to make the user trusted is to add them as members of the knative-sandbox org. You can then trigger verification by writing /verify-owners in a comment.

yuvalif

User is not a member of the org. User is not a collaborator. Satisfy at least one of these conditions to make the user trusted.

@matzew still not passing :-(

/refresh
/verify-owners
/lgtm
/approve

@yuvalif needs to accept the invitation to the Knative-sandbox org. I think something like https://github.com/orgs/knative-sandbox/people/pending_invitations if you didn't get an email.

/verify-owners

@yuvalif needs to accept the invitation to the Knative-sandbox org. I think something like https://github.com/orgs/knative-sandbox/people/pending_invitations if you didn't get an email.

thanks!

authors: evankanderson matzew yuvalif

repo: knative-sandbox/eventing-ceph


text:
[Automated] Update eventing-istio-eventing-kafka-broker nightly

/assign @knative-sandbox/eventing-wg-leads
/cc @knative-sandbox/eventing-wg-leads
Produced via:
for x in eventing-kafka-broker.yaml eventing-kafka-controller.yaml eventing-kafka-source.yaml eventing-kafka-channel.yaml eventing-kafka-sink.yaml; do
  curl https://storage.googleapis.com/knative-nightly/eventing-kafka-broker/latest/$x > ${GITHUB_WORKSPACE}/./third_party/eventing-kafka-broker-latest/$x
done

Details:

/approve
/lgtm

authors: dsimansk knative-automation

repo: knative-sandbox/eventing-istio


text:
[Automated] Update eventing-rabbitmq-eventing nightly

/assign @knative-sandbox/eventing-rabbitmq-approvers
/cc @knative-sandbox/eventing-rabbitmq-approvers
Produced via:
for x in eventing-crds.yaml eventing-core.yaml; do
  curl https://storage.googleapis.com/knative-nightly/eventing/latest/$x > ${GITHUB_WORKSPACE}/./third_party/eventing-latest/$x
done

Details:

/approve
/lgtm

authors: benmoss knative-automation

repo: knative-sandbox/eventing-rabbitmq


text:
func deploy command fails to push image to registry on Windows machines

deploy command fails to push the image to the registry. I notice a strage behavior while trying different options. When you run func deploy without verbose mode it displays the message indicating gives you the impression it is pushing like this:
PS C:\Users\User\functions\gofunc> func deploy -b=false

←[1A←[K   Pushing function image to the registry
←[1A🕘 ←[1B

but it keep stuck forever, until you hit enter and get the following:
PS C:\Users\User\functions\gofunc> func deploy -b=false

←[1A←[K   Pushing function image to the registry
←[1A🕘 ←[1B
Password: Error: failed to get credentials: The handle is invalid.

When running in verbose mode it requires user, but it fails immediatelly after entering the username without giving you change the input the password
PS C:\Users\User\functions\gofunc> func deploy -b=false -v
Pushing function image to the registry
Username: jrangelramos
Password: Error: failed to get credentials: The handle is invalid.
PS C:\Users\User\functions\gofunc>

Tried from a different machines, VM and physical one also got this error for the same scenario above:
C:\Users\solcp>func deploy -p functions\nodefunc -b=false -v
Pushing function image to the registry
Username: jrangelramos
Password: Error: failed to get credentials: Identificador inválido.

note: (Identificador inválido -> Invalid identifier)

Fixed in https://github.com/knative-sandbox/kn-plugin-func/pull/459

authors: jrangelramos lance

repo: knative-sandbox/kn-plugin-func


text:
reenable referenced knative workflows

Changes
:broom: re-enables the remote (cross-org) workflows update
The cross-org permissions errors reported in #928 appears to be transient, GitHub related. This PR reapplies the update not that service has resumed.
/type cleanup

This PR succeeded in its goal of confirming the error was transient.
Closing awaiting the auto-pr from automation


text:
Kind - Timeout Eventually after In-memory channel installed...

I had high hopes to show this off tomorrow.  Any ideas?
broker-filter-hpa and broker-ingress-hpa are stuck at 70%.
mt-broker-controller and mt-broker-ingress are 0/1 ready.
Is anywhere else (AKS, GKE, Amazon) that is easier to install?

Kind or minikube? Anything in the pod events / logs?

It was on KIND. Minikube throws a CPU error immediately.
Here is what appears to be a significant event:
FailedScheduling               pod/mt-broker-ingress-5c4d45dfd6-zb5ng       0/1 nodes are available: 1 Insufficient CPU.
I found the above. Seems to be the problem preventing the rest of the start up.
How do I provide more CPU to this? My underlying hardware is strong. I have an i9 8 core with 64GB RAM  How do I provide more nodes to this KIND cluster? Would that help?

I think it depends on how you're running kind. For example, if you're using Docker Desktop or something like that you may need to adjust the resource limits. But beyond that, I don't know -- you may want to check with the kind community if you need more help.

I'm running quickstart+kind+serving+eventing+kafka with no problem on a 4 years old Mac. A Paul said, try adjusting Docker Desktop limits if that's what you are using.

Unfortunately, I left my MacBook a few thousand miles away. I tried adjusting the WSL 2 .wslconfig and didn't get the results I wanted. I did some other things, not methodicallly.
So I created a 3 node KIND cluster named knative first, and then did the quickstart. Success!
Thanks for your help, in helping me get to a solution.

authors: jeffreywstevens lionelvillard psschwei

repo: knative-sandbox/kn-plugin-quickstart


text:
Drop Istio HEAD

We don't really test istio@HEAD anywhere in CI - not sure if it's worth it anymore.

/cc @AngeloDanducci @psschwei
LGTM

/retest

authors: dprotaso nak3 psschwei

repo: knative-sandbox/net-istio


text:
[main] Update community files

Cron -knative-prow-robot
/cc knative-sandbox/api-core-wg-leads
/assign knative-sandbox/api-core-wg-leads
Produced by: knative-sandbox/knobots/actions/update-community
Details:

/lgtm
/approve

authors: dprotaso knative-automation

repo: knative-sandbox/sample-controller


text:
Sample Source needs a webhook

The controller process can expose it, or it can run separately, but we should be pushing folks to have one.
cc @n3wscott

Agreed.

/kind good-first-issue

/assign tom24d

I think that making separately would be easier to understand what is happening. Any points?

repo: knative/sample-source


text:
cli changes

dictation changes

pr made by accident


text:
Changes to docker-compose.yaml

Change postgres to the lighter alpine based version
Change mongo to the lighter hardened version from rapidfort
Change rabbitmq to it's slightly lighter alpine base
Database speeds do seem faster due to both images being light of resources.

Does Alpine run on all devices? Raspberry Pi?

Does Alpine run on all devices? Raspberry Pi?

That I haven't tested but I have time tomorrow so I'll test and see

Doing a complete redo based on new changes

repo: knightcrawler-stremio/knightcrawler


text:
SIM800 GSM module

Can this be ported to use on a SIM800 GSM module, to send directly to the cloud using GSM?

https://github.com/knolleary/pubsubclient/issues/88

authors: esawyja knolleary

repo: knolleary/pubsubclient


text:
Disconnect condition in Examples

The examples are very simple and basic, no doubt by design, however the example code can lead to a situation where the connection drops and is not handled.
I had a project where the remote sensor that was publishing a value to an MQTT server worked fine on the bench, but at it's remote location, it was failing at seemingly random intervals, but usually within 24 hours of a reset.  This morning it failed within 15 minutes of a reset, so I knew something was wrong with the code.  The remote location is across a, somewhat unreliable at times, WiFi bridged connection.  (yep, need to fix that too...  :-)  )
As the example code stands, if the Arduino misses a PING packet exchange, it will disconnect.  In the example code, this disconnect is permanent.  This can happen on unreliable links (WiFi) or if the publisher is unable to communicate with the server for whatever reason (ISP outage).  The symptom is that all other code on the Arduino continues to operate normally, with the exception of the MQTT client functionality.
The good news is that the functionality is already in the library, it's just not shown in the examples.  Simply check the result of the client.loop() statement in the main loop and act upon it.
FALSE == we're disconnected so it's time to try reconnecting
TRUE == all is good.
In the examples, replace:
client.loop()

with
if(!client.loop()) client.connect("arduinoPublisher");

or, if want to check the client.connect() as well, use something like this:
  if (!client.loop()) {
    Serial.print("Client disconnected...");
    if (client.connect("arduinoPublisher")) {
      Serial.println("reconnected.");
    } else {
      Serial.println("failed.");
    }
  }

I don't expect an update the library for this, but I did want to document this here on GitHub so that it might be useful to future users of your excellent library.  Thanks Nick!!

The basic example has been updated to include reconnect logic, and a new example of non-blocking reconnect logic added.

Hi,
I´m still trying to run the simple ESP8266 DEMO, but after awhile the MQTT connection seems to disconnect.
I use this Code:
/*
 Basic MQTT example

  - connects to an MQTT server
  - publishes "hello world" to the topic "outTopic"
  - subscribes to the topic "inTopic"
*/

#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "MySecret.h"

// Update these with values suitable for your network.
IPAddress server(192, 168, 1, 203);
long lastMsg = 0;

void callback(const MQTT::Publish& pub) {
  // handle message arrived
}

WiFiClient wclient;
PubSubClient client(wclient, server);

void setup() {
  // Setup console
  Serial.begin(115200);
  delay(10);
  Serial.println();
  Serial.println();

  client.set_callback(callback);
}

void loop() {
  if (WiFi.status() != WL_CONNECTED) {
    Serial.print("Connecting to ");
    Serial.print(ssid);
    Serial.println("...");
    WiFi.begin(ssid, password);

    if (WiFi.waitForConnectResult() != WL_CONNECTED)
      return;
    Serial.println("WiFi connected");
  }

  if (WiFi.status() == WL_CONNECTED) {

    if (!client.loop()) {
      Serial.println("### Client has disconnected...");
      client.disconnect();

      // add you code to reconnect here.
      if (client.connect("arduinoClient")) {
        Serial.println("MQTT-Client connected");
        //client.publish("outTopic","hello world");
        //client.subscribe("inTopic");
    }
  }

/*
    if (!client.connected()) {
      Serial.println("MQTT-Client disconnected");

      if (client.connect("arduinoClient")) {
        Serial.println("MQTT-Client connected");
        //client.publish("outTopic","hello world");
        client.subscribe("inTopic");
      }
    }

    if (client.connected())
      client.loop();
*/

  }

    long now = millis();
  if (now - lastMsg > 300000) {
    lastMsg = now;
    client.publish("/30/Status/MQTT","on");
  }

}

I also post this Problem here:
https://github.com/Imroy/pubsubclient/issues/37
I hope, that someone got the same problem and solved it finally.......
Greetings from Hamburg
Pf@nne

@Pfannex use knolleary's mqtt_reconnect_nonblocking.ino https://github.com/knolleary/pubsubclient/blob/master/examples/mqtt_reconnect_nonblocking/mqtt_reconnect_nonblocking.ino
I have no recoonet at least one month now.
FYI:
https://github.com/chaeplin/esp8266_and_arduino/blob/master/_02-mqtt-sw-temperature/_02-mqtt-sw-temperature.ino
https://github.com/chaeplin/esp8266_and_arduino/blob/master/_03-hx711-scale/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino
(disable serial out also help)

@chaeplin,
thanks for your hints!
I modified knollearys mqtt_esp8266.ino example to the reconnect example.
https://github.com/Pfannex/pubsubclient/blob/master/examples/mqtt_esp8266/mqtt_esp8266.ino
But I always got a lot of disconnects!
MQTT disconnected....
MQTT disconnected....
MQTT disconnected....
MQTT disconnected....
MQTT disconnected....
MQTT disconnected....

Are you able to run my sketch on your hardware?
Which ESP-library do you use?
Thanks for your Help!

https://gist.github.com/chaeplin/2b69fb46479584a354b7
a modified one, no reconnect.
https://github.com/esp8266/Arduino, Stable version.

I got some reconnects again......
I think I used not the right ESP8266 library (Board)

Right now I saw that there is a specific board for my ESP8266-12e!
NodeMCU 1.0 (ESP-12e Module)
I changed the settings, now I´m waiting...... :-)

pubsubclient : git version / no modification
mqtt : mosquitto ver 1.3.4 / Debian
Arduino IDE 1.6.5 / with Board manager / OS X
esp8266 : esp12
Connecting to Myhome
...........
WiFi connected
IP address:
192.168.10.112
failed, rc=-1
MQTT disconnected....
MQTT connected....
0
0
0
0
0
0
0
0
0
0
0
0

Still reconnects!
mosquitto.conf
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example

pid_file /var/run/mosquitto.pid

persistence true
persistence_locat

ion /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

Looks like yours.....
mosquitto version 1.4.4 on Debian Wheezy (Raspberry PI 2)
Arduino IDE 1.6.5
I´m not sure to use the right ESP-board,
does my board  looks like yours?

My board is generic ESP8266.
Do you have more codes than https://github.com/Pfannex/pubsubclient/blob/961700bc79c604bb187f8f62bd236a124339e369/examples/mqtt_esp8266/mqtt_esp8266.ino ?
Try to change MQTT_KEEPALIVE in PubSubClient.h from 15 to 60.
(Mine is 15)

You can find some more code here
https://github.com/Pfannex/AktSen
I changed MQTT_KEEPALIVE from 15 to 60 without success.
I also changed the ESP-12e into a ESP-12, also without success.
I´m very close to change the ESP against a W5100 wired controller.
What else can I do?
Where are I´m wrong?

I've got a couple esp8266 -12 on order - should arrive later this week.
Will see how I get on over the weekend.
On Mon, 16 Nov 2015 19:56 Pfannex notifications@github.com wrote:

You can find some more code here
https://github.com/Pfannex/AktSen
I changed MQTT_KEEPALIVE from 15 to 60 without success.
I also changed the ESP-12e into a ESP-12, also without success.
I´m very close to change the ESP against a W5100 wired controller.
What else can I do?
Where are I´m wrong?
—
Reply to this email directly or view it on GitHub
https://github.com/knolleary/pubsubclient/issues/41#issuecomment-157152038
.

Great!
thank you very much!  I'm a little bit desperately.....

@Pfannex
I think board type is not a problem(flash size, serial speed...).
I have checked my code to mosquitto server(1.4.5/Wheezy) on pi B+ and 2. MQTT_KEEPALIVE is 15.
No reconnect at leat 10 mins.
tcp        0      0 192.168.10.138:1883     192.168.10.112:4097     ESTABLISHED 17310/mosquitto  off (0.00/0/0)

@Pfannex
The following is log when I kill mosquitto in server. Infinite rc=-2(no delay).
0
0
0
0
0
failed, rc=-3
MQTT disconnected....
failed, rc=-2
MQTT disconnected....
failed, rc=-2
MQTT disconnected....
failed, rc=-2
MQTT disconnected....
failed, rc=-2
Ping your esp8266 when disconnected to check network is ok.
Check mosquitto on server.

@Pfannex
Your log start with rc=-3,
-3 : MQTT_CONNECTION_LOST - the network connection was broken
-2 : MQTT_CONNECT_FAILED - the network connection failed
-1 : MQTT_DISCONNECTED - the client is disconnected cleanly
0 : MQTT_CONNECTED - the cient is connected
https://cloud.githubusercontent.com/assets/7262813/11170690/f5f254ba-8bdb-11e5-9d6b-b8dd44ec5a8e.PNG

Ping your esp8266 when disconnected to check network(Wifi) is ok.

I have to check this out.
But I saw the in the disconnect state the ESP did not send any TCP-frames for a reconnect!
So I think, that there is no TCP-binding active.
Meanwhile I don't think, that the PubSubClient are the problem.
I think that the Ethernet-connection is the problem.
Is it possible to compile a Sketch and Flash it without Arduino?
So we can find a problem into my Arduino installation.

do ping test using this https://gist.github.com/chaeplin/72f7817bcf7f10bdbdff
(no pubsub, just wifi)
and how about using Staging version ?

I have disabled
boolean reconnect() { too.
I also run a simple WiFi sketch, I got about 3 disconnects a day.
But all disconnects were detected, a reconnect will start immediately.
What do you mean with "Staging version"?
Right now your test is running.....
Without any reconnects since 30 minutes.
Stay tuned.... :-)
btw. special thanks for your help so far

@Pfannex esp8266/Arduino has two version, stable and staging.

Right now your test is running.....
Without any reconnects since 60 minutes.
I canceled your test and installed "staging 2.0.0-rc1".
I run the previous Sketch.......
stay tuned.....

1h.......that's a long time!
I will report the overnight result tomorrow morning.

No reconnect or hanging since 8h....  pray....

@Pfannex
My esps had random hang(reset) a month ago. So I dosabled "Serial.begin", no more hang.
#define DEBUG_PRINT 0
void setup() {
if (DEBUG_PRINT) {
Serial.begin(115200);
}
}

20 hours!
I think, you solved the problem!
Great hint, thank you for your help!
I also disabled the RS232....... outside debugging
We will see if its stable, so stay tuned.....

@Pfannex tuned

The MQTT-Client works fine!
No Problems so far!
Thanks...!
But now I got a Problem with the ESP-Board.
Did you heard something like that?
https://github.com/esp8266/Arduino/issues/1078

i resolved this problem by adding a delay(10); in the library's loop function as here below.
boolean PubSubClient::loop() {     if (connected()) {     	delay(10);

The delay(10); worked flawlessly for me too, 4 years later. Could it be added to the code?

Hello everyone. I have this code, but I don´t know why the pubsubclient state is returning -1. I'm using a ESP32 devkit v1. I'm running Mosquitto on a Raspberry Pi for MQTT server with user and password. I'm sure the error is not in the server, because with a JavaScript client works perfectly. This is my code:
const char* ssid = "my_ssid";
const char* password = "my_network_password";
IPAddress mqttServer(192, 168, 1, 36); // The IP server
const int mqttPort = 9001;
const char* mqttUser = "user";
const char* mqttPassword = "pass";
void callback(char* topic, byte* payload, unsigned int length) {
// My callback function
}
WiFiClient wifiClient;
PubSubClient client(mqttServer, mqttPort, callback, wifiClient);
void setup() {
Serial.begin(9600);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
Serial.println("Connecting to network...");
delay(500);
}
Serial.println("Connected to network");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
Serial.println("==================================================");
String clientId = "ESP32";
clientId += String(random(0xffff), HEX);
if (client.connect(clientId.c_str(), mqttUser, mqttPassword)) {
Serial.println("MQTTClient connected");
} else {
Serial.println("MQTTClient can´t connect");
}
}
void loop() {
while (!client.connected()) {
reconnect();
}
client.loop();
// Rest of code
}
void reconnect() {
Serial.println("Connecting to MQTT server...");
String clientId = "ESP32";
clientId += String(random(0xffff), HEX);
client.connect(clientId.c_str(), mqttUser, mqttPassword);
delay(10000);
if (client.connected()) {
Serial.println("MQTTClient connected");
// Rest of code
} else {
Serial.println("Error code: ");
Serial.println(client.state()); // It returns -1
delay(5000);
}
}

@pierotoscano1496 double post. I replied to your issue in issue #203

authors: AstarothPoD Pfannex chaeplin knolleary krich11 orcema pierotoscano1496 thijsdebont


text:
Fix terminology of agents and agent/pubkey pairs

Now what is called "agents" are actually "agent/pubkey" pairs.

With 09749393e4694c71c5633486abd2335b3925bcd4, agents is now called agent-accounts.

repo: knowledgepixels/nanopub-registry


text:
Kraken - Invalid Key when fetching deposit address

Invalid Key when fetching deposit address.
The key is ok for other operations.
org.knowm.xchange.exceptions.ExchangeException: [EAPI:Invalid key]] with root cause
org.knowm.xchange.exceptions.ExchangeException: [EAPI:Invalid key]
	at org.knowm.xchange.kraken.service.KrakenBaseService.checkResult(KrakenBaseService.java:96)
	at org.knowm.xchange.kraken.service.KrakenAccountServiceRaw.getDepositAddresses(KrakenAccountServiceRaw.java:57)
	at org.knowm.xchange.kraken.service.KrakenAccountService.requestDepositAddress(KrakenAccountService.java:85)

This seems like a kraken specific issue? Is your key intended for read only?

authors: earce zdary

repo: knowm/XChange


text:
Issue running queries with multiple results

I'm trying to run an edited version of the intro tutorial in python. I have replaced the line:
phi1 = QueryParser.parse("swrl_test:hasAncestor(swrl_test:'Lea', ?y)")

With
phi1 = QueryParser.parse("swrl_test:isParentOf(swrl_test:'Rex', ?y)")

I have run this in the terminal getting both Ernest and Fred as results however running in python results in
?y: swrl_test:Ernest
[13:56:29.395] [warning] Worker forced unwind
[13:56:31.400] [warning] Worker thread does not seem to exit, it will be detached!

Hi @Niamh-Ellis
could you also provide the Python code?
In the tutorial example only the first solution is consumed. If there are more, the process will get interrupted once the result stream is deleted.
So to iterate over all results, you need to do something like this:
while True:
    nextResult = resultQueue->pop_front();
    if nextResult.indicatesEndOfEvaluation(): break
    ...

The interface looks a bit more complicated than before due to two reasons:

submitQuery returns before the evaluation is done. You get a kind of lazy queue where you need to pop results until it is indicated that no more results will follow. This also means you can process the first result while the second is still computed in some other threads.
the answer response can be yes, no or don't know, it can be marked as uncertain, and it can provide some support facts that can be used as an explanation. So it is more complicated then just the bindings for the query given.

hope that helps

Hi @daniel86
I understand now, thank you.
What does the error I was getting actually mean?

The warning indicates that KnowRob has attempted to gracefully stop a worker thread but that this has failed. After some time that the thread does not respond to shutdown request, it will be detached instead.
It is very likely something related to the Python bindings, but it might not be critical as the shutdown only happens once you are done with processing the results

Thanks

repo: knowrob/knowrob


text:
Added shutter device

Hi,
I've added a shutter devicetype and reformatted the code a bit.
The shutter devices uses the same dial like the thermostat, but max is 100 and not 30, off/on is converted to 0/100.
As I don't use tab-characters to format my code, I've changed this too.
Merge if you like.
Cheers
Dennis

Hi Dennis,
thanks for your contribution, I really appreciate it. But just for my understanding (I don't have shutters): Shutter needs a set value from 0 to 100 with step 1? 0 means closed, 100 open? But if you read the status you do expect two values on or off only, why? Isn't it a use case, that you set 70% and want to see 70% again after reload the page? Currently you see only 0 or 100. What about to use a simple on/off button for that.

Hi,
state for shutters returns off,1-99,on while pct is reporting 0-100, which is more suitable for the knob widget.
Since your changes to use "data-get", this pull request is not needed anymore. I'm going to close this now. :)
Cheers
Dennis

authors: knowthelist tubit

repo: knowthelist/fhem-tablet-ui


text:
TitleCase names with characters that are Invalid:In:Go:Identifiers

I have a target database with column and table table with colons and the generated types look like:
// Account:order represents a row from public.account:order.
type Account:order struct {
	Session:id string // session:id
	Session:type sql.NullString // session:type
	Session:brandSlug string // session:brand_slug
	Session:created sql.NullInt64 // session:created
	Event:id string // event:id
	...
}

One idea would be to title case the identifiers using illegal characters as word boundaries then using struct tags to indicate the column names and providing a constant for the table name:
const AccountOrderTable = "account:order"

type AccountOrder struct {
	SessionId string `xo:"session:id"`
	SessionType sql.NullString `xo:"session:type"`
	SessionBrandSlug string `xo:"session:brand_slug"`
	SessionCreated sql.NullInt64 `xo:"session:created"`
	EventId string `xo:"event:id"`
	...
}

Additionally the generated sql will need to have identifiers appropriately quoted based on the target db.

I'm not aware of any databases that support colons in identifiers. What database are you using?

Postgres

Sorry for the delay on getting to this issue, but been busy the last couple days. The issue is actually that PostgreSQL supports basically any character inside double quotes. The way to fix this is to provide a command line option that forces escapes / normalization of characters (ie, removal) in Go identifiers, and then also in the SQL for the generated Go code to also escape the SQL identifiers. I will fix this, but I don't think I have time today to get this done. A PR would be greatly appreciated, if you can write it!

I have cleaned up the code to fix this issue. However, please note that on the command line you will need to toggle escaping (it is not enabled by default). You can simply enable --escape-all or -X:
xo -o models -X pgsql://user:pass@host/dbname

@kenshaw Much appreciated!

authors: kenshaw nickcarenza

repo: knq/xo


text:
allure.reports.history-level settings

How to set the ALLURE_REPORTS_HISTORY-LEVEL parameter in Docker Compose；

need support this var in code

repo: kochetkov-ma/allure-server


text:
Add sale function into Mint NFT

Add function to set the artwork NFT on sale - set price to it in the Create NFT process (form). It is a bit confusing and complicated and also I'm sure many creators doesn't noticed that they can set their art on sale.
Just add set price function to create NFT

closed in simple mint done in #345 #337

authors: anettrolikova yangwao

repo: kodadot/nft-gallery


text:
🛑 Seo Card with Content is down

In fd26199, Seo Card with Content (https://og-image-green-seven.vercel.app/ Luna Witches %233.jpeg?price=0.5500KSM&image=https://image.w.kodadot.xyz/ipfs/bafybeifkgsyqa6h5mniydsz75yzd7qrffq5jh3osgjlafab2pnlsutsyvy&mime=image/jpeg) was down:

HTTP code: 500
Response time: 30 ms

Resolved: Seo Card with Content is back up in 9d5653b.

repo: kodadot/uptime


text:
Add instructions to run the tests to README.rst...

and fix test by normalizing  path.

Maybe this normalization should be done in get_wordlist(), if you think so, I can push another commit adding that.

repo: koebi/potypo


text:
Add support for windows that have been hidden, minimised or moved between Spaces

When hiding, minimising or moving a window to another space, kwm gets very confused:
Hiding or minimising a window causes kwm to lose track of it. Sometimes, but not always, clicking on a window then floating/unfloating it will bring it back under kwm's control.
When moving a window between spaces, it isn't added to the tree in the new space, and moving a window from one space to another moves it to the bottom right corner of the screen. This glitch repeats, so a window moved across multiple spaces ends up being shunted offscreen, like so:

If window borders are enabled, hiding/minimising and moving between spaces leaves 'ghost' borders on screen in the window's original position, or roughly in the vicinity of the window's new position.
It'd be lovely if kwm 'knew' about hiding, minimising and space-related movements, so that windows being unhidden, moved, &c. were treated the same as newly-opened windows.

There are no APIs for moving windows between spaces, so this is not something I can do.
I can have Kwm perform the keyboard shortcuts "cmd+n" to move a window to the nth space, but this is not a good way to do it.
For Kwm to behave properly with moving windows between spaces;

What I usually do if i have to send a window to a different space, is make it floating, open mission control and drag it to the space i want, select my new insertion point and un-float it.

See https://github.com/koekeishiya/kwm/issues/37

There are no APIs for moving windows between spaces, so this is not something I can do.

I didn't mean that kwm should provide keyboard shortcuts for moving windows between spaces, but that it should tile windows that have been moved.

What I usually do if i have to send a window to a different space, is make it floating, open mission control and drag it to the space i want, select my new insertion point and un-float it.

Yep, I've been using that workaround, except I'm using BetterTouchTool to move windows to the next/previous space with a keyboard shortcut. Unfortunately, un-floating the window after moving it causes the 'ghost border' problem that also crops up when hiding/miinimising:

Sorry I wasn't clear - I'd like kwm to keep track of windows that have been hidden, minimised or moved to another screen, instead of going haywire whenever a window is un-hidden, un-minimised, &c.. Would that be possible?

I'm unable to reproduce the border issue, does it happen with commands such as window -t fullscreen and so on?
Dealing with hidden and minimized windows are a pain, and to be honest I dont see much use for this behaviour with tiling involved.
Out of curiosity, how do these things affect your workflow, when/why are they useful in a tiling setup?

I'm unable to reproduce the border issue, does it happen with commands such as window -t fullscreen and so on?

fullscreen works fine, unless I'm moving a fullscreen'd window to another space. The ghosting happens when moving windows between spaces, or when un-minimising/un-hiding/un-floating a window in a space with existing windows.

Out of curiosity, how do they affect your workflow, when/why are they useful in a tiling setup?

I hide applications and minimise windows constantly. If I'm writing in a text editor and need to look something up on the web, I'll open a browser window and search, then minimise that browser window for later reference. Or I might need to do something quickly with a specific open app, so I'll switch to it, do the task, then hide the app until I need it again. I use 'Hide Others' a lot, too, when I've been working with several apps for a short time and then want to return to the main app I was using before. I also regularly switch to a clean space and un-hide/un-minimise stuff there, so as not to disturb the window arrangements on other spaces.
In other words, most of the time I have two or three windows visible and everything else is lurking ought of sight, ready to be brought onto the screen when I need it, so hiding and minimising are as useful to me as changing window focus or position.
This way of working is probably down to running dwm for many years - it doesn't have spaces or desktops in the usual sense, instead you 'tag' windows and use those tags to push and pull windows on and off screen, or show more than one tag on screen at once.
Also, I use a laptop, so there just isn't room to do the 'traditional' tiling workflow of leaving loads of windows open all at the same time and navigating between them. I imagine most folk using a tiling WM on a smaller screen or monitor work in a similar way - without hiding windows or moving them to other spaces, you'd have to quit apps and close windows to avoid cluttering up the screen.

Aright good points, I can see how that may be useful indeed.
Again I am very limited to how much impact I can have regarding hiding, minimizing and detect changes between spaces, but I'll try to look into later today and see if there may be something to do that allows Kwm to handle that kind of use.
I may very well have to make kwm commands for it, as that gives me more flexibility to update the state of Kwm itself, instead of trying to monitor changes performed by external applications (which is very very limited).

I'll try to look into later today and see if there may be something to do that allows Kwm to handle that kind of use.

Brilliant - thanks!

If any headway is made on this, some keyboard control for spaces would be nice. Besides moving a window to a specific space as mentioned above, moving to the previous space (similar to cmd+tab), as well as deleting the current space. (on keypress or when no windows are left, and you are not on the last space.)

moving to the previous space (similar to cmd+tab)

This was made possible in a recent commit. See kwmc space -s id num.
To go to a previous / next space, see kwmc press.
To use kwmc space -s .. .. you need to enable OSX space shortcuts in system preferences, and set the modifiers selected using kwmc config spaces-key mod+mod+mod, e.g: kwmc config spaces-key cmd+ctrl.
If you enable the prev/next shortcuts as well, say ctrl+left arrow, the command kwmc press ctrl-left will perform the space change.
I plan on looking into creating a system to make Kwm more scriptable, so that users can run some script when a certain action is triggered or a certain state is reached (for example all windows on the current space are closed).

great, thanks. More events for scripting are always appreciated.

When I said "previous space", tho, I meant going back to the previous space that you are on. For example, if I'm on space 3, and I switch to Chrome on space 1, press key to go back to space 3.

Does this issue include the glitching effect when using the scale or suck animation for de-minimizing apps from the dock.
When bps is active it already tries to fit the "still scaling" window in to its tree. The result is a double resize of the window from the dock, one really small and then a good one. when going to not bps modes like monocle, this is gone.

When moving a window between spaces, it isn't added to the tree in the new space, and moving a window from one space to another moves it to the bottom right corner of the screen. This glitch repeats, so a window moved across multiple spaces ends up being shunted offscreen

This should be fixed and officially supported by Kwm now.
See my comment in #219 for how to configure this.

.. except I'm using BetterTouchTool to move windows to the next/previous space with a keyboard shortcut.

If BetterTouchTool is used to move a window between spaces, Kwm will not be able to update its window-trees properly, and so I would recommend using the built-in Kwm way described above.

Does this issue include the glitching effect when using the scale or suck animation for de-minimizing apps from the dock.

When bps is active it already tries to fit the "still scaling" window in to its tree. The result is a double resize of the window from the dock, one really small and then a good one. when going to not bps modes like monocle, this is gone.

I will look into this when I have time, however I have had no issues with this using the Genie effect (at least I don't notice that there is an issue here).

moving to the previous space (similar to cmd+tab)

I'm not sure yet if this is doable, but will look into it in the future.

as well as deleting the current space. (on keypress or when no windows are left, and you are not on the last space.)

There is a private function CG_EXTERN void CGSSpaceDestroy(CGSConnectionID cid, CGSSpaceID sid);, however I have no idea if this still works/exists. Will look into trying this.

How many of the original problems in this issue is still a problem in the latest commit?

Minimizing works fine and retiles with any method, until a bring back from minimize is missed by kwm, at which point the app that is re-minimized retains focus after minimizing.
Bringing back from minimized works and retiles with these methods:

clicking the dock preview with the "Minimize windows into application icon" setting disabled in System Preferences
bringing it back from HyperDock

Doesn't work with these methods:

bringing it back with HyperSwitch
using the right click menu from the dock icon

Genie effect is still wonky as well.

Any new info on CGSSpaceDestroy?

It does exist, however it doesn't fully delete the space. It does delete it, as in make it useless. However, it is still there, but as a black screen.

Another use case that has been bugging me is when you maximise a window (using native OS X fullscreen) and then unmaximise it the window tree isn't updated.
Since it's detected as a space transition it should be possible to detect this and update window tree?

Since it's detected as a space transition it should be possible to detect this and update window tree?

This should be doable by making a case for transitioning from an unmanaged space, to a managed space, and just force a call to UpdateWindowTree();

Another use case that has been bugging me is when you maximise a window (using native OS X fullscreen) and then unmaximise it the window tree isn't updated.
Since it's detected as a space transition it should be possible to detect this and update window tree?

Fixed on master.

As far as I can tell, everything from this issue has been implemented, and it all tests out. Works great, thanks! I think this one can be closed out now.

I remember you mentioned earlier that a you'd like a way to move to the previous active space and not just left | right`. I believe this can be achieved as well, and will look into keeping a full history per display.
Gonna close this issue for now then.

I believe this can be achieved as well, and will look into keeping a full history per display.

Implemented in latest commit on master. kwmc window -m space previous and kwmc space -f previous.
The space history for a display is stored as a stack and this command can be repeated til the stack empties.

nice!

mm its not working for me

There is a problem currently where moving a window to a different space with Kwm does not add that space to the history. Switching spaces using gestures or OSX hotkeys works fine for me though.
Does this command perform a space transition if run from a terminal? kwmc space -f 2
If not, try remove accessiblity permissions and reenable it.

doesn't trigger the transition, even after removing and reenabling in accessibility settings

Hmm I really have no idea. It works just fine for me.

doesn't trigger the transition, even after removing and reenabling in accessibility settings

The same thing randomly started happening to me, I'm really confused right now.

authors: cHoco koekeishiya matthewdias mottram strages

repo: koekeishiya/kwm


text:
Add kwm-overlay and make command

This adds the overlay swift code and binary to the project. I have added a clear command which will remove the border from the screen (useful for marked windows?)
I noticed some issues while using it: If you move a floating window it never updates the border. Moving focus to a screen caused the border to not appear in the correct position (when I give the overlay the windowID of the window on the other screen it positions fine, not sure what the issue is there)
Please let me know if you have any feedback in this PR and I will address.
Edit: Noticed more issues when applying a layout.

Borders should now update after moving a floating window.
Due to technical limitations this cannot be "moved as the window is moved", but only after.

I have no idea why it becomes misplaced on other screens.
The only thing Kwm does is pass the exact same input to stdin as I do manually.
When I pass it manually it works, when Kwm does it, it does not work?
I have checked multiple times that Kwm passes the exact same input as I did.

I have a suspicion it has to do with line 19: let scrn: NSScreen = NSScreen.mainScreen()!
mainScreen is the focused screen. When it is entered manually the focused screen wouldn't change. Do you have knowledge of the position of the windows? Can you manually pass the width, height, x, and y instead of the windowId and see if that has any effect?

I tried passing width height x and y just now, no difference.
I did notice that changing the Y position of the screens in OSX 'screen arrangement' did seem to affect the behaviour

Entering it manually also does not work if you do it from a terminal on that monitor.

I tried passing width height x and y just now, no difference.

That is odd, none of the math that uses the screen dimensions is used in that code path. It should work, though clearly there is something more here.

Entering it manually also does not work if you do it from a terminal on that monitor.

At leas there is behavior behavior. It sounds like the coordinates are different depending on what screen is focused?

Yeah must be something like that. Not really sure what we can do about this.

I'm sure there is something to be done. I won't have time to dig deep into this for 7 hours until I am done with work, but I'll investigate what is happening.
If you happen across any interesting information please keep me posted.

Ok so I've managed to solve it with some simple math. At least with my setup:
Mac Display Primary: resolution 1680x1050
1 External Display (to the right): resolution: 1920x1080

I have also solved it
        let scrns: Array<NSScreen> = NSScreen.screens()!
        let scrn: NSScreen = scrns[0]

Replace Line 19 with those two lines and it appears to work?

Indeed it does, my fix was applied to Kwm and not the Swift application itself.
I guess we should just go with the Swift fix?

Yeah, I think the swift fix is the more correct one? We always want' to be calculating the position based on the origin (0, 0) which is always screen 0.

Yeah, that's basically what I had Kwm do as I have access to the dimensions of all monitors. But having the Swift application do it seems more appropriate.

If you ever bypassed the windowId functionality you would probably need to apply that fix

Does everything seem to work properly regarding the border now? If so, I'll probably do some refactoring and implement the marked border as well

Floating windows do not appear to update for me even after the move has been completed on HEAD... maybe I'm just holding it wrong?

Uh it should trigger from "left mouse button release". There is not really a good way for Kwm to handle this tho.

Is turning it off for floating spaces and windows feasible to do in kwm? I'm kinda OK with the border just not showing up in these instances until I can investigate if it's possible to do it from swift itself.

Assuming Kwm gives Swift the WindowID, you should be able to track it using Swift yeah.
I should be able to turn it off for floating windows and spaces.

Sounds good, it should only be a temporary solution, until I can see what it takes to do it from the overlay app.
Excited to see the marked window border!

A quick google search tells me that I would be required to use the accessibility API in order to get window move events for windows that are not owned by the application.
I would really like to avoid having kwm-overlay ask for permissions along with kwm, it seems excessive. Can you subscribe to a floating windows frame change notifications in kwm and pass the updates to kwm-overlay? It should be able to respond to changes pretty quickly.

No idea how to subscribe to notifications (if even possible) in C++ code

From a quick google search it tells me that the APIs that Honer use
https://github.com/puffnfresh/Honer.app/blob/master/Honer/HonerApplicationDelegate.m#L110
Are C(?) APIs. And those Notifications are how honer is able to keep a border overlaid on a floating window. No idea how feasible it is to use those APIs in C++ vs Obj-C though.

I had no idea those existed. That is indeed something I can use.

That was an amazing find, Thanks. It should be working as close to perfect as possible now.
Check the latest commit when you have time.

Seems to be working exactly as well as Honer, so i'm pretty happy with the result. I'll keep an eye on performance.

Is it possible to add a kwm-overlay command "quit" that makes the overlay terminate?

It should be as simple as exit(0) in an else if block under the clear command. I will not have time to test that for a few hours.

Got it working.
So the commands are as follows:
kwmc config focused-border enable | disable
kwmc config focused-border size int
kwmc config focused-border color aarrggbb | rrggbb

kwmc config marked-border enable | disable
kwmc config marked-border size int
kwmc config marked-border color aarrggbb | rrggbb

the alpha part of the color is currently not being sent to kwm-overlay (not sure if it supports this)

In theory it does (NSColor has support for alpha) there could be a bug in the way I am handling it though.

Ah my bad, I forgot to make Kwm pass the alpha value..

The makefile is unable to build the kwm-overlay for me. No idea why this happened.
(It worked just fine earlier, have not edited anything).

Does running the make file command directly give you errors in the swift file?

If i build manually using swiftc kwm-overlay/kwm-overlay.swift -o bin/kwm-overlay it works fine.

Thanks!
I have noticed that after applying a layout it does not update the border.

Layout as in tree restore ?

Ah, yes. tree restore. Using any method of giving a window focus fixes the issue, but not until that focus command is given will it fix it.

Fixed @latest commit

I had the same issue. Had to run xcrun -sdk macosx swiftc kwm-overlay/kwm-overlay.swift -o bin/kwm-overlay to build.

@landaire that appears to be a different issue than described above. Do you have xcode installed with the 10.11 SDK downloaded?

I do. Running make for the first time resulted in errors when building kwm-overlay -- errors relating to features only available on versions 10.X or above. Running swiftc kwm-overlay/kwm-overlay.swift -o bin/kwm-overlay couldn't find the SDK:
$ swiftc kwm-overlay/kwm-overlay.swift -o bin/kwm-overlay
<unknown>:0: error: cannot load underlying module for 'CoreGraphics'
<unknown>:0: note: did you forget to set an SDK using -sdk or SDKROOT?
<unknown>:0: note: use "xcrun -sdk macosx swiftc" to select the default OS X SDK installed with Xcode```

I don't do Objective-C/Swift work so maybe I didn't set something up properly in my env but the command I posted earlier makes it work fine.

The command that make runs is supposed to be
swiftc -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk kwm-overlay/kwm-overlay.swift -o ./bin/kwm-overlay

authors: chrishoage koekeishiya landaire


text:
FAQ: What does the dock scripting addition do exactly?

I've searched the internet and I could not find clear documentation on what the scripting addition does. Can you please in a few words on what it does and how it works exactly

According to this thread https://github.com/koekeishiya/yabai/issues/13#issuecomment-497950485 it says.

The functionality that uses the scripting addition, and thus require SIP to be (partially) disabled are as follows:

focus/create/destroy space without animation
move existing space left, right, or to another display
remove window shadows
enable window transparency
control window layers (make windows appear topmost or on the desktop)
sticky windows (make windows appear on all spaces on the display that contains the window)
toggle picture-in-picture for any given window

https://github.com/koekeishiya/yabai/wiki/Disabling-System-Integrity-Protection

authors: anuragrao04 buraksirma koekeishiya

repo: koekeishiya/yabai


text:
Allow specifying optional window id for window commands

Suggested change
Allow specifying optional window id for window commands. If not specified, operate on floating window.
- yabai -m window <COMMAND>
+ yabai -m window [window-id] <COMMAND>

Motivation
I've written a script that I'm running on the signals window_created and window_focused that automatically floats non-resizable windows. I only need to run it on window_focused because I cannot run window --toggle float on background windows.
#! /usr/bin/env zsh

[[ "$(yabai -m query --windows --window ${2}) | jq '.resizable == 0 and .floating == 0')" == "true" ]] \
       && yabai -m window --toggle float

I see where you are going with this, and I also think it would be nice to be able to issue commands that interact with arbitrary windows, spaces, displays, based on the Id.
That said, I don't think the current signal design is a good fit for this particular job. Even if you could float an arbitrary window the way you do now, what will happen is:

a window is created
yabai reads properties and w/e, tiles window
signal triggers your script
the script causes the window to be untiled, marked as floating

Now there are in my opinion two issues, well more like annoyances, with this approach:

The window was tiled upon creation, changing its position and size - which remain even if later unfloated, unless manually repositioned/resized.

Unnecessary flicker when the window spawns, giving it a sloppy feel.

I haven't exactly thought this through yet, but if there was some way to override the default handler for certain types of events, you could hook into the event before it is processed. The event could then be in some sort of "pending" state while you do whatever. At the end of that script you'd then return/set some state and someone notify yabai that this event is ready to be processed. It would then be passed a long through the pipeline as usual.

interact with arbitrary windows, spaces, displays, based on the Id.

Yes. That's the end goal basically, although I'm not sure how feasible this is for spaces and displays.
You're right about the example flickering and not being nice. It was just that—an example, that was supposed to show how powerful this is. Entire yabai features could be prototyped using signals, then integrated into the actual window manager later on (e.g. this float-if-non-resizable feature).
Signals are currently unfit for returning a modified state because they are executed asynchronously, which I don't think should be given up for this feature.
There's definitely a lot to consider here.

Implemented on master. All window commands will now operate on the provided window, or the focused window if none is specified.
sample:
yabai -m window 1866 --space 2

yabai -m window 1866 --toggle float

..

Closing this. I don't see myself working on a system that would allow what I mentioned above in the near future, but it is probably something that will remain in the back of my head. If I suddenly find the problem to be an interesting problem to solve I'll start working on it automatically.

Also regarding the ability to specify an id or some form of selector for the space and display commands as well - I think the best way to go for now is to leave it as it, until  a useful feature or use-case which require said functionality can be found.

authors: dominiklohmann koekeishiya


text:
added option to change colors on underlines on the top bar

This option is a bit hacked as i didn't have the time to fully understand how bar_prepare_line works. If you have some ideas about how to refactor to avoid code duplication I would be more than happy to discuss. Also this is my first C PR so be kind. There is also an issue with the length of the commands and naming that kinda violates the current indentation. Im not sure if that is a convention of C99 or something that @koekeishiya did.
The following commands will be availabe after this PR
yabai -m config status_bar_space_underline_color 0xAARRGGBB
yabai -m config status_bar_power_underline_color 0xAARRGGBB
yabai -m config status_bar_clock_underline_color 0xAARRGGBB

I'm not really interested in having changes to the bar upstream. It is meant to be pretty dumb and simple, which is why the code is written as it is. I don't think adding tons of commands such as these is the proper way to design a bar that people can customize. It should be done from scratch in a modular way.

I completely agree with your statement. However compared to Ubersicht I like your bar better because it is has a smaller footprint. And even though it is thought of as a dumb bar I see no reason to hardcode the colors of the underlines when you can change the colors of the font as well as the color of the bg and fg.
A bar for macOS is an interesting discussion and while I know that it has been solved more than once on macOS the current solutions lack in either performance or features.
I have removed the three additional commits in this PR because they do not relate to this feature.

authors: brorbw koekeishiya


text:
Fix/formating linter

added formatting, linter to improve correctness the code

not merging yet, until all reviews write its opinion about this


text:
Great framework but....

Excellent framework, beats just about any comparable component out there even if it is still in its infancy. Here comes the but...a README would be nice how to build this thing. I managed to get it to build for simulator and release but no success when I try to archive. I'm no newbie, I've successfully added my own static libs to my projects with no problems, this doesn't mean that I'm not doing something wrong but I doubt it. Anyway, had to resort to changing import code in the classes to be able to distribute my app. That should make anybody cringe...I know it's made me do that...Beyond this, keep up the excellent work guys!

In fact...even better idea...why not provide a fat static library?

repo: kolinkrewinkel/KKGridView


text:
AIR INDIA A380

hello sir

thankyou sir

kindly pls add this
thankyou


text:
fix(KFLUXBUGS-1614): fbc pipeline should stop passing binaryImage to iib

this commit removes the binaryImage reference from FBC Release pipeline and tasks so the IIB build can auto resolve it.

/test all

Depends on: https://github.com/hacbs-release/app-interface-deployments/pull/185

/test release-pipelines-e2e-suite

/test release-pipelines-e2e-suite

repo: konflux-ci/release-service-catalog


text:
Private key de-serialization issue

I have worked with your package for more than half a year now, and ran the same code over and over again without any issues. Suddenly, I cannot run it now, as it fails with the below error. My pem file is the same as ever, and the key is not expired. I tried updating the cryptography package but it solves nothing. I tried downgrading the cryptography package, same issue. I'm using version 0.0.8 on Windows, Python 3.7.
Would highly appreciate your help.

TypeError                                 Traceback (most recent call last)
 in
19 aa.add_dimension(dimension_name = 'variables/daterangeday')
20
---> 21 df0 = aa.get_report()
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/analytics/mayhem/adobe.py in get_report(self, custom_report_object)
289         self._set_page_number(0)
290         # Get initial page
--> 291         data = self._get_page(custom_report_object)
292         self.logger(data.text)
293         json_obj = json.loads(data.text)
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/analytics/mayhem/adobe.py in _get_page(self, report_object)
255             report_object = self.report_object
256
--> 257         analytics_header = self._get_request_headers()
258
259         status_code = None
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/analytics/mayhem/adobe.py in _get_request_headers(self)
150             self.access_token = self._obtain_oauth_access_token()
151         elif self.client_id:
--> 152             self.access_token = self._renew_access_token()
153
154         analytics_header = {
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/analytics/mayhem/adobe.py in _renew_access_token(self)
101         jwtPayloadJson = self._get_jwtPayload()
102         # Encode the jwt Token
--> 103         jwttoken = jwt.encode(jwtPayloadJson, private_key, algorithm='RS256')
104
105         accessTokenRequestPayload = {
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/jwt/api_jwt.py in encode(self, payload, key, algorithm, headers, json_encoder)
61         ).encode("utf-8")
62
---> 63         return api_jws.encode(json_payload, key, algorithm, headers, json_encoder)
64
65     def decode_complete(
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/jwt/api_jws.py in encode(self, payload, key, algorithm, headers, json_encoder)
108         try:
109             alg_obj = self._algorithms[algorithm]
--> 110             key = alg_obj.prepare_key(key)
111             signature = alg_obj.sign(signing_input, key)
112
/local_disk0/pythonVirtualEnvDirs/virtualEnv-c9976e96-acb1-4a62-9656-e4d1a21b6ef1/lib/python3.7/site-packages/jwt/algorithms.py in prepare_key(self, key)
240                         key = load_ssh_public_key(key)
241                     else:
--> 242                         key = load_pem_private_key(key, password=None)
243                 except ValueError:
244                     key = load_pem_public_key(key)
TypeError: load_pem_private_key() missing 1 required positional argument: 'backend'

Hi @lauraperge,
I found online a similar issue mentioning that this might be related to a package conflict.
https://stackoverflow.com/questions/63738152/deserializing-public-key-with-pythons-cryptography-module/63738463#63738463
Do you think you have other packages that might create this issue?
It is worth re-installing the package in a clean virtual environment and try again?
Let me know if this works for you.
Cheers

Hi @lauraperge,
I found online a similar issue mentioning that this might be related to a package conflict.
https://stackoverflow.com/questions/63738152/deserializing-public-key-with-pythons-cryptography-module/63738463#63738463
Do you think you have other packages that might create this issue?
It is worth re-installing the package in a clean virtual environment and try again?
Let me know if this works for you.
Cheers

@konosp we moved to a different solution, so I cannot confirm if that solves the issue but I am fairly sure it is a package conflict as well. Thank you for the answer!

@konosp we moved to a different solution, so I cannot confirm if that solves the issue but I am fairly sure it is a package conflict as well. Thank you for the answer!

authors: konosp lauraperge


text:
Read Data Visualization Issue

Dear ExAC supporting team,
I would like to check if a candidate pathogenic variant we found in our study (which is a ultra rare variant in ExAC, allele count =7) is or not coupled to another variant on the same gene in any of the seven samples matched in ExAC browser. I tried using the Read Data Visualization tool but I got some problems (no more than four samples can be visualized  when I change genomic location)
Any help will be appreciated
Thank you in advance
Massimo Acquaviva
Bioinformatician
UOC Medical Genetics
Giannina Gaslini Institute
Genova, Italy

Unfortunately, we don't have support for more data on the browser. Can you email exomeconsortium@gmail.com with the 2 variants you are interested in and we can try to help there?

Dear Konrad,
thank you so much for your reply.
We would like to check if a candidate pathogenic variant we found in our
study (which is a ultra rare variant in ExAC, allele count =7) is or not
coupled to another variant on the same gene in any of the seven samples
matched in ExAC browser
The two variants are both in TECPR2 gene :  14-102906902-C-T     T903M
and         14-102901204-C-G   L684V (rs45467297)
If it' s not a problem for you we'd like also to know if the variant  16-
89597127-G-A  G300R  in SPG7 gene  ( found in  two samples in ExAC) is
present togheter with the variant  14-102906902-C-T     T903M    in any of
the two samples.
Thank you in advance
Massimo Acquaviva & Angela Covone
UOC Medical Genetics
Gaslini Institute
Genova Italy
2016-03-10 23:48 GMT+01:00 Konrad Karczewski notifications@github.com:

Unfortunately, we don't have support for more data on the browser. Can you
email exomeconsortium@gmail.com with the 2 variants you are interested in
and we can try to help there?
—
Reply to this email directly or view it on GitHub
https://github.com/konradjk/exac_browser/issues/231#issuecomment-195085190
.


text:
The /tmp folder have to be mounted on RHEL

To allow next hardening steps to be provided correctly the tmp folder have to be mounted by systemd on the RedHat system.
Otherwise role is aboered because dnf is not able to create tmp file for updates.
modified:   tasks/mount.yml

Since https://github.com/konstruktoid/ansible-role-hardening/pull/25 was merged, please update this PR.

Going to create new PR..

authors: konstruktoid polachz

repo: konstruktoid/ansible-role-hardening


text:
bump dependencies

Applied mkpr on package.json
/tmp/mkpr.sh

:tada: This PR is included in version 1.32.0 :tada:
The release is available on:

npm package (@latest dist-tag)
v1.32.0
GitHub release

Your semantic-release bot :package::rocket:

repo: konsumation/konsum-frontend-svelte