Password

Date: 12/28/2018
Author: Mohamed
Description: Password manager
from time import sleep
from hashlib import sha256
from sys import version_info
from lib.display import Display
from lib.database import Session
import io
class PasswordManager(object):
def init(self, username, passlist_path, max_passwords, display):
self.passlist = []
self.session = None
self.resume = False
self.is_alive = True
self.is_read = False
self.display = display
self.fingerprint = None
self.username = username
self.passwords_removed = 0
self.passlist_path = passlist_path
self.max_passwords = max_passwords
Display.total_lines = self.count_lines()
@property
def list_size(self):
    return len(self.passlist)

def list_add(self, password):
    if not password in self.passlist:
        self.passlist.append(password)

def list_remove(self, password):
    if password in self.passlist:
        self.attempts += 1
        self.passlist.pop(self.passlist.index(password))
        self.session.write(self.attempts, self.passlist)

def count_lines(self):
    lines = 0

    fingerprint = (
        sha256(self.username.lower().strip().encode()).hexdigest().encode()
    )

    self.display.info("Reading wordlist ...")

    with io.open(self.passlist_path, mode="rb") as f:

        for data in f:
            lines += 1
            chunk = sha256(data).hexdigest().encode()
            fingerprint = sha256(fingerprint + chunk).hexdigest().encode()

    self.fingerprint = fingerprint
    self.session = Session(self.fingerprint)

    return lines

def read(self):
    attempts = 0
    with io.open(
        self.passlist_path, mode="rt", encoding="utf-8"
    ) as passlist:

        for password in passlist:
            if not self.is_alive:
                break

            if self.resume:
                self.attempts, self.passlist = self.session.read()

                if attempts < (self.attempts + self.list_size):
                    attempts += 1
                    continue
                else:
                    self.resume = False

            password = (
                password.replace("\n", "")
                .replace("\r", "")
                .replace("\t", "")
            )

            if self.list_size < self.max_passwords:
                self.list_add(password)
            else:
                while (
                    self.list_size >= self.max_passwords and self.is_alive
                ):
                    sleep(0.5)

                if self.is_alive:
                    self.list_add(password)
                    self.session.write(self.attempts, self.passlist)

    if self.is_alive:
        self.is_read = True

@property
def attempts(self):
    return self.passwords_removed

@attempts.setter
def attempts(self, n):
    self.passwords_removed = n

def start(self):
    self.read()

def stop(self):
    self.is_alive = False

With maruf

What's that code? I don't know what i should do?
Sent from Yahoo Mail on Android
On Sun, Feb 5, 2023 at 11:02, @.***> wrote:
Date: 12/28/2018
Author: Mohamed
Description: Password manager
from time import sleep
from hashlib import sha256
from sys import version_info
from lib.display import Display
from lib.database import Session
import io
class PasswordManager(object):
def init(self, username, passlist_path, max_passwords, display):
self.passlist = []
self.session = None
self.resume = False
self.is_alive = True
self.is_read = False
self.display = display
self.fingerprint = None
self.username = username
self.passwords_removed = 0
self.passlist_path = passlist_path
self.max_passwords = max_passwords
Display.total_lines = self.count_lines()
@property
def list_size(self):
return len(self.passlist)
def list_add(self, password):
if not password in self.passlist:
self.passlist.append(password)
def list_remove(self, password):
if password in self.passlist:
self.attempts += 1
self.passlist.pop(self.passlist.index(password))
self.session.write(self.attempts, self.passlist)
def count_lines(self):
lines = 0
fingerprint = (
    sha256(self.username.lower().strip().encode()).hexdigest().encode()
)

self.display.info("Reading wordlist ...")

with io.open(self.passlist_path, mode="rb") as f:

    for data in f:
        lines += 1
        chunk = sha256(data).hexdigest().encode()
        fingerprint = sha256(fingerprint + chunk).hexdigest().encode()

self.fingerprint = fingerprint
self.session = Session(self.fingerprint)

return lines

def read(self):
attempts = 0
with io.open(
self.passlist_path, mode="rt", encoding="utf-8"
) as passlist:
    for password in passlist:
        if not self.is_alive:
            break

        if self.resume:
            self.attempts, self.passlist = self.session.read()

            if attempts < (self.attempts + self.list_size):
                attempts += 1
                continue
            else:
                self.resume = False

        password = (
            password.replace("\n", "")
            .replace("\r", "")
            .replace("\t", "")
        )

        if self.list_size < self.max_passwords:
            self.list_add(password)
        else:
            while (
                self.list_size >= self.max_passwords and self.is_alive
            ):
                sleep(0.5)

            if self.is_alive:
                self.list_add(password)
                self.session.write(self.attempts, self.passlist)

if self.is_alive:
    self.is_read = True

@property
def attempts(self):
return self.passwords_removed
@attempts.setter
def attempts(self, n):
self.passwords_removed = n
def start(self):
self.read()
def stop(self):
self.is_alive = False
With maruf
You can view, comment on, or merge this pull request online at:
https://github.com/Bitwise-01/Instagram-/pull/216
Commit Summary

113a968 Password

File Changes
(1 file)

M lib/password_manager.py (1)

Patch Links:

https://github.com/Bitwise-01/Instagram-/pull/216.patch
https://github.com/Bitwise-01/Instagram-/pull/216.diff

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

thank you for your help, where can I reach you except by mail ?
5 Şub 2023 Pzr 10:40 tarihinde Hosseinf2012 @.***> şunu
yazdı:

What's that code? I don't know what i should do?
Sent from Yahoo Mail on Android
On Sun, Feb 5, 2023 at 11:02, @.***> wrote:
Date: 12/28/2018
Author: Mohamed
Description: Password manager
from time import sleep
from hashlib import sha256
from sys import version_info
from lib.display import Display
from lib.database import Session
import io
class PasswordManager(object):
def init(self, username, passlist_path, max_passwords, display):
self.passlist = []
self.session = None
self.resume = False
self.is_alive = True
self.is_read = False
self.display = display
self.fingerprint = None
self.username = username
self.passwords_removed = 0
self.passlist_path = passlist_path
self.max_passwords = max_passwords
Display.total_lines = self.count_lines()
@property
def list_size(self):
return len(self.passlist)
def list_add(self, password):
if not password in self.passlist:
self.passlist.append(password)
def list_remove(self, password):
if password in self.passlist:
self.attempts += 1
self.passlist.pop(self.passlist.index(password))
self.session.write(self.attempts, self.passlist)
def count_lines(self):
lines = 0
fingerprint = (
sha256(self.username.lower().strip().encode()).hexdigest().encode()
)
self.display.info("Reading wordlist ...")
with io.open(self.passlist_path, mode="rb") as f:
for data in f:
lines += 1
chunk = sha256(data).hexdigest().encode()
fingerprint = sha256(fingerprint + chunk).hexdigest().encode()
self.fingerprint = fingerprint
self.session = Session(self.fingerprint)
return lines
def read(self):
attempts = 0
with io.open(
self.passlist_path, mode="rt", encoding="utf-8"
) as passlist:
for password in passlist:
if not self.is_alive:
break
if self.resume:
self.attempts, self.passlist = self.session.read()
if attempts < (self.attempts + self.list_size):
attempts += 1
continue
else:
self.resume = False
password = (
password.replace("\n", "")
.replace("\r", "")
.replace("\t", "")
)
if self.list_size < self.max_passwords:
self.list_add(password)
else:
while (
self.list_size >= self.max_passwords and self.is_alive
):
sleep(0.5)
if self.is_alive:
self.list_add(password)
self.session.write(self.attempts, self.passlist)
if self.is_alive:
self.is_read = True
@property
def attempts(self):
return self.passwords_removed
@attempts.setter
def attempts(self, n):
self.passwords_removed = n
def start(self):
self.read()
def stop(self):
self.is_alive = False
With maruf
You can view, comment on, or merge this pull request online at:
https://github.com/Bitwise-01/Instagram-/pull/216
Commit Summary

113a968 Password

File Changes
(1 file)

M lib/password_manager.py (1)

Patch Links:

https://github.com/Bitwise-01/Instagram-/pull/216.patch
https://github.com/Bitwise-01/Instagram-/pull/216.diff

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>
—
Reply to this email directly, view it on GitHub
https://github.com/Bitwise-01/Instagram-/pull/216#issuecomment-1417029125,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWMEL2C6FNDNT3ZWO26AZCLWV5KPBANCNFSM6AAAAAAURT46XI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hello.Thank you for your reply. But  how can I use this code?Can you hack this ID your @.***_shojaei86Instagram
Sent from Yahoo Mail on Android
On Mon, Feb 13, 2023 at 16:17, @.***> wrote:
thank you for your help, where can I reach you except by mail ?
5 Şub 2023 Pzr 10:40 tarihinde Hosseinf2012 @.***> şunu
yazdı:

What's that code? I don't know what i should do?
Sent from Yahoo Mail on Android
On Sun, Feb 5, 2023 at 11:02, @.***> wrote:
Date: 12/28/2018
Author: Mohamed
Description: Password manager
from time import sleep
from hashlib import sha256
from sys import version_info
from lib.display import Display
from lib.database import Session
import io
class PasswordManager(object):
def init(self, username, passlist_path, max_passwords, display):
self.passlist = []
self.session = None
self.resume = False
self.is_alive = True
self.is_read = False
self.display = display
self.fingerprint = None
self.username = username
self.passwords_removed = 0
self.passlist_path = passlist_path
self.max_passwords = max_passwords
Display.total_lines = self.count_lines()
@property
def list_size(self):
return len(self.passlist)
def list_add(self, password):
if not password in self.passlist:
self.passlist.append(password)
def list_remove(self, password):
if password in self.passlist:
self.attempts += 1
self.passlist.pop(self.passlist.index(password))
self.session.write(self.attempts, self.passlist)
def count_lines(self):
lines = 0
fingerprint = (
sha256(self.username.lower().strip().encode()).hexdigest().encode()
)
self.display.info("Reading wordlist ...")
with io.open(self.passlist_path, mode="rb") as f:
for data in f:
lines += 1
chunk = sha256(data).hexdigest().encode()
fingerprint = sha256(fingerprint + chunk).hexdigest().encode()
self.fingerprint = fingerprint
self.session = Session(self.fingerprint)
return lines
def read(self):
attempts = 0
with io.open(
self.passlist_path, mode="rt", encoding="utf-8"
) as passlist:
for password in passlist:
if not self.is_alive:
break
if self.resume:
self.attempts, self.passlist = self.session.read()
if attempts < (self.attempts + self.list_size):
attempts += 1
continue
else:
self.resume = False
password = (
password.replace("\n", "")
.replace("\r", "")
.replace("\t", "")
)
if self.list_size < self.max_passwords:
self.list_add(password)
else:
while (
self.list_size >= self.max_passwords and self.is_alive
):
sleep(0.5)
if self.is_alive:
self.list_add(password)
self.session.write(self.attempts, self.passlist)
if self.is_alive:
self.is_read = True
@property
def attempts(self):
return self.passwords_removed
@attempts.setter
def attempts(self, n):
self.passwords_removed = n
def start(self):
self.read()
def stop(self):
self.is_alive = False
With maruf
You can view, comment on, or merge this pull request online at:
https://github.com/Bitwise-01/Instagram-/pull/216
Commit Summary

