text:
Crashing

--- Minecraft Crash Report ----
WARNING: coremods are present:
PlayerAPIPlugin (PlayerAPI-1.8-1.4.jar)
Contact their authors BEFORE contacting forge
// Oops.
Time: 1/26/16 8:15 PM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: mnm/mods/tabbychat/gui/settings/GuiSettingsScreen
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:538)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:214)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:412)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:325)
at net.minecraft.client.main.Main.main(SourceFile:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoClassDefFoundError: mnm/mods/tabbychat/gui/settings/GuiSettingsScreen
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:344)
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:507)
... 10 more
Caused by: java.lang.ClassNotFoundException: mnm.mods.tabbychat.gui.settings.GuiSettingsScreen
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 35 more
Caused by: java.lang.NoClassDefFoundError: mnm/mods/util/gui/ComponentScreen
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
... 37 more
Caused by: java.lang.ClassNotFoundException: mnm.mods.util.gui.ComponentScreen
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 41 more
A detailed walkthrough of the error, its code path and all known details is as follows:
-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 134838176 bytes (128 MB) / 262172672 bytes (250 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.4.1577 Optifine OptiFine_1.8_HD_U_G9 10 mods loaded, 10 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UC	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UC	FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.4.1577.jar)
UC	Forge{11.14.4.1577} [Minecraft Forge] (forge-1.8-11.14.4.1577.jar)
UC	PlayerAPI{1.4} [Player API] (minecraft.jar)
UC	bspkrsCore{7.01} [bspkrsCore] ([1.8]bspkrsCore-universal-7.01.jar)
UC	ArmorStatusHUD{1.8} [ArmorStatusHUD] ([1.8]ArmorStatusHUD-client-1.29.jar)
UC	DirectionHUD{1.8} [DirectionHUD] ([1.8]DirectionHUD-client-1.24.jar)
UC	StatusEffectHUD{1.8} [StatusEffectHUD] ([1.8]StatusEffectHUD-client-1.27.jar)
UE	TabbyChat2{2.0.0-beta} [TabbyChat 2] (TabbyChat-Mod-1.8.jar)
UC	ToggleSneak{3.1.0} [ToggleSneak] (ToggleSneak-(1.8)-v3.1.0.jar)
Loaded coremods (and transformers):
PlayerAPIPlugin (PlayerAPI-1.8-1.4.jar)
api.player.forge.PlayerAPITransformer
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 355.82' Renderer: 'GeForce GTX 970/PCIe/SSE2'
I do not know why, but tabby chat is getting an error.

Please update. Don't forget to also install mnm-utils.
On Tue, Jan 26, 2016 at 8:16 PM ChillyMCM notifications@github.com wrote:

--- Minecraft Crash Report ----
WARNING: coremods are present:
PlayerAPIPlugin (PlayerAPI-18-14jar)
Contact their authors BEFORE contacting forge
// Oops
Time: 1/26/16 8:15 PM
Description: There was a severe problem during mod loading that has caused
the game to fail
netminecraftforgefmlcommonLoaderException: javalangNoClassDefFoundError:
mnm/mods/tabbychat/gui/settings/GuiSettingsScreen
at
netminecraftforgefmlcommonLoadControllertransition(LoadControllerjava:163)
at netminecraftforgefmlcommonLoaderloadMods(Loaderjava:538)
at
netminecraftforgefmlclientFMLClientHandlerbeginMinecraftLoading(FMLClientHandlerjava:214)
at netminecraftclientMinecraftfunc_71384_a(Minecraftjava:412)
at netminecraftclientMinecraftfunc_99999_d(Minecraftjava:325)
at netminecraftclientmainMainmain(SourceFile:120)
at sunreflectNativeMethodAccessorImplinvoke0(Native Method)
at
sunreflectNativeMethodAccessorImplinvoke(NativeMethodAccessorImpljava:62)
at
sunreflectDelegatingMethodAccessorImplinvoke(DelegatingMethodAccessorImpljava:43)
at javalangreflectMethodinvoke(Methodjava:483)
at netminecraftlaunchwrapperLaunchlaunch(Launchjava:135)
at netminecraftlaunchwrapperLaunchmain(Launchjava:28)
Caused by: javalangNoClassDefFoundError:
mnm/mods/tabbychat/gui/settings/GuiSettingsScreen
at javalangClassforName0(Native Method)
at javalangClassforName(Classjava:344)
at
netminecraftforgefmlcommonFMLModContainerconstructMod(FMLModContainerjava:461)
at sunreflectNativeMethodAccessorImplinvoke0(Native Method)
at
sunreflectNativeMethodAccessorImplinvoke(NativeMethodAccessorImpljava:62)
at
sunreflectDelegatingMethodAccessorImplinvoke(DelegatingMethodAccessorImpljava:43)
at javalangreflectMethodinvoke(Methodjava:483)
at
comgooglecommoneventbusEventSubscriberhandleEvent(EventSubscriberjava:74)
at
comgooglecommoneventbusSynchronizedEventSubscriberhandleEvent(SynchronizedEventSubscriberjava:47)
at comgooglecommoneventbusEventBusdispatch(EventBusjava:322)
at comgooglecommoneventbusEventBusdispatchQueuedEvents(EventBusjava:304)
at comgooglecommoneventbusEventBuspost(EventBusjava:275)
at
netminecraftforgefmlcommonLoadControllersendEventToModContainer(LoadControllerjava:212)
at
netminecraftforgefmlcommonLoadControllerpropogateStateMessage(LoadControllerjava:190)
at sunreflectNativeMethodAccessorImplinvoke0(Native Method)
at
sunreflectNativeMethodAccessorImplinvoke(NativeMethodAccessorImpljava:62)
at
sunreflectDelegatingMethodAccessorImplinvoke(DelegatingMethodAccessorImpljava:43)
at javalangreflectMethodinvoke(Methodjava:483)
at
comgooglecommoneventbusEventSubscriberhandleEvent(EventSubscriberjava:74)
at
comgooglecommoneventbusSynchronizedEventSubscriberhandleEvent(SynchronizedEventSubscriberjava:47)
at comgooglecommoneventbusEventBusdispatch(EventBusjava:322)
at comgooglecommoneventbusEventBusdispatchQueuedEvents(EventBusjava:304)
at comgooglecommoneventbusEventBuspost(EventBusjava:275)
at
netminecraftforgefmlcommonLoadControllerdistributeStateMessage(LoadControllerjava:119)
at netminecraftforgefmlcommonLoaderloadMods(Loaderjava:507)
10 more
Caused by: javalangClassNotFoundException:
mnmmodstabbychatguisettingsGuiSettingsScreen
at
netminecraftlaunchwrapperLaunchClassLoaderfindClass(LaunchClassLoaderjava:191)
at javalangClassLoaderloadClass(ClassLoaderjava:424)
at javalangClassLoaderloadClass(ClassLoaderjava:357)
35 more
Caused by: javalangNoClassDefFoundError: mnm/mods/util/gui/ComponentScreen
at javalangClassLoaderdefineClass1(Native Method)
at javalangClassLoaderdefineClass(ClassLoaderjava:760)
at javasecuritySecureClassLoaderdefineClass(SecureClassLoaderjava:142)
at
netminecraftlaunchwrapperLaunchClassLoaderfindClass(LaunchClassLoaderjava:182)
37 more
Caused by: javalangClassNotFoundException: mnmmodsutilguiComponentScreen
at
netminecraftlaunchwrapperLaunchClassLoaderfindClass(LaunchClassLoaderjava:101)
at javalangClassLoaderloadClass(ClassLoaderjava:424)
at javalangClassLoaderloadClass(ClassLoaderjava:357)
41 more
A detailed walkthrough of the error, its code path and all known details
is as follows:
-- System Details --
Details:
Minecraft Version: 18
Operating System: Windows 81 (amd64) version 63
Java Version: 180_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle
Corporation
Memory: 134838176 bytes (128 MB) / 262172672 bytes (250 MB) up to
1060372480 bytes (1011 MB)
JVM Flags: 6 total;
-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javawexe_minecraftexeheapdump
-Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
-XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v910 FML v809999 Minecraft Forge 111441577 Optifine
OptiFine_18_HD_U_G9 10 mods loaded, 10 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' =
Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available
'D' = Disabled 'E' = Errored
UC mcp{905} Minecraft Coder Pack http://minecraftjar
UC FML{809999} Forge Mod Loader http://forge-18-111441577jar
UC Forge{111441577} Minecraft Forge http://forge-18-111441577jar
UC PlayerAPI{14} Player API http://minecraftjar
UC bspkrsCore{701} bspkrsCore
UC ArmorStatusHUD{18} ArmorStatusHUD
UC DirectionHUD{18} DirectionHUD
UC StatusEffectHUD{18} StatusEffectHUD
UE TabbyChat2{200-beta} TabbyChat 2 http://TabbyChat-Mod-18jar
UC ToggleSneak{310} ToggleSneak http://ToggleSneak-(18)-v310jar
Loaded coremods (and transformers):
PlayerAPIPlugin (PlayerAPI-18-14jar)
apiplayerforgePlayerAPITransformer
GL info: ' Vendor: 'NVIDIA Corporation' Version: '450 NVIDIA 35582'
Renderer: 'GeForce GTX 970/PCIe/SSE2'
I do not know why, but tabby chat is getting an error
—
Reply to this email directly or view it on GitHub
https://github.com/killjoy1221/TabbyChat-2/issues/44.

Worked. Thanks.

source: gharchive/issue

license_type: permissive

license_source: bigquery


text:
추천 채널 API

#38 이슈에 대한 풀 리퀘스트입니다.
아래 형식으로 데이터가 리턴됩니다. (contentLineage, contentTag는 자동으로 파싱되어 리턴됩니다.)
{
    recommendationChannels: [
        {
            channelId: string,
            channel: {
                channelId: string,
                channelName: string,
                channelImageUrl: string,
                verifiedMark: boolean
            },
            streamer: {
                openLive: boolean
            },
            liveInfo: {
                liveTitle: string,
                concurrentUserCount: number,
                liveCategoryValue: string
            },
            contentLineage: {
                contentSource: string,
                contentType: string,
                contentTag: {
                    internal: string,
                    external: {
                        apiRequestKey: string
                    }
                }
            }
        },
        ...
    ]
}

closes #38

기여 감사합니다!

source: gharchive/pull-request

repo: kimcore/chzzk

license: MIT

license_source: github-api


text:
Better performance than in paper

Running test_trans and test_ind.py on the CITESEER dataset both yield (a few % points) better performance than reported in the paper.  Any idea why that would be?  Is the implementation here slightly different, or is it just a function of train/test split?
EDIT: Same goes for CORA, but I haven't been able to reproduce PUBMED -- got to ~ 0.64 and then I killed it, so perhaps I didn't let it run long enough.  At that point accuracy was increasing very slowly, though.

