text:
Update README.md

improved docs

This is hacktoberfest spam. To the repo owner: close and add a tag "invalid" or "spam" to this PR for this spam effort have to results.
To the spammer: I hope your t-shirts never arrive.

authors: BilalSabugar renancaraujo

repo: serde-rs/json


text:
use iterators instead of a custom MapVisitor type

This can be done to SeqVisitor, too.
I was mostly wondering about the design. It's shorter (167 additions and 418 deletions), but it might be unnecessarily complex, due to the closure indirection.
The interesting part is in serde/src/ser/mod.rs, serde/src/ser/impls.rs and serde_tests/tests/token.rs. (the rest is just codegen)
I'll implement this for json to see a real world example

hmmm... doesn't work, because the Serializer serializing the map might not be the one serializing the map keys/values. E.g. json uses a special MapKeySerializer to forbid all non-string-serializing keys.
To do this in a non-dynamic-dispatch way, we'd probably need HKT. Or we redesign the entire system. Instead of having a single Serialize trait, we could have gazillions of SerializeAsX traits (one for every method of Serializer). Then we can probably create really unreadable generic errors that will prevent the use of maps with non-string-keys in json.

Coverage decreased (-0.2%) to 69.577% when pulling 3878eae05f37888bd274462b27692e7d3966fb59 on oli-obk:map_iterators into 6c2af4da7a3a9f5e79c5e812dbbdb858bdd43b76 on serde-rs:master.

:umbrella: The latest upstream changes (presumably #352) made this pull request unmergeable. Please resolve the merge conflicts.

Then we can probably create really unreadable generic errors that will prevent the use of maps with non-string-keys in json.

Hehe. Yeah, I'm not fond of our situation, but I couldn't figure out a better option. I'm glad you're at least starting to explore passing closures around. Back when I was building the core serde model, closures were still in a bit of a weird state, so I didn't really do much research on if things would be better with a more strategic closure or two.
Hm. Perhaps rather than the closure doing move |s: &mut S| k.serialize(s), what if instead we did move |s: &mut S| s.serialize_key(k)? Maybe the json serializer could then intercept this call and pass it to a sub-serializer that'll error on non-string keys?
Also, SerializeAsX seems a bit scary to me :)

Closing in favor of https://github.com/serde-rs/serde/pull/437.

source: gharchive/pull-request

authors: coveralls dtolnay erickt homu oli-obk

repo: serde-rs/serde

license_type: permissive

license_source: bigquery


text:
Getting error to open about wrong workspace folder - 3.6.9 (Win x64)

Hi there,
This is an oldest bug (3.5+ i think), after install and trying to open it by second time, I got an exception before splash screen.
Looking up about this error, I realize that Dbeaver didn't create his .dbeaver for my Win user 'Carlos Spohr', instead, his created a folder 'Carlos%Sphor'. See it below:

But log file was created at 'Users/Carlos Spohr/.eclipse/', same folder that my Eclipse create his files.

However, here is log about exception talking about permissions that DBeaver doesn't have at 'Program Files' folder.
!ENTRY org.eclipse.equinox.preferences 4 2 2016-05-30 21:35:58.223
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.preferences".
!STACK 0
java.lang.IllegalStateException: The platform metadata area could not be written: C:\Program Files\DBeaver\workspace\.metadata.  By default the platform writes its content
under the current working directory when the platform is launched.  Use the -data parameter to
specify a different content area for the platform.
	at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61)
	at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:129)

Here complete stack:
https://gist.github.com/carlosjrcabello/134c5c5e072c36d9e5322398e80b7392
Is there any mode to change current workspace as Eclipse, or, configure it to create inside User folder in .dbeaver folder ?
Appendix
I didn't any customization about system permissions, just default installation folder and checking 'Reset settings' before install. I've reinstalled by four or five times cleaning any residual files or configurations.

Update,
Using standalone versions (zip) it's OK, but still writes configurations inside .eclipse folder...previously versions was .dbeaver.

This looks like a conflict with running version of DBeaver. Sometimes Eclipse executable just hangs during shutdown and never finish.
Reboot should solve this problem. Or killing dbeaver.exe in Task Manager (or killall dbeaver).

Hi there,
So, I did what you said, and I still getting this same error. I'll try to install it in my standalone apps folders to test it.

OK, installing it in other folder (not Program Files), all seems working normally. I'll continue testing it on next releases to see this occurs again.
If anyone else report an issue like this, I think you can close it.
Thanks Serge.

I was able to reproduce that.
The problem is in space in the profile name.

Yep,
DBeaver puts a '%' between words of profile name, at least, on Windows.
On Wed, Jun 1, 2016 at 7:39 AM, Serge Rider notifications@github.com
wrote:

I was able to reproduce that.
The problem is in space in the profile name.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/serge-rider/dbeaver/issues/495#issuecomment-222956148,
or mute the thread
https://github.com/notifications/unsubscribe/AAm7R-833Bepz344MEyFuqJUZanxTzcsks5qHWFigaJpZM4IqGOV
.

--
Atenciosamente,
Carlos Alberto Junior Spohr Poletto
carlos.inf.br

Please test EA version
http://dbeaver.jkiss.org/files/ea/

Worked Serge!

DBeaver got correctly user folder and not creating a new one with '%', and I not received an error about workspace permission.
Tested with dbeaver-ee-3.6.9-x86_64-setup.exe binary.

Ok, thanks for testing.
I'll release hotfix version 3.6.10 on the next week.

source: gharchive/issue

authors: carlosjrcabello serge-rider

repo: serge-rider/dbeaver


text:
Compile error on simple numpy example

Hi,
We are teaching pythran in our Master in Math at Pau university. We designed a small example in numpy where pythran is not that good in order to ask the students to write the algorithm with loops. Then it wortks better :) mse_numpy.py compiled last year with

pythran 0.12.1
python 3.10
gcc 8.3.0.

But this year it does not with

pythran 0.14.0
python 3.11 (or 3.10)
gcc 11.4.0

(hpc) mhaefele@snow:hands-on_optimize $ pythran mse_numpy.py
WARNING: Compilation error, trying hard to find its origin...
Compilation error, trying hard to find its origin...
WARNING: Nope, I'm going to flood you with C++ errors!
Nope, I'm going to flood you with C++ errors!
CRITICAL: Cover me Jack. Jack? Jaaaaack!!!!
E: error: Command "gcc -pthread -B /home/mhaefele/.conda/envs/hpc/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/mhaefele/.conda/envs/hpc/include -fPIC -O2 -isystem /home/mhaefele/.conda/envs/hpc/include -fPIC -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_BLAS -I/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/pythran -I/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/numpy/core/include -I/home/mhaefele/.conda/envs/hpc/include/python3.11 -c /tmp/tmpybzw_xbx.cpp -o /tmp/tmpvwtvu0xf/tmp/tmpybzw_xbx.o -std=c++11 -fno-math-errno -fvisibility=hidden -fno-wrapv -Wno-unused-function -Wno-int-in-bool-context -Wno-unknown-warning-option" failed with exit status 1
Cover me Jack. Jack? Jaaaaack!!!!
E: error: Command "gcc -pthread -B /home/mhaefele/.conda/envs/hpc/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/mhaefele/.conda/envs/hpc/include -fPIC -O2 -isystem /home/mhaefele/.conda/envs/hpc/include -fPIC -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_BLAS -I/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/pythran -I/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/numpy/core/include -I/home/mhaefele/.conda/envs/hpc/include/python3.11 -c /tmp/tmpybzw_xbx.cpp -o /tmp/tmpvwtvu0xf/tmp/tmpybzw_xbx.o -std=c++11 -fno-math-errno -fvisibility=hidden -fno-wrapv -Wno-unused-function -Wno-int-in-bool-context -Wno-unknown-warning-option" failed with exit status 1

Thanks for your help
mse_numpy.py
import numpy as np

#pythran export py_descent(float64[], float64[], float64, int)
def py_descent(x, y, mu, N_epochs):
    N = x.shape[0]
    f = 2 / N
    err = np.zeros(N)
    w = np.zeros(2)
    grad = np.zeros(2)

    for _ in range(N_epochs):
        err[:] = y - (w[0] + w[1] * x)
        grad[:] = f * err.sum(), f * (err.dot(x))
        w[:] = w + mu * grad
    return w

main program
import time
import numpy as np

from mse_numpy import py_descent

def generate_datas(N):
    np.random.seed(444)
    sigma = 0.1
    noise = sigma * np.random.randn(N)
    X = np.linspace(0, 2, N)
    Y = 3 + 2 * X + noise
    return X,Y

N = 1000000
X,Y = generate_datas(N)

t0 = time.time()
w = py_descent(X, Y, mu=0.001, N_epochs=10000)
t1 = time.time()

print(w)
print(f'Solve time: {t1-t0} seconds')

Can you provide the full output (with pythran -v) ? Maybe we can make it so pythran output is compatible with gcc 11 too

(side note: I do hope that in the future, the loop and non loop version become equivalent in terms of speed ;-))

Hum...
(hpc) mhaefele@snow:hands-on_optimize $ pythran -v mse_numpy.py
INFO:      sys file exists: /home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/pythran/pythran.cfg
INFO: platform file exists: /home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/pythran/pythran-linux.cfg
WARNING:     user file does not exist: /home/mhaefele/.config/.pythranrc
INFO: pythranrc section [pythran] is valid and options are correct
INFO: pythranrc section [typing] is valid and options are correct
INFO: pythranrc section [backend] is valid and options are correct
INFO: pythranrc section [compiler] is valid and options are correct
running build_ext
DEBUG: new_compiler returns <class 'distutils.unixccompiler.UnixCCompiler'>
building 'mse_numpy' extension
INFO: C compiler: gcc -pthread -B /home/mhaefele/.conda/envs/hpc/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/mhaefele/.conda/envs/hpc/include -fPIC -O2 -isystem /home/mhaefele/.conda/envs/hpc/include -fPIC

creating /tmp/tmpf1s6_nw9/tmp
INFO: compile options: '-DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_BLAS -I/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/pythran -I/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/numpy/core/include -I/home/mhaefele/.conda/envs/hpc/include/python3.11 -c'
extra options: '-std=c++11 -fno-math-errno -fvisibility=hidden -fno-wrapv -Wno-unused-function -Wno-int-in-bool-context -Wno-unknown-warning-option'
INFO: gcc: /tmp/tmp087exp_h.cpp
In file included from /tmp/tmp087exp_h.cpp:34:
/home/mhaefele/.conda/envs/hpc/lib/python3.11/site-packages/pythran/pythonic/numpy/dot.hpp:18:10: fatal error: cblas.h: No such file or directory
   18 | #include <cblas.h>
      |          ^~~~~~~~~