113a968 Password

File Changes
(1 file)

M lib/password_manager.py (1)

Patch Links:

https://github.com/Bitwise-01/Instagram-/pull/216.patch
https://github.com/Bitwise-01/Instagram-/pull/216.diff

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>
—
Reply to this email directly, view it on GitHub
https://github.com/Bitwise-01/Instagram-/pull/216#issuecomment-1417029125,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWMEL2C6FNDNT3ZWO26AZCLWV5KPBANCNFSM6AAAAAAURT46XI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Hello, where can I run this code, how does it work?
13 Şub 2023 Pzt 16:33 tarihinde Hosseinf2012 @.***>
şunu yazdı:

Hello.Thank you for your reply. But  how can I use this code?Can you hack
this ID your @.***_shojaei86Instagram
Sent from Yahoo Mail on Android
On Mon, Feb 13, 2023 at 16:17, @.***> wrote:
thank you for your help, where can I reach you except by mail ?
5 Şub 2023 Pzr 10:40 tarihinde Hosseinf2012 @.***> şunu
yazdı:

What's that code? I don't know what i should do?
Sent from Yahoo Mail on Android
On Sun, Feb 5, 2023 at 11:02, @.***> wrote:
Date: 12/28/2018
Author: Mohamed
Description: Password manager
from time import sleep
from hashlib import sha256
from sys import version_info
from lib.display import Display
from lib.database import Session
import io
class PasswordManager(object):
def init(self, username, passlist_path, max_passwords, display):
self.passlist = []
self.session = None
self.resume = False
self.is_alive = True
self.is_read = False
self.display = display
self.fingerprint = None
self.username = username
self.passwords_removed = 0
self.passlist_path = passlist_path
self.max_passwords = max_passwords
Display.total_lines = self.count_lines()
@property
def list_size(self):
return len(self.passlist)
def list_add(self, password):
if not password in self.passlist:
self.passlist.append(password)
def list_remove(self, password):
if password in self.passlist:
self.attempts += 1
self.passlist.pop(self.passlist.index(password))
self.session.write(self.attempts, self.passlist)
def count_lines(self):
lines = 0
fingerprint = (
sha256(self.username.lower().strip().encode()).hexdigest().encode()
)
self.display.info("Reading wordlist ...")
with io.open(self.passlist_path, mode="rb") as f:
for data in f:
lines += 1
chunk = sha256(data).hexdigest().encode()
fingerprint = sha256(fingerprint + chunk).hexdigest().encode()
self.fingerprint = fingerprint
self.session = Session(self.fingerprint)
return lines
def read(self):
attempts = 0
with io.open(
self.passlist_path, mode="rt", encoding="utf-8"
) as passlist:
for password in passlist:
if not self.is_alive:
break
if self.resume:
self.attempts, self.passlist = self.session.read()
if attempts < (self.attempts + self.list_size):
attempts += 1
continue
else:
self.resume = False
password = (
password.replace("\n", "")
.replace("\r", "")
.replace("\t", "")
)
if self.list_size < self.max_passwords:
self.list_add(password)
else:
while (
self.list_size >= self.max_passwords and self.is_alive
):
sleep(0.5)
if self.is_alive:
self.list_add(password)
self.session.write(self.attempts, self.passlist)
if self.is_alive:
self.is_read = True
@property
def attempts(self):
return self.passwords_removed
@attempts.setter
def attempts(self, n):
self.passwords_removed = n
def start(self):
self.read()
def stop(self):
self.is_alive = False
With maruf
You can view, comment on, or merge this pull request online at:
https://github.com/Bitwise-01/Instagram-/pull/216
Commit Summary

113a968 Password

File Changes
(1 file)

M lib/password_manager.py (1)

Patch Links:

https://github.com/Bitwise-01/Instagram-/pull/216.patch
https://github.com/Bitwise-01/Instagram-/pull/216.diff

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>
—
Reply to this email directly, view it on GitHub
<
https://github.com/Bitwise-01/Instagram-/pull/216#issuecomment-1417029125
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AWMEL2C6FNDNT3ZWO26AZCLWV5KPBANCNFSM6AAAAAAURT46XI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>
—
Reply to this email directly, view it on GitHub
https://github.com/Bitwise-01/Instagram-/pull/216#issuecomment-1427952120,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWMEL2E3EVV3ML36CAXI4Y3WXIZ4FANCNFSM6AAAAAAURT46XI
.
You are receiving this because you commented.Message ID:
@.***>

  Hello , how will I do this part ?from time import sleepfrom hashlib import sha256from sys import version_infofrom lib.display import Displayfrom lib.database import Sessionimport ioWindows için Posta ile gönderildi Kimden: Hosseinf2012Gönderilme: 13 Şubat 2023 Pazartesi 16:33Kime: Bitwise-01/Instagram-Bilgi: Han; CommentKonu: Re: [Bitwise-01/Instagram-] Password (PR #216) Hello.Thank you for your reply. But  how can I use this code?Can you hack this ID your<EMAIL_ADDRESS>from Yahoo Mail on Android On Mon, Feb 13, 2023 at 16:17<EMAIL_ADDRESS>wrote: thank you for your help, where can I reach you except by mail ?5 Şub 2023 Pzr 10:40 tarihinde Hosseinf2012<EMAIL_ADDRESS>şunuyazdı:> What's that code? I don't know what i should do?>> Sent from Yahoo Mail on Android>> On Sun, Feb 5, 2023 at 11:02<EMAIL_ADDRESS>wrote:> Date: 12/28/2018>> Author: Mohamed>> Description: Password manager>> from time import sleep> from hashlib import sha256> from sys import version_info> from lib.display import Display> from lib.database import Session> import io>> class PasswordManager(object):> def init(self, username, passlist_path, max_passwords, display):> self.passlist = []> self.session = None> self.resume = False> self.is_alive = True> self.is_read = False> self.display = display> self.fingerprint = None> self.username = username> self.passwords_removed = 0> self.passlist_path = passlist_path> self.max_passwords = max_passwords> Display.total_lines = self.count_lines()> @property> def list_size(self):> return len(self.passlist)>> def list_add(self, password):> if not password in self.passlist:> self.passlist.append(password)>> def list_remove(self, password):> if password in self.passlist:> self.attempts += 1> self.passlist.pop(self.passlist.index(password))> self.session.write(self.attempts, self.passlist)>> def count_lines(self):> lines = 0>> fingerprint = (> sha256(self.username.lower().strip().encode()).hexdigest().encode()> )>> self.display.info("Reading wordlist ...")>> with io.open(self.passlist_path, mode="rb") as f:>> for data in f:> lines += 1> chunk = sha256(data).hexdigest().encode()> fingerprint = sha256(fingerprint + chunk).hexdigest().encode()>> self.fingerprint = fingerprint> self.session = Session(self.fingerprint)>> return lines>> def read(self):> attempts = 0> with io.open(> self.passlist_path, mode="rt", encoding="utf-8"> ) as passlist:>> for password in passlist:> if not self.is_alive:> break>> if self.resume:> self.attempts, self.passlist = self.session.read()>> if attempts < (self.attempts + self.list_size):> attempts += 1> continue> else:> self.resume = False>> password = (> password.replace("\n", "")> .replace("\r", "")> .replace("\t", "")> )>> if self.list_size < self.max_passwords:> self.list_add(password)> else:> while (> self.list_size >= self.max_passwords and self.is_alive> ):> sleep(0.5)>> if self.is_alive:> self.list_add(password)> self.session.write(self.attempts, self.passlist)>> if self.is_alive:> self.is_read = True>> @property> def attempts(self):> return self.passwords_removed>> @attempts.setter> def attempts(self, n):> self.passwords_removed = n>> def start(self):> self.read()>> def stop(self):> self.is_alive = False>> With maruf>> You can view, comment on, or merge this pull request online at:>> https://github.com/Bitwise-01/Instagram-/pull/216>> Commit Summary>> - 113a968 Password>> File Changes>> (1 file)>> - M lib/password_manager.py (1)>> Patch Links:>> - https://github.com/Bitwise-01/Instagram-/pull/216.patch> - https://github.com/Bitwise-01/Instagram-/pull/216.diff>> —> Reply to this email directly, view it on GitHub, or unsubscribe.> You are receiving this because you are subscribed to this thread.Message> ID<EMAIL_ADDRESS>—> Reply to this email directly, view it on GitHub> ,> or unsubscribe> > .> You are receiving this because you are subscribed to this thread.Message> ID<EMAIL_ADDRESS>to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID<EMAIL_ADDRESS>to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID<EMAIL_ADDRESS>
Hi @Bitwise-01 I think this PR is not relevant. IMHO, we may close/reject the PR.

Hello. I didnt understand what you say. I only want you to help me and hack an instagram account.I need her @.***_shojaei86
Sent from Yahoo Mail on Android
On Wed, Feb 22, 2023 at 9:07, @.***> wrote:
Hi @Bitwise-01 I think this PR is not relevant. IMHO, we may close/reject the PR.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Hi @Hosseinf2012 This is a git repo where people put their code. It's not a place to ask someone to crack someone's instagram account.

Sorry. Thank you.
Sent from Yahoo Mail on Android
On Wed, Feb 22, 2023 at 11:29, @.***> wrote:
Hi @Hosseinf2012 This is a git repo where people put their code. It's not a place to ask someone to crack someone's instagram account.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

--git a/lib/password_manager.py b/lib/password_manager.py
index cda12ee..ada47a1 100644
--- a/lib/password_manager.py
+++ b/lib/password_manager.py
@@ -113,3 +113,4 @@ def start(self):


Missing toolchain leads to error in cargo call (on the example of building rom_ext_signer)

When trying to build normally using ninja -C build-out all, I get the following error:
[9/2194] Generating rom_ext_signer with a custom command
error: no such subcommand: `+`

	Did you mean `b`?
[19/2194] Generating 'sw/device/lib/dif/5fb29ed<EMAIL_ADDRESS>FAILED: sw/host/rom_ext_image_tools/signer
/usr/bin/env 'CC=ccache cc' 'CXX=ccache c++' /home/ep/EMSEC/opentitan/opentitan/util/invoke_cargo.sh /usr/bin/cargo '--manifest-path=/home/ep/EMSEC/opentitan/opentitan/sw/host/rom_ext_image_tools/signer/Cargo.toml --target-dir=/home/ep/EMSEC/opentitan/opentitan/build-out/sw/host/rom_ext_image_tools/signer --release ' '' '' /home/ep/EMSEC/opentitan/opentitan /home/ep/EMSEC/opentitan/opentitan/build-out
[29/2194] Compiling C++ object 'sw/dev...gletest_googletest_src_gtest-all.cc.o'
ninja: build stopped: subcommand failed.

The problem here is that there is no toolchain file defined for the rom_ext_signer target in this line, as a previously empty one was already removed in 405dd3e (reverting this would lead to the exactly same behavior, as the toolchain is still empty).
I am aware that this was also discussed in #6654. However the proposed solution was to look for the compatible versions of the requirements cmake, rust, go, perl and meson (<= 0.54). For me, unfortunately this did not do the trick and the error is persisting.
I could come around it by modifying the invoke_cargo.sh script, by removing the +"${TOOLCHAIN}" expression in case the toolchain is not given or empty, however I don't know if this would be the correct approach.
My system is Arch Linux based and except for meson, it is updated to most current versions.

Can you attach the whole build log, please?

Trying to reproduce this to get the full build log (actually in subsequent calls there was not really more output), I found out that something else must have fixed this. It must have been sw/vendor/rustup/rustup-init.sh -y --default-toolchain 1.52.1 together with  source $HOME/.cargo/env what actually fixed it. I just changed two things and thought it was the other one that solved it.
Maybe this would be nice to have to include in the documentation that cargo needs to be in version <= 1.52 and the steps how to reach it.
Also I found out that GCC 10 must be used by prefixing CC_FOR_BUILD=gcc-10 CXX_FOR_BUILD=g++-10 ./meson_init.sh -f to the meson init.

Closing as obsolete.


Dynamic lat long hover with refresh button

Dynamic lat long hover with refresh button

Please check the changes and then merge. The name of the branch is "Refresh".

@rog-SARTHAK Please use numericInput instead of textInput in the UI for long and lat


I think that the title did not reference properly the proposse

Hello,
The title is suggesting that the tutorial will explain how to implement azure policy with Azure Devops and its not what the documentation explain.
Plus of that maybe I am not in the topic but the text are very disconnected and without the properly explanation of pre requirements and  objective of the documentation.
I am still learning if I am able to understand at the end I will propose un upgrade for this documentation.
Thx
Edson Fagundes

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 04b85d1c-9aec-02bf-097d-a90103ab1490
Version Independent ID: db855997-4017-d31e-4743-ff090b892d59
Content: Tutorial: Implement Azure Policy with Azure DevOps - Azure Policy
Content Source: articles/governance/policy/tutorials/policy-devops-pipelines.md
Service: azure-policy
GitHub Login: @davidsmatlak
Microsoft Alias: jukullam

@N1oks
Thanks for your feedback! We will investigate and update as appropriate.


Fix typo for parameter names in state configuration file for MongoDB

Describe the issue

The MongoDB state store yaml has a typo for readconcern and writeconcern. It should be readConcern and writeConcern. See https://github.com/dapr/components-contrib/blob/bcea284c7b0c1a5a07294021a2bb6cc74909da35/state/mongodb/mongodb.go#L47-L48
URL of the docs

https://docs.dapr.io/reference/components-reference/supported-state-stores/setup-mongodb/
Expected content

Fix typo for readconcern and writeconcern. It should be readConcern and writeConcern.

/assign


Previous/Next buttons don't work

When I click on the previous or next button, this error appears.

I'm on Windows 10, using Firefox 57.0 (64-bit).

Ah blimey! I think I fixed it with c698d8bc213f9c745fd61ab45f6a21228219f178 but then uploaded a version of the extension packaged prior to this commit. Will try to upload a fix quite soon :-)