The difference in performance seems to be due to random seeding. Try different seeds here
https://github.com/kimiyoung/planetoid/blob/master/base_model.py#L32
https://github.com/kimiyoung/planetoid/blob/master/base_model.py#L34
The default hyper-parameters are given for Citeseer, and should be tuned for other datasets.

Makes sense, thanks!

authors: bkj kimiyoung

repo: kimiyoung/planetoid


text:
엔진 별 요구사항 docs에 명시

Process의 경우

FFMPEG
Node.js (버전 테스트 필요)

WASM의 경우

Node.js (<=16.17.0)

Requirement for each engine is stated at README.md

authors: kimjisub kootaeho

repo: kimjisub/video-skipper


text:
请问embedding之后的向量数据，是怎么输入到大模型的

Kinfey，你好，有几个问题想请教一下你的：
1、请问embedding之后的向量数据，是怎么输入到大模型的？
2、openai chatGPT是如何实现上下文内容关联的？也是讲上文的文本使用embedding向量化之后输入如到GPT4？
3、chatGPT对话中，如果一次生成的内容超出限制的token数量，我们接着输入“继续“，它会在接着回答，这个功能在调用api接口的方式时改如何实现呢？

請留意我的章節，裏面有詳細的內容介紹

authors: kinfey maiquanshen

repo: kinfey/dotNETOAIBooks


text:
consistently small domains

Hi,
Thank you very much for all your help.
I am writing to ask for some advice on running Armatus.
I have run it on my dataset consisting of 40kb window interaction counts, following normalization by ICE. I then compared the domains I got with the domains in the Dixon et al. paper, as well as the HiC input data used to call these domains (image attached).
I consistently find sets of very small domains, even in places where the HiC data support a larger domain (e.g. at the region 6 000 000 - 8 000 000). I wanted to check whether you could advise me about why I am getting such a behavior, and how I could proceed.
Thank you,
Oana

here is a picture of a larger genomic region at the same site

Hi Oana,
Thank you for brining up this interesting point to our attention. There are potentially several ways to go about this:

try finer resolutions for gamma
explore alt. opt and near opt solutions (-k parameter)
run the algorithm before normalizing the matrix with ICE
it may be that the domain quality is below the mean for domains of that size (it does seem very pale pink which suggests low frequencies), and is never selected as part of the solution.

Additionally, Dixon et al. directionality index used to find domains has an explicit parameter of 2Mb (discussed in their Supp. material, p. 6-7) which could contribute to the results you see w/ their method.
Hope this helps and please let us know if there is anything else!

authors: lynxoid oursu

repo: kingsfordgroup/armatus


text:
Feature: template changes

Changes to templates, like fixing the map, and a few copy changes too.

Copy changes done. Merging.

repo: kingsreach/kingsreach-online

license: mit


text:
SOCKS5 Proxy Support

Is it possible to route all websocket traffic through a SOCKS5 proxy using PySocks?

Probably not easily. PySocks doesn't seem to support anyio.
Maybe we can enable proxies with python-socks though.
Why do you want to route the traffic through a proxy?

I was thinking as a measure of safety

authors: TheGreatRambler kinnay

repo: kinnay/NintendoClients


text:
Calender

Ticket No

Ref 004

Summary of changes

Calender instance error changed. Variable cal initialised with hook useRef

How should this be tested? [Screenshots, Video or Type instructions]

How should this be tested here

Notes for reviewers

Notes for reviewers here

Out of scope

Out of scope here

Changes already tracked

authors: humphreyokoth kisakyekenneth

repo: kisakyekenneth/refactoryDemo


text:
Support to signing XMLs using smartcards

Is there support for signing XML using smartcards? If not, is there any plans to do so in the future?
Thanks.

I have no clue what this means because I've never worked with smartcards before. If you give me some details on the relevant protocols, I may be able to comment more.

@kislyuk Thanks for the reply.
It would probably involve using a PKCS #11 Python library like PyKCS11. With this we can use a cryptographic token like a smart card to pass the private key representation object to the sign method. I think this may be possible by creating a new Cryptography backend interface that maps the PKCS #11 library and smartcard to the Cryptography backend that signxml defines.
I asked if anyone had already done something like it to signxml to see if it is feasible to change such core components. Any comments on this? Specifically on the part that requires changing the Cryptography backend to a new one. Thanks again!

My company was able to solve this creating a OpenSSL engine that intercepts the signatures requests and then sends them directly to the smart card.
I'll close the issue.

authors: kislyuk ldnunes

repo: kislyuk/signxml


text:
{false && Render} pattern is broken.

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Versions
Issue noticed on 4.1.0, on 3.0.10 it worked fine.
Description
This could be an intentional change, but as the title says, {false &&
Render
} renders the text false in the DOM. My expectation would be that nothing is rendered.
Steps to Reproduce
{false &&
Render
}
Expected Behavior
Nothing is rendered to the DOM

#190

authors: arthurfiorette maltium

repo: kitajs/html


text:
TextInput suggestion_text bugs

When the input focus is lost, the suggestion text stays there.
Pressing tab moves the cursor above the suggestion text.
I've ran kivy/uix/textinput.py while testing, the example makes use of the api.

fixed. added an suggestion_row to remember the row to cancel suggestion texts.

authors: dessant xg-wang

repo: kivy/kivy


text:
Nothing rendered in window after MacPorts migration on Mojave

Versions

Python: 3.5.6
OS: MacOS 10.14 (Mojave)
Kivy: 1.10.1
Kivy installation method: MacPorts (and pip)

Description
I've been using Kivy for a while and it has been working for me. I updated my iMac to Mojave a week or two ago. I believe my kivy apps were still working after the update. Yesterday I migrated MacPorts to Mojave (MacPorts version 2.5.4) and now kivy isn't working for me any more. The application launches and a window appears with the correct title in the title bar, but nothing is rendered in the window itself. This isn't just my applications either. It happens using the Hello, World example shown here https://kivy.org/doc/stable/guide/basic.html.
I've uninstalled and reinstalled the ports a few times and it didn't help. I've also tried installing kivy using pip instead of MacPorts and it doesn't work there either. This is with kivy 1.10.1.
Code and Logs
import kivy
kivy.require('1.0.6') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):

    def build(self):
        return Label(text='Hello world')

if __name__ == '__main__':
    MyApp().run()

This is from the log file when I run the Hello, World script.
[INFO   ] Logger: Record log in /Users/durian/.kivy/logs/kivy_18-10-10_0.txt
[INFO   ] Kivy: v1.10.1
[INFO   ] Python: v3.5.6 (default, Oct  3 2018, 19:57:36)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.2)]
[INFO   ] Factory: 194 symbols loaded
[INFO   ] Image: Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil, im
g_gif (img_ffpyplayer ignored)
[INFO   ] Text: Provider: sdl2
[INFO   ] Window: Provider: sdl2
[INFO   ] GL: Using the "OpenGL ES 2" graphics system
[INFO   ] GL: Backend used
[INFO   ] GL: OpenGL version <b'2.1 NVIDIA-12.0.19 355.11.10.50.10.103'>
[INFO   ] GL: OpenGL vendor <b'NVIDIA Corporation'>
[INFO   ] GL: OpenGL renderer <b'NVIDIA GeForce GTX 775M OpenGL Engine'>
[INFO   ] GL: OpenGL parsed version: 2, 1
[INFO   ] GL: Shading version <b'1.20'>
[INFO   ] GL: Texture max size <16384>
[INFO   ] GL: Texture max units <16>
[INFO   ] Window: auto add sdl2 input provider
[INFO   ] Window: virtual keyboard not allowed, single mode, not docked
[INFO   ] Base: Start application main loop
[INFO   ] GL: NPOT texture support is available

I've installed mojave freshly and it doesn't work either.

I did observe the same issue using Kivy 1.10.1 installed via homebrew on Mac OS 10.14 (Mojave). What I also found is that resizing the root widget causes the previously invisible widgets to become visible.

Same issue for me. Kivy installed via MacPorts. As with huth314, resizing or swiping does cause my invisible widgets to appear.

Same thing here.
MacOS Mojave 10.14
Python 3.7.0, installed using homebrew
Kivy 1.10.1, installed using pip
At startup - black screen, after resize - widgets become visible.

I can confirm that installing a newer sdl library fixed this problem. In my case, using MacPorts, I did a 'port selfupdate' followed by 'port upgrade outdated'. After that my kivy applications started appearing again.

I can confirm that mdurian's fix worked for me as well using MacPorts.

@mdurian 's approach (reinstall sdl2 with --HEAD option) did not work for me. I still have to resize to get to see the widgets.
MacOS Mojave 10.14.1
Python 3.7.0 installed via homebrew
Kivy 1.10.1 installed via pip3

To clarify my previous post...hope this helps.
MacOS Mojave 10.14.1
Python 2.7.15 installed via MacPorts
Kivy 1.10.1 installed via MacPorts

@huth314 I have a a similar setup and managed to fix this!
macOS 10.14.1
Python 2.7.15 installed via pyenv (installed via Homebrew)
Kivy 1.10.1 installed via pip (within a pyenv-virtualenv)
I believe this issue is resolved in SDL 2.0.9 but there is an upstream issue with the sdl2 formula for older versions of macOS. We have to wait until this gets fixed before SDL 2.0.9 is available via brew.
For now, you can use the HEAD version of SDL2 via brew. This is what worked for me...
$ brew uninstall sdl2 sdl2_image sdl2_ttf sdl2_mixer
$ brew install --HEAD sdl2
$ brew install sdl2_image sdl2_ttf sdl2_mixer
$ pip install --no-binary Kivy Kivy

Using the binary package from pip did not work so I had to add the --no-binary Kivy argument to force pip to build Kivy from source.
Hope this helps!

Yep, just reinstall sdl and it's OK!

authors: alphazo-id dangerisom envil huth314 mdurian mgbowman tito


text:
Long press to display the options of extension plug-ins.

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

It's like the effect of right-clicking on a computer.
Describe the solution you'd like

Describe alternatives you've considered

Just like this, in kiwi, you can pop up an iframe-like window to manipulate the options of adblock. Not only adblock has a right-click menu, but tampermonkey also has it. I hope that everything with a right-click menu can be displayed with the same effect as a pc. as the picture shows.
Additional context

Okay, so when you long-press an element in a page, you'd like to see options from e.g. Ublock Origin in the context menu, to pick an element to hide/block.
You could expand your feature request to explain this clearly and save the developers some time/effort?
Just like this, in kiwi, you can pop up an iframe-like window to manipulate the options of adblock. Not only adblock has a right-click menu, but tampermonkey also has it. I hope that everything with a right-click menu can be displayed with the same effect as a pc. as the picture shows.

Maybe put this in your original request at the top and save the developers some time/effort? Then all these other messages can be deleted.