...

I was scared by facing tons of C++ errors, but only BLAS was missing. With BLAS installed, it works like a charm.
It would be great indeed that loop and non loop versions give similar performance !
For now

Original numpy : 71.2s
Original numpy + pythran : 26.4s
Loop refactored + pythran : 7.3s

What would already great in the mean time is to have an indicator given by pythran of the "code quality" generated. Like

this part of the code are numpy constructs I know how to optimize well, no need to go for a loop refactoring
however this part of the code I am not sure, if you really want to get the best perf, maybe it is worth having a try to design a loopy algorithm.

No clue to which extent how much work it is or event if it is possible at all, but as a user, it would be great :)
Anyway problem solved, thanks for pushing me to add the '-v' option

Closing as the original issue has been solved.

authors: mathaefele serge-sans-paille

repo: serge-sans-paille/pythran


text:
CoreNLP c# sample fails on 'ner' load

I faced the following issue with old CoreNLP c# sample:
line 22: props.setProperty("annotators", "tokenize, ssplit, pos, lemma, parse, ner, dcoref");

fails on loading 'ner'. I have removed ner and dependent dcoref and sample worked fine.
Could you please check what is wrong with 'ner' or it was my environment issue? (New c# sample contains my comment about this issue and needed to be reverted if it's local problem)

I persevere learning StanfordNLP.net. Finally it pays off.
I have tested the latest c# sample code on CoreNLP. It works.  Thanks sergey for timely support.

https://github.com/sergey-tihon/Stanford.NLP.NET/blob/master/samples/Stanford.NLP.CoreNLP.CSharp/Program.cs
//ner fails -> dcoref depends on ner
this issues has been discussed before in one of the closed issues. This has to be included.
props.setProperty("ner.useSUTime", "false");

Thanks @Davtomas. I have updated the sample to avoid confusion

authors: Davtomas volhav

license: mit


text:
Rewrite details page URLs using mod_rewrite

If mod_rewrite is supported, update details page URLs from http://showslowserve.my.net/showslowbase/details/?urlid=NNN&url=http://www.example.com/path/to/file.html to http://showslowserve.my.net/showslowbase/NNN/www.example.com/path/to/file.html
or something similar.
All old URLs should redirect to the new URLs. That is to support backwards compatibility AND easy linking from external sources using only url parameter (e.g. NetExport extension opens the details page using URL only).

Taking a look at this now :)

authors: ryandoherty sergeychernyshev

repo: sergeychernyshev/showslow


text:
feature request: PlatformIO

Hi,
nowerdays PlatformIO is my tool of choice over the Arduino IDE.
Will it be possible to use esp32partitiontool with PlatformIO in the future?
Thanks.

@jankoscharf
Hi there.
There is possibility for it to work externally or be integrated as tool in PlaltformIO environment, the execution and file management would have to be rewritten in that case.
Please suggest how will that work since I'm not familiar with it. How does it work where is the esp32 sdk located and so on.
Making it work externally as jar application would be easiest without integration to any IDE or platform, you would just provide the esp32 sdk tools folder.  As I said  if you have info you could share that could help feel free to do so, but without any information on how PlatformioIO does things with esp32 I'm afraid I can't start working on this idea.

I have never worked with java nor am I familiar with vscode extensions (which PlatformIO also is one). Maybe this helps a little: https://code.visualstudio.com/docs/java/extensions
I think the "ESP-IDF" extension installation process defines the location where the esp32 sdk is located.

What framework are you using in PlatformIO? I'm trying it out right now with Arduino framework to see how it does stuff.

Yes, Arduino framework. I like to use the Arduino third party libs.

Sure I will look into this maybe I can make it work with Arduino framework inside PlatformIO maybe as external jar I don't think I can integrate as tool as I did in Arduino IDE unless you have resources for that.

Sadly no. I would have to start at zero. IMHO a standalone app would be an option I think. As far as I know java is perfectly flexible to run on all the important platforms. I use Linux only...

Yes even this tool runs on any platform haven't tried mac bc I don't have it. But yes I think external jar you can execute would work. All you need to do is provide  esp32 sdk folder so it can use tools for creating partitions.bin file spiffs and merge commands. You would have to have python3 as well. First step would be to get UI to work as external app then add functionally back to the UI.

Platformio will use a *.csv partition file located in a project source tree which is configured in the platformio.ini:
[env:esp32]
platform = espressif32
board = <YOUR ESP32 BOARD>
framework = arduino

board_build.partitions  = MY_PARTITION_FILE.csv

So one can keep the partition file to use in the source tree, no need to install in the espressif path explicitly.

Platformio will use a *.csv partition file located in a project source tree which is configured in the platformio.ini:
[env:esp32]
platform = espressif32
board = <YOUR ESP32 BOARD>
framework = arduino

board_build.partitions  = MY_PARTITION_FILE.csv

So one can keep the partition file to use in the source tree, no need to install in the espressif path explicitly.

I'm talking about esp32 sdk tools directory. We need tools (esptool partition gen tool spiffs tool etc) to create output files. But thanks for the tip about csv location. So far I got UI to be standalone and im trying out python command to see if it can execute without any IDE There will be a console output window so you can see whats going on

So far I got UI to be standalone

nice! I tried to do that without success, how did you manage?

So far I got UI to be standalone

nice! I tried to do that without success, how did you manage?

I'm doing it from ground up. The main issues were loading of csv file & updating the ui with that data and resources images. I added the resources images to src dir as well as making it load default csv content for now. Load and save thing i removed(I removed all code from fileManager I'm adding stuff back as I go)

I was able to get python to work on windows at least next is log output and will try to create partitions.bin for test.

As for python we will use the one provided with platformio most users have global python installed but I won't ask users to have it so we will use already included one in this dir for windows %HOMEPATH%.platformio\python3 linux ~/.platformio/python3

Configuration complexity is increased with platformio.ini, the applet will need to work with a config extractor and get the paths from an argument list.
The best pick in order to have platformio to collaborate with java (e.g. provide additional paths to src, sdk and build folders) is to use the platformio config api from a python script that is referenced in the ini file.
The python script runs after library resolving and before compiling the sketch, and makes it possible to insert a modal call the java applet with argument values collected from python.
platformio.ini
[env:ESP32PartitionTool]
extra_scripts = ESP32PartitionTool.py

ESP32PartitionTool.py
Import('env')
from os.path import join, realpath
import subprocess

board = env.BoardConfig()
build_core       = board.get("build.core", "").lower()
partition        = board.get("build.partitions")
build_variant    = board.get("build.variant")

print( "****************************************************" )
print( "Build Core    = " + build_core )
print( "Partition     = " + partition )
print( "Build Variant = " + build_variant )
print( "****************************************************" )

command = 'java -cp "/path1:/path2" -jar "/path/to/ESP32PartitionTool.jar" "' + partition + '"'
return_code = subprocess.call(command, shell=True)

Configuration complexity is increased with platformio.ini, the applet will need to work with a config extractor and get the paths from an argument list.
The best pick in order to have platformio to collaborate with java (e.g. provide additional paths to src, sdk and build folders) is to use the platformio config api from a python script that is referenced in the ini file.
The python script runs after library resolving and before compiling the sketch, and makes it possible to insert a modal call the java applet with argument values collected from python.
platformio.ini
[env:ESP32PartitionTool]
extra_scripts = ESP32PartitionTool.py

ESP32PartitionTool.py
Import('env')
import subprocess

class_path       = "/path1:/path2"
jar_path         = "/path/to/ESP32PartitionTool.jar"
board            = env.BoardConfig()
build_core       = board.get("build.core", "").lower()
partition        = board.get("build.partitions")
build_variant    = board.get("build.variant")

print( "****************************************************" )
print( "Build Core    = " + build_core )
print( "Partition     = " + partition )
print( "Build Variant = " + build_variant )
print( "****************************************************" )

command_format = 'java -cp "%s" -jar "%s" "%s" "%s" "%s"'
command = command_format % (class_path, jar_path, partition, build_variant, build_core)

print (command)

return_code = subprocess.call(command, shell=True)

I'm going to create a initial commit in the new branch , if you want to contribute to this as well you can do a pr in that branch. I will set some basics to get started but later on board type and bootloader offests for sppifs and merge upload commands would need to be implemented.

I will set some basics to get started but later on board type and bootloader offests for sppifs and merge upload commands would need to be implemented.

SPIFFS/createBin/mergeBin buttons won't be needed since the applet will be called in the middle of a platformio build flow where the next step is to create said binaries.
Those buttons only make sense with Arduino IDE, because the Sketch Data Upload in not a standard Arduino IDE tool and requires another java plugin, but platformio already handles the data upload with the uploafs target flag.

Oh I see well. I will commit what I got now. Some basics done for starters, both linux and windows  scripts produce runnable jar. We will go from there I guess.

both linux and windows scripts produce runnable jar

can you either confirm java -jar /path/to/ESP32PartitionTool.jar is enough to run the app or provide an example of the necessary command line?
I can see the new standalone branch but I don't see any changes for the standalone version there, so there's not much I can do.

both linux and windows scripts produce runnable jar

can you either confirm java -jar /path/to/ESP32PartitionTool.jar is enough to run the app or provide an example of the necessary command line?
I can see the new standalone branch but I don't see any changes for the standalone version there, so there's not much I can do.

I deleted that branch and created new one with better name. The changes I've made are live. Yes after building it with build.sh you can run it in output folder java -jar jar name.jar

thanks, I already got some results by turning the repository into a platformio package
{
  "name": "tool-esp32partitiontool",
  "version": "1.4.0",
  "description": "Partition utility gui (requires java) to create custom partition table",
  "keywords": ["tools","build tools","filesystem"],
  "license": "MIT",
  "system": ["linux_x86_64"],
  "repository": {"type": "git","url": "https://github.com/serifpersia/esp32partitiontool"}
}

However platformio always uses the main branch or the latest release and this will eventually collide with Arduino-IDE context, so I wonder how those build variants will be maintained in the future.
If both versions could coexist in the same codebase it would prevent dissociation and reduce the workload.
Real world example: if the next natural thing to do with a popular app is to translate the GUI (implementing l10n), you don't want to integrate twice every translatable label.

Should the platformio project move to new repo then?

Should the platformio project move to new repo then?

I don't like this idea, it means two projects to maintain, the tech debt is depressing.
I'm researching a way to have both versions to coexist, added two java files InputArduino.java and InputPlatformio.java with a duplicate class name:
package com.serifpersia.esp32partitiontool;

final class AppSettings {
  public AppSettings() {
  }
}