Well, looks like I screwed something up… I'll try something during the week-end as the train Wi-Fi is a bit flaky at the moment.

v1.1.6 should fix the issue.

Feel free to reopen the issue if it still affects you after updating the add-on.


AIMA4e implement Fig 6.11 Tree-CSP-Solver from AIMA3e branch

H
I would like to work on it. Do we need to improve its implement and port it from java 7 to 8 along with document or need to re code it completely?


Add client_context opts to Authorize and AuthorizationCallback plugs

Sometimes you need to retrieve manually the client context without using a configuration worker.

@MrYawe For what reason do you need to provide the context manually?
This implementation will not work. Plug evaluates arguments at compile time. Client contexts however, are not static.

@maennchen For a B2B SaaS with an Okta integration, we have one config (issuer / client_id / client_secret) per client.
We dynamically retrieve the client_configuration using the email address provided.

@maennchen Currently I can make it work like this in a Phoenix controller:
def initiate(conn, %{"email" => email}) when is_binary(email) do
    case get_client_context(email) do
      {:ok, %ClientContext{} = client_context} ->
        opts = Authorize.init([client_context: client_context] ++ @base_config ++ @authorize_config)

        Authorize.call(conn, opts)

      error ->
        ...
    end
 end

@MrYawe This syntax will unfortunately not work at all when using the plug as a plug.
There's additional concerns like the refresh mechanism on a new kid, that need to be handled properly.
OpenID knows the concept of a Dynamic Relying Party, in which case the consumer application can authenticate with multiple providers. (There's also parts of auto-discovery and dynamic client registration in there, which don't matter for this.) An implementation of that would require some kind of backend adapter, which persists / loads client contexts and could be extended with a custom strategy that implements your logic.
In this case, the plugs would be initialized with a client persistence backend module and not a provider id.
Example Behaviour:
defmodule Oidcc.Plug.ClientPersistence do
  @callback get_client_context(conn :: Plug.Conn.t()) :: nil | Oidcc.ClientContext.t()
  @callback refresh_jwks(context :: Oidcc.ClientContext.t()) :: {:ok, JOSE.JWK.t()} | {:error, term()}
  @optional_callbacks refresh_jwks: 1
end

@maennchen Thanks for the feedback. I'll try to look at it next week

@MrYawe I'm going to close the PR for now. Feel free to reopen if you want to pursue the stuff discussed above.
In any case: Thanks for the effort :heart:


feat(java-sdk) : adding-afi-qaunt

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[catkin] Unclear error message when script entry is a directory

error: [Errno 21] Is a directory: 'script'

When in setup.py entry (ref), scripts contain a directory instead of file(s), the error above occurred but it's not clear what is wrong.
d = generate_distutils_setup(
    packages=["pkg_a"],
    scripts=["script/install.py"],
    package_dir={"": "src"}
)

$ catkin b pkg_a
==> Expanding alias 'b' from 'catkin b pkg_a' to 'catkin build pkg_a'
-------------------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/kinetic
Workspace:                   /home/catdog/link/cws_noodlesuite_k
-------------------------------------------------------------------
Source Space:       [exists] /home/catdog/link/cws_noodlesuite_k/src
Log Space:         [missing] /home/catdog/link/cws_noodlesuite_k/logs
Build Space:        [exists] /home/catdog/link/cws_noodlesuite_k/build
Devel Space:        [exists] /home/catdog/link/cws_noodlesuite_k/devel
Install Space:     [missing] /home/catdog/link/cws_noodlesuite_k/install
DESTDIR:            [unused] None
-------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        merged
-------------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
-------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
-------------------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------------------
[build] Found '18' packages in 0.0 seconds.
Warning: generated devel space setup files have been deleted.
Starting  >>> catkin_tools_prebuild
Finished  <<< catkin_tools_prebuild                [ 1.8 seconds ]
Starting  >>> pkg_a
___________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << pkg_a:install /home/catdog/link/cws_noodlesuite_k/logs/pkg_a/build.install.000.log
error: [Errno 21] Is a directory: 'script'
CMake Error at catkin_generated/safe_execute_install.cmake:4 (message):

  execute_process(/home/catdog/ROS/kinetic/cws_noodlesuite/build/pkg_a/catkin_generated/python_distutils_install.sh)
  returned error code
Call Stack (most recent call first):
  cmake_install.cmake:118 (include)

make: *** [install] Error 1
cd /home/catdog/link/cws_noodlesuite_k/build/pkg_a; catkin build --get-env pkg_a | catkin env -si  /usr/bin/make install; cd -
...........................................................................................................................................................................................................
Failed     << pkg_a:install                   [ Exited with code 2 ]
Failed    <<< pkg_a                           [ 2.2 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build]   Ignored:   17 packages were skipped or are blacklisted.
[build]   Warnings:  None.
[build]   Abandoned: None.
[build]   Failed:    1 packages failed.
[build] Runtime: 4.2 seconds total.

$ apt-cache policy python-catkin-tools
python-catkin-tools:
  Installed: 0.4.4-1
  Candidate: 0.4.4-1

Escalated to https://github.com/ros-infrastructure/catkin_pkg/issues/196


after didOpen , auto trigger didClose

VSCode Version:1.17.2 (1.17.2)
OS Version:macOS 10.13 (17A405)