I think this is a very good feature to request. It saddens me to see how the first post is very hard to understand. Are developers really going to read all the messages here when they see a first post that shows no explanation and no effort? @drc5521  I humbly suggest that you edit your first post.

I think this is a very good feature to request. It saddens me to see how the first post is very hard to understand. Are developers really going to read all the messages here when they see a first post that shows no explanation and no effort? @drc5521 I humbly suggest that you edit your first post.

Hi friend,Sorry to reply you so late. I have made changes. thank you very much for your suggestion.

I think this is a very good feature to request. It saddens me to see how the first post is very hard to understand. Are developers really going to read all the messages here when they see a first post that shows no explanation and no effort? @drc5521 I humbly suggest that you edit your first post.

Hi friend,Sorry to reply you so late. I have made changes. thank you very much for your suggestion.

Excellent! I'll delete my messages now.

I saw your message about the long-press for menus, I guess we should just add this feature in the standard contextual menu ? But then when there is a sub-menu, what should we do ? Open a secondary dialog ?

I saw your message about the long-press for menus, I guess we should just add this feature in the standard contextual menu ? But then when there is a sub-menu, what should we do ? Open a secondary dialog ?

Adding to the context menu (the one you get when you currently long-press on an element in the page?) sounds perfect!
When you click on a menu entry that should give a sub-menu, maybe just hide the existing 'main' context menu and display the sub-menu instead? You won't need the 'main' context menu as you are picking an option in the sub-menu.

@kiwibrowser, is it possible to add the requested feature for at least the uBlock Origin? Here's how it works in Yandex Browser for Android:

authors: Cerberus-tm Ro-Den drc5521 kiwibrowser


text:
Devtools inspect broken

Describe the bug
Accessing devtools from a connected computer through chrome://inspect/#devices does not work. When clicking inspect it shows a window with "HTTP/1.1 404 Not Found". Inspect fallback doesn't show up as an option either.
Smartphone (please complete the following information):

Device: Pixel 7
Android Version : 13
Kiwi Browser Version: tried latest kiwi browser from playstore and latest from github (107.0.5304.75)

Additional context
The devtools work as expected from Android Chrome, Brave and Edge browsers, so it must be something on Kiwi's side. Accidentally, the webpage I'm developing renders incorrectly only in Kiwi, that's why I'm trying to debug it (in fullscreen mode Kiwi seems to disregard the notch on the phone).

Hello,
Thank you for the report, working on a fix right now to resolve the issue with Inspect element
Arnaud.

authors: gsimko kiwibrowser


text:
Unit test Checkbox

Test that:

It renders without crashing
It calls the callback when clicked the input
It calls the callback when clicked the label

Make sure these boxes are ticked before submitting a new issue:

[x] I have checked that this is not a duplicate
[x] I have added a label categorizing this under BLKN | Kiwicom | Icons | Global

Fixed in #150

authors: VaclavSir wEprous

repo: kiwicom/orbit-components


text:
CLI crashes for urls under Windows and Python < 3.8

When testing this nice module I ran into the following issue:
The error is fairly easy to produce (under Python 3.7):
(template-webservice) C:\Users\christiank\PycharmProjects\Template_Webservice>schemathesis run http://localhost:8080/openapi.json
Traceback (most recent call last):
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\christiank\AppData\Local\Continuum\miniconda3\envs\template-webservice\Scripts\schemathesis.exe\__main__.py", line 9, in <module>
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\site-packages\schemathesis\cli\__init__.py", line 196, in run
    if pathlib.Path(schema).is_file():
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\pathlib.py", line 1372, in is_file
    return S_ISREG(self.stat().st_mode)
  File "c:\users\christiank\appdata\local\continuum\miniconda3\envs\template-webservice\lib\pathlib.py", line 1168, in stat
    return self._accessor.stat(self)
OSError: [WinError 123] Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch: 'http:\\localhost:8080\\openapi.json'

The reason is this line in the code:
https://github.com/kiwicom/schemathesis/blob/f2e160d56c1fdce9eac7fee5875b209c8944f54a/src/schemathesis/cli/__init__.py#L196
From to the Python docs for pathlib:

Changed in version 3.8: exists(), is_dir(), is_file(), is_mount(), is_symlink(), is_block_device(), is_char_device(), is_fifo(), is_socket() now return False instead of raising an exception for paths that contain characters unrepresentable at the OS level.

So it seems necessary to either move away from is_file() or to add a try-catch-block

Hello @chr1st1ank !
Thank you for your report and a PR that fixed the problem :) I will take a look during the weekend.

Actually we handle this problem in field validators, with try/except, so I reused existing approach and updated your PR :) Thank you very much again for bringing this issue :) We definitely need to add tests on different platforms.
The fix is released in 0,24.1 https://pypi.org/project/schemathesis/0.24.1/
Let us know if there will be any problems with the new release

repo: kiwicom/schemathesis


text:
🛑 MON 20 is down

In 90a3e61, MON 20 ($MON_URL/10_0_9_20.html) was down:

HTTP code: 404
Response time: 358 ms

Resolved: MON 20 is back up in 6322157 after 12 minutes.

repo: kizzna/bovorn-mon


text:
More sane behavior if terminal size is zero

In linux pseudo-terminals are created with dimensions of zero. If host application didn't initialize the correct size before start we treat zero size as 80 columns and
inifinite rows.
See https://github.com/containers/libpod/issues/351 and https://github.com/philippkeller/rexpect/pull/17 for examples of such issues.

The alternative is to set columns to usize::max_value() (effectively unlimited). But since we already use 80x25 in case the output is not a terminal 80 columns make sense.

Maybe we should do like linenoise ?
https://github.com/antirez/linenoise/blob/master/linenoise.c#L308

Maybe we should do like linenoise ?
https://github.com/antirez/linenoise/blob/master/linenoise.c#L308

I'll take a look if it works.

Maybe we should do like linenoise ?
https://github.com/antirez/linenoise/blob/master/linenoise.c#L308

It works in the cases where terminal is forwarded (i.e. likely would work in the podman issue above). But rexpect doesn't answer on "get cursor" messages at all.
Also it looks like quite unreliable: move_cursor_at_leftmost uses 100ms to timeout on response. It may be not enough over SSH or if users machine is overloaded.

https://github.com/AmokHuginnsson/replxx/blob/master/src/io.cxx#L143-L145
	// cols is 0 in certain circumstances like inside debugger, which creates
	// further issues
	return ( cols > 0 ) ? cols : 80;

https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/prompt_toolkit/output/vt100.py#L458-L471
            # If terminal (incorrectly) reports its size as 0, pick a
            # reasonable default.  See
            # https://github.com/ipython/ipython/issues/10071
            rows, columns = (None, None)

            # It is possible that `stdout` is no longer a TTY device at this
            # point. In that case we get an `OSError` in the ioctl call in
            # `get_size`. See:
            # https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1021
            try:
                rows, columns = _get_size(stdout.fileno())
            except OSError:
                pass
            return Size(rows=rows or 24, columns=columns or 80)

https://github.com/troglobit/editline/blob/master/src/editline.c#L1328-L1336
#ifdef TIOCGWINSZ
        if (ioctl(el_outfd, TIOCGWINSZ, &W) >= 0 && W.ws_col > 0 && W.ws_row > 0) {
            tty_cols = (int)W.ws_col;
            tty_rows = (int)W.ws_row;
            return;
        }
#endif
        tty_cols = SCREEN_COLS;
        tty_rows = SCREEN_ROWS;

So they all agree with you except on the default rows.

Well, I'm okay to make it 24 if my argumentation doesn't seem good enough for you. On the other hand, I'm not convinced we should copy what anybody else have done, because if they have some full-screen widgets it doesn't make sense with infinite height for them (or they might have copied that code from such place). But I'm not going to argue for death on this issue, as this use case is quite rare.

This unfortunately breaks my rexpect tests :( https://github.com/gluon-lang/gluon/blob/master/repl/tests/rexpect.rs

This unfortunately breaks my rexpect tests (some of them hang forever) :( https://github.com/gluon-lang/gluon/blob/master/repl/tests/rexpect.rs (bisected to this commit)

That's interesting. Do you have something that tests vertical scrolling? Or something wider than 80 chars?

There is probably some tests print wider than 80 chars (error messages). But not all tests that hang test that, for instances "comments" hangs but that only prints some ~40 chars wide lines.
    let mut repl = REPL::new();

    repl.test("1 + 2 // Calls the + function on 1 and 2", Some("3"));
    repl.test("1 + 2 /* Calls the + function on 1 and 2 */", Some("3"));

authors: Marwes gwenn tailhook

repo: kkawakam/rustyline


text:
Request or help if exists already - #js reader syntax in cljs interop

I write a lot of cljs, and thus a lot of js interop. This frequently involves use of #js {:my-key ""} and #js [""]
I'm not sure what it is about my config, which is otherwise really great, but whenever a hang or flow are warranted (line too long, or explicitly configured, etc), the #js ends up on its own line.
Is that expected behavior? Is there, or could there be, a config option to keep #js always adjacent (left of) the subsequent form, whilst maintaining the rest of the hang/flow?

I think I'm going to need your config and an actual example to make progress on this.  When I try it with the default config, it does exactly what you want:
(czprint i292 {:parse-string? true :width 50})
(defn i292
  [x y]
  (let [this-is (a-test this
                        is
                        only
                        a
                        test
                        #js {:my-key ""})]
    (vector? this-is)))

I checked, and it has worked like this for a good long time in the past.
Something in your configuration must be triggering the problem, so if you give me an example and your config, I'll figure out what it is and see what I can to do to prevent it.  Thanks!

Thanks for the configurations.  That didn't provoke the problem, interestingly enough.  It seems like, using the default configuration, that you get the #js on a line by itself when the map after it doesn't fit on the same line.  Like this:
(defn i292
  [x y]
  (let [this-is (a-test this
                        #js
                         {:your-key "",
                          :a-very-long-key :and-a-very-long-value,
                          :a-second-key :and-a-second-value}
                        a
                        test
                        #js {:my-key ""}
                        not
                        the
                        end)]
    (vector? this-is)))

Notice the two #js elements above.
Questions:

I think the first #js is what you don't like and the second is what you do like.  Is this correct?
Is this the behavior that you see?   That is, are the places where #js appears on its own line places where the thing following it would not fit on the same line as the #js?
Do you ever see things like the second #js, where the next thing stays on the same line as the #js?

Thanks!

Yes, tho needs some upcoming context
Yep
Yep! I neglected to even notice that as all of my usages of that recently have been for somewhat larger/nested pojos/maps

Your first example comes close, tho it's a more "justifiable" (?) case for a separate line #js , imo.
But here's a real case:

suppose there's a max width set somewhere near the end of the second line

Before:
				   #js {:a "b"}
                   #js {:detail (or signature (str "[" (name (or category "")) "]"))
                        :documentation (when description
                                         #js {:value description})
                        :insertText (if function? (str/upper-case insert-text) insert-text)
                        :insertTextRules (when snippet
                                           insert-as-snippet-rule)
                        :kind kind
                        :label s
                        :filterText (str/upper-case s)
                        :sortText (str/lower-case (str sort-text-prefix " " s))}))

After zprint:
					 #js {:a "b"}
                     #js
                      {:detail (or signature (str "[" (name (or category "")) "]"))
                       :documentation (when description
                                        #js {:value description})
                       :insertText (if function? (str/upper-case insert-text) insert-text)
                       :insertTextRules (when snippet
                                          insert-as-snippet-rule)
                       :kind kind
                       :label s
                       :filterText (str/upper-case s)
                       :sortText (str/lower-case (str sort-text-prefix " " s))}))

I'm not sure how I'd configure zprint to do what my preferred output would look like:
Preferred:
#js {:a 'b}
                   #js {:detail (or signature
								    (str "[" (name (or category "")) "]"))
                        :documentation (when description
                                         #js {:value description})
                        :insertText (if function?
									    (str/upper-case insert-text)
                                        insert-text)
                        :insertTextRules (when snippet
                                           insert-as-snippet-rule)
                        :kind kind
                        :label s
                        :filterText (str/upper-case s)
                        :sortText (str/lower-case (str sort-text-prefix
           										       " " s))}