then I can use one of these shell scripts to build for platformio or arduino without getting the duplicate class error:
compile jar for platformio
# Find Java files and exclude InputArduino.java, write to 'class' file
find src/main/java/com/serifpersia/esp32partitiontool -type f \( ! -iname "InputArduino.java" \) > class
# Call the compiler and specify the 'class' file instead of source folder
javac -Xlint -d "$bin_folder" @class

compile jar for arduino
# Find Java files and exclude InputPlatformio.java, write to 'class' file
find src/main/java/com/serifpersia/esp32partitiontool -type f \( ! -iname "InputPlatformio.java" \) > class
# Call the compiler and specify the 'class' file instead of source folder
javac -Xlint -d "$bin_folder" @class

it's probably possible with windows too, found an example on SO but can't test it:
@echo off
for %%i in (src/main/java/com/serifpersia/esp32partitiontool/*.java) do if /i not "%%~i" == "InputArduino.java" javac "%%~i"

finally found a project layout that allows me to create both Tool-implementation and standalone jar files.

I still don't have a clear idea of what was removed from the arduino version, so I'll just try to restore it to what is strictly necessary for both scenarios, which means I'll probably get rid of the redundant SPIFFS/mergeBin/createBin features that platformio/arduino tools already handle.
I observed are a few minor problems with the standalone version rendering though: some text elements (buttons, labels, combos) are using bold font, text in the setup window becomes truncated.

And the help window has a duplicate decoration :rofl:

@jankoscharf before going further I'd be happy to have your feedback on that temporary(*) implementation, it requires to create a new python file in the project folder and add a new environment in platformio.ini; obviously it also requires java.
(*) The url to the platform_packages zip file is pointing to a test release on my fork, and that fork will eventually be deleted after the code is merged.
platformio.ini
[env:build-partition]
platform               = espressif32
board                  = esp32dev
extra_scripts          = partition_manager.py
platform_packages      = tool-esp32partitiontool @ https://github.com/tobozo/esp32partitiontool/releases/download/v1.4.1/esp32partitiontool-platformio.zip

partition_manager.py
Import('env')
import os.path
import sys

# add esp32partitiontool to path
sys.path.append(os.path.abspath( env.PioPlatform().get_package_dir("tool-esp32partitiontool") ))
# import module
from esp32partitiontool import *
# run module
load_pm(env)

I implemented it on my machine and it works! Great to see!
I would like to recommend https://docs.platformio.org/en/latest/scripting/custom_targets.html#command-shortcut
This will give you a "Custom" menu entry in your "Project Tasks" where you can run the script.
The way it is integrated at the moment will be annoying very fast because you have to close the esp32partitiontool window every time you compile/upload.

@jankoscharf awesome tip, thanks!
I've updated the test package as per your suggestion, the custom target name is edit_partition
pio run -e build-partition -t edit_partition

I'm not sure if I'm doing something wrong or the script .py is not working well on windows but whenever I select the build-partition env i get errors and i cant seem to run the edit_partition task

I'm using your hello world example with changes to board and memory size and pointing to default.csv file
Here is my log:
[platformio]
src_dir                 = src
default_envs            = hello-world

[env]
framework               = arduino
platform                = espressif32
board                   = esp32s2dev
board_build.partitions  = partitions/default.csv
board_upload.flash_size = 4MB

[env:hello-world]
upload_speed            = 1500000
monitor_speed           = 115200

[env:build-partition]
extra_scripts          = partition_manager.py
; platform_packages      = tool-esp32partitiontool
platform_packages      = tool-esp32partitiontool @ https://github.com/tobozo/esp32partitiontool/releases/download/v1.4.1/esp32partitiontool-platformio.zip

task edit_partition not being available in vscode is a consequence of the python script error
looks like env.PioPlatform().get_package_dir("tool-esp32partitiontool") returned None, which is strange since the tool appears to be installed twice:
Tool Manager: tool-esp32partitiontool@1.4.0 has been installed!

I've created a new test release with incremented version number (v1.4.2) and updated example, I hope this one will register better in vscode 🤞
The python script has been updated in the example, and the URL to the plugin has changed accordingly in platformio.ini:
https://github.com/tobozo/esp32partitiontool/releases/download/v1.4.2/esp32partitiontool-platformio.zip

I've tested an even simpler ini file, package and target registration are hoisted to the top environment, so that the edit_partition target can be used against any environment:
[platformio]
src_dir                 = src
default_envs            = hello-world

[env]
framework               = arduino
platform                = espressif32
board                   = esp32dev
; register the "tool-esp32partitiontool" package
platform_packages       = tool-esp32partitiontool @ https://github.com/tobozo/esp32partitiontool/releases/download/v1.4.2/esp32partitiontool-platformio.zip
; register the "edit_partition" target
extra_scripts           = partition_manager.py

[env:hello-world]
board_build.partitions  = partitions/defaultcsv
board_upload.flash_size = 4MB
upload_speed            = 1500000
monitor_speed           = 115200

I managed to get it working only with the manual method I had to modifiy py script for my platform windows instead of linux and i was able to use the esp32partition task
[platformio]
src_dir                 = src
default_envs            = hello-world

[env]
framework = arduino
platform = espressif32
board = esp32dev
; register the "tool-esp32partitiontool" package
;platform_packages       = tool-esp32partitiontool @ https://github.com/tobozo/esp32partitiontool/releases/download/v1.4.2/esp32partitiontool-platformio.zip
; register the "edit_partition" target
platform_packages      = tool-esp32partitiontool
extra_scripts           = partition_manager.py

[env:hello-world]
board_build.partitions  = partitions/default.csv
board_upload.flash_size = 4MB
upload_speed            = 1500000
monitor_speed           = 115200

{
  "name": "tool-esp32partitiontool",
  "version": "1.4.2",
  "description": "Partition utility gui (requires java) to create custom partition table",
  "keywords": ["tools","build tools","filesystem"],
  "license": "MIT",
  "system": ["windows_amd64"],
  "repository": {"type": "git","url": "https://github.com/serifpersia/esp32partitiontool"}
}

@tobozo  I managed to make it work the only change was to version release and removal of system parameter in json I made a test release and directed it to that url and it worked

I have modifyied create_platformio_package.sh to overwrite the version value in package.json according to the tag name before creating the archive, so keep in mind the name of the tag you'll create from the release page before publishing a new release is very important, it must be semver compliant and have a version number superior to the last version (e.g current version is 1.4.4 and next version should be 1.4.5)

@tobozo  Could you look into why does it fail at this task. I'm not able to create auto release. Both package.json version 1.4.5 matches with the tag I give it but it fails. For some reason it deleted the 1.3 release as well...
Run softprops/action-gh-release@v2
with:
files: /home/runner/work/esp32partitiontool/esp32partitiontool/archives/**
token: ***

⚠ Unexpected error fetching GitHub release for tag refs/tags/v1.4.5: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration

1.4 looks in a good shape :+1:
what's for the next iteration?

fix platformio design (help window still strange and bold coming out of nowhere)
automate pio pkb publish to get the package in platformio registry, also it simplifies the platformio.ini (no more URL needed, version selection possible)
restore arduino-specific buttons/panels

I'm closing this as complete, tested both tools in both platforms and no issues. I had issues with versioning it didn't like x.x hs to be x.x.x for it to work as well as arduino zip has  to be specific casings idk why that should matter. With x.x versioning it was using old build from 10/03  and not zip from the release but doing 1.4.0 fixed that.
For Arduino specific things a new button will be next to help/about to open a dialog there the spiffs and merge tooling will reside.
Once again nice job @tobozo  I wouldn't have done it as tool integration like you did instead standalone app you execute out side of your IDE of choice.

authors: jankoscharf serifpersia tobozo

license: MIT

license_source: github-api


text:
You must feed a value for placeholder tensor 'output' with dtype float and shape [?,1]

I have a neural net that has an input of [None, 353] and an ouput of [None, 1]. This however throws this error: You must feed a value for placeholder tensor 'output' with dtype float and shape [?,1] The output tensor in cppflow has shape -1, 1 and the input has -1, 353.
What is a proper way to solve this?
I have tried saving the model.pb again with the shape [1, 353] and [1, 1] but the same error came up.

Hi,
Could you provide a small example so it is possible to repeat and reproduce your problem? I cannot get the source of the problem without having a look at the Python code to generate the .pb and the C++ code to perform the inference.
If possible, try to post a small piece of code with just the minimum code to be able to reproduce the error.

Hey thanks for the quick respone, I really appreciate that.
I have created a Google Colab notebook (just like python notebook) in which I create the model, train and save etc. Here is a link of a copy of that notebook: link. You can edit it also if you want. I can also provide some example data if you like, but just random values should work as training.
The C++ is code is just this:
        Model model("./model/model.pb");
	model.restore("./model/model.ckpt");
	Tensor input(model, "input");
	Tensor prediction(model, "output");

        Board* board = new Board();
	board->setBoard("4b3/8/8/8/8/8/2B3P1/8 b - - 0 1");
	Feature* feature = new Feature(board);
	std::vector<double> featureVector = feature->generate();
	std::vector<float> featureVectorFloat(featureVector.begin(), featureVector.end());

        input.set_data(featureVectorFloat);
	model.run(input, prediction);
	auto result = prediction.get_data<float>();

Then at the model.cpp on this line: TF_SessionRun(this->session, nullptr, io.data(), iv.data(), inputs.size(), oo.data(), ov, outputs.size(), nullptr, 0, nullptr, this->status); it fails with the error in the title.

Hey, I think the problem is not related with the shapes. I would say that when you declare your model in the Python code you are calling 'output' to the actual target of the model (the labels or y_hat).
In your code self._y is called 'output' but actually it is not the output, is the data you feed to compare with. The actual output is self.y, the result of the network.
I would try to change the name of self._y to something else, like 'target' and rename self.y to 'output`. You can use tf.identity. Like this:
# Input variable and label
self.x = tf.placeholder(tf.float32, shape=[None, 353], name="input")
self._y = tf.placeholder(tf.float32, shape=[None, 1], name="target")

# Output
self.y = tf.identity(self.buildNetwork(self.x), name='output')

Now the C++ code should work. When you ask for the 'output' tensor, you will get your desired tensor, the result of applying the network.
Hope it works.

Thanks for the fast response, it still has the same error after building and training the network like that. Any other suggestions?

I have tried your code and I got the same error. I have tried to change what I suggested and now it is working. I guess you or I are missing something. I did not train, just create the model, initialize it and run it on C++ and it is working. I show you here the code I have used.
Python
I just changed the name of self._y to 'target' and the name of self.y to 'output'. I also changed the path where the model is saved.
tf.disable_eager_execution()
class Model(object):

    def __init__(self, restore=None):

        self.index = 0
        # Input variable and label
        self.x = tf.placeholder(tf.float32, shape=[None, 353], name="input")
        self._y = tf.placeholder(tf.float32, shape=[None, 1], name="target")

        # Output
        self.y = tf.identity(self.buildNetwork(self.x), name='output')

        # Build the optimizer
        self.cost = tf.reduce_mean(tf.abs(tf.subtract(self.y, self._y)))
        self.optimizer = tf.train.AdamOptimizer().minimize(self.cost)

        # Add ops to save and restore all the variables.
        self.saver = tf.train.Saver()
        # Operation to initialize the variables
        self.init = tf.global_variables_initializer()
        # Start session
        self.sess = tf.Session()

        self.sess.run(self.init)

        #self.sess.run(self.y, feed_dict={self.x: feature})
        with open('model.pb', 'wb') as f:
            f.write(tf.get_default_graph().as_graph_def().SerializeToString())

    # Build the network structure
    def buildNetwork(self, x):

        # Weights and biases for the first hidden layer
        globalW = tf.Variable(tf.random_normal([17, 11], stddev=0.35),
                              name="globalW")
        globalB = tf.Variable(tf.random_normal([11], stddev=0.35),
                               name="globalB")
        pieceW = tf.Variable(tf.random_normal([208, 100], stddev=0.35),
                              name="pieceW")
        pieceB = tf.Variable(tf.random_normal([100], stddev=0.35),
                               name="pieceB")
        squareW = tf.Variable(tf.random_normal([128, 60], stddev=0.35),
                               name="squareW")
        squareB = tf.Variable(tf.random_normal([60], stddev=0.35),
                               name="squareB")

        # Weights and biases for the second hidden layer
        w2 = tf.Variable(tf.random_normal([171, 75], stddev=0.35),
                              name="W2")
        b2 = tf.Variable(tf.random_normal([75], stddev=0.35),
                              name="B2")

        # Weights and biases for the output layer
        w3 = tf.Variable(tf.random_normal([75, 1], stddev=0.35),
                         name="W3")
        b3 = tf.Variable(tf.random_normal([1], stddev=0.35),
                         name="B3")

        # Network operation

        # First hidden layer
        globalOutput = tf.add(tf.matmul(tf.slice(x, [0, 0], [-1, 17]), globalW), globalB)
        print(globalOutput.shape)
        pieceOutput = tf.add(tf.matmul(tf.slice(x, [0, 17], [-1, 208]), pieceW), pieceB)
        squareOutput = tf.add(tf.matmul(tf.slice(x, [0, 17+208], [-1, -1]), squareW), squareB)
        layer1Output = tf.concat([globalOutput, pieceOutput, squareOutput], axis=1)

        # Second hidden layer
        layer2Input = tf.nn.relu6(layer1Output)
        layer2Output = tf.add(tf.matmul(layer2Input, w2), b2)

        # Output layer
        layer3Input = tf.nn.relu6(layer2Output)
        layer3Output = tf.add(tf.matmul(layer3Input, w3), b3)
        return tf.tanh(layer3Output)

model = Model()

C++
Just a small piece of code (based on examples/load_model and on what you provided in your message) to load the model and run with some data.
#include "../../include/Model.h"
#include "../../include/Tensor.h"

#include <numeric>
#include <iomanip>

int main() {
    Model model("../model.pb");
    model.init();

    Tensor input(model, "input");
    Tensor prediction(model, "output");

    std::vector<float> data(353);
    std::iota(data.begin(), data.end(), 0);
    input.set_data(data);

    model.run(input, prediction);
    auto result = prediction.get_data<float>();

    std::cout << "END" << std::endl;

}

Could you try if this piece of code is working for you?

I forgot to name the Tensor 'outputy', after that I get this error: You must feed a value for placeholder tensor 'input_2' with dtype float and shape [?,353] I actually named the input placeholder input, so I don't know why it is doing this. I will try your example now.

Does the error appear executing the python script or the c++ code?
Which version of TensorFlow and on which OS are you running?

It appears when running C++. I added this: std::cout << TF_Message(status); to the status_check to get that output. Windows 10 Pro build 18362.900, Tensorflow from the download link you provided with cpu-only support version 1.15

When i show all variables in the Python snippet that I posted I don't get an operation called 'input_2'. There is one 'input', one 'target' and several other operations but there isn't a 'input_2'. May you be trying a different code snippet?

That is weird, when I copy-paste your snippet it does not have an input_2. Where did you download the Tensorflow from that you include in model.h and tensor.h? I have a tensorflow folder in my project which I reference, possibly that might have to do something with it?

From the official TensorFlow C API website. Then, does the snippet that I posted work? I think the error is not related with TF versions but rather with small typos or bugs in the code (like naming wrong a variable).

The problem with this on Windows is that you can't install the same you would on Linux and Mac. So I import the official C .lib file in my project and add the .dll to my PATH variable. But the include in my code still have to be changed to a header file, which is not installed globally. Thats why I also have to download Tensorflow repo and include header files from there.

But I guess that's not related to the errors.

Ok I got yours to work somehow, you are probably right. I still don't know why tho.
I copy pasted yours into my colab and that works, but what is the difference other than the names?

Names are how you declare which operation or tensor you want to use or feed. With the code that you first showed me, you were trying to get a placeholder as an output, while it was supposed to be an input, the target. I changed the name of the _y placeholder to 'target' and y to 'output', so when you ask for 'output' in the c++ code, it will run the operation related to y, that is, the whole network. Before you were trying to run the _y operation, but that's not an operation, is just a placeholder, so you cannot get anything from it.

Alright, that actually seems to be the problem. However, when doing inference it always returns -1.000000 instead of a value between -1 and 1. I did do inference in python on a single sample which did work. Any suggestions?

Did you save and restore the checkpoint properly?

Yeh i think so, i did this:
        Model model("./totalmodel/model.pb");
	//model.init();
	model.restore("./totalmodel/model.ckpt");
	Tensor input(model, "inputoud");
	Tensor prediction(model, "outputoud");
	Board* board = new Board();

	board->setBoard("r1b1k2r/2p2ppp/p1np1n2/1pb1p3/4P3/1BNP1N1P/1PP2PP1/R1B1R1K1 b kq - 0 1");

	Feature* feature = new Feature(board);
	std::vector<double> featureVector = feature->generate();
	std::vector<float> featureVectorFloat(featureVector.begin(), featureVector.end());
	input.set_data(featureVectorFloat);
	model.run(input, prediction);
	auto result = prediction.get_data<float>();

And i did this in python:
self.saver.save(self.sess, "drive/My Drive/Winchess-data/newest-model/model.ckpt")

The saver is done when creating the model like so:
self.saver = tf.train.Saver()

I have saved the checkpoint. When restoring it in Python it works, in C++ it only returns -1 or 1.
https://wetransfer.com/downloads/606f20cc885b4f422f6cf9aa09ea438920200611192224/09d37571e81abb79f68fcbc84eb49c2020200611192241/e24a56 here you have my saved files so you can try yourself

I tried your model in C++ and Python and using the same input I got the same output. For example feeding an input tensor of 353 values with the number (-0.05) I got an output of 0.51. I chose that number just to show an example with a value between -1 and 1. I show you the code I used:
c++

#include "../../include/Model.h"
#include "../../include/Tensor.h"

#include <numeric>
#include <iomanip>

int main() {
    Model model("../newnorm.pb");
    model.restore("../newnorm.ckpt");
    //model.init();

    Tensor input(model, "inputoud");
    Tensor prediction(model, "outputoud");

    std::vector<float> data(353);
    for (int i=0; i<353; i++)
        data[i] = -0.05;
    input.set_data(data);

    model.run(input, prediction);
    std::cout << "Output: " << prediction.get_data<float>()[0] << std::endl;
}

Python
import tensorflow.compat.v1 as tf
import numpy as np
tf.disable_eager_execution()

sess=tf.Session()
saver = tf.train.import_meta_graph('newnorm.ckpt.meta')
saver.restore(sess,tf.train.latest_checkpoint('./'))

graph = tf.get_default_graph()
input = graph.get_tensor_by_name("inputoud:0")
output = graph.get_tensor_by_name("outputoud:0")

output = sess.run(output, feed_dict={input: np.ones((1, 353)) * -0.05})

print(output)

May your problem be that you are not feeding the same values in your c++ code and your python code. If both of the above code snippets output the same for you that means that everything works fine. I would recommend you to review your code, and ensure that you are feeding the same values in Python and in C++.
Also, the topic of the issue has deviated from the initial error. I think is not related to the repository, but rather with the use of TensorFlow.

Alright I got it to work. I am doing the training in Google Colab with a link to my Google Drive. Apparently there was some issue with either saving with the same name or the TF session was not cleared properly. I got it working by resetting the runtime(colab specific) after each training session or reload of the model.
Thanks a lot for your help

I'm glad you made it work. I proceed to close the issue.

authors: GertjanBrouwer serizba

repo: serizba/cppflow


text:
Adds archiver package to deps for sst-cdk forked package

The archiver package is a aws-cdk dependency that gets converted to a dev dependency and causes sst errors. This adds it back as a dependency.
fixes #2681

Taking a look.

authors: jayair zackheil

repo: serverless-stack/sst


text:
sls deploy failed due to API SOCKET Hang up

Hello Team,
I did follow your documentation to set up serverless and ibm cloud functions credentials. I am able to deploy functions onto ibm cloud without sls, but when i tried deploying simple function using sls - it fails. Also note that sls deploy works just fine for aws lambda.
Below is error
ServerlessError: Failed to deploy function (my_service-dev-hello) due to error: Unknown Error From API: socket hang up
Stack Trace
ServerlessError: Failed to deploy function (my_service-dev-hello) due to error: Unknown Error From API: socket hang up
at ow.actions.create.then.catch.err (/home/faasdev/IBMcloud/node-js/my_service/node_modules/serverless-openwhisk/deploy/lib
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:391:22)
at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:422:17)
at variables.populateService.then.then (/usr/local/lib/node_modules/serverless/lib/Serverless.js:111:33)
at processImmediate (timers.js:632:19)
at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:98:6)
at serverless.init.then (/usr/local/lib/node_modules/serverless/bin/serverless:43:28)

Hello @karanrk.
What IBM Cloud region were you deploying to? Can you check the issue is still occuring? Sometimes there are intermittant network or platform issues.

Hi @jthomas
I was deploying to Dallas (api.ng.bluemix.net). Issue still persists and has been there for around 5 days now.Please let me know next steps.
Thanks!

Not sure if below information helps,
I am behind my company's proxy and When i tried deploying on GCP i get this error
Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (_tls_wrap.js:1179:19)
at Object.onceWrapper (events.js:285:13)
at TLSSocket.emit (events.js:202:15)
at TLSSocket.EventEmitter.emit (domain.js:439:20)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:391:22)
at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:422:17)
at variables.populateService.then.then (/usr/local/lib/node_modules/serverless/lib/Serverless.js:111:33)
at processImmediate (timers.js:632:19)
at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:98:6)
at serverless.init.then (/usr/local/lib/node_modules/serverless/bin/serverless:43:28)

Hmm is your companies proxy blocking traffic?
Can you access IBM Cloud Functions using the IBM Cloud CLI? If you run ibmcloud wsk action list what happen?

IBM Cloud CLI works fine, ibmcloud wsk action list returns  all the actions that i have created. I wonder how serverless works with Lambda and doesn't complain at all.

Hmm I'm struggling to think of a reason for this I'm afraid...
Could you try deploying to a different IBM Cloud region?

Even though i have set proxy, but somehow the plugin seems to ignore the
proxy settings. After taking a stab at the TCP dump to check the network
traffic looks like plugin is unable to reach my proxy. Could you please let
me know how do i make this proxy available to plugin.
Best Regards,
Karan
On Mon, Feb 11, 2019 at 9:49 AM James Thomas notifications@github.com
wrote:

Hmm I'm struggling to think of a reason for this I'm afraid...
Could you try deploying to a different IBM Cloud region?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/serverless/serverless-openwhisk/issues/156#issuecomment-462425172,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFExOu9KMUaMbvtCz2tW7I3_niiSQzmlks5vMa0jgaJpZM4al5Pt
.

Looking at other tickets referenced from this issue, it looks like AWS does have support for proxies
https://github.com/serverless/serverless/blob/master/lib/plugins/aws/provider/awsProvider.js#L139-L148
This hasn't yet been implemented in the OpenWhisk plugin. If you would like to have a go at implementing this feature, we'd happily accept a PR?

Could you please point me to openwhisk sdk documentation ?

https://github.com/apache/incubator-openwhisk-client-js is the JS SDK used to interact with the OpenWhisk platform API.

I'm closing this issue as the downstream client library now supports proxies and can be used with the framework.

authors: jthomas karanrk

repo: serverless/serverless-openwhisk


text:
update spec main branch

Many thanks for submitting your Pull Request :heart:!
What this PR does / why we need it:
update spec main branch
Special notes for reviewers:
Additional information (if needed):

I just have seen that 0.8 spec has been released, will update this.

@antmendoza yeah just created the tag a little earlier. let me know if i missed anything

ready @tsurdilo

@antmendoza thanks a lot! feel free to merge whenever you want

authors: antmendoza tsurdilo

repo: serverlessworkflow/sdk-typescript


text:
What is the purpose of the terminate parameter in the End Definition?

What is the question:
What is the purpose of the terminate parameter in the End Definition?
"If true, completes all execution flows in the given workflow instance"
My understanding is that a workflow instance can only be in one state at a time. Some states do perform some degree of parallel logic, but even those have to wait for every branch to end before the implementation should handle the "end".
I suppose n-of-m Parallel states can explicitly end before every branch returns, but I'd have thought what happens to these excess branches should be left up to the implementation so long as it has zero impact on the workflow instance itself.

@alankm i will add a big section on workflow isolation and workflow instances in the near future which will explain all of this.
This will also introduce "adhoc" property for workflow definitions which will make things with "default" and "terminate" end events much clearer as well.
Long story short, the "default" end event completes the execution of a particular workflow execution path. If there are other paths still active (imagine a switch state with two paths after one finishes, the other still waits for an event for example), that other path can still be active and complete. Once there are no "active" paths the workflow instance can fully complete.
With "terminate", you are terminating the workflow instance once such end state is reached, meaning if there are any other active paths at that time, those are terminated as well.
With "adhoc" this behaviour is slightly different, but I will explain all then when I get to it. Hope this helps for now.

@alankm i will add a big section on workflow isolation and workflow instances in the near future which will explain all of this.
This will also introduce "adhoc" property for workflow definitions which will make things with "default" and "terminate" end events much clearer as well.
Long story short, the "default" end event completes the execution of a particular workflow execution path. If there are other paths still active (imagine a switch state with two paths after one finishes, the other still waits for an event for example), that other path can still be active and complete. Once there are no "active" paths the workflow instance can fully complete.
With "terminate", you are terminating the workflow instance once such end state is reached, meaning if there are any other active paths at that time, those are terminated as well.
With "adhoc" this behaviour is slightly different, but I will explain all then when I get to it. Hope this helps for now.

@tsurdilo "switch with multiple paths"... Are you suggesting that an event switch should continue listening to events even after switching?
Looking forward to the upcoming section on workflow isolation and workflow instances, because right now I still can't see what this is for.

@tsurdilo "switch with multiple paths"... Are you suggesting that an event switch should continue listening to events even after switching?
Looking forward to the upcoming section on workflow isolation and workflow instances, because right now I still can't see what this is for.

@alankm sure thing. with addition of "adhoc" terminate end defs will become really important as that will be the only way to terminate a workflow instance...will ping you to review pr

@alankm sure thing. with addition of "adhoc" terminate end defs will become really important as that will be the only way to terminate a workflow instance...will ping you to review pr

@alankm https://github.com/serverlessworkflow/specification/pull/223 is completed now, and it should pretty much explain the question in this issue.

@alankm https://github.com/serverlessworkflow/specification/pull/223 is completed now, and it should pretty much explain the question in this issue.

@tsurdilo I've left a comment on #223
I still can't think of a good use for this stuff. Nearly everything in that pull request is already possible in ways that I find simpler, clearer, and more intuitive. I think workflows should end when they end, never loop.

@tsurdilo I've left a comment on #223
I still can't think of a good use for this stuff. Nearly everything in that pull request is already possible in ways that I find simpler, clearer, and more intuitive. I think workflows should end when they end, never loop.

@alankm I think the discussion got a bit side-tracked and I'm glad we're having it. To your original question, I think we can improve on the wording of it. So it currently says
If true, completes all execution flows in the given workflow instance
To my understanding, marking a state as terminating the workflow instance means that after that state has completed, the instance is removed - i.e. all the context data can be discarded. When there's correlation, multiple invocations can be correlated on the same workflow instance, i.e. an event can re-enter an existing workflow instance. But when a state is reached that terminates it, then the instance is subsequently removed.
Would it be less confusing if it said:
If true, terminates the workflow instance after the completion of this state
But this wording would conflict with compensation, which triggers a series of compensating states (to my understanding after this state). Can anyone think of a better description?

@alankm I think the discussion got a bit side-tracked and I'm glad we're having it. To your original question, I think we can improve on the wording of it. So it currently says
If true, completes all execution flows in the given workflow instance
To my understanding, marking a state as terminating the workflow instance means that after that state has completed, the instance is removed - i.e. all the context data can be discarded. When there's correlation, multiple invocations can be correlated on the same workflow instance, i.e. an event can re-enter an existing workflow instance. But when a state is reached that terminates it, then the instance is subsequently removed.
Would it be less confusing if it said:
If true, terminates the workflow instance after the completion of this state
But this wording would conflict with compensation, which triggers a series of compensating states (to my understanding after this state). Can anyone think of a better description?

Maybe we're lacking terminology. We could introduce "invocation" as "an activation of the workflow. An invocation may correlate with a previous invocation, in which case the workflow should start with workflow data containing the outcome of the previous invocation."

Maybe we're lacking terminology. We could introduce "invocation" as "an activation of the workflow. An invocation may correlate with a previous invocation, in which case the workflow should start with workflow data containing the outcome of the previous invocation."

@manuelstein this is all included in the pr https://github.com/serverlessworkflow/specification/pull/223 maybe we can look.
Regarding compensation, it is explicitly defined, just like the terminate end event, and i think it states that compensation is done "before the state completes", so i think there is no overlap in the two.

@manuelstein this is all included in the pr https://github.com/serverlessworkflow/specification/pull/223 maybe we can look.
Regarding compensation, it is explicitly defined, just like the terminate end event, and i think it states that compensation is done "before the state completes", so i think there is no overlap in the two.

authors: alankm manuelstein tsurdilo

repo: serverlessworkflow/specification


text:
Adding Richard Gibson to list of community contributors

Signed-off-by: Tihomir Surdilovic tihomir@temporal.io
Many thanks for submitting your Pull Request :heart:!
Please specify parts this PR updates:

[ ] Specification
[ ] Schema
[ ] Examples
[ ] Extensions
[ ] Roadmap
[ ] Use Cases
[x ] Community
[ ] TCK
[ ] Other

What this PR does / why we need it:
Adding Richard Gibson to list of community contribs
Special notes for reviewers:
Additional information (if needed):

@gibson042 I added you to the "Independent" list as I didn't know if you wanted to be associated with a company or not. Let me know if I need to update. Thanks for your contributions and being part of the community!

"Independent" will be fine. Thanks!


text:
Authentication with phone number and password

Describe the solution you'd like
We want to start using Serverpod where i work, but the auth system that we're using is phone number and password, I hope you consider adding that to the supported auth
I think adding phone number and password will not be that hard to implement, because it will be similar to email and password auth
Describe alternatives you've considered
I tried to use email and password auth as  a work around and send the phone number instead of the email and disable email verification but didn't work out

There is a PR from the community on this here: https://github.com/serverpod/serverpod/pull/1362. I haven't had the chance to deal with it yet but I agree, this is a nice feature to add!

Issue created for this here: https://github.com/serverpod/serverpod/issues/2050
Closing this issue as it will be tracked there.

authors: Errechydy Isakdl SandPod

repo: serverpod/serverpod


text:
🛑 sgx1.serverssh.net is down

In b144767, sgx1.serverssh.net (http://sgx1.serverssh.net:10000/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sgx1.serverssh.net is back up in 0644aab.

repo: serversshnet/server-status


text:
🛑 sg5vless.ipservers.xyz is down

In 7e263de, sg5vless.ipservers.xyz (sg5vless.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg5vless.ipservers.xyz is back up in 22f6b4e.

repo: serversshnet/uptime


text:
🛑 id1vless.ipservers.xyz is down

In 50cfe2e, id1vless.ipservers.xyz (id1vless.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id1vless.ipservers.xyz is back up in 2f0b0fc.


text:
🛑 fr-ray.ipservers.xyz is down

In a1aea22, fr-ray.ipservers.xyz (fr-ray.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: fr-ray.ipservers.xyz is back up in 3d2e3f0.


text:
🛑 sg5-ray.ipservers.xyz is down

In fab06dd, sg5-ray.ipservers.xyz (sg5-ray.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg5-ray.ipservers.xyz is back up in 25fba09 after 41 minutes.


text:
Hotfix/Issue-610

Fix Issue #610

This change is

Jenkins Build:
BES_GitHub_BUGFIX_IT Nr. 185

repo: servicecatalog/development


text:
Set Theme Colors at runtime

Summary
Set the basic theme colors at the Profile page. These are:

the primary color,
the theme-background-color
the theme-background-color for input fields,
the theme-foreground-color,
the navigation background color and
the navigation foreground color.

Details
List of :root variables that must be affected:

--oscm-primary: primary color
--oscm-main: background color
--oscm-main-input-color: background color for input fields.
--oscm-main-font-color: foreground color for text
--oscm-navbar-color: background color for navigation
--oscm-navbar-links-color: foreground color for navigation

Acceptance criteria

[ ] All above colors are updated in the UI upon click of "Save" in the Profile page
[ ] UI Tests
[ ] UI Screenshots
[ ] UI Customizability is preserved

Additional context
N/A.

Main work is already done by @KabacinskiPiotr. Left over is:

Naming of the variables
Labels on the UI
UI Tests

authors: GoebelL farmakiG

repo: servicecatalog/oscm


text:
add: 路由

ref: https://github.com/servicemesher/istio-handbook/issues/69
在完成项的 [ ] 内填入 x，如：- [x]

[x] 我认可本书的版权信息：本书著作权归属于 ServiceMesher 社区，我将保留对所修改内容的署名权。
[x] 我已阅读参与贡献说明，并加入了 istio-handbook-wg GitHub team。
[x] 我已修改 PR 的标题格式（新增内容 PR 的标题格式为：add: 文档标题，修改已有内容 PR 的标题格式为 update：文档标题）。
[x] 我已在该 PR 已指明解决的 issue 链接：issue#1。
[x] 我已参考 PR#186 文章内容的格式。
[x] 我已阅读并保证所提交 PR 符合写作规范。

LGTM.

authors: ethanhanjiahao wangfakang

repo: servicemesher/istio-handbook


text:
all PR labels are removed when merging

https://github.com/web-platform-tests/wpt/pull/13511

also web-platform-tests/wpt#13681

Yes, this happens on every PR.

authors: CYBAI jdm


text:
Use std::env::var instead of env! in build srcipt

Recent versions of Cargo seems to not provide $OUT_DIR and some other environment variables anymore when building build scripts.
CC @upsuper

@bors-servo r+

:pushpin: Commit 9e57da0 has been approved by nox

:hourglass: Testing commit 9e57da0 with merge ec298ae...

:sunny: Test successful - status-travis

authors: SimonSapin bors-servo nox

repo: servo/rust-bindgen


text:
Add cgl-rs, cocoa-rs, and io-surface-rs to Homu.

These are now enabled for Travis CI.

r? @edunham or @larsbergstrom or @Manishearth or @Ms2ger

:umbrella: The latest upstream changes (presumably #80) made this pull request unmergeable. Please resolve the merge conflicts.

@larsbergstrom rebased and ready for re-r?

@bors-servo: r+

:pushpin: Commit a86c306 has been approved by larsbergstrom

:hourglass: Testing commit a86c306 with merge 45a19ed...

:sunny: Test successful - travis

authors: bors-servo larsbergstrom metajack

repo: servo/saltfs


text:
Add an env-example file

Creating an env-example file will help the new contributors easily recognize and have an idea about the environment setup variable.
Can you please assign this issue to me under the GSSOC label?
Thanks

@gunner26735 You should check the README file, it contains the environment variables.

Yes correct but similar to an env-sample which is given in client I thought there should be a sample for server as well.
Because NODE_ENV value and MongoDB sample URI are not mention anywhere that's why I created this issue.

Please add a .env.sample file, also update README.md accordingly and also provide a link for the .env.sample file. In the .env.sample file add a comment for NODE_ENV that it's expected value is production.

@gunner26735 Please add a .env.sample file, also update README.md accordingly and also provide a link for the .env.sample file. In the .env.sample file add a comment for NODE_ENV that its expected value is production.

In the README.md file write .env.sample in place of .env sample
Change the name pf file from .env-sample to .env.sample
Follow the client side .env.sample file for writing the values of variables
Comment the value of MONGODB_URI given by you after the giving the variable value
Change the comment for production variable as just "Expected value 'production'"

@gunner26735 Please do the following changes

In the README.md file write .env.sample in place of .env sample
Change the name pf file from .env-sample to .env.sample
Follow the client side .env.sample file for writing the values of variables
Comment the value of MONGODB_URI given by you after the giving the variable value
Change the comment for production variable as just Expected value "production"

@sethshivam11 can you please assign the gssoc label?


text:
feat: Batched Uploads and Green Threads

This contains a few features.

Send messages to AWS SQS using the send_message_batch (via tq.insert_all) which allows sending 10 messages at a time. This results in a 10x speedup.
Add GreenTaskQueue as an option. Users need to manually monkeypatch their application to make it work. This can be useful in NUMA or vCPU environments.
Added delay_seconds to insert and insert_all which allows you to delay a message's visibility in the queue.

@nkemnitz latest changes include allowing the use of generators instead of lists in insert_all for both GreenTaskQueue and TaskQueue. Additionally, we do not monkey patch automatically. Instead, if the socket standard library is not monkey patched and you are using GreenTaskQueue, we issue a warning containing instructions on how to monkey patch your application. TaskQueue continues to work.

repo: seung-lab/python-task-queue


text:
Docs : Fix Slides typo errors

complete Dependency Injection part
compete LazyLoading part

a full review of ChangeDetection section is coming soon ...

Ready to merge!

Merged, thanks for your contribution @JRPoinsot

authors: JRPoinsot geromegrignon

repo: sfeir-open-source/sfeir-school-angular


text:
Feature / Referral Signup and Referral (#321)

feat: signup referrer logic

rename: referrer to referee in the ticket payload

refactor: remove reward pair

format: reformat proto files

fix: inclue referral and referee campaign in the factory

feat: check existing category receiver for the referee

feat: validate source uid for the referee signup

feat: validations for signup referral

Description

Type of change
Please check the options that are relevant. This PR introduces

[ ] Patch: Bug fix (non-breaking change which fixes an existing issue)
[ ] Minor: New feature (non-breaking change which adds new functionality)
[ ] Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Features Description

[ ] NA

Test Cases

[ ] NA

Documentation

Checklist:

[ ] I have added change type (major|minor|patch) in the PR
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Codecov Report
Attention: 246 lines in your changes are missing coverage. Please review.

Comparison is base (87db989) 11.83% compared to head (f2ba9ca) 11.79%.

Files
Patch %
Lines

x/reward/types/ticket.pb.go
0.71%
139 Missing :warning:

x/reward/types/reward_signup_referee.go
0.00%
35 Missing :warning:

x/reward/types/reward_signup_referrer.go
0.00%
32 Missing :warning:

x/reward/types/reward_signup.go
0.00%
19 Missing :warning:

x/reward/types/reward.go
0.00%
15 Missing :warning:

x/reward/types/campaign.go
0.00%
4 Missing :warning:

x/reward/keeper/msg_server_reward.go
83.33%
0 Missing and 2 partials :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #324      +/-   ##
==========================================
- Coverage   11.83%   11.79%   -0.04%
==========================================
  Files         346      348       +2
  Lines       44417    44642     +225
==========================================
+ Hits         5257     5267      +10
- Misses      38679    38894     +215
  Partials      481      481

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter scorpioborn

repo: sge-network/sge


text:
Trouble with Xcode 9.4.1

Rasterio 1.0.3 wheels for Python 2.7.15 that I built with Xcode 9.4.1 crashed on geometry transform tests. Specifically in the GEOS STRtree code at the usual spot (see issues in Shapely and Fiona trackers). I'm going to revert to XCode 8.2.1, which I used to make the 1.0.0-1.0.2 wheels.

Even after reverting to Xcode 8.2.1, I'm still stymied in my attempts to make wheels for 2.7.

Closing.

repo: sgillies/frs-wheel-builds


text:
ValueError: too many values to unpack (expected 2)

While running train.py I encountered this error
Traceback (most recent call last):
File "train.py", line 329, in <module>
main()
File "train.py", line 116, in main     epoch=epoch)
File "train.py", line 178, in train
scores, _ = pack_padded_sequence(scores, decode_lengths, batch_first=True)
ValueError: too many values to unpack (expected 2)
Even though  scores, _ = pack_padded_sequence(scores, decode_lengths, batch_first=True) asks for 2 values.

Edit: I found that scores, _ = pack_padded_sequence(scores, decode_lengths, batch_first=True) solved the issue


text:
How to read data?

I found only a function to write data to serial port, how to read from?

I'm working on it. I will publish new version asap

is it add read data function? i need it too! please

You can use read function now in version 0.1.0

authors: nickvlastt qiuguian sgsm74


text:
Some attempt at change log and known bugs

I will keep updating this post for known / reported bugs.
I will fix and post update for latest fixes here on github  - so github will have all the latest versions.
Once I have enough change I will updated the version on NPM (this is primarily because you cannot ever republish a version on NPM and i don't want to keep track of too many versions)
==============03/05/2020
Publishing from ST ->MQTT with not command key there were errors.
updated mbs-server.js still not updated to version 1.05
==============01/23/2020
Retain message setting was not working correctly.
waiting to update to version 1.05 (have not published as yet)
in the meantime update mbs-server.js is on github
===========11/28/2019
Erroneously uploaded my dev environment in version 1.0.3 on NPM
had to republish to NPM with new version 1.0.4
==================== 11/21/2019
I just released version 1.0.3 on NPM and alpine and rpi docker images on docker hub.
Please check the read me page for the latest directions.
This a major upgrade to vesion 1.0.2
Changes in version 1.0.3
Significant upgrades
1 Overlapping MQTT wildcard subscription enabled
2 Completely removed and refactored the joi packages and jcsrc - every node js package is now at their latest versions
3 Changed location of config files for docker implementation
4 Providing docker images for Alpine and RPI platform
=========================================11/18/2019

If no config files is specified the server crashes
If using wildcards in MQTT topic server could crash

Fix for above two pushed to github on 11/16/19 - just download updated mbs-server.js
11/17/2019 fix pushed to NPM as version 1.0.2

If bunch of entries removed from device config file could crash on restart.
11/18/2019 fixed but not released - will be part of next major release.
workaround is to delete json files from data folder and restart.
the working dev copy is available in test folder as mbs-server-v2.js
https://github.com/sgupta999/mqtt-bridge-smartthings/blob/master/test/mbs-server-v2.js

MBS Bridge can not be installed as a SmartApp. Error message:
No signature of method: script_app_metadata_ec6b5236_7d7f_482a_aee9_7ac577594215.metadata() is applicable for argument types: (script_app_metadata_ec6b5236_7d7f_482a_aee9_7ac577594215$_run_closure1) values: [script_app_metadata_ec6b5236_7d7f_482a_aee9_7ac577594215$_run_closure1@66c36eba] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)


text:
Allow imports from esm.

Hey I found my setup struggled with the way exports are set up.
Recently node switched the default package type being "module" which your code isn't set up as ESM yet.
This gets things working in my env at least. Just have to do this to import: import {createDAG} from "@sha1n/dagraph"
Cheers @sha1n !

Have you tried import createDAG from '@sha1n/dagraph'; like I successfully do here?
I don't mind adding export { createDAG };, but there is no need to change the module system to commonjs.

Have you tried import createDAG from '@sha1n/dagraph'; like I successfully do here?
I don't mind adding export { createDAG };, but there is no need to change the module system to commonjs.

You're not using ESM in that project: https://github.com/sha1n/fungus/blob/4380bd9843c902fd449b1af4708a6001ff885583/tsconfig.json#L5
If you have managed to import it in an ESM project just let me know, I'm more than happy to adapt.
With the setup in our project we get differing behaviour between vitest and running with tsx. It gets confusing :D

Oh, I see now... it's been a while since I did anything serious with typescript I guess.
I would love to migrate my project to ESM actually, but that will require a more serious effort.
I'll merge and release 🙏

I would love to migrate my project to ESM actually, but that will require a more serious effort.

I've been dealing with it a bit lately - I'll see if I can whip something up. The main complication is if you want to maintain backwards compatibility with CJS.


text:
Fix random video function that wasn't working

Since I changed script.js to a module, I had to redefine sendToRandomVideo for it to work.

Thanks!


text:
Q: Should I reinstall shadcn-ui after I delete my node_modules folder and yarn.lock?

As the title said, I am facing problems with toast and it is not working. after I use it and click a button, the toast doesn't appear anywhere.

found the problem, I forgot to add Toaster in my layout

repo: shadcn-ui/ui


text:
Toast import

added toaster.tsx component to match the example in the docs when using shadcn add toast

Thanks :heart:

related

authors: jocarrd tigawanna

repo: shadcn/ui


text:
Fix github release build failure

Need to fix the rhi/dawn issue:
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: _deps/dawn-src/lib64/libdawn.so: error adding symbols: file in wrong format

We should consider just build libdawn.so for aarch64.
Please note that this issue needs to be fixed as P0 since it is blocking us from creating a release.

Why don't we just disable WebGPU for non-Windows platforms, for the time being? I thought that was the original plan?

Also, I had the impression that @skallweitNV was working on this. (?)

@skallweitNV Tells me the plan is to disable WebGPU backend on Linux, for now.

Yes, that's the immediate fix in #5186. However, the correct fix will be to use a proper cmake toolchain file to cross-compile slang for linux/aarch64. This will correctly set the CMAKE_SYSTEM_PROCESSOR variable that slang-rhi depends on to select the correct dawn library. I have already setup the full build matrix for dawn binaries. So once the slang side is fixed, we can enable all builds again.

Given

We should consider just build libdawn.so for aarch64.

and

I have already setup the full build matrix for dawn binaries

I'll assign this to @skallweitNV, then.

Slang's current cmake support already include Linux aarch64 builds.

@skallweitNV what's left for this one? Do we still have a build failure?

The release build works. For now WebGPU is disabled for Linux builds. In slang-rhi everything is done to support Linux for both x86_64 and aarch64 platforms. To get it all working the slang project needs to setup proper cmake cross-compilation for linux/aarch64 using a cmake toolchain file. Then we can re-enable WebGPU for Linux by removing this block: https://github.com/shader-slang/slang/blob/master/external/CMakeLists.txt#L74

@aleino-nv could you add the the cmake item to your list?

@bmillsNV This stuff is usually a bit of a time sink, at least for me -- is this really a priority?
That is to say, do we really need to support running Slang natively on mobile devices right now? At least this should have no impact on the demo we're working on.

@westlicht we use native asrch64 machine in the ci to create a slang release for Linux aarch64. Doesn't slang-rhi support native aarch64 build?

Closing as done.

authors: aleino-nv bmillsNV csyonghe skallweitNV westlicht

repo: shader-slang/slang


text:
add DNS-over-TLS support

I used the 'tcp-tls' defined by miekg/dns to switch DNS-over-TLS connection routine

那 dns over https呢?好像作者原来的ecs不支持https?

那 dns over https呢?好像作者原来的ecs不支持https?

给 TCP -53 加上 TLS 是简单的，但是支持 DoH 是相当复杂的工作，无力在 overture 基础上做这件事。我和一个朋友计划增加 SS-Android 中 local-dns 的工作，等我这个 patch 被合并之后，她会接着提交 SS-Android 中的界面配置。这样就不一定非得远程8.8.8.8了，如果国内有靠谱的 DoT 服务做 local-dns 可能体验会更好 —— 我是 dns.rubyfish.cn 的运行维护者，相信 DoT/DoH 是未来的趋势

@lix5027 虽然现在支持DNS-over-TLS 解析的服务器很少，但我觉得这是趋势，天朝网络的dns投毒、运营商劫持不可能一直持续下去。Android 9.0 内置的网络配置已经支持制定Private DNS了，并且作为主要新特性在今年的I/O大会上提出。随着Google的提倡和支持，相信国内支持DNS-over-TLS 的服务器会越来越多。【google大法好！我是google脑残粉..虽然我的工牌是...咳咳，那不重要】
总之我已经修改了shadowsocks Android APP 的源码，支持用户从上层页面配置localDns和privateDns，已经发起了PR，希望能通过，也希望天朝的网络环境越来越好（笑）

repo: shadowsocks/overture


text:
Can't run ss-server with v2ray-plugin and -f option.

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic
installed from apt-get, shadowsocks-libev 3.1.3
when running with
'ss-server -f pid --plugin v2ray-plugin --plugin-args server', the server failed siliently to start.
when run without -f pid option, server works fine.
when testing with obfs, the server works with -f option. Any idea what's going on?

never mind. this issue appears fixed in shadowsocks-libev 3.3.3


text:
Localisation issue

When using the game client with a locale other than enUS, an error occurs with an empty localization table.
The solution in the patchtable.lua file is to change the code section:
  for loc, _ in pairs(pfDB.locales) do
    if pfDB[db][loc] and pfDB[db][loc.."-turtle"] then
      loc_update = pfDB[db][loc.."-turtle"] or pfDB[db]["enUS-turtle"]
      patchtable(pfDB[db][loc], loc_update)
    end
  end

to
  for loc, _ in pairs(pfDB.locales) do
-- fix for other than enUS locale
    if pfDB[db][loc] and ( pfDB[db][loc.."-turtle"] or pfDB[db]["enUS-turtle"] ) then
      loc_update = pfDB[db][loc.."-turtle"] or pfDB[db]["enUS-turtle"]
      patchtable(pfDB[db][loc], loc_update)
    end
  end

Turtle offers multi-locales now?

Not yet, but I'm working on RU localization, I can give it for testing.

Hello. I did as you advised. But the text is still not translated.
for loc, _ in pairs(pfDB.locales) do
if pfDB[db][loc] and ( pfDB[db][loc.."-turtle"] or pfDB[db]["ruRU-turtle"] ) then
loc_update = pfDB[db][loc.."-turtle"] or pfDB[db]["ruRU-turtle"]
patchtable(pfDB[db][loc], loc_update)
end
end
Is this true or not?
If you're interested, I can help with the translation of quests.

This is not localization itself, this is just a fix for the addon so that it does not fall off when localization is enabled.
Localization can be downloaded from the link: RU_Turtle_small but it is not completed yet.
Unfortunately, I don't have much time to finish, so the process is slow.

Can you provide Chinese localization? I can translate it myself

Can you provide Chinese localization? I can translate it myself

Hi @tjjxlbj. Sure, I have now added the required zhCN translation tables in the latest version (https://github.com/shagu/pfQuest-turtle/commit/84191d31c37b174d01eecce8e5fe8a0eb3d466a0). Please send your translations with a github pull request or via Discord (shagu#7155).

How do I add your friends with Discord?

There's a green "Add Friend" Button

authors: WarMEN3 pristn shagu tjjxlbj

repo: shagu/pfQuest-turtle


text:
Not supported on BLU smartphone

Tested the component on MotoG4, Samsung and BLU Studio Mega. Didn't work only on BLU device.
BLU products: https://bluproducts.com/home/
BLU Studio Mega: https://www.gsmarena.com/blu_studio_mega-8709.php

@lucasgouvea This is strange, because this library is simply a UI layer and it will be visible on all platforms where React Native is runnable. Are you able to run React Native apps on those mobile?

Sorry, the issue is on RNCamera.

authors: lucasgouvea shahnawaz

repo: shahnawaz/react-native-barcode-mask


text:
Mouse cursor only hidden when placed at the center of the video player

When playing a video, the cursor remains visible when being placed on the left or the right side of the video player, it is hidden when being place in the center of the video player. These positions seem to be related to the div.shake-rewind-container and div.shaka-fast-forward-container seen in the (edited) screenshot (the green area is the one where the cursor is hidden).

If the play button is shown, the cursor will not be hidden with the rest of the UI no matter where it is on the screen.

@joeyparrish
After commenting out the cursor tracking everything works fine. So you're right.

@FiberOnePL what lines did you comment out?

Would you please consider sending a PR?

The cursor is also not hidden along with the rest of the UI if it's placed on other elements such as the center play button, if enabled, or the progress bar area.

When the cursor is placed over the big play button, the DevTools debugger does break if the breakpoint is set to the line that sets the cursor style to 'none' , but the cursor does not disappear.

@joeyparrish
After commenting out the cursor tracking everything works fine. So you're right.

Can you create a PR with your change? Thanks!

@joeyparrish @avelad
I hid the elements that overlap in css, this is only a temporary solution but not a permanent solution.

@avelad #7458 doesn't resolve the issue, the cursor is still not hidden if it's placed over other UI elements such as the center play button or the video controls.

Recursively changing the cursor feels hacky.  Shouldn't elements below the container inherit the cursor style instead?

Recursively changing the cursor feels hacky. Shouldn't elements below the container inherit the cursor style instead?

cursor styles with more specificity (that take precedence) are defined in CSS for many of those elements

in the case of the big play button, the user agent stylesheet overrides its cursor style

Hrm... then maybe we should adjust those as well.  Maybe some of them are not needed?

authors: FiberOnePL OothecaPickle avelad joeyparrish

repo: shaka-project/shaka-player


text:
🛑 Shakedown Social - Uploads is down

In 13e478d, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 617 ms

Resolved: Shakedown Social - Uploads is back up in f39a617.

repo: shakedown-social/upptime


text:
API request

GET https://fonoapi.freshpixl.com/v1/getdevice?token=token&brand=sumsung&device=a8
I've tried this url to get info but it return No Matching Results Found. If I exclude brand parameter, it can return data.
Is there anythings wrong ?

your brand name is wrong it should be samsung not sumsung


text:
Hosting for the bot, which one would you use?

hosting for the bot, does anyone know???

i use digital ocean

Home server, pterodactyl

https://github.com/shamhi/HamsterKombatBot/issues/208

See this:

https://github.com/shamhi/HamsterKombatBot/issues/208
https://github.com/shamhi/HamsterKombatBot/pull/219

Do you know how to use Termux for bots?

Did you find it or u can try mine (yesterday I made a fork for termux runnable).

Do you know how to use Termux for bots?

Did you find it or u can try mine (yesterday I made a fork for termux runnable).

Please share your fork with me

Do you know how to use Termux for bots?

Did you find it or u can try mine (yesterday I made a fork for termux runnable).

Please share your fork with me

https://github.com/DineshValor/HamsterValor

Render.com & Koyeb.com

authors: ButCheR-PRO DineshValor GiuseppeRazzetto borcrypto mrranger vheske

repo: shamhi/HamsterKombatBot


text:
Settings sync keeps bothering me with a pop up to share my ID every single time I save a file and it auto uploads my settings

It's super annoying. Hasn't done this before. Is this a new "feature"? Because it's suuuper annoying.

pop up to share my ID every single time

Can you share the image of pop.

it auto uploads my settings

You can always turn off the autoUpload from the settings.

@shanalikhan
Thank you, here is an image:

I don't have a problem with it autouploading my settings. I actually prefer it to do that. It's the the pop up that find troublesome.

Can you show your extension Global Settings , that are in User/custom sync settings.json file.
You can remove your token.
I need to reproduce to see.

You're asking for my global settings.js right?
Here's a link to the gist https://gist.github.com/jcklpe/1bed6c262105cbde0f3f857a7fae6163

I'm experiencing the same issue even though I have Quiet sync enabled. Each time I modify a setting or download a new plugin this popup shows.

authors: GijsGoudzwaard jcklpe shanalikhan

repo: shanalikhan/code-settings-sync


text:
Is there an option to clear all existing votes?

I tried reseting all the votes count in my inherited model by updating the num_vote_up, num_vote_down and vote_score.
I can iterate over all the instances via vote manager and remove the votes. But I want to avoid that.
Is there a simpler way I can clear all existing votes from the vote table as well or that is the only way and I need to do that asynchronously?

No method for this now, The all method get a queryset of all votes by a user,  you can use the code in this method and remove the user argument. https://github.com/shanbay/django-vote/blob/master/vote/managers.py#L147

authors: CuriousLearner shellfly

repo: shanbay/django-vote


text:
Templating errors

Hi, it's me again (https://github.com/shannonmoeller/handlebars-wax/issues/6).
Just one more question. Is it possible to produce an error when partial used in template was not found? I caught myself checking resulting html file multiple times.
Regards

Hmm. Could have sworn I had a test case for that. I'll whip one up. In the meantime, is it possible the error is getting swallowed somehow? Perhaps by a Promise?

Yes, it is possible. I'm using https://github.com/shannonmoeller/gulp-hb that wraps https://github.com/shannonmoeller/handlebars-wax. Maybe it's a problem in gulp-hb?

Oh, cool. It's possible. I'll make sure to get a test in there too.

Again, thank you very much.

I've added some tests and confirmed that errors throw by handlebars are not being swallowed by this lib. They raise like they should and can be handled with try/catch, etc. Closing this. Will continue looking into gulp-hb.

authors: mendlik shannonmoeller

repo: shannonmoeller/handlebars-wax


text:
l.loadModel is not a function - tfjs 1.1.2

"@tensorflow/tfjs": "^1.1.2",
"tfjs-yolo": "^0.0.3",

I get l.loadModel is not a function, same issue as https://github.com/ModelDepot/tfjs-yolo-tiny/pull/22. If I patch per that PR (use loadLayersModel) I get myYolo.predict is not a function. I actually tried pinning tfjs back to ^1.0.0, but I get the same errors (strangely, since this project is pinned at that version..)

I think it's fixed in https://github.com/shaqian/tfjs-yolo/pull/2. I just published the change in v0.0.4.

confirmed fixed, thanks!

authors: lefnire shaqian

repo: shaqian/tfjs-yolo


text:
Display Issues

First off, I really like the plugin.
I have two issues:

I prefer files with spaces not be quoted. I was able to do this by adding the --no-quotes options to args. But it would be nice if this were the default in future releases.
When on a symlink to a directory, the contents show in list mode, but not in tree mode. This is not the behavior with the CLI version.

Again, thanks for the cool plugin.

Hey, I've added --no-quotes, didn't notice the quotes before; for symlinks - I'll look into into when I have more time

Thanks for the hard work.
One more thing. I use ya pack -u to update and it generates an error because there is no LiCENSE file. You may want to add something.
On Tue, Jun 11, 2024, at 19:38, sharklasers996 wrote:

Hey, I've added --no-quotes, didn't notice the quotes before; for symlinks - I'll look into into when I have more time
—
Reply to this email directly, view it on GitHub https://github.com/sharklasers996/eza-preview.yazi/issues/1#issuecomment-2161290469, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLYYRI7XOSRCIXWRTUSMZLZG4YZHAVCNFSM6AAAAABIPVQO3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRRGI4TANBWHE.
You are receiving this because you authored the thread.Message ID: @.***>


text:
Error while using the tool. KeyError: 'runs'

I tried the following command:
print(Youtube('link here'))

and it returned back with the following error:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/site-packages/tube_dl/main.py", line 64, in init
self.subscribers=extraDetails[1]['videoSecondaryInfoRenderer']["owner"]["videoOwnerRenderer"]["subscriberCountText"]["runs"][0]
KeyError: 'runs'

I will fix it soon.

I tried the following command:
print(Youtube('link here'))

and it returned back with the following error:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/site-packages/tube_dl/main.py", line 64, in init
self.subscribers=extraDetails[1]['videoSecondaryInfoRenderer']["owner"]["videoOwnerRenderer"]["subscriberCountText"]["runs"][0]
KeyError: 'runs'

I will fix it soon.

authors: anirudhbagri shekharchander


text:
Indentation is ... not optimal

The indentation of the code is not optimal. We can have a clang-format definition and enforce it.

Closed by #3

Thanks,
Should I remember to run run-clang-tidy manually every change?
With what parameters ?
Thanks
Shemeshg

OK I see: in the documentation
https://github.com/TheLartians/Format.cmake
Thanks

authors: elcuco shemeshg

repo: shemeshg/pass-simple-qt


text:
doc: typo

fixed typo

Thanks!

authors: Yuliang-Lee shentao

repo: shentao/vue-multiselect


text:
add support for the DysonPurifierHumidifyCoolFormaldehyde (TP04)

ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration dyson_cloud: cannot impor
t name 'DysonPurifierHumidifyCoolFormaldehyde' from 'libdyson' (/usr/local/lib/python3.10/site-packages/libdyson/__init__.py)

Hello,
is it possible that someone can add the 'DysonPurifierHumidifyCoolFormaldehyde' version of the Dyson pure cool tower (TP04)
to the code?
Thanks.

Hi! Formaldehyde devices support has been added on the new forks: https://github.com/libdyson-wg/libdyson-neon and https://github.com/libdyson-wg/ha-dyson

repo: shenxn/libdyson


text:
Not Getting any dashboard after the installation of elastic-agent

when I install the elastic-agent on the client computer it is not creating any dashboard. In standalone nothing is changing but in fleet server it is showing the client connected in healthy state but not receiving any kind of logs or data from the client please help.

Hello @LAZYVAMPIRE ,
Can you please elaborate more on the steps you followed so we can reproduce the issue?
Thank you

@mostafahussein whenever I connect elastic-agent it stucks on confim data as show

authors: LAZYVAMPIRE mostafahussein

repo: sherifabdlnaby/elastdocker


text:
Added information related to cache

Added information related to cache memory and also added the comparison between cache and RAM.
This PR corresponds to Issue #1

@all-contributors add @manavmittal05 for content.


text:
能否獲得更久以前的港股k線數據

試過設定為一個較大的天數,還是只能拿到三年左右的數據,
想問能拿到例如2010-2011年間的數據嗎,
如果只是沒實現功能,但API設對參數能取得的話我能幫忙改一改

这个接口是我合并的别人的 pr，估计是只有三年的数据。

repo: shidenggui/easyquotation


text:
Ability to use external diff tool

For example https://github.com/so-fancy/diff-so-fancy
It support unified diff output

That's a good idea. You can try the following approach with 0.0.7 version:
ARGO_COMPARE_DIFF_COMMAND="/usr/bin/diff -u %s %s | diff-so-fancy"  argo-compare branch <branch_name>
Although with the tool from the example, you will always get the "renamed: %s to %" output due to the specifics of manifests rendering logic.

Works fine, thanks!


text:
MuSTA without short-reads

When I try to run MuSTA with only the IsoSeq long-reads in the input file, I get this error:
Error: The 'short_read' field of the config file must be specified for all samples listed in the 'general' field.
Backtrace:
    █
 1. ├─base::source(src$parse_config.R)
 2. │ ├─base::withVisible(eval(ei, envir))
 3. │ └─base::eval(ei, envir)
 4. │   └─base::eval(ei, envir)
 5. └─purrr::walk2(...)
 6.   └─purrr::map2(.x, .y, .f, ...)
 7.     └─global::.f(.x[[i]], .y[[i]], ...)
Execution halted

I've tried removing the "short_read_1" and "short_read_2" columns from the input file entirely and I've tried keeping those column names, but leaving the columns empty, but get this error either way. Is there a flag I need to provide to signal long-read only mode?

Unfortunately, MuSTA currently requires short_read_1 and short_read_2 not to contain any missing values.
I'm concerned about the quality of SQANTI filter as its performance without short-read expression data was not evaluated in its original paper.
Therefore, I recommend to use MuSTA with short-read data unless you don't have them, though I'm planning to modify this behavior in the next update.

Thanks for the recommendation. I look forward to that being an option in the future!

authors: azodichr shinichinamba

repo: shinichinamba/MuSTA


text:
MQTT esp32Temp is logged in Fahrenheit (should be Celsius)

I can touch the ESP32, so 29 Degree Celsius fits better

https://gist.github.com/An-Toha/5a53f4fbe571c1b9cf02b362a83e93df

Temperatur ist aus den MQTT Messages entfernt, da sie unzuverlässig ist.

authors: NemoN shining-man