Steps to Reproduce:
i implemente  an oc language server, after textDocument/didOpen, client auto send textDocument/didClose message,but i did not close by click tab, uri path is correct
JSON REQUEST {"jsonrpc":"2.0","id":2,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///Users/ronghui/xx/ios-xx-xx-git/Sources/xx/xx.m"},"position":{"line":83,"character":70}}}

JSON RETURNNING {"jsonrpc": "2.0", "id": 2, "result": {"range": {"start": {"line": 127, "character": 6}, "end": {"line": 127, "character": 6}}, "uri": "file:///Users/ronghui/xx/ios-xx-xx-git/Pods/xx/xx.framework/Headers/xx.h"}}

JSON REQUEST {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///Users/ronghui/xx/ios-xx-xx-git/Pods/xx/xx.framework/xx/xx.h","languageId":"objective-c","version":1,"text":"xxxxxxx"}}}

JSON REQUEST {"jsonrpc":"2.0","method":"textDocument/didClose","params":{"textDocument":{"uri":"file:///Users/ronghui/xx/ios-xx-xx-git/Pods/xx/xx.framework/Headers/xx.h"}}}

Reproduces without extensions: Yes/No

@zrhzhouronghui which client library do you use to connect the language server. The trace you provided doesn't look like the standard trace of vscode-jsonrpc / vscode-languageclient.

i wrote a languageServer using python, here is code in my extension.ts file
let disposable = new LanguageClient('MergeLanguageClient', serverOptions, clientOptions).start();
context.subscriptions.push(disposable);

my python file is below
def run(self):
        while True:
            line = sys.stdin.readline()
            line = line.replace('Content-Length: ', '')
            contentLength = int(line)
            line2 = sys.stdin.read(2)
            line3 = sys.stdin.read(contentLength)
            responseJSON = self.process_request(line3)
            if (responseJSON != None):
                response = json.dumps(responseJSON)
                header = 'Content-Length: %d\r\n\r\n' % len(response)
                sys.stdout.write(header)
                sys.stdout.write(response)
                sys.stdout.flush()
            else:
                root_logger.info('ignore .......')
            if (self.shutDown):
                root_logger('Server ShutDown')
                break

[ 11 ] 2017-11-06 18:33:47,810: [root] JSON REQUEST {"jsonrpc":"2.0","id":3,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///Users/rh/aa/ios-phone-xx-git/mm/UITest/AppDelegate.m"},"position":{"line":24,"character":51}}}
[ 11 ] 2017-11-06 18:33:47,811: [dl] AppDelegate.m:25:52 - Returning ViewController.h:11:12
[ 11 ] 2017-11-06 18:33:47,811: [dl] {'range': {'start': {'line': 10, 'character': 11}, 'end': {'line': 10, 'character': 11}}, 'uri': 'file:///Users/rh/aa/ios-phone-xx-git/mm/UITest/ViewController.h'}
[ 11 ] 2017-11-06 18:33:47,811: [root] JSON RETURNNING {"jsonrpc": "2.0", "id": 3, "result": {"range": {"start": {"line": 10, "character": 11}, "end": {"line": 10, "character": 11}}, "uri": "file:///Users/rh/aa/ios-phone-xx-git/mm/UITest/ViewController.h"}}
[ 11 ] 2017-11-06 18:33:47,821: [root] JSON REQUEST {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///Users/rh/aa/ios-phone-xx-git/mm/UITest/ViewController.h","languageId":"objective-c","version":1,"text":"//\n//  ViewController.h\n//  UITest\n//\n//  Created by d on 15/4/24.\n//  Copyright (c) All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"}}}
[ 11 ] 2017-11-06 18:33:48,740: [root] JSON REQUEST {"jsonrpc":"2.0","method":"textDocument/didClose","params":{"textDocument":{"uri":"file:///Users/rh/aa/ios-phone-xx-git/mm/UITest/ViewController.h"}}}

when i go to method definition, the file did not open, the log show diOpen, but next auto closed

I am still not sure if I understand you correctly. VS Code does auto close files. For example if you have two files open in two tab then switch tabs always closes the file if the file is saved. This is due to memory reasons. So showing a tab doesn't necessarily mean this file is open.

should be my fault,  in didOpen it crashed，i have solved this， than you， close now


local scratch

I just noticed a folder literally named $LOCAL_SCRATCH in my work directory. I'm using the joint calling pipeline from todays dev code. The pipeline is failing but not sure if this is related. Would this be expected if something went wrong like it couldn't find the directory or was full?
# yaml
resources:
  tmp:
    dir: $LOCAL_SCRATCH

# path
echo $LOCAL_SCRATCH
/local-scratch/dwaggott/2107640

Daryl;
Sorry about the issues. The previous implementation would expand environmental variables once when preparing the samples, but this might not work correctly if you have $LOCAL_SCRATCH specified only on some machines. I pushed a fix that should do that at creation time that will hopefully work cleanly if you upgrade to the latest development. Hope this fixes it for you.


[Question] Plans for access control?

Dear Kurihara-san, I was wondering if it’s going to be possible to write regex rules in rpxy’s configuration file to deny access (eg for bots) based on the value of various request headers?
We’d like to see the ability to do this at the stage of reverse proxy as most of such rules apply across our applis.

I understand that you want to drop bot traffic as early as possible. However, imo this kind of configuration is application level, which is done on the application server (in this case webserver) and not part of network architecture where rust-rpxy is operating.

Hi, sorry for my delayed reply.
Yes, as @Gamerboy59 mentioned, I think such access control policies should be handled by the backend app since the rpxy is designed to focus on routing traffic. (Thanks @Gamerboy59!)
I also think that designing such a request-header-based filtering function is tough since it requires very generalized pattern matching for header keys and values (Maybe regexp-based rule is needed). It might become a vulnerability against DoS attacks consuming the computational resources (c.f. ReDoS)
(Simple filtering based on network information, i.e., IP addresses, would be nice for me. not planned yet though)

That said, I suppose you're aware that the Rust regex crate uses DFA by default and can handle untrusted input?

I didn't know that. Thanks for that information

I think having it as an option for a reverse proxy. Here are some example use cases:

You use a common software, by setting the login path behind a header or cookie, you can pretty much eliminate 99.9999% of automated bot hacking your login path if there is an exploit.
You use a closed source software where you have minimum control over the backend app
You use an open source software, but it constantly reloads its entire settings every time it is upgraded forcing you to delay updates until you manually change it every time (mostly an inconvenience but still)
When a user logs in, you store their login cached locally then add a cookie or header that indicates what server they are logged into. With a reverse proxy you can then forward them to the proper server instead of it being random. Forcing it into the app forces a lot of extra logic and servers must be aware of each other instead of just having the proxy route it

In all these cases it forces one into using something like nginx as a reverse proxy.
If that is still out of scope, then maybe consider dynamic loadable modules or wasm extensions?

there is an option of having a sticky cookie, but the problem is it is generic. If you have a logged off site, the site would generally be cached pages. But if someone is logged in, you want it to start load balancing as you are now going into processes that use up resources.


Add Reader & Writer for UUID

Adds UUIDReader from String & UUIDWriter to String.
Has the version number been increased?

[x] Yes! (or not but it was intended to not increase it)

Sure, I can do that. I just copied one of the existing readers/writers. They are implicit objects as well.
I can only do that for the newly introduced (inconsistent), not at all (like it is) or for all - but the latter would be binary incompatible.
What do you prefer?


Shadow DOM styles support

Hi there and thanks for the hard work!
I'm trying to build an extension that places elements into a page via content scripts (one of them most common usecases I would say). Now the only way to do this reliably really is through the Shadow DOM, to make sure generic page styles don't bleed through (my favourite example is unironically example.com that defines styles on div).
Unfortunately that means that styles need to be injected into the shadow DOM as well and that is currently abstracted away in https://github.com/extension-js/extension.js/tree/main/programs/develop/webpack/plugin-css without possibilities to intervene from userland, where they are injected into the body by the style loader.
What is your recommended approach regarding non-tailwind styles in a shadow DOM with extension.js?
Ultimately it would need to be a bundled file (in-memory while webpack serve and a flat file after building) that can be injected at will, right?
import css from "../bundled.css?inline";

// create variable to attach the tailwind stylesheet
let style = document.createElement('style');

// attach the stylesheet as text
style.textContent = css;

// apply the style
shadowWrapper.appendChild(style);

hey @tom2strobl, I've been thinking about this for a while.
so far, Extension.js inline the styles during dev (via style-loader) and output the files on production (via mini-css-extract-plugin). to make shado-dom content_scripts to work internally, I need to flag CSS imports from content_scripts to output the files instead of inlining them. I also need to consider a way to flag such CSS to the compiler. I'm thinking something about a "use shadow-dom" string at the top of the file which would tell the compiler to output styles instead of inlining them.
thoughts on this?

Firstly, thanks for caring and thinking about how to approach it!
Secondly – I started forking to be able to override more stuff in the long run and holy cow you invested a shitload of time in the tooling around extension & browser handling. Thank you so much for the hard work!
To get back on topic: I think it's pretty tricky to solve with a nice DX on your end for all cases and I'm not entirely sure if you want to cover them all. It's probably better to offer the possibility to override (well, "webpack-merge") webpacks configs and optionally offer some recipes for users to implement stuff themselves (as you kinda do with the gazillion examples you already provide).
In my case I'm not directly loading a content_script per se, but instead do an executeScript call on action as this makes sure regular browsing is not slowed down at all by the extension as nothing gets injected. And only if the user decides to use the extension (alas click the extension icon in the toolbar) any code will be executed.
This means that the style injection step (in my case) needs to happen at an arbitrary point in time when the "content"-script is executed.
Afaik you already build to dist in dev for hmr stuff and clean dist in lifecycle events, so I think I'll just try to enable useMiniCssExtractPlugin in dev aswell for the style loaders and play around with injecting (and deduping) the css at runtime. I'll report back how it went!

so basically (also in development) doing new MiniCssExtractPlugin({ runtime: false }) and useMiniCssExtractPlugin: true emits the content.css perfectly actually.
in my executeScript()'ed content.ts I can now simply do:
[...]
// my shadow root
const shadowRoot = appContainer.attachShadow({ mode: 'open' })
// check if already injected, and do so if not already
const cssFiles = Array.from(document.querySelectorAll('link[data-myspecialdenominator]'))
if (cssFiles.length === 0) {
  const linkElement = document.createElement('link')
  linkElement.rel = 'stylesheet'
  linkElement.href = chrome.runtime.getURL('scripts/content.css')
  linkElement.dataset.myspecialdenominator = ''
  shadowRoot.appendChild(linkElement)
}
[...]

which nicely injects the style into the shadow root. Now onto trying to figure out HMR 🔨

So I just saw that you updated the docs and I read up about extension.config.js which is exactly everything I was hoping for in terms of ability to override stuff (eg. another thing is I'm importing from a different package in the same monorepo where these sources need to be transpiled as well and your plugin-js-frameworks/index.ts has a fixed include on the project path, so that wouldn't work; a simple config.module.rules.push() of a new ts rule for the other packages in the monorepo works perfectly and cleanly without any forking necessary 🤜🏻🤛🏻).
Regarding the shadow-dom – after some experimentation I realized that HMR with the previously mentioned setup is more painful than the hottest curry at that thai place around the corner, so I opted for a different approach:
Since 1) I use react anyway, 2) I do like the DX of css-in-js solutions like styled-components and 3) any JS HMRs very well with extension-js, I opted for https://github.com/Wildhoney/ReactShadow because it handles the generation of a StyleSheetManager per shadowRoot automatically, completely bypassing the need of webpack css handling and manual injection. Since it's just JS at the end, it HMRs really nicely out of the box.

hey @tom2strobl thanks for the kind words and for taking time to dig into this! really appreaciated.
didn't know about ReactShadow, thanks for sharing.
if you think there is something I can do to help you/other developers looking for content_scripts with shadow-dom in the future, let me know!

@tom2strobl just updated<EMAIL_ADDRESS>and all content_script templates are built with shadow-dom.

solid ✨


Fix localhost link in the shopify theme dev command

WHY are these changes introduced?
The label for http://<IP_ADDRESS>:9292 was absent.
WHAT is this pull request doing?
This PR introduces the label field in the shopify theme dev command
How to test your changes?

Run shopify theme dev

Before

After

Post-release steps
None.
Measuring impact
How do we know this change was effective? Please choose one:

[ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[x] Existing analytics will cater for this addition
[ ] PR includes analytics changes to measure impact

Checklist

[x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[x] I've considered possible documentation changes
[x] I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

@matteodepalo I've fixed the issue by adding the label field in the shopify theme dev command. Still, I personally feel like we should use url as the default label when label is undefined.
Let me know if you agree with that, then I can update this PR :) Otherwise, we may proceed with this minor fix.

@karreiro Thank you for opening this PR. I think the problem with using the url as label if the url is not present is that if the url is very long we're going to have a duplication of information if the url is quite short, like in this case. I guess that would still be better than the current state and would fix all links without labels so I'd go for your suggestion

Still, I personally feel like we should use url as the default label when label is undefined.

Could you make sure that there is a test that checks what happens if there is no label?

Thank you for the review, @matteodepalo! I've applied the changes in the new commit :)


[Add] UART RS485 mode

RTS for RS485 Half-Duplex Mode manages DE/~RE, tested
in esp-idf-hal/src/uart.rs: fn new_common
...
esp!(unsafe {
        uart_driver_install(
            UART::port(),
            if rx.is_some() {
                config.rx_fifo_size as _
            } else {
                0
            },
            if tx.is_some() {
                config.tx_fifo_size as _
            } else {
                0
            },
            config.queue_size as _,
            queue.map(|q| q as *mut _).unwrap_or(ptr::null_mut()),
            InterruptType::to_native(config.intr_flags) as i32,
        )
    })?;

    esp!(unsafe {uart_set_mode(UART::port(), uart_mode_t_UART_MODE_RS485_HALF_DUPLEX)})?; // add this

    // Configure interrupts after installing the driver
    // so it won't get overwritten.
    let usr_intrs = config.event_config.clone().into();
    esp!(unsafe { uart_intr_config(UART::port(), &usr_intrs as *const _) })?;
...

If you want to work on RS485 support in the public API feel free to send a PR. Though we have to be mindful to not break the usage for everyone else.

@Vollbrecht update, https://github.com/esp-rs/esp-idf-hal/pull/456

@xiaguangbo thank you for this, I was manually toggling the direction pin on an RS485 driver before this.
Is it possible to use a different pin for this?

The master has merge last change, If crate.io esp-idf-hal not update: copy master src/uart.rs cover local code, cleaned rebuild
Link this, rts/dir can be any pin.
let uart = UartDriver::new(
                            peripherals.uart1,
                            peripherals.pins.gpio5,
                            peripherals.pins.gpio6,
                            Option::<AnyIOPin>::None,
                            Some(peripherals.pins.gpio7), // rts/dir
                            &config::Config::new()
                                .mode(config::Mode::RS485HalfDuplex)
                                .baudrate(baudrate),
                        );


cmd/go: code/instruction with side effects is disappeared

What version of Go are you using (go version)?

$ go version
go version go1.14.5 linux/amd64

What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tora/.cache/go-build"
GOENV="/home/tora/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tora/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/tora/code/go/proj/foo/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build205500719=/tmp/go-build -gno-record-gcc-switches"

What did you do?

package main

import (
	"fmt"
	"runtime"
	"time"
)

var a int32 = 0

func main() {
	runtime.GOMAXPROCS(2)
	go func() {
		for {
			a = 5
			// If uncomment code below, everything is ok
			// runtime.Gosched()
		}
	}()
	go func() {
		for {
			fmt.Println("a:", a)
		}
	}()
	time.Sleep(200 * time.Second)
}

What did you expect to see?
Finally a: 5 should appear on the screen
What did you see instead?
Always a: 0 appears on the screen, and a = 5 instruction is disappeared. Is this the expected behavior?
0000000000491980 <main.main.func1>:
  491980:       90                      nop
  491981:       eb fd                   jmp    491980 <main.main.func1>

Yes, this is allowed. There is no synchronization operation that would guarantee that the second goroutine would see the effects of the first one.
In the compiler, this happens because the memory state generated by the a=5 statement is never used, so it gets dead-code eliminated. That's why adding runtime.Gosched fixes it, because that call uses the aforementioned memory state.


Flashing names

Device information
Tachiyomi version: 1.3.1
Android version: 10
Device: OnePlus 7 Pro - 12GB

Steps to reproduce
Group by Source

Expected behavior
No flashing group names
Actual behavior
Flashing names. The group names move quickly left and right to then reposition to the centre
Other details
https://streamable.com/1ewbhr
The issue seems to be not visible when recording via recorder app

Does this still happen on 1.4.1?

Does this still happen on 1.4.1?

Nope working fine!

Does this still happen on 1.4.1?

Nope working fine!


We are in Cygwin using Windows php, so the path must be translated

in my vagrant@homestead:/tmp$ ls
was no directory like directory AppData\Local\Temp
please help if you can
https://stackoverflow.com/questions/56105111/laravel-homestead-per-project-installation-make-error

We need a log file as per the instructions: https://github.com/composer/windows-setup/issues/new

Log file not supplied.


Search and sorting not working in added columns kindly guide me i'm using your repo for 1st time

Added columns are not associated with the database, so they are not suitable for search and sort operations.


Favorites soring

Sort favorites alphabetically. Now they're not sorted and the order of pages looks strange.

Fixed in https://github.com/pokatomnik/mrakopedia-reader/pull/12


spanish language please to 1.9.2 v.

Code of Conduct

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

Submission validity

[X] This is not a personal support request, that should be posted on discussions community.
[X] I checked current issues and this request isn't a duplicate of an existing issue, opened or closed.

Summary
I install spanish language to 1.7 ver. but dont translate
Motivation
spanish speakers need your app in your language
Describe the solution
please translate your great app to spanish language

Out of scope; we do not maintain the translations. See kralizeck/YOURLS-es_ES#1


Azure Function Activity + self-hosted integration runtime

[If I need to use Azure Function Activity to access some on-premise resource, for example, calling REST APIs which are only available in on-premise network. Can I use to self-hosted integration runtime to make it work? It doesn't work for me.
Do I have to set networking environment for the Azure Functions first?
Thanks in advance!]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 965d9ab8-6b54-daba-9693-206845821d0c
Version Independent ID: 08725018-92a0-6b2c-8130-6debcc535b7a
Content: Azure Function Activity in Azure Data Factory - Azure Data Factory
Content Source: articles/data-factory/control-flow-azure-function-activity.md
Service: data-factory
GitHub Login: @dcstwh
Microsoft Alias: weetok

Hi @gary918 Thanks for reaching out. Are you seeing any error message? If so could you please share additional details about the error message? Also please confirm if the SHIR machine and REST API Onpremise machines are same or differet? If different machines, please verify if there are any firewall restrictions enabled in both the machines.

Thanks for leveraging Azure docs feedback channel to raise this question. This channel is reserved for ‘Azure docs’ feedback- for sharing doc feedback and suggesting content improvements. We didn't determine any changes for this documentation upon reviewing this feedback.
If your issue is specific to a use case, we request you to please reach out in forums like Microsoft Q&A or Stackoverflow. We have our engineers and other community members who will be happy to assist. Forums have a better suited audience for such queries. Once your issue is posted in forum, please do share the forum thread link here for tracking.
If you have a document which you are following and if you think it needs an update, please let us know about that here.

@KranthiPakala-MSFT Thanks for your quick response. The error message is "java.net.SocketException: Permission denied: connect". The on-premise REST API is available for the self-hosted IR, when I use 'Copy Data' activity. However, it doesn't work for my Azure Function activity even I choose self-hosted IR to run it.

@gary918 Thanks for your response and additional details. I will work with you offline on this issue which needs additional troubleshooting.
As this is not a doc feedback/enhancement, We will now proceed to close this thread and will continue the discussion offline.
Thank you

@gary918 Thanks for the post. Iam in the exact same situation, can you please provide the details about the solution that you ended up after meeting @KranthiPakala-MSFT.  It will be really useful.


Bugfix/tests

Fixed unit tests and added dependency on sastadev>=0.0.3.

@oktaal I suggest to merge this as-is for now so we could continue with deployment


Deleting messages from private channel

I have a private channel with an misbehaving bot that filled up the messages. I tried the following:
$token = 'xoxp-.......';
get-slackchannel -token $token -name "privatechannelname" | Get-SlackHistory -Count 1000 | Remove-SlackMessage

unfortunately, this only works with public channels. Is there any way to delete messages from a private channel?

I guess the support for OAuth App Credentials might be required, because the credentials of the bot have the proper access rights.
#3

It seems that when deleting from private channels you need to specify the ChannelID and not the Channel name. The piplined input contains only the channel name. The Remove-SlackMessage help file shows adding in channel ID info for such a situation:
Get-SlackChannel -name "TargetChannel" |
                Get-SlackHistory -Count 1000 |
                Where-Object Username -match "MalfunctioningBot" |
                Remove-SlackMessage -ChannelID "C5H8XBUMV"

However, that doesn't seem to be currently working. I made a fix here https://github.com/RamblingCookieMonster/PSSlack/pull/104 that I believe addresses the issue and will allow you to specify a ChannelID  for Remove-SlackMessage.


Help

salaam aleykum
I would like to replicate your project
I have no idea about programming
would it be possible
to use this api"http://api.aladhan.com/v1/timingsByCity/08-05-2023?city=Duisburg&country=DE&method=13"
because I live in Germany.
and to include a dfplayer that plays an mp3 (azan) during prayer times.

wa'alaykumusalam Brother
yes, it is possible as long as you can recode my sketch


Sync table icons don't appear in the dashboard list

I can see them, in case this helps.

Duplicate of #3319


Two-way binding

Any events from embedded presentation in the control panel should be sent to the original presentation.

I don't have a use case for this feature.


Add support for 'deploy_via=copy'; revamp tasks with class-style

Hi Diego, fabistrano is the software I was looking for, thank you for it.
But I need more features, e.g. the "deploy_via=copy" I just added, which can checkout project from remote repo to local, then copy to servers.
Besides, I rewrite all fab tasks with classic-style (http://docs.fabfile.org/en/latest/usage/tasks.html#task-subclasses). Because, from my viewpoint, classes are more flexible and extensible than functions, which makes future development easier. (Base on this change, I change "with_defaults" decorator to "set_defaults" function)
I made a lot changes to fabistrano, and going to make probably more (e.g. multi-stage support). Would you like to merge my changes, or I'd better go with my folk?

There's a lot of interesting stuff here, particularly the switch to being class-based.
I'm not a maintainer of this project, but it strikes me that this might be more easily digested in smaller chunks. Especially with the removal of the egg-info stuff it's rather a lot to review in one go.
I've opened a PR  to get that out of the way, at least.

@zhang-z sorry, for the long time. The PR got mixed up with other notifications!
ditto to what @meshy said, if you can do smaller chunks it would be great!

@dlapiduz , sorry that I didn't notice your update, and it's long time again...
Since we made a few changes and the code is not in very stable stage, I probably just close the PR for now.


ci: integration test

Running some basic commands to ensure that the main bits are working fine.

cctx tracking: exit with 0 on success, 1 on failure
CCM template: interact task fix to work when using --fees zeta

@andresaiello please, review, thanks!


Please add examples with C++/WinRT. Only C# examples are available

[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a01ed7d6-f106-570e-48b4-173d5ad1dfe9
Version Independent ID: 898104f4-382a-60ef-90af-f9304e89640e
Content: Enumerate devices - UWP applications
Content Source: windows-apps-src/devices-sensors/enumerate-devices.md
Product: uwp
Technology: peripherals-sensors-and-power
GitHub Login: @Karl-Bridge-Microsoft
Microsoft Alias: kbridge

Hi @arrudi - thanks for the feedback. This is an ongoing effort and these docs will be prioritized when possible.


Invarian Violation: Module HMRClient is not registered (RN 0.61.5)

Just tried this out on a brand new project using React Native 0.61.5 and as soon as I try to use something from my sym linked package I get this error in my app (after the bundle has loaded 100%):
Invariant Violation: Module HMRClient is not a registered callable module (calling setup)

This is using the default configuration suggested for metro.config.js. Any ideas?

After more investigation I found that the package.json file created by create-react-native-module MyLibrary includes react-native in the devDependencies. If I remove this, then I don't get the above error. I'm not sure if the blacklisting stuff that metro-symlinked-deps provides is supposed to be helping with this or not.


Collapsible cluster items in cluster left (left column)

Is your proposal related to a problem?
We have quite a few Kafka clusters, each with own schema registry, kafka connect etc. That creates a very long list of clusters that need to be scrolled to reach desired one (if it somewhere in 2nd half of the list).
Describe the solution you'd like
Collapsible items in the left column list.
Right now it is (* is for currently "selected" cluster):
Cluster1
- Brokers
- Topics
- Consumers
- Schema Registry
- KafkaConnect

Cluster2 *
- Brokers
- Topics
- Consumers
- Schema Registry
- KafkaConnect

Cluster3
- Brokers
- Topics
- Consumers
- Schema Registry
- KafkaConnect

When they are collapsible it would be:
Cluster1

Cluster2 *
- Brokers
- Topics
- Consumers
- Schema Registry
- KafkaConnect

Cluster3

Describe alternatives you've considered
There may be other good solutions to this issue. This is just one of.
Additional context
We have 15 clusters and will be adding more, the list is very long to scroll with 15 already.

Seems like this has already been implemented within the redesign.

@workshur @alinamiryuk can we make this collapsed by default based on some env. variable?

@Haarolean it will work without any env cars

@Haarolean it will work without any env cars

based on what circumstances are they gonna be collapsed by default?

All clusters will be collapsed unless there's just one cluster.

@Haarolean when is the re-design expected to be on master branch?

@Haarolean when is the re-design expected to be on master branch?

@akamensky We'll release 0.3 once the redesign is done, currently we're fixing some minor stuff.
@workshur any estimates on redesign?

@akamensky you could check out master. There are various issues there which are WIP


⚠ Turnos 24x7 has degraded performance

In eaeb8e9, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1576 ms

Resolved: Turnos 24x7 performance has improved in 289f7a7.


Creating app.context from code

IIs there any plan to support initializing application context from code? (for unit tests)

I'm working on creating a unit test for ApplicationContext. Currently, ApplicationContext is being tested through Json/XML context test classes.
Not sure if that answers your question.

Nope ;) Ok, Thanks.


[Fix] Improve verbiage used in snackbar notifications for content operations

Signed-off-by: rakshitgondwal<EMAIL_ADDRESS>Description

Removed the exclamation marks '!' in the stackbar.
Removed the capitalization of every other word after the first word.

This PR fixes #6413
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Thanks for jumping into the project, @rakshitgondwal 👏

@rakshitgondwal Let me know if you are not able to make the requested changes by today. I'll take the PR forward.

@rakshitgondwal Let me know if you are not able to make the requested changes by today. I'll take the PR forward.

Hey @Chadha93, I have changed the term Pattern to Design in the latest commit, for the other things, I guess the capitalization of the first word is also done, but I'm not being able to get around the other things as mentioned by @leecalcote.

No worries @rakshitgondwal I've pushed the desired changes which cover all the points. I highly recommend reviewing it.

@leecalcote I've incorporated all these points:

only capitalize the first word in the notification. :heavy_check_mark:

incorporate the name of the item (design, filter, app) into the notification and enclose in double quotation marks.:heavy_check_mark:

use the term "design", not the term "pattern". :heavy_check_mark:

Video attached:
https://user-images.githubusercontent.com/65453826/199335630-f81e2320-d3bf-400a-b983-54e0cbfabb1a.mp4

Great job, @rakshitgondwal. FYI there is a conversation on this topic in slack under the #meshery-ui channel

Oh, yeah… and MeshMate @Chadha93, I guess that you did OK, too.

Oh, yeah… and MeshMate @Chadha93, I guess that you did OK, too.

@rakshitgondwal Let me know if you are not able to make the requested changes by today. I'll take the PR forward.

Hey @Chadha93, I have changed the term Pattern to Design in the latest commit, for the other things, I guess the capitalization of the first word is also done, but I'm not being able to get around the other things as mentioned by @leecalcote.

No worries @rakshitgondwal I've pushed the desired changes which cover all the points. I highly recommend you to review it.

I just reviewed the changes, now I understand what I was missing. Thanks a lot for helping out.

Great job, @rakshitgondwal. FYI there is a conversation on this topic in slack under the #meshery-ui channel

Thanks a lot, @leecalcote. This was my first contribution to meshery, and I look forward to contributing more in the future. I'll make sure to check the slack channel too.

Awesome. I'm looking forward to you digging your heels in, too. What a great contribution to kick-off your engagement in the project. 👍

For sure @leecalcote

Yay @rakshitgondwal. :balloon:

Yay @rakshitgondwal. 🎈

Thank you for the merge.!


Plugin stops working after server reboot

Please fix soon really need this plugin stops working after about 1 hour or when server reboots

what u mean by this

Use PMMP issue will be fixed hopefully.


Feature Request?

Thanks for the lightweight and awesome plugin and I have 1 question?
Instead of changing the [data-emergence=visible] can we add the Class Toggle? Example:
I am using the animate.css and want to add some animate class to enter visible viewport.
Current condition is ok and I can customize the Classes but if I do this then I will duplicate this CSS file for  [data-emergence=visible] right?
I hope you can understand me :)
Thanks.

Also 1 more thing. If elements are in the Same Row then it's animated Instantly. I think it should delay between this 2 element.
It's becoming just like the waypoint ;)

Hey Uranbold,
The idea behind the attributes is to give the markup more semantic meaning—didn't want to include classes to keep code light. You could use the callback function to add the animate.css classes. For example:
emergence.init({
  reset: true,
  callback: function(element, state) {
    if (state === 'visible') {
      element.classList.add('animated','bounce');
    } else if (state === 'reset') {
      element.classList.remove('animated','bounce');
    }
  }
});

Regarding your second point, that's doable but would require more code and it really could be achieved with simply CSS nth-child and transition / animation delay.


Implement WaitForEndpointSteadyState helper

this helper waits until a condition is met for the given number of
times in a row
this can be useful if requests go through multiple different
components (e.g. routers) and we want to wait until all the components
are ready and requests going through any of the components will succeed

PR for knative/serving will be sent shortly: TBD

Closing for now until I find a better solution.


[Bug] Changing desired_size (cluster nodes) after creation has no effect

Description
I can successfully create an eks cluster and specify the desire_size.
However, if I change the desired size, terraform does not update that value at all (completely ignored, it successfully can update min_size which is how I found out because I tried to change both desired_size and min_ size and got an error that min_size can't be greater than desired_size hence I found out desired_size is being ignored. Changing only desired_size produces "no changes necessary" message).
I am using eks managed node group.

[x] ✋ I have searched the open/closed issues and my issue is not listed.

⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/ - done every time in my gitlab pipeline
Re-initialize the project root to pull down modules: terraform init - done every time in my gitlab pipeline
Re-attempt your terraform plan or apply and check if the issue still persists - still persists.

Versions

Module version [Required]: 19.21.0

Terraform version:

(0)$ t -version
Terraform v1.6.3
on linux_amd64

Provider version(s):

aws 5.31.0
Reproduction Code [Required]
resource "aws_iam_policy" "ec2_create_attach_detach_volume_policy" {
  name = "my-cluster_ec2_create_attach_detach_volume_policy"
  description = "Allow the Managed Node Group Role to manage PV/PVCs"
  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [{
      Action = [
        "ec2:CreateVolume",
        "ec2:AttachVolume",
        "ec2:DetachVolume",
      ]
      Effect = "Allow"
      Resource = "*"
    }]
  })
}

module "my-eks" {
  source                          = "terraform-aws-modules/eks/aws"
  version                         = "19.17.4"
  cluster_name                    = "my-cluster"
  cluster_version                 = "1.25"
  cluster_endpoint_private_access = true

  # Addons are needed to support resource like ebs storage
  cluster_addons = {
    coredns = {
      most_recent = true
    }
    kube-proxy = {
      most_recent = true
    }
    vpc-cni = {
      most_recent = true
    }
    aws-ebs-csi-driver = {
      most_recent = true
    }
  }

  vpc_id     = data.aws_vpc.selected.id
  subnet_ids = data.aws_subnets.private_subnets.ids

  create_cluster_security_group = false
  cluster_security_group_id     = aws_security_group.sg_restricted_egress.id

  create_node_security_group = false
  node_security_group_id     = aws_security_group.sg_restricted_egress.id

  create_cloudwatch_log_group = true

  cluster_enabled_log_types = ["api","audit","authenticator","controllerManager","scheduler"]

  create_kms_key = false
  cluster_encryption_config = {
    resources = ["secrets"]
    provider_key_arn = var.kms_key_id
  }

  eks_managed_node_group_defaults = {
    ami_type        = "AL2_x86_64"
    instance_types  = ["t3.medium"]
    iam_role_attach_cni_policy = true
  }

  eks_managed_node_groups = {

    eks_mng = {

      name = "my-cluster_emng"

      ami_id          = var.aml_stiged_ami_id
      min_size        = "2"
      max_size        = "5"
      desired_size    = "3" # change to 4, nothing happens.
      ebs_kms_key_arn = var.kms_key_id
      create_iam_role = true
      iam_role_name            = "my-cluster_emng-role"
      iam_role_description     = "my-cluster EKS managed node group role"
      iam_role_additional_policies = {
        AmazonSSMFullAccessInfo = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore",
        EC2CreateAttachDetachVolumePolicy = aws_iam_policy.ec2_create_attach_detach_volume_policy.arn
      }
      block_device_mappings = {
        xvda = {
          device_name = "/dev/xvda"
          ebs = {
            encrypted = true
            kms_key_id = var.kms_key_id
          }
        }
      }
      enable_bootstrap_user_data = true
    }
  }
}

Steps to reproduce the behavior:

Deploy fresh cluster (terraform apply)
Change the desired size from 3 to 4
terraform apply

(Not using workspaces)
(there is no local cache in my gitlab pipeline)
Expected behavior
I'd expect the desired (cluster) size to change from 3 to 4.
Actual behavior
Nothing happens, the desired_size change is ignored.
Terminal Output Screenshot(s)

Additional context

https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/faq.md


Split logic codes from UI classes

As you can see, the UnityStudioForm class is growing into a god object. Reading it is VERY hard since it has over 3000 lines of code and is not well organized. I think you can consider to separate the core functionalities (i.e. data IO & decoding/encoding) to form a clearer code structure.

hmm... I think it's too hard for me...

I believe this issue can be closed.

@ordigdug ok


The callback function in useCallback should return a value

Any news on that?

This doesn't seem right, because the exampl implies side effects in doSomething, so the code is correct. Thanks for your PR!


Encode Path for ipns

I struggled to be able to  encode path for ipns, because you need to bs58 encode this first:
https://github.com/cryptonative-ch/ipns-for-ens
Normal people just use the https://app.ens.domains, but DXdao has to set content via an on-chain proposal. An idea would be to implement this or just change your documentation.
Absolute best would be this ending up on https://content-hash.surge.sh/
I may implement this, if you point me to the right place.

Thanks for reporting this issue !
I'll try to have a look in the coming days if I find some time, any PR is also welcome 😄


Add more suggestions for avoiding deadlocks to webhook docs

Webhooks can cause deadlocks in several ways, expand the list to cover more subtle cases.
Was recently debugging an issue where this came up and I thought, perhaps I can improve the docs to call out more cases.  Not sure we've got the root cause of the issue correct yet but I can't see why it wouldn't be possible to cause deadlocks in these ways (and I think I was seeing these problems in a customer cluster).

/remove-lifecycle stale

@sftim do you want to take over this PR?  Seems like you want to rewrite this section of the docs.

@sftim do you want to take over this PR?

I'd much rather not, honestly. If I can help you follow our style guide, great - I'll provide advice. If you've found that you don't have capacity to move this forward, that's OK; please let us know.
If you would like to get this merged, the feedback so far will help you make the right kind of changes.

Applied your markups and tweaked the language to avoid making "official recommendations" PTAL.


Add visible notification when adding and removing a program manager

 Add visible notification when adding and removing a program manager #654

Issue has been resolved.


Add selected_resources Jinja context to docs - v1.1

Description & motivation

PR for the issue #1330 , adding a variable called selected_resources to the Jinja context
To-do before merge

[x] Change the base branch
[x] Ensure PR #5001 is merged in dbt-core

Pre-release docs
Is this change related to an unreleased version of dbt?

[x] Yes: please

update the base branch to next
add Changelog components: <Changelog>[New/Changed] in v0.x.0</Changelog>
add links to the "New and changed documentation" section of the latest Migration Guide

[ ] No: please ensure the base branch is current
[ ] Unsure: we'll let you know!

Checklist
If you added new pages (delete if not applicable):

[x] The page has been added to website/sidebars.js
[x] The new page has a unique filename

@b-per Thank you for opening this PR! I changed the branch to current because now that we can version the docs, we've been releasing 1.1 content into current and versioning it like we do here](https://github.com/dbt-labs/docs.getdbt.com/pull/1319/files#diff-52822271cc0a418238ec087115df4ef8b81bf2c5d5b2eb520efad49e1c62cb95R106):


calculate cis/total during balancing and use it to filter rows

A major practical issue with processing Hi-C data is the presence of genomic translocations. They lead errors into the calculated genomic distances and confuse cis contacts with trans ones, thus breaking the expectations of downstream analyses (obs/exp, eigenvectors).
Historically, @mimakaev and @gfudenberg dealt with these issues by filtering out genomic bins that form an untypically high fraction of trans contacts. Recently, @Phlya pointed out the need for such filters in cooler.
A simple suggestion would be to calculate the cis/total fraction in raw bins (cis_tot_raw), detect low-value outliers using MADmax and filter them out (on top of the already used MADmax-coverage filter).It may also be useful to report both the cis_tot_raw and cis_tot_balanced (i.e. cis/total fraction after filtering/balancing).

Also intra-chromosomal translocations, which can, probably, be filtered similarly, but by long-range cis over total cis, or over short range cis.

Since cis/total has a broad, locus-dependent, range influenced by mant
factors, I've found that filtering on whether a bin has any extreme
trans-values  (e.g. equivalent to third cis diagonal) can be useful in
addition to just filtering on cis/total.
On Thu, Sep 20, 2018, 7:55 AM Ilya Flyamer<EMAIL_ADDRESS>wrote:

Also intra-chromosomal translocations, which can, probably, be filtered
similarly, but by long-range cis over total cis, or over short range cis.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mirnylab/cooler/issues/134#issuecomment-423214310,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASvzZfQG8-WXMELGuQnETsU5fpUy7ipqks5uc6xigaJpZM4WyTaR
.

bumping this-- @golobor suggests that cis & total sums can be set as columns during balancing

See #210


⚠ Bofrost.be has degraded performance

In 3cca8c5, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2133 ms

Resolved: Bofrost.be performance has improved in 17d25dd.


optional max_tokens

Use a checkbox to optionally enable the use of max_tokens instead of having it disabled. This feature is useful for OpenAI models, as well as models from OpenRouter and other platforms.
I've set the default to 2048 for smaller context models (4k); however, 4096 is the preferred setting for newer models from OpenAI and Anthropic. Despite these models supporting much larger contexts, their output is capped at 4096.

Use a checkbox to optionally enable the use of max_tokens instead of having it disabled. This feature is useful for OpenAI models, as well as models from OpenRouter and other platforms. I've set the default to 2048 for smaller context models (4k); however, 4096 is the preferred setting for newer models from OpenAI and Anthropic. Despite these models supporting much larger contexts, their output is capped at 4096.

@Algorithm5838 Just letting you know, there is a bug related to the attach messages feature due to the max_tokens setting in this chat.ts file.
The logic needs to be refactored because the way attach messages work is not consistent, depending on the max_tokens value.

related issue:

#4303

You are correct. I encountered it before and solved by commenting out this part:
          i >= contextStartIndex;// && tokenCount < maxTokenThreshold;

The issue with the logic is that they assumed max_tokens is input + output, where it is actually output only.

You are correct. I encountered it before and solved it by commenting out this part:
          i >= contextStartIndex;// && tokenCount < maxTokenThreshold;

The issue with the logic is that they assumed max_tokens is input + output, where it is actually output only. The right way is to include context tokens with the models.

I figured that out a few weeks ago when trying to implement support for anthropic with my friends.


asyncio ApplicationRunner lacks "start_loop"

See https://github.com/crossbario/autobahn-python/issues/655#issuecomment-236021888

autobahn.twisted.wamp.ApplicationRunner.run has a start_reactor (of bool) parameter that allows a user to decide whether to let ApplicationRunner start the reactor and start logging OR not do any of the former.
autobahn.asyncio.wamp.ApplicationRunner.run lacks a corresponding parameter and will always start a loop and start logging.

I believe this is already fixed, lets close ?

Yes, this is fixed.


Stops loading after Disabling two modules in Config

When editing zenith.cfg and disabling adventure and potion module after that loading the game crashes. But after deleting the config folder of zenith the game launches without an issue.
Zenith version: zenith-0.2.0-1.20.1
Minecraft: 1.20.1

Fixed with 0.2.1


Databinding Support

Can databinding support be added when get-set methods?

You can implement your own custom annotator to do this.


Use T::Class in an overload for optparse

Motivation

Test plan

See included automated tests.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_OlXsFmD0Aya0Oj
→ https://go/builds/bui_OlXspF5ZSwWZ7i
→ https://go/builds/bui_OlXsprRkozYhD2

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_OlYeAPhQGig8cG
→ https://go/builds/bui_OlYeiOv10vABa4
→ https://go/builds/bui_OlYee2ZfnwR2v9

Current dependencies on/for this PR:

master

PR #7406

PR #7382

PR #7383

PR #7384   👈

This comment was auto-generated by Graphite.

Current dependencies on/for this PR:

master

PR #7406

PR #7382

PR #7383

PR #7384   👈

This comment was auto-generated by Graphite.


Reduce bacon gif size

From 10 frames to 3.
Optimized gif.
From 1MB down to 180KB.

👍👍👍

:-1:

It makes the tests run faster by having less frames to convert and @JuanPotato was concerned about the file size initially.

Nothing is a good justification for lessening the amount of bacon

I'm crying

@nabijaczleweli Don't worry I have a way to cheer you up.

Go eat bacon
Be happy

Cheers


While configuring a "plain text" filter, Weevil shall provide the option to select the case sensitivity.

Obsoleted by:

#394


Update UG

Codecov Report

Merging #91 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #91   +/-   ##
=========================================
  Coverage     32.33%   32.33%
  Complexity      517      517
=========================================
  Files           170      170
  Lines          3321     3321
  Branches        335      335
=========================================
  Hits           1074     1074
  Misses         2128     2128
  Partials        119      119

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 64dfb6f...3c2e10b. Read the comment docs.

Looks good to merge!


secureDevice() Missing Dialog "your device needs to have secure lock screen"

Updating from Crypho version and finding that secureDevice() on Android no longer brings up "Attention" dialog that directs user action.  Was this purposely removed?
Most importantly, previously upon clicking "Set Lock" in that dialog, brought one to "Choose screen lock" in Android settings, which is preferred. Now secureDevice() brings one directly to "Security & Location" in Android settings. This seems less desirable.

This might be what @rajasekar-ideas2it is doing in #21 ...

Yes @danielzen that is covered in the mentioned PR.

Any news? to know via ionic if the screen lock is enabled? since it is a requirement to use secure storage?


DateRangeSelection + Date(Time)Interval: ParseException Causes Crash

URL (minimal example if possible):
https://jsbin.com/hacalon/edit?js,output
Steps to reproduce the problem:

Open the above sample page.
Type something arbitrary into the field, e.g. 1234141
Click somewhere else to trigger value change.
Try to open the Calendar.

What is the expected result?
The MessageManager generates the UI message and displays it on the DateRangeSelection with the "Error" state (red border).
What happens instead?

ParseException is not handled properly.
No error message in the UI but in the browser console.
Can't open the Calendar picker.

Causing LOC:
https://github.com/SAP/openui5/blob/2e191909865dbb7300d605323276ecaad0b43eeb/src/sap.m/src/sap/m/DateRangeSelection.js#L512
Any other information? (attach screenshot if possible)
In the view definition, if <DateRangeSelection is replaced with <Input, the message is handled correctly.

Hello @boghyon ,
Thank you for sharing this finding. I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.
Regards,
Georgi


Log key management activities

Key management activities should be logged to help investigate issues related to key retrieval, validation and renewal.

Resolved by https://github.com/Azure/azure-webjobs-sdk-script/pull/1055


Teddybear texts evaluation: make it more obivious it should go to the garbage can

In the user tests, 2/5 users needed assistance in throwing the teddy bear into the garbage can. It is quite possible that the examination and interaction texts are misleading in this matter - the player character is obviously quickly attached to the teddy bear, so throwing it into the garbage can be counter-intuitive.
At the same time, the attachment to the teddy produces some of the funniest lines in the game, so it shouldn't be removed.
However, something should be done. Perhaps the teddy isn't afraid of getting messy, unlike the main character. The character could comment/hint that the teddy can help him with picking up the gum from the garbage can. (Remember though, that there is not tracking what the player has examined/done, so the texts have to work regardless of the player having the teddy in the inventory, having examined the garbage can, having dna-analyzed the gum in the garbage can etc)

Perhaps the player character could be both attached to the teddy, and afraid his peers will not consider him manly enough if he holds on to it.


WIP- Lab7- Errors

Fixes #535
Review of colleague's PR #534
Changes proposed in this PR:
- Add Errors in Puppy Store.
Add mutex in sync store

Don't forget to apply the correct labels on your PR. Also look at the PR markdown formatting - it's a little all over the place.
You could be more descriptive in the error handling that's been applied.

I didnt add the label because i put the PR with 'WIP' tag. I will put the labels now. after doing the suggested changes


Make elastic-transport-net OpenTelemetry compatible

This initiative is an outcome from out syncs across the client and the APM team.
Current status

The Elastic APM .NET Agent is able to trace the "old" elasticsearch-net client. This relies on 2 things: 1) the library emits DiagnosticSource events, and 2) the agent has a specific library which subscribes to those events and based on the events it creates traces.
That APM package does not work with the new V8 client. Reasons:

events got renamed
types got moved, so those now live in different assemblies and namespaces, so the library can't cast them. This is the main challenge.

Idea

During discussions we came up with the idea that instead of relying on an extra package in the APM .NET Agent, we could just turn elastic-transport-net into an OpenTelemetry compatible API and use the OpenTelemetry Bridge in the .NET Agent to capture the elasticsearch spans.
I made a POC and it seems doable. We agreed to proceed with this.

Goal

The goal is to turn  elastic-transport-net into an OpenTelemetry compatible library.
This means it should emit Activity instances that follow the OpenTelemetry database spec.

Steps

[ ] Fill attributes (Activity.Tags) instead of passing objects - https://github.com/elastic/elastic-transport-net/pull/55
[ ] Decide what to do with the existing DiagnosticSource and Activity code - currently the library emits more events than needed by OpenTelemetry. Currently my understanding is that we (the APM Agent, and OTel agents in general) are interested in the CallProductEndpoint calls, other things (like ping, sniff, serialization, etc.) aren't relevant and typically should not create spans.
[ ] Activity names should have proper cardinality. Currently our best idea is to use the API endpoints. The challenge here is that, the API endpoint isn't available in elastic-transport-net, so the higher layer should pass it somehow. @stevejgordon
[ ] Testing: we can write tests in this repository, but I feel we should also have tests with the proper client. Additionally we'll likely also have tests in the APM .NET Agent repo. - https://github.com/elastic/elastic-transport-net/pull/55 adds a basic test that can run in this repo.