The specifics of where exactly all of the newlines should be or when to hang/flow/etc are less relevant (for this demo at least) than the main point being to start "breaking" the lines in the map before considering placing the #js on its own line. Ie, I'd rather have a map with multiline rhs values before I'd have a map whose #js is a line above it.
Does that make sense?

Yes, it makes a lot of sense.
It is worth knowing that you can't configure zprint to do it the way you want.  At least I haven't found any way to do that.  I am experimenting with a code change that will do it the way you want, which I think is probably what most people would want too.  I'm currently looking at how to get it to go back to the not-great way it does it now in case someone really wants that.

Wow thanks so much for exploring this wow!!!!!!

In 1.2.6 the #js will try to put the next thing on the same line, as you want it, by default.  There will be a new configuration element in the option map: :tagged-literal which will be configurable in such a way that if someone wants it the way it is today, they can configure it that way by setting{:tagged-literal {:hang? false}}.  I'll let you know when 1.2.6 is available.

I just released 1.2.6.  The changes I made to format tagged literals are the default, so you should see what you want without anything other than upgrading.  Thanks for pointing this out!

authors: kkinnear riotrah

repo: kkinnear/zprint


text:
How do you record the screen?

I've been looking for python bindings for a screen recorder, and I can't seem to get anywhere near 60fps.
PIL.ImageGrab is about 8-9 FPS
mss.grab is about 15-16 FPS
This is on an i7 2600K as well... so -- really surprised how slow those two are.

Doing raw video processing directly in Python is going to be slow no matter what. Libraries like PIL are designed to work with all of the image data in memory directly accessible from Python, but it's slow, and there's a limit to how fast you can process image data in this manner.
With ffmpeg-python, instead the processing is done indirectly by shelling out to a separate ffmpeg process. All of the work is done in ffmpeg so it's a lot faster, but the downside is that you don't work with individual frames.
So it depends what you're trying to do. Does the captured video data just need to go to a file, or streamed over a socket, or do you also need to do additional processing on the video?

Streaming to a file is easy - just specify the correct output.
Streaming across a socket requires simply having ffmpeg write to stdout (probably .output('file:stdout') or something like that)
If you have to do additional processing on the video data, it's best to do it with ffmpeg rather than trying to do frame-by-frame processing in python, which is a computation bottleneck.

authors: NullVoxPopuli kkroening

repo: kkroening/ffmpeg-python


text:
Input as bytes not working

I am trying to use bytes as input and output with the following command:
process = (
    ffmpeg.input("pipe:")
    .output(
        "pipe:",
        format='wav',
        acodec='pcm_s16le',
        ac=1,
        ar=8000,
    )
    .overwrite_output()
    .run_async(pipe_stdin=True, pipe_stdout=True, pipe_stderr=True)
)
audio, _ = process.communicate(input=audio_raw)

And getting the following logs:
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55c7d4e90740] stream 0, offset 0x2c: partial file
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A isommp42
    creation_time   : 2023-04-29T00:53:21.000000Z
    title           : улица Скворцова-Степанова, 83А 25
    voice-memo-uuid : E12AF33C-0AD8-4C80-9007-C66C0803B028
    encoder         : com.apple.VoiceMemos (MacBook Pro — Artur (null))
  Duration: 00:00:03.80, bitrate: N/A
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 86 kb/s (default)
    Metadata:
      creation_time   : 2023-04-29T00:53:21.000000Z
      handler_name    : Core Media Audio
Stream mapping:
  Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55c7d4e90740] stream 0, offset 0x2c: partial file
pipe:: Invalid data found when processing input
Output #0, wav, to 'pipe:':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A isommp42
    voice-memo-uuid : E12AF33C-0AD8-4C80-9007-C66C0803B028
    INAM            : улица Скворцова-Степанова, 83А 25
    ISFT            : Lavf58.29.100
    Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s (default)
    Metadata:
      creation_time   : 2023-04-29T00:53:21.000000Z
      handler_name    : Core Media Audio
      encoder         : Lavc58.54.100 pcm_s16le
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

As long as I change ffmpeg.input("pipe:") to ffmpeg.input(path_to_m4a_file) everything is OK, so also if the input file is in wav format

Read up on m4a formats, as far as I read, pipes are not supported for m4a in ffmpeg in general

I couldn't find a solution, I had to save the file before using ffmpeg

authors: avpodtikhov cipherhell