cc @z1c0

Implemented in https://github.com/elastic/elasticsearch-net/pull/6990 and https://github.com/elastic/apm-agent-dotnet/pull/1935


Homepage buttons don't show in Live Preview

I'm not sure if they're meant to work with Live Preview or not; in Reading view it works fine, however Edit Mode + Live Preview would be ideal to me, as I use Templater to get my daily tasks on my homepage. All the CSS snippets are loaded and I'm using the Blue Topaz theme, as recommended.

This is what the editing view now looks like, yes. I guess in my personal use I do not generally use editing mode on homepage since there are just too much code that even with lp it took forever to load. So I just stick it to preview with advanced url links like "xxxx&view=preview"


Python: add more params in sklearn wrapper.

thanks, one thing, please keep the original parameter order and add parameters after awards, although it might be less alphabetically ordered, this help keeps things compatible, and originally support parameters are more significant.

@lihang00 it would be great if you can update the PR

Sure, I will update this PR and keep original parameter order later today.

no problem, you can use the order from the xgoost parameter page

add few more params, it should support all "Parameter for Tree Booster" and "Task Parameters".

Should the early_stopping_rounds parameter be included in the params dict also?

early_stopping_rounds parameter is implement in python wrapper. To add it as a parameter, will need some changes in fit fuction. I suggest we open a separate issue (or PR) for adding this parameter.

one thing about eval_metric, this is handled differently in python via a watchlist, consider remove it or try the python way

make sense, I will remove it for now.

ok, I will remove it for now.

I'm happy to do the PR for early_stopping_rounds in the parameter dict, instead of inside the fit method. Just wanted to see if that makes sense (or if not, what the reason is).

I think in the idea of sklearn, seems all the related parameters should go into the init instead of fit, so that makes sense. @lihang00  what was your opinion on this?


Add number of workers to scale up REST API

This patch introduces the ability to increase the number of workers for the REST API via its configuration file.
Description

Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library
[ ] Bump-up library or tool used for development (does not change the final image)
[ ] CI configuration change
[ ] Konflux configuration change

Related Tickets & Documents

Related Issue #
Closes #51

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

@tisnik probably this still needs some stuff to be finished. I was not sure where the documentation should go, so I found a config.puml in the docs folder. Let me know if there is more to be done here and where I should go to finish the task.


FEATURES: June Epoch Upgrade PR

Includes multiple upgrades that will be going out near the June spork
Introduce Delegator Staking Minimums
Closes #363
Based on FLIP78-Delegator Staking Minimums
Adds functionality for enforcing that delegators are above a minimum stake to be staked in an epoch.
If a delegator is below the minimum, they will be unstaked during the move tokens operation.
The minimum is stored in key-0 of the existing staking minimum dictionary.
Delegators cannot register unless they provide the minimum.
The current minimum is expected to be 50, but that value can and will probably change in the future.
This change will be breaking for anyone who is using the basic register delegator transaction and the Locked Tokens register delegator transaction because it adds a new parameter to specify the number of tokens to commit.
Use capabilities for epoch admins
Adds EpochOperations resource interfaces for the FlowIDTableStaking, FlowClusterQC, and FlowDKG Admin resources so that these resources can be moved to the service account on the production networks. These interfaces restrict the functionality that is accessible by the epoch smart contracts and epoch account to only that which is required for automated epoch functionality.
New paths are used for the capabilities so that the resources can remain in the same paths for testing purposes
Also moves resetEpoch() into the FlowEpoch.Admin resource instead of the FlowEpoch.Heartbeat resource.