text:
Ability to accept extra arguments for ffmpeg.probe command (Issue #187)

See issue #187

Looks great. Not sure why CI is failing - probably not related to your PR though. I'll merge once I have time to fix CI.

This doesn't seem to be working:
extra = {"sexagesimal":None}
try:
probe = ffmpeg.probe(FILE,extra)
except ffmpeg.Error as e:
print(e.stderr, file=sys.stderr)
sys.exit(1)
Doesn't seem to work; however, it looks like it should

This doesn't seem to be working:
extra = {"sexagesimal":None}
try:
probe = ffmpeg.probe(FILE,extra)
except ffmpeg.Error as e:
print(e.stderr, file=sys.stderr)
sys.exit(1)
Doesn't seem to work; however, it looks like it should

ffmpeg.probe accepts params as **kwargs. Can you try:
probe = ffmpeg.probe(FILE, sexagesimal=None)?

probe = ffmpeg.probe(FILE, **extra) should also work.

probe = ffmpeg.probe(FILE, **extra) should also work.

Yes, it is the same. But your example in the previous message is without **
Just tested
probe = ffmpeg.probe(FILE, sexagesimal=None)

It work properly. It shows duration in format 'duration': '0:01:33.994000'

let me check. Got sidetracked on another project.

That worked. My programming skills have also improved.  I am starting to get a better understanding of the API.

authors: 153957 akolpakov cbitterfield kkroening


text:
Use forge script to test deployment in the RPC

Why
Currently, we need to use an external EVM project (like kakaswap) to test a regular deployment process on Kakarot.
This creates an extra unnecessary complexity.
What
Add a forge script to deploy the basic solidity contracts that we already use in the Kakarot EVM testing
How
[] update kakarot path
[] add forge lib
[] create a simple script that mimics the deployment of Counter + PlainOpcodes found in test_plain_opcodes.py
[] run and see!

wdyt of this possible flow: https://github.com/kkrt-labs/kakarot-rpc/issues/253#issuecomment-1625086554
the flow of these kinds of tests could look like

use testsequencer to be the starknet provider that plugs into kakarot client,
construct a kakarot rpc and
then 'call out' to a forge script within a test.

Now that the TestSequencer seems fine (can they merge the branch? is there any blocker?) it seems ok to me to go with it for integration testing.

What is the status of this issue?
It appears we have successfully added forge in our flow, could close this issue
wdyt @ClementWalter

authors: ClementWalter Eikix jobez

repo: kkrt-labs/kakarot-rpc


text:
Merge branch

Update Locust version to 1.6.0

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 6 committers have signed the CLA.:x: MIC3LHN:x: nathan-beam:x: cyberw:x: stanislawskwark:x: KasimAhmic:x: mboutetMIC3LHN seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant test-bai-cpu

repo: klarna/locust


text:
Did it work for you? how do I go to the TOML file? the divination rod highlight to get isneum not working, I need help, please!

          Did it work for you? how do I go to the TOML file? the divination rod highlight to get isneum not working, I need help, please!

Originally posted by @Draco9826 in https://github.com/klikli-dev/occultism/issues/981#issuecomment-1769067016

Just like any other config - open your minecraft instance, go to the "config" folder and find "occultism-client.toml", then edit it with a text editor such as notepad or notepad++.

It worked, thank you!

repo: klikli-dev/occultism


text:
🛑 Ivyoverseas is down

In dcdec8c, Ivyoverseas (https://www.Ivyoverseas.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ivyoverseas is back up in d0f19ac.

repo: kmohammed/upptime


text:
Support for epoch conversions

I had worked on adding support for epoch time conversions to human readable on my fork.
% dig 784783800.epoch @127.0.0.1 -p 5354

;; QUESTION SECTION:
;784783800.epoch.		IN	A

;; ANSWER SECTION:
784783800.		1	IN	TXT	"1994-11-14 09:00:00 +0530 IST"

If you are okay with this, I can send in the PR.
Thanks and have a happy weekend! :slightly_smiling_face:

I like this idea. This is useful for me too. Can we have a switch for UTC or other timezones too? Something like:
❯ dig 784783800-UTC.epoch @127.0.0.1 -p 5354

;; QUESTION SECTION:
;784783800.epoch.		IN	A

;; ANSWER SECTION:
784783800.		1	IN	TXT	"1994-11-14 09:00:00 UTC"

Hey @varunlakkur
Thanks for the suggestion! I made a quick change such that the result now includes both UTC and local time.
% dig 784783800.epoch @127.0.0.1 -p 5354

;; QUESTION SECTION:
;784783800.epoch.		IN	A

;; ANSWER SECTION:
784783800.		1	IN	TXT	"1994-11-14 03:30:00 +0000 UTC" "1994-11-14 09:00:00 +0530 IST"

Thanks @aneeraj. Please do send a PR.

authors: aneeraj knadh varunlakkur


text:
feat: add AES encryption key generator

closes #66

Thanks for the PR @dracarys18. Just wondering, transmitting encryption keys that people may use in production, over plaintext UDP, is that a good idea? :cold_face:

Perhaps we can have something like DNS over TLS

Adding HTTP/TLS + DNS defies the purpose of dns.toys though. For that, it's then just easier to setup an HTTP/TLS service that can just be curl'd.

Oh that makes sense! I guess we hit the wall here, Shall I close the PR then?

Yep, I think we should close this. While the PR on its own is perfectly fine, we shouldn't set the precedent of users copy-pasting and using encryption keys transmitted over an unencrypted channel.


text:
Could not determine user identifier 403

[29/Jul/2020 22:14:58] "GET /saml2/login/ HTTP/1.1" 302 0 Could not determine user identifier Could not authenticate user received in SAML Assertion. Session info: {'ava': {'LastName': ['AAAA']}, 'name_id': <saml2.saml.NameID object at 0x1123d2df0>, 'came_from': None, 'issuer': 'http://www.okta.com/xxxxxxxxxxxxxx', 'not_on_or_after': 1596061199, 'authn_info': [('urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport', [], '2020-07-29T22:11:49.816Z')], 'session_index': 'id-3333333333333333'} Forbidden: /saml2/acs/ [29/Jul/2020 22:15:00] "POST /saml2/acs/ HTTP/1.1" 403 378
Any ideas?
My mapping is for
email
FirstName
LastName

Watch this
https://github.com/peppelinux/Django-Identity/blob/6acb6cf7fee68607252f88f6da1f1c9cb0a65848/djangosaml2_sp/djangosaml2_sp/djangosaml2_sp/sp_pysaml2_satosa.py#L166
What you're configured there?

Hi @CR1AT0RS have you some update for that, have you solved the problem?

Hope that you solved this, going to close. Ask to reopen it if necessary, thank you


text:
ImportError: No module named template_failure

https://github.com/knaperek/djangosaml2/commit/6e105aff8fea28778c57d08ee9488ca7165f86b5
'djangosaml2.acs_failures.template_failure'
We could use this https://docs.djangoproject.com/en/1.7/ref/utils/#django.utils.module_loading.import_string
If we only want to support Django1.7+

Yes, that's the one I should have used in the first place, thanks!


text:
Source's RMQ resources aren't cleaned up on delete

Describe the bug
As far as I can tell, in the current implementation, even if a Source resource is deleted, RMQ resources will remain (which means the Queue continues to receive messages via the Binding).
Expected behavior
RMQ resources are cleaned up on deleting a Source

binding (always)
queue (if spec.predeclared is set to false)

Open Questions

Should the exchange be deleted as well ?

To Reproduce
Knative release version

Original Issue body

Don't you also need to have FinalizeKind for any cleanup? Just jotting this down so I don't forget :)
_Originally posted by @vaikas in https://github.com/knative-sandbox/eventing-rabbitmq/pull/3#discussion_r427597886
well, there will also typically be resources created on the RabbitMQ cluster as well (Exchange and Queue, unless they were pre-existing) and the Binding from the Exchange to the Queue. Those need to be cleaned up on > deletion as well, and the Binding might need to be replaced if there is an update to source properties that affect it
_Originally posted by @markfisher in https://github.com/knative-sandbox/eventing-rabbitmq/pull/3#discussion_r427621633
Yeah, that's why I tagged it first above since I was expecting there to be some sort of cleanup necessary, but I must have missed (as I said, just the first pass) on what other cleanup needs to happen. Maybe you could > add a comment in the PR at the location where the creation of resources happens that need to get cleaned up, so it won't get lost?
_Originally posted by @vaikas in https://github.com/knative-sandbox/eventing-rabbitmq/pull/3#discussion_r428778848
Perhaps the lifecycle of these resources (Exchange, Queue and the Bindings below) should be managed by the reconciler? That would allow for updates/deletes to occur there as well. This code could then be changed to use > "passive" versions of the declare operations.
As far as I can tell, in the current implementation, even if a Source resource is deleted, these resources will remain (which means the Queue continues to receive messages via the Binding).
_Originally posted by @markfisher in https://github.com/knative-sandbox/eventing-rabbitmq/pull/3#discussion_r428795351

/remove-lifecycle stale

/remove-lifecycle stale
/reopen
I think this is still a problem for the source, I see the logs exchange and an amq.gen-XWQIdanx-2MK8-HWTctwqg queue orphaned after I delete the source

Only when NOT using the predeclared option, otherwise the resources should remain imo.

Only when NOT using the predeclared option, otherwise the resources should remain imo.

Makes sense. To confirm, if predeclared is set to true, no resources should be deleted

authors: benmoss gvmw sbcd90 xtreme-sameer-vohra

repo: knative-sandbox/eventing-rabbitmq


text:
[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/networking-wg-leads
/assign knative-sandbox/networking-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps

/retest

/lgtm
/approve

authors: dprotaso knative-automation

repo: knative-sandbox/net-istio


text:
[main] Upgrade to latest dependencies

bump deps -benmoss
/cc knative-sandbox/networking-wg-leads
/assign knative-sandbox/networking-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/networking c3606d9...8c71a27:
  > 8c71a27 upgrade to latest dependencies (# 551)
bumping knative.dev/pkg 5d9d300...96c0204:
  > 96c0204 upgrade to latest dependencies (# 2337)

/lgtm
/approve

authors: benmoss knative-automation


text:
[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/eventing-writers lberk
/assign knative-sandbox/eventing-writers lberk
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/hack 6ffd841...5f47386:
  > 5f47386 Update community files (# 171)
  > 2a09b5c only use `install` for run_go_tool (# 169)
bumping knative.dev/pkg e325df6...1f681e1:
  > 1f681e1 Update community files (# 2501)
  > 45c37c2 :bug: `TestDialWithBackoff` work without special environment (# 2402)
  > 12be060 Update actions (# 2492)
bumping knative.dev/eventing 39eef14...3abb436:
  > 3abb436 properly initialize branchStatuses (# 6354)
  > 2d47847 Update community files (# 6355)
  > 3e24a78 NPE fix (# 6343)
  > 1104746 [scheduler] Use node taints for keeping track of available nodes and zones (# 6291)

/lgtm
/approve

authors: knative-automation lionelvillard

repo: knative-sandbox/sample-source


text:
[main] Update community files

Cron -knative-prow-robot
Produced by: knative-sandbox/knobots/actions/update-community
Details:

/retest

/lgtm
/approve

/retest

authors: davidhadas knative-automation

repo: knative-sandbox/security-guard


text:
Security: Please set pod Security Context on all Pods

Many companies have a security requirement in place that all pods must not run as root and set the run as user.  Please set this (Or allow it to be set) on all pods.  This would mean either adding it yourself or adding it to any CRDs that end up creating pods so the user can set it.  Note this is at the pod level, not the container level.  I will be creating a separate feature request for the container security content.
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
See the pod security context example below for what is required to be set.
apiVersion: v1
kind: Pod
metadata:
  name: security-context-demo
spec:
  securityContext:
    runAsNonRoot: true
    runAsUser: 1000
    runAsGroup: 3000
    fsGroup: 2000

Related Feature Request: https://github.com/knative/eventing/issues/2881

We're going to track this in https://github.com/knative-sandbox/operator/issues/3 and address it comprehensively rather than on a per-repo basis.
/close

authors: AceHack evankanderson

repo: knative/eventing-contrib


text:
Reconcile the settings with net/http

No need to diverge from the timeout setting.
Also note that maxidle conns are also different from the upstream
/assign @tcnghia @julz

Thanks @julz.  This looks good to me.
/unhold

authors: tcnghia vagababov

repo: knative/pkg


text:
Invalid window handle raised on 'focus firefox' after window close

This may be specific to windows.

Open a non-firefox window - I tried with windows terminal (wsl) and with excel.
Open two firefox windows.
Focus the non-firefox window.
Say 'focus firefox' to switch focus and then close that window, focus now reverts to the non-firefox window.
Say 'focus firefox' and see the error below.

Note: I tried the same except with excel in place of firefox. In that case, the behavior is different and there is no error. Upon closing the excel window, focus shifts to the second excel window rather than to the previous (non-excel) window.
2021-05-20 11:48:26    IO DECODED ['focus', 'firefox']
2021-05-20 11:48:26    IO [audio]=1560.000ms [compile]=203.000ms [emit]=156.000ms (0.10x) [decode]=16.000ms (0.01x) [total]=375.000ms (0.11x)
2021-05-20 11:48:26    IO
2021-05-20 11:48:29    IO EMIT ['window', 'closhes']
2021-05-20 11:48:29    IO COMPILING
sum=206.999ms load=6.998ms build=8ms link=7.001ms flat=5.013ms min=177.987ms cfg=2ms
2021-05-20 11:48:30    IO grammar -> dfa -> cfg in 0.203000s
##||||||||||||||||w#inn#d#ow##||c#l#o#shees########|||||||||| 991.178 (viterbi)

##||||||||||||||||w#inn#d#ow##||c#l#o#s#ee#########|||||||||| 990.765
##||||||||||||||||w#inn#d#ow##||c#l#o#s#ee#########|||oh||||| 971.482
  result: "window close "

2021-05-20 11:48:30    IO DECODED ['window', 'close']
2021-05-20 11:48:30    IO [audio]=1350.000ms [compile]=203.000ms [emit]=125.000ms (0.09x) [decode]=16.000ms (0.01x) [total]=344.000ms (0.10x)
2021-05-20 11:48:30    IO
2021-05-20 11:48:33    IO EMIT ['focus', 'firefox']
2021-05-20 11:48:33    IO COMPILING
sum=178ms load=6.999ms build=3.999ms link=5ms flat=5.007ms min=154.994ms cfg=2.001ms
2021-05-20 11:48:33    IO grammar -> dfa -> cfg in 0.188000s
|||||||||||||||#ff#o##c#uss###||f#i#rre###f##o#x####|||||||||||||| 1145.26 (viterbi)

|||||||||||||||#ff#o##c#uss###||f#i#rre###f##o#x####|||||||||||||| 1145.26
|||||||||||||||#ff#o##c#uss###||f#i#rre###f##o#x####|||||||||oh||| 1128.83
  result: "focus firefox "

2021-05-20 11:48:33    IO DECODED ['focus', 'firefox']
2021-05-20 11:48:33 ERROR     8:    talon\scripting\talon_script.py:523|
    7:    talon\scripting\talon_script.py:267|
    6:    talon\scripting\talon_script.py:490|
    5:         talon\scripting\actions.py:74 |
    4:           talon\scripting\types.py:367|
    3: user\knausj_talon\code\switcher.py:269| app.focus()
    2:                talon\windows\ui.py:183|
    1:                talon\windows\ui.py:281|
pywintypes.error: (1400, 'SetForegroundWindow', 'Invalid window handle.')

[The below error was raised while handling the above exception(s)]
2021-05-20 11:48:33 ERROR cb error topic="phrase" cb=<bound method SpeechSystem.engine_event of <talon.scripting.speech_system.SpeechSystem object at 0x00000000036FDBD0>>
   30:                     threading.py:912* # cron thread
   29:                     threading.py:954*
   28:                     threading.py:892*
   27:                    talon\cron.py:129|
   26:                    talon\cron.py:89 |
   25:                     talon\vad.py:21 |
   24: talon\scripting\speech_system.py:325|
   23:             talon\engines\w2l.py:880|
   22:      talon\scripting\dispatch.py:103|
   21:      talon\scripting\dispatch.py:138|
   20:      talon\scripting\dispatch.py:129|
   19:          talon\scripting\rctx.py:239| # 'phrase' main:_redispatch()
   18: talon\scripting\speech_system.py:61 |
   17:      talon\scripting\dispatch.py:103|
   16:      talon\scripting\dispatch.py:138|
   15:      talon\scripting\dispatch.py:129|
   14: ------------------------------------# cron thread
   13:          talon\scripting\rctx.py:239| # 'phrase' main:engine_event()
   12: talon\scripting\speech_system.py:374|
   11:       talon\scripting\actions.py:74 |
   10:         talon\scripting\types.py:367|
    9:          talon\scripting\core.py:108|
    8:       talon\scripting\actions.py:74 |
    7:         talon\scripting\types.py:367|
    6:          talon\scripting\core.py:138|
    5:       talon\scripting\actions.py:74 |
    4:         talon\scripting\types.py:367|
    3:          talon\scripting\core.py:143|
    2:  talon\scripting\talon_script.py:620|
    1:  talon\scripting\talon_script.py:527|
talon.scripting.talon_script.TalonScriptError:
 in script at C:\Users\me\AppData\Roaming\talon\user\knausj_talon\misc\window_management.talon:4:
 > user.switcher_focus(running_applications)
error: (1400, 'SetForegroundWindow', 'Invalid window handle.')
2021-05-20 11:48:33    IO [audio]=1500.000ms [compile]=188.000ms [emit]=125.000ms (0.08x) [decode]=0.000ms (0.00x) [total]=313.000ms (0.08x)
2021-05-20 11:48:33    IO

Without digging down into the details, I tried the following patch...but it didn't work out - FYI.
diff --git a/code/switcher.py b/code/switcher.py
index e9e0a5a..cc60176 100644
--- a/code/switcher.py
+++ b/code/switcher.py
@@ -266,7 +266,13 @@ class Actions:
     def switcher_focus(name: str):
         """Focus a new application by name"""
         app = actions.user.get_running_app(name)
-        app.focus()
+
+        try:
+            app.focus()
+        except Exception as e:
+            update_lists()
+            app = actions.user.get_running_app(name)
+            app.focus()

         # Hacky solution to do this reliably on Mac.
         timeout = 5

I drilled down into the details a bit more and I believe the issue is actually in talon itself, specifically ui.apps().
I had thought maybe switcher.py was caching something it should have dropped, but that doesn't seem to be the case.
In essence, it's just calling the focus() method of an App object returns by ui.apps(). It's not clear why the associated window handle is invalidated at that point - but I don't think switcher.py is to blame.

@codecat555 Since it's been a while and the screen management code has been rewritten in Talon, are you still experiencing this issue? I'm not able to reproduce under Linux with current knausj master, but as you say, it may be Windows specific.


text:
number_small doesn't include double-digit phrases, eg. "one two", only "twelve" is accepted

Dunno why I haven't run into this before, but number_small doesn't accept multiple-digit numbers (it didn't even before #993). So you can say twenty seven but not two seven. Should we fix this?

Same as #995 — I don't ever dictate two-digit numbers this way. Does anyone?

I've heard some people have the habit of always dictating numbers digit by digit.
Note that this only applies to number_small not the other number captures so it may only occur in a few places. But apparently it's used quite a bit in the cursorless grammar.

authors: nriley rntz


text:
add support for some common gdb commands

currently only matches on terminal windows running gdb. this causes a problem if you're running gdb through a script, but right now i solve this by having the script set the terminal window name so that it matches with gdb. i don't particularly like that, but don't have a better solution at the moment

I'm wondering if this might be a good use case for a custom mode that we could explicitly enable via a command. Hmm.

yeah that would be a decent solution, in that case I think I would still have it automatically trigger if it knows for sure that the program is running, but also having the option to just turn it on if I know I need it without having to hacking some other thing like changing the terminal name is probably ideal

added the mode changes and switched to terminal tag. in the mode changes include a couple other tweaks, like saying 'go lang' (which is what most of my friends call it), forcing markdown, etc.


text:
WARNING This library is still in its early stages of development and thus far from ready for production use.

What exactly is the gap between the current package and one you would consider ready for production use?

At this stage, mostly the data streamer. Besides not being complete, it's still in its first implementation and I am not too happy with the overall design so there could be drastic changes. As a matter of fact, breaking changes may be introduced with every minor version to any part of the library until it reaches v1.0.0.
A couple of things to be aware of concerning the data streamer:

In the case of multiple TDA accounts, it will select the first available. This could affect the account activity stream (ie. order fills).
The account activity stream is still incomplete and can return XML data rather than JSON.
Some events could potentially break or at the very least be inconsistent as I haven't picked up all edge cases yet (TDA's api and documentation is a bit rough).

If you can work with that and would like to use this library now, I would definitely suggest using wrapper methods to make it easier to upgrade to newer versions in the future. Also, keep an eye on the changelog file. I try to document all changes as clearly as possible so it'll be easier to know what breaks.

At this stage, mostly the data streamer. Besides not being complete, it's still in its first implementation and I am not too happy with the overall design so there could be drastic changes. As a matter of fact, breaking changes may be introduced with every minor version to any part of the library until it reaches v1.0.0.
A couple of things to be aware of concerning the data streamer:

In the case of multiple TDA accounts, it will select the first available. This could affect the account activity stream (ie. order fills).
The account activity stream is still incomplete and can return XML data rather than JSON.
Some events could potentially break or at the very least be inconsistent as I haven't picked up all edge cases yet (TDA's api and documentation is a bit rough).

If you can work with that and would like to use this library now, I would definitely suggest using wrapper methods to make it easier to upgrade to newer versions in the future. Also, keep an eye on the changelog file. I try to document all changes as clearly as possible so it'll be easier to know what breaks.

@knicola wondering if you have feedback on the authentication piece. Seems like my "refresh token" is expiring a lot sooner than the refresh token expiration date sent back from TDA (90 days or so). After about 30-45 min, i get a 400 error with invalid_grant when i try to refresh the token. It also occurs from curl requests, so i know it's not the library, just wondering if you've had this experience.

@kjanoudi
I haven't noticed an issue with the refresh token's expiration time to be honest.
Try running the following once to cache the token info, then run it again after an hour or so
const { TDAmeritrade } = require('@knicola/tdameritrade')
const fs = require('fs')
const opn = require('opn') // npm install opn

const stringify = obj => JSON.stringify(obj, null, 2)

const defaults = {
    apiKey: 'api-key',
    redirectUri: 'https://localhost:8443',
    sslKey: 'selfsigned.key',
    sslCert: 'selfsigned.crt',
}

const config = fs.existsSync('config.json')
    ? Object.assign({}, defaults, require('./config.json'))
    : defaults

const td = new TDAmeritrade(config)

td.on('login', url => opn(url))
td.on('token', () => fs.writeFileSync('config.json', stringify(td.config), 'utf-8'))

td.login().then(async () => {
    td.getAccounts().then(console.log)
})

authors: kjanoudi knicola

repo: knicola/tdameritradejs


text:
Poradnik na temat używania OWSLib

Dorzucam podstawowy poradnik z użytkowania OWSLib do pobierania ortofotomap Polski z Geoportalu. Mała uwaga: na Google Collab pobieranie mapy (tj. użycie funkcji getCoverage()) trwa znacznie dłużej niż na prywatnej maszynie(wycinek z poradnika pobierał się u mnie przez około 7-10 minut; na Collabie mielił 25 i mu się nie udało)

@FrightenedFox Mógłbyś zrobić review i merge? Ja później dodam link w readme

authors: finloop kosiarn

repo: knmlprz/poradniki


text:
boolean PubSubClient::publish_P returns false

We think there is a bug in the publish_P method which was reporting false, even though the message was sent to the server. The expected length is off by a few bytes.
The original code:
 return rc == tlen + 4 + plength;

Was changed to:
// Header (1 byte) + llen + identifier (2 bytes)  + topic len + payload len
int expectedLength = 1 + llen + 2 + tlen + plength;
return (rc == expectedLength);

}

Any progress on this? Nobody wants to fix this?

authors: Lucianovici andrewkpearce

repo: knolleary/pubsubclient


text:
Implementing client.connected() check or client.loop() breaks other parts of program.

Hi there,
I'm working on a project where I want to connect a Controllino with an ESP8266-01 WiFi module.
I can successfully connect to a WiFi and connect to a local (C#-based) broker on that WiFi. Both the PubSubClient and the broker confirms this.
However, I have run into an issue when I want to check for new messages and renew the connection (via mqttClient.loop()) in the void loop method. Likewise, if I want to check the current connectivity state (mqttClient.connected()), my WiFi connectivity stops working entirely, and I am no longer able to connect to the WiFi.
#include <PubSubClient.h>
#include <WiFiEsp.h>
#include <Controllino.h>  //Baseline Controllino library. Mandatory in order to use CONTROLLINO_xx aliases for pins in sketch.

//WiFi credentials, and Broker information.
char ssid[] = "XXXXX";            // Network SSID (name)
char pass[] = "xxxxxx!";        // Network password
int status = WL_IDLE_STATUS;     // the WiFi radio's status

char serverIP[] = "192.168.43.40";
int portNumber = 1883;
//char macArrayToSend[6]; For later use

//Setting up arrays for easier management of leds and buttons.
int buttonLEDs[] = {CONTROLLINO_D0, CONTROLLINO_D1, CONTROLLINO_D2, CONTROLLINO_D3, CONTROLLINO_D4, CONTROLLINO_D5, CONTROLLINO_D6, CONTROLLINO_D7, CONTROLLINO_D8};
int buttonAnalog[] = {CONTROLLINO_A0, CONTROLLINO_A1, CONTROLLINO_A2, CONTROLLINO_A3, CONTROLLINO_A4, CONTROLLINO_A5, CONTROLLINO_A6, CONTROLLINO_A7, CONTROLLINO_A8};

//WiFi Client. Used to establish connection to local WiFi
WiFiEspClient espClient;

//MQTT Client
PubSubClient mqttClient(serverIP, portNumber, espClient);

void callback(char* topic, byte* payload, unsigned int length) {
  Serial.print("Message arrived [");
  Serial.print(topic);
  Serial.print("] ");
  for (int i=0;i<length;i++) {
    Serial.print((char)payload[i]);
  }
  Serial.println();
}

//----------* Functions *---------//
void setupMQTTClient(){
  Serial.println("[MQTT] Attempting to connect to broker...");

  mqttClient.setCallback(callback);
  bool connectionResult = mqttClient.connect("CONTROLLINO", "superSecretUN", "superSecretPW");

  Serial.print("[MQTT] Connection result: ");
  Serial.println(connectionResult);

  while (!connectionResult){
    Serial.println("[MQTT] Connection failed!");
    delay(1500);
    connectionResult = mqttClient.connect("CONTROLLINO", "superSecretUN", "superSecretPW");
  }

  if (connectionResult){
    Serial.println("[MQTT] Connection established!");
    Serial.println("[MQTT] Subscribing to topic...");
    //mqttClient.subscribe("CONTROLLINO", 1); //Breaks the program
  }
}

void setupWiFi(){
  WiFi.init(&Serial2); //Initialize connection via Serial2.

  if (WiFi.status()==WL_NO_SHIELD){
    Serial.println("WiFiEsp] WiFi shield not present");
    while(true);
  }

  while (status != WL_CONNECTED) {
    Serial.print("[WiFiEsp] Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network
    status = WiFi.begin(ssid, pass);
  }
  Serial.println("[WiFiEsp] WiFi connection established!");
  Serial.print("WIFI Status: ");
  Serial.println(status);

}

//Turns on a button LED and waits for button press before continuing.
bool turnOnButton(int input){
  if (input > 24){ //Edge cases where designated LED does not exist in PLC.
    return false;
  }
  if (input == -1){ //Edge case where a reset of all LEDs is requested.
    for (int i = 0; i < sizeof(buttonLEDs); i++){
      digitalWrite(buttonLEDs[i], LOW);
    }
    return true;
  }
  else{
    //Turn on LED
    digitalWrite(buttonLEDs[input], HIGH);

    while(digitalRead(buttonAnalog[input])== LOW){
      //Keep waiting for the user to push the button.
    }
    //The button has been pushed down by the user.
    Serial.println("Button pushed");
    digitalWrite(buttonLEDs[input], LOW);
    return true;
  }
}

void printWifiStatus()
{
  //Print the SSID of the network currently connected to.
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  //Print WiFi module's IP address.
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);

  //Print WiFi module's MAC address.
  byte mac[6]={0,0,0,0,0,0};
  WiFi.macAddress(mac);
  Serial.print("MAC Address: ");
    Serial.print(mac[5], HEX);
    Serial.print(":");
    Serial.print(mac[4], HEX);
    Serial.print(":");
    Serial.print(mac[3], HEX);
    Serial.print(":");
    Serial.print(mac[2], HEX);
    Serial.print(":");
    Serial.print(mac[1], HEX);
    Serial.print(":");
    Serial.println(mac[0], HEX);

  //Print the received signal strength.
  long rssi = WiFi.RSSI();
  Serial.print("Signal strength (RSSI):");
  Serial.print(rssi);
  Serial.println(" dBm");
}

//Set up pins and LEDS using arrays.
void setupPins(){
  Serial.println("[CONTROLLINO] Setting up pins...");
  for (int i = 0; i < sizeof(buttonLEDs); i++){
    //Set up LED pins.
    pinMode(buttonLEDs[i], OUTPUT);
    digitalWrite(buttonLEDs[i], LOW);
    //Set up analog pins.
    pinMode(buttonAnalog[i], INPUT);
  }
  Serial.println("[CONTROLLINO] Pin setup succeeded");
}

void testButton(int input){
  bool test = false;
  Serial.print("Testing button: ");
  Serial.println(input);

  test = turnOnButton(input);
  if (test == true){
    Serial.println("Button succeeded");
  }else{
    Serial.println("Button failed");
  }
}
//----------* End of Functions *---------//

void setup() {
  Serial.begin(9600); //Regular serial printout to COM
  Serial2.begin(115200); //Serial connection to ESP8266 WiFi module

  setupPins();

  setupWiFi();

  printWifiStatus();

  setupMQTTClient();
}

void loop() {
  //mqttClient.loop() Breaks the program
}

Any help would be greatly appreciated, as I am at my wits end trying to get it to work 😢

Hello!
I have some problem like you, mine don't disconect to the wifi, only from the broker.
I isolate the problem in my case, and i have problem to use analog input...
try to comment every part where you use this and verify if this continues...
if not, the problems maybe the same...
https://github.com/knolleary/pubsubclient/issues/725

Hi @Psykozis,
Thank you for the reply, and the link to your own problem. I've tried a number of things, including commenting, reimplementing the entire project, tried compiling and running on a separate platform, etc. None of which seems to work.
I am not sure if our problems are the exact same structurally, but as others have commented in your issue, it seems to stem from ressource hogging in your program. It might be the same issue in my program. Sadly, I am not able to test it, as I no longer posses the equipment necessary :disappointed:

I'm not familiar with the controllino boards. But are you programming the ESP itself with the sketch? If so, <WiFiEsp.h> is an unknown to me. Have you tried your sketch with the <ESP8266WiFi.h> lib?

authors: Arcires Psykozis thijsdebont


text:
[Coinmate] Metadata Fix

New core InstrumentMetaData uses volume_scale instead of base_scale, however Coinmate still returns base_scale from API, so a custom DTO needs to be used.

is there any progress on this PR?
if not I will have to close it

repo: knowm/XChange


text:
Fix tests

It appears that the included tests were not setting the data strings in the order provided by the normalization-test.txt file (unnormalized, nfc, nfd, nfkc, nfkd) and this wasn't caught because the tests themselves were using assert (which only checks that the arguments are truthy) rather than assert_equal (which ensures that they match).
This PR fixes these issues, meaning that the tests actually test (and unf still passes them).

Ah, great catch, thanks!

authors: knu nomoon


text:
Identity module is super slow

Identity module resolves too late :)
I'll rewrite it.

better be late, like no show up 👯♂

Seems shortAddress filter needs to be tuned as well

authors: vikiival yangwao

repo: kodadot/nft-gallery


text:
E2E - Spotlight / Series Insight / Hot

We would like to expand our current E2E test by testing Spotlight / Series Insight and Hot stats on RMRK

[ ] check if filtering works
[ ] check if sorting works
[ ] check if data fetching behaves as expected after testing
[ ] check if clickable links behave as expected

👋

👋🏻

authors: kkukelka petersopko


text:
unable to put oruga-table in histoire

    unable to put `oruga-table` in histoire, will check later in seperate issue

Originally posted by @preschian in https://github.com/kodadot/nft-gallery/issues/4233#issuecomment-1323063536

wfm

wfm

Why didn't you push your code?! goddam!
continue in #5852

authors: preschian roiLeo


text:
Wrong currency on the landing page

There is an issue with the Polkadot network on KodaDot. When you open it, it shows prices in DOT (even though the price of NFTs is originally KSM) - the prices are totally wrong. It is happening on the landing page for these two:

newest list
last sales

Same on production and on canary🐦⬛
Reproduce it:

Open Kodadot and select Kusama network. Scroll a bit down. Prices are normal:

Change from Kusama to Polkadot. Scroll a bit down. The prices for the same NFTs are shown in DOT (prices do not correspond with the real price of NFTs)

When you click on any of the NFTs after it opens, the price will jump back to KSM (correct price). It can be a bit confusing.

Change from Kusama to Polkadot. Scroll a bit down. The prices for the same NFTs are shown in DOT (prices do not correspond with the real price of NFTs)

This is caused by using same indexer for both KSM and DOT
So this can be fixed by forbiding landing page on DOT

authors: JustLuuuu vikiival


text:
fix: Profile: If follower doesnot have profile picture leave that Polkadot wallet picture

Thank you for your contribution to the Koda - Generative Art Marketplace.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Bugfix

Needs QA check

@kodadot/qa-guild please review

Context

[x] Closes #10580

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

@Jarsen136 everything is failling


text:
Move files to utils

Thank you for your contribution to the KodaDot NFT gallery.
👇  _ Do a quick check before the merge.
PR type

[ ] Bugfix
[ ] Feature
[x] Refactoring

What's new?

[ ] PR closes #1745 #1614
[ ]

Before submitting Pull Request, please make sure:

[ ] My contribution builds clean without any errors or warnings
[ ] I've merged recent default branch -- main-nuxt and I've no conflicts
[ ] I've tried respect high code quality standards
[ ] I've didn't break any original functionality
[ ] I've posted screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases

Had issue bounty label ?

[ ] Fill up your KSM address: Payout

Community participation

[ ] Are you at KodaDot Discord?

Screenshot

[ ] My fix has changed something on UI, a screenshot is best to understand changes for others.

Had to do force push, since I had to delete the last 2 commits (justfile and src-functions)

@yangwao if force-push is an issue, I guess I can create another PR and close this one? let me know

@prachi00 please don't transfer it away before testing #1771 ;)
Perfect, I’ve sent the payout https://kusama.subscan.io/extrinsic/0x09532347ff208d9191b74db4161656a1b78fcd1eb683cfa5ec6a0e1171b174b5
Let’s grab another issue and get rewarded!
https://github.com/kodadot/nft-gallery/issues/


text:
Wrong border location

Can't reproduce this; but borders don't work properly in Ventura either way.

Similar issue when opening finder app

authors: jheroy koekeishiya y9c

repo: koekeishiya/yabai


text:
[Support request]: Yabai not tiling windows properly after update to ver 3

Yabai is making single windows take up the full screen fine, but opening new windows via skhd seems to have broken some time after updating to version 3. The second windows are opening either in the top quarter (with blank space below), or bottom quarter (blank above), or sometimes in the middle of the screen. Openign a 3rd window puts it in the blank quarter, but off-center. Running yabai -m space --balance with 2 windows will sometimes mode the quartered window to the center the first time, then to full half-screen the second time.
Sometimes the second window opens fine, but when I open a 3rd, the second window moves to quarter correctly, but the 3rd window opens in the same quarter, again misaligned.
This even happens if I restart with no yabairc. Persisting across restarts.
Downgrading back to 2.4.3 also hasn't helped.
Are there some caches I could look at clearing to help reinstall?

New self-signed certificate used to sign the released binaries because the previous one expired at april 21th, 2020. You will have to re-enable accessibility permissions after this install. Sorry about that.

I had to change the certificate for the 3.x.x release so you probably got hit by some accessibility nonsense. Try to first stop the yabai service, uninstall, then remove the yabai entry from the accessibility list. Do a system reboot, install yabai, and accept the accessibility permission followed by an application restart.

I got prompted by accessibility when I updated, and gave it permission again. And occasionally yabai does work as intended, for one window. Yabai definitely can move windows around. And I get the notification that the scriping addon loads properly.

Yes, it should still help. The issues you describe sound very much like an inconsistency with the accessibility permission where the system sometimes think you have access, and sometimes it thinks you don't. I don't exactly know the details of why it happens, but I did experience these symptoms a long time ago when I first started doing these things.

Closing this. My previous comment should resolve the issue for you.

I hadn't gotten around to restarting, but I just went through the steps you gave. Still happening, but I noticed the scripting addon gave a warning about an out-of-date payload. Small and easy thing to miss, might be worth making more obvious/documenting somewhere, or even prompting to auto-reinstall. I'm going to reinstall the scripting addon now and see if it fixes it

Nope, didn't work, even after multiple restarts and no yabairc. Is there anything else I can clear?

Spamming balance eventually gets the spacing right, btw, but almost always takes more than one balance (if that helps you identify possible causes)

I have no clue. There has not been any changes related to how tiling is performed in a long time.

On 24 May 2020, at 01:41, BlueDrink9 notifications@github.com wrote:
Spamming balance eventually gets the spacing right, btw, but almost always takes more than one balance (if that helps you identify possible causes)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/koekeishiya/yabai/issues/524#issuecomment-633154635, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPDZVY3XEFGVYQ2VFYTM2DRTBNMFANCNFSM4NCUARMQ.

I'm not suggesting it's a bug, but does Yabai store any other settings/data that I could remove?

There shouldn’t be, no. Accessibility access and the config file is pretty much everything. There are lock files and socket files in /tmp/yabai_.socket/lock, but that does not seem relevant to your issue.

On 24 May 2020, at 02:31, BlueDrink9 notifications@github.com wrote:
I'm not suggesting it's a bug, but does Yabai store any other settings/data that I could remove?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/koekeishiya/yabai/issues/524#issuecomment-633159136, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPDZV4J5YZOFPKRHAOJRBTRTBTHTANCNFSM4NCUARMQ.

Bother. Maybe I'll try on a different user and see if it's a software conflict. I'm on Mojave atm.

On a new user with no rc, kitty seemed to tile fine, but finder, chrome don't tile well at all.

Seems to be working fine again after uninstalling and re-installing the scripting addition, updating catalina, zapping the PRAM, and running manually instead of as a brew service. No idea which part fixed it. However, the scripting addition isn't loading, but I definitely ran csrutil enable --without debug --without fs in recovery mode. Currently, (and immediately after that command) csrutil status returns enabled, but I assume that's the expected behaviour for OSX 10.14 and above?

Although now windows are tiling veery slowly (iterating size and position about once every 0.5 seconds). Any thoughts on what might be causing that?

Is this on v3.1.1 or the master branch? If so, likely fixes to #16 … god damnit

On 9 Jun 2020, at 00:34, BlueDrink9 notifications@github.com wrote:
Although now windows are tiling veery slowly (iterating size and position about once every 0.5 seconds). Any thoughts on what might be causing that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/koekeishiya/yabai/issues/524#issuecomment-640922830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPDZVZDT6YWMQLSHSQZT6LRVVRQ5ANCNFSM4NCUARMQ.

3.1.1

Try the latest version please. I undid the changes to #16. Hoping that was the issue, otherwise I am running empty on ideas.

On 9 Jun 2020, at 01:02, BlueDrink9 notifications@github.com wrote:
3.1.1
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/koekeishiya/yabai/issues/524#issuecomment-640931611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPDZV2HQ4W3MUWAE3WJZK3RVVUZ5ANCNFSM4NCUARMQ.

Yup, back to normal speed. Thank you for your help and work!
All of this stopping and restarting yabai has narrowed it down as a factor in a more serious issue I have been having (since version 3.10). Switching to new windows sometimes crashes windowserver (manifesting as a black screen, then the login screen shows). Focussing the system preferences window for the first time as it opens seems to be a factor, but if it is opened without yabai running then switched to once yabai has started, it seems to be fine.
I'll test with a minimal rc and see if it keeps happening.

Update: 3.1.12 seems to have reverted my issue with windows not tiling properly.

The crash is likely #277
You need to set window_opacity_duration to 0 (macOS Catalina bug, nothing I can do to fix it).
I find it weird that going from 3.1.1 to 3.1.2 make things not tile properly. All I changed was remove a potential bug that could result in looped movement/resize.
Do you have this issue for specific applications or all of them? What about Terminal.app or Safari? (both of these work perfectly for me).
Sent from my iPhone
On 9 Jun 2020, at 01:35, BlueDrink9 notifications@github.com wrote:

Update: 3.1.12 seems to have reverted my issue with windows not tiling properly.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/koekeishiya/yabai/issues/524#issuecomment-640941853, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPDZVZNGEC3IEJ64KM6SELRVVYTJANCNFSM4NCUARMQ.

Maybe 3.1.1 didn't fix the bug, but it seemed to for the brief period of time I used it.
Thanks for pointing out 277. For some reason googling "yabai" + "crash" or "black screen" or "windowserver crash" didn't bring it up.
I've been testing with finder, chrome and kitty. I'll test with terminal and safari.

Safari and terminal were both fine. I wonder if it has to do with finder, chrome and kitty all being started by skhd (which in turn was started by yabai)

I got fed up with this again so went on a deep dive fixing things. New user with most things copied = worked. My user with ~/Library renamed = worked.
I think now it is finally fixed, thanks to deleting a bunch of folders in ~/Library/application support/com.apple.*, mostly to do with accessibility (I think com.apple.TCC was the main one). Complete list:
com.apple.CommerceKit.AskPermissionExtension
com.apple.cloudphotosd
com.apple.CloudPhotosConfiguration
com.apple.CloudDocsDaemon.StorageManagement
com.apple.CloudDocs.MobileDocumentsFileProvider
com.apple.ClassKit.diagnosticextension
com.apple.calculator
com.apple.BKAgentService
com.apple.AuthKitUI.AKFollowUpServerUIExtension
com.apple.AuthKitUI.AKAppSSOExtension
com.apple.archiveutility
com.apple.AquaAppearanceHelper
com.apple.AppStoreDaemon.ASDAskPermissionExtension
com.apple.AppSSOKerberos.KerberosExtension
com.apple.AppleMediaServicesUI.SpyglassPurchases
com.apple.AppleMediaServices.FollowUpExtension
com.apple.appkit.xpc.LegacyExternalColorPickerService
com.apple.appkit.xpc.ColorSampler
com.apple.AMPDeviceDiscoveryAgent
com.apple.AMPArtworkAgent
com.apple.amp.devicesui
com.apple.AmbientDisplayAgent
com.apple.AirPlayUIAgent
com.apple.AddressBook.UrlForwarder
com.apple.AddressBook.ContactsAccountsService
com.apple.AddressBook.ABPersonViewService
com.apple.AddressBook
com.apple.accessibility.mediaaccessibilityd
com.apple.accessibility.heard
com.apple..NowPlayingWidgetContainer.NowPlayingWidget
com.apple..NowPlayingWidgetContainer
com.apple.AMPLibraryAgent
com.apple.backgroundtaskmanagementagent
com.apple.TCC

Happened again after a recent restart. Just removing com.apple.TCC and logging out didn't fix it, but removing com.apple.* and logging out did.

I have identified the cause of this as a clash with a Hammerspoon script.
Removing the above files affected hammerspoon being set or not set to auto-open on login.
Running with just hammerspoon was fine, but when loading dbalatero/VimMode.spoon and reloading the config, this issue occurs again.
I have opened https://github.com/dbalatero/VimMode.spoon/issues/45 to hopefully shed some light on this.


text:
using react-font-awesome  in webpack config

I'm trying to using this font-awesome css icons from this github repo.
https://github.com/andreypopp/react-fa
Despite its instructions to use, I'm not entirely sure it's applicable for this static boilerplate I'll be using since the boilerplate comes preconfigured with the css loaders already.
Thus I'm just curious to know how to configure webpack config to import font-awesome?  I'm not familiar with webpack environment setup btw vs gulp/grunt.

The simplest solution is just add the following line to components/Html/Html.js:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />

Then you can use those icons in React components as described in FontAwesome tutorial:
<i className="fa fa-camera-retro fa-5x />

Great! Will try that out.

authors: awongCM koistya

repo: koistya/react-static-boilerplate


text:
multi language support has been added.

@kom-senapati i have made the necessary changes can you please review it in the deployment as im not able to upload images/vids on github  right now.

Deployment is not done till now

Just take ss using Ctrl+Shift+S and paste that here

Add changes in PR Body and share a video or ss of before, after changes

Any updates ?? @T-Rahul-prabhu-38 reply or I will close this pr and unassign you!

repo: kom-senapati/bot-verse


text:
Settings popover broken from editor.js v2.26 and up

With the update to editor.js v2.26 the settings popover does not open anymore.
Expected behavior:
On click of the ce-toolbar__settings-btn button the settings popover opens.
Current behavior:
On click of the ce-toolbar__settings-btn button nothing happens.
Error in console:
editorjs-toggle-block@latest:7 Uncaught TypeError: Cannot read properties of undefined (reading 'lastChild') at I.renderSettings
Looks like the whole ce-settings div in ce-toolbox is missing.

Seeing the same thing when using the latest version via jsdelivr 0.3.11

Editorjs v2.26 brought a lot of breaking changes for this plugin (DOM structure was changed), I recommend if possible to keep on editorjs v2.25

@somejonus  @Thimows Thanks a lot for reporting the issue, it was solved and the solution is available in v0.3.14. Please let us know if this solution proves helpful to you.

authors: MarioRodriguezS Thimows miguelnietoa somejonus

repo: kommitters/editorjs-toggle-block


text:
Styleguide generator improvements

[x] don't do nested css on komponent styleguide components, since postcss-nested (or postcss-nesting) is not installed by default with webpacker
[x] Add a style.css stylesheet file at frontend/components/komponent/ to have generic css like (body { margin: 0; }
[x] Add link to Styleguide in header
[ ] Use rouge or an other, to colorize cdoc printed code

Others ideas

[ ] List properties as table with required and default value at beginning or end of a component page

I was thinking a bit more about the styleguide those days and I'm not sure if having styleguide always in application side is a good idea.
Having it customizable is a good idea, but not sure it is by default. I think that I could be a pain to keep styleguide up-to-date in future.
I've an alternative proposal.

Stop using components for headers, sidebar, footer, header. All this html could be in layout.
Having all styleguide component html, css in gem
Having generator only update routes and create the pack file that load js and css present in gem (not sure if that is easy)

To let user do customization, we could do the following

Having an option in generator to create views files (like devise do)
Use css variables for colors and fonts
Make views should be loaded from app first, then gem. To be sure we can overwrite views from app.

repo: komposable/komponent


text:
added handlebars icons and sketch file

again, apologies for the lack of font integration.

@Chippd Thanks, it's been merged in!

authors: Chippd oligibson

repo: konpa/devicon