I posted in the forum about the plans to upgrade: https://forum.onflow.org/t/breaking-change-coming-to-the-flow-epoch-smart-contracts-to-introduce-delegator-staking-minimums/4928
Expected dates to get the changes in effect is as follows:
CanaryNet: Monday, June 26th, 2023
Testnet: Wednesday, June 28th, 2023
And assuming that the upgrades on the canary and testnet go well,
Mainnet: Wednesday, July 5th, 2023
The upgrade plan with transactions is detailed in this service account PR: https://github.com/onflow/service-account/pull/243


Broken armhf build

Hello!
#419 introduced changes which I believe broke armhf build: build (log).
#432 should prevent this from happening in the future, this is separate issue to fix current problem in the build.

Builds in PPA still fail from time to time, could someone who have access over repo contact me for credentials to enable badge "build success\failure" at least over master branch? Creating tests builds over PRs is separate matter and I can't help with that, but I know for sure when master is broken and I want everyone to know that.

Hi @paskal . You can contact me on moataz dot elmasry2 at gmail.com

Hi @paskal  I added the encrypted credentials to travis-ci and pushed.
But this will just push to your repository, how do you want to get a badge on github? Or you mean a badge from  launchpad?

This should notify you of errors from this moment, I guess. However something is wrong with creds:
Deploy failed! Launchpad credentials invalid. 401
https://travis-ci.org/SoftEtherVPN/SoftEtherVPN/jobs/350054996

Updated the credentials. Still getting:
Deploy failed! Launchpad credentials invalid. 401

I had to remove the deploy snippet  so that it does not show SE as failing. I prefer to work on this issue in a separate branch

can you please try https://github.com/SoftEtherVPN/SoftEtherVPN/pull/462 ?
(I haven't figured out how to set up launchpad yet, however, it resolved deb magic on ubuntu, so I added "dh build-arch" step)

Launchpad deploy is not what I've had in mind, and there is no badge for build (because there are many builds for different architectures and OS versions). Closing this one, checking arm build is discussed in #432 and fix for current situation is #462.


Failed to import resource

Hello,
I am having issues importing a test map made in tiled. I was able to successfully import the example tiled files. But mine wont work. The error doesn't give much context.
I'm running:
Unreal 5.4.4
TiledIntegration 1.0
Tiled 1.11
Windows 10
All my files are in one folder, prior to that, I had them scattered in a different folder structure. Doesn't seem to have helped. I have like 9 layers on my tiled project with only one layer containing some grey boxing with collisions set. I would love to get this working.

For number 6 I was able to reimport the new copy by manually going back and deleting all the old associated tilemap files and textures.

Reimporting the file for #6 results in stack overflow again. Not sure whats triggering it.