text:
Access Violations with combinations of Skia Options

First thing, the code:
var LCanvas := TSkCanvasCustom(Bitmap.Canvas).Canvas

Returns NIL if GlobalUseSkia is not set to TRUE
When GlobalUseSkia IS Set to True and  GlobalUseSkiaRasterWhenAvailable = false
then a form with Skia Controls shows up as a white frame for a moment (most noticeable in Debugger) before actually correctly displaying
and if GlobalUseGPUCanvas = true then I get an access violation.  These are all under Win32
Here is the sample project:
https://github.com/user-attachments/assets/736423b6-cfa9-45d0-b6
Skia Issue.zip
78-cb50f1ba25c8
Here is a video demonstrating what I'm talking about.
https://github.com/user-attachments/assets/fbaf71d6-e553-4d84-8ac8-3078420a3573
Finally, I did some timings, and turning on GlobalUseSkia seems to slow things down more than it speeds it up...

@TheOriginalBytePlayer you should check if Bitmap.Canvas is a TSkCanvasCustom class first, because when GlobalUseSkia is False, you shouldn't do this cast as the canvas will be one of the FMX default implementation.
About speed, bitmaps draws using skia are slightly slower because we are using CPU (raster) always, and GPU only for the form canvas. This approach was chosen because this allow us to use TBitmap draws in a real parallel way, that is, without lock the UI/others bitmaps as it is now on the default FMX canvas implementation. SkiaSharp does the same.
So, for performance, although bitmaps draws using skia are slightly slower, the app render in general is faster.

you should check if Bitmap.Canvas is a TSkCanvasCustom class first, because when GlobalUseSkia is False, you shouldn't do this cast as the canvas will be one of the FMX default implementation.

Might I respectfully ask that this is put into the documentation, and/or optionally have it return an exception rather than nil so make it easier to catch this issue.

About speed, bitmaps draws using skia are slightly slower because we are using CPU (raster) always, and GPU only for the form canvas

Does this mean that if I'm just rendering a bitmap then skPaintBox will always be slower than tPaintBox?

Thank you for your quick response on the rendering speed issues but you did not address the access violation and white screen artifacts I described.
WHITE FRAME ARTIFACT
When GlobalUseSkia IS Set to True and GlobalUseSkiaRasterWhenAvailable = false
then a form with Skia Controls shows up as a white frame for a moment (most noticeable in Debugger) before actually correctly displaying (SEE VIDEO  IN ORIGINAL MESSAGE)
ACCESS VIOLATION WHEN GlobalUseGPUCanvas = true
Pretty much self-explanatory
Here is the sample project:
https://github.com/user-attachments/assets/736423b6-cfa9-45d0-b6
Skia Issue.zip
78-cb50f1ba25c8

@TheOriginalBytePlayer Your link seems broken.

Yeah, don't know what that other link was.  Here it is (and I've tested it even!)
Source Code for this Skia Issue.zip

@TheOriginalBytePlayer Sorry for the delay, but today I was able to see the demo and I noticed one mistake in your code. Take a look on this code:
    var AlphaTester:=TBitmap.Create(Round(Width),Round(Height));
    AlphaTester.SkiaDraw(
      procedure (const LCanvas: ISkCanvas)
      begin
        if assigned(LCanvas) then
           Label1.Text:='Bitmap.SkiaDraw(proc()) WORKS'
        else
           Label1.Text:='Bitmap.SkiaDraw(proc()) FAILS';
      end);
    AlphaTester.Canvas.BeginScene();
    var LCanvas := TSkCanvasCustom(AlphaTester.Canvas).Canvas;
    if assigned(LCanvas) then
       Label2.Text:='TSkCanvasCustom(AlphaTester.Canvas).Canvas WORKS'
    else
       Label2.Text:='TSkCanvasCustom(AlphaTester.Canvas).Canvas) FAILS';
    AlphaTester.Canvas.EndScene;
    AlphaTester.Free

Bitmap.SkiaDraw will work always, but the cast TSkCanvasCustom(Bitmap.Canvas) not and this is expected. The GlobalUseSkia or GlobalUseMetal or GlobalUseGPU or GlobalUseVulkan, etc, they always register a canvas class to be internally used by the FMX on Form (and Controls) and on Bitmaps.
The GlobalUseSkia means the render of your entire app will be Skia based. If you use GlobalUseSkia := True; all TCanvas of your app will be descendent of TSkCanvasCustom, so you can cast it always, like TSkCanvasCustom(Bitmap.Canvas). If GlobalUseSkia := False; all TCanvas of your app won't be descendent of TSkCanvasCustom (they might be descendent of (TCanvasGPU, TD2DCanvas or any other FMX internal implementation that doesn't use Skia), so you can't cast it to TSkCanvasCustom.
The right way to check is simply by add a if Canvas is TSkCanvasCustom then, but this should be useful only for paint events of controls. For bitmap draws, we always recommend use Bitmap.SkiaDraw, that works always, regardless the GlobalUseSkia` value, regardless the framework (VCL or FMX).

@TheOriginalBytePlayer If the problem was clarified with my previous post, can I close the issue? Let me know if you have any further questions.

@TheOriginalBytePlayer This issue will have to be closed due to lack of feedback from the reporter. Feel free to open a new issue or add comments to this issue so we can validate and reopen the topic.

authors: TheOriginalBytePlayer viniciusfbb


text:
AV in TGrCanvasCustom.CreateCache when draw FMX.object.TImage.paint

AV in TGrCanvasCustom.CreateCache when draw FMX.object.TImage.paint
version: 3.3
3.2 is ok

Skia.FMX.Graphics.TGrCanvasCustom.CreateCache(1,1,BGRA8888,nil,4)
Skia.FMX.Graphics.TSkCanvasCustom.BitmapToSkImage(???)
Skia.FMX.Graphics.TSkCanvasCustom.DoDrawBitmap(???)
FMX.Graphics.TCanvas.DrawBitmap(???)
FMX.Objects.TImage.DrawBitmap(???)
FMX.Objects.TImage.Paint
FMX.Controls.DoPaintInternal
FMX.Controls.PaintAndClipChild
FMX.Controls.TControl.PaintInternal
FMX.Controls.TControl.PaintChildren
FMX.Controls.DoPaintInternal
FMX.Controls.PaintAndClipChild
FMX.Controls.TControl.PaintInternal
FMX.Controls.TControl.PaintChildren
FMX.Controls.DoPaintInternal
FMX.Controls.PaintAndClipChild
FMX.Controls.TControl.PaintInternal
FMX.Controls.TControl.PaintChildren
FMX.Controls.DoPaintInternal
FMX.Controls.PaintAndClipChild
FMX.Controls.TControl.PaintInternal
FMX.Controls.TControl.PaintChildren
FMX.Controls.DoPaintInternal
FMX.Controls.PaintAndClipChild
FMX.Controls.TControl.PaintInternal
FMX.Controls.TControl.PaintChildren
FMX.Controls.DoPaintInternal
FMX.Controls.PaintAndClipChild
FMX.Controls.TControl.PaintInternal
FMX.Forms.TCustomForm.PaintRects(???)
FMX.Platform.Win.WMPaint(1311778,15,0,0)
FMX.Platform.Win.WndProc(1311778,15,0,0)

Hi @PonyPC, thank you very much for reporting the issue!
Could you send us a project simulating the error?

Please wait for me uploading a minimal reproducible project

Z.zip
@viniciusfbb

source: gharchive/issue

authors: PonyPC viniciusfbb

license: MIT

license_type: permissive

license_source: github-api


text:
feat: Market Configurations Proto

closes BLO-876

Lgtm

Just run make proto-all before merging

source: gharchive/pull-request

repo: skip-mev/slinky


text:
Problem Page LaTeX Rendering

Problem Page 리뉴얼 이후 LaTex 적용이 안되는 issue

나 이거 이미 해결했는데...

repo: skku-npc/skku-coding-platform


text:
サンプルインスタンスDocinfoの項目の表記違い

Docinfoの項目で以下のような表記になっていますが
1.1.2. securityLevel
　　　1.1.3. accessRight
それぞれ
　　　1.1.2. mmlSc:securityLevel
　　　1.1.3. mmlSc:accessRight
ではないでしょうか？

これについては、元々の仕様が上記のnamespace無しの法が正しいようです。そのように修正を加えます。

仕様とスキーマの違うところで、仕様通りであれば上の方が正しいのですが、スキーマとしては下が正しいようです。

authors: Masami-OGATA skoba

repo: skoba/mml

license_source: bigquery


text:
[WIP] add SelectCols(cols) and DropCols(cols) transformers

closes #670
a decision on the API has actually not been made in the linked issue, this is to help make the discussion more concrete

My original view was to rather have only a single object that merged both SelectCols and DropCols.

That's definitely an option, too. A few small things added up and made me lean towards the version with 2 classes:

They only have 1 parameter each, so it is natural to pass it as positional argument. Instantiations are a bit less verbose and users don't need to remember the parameter name.

The classes are easy to understand almost without reading the documentation because they do 1 simple thing and hold 1 list of column names.

"I can drop columns with DropCols" feels easier to discover than "I can drop columns with the 'drop' parameter of SelectCols" (or the other way around "select with SelectCols" vs "select with 'keep' parameter of DropCols")

If both drop and select were in one class, we would need a default argument for the "select" parameter to mean "select all" (otherwise using the "drop" parameter would be hard). I didn't see an option I found 100% satisfying for that default value: "None" means the opposite of what we want (ie "all"), a string like "*" would be ok but still it's a bit weird as column names are strings as well, sentinel values like a singleton or enum with a nice repr are too "magic" and we don't know how to import them if we want to pass the default explicitly, ellipsis seems arbitrary, we probably don't want to support slices and they're rarely used outside "[]", etc.

We would need to decide and document what happens when both parameters are used, and when a column name ends up in both "drop" and "select". It will almost never happen in practice because it doesn't make much sense, but it still needs to be handled so it adds uninteresting cruft both in the code and the docstring. In general having 2 parameters such that it only makes sense to use 1 at a time sometimes results in annoying docstrings and parameter validation code IMHO.

It's likely that we will add other simple manipulations of columns, like renaming. With the current option we could add another simple transformer "RenameCols". If we stuff all operations in one class we would add one more parameter and need to think of its interactions with the other parameters (does the selection happen before or after the renaming?, ...) and guess what users will find surprising or not. So it might become cumbersome to use, describe & maintain.

Of course that's only a first impression and we'll have to see how it plays out in practice and in the examples. They're simple things so we can prototype several approaches and see what we prefer.
The issue also suggested adding a "drop" parameter to most transformers. I thought it would be more work (especially if we want to add "rename", "select" parameters), add parameters to already complex classes with other interactions to think about (do we drop before or after vectorizing?), duplicate some of the work (or at least parameter documentation) across the existing transformers.
OTOH, it would result in shorter pipelines and fewer classes for users to discover, so it is still certainly worth discussing.

also pandas and polars both have separate select / getitem and drop

Can you add the two objects in the API documentation?
And maybe add a tiny section on https://skrub-data.org/stable/assembling.html, between "joining" and "going further". We should stress here that the benefit is to be able to build pipelines.

I added the api entries and the paragraph in the user guide. I put the api section after "joining" to keep the order similar to the user guide

do we want to allow passing a string instead of a list of (1) string if we want to select or drop a single column?

do we want to allow passing a string instead of a list of (1) string if we want to select or drop a single column?

I think that it would be great!

ok it is ready to review

Also, I named it SelectCols but maybe to be consistent with other transformers it  should be ColsSelector and ColsDropper 😐
we still don't have a decision on nouns vs verbs in #751

Question: could it, should it, be used in https://skrub-data.org/stable/auto_examples/08_join_aggregation.html#sphx-glr-auto-examples-08-join-aggregation-py ?

I'm not sure; the only projection I see is to separate X and y from the dataset that contains both at the beginning. And then X only has 3 columns, all of which are used. Looking at the features added by the transformers in the pipeline, I don't see any that should be dropped

I am not sure if we have polars support

yes you can see in the tests

I am not sure if we have polars support

yes you can see in the tests

Awesome!!

OK, merging then. Thanks @jeromedockes !

authors: GaelVaroquaux jeromedockes

repo: skrub-data/skrub


text:
Improving docs, examples, and tutorials of pytorch-forecasting

This list is a quick bucket list of items that can be potentially improved from what I've seen in the docs.
As requested by @yarnabrina, we should create simple examples, reducing complexity of the library as much as possible, to encourage users who are not too familiar with pytorch-forecasting or time series machine learning in general to try out the library. I think for example, the 'Example' inside https://pytorch-forecasting.readthedocs.io/en/stable/getting-started.html# is way too complicated, and will deter users from using the library because it is too complex to understand and read through as a first time user.
Thus for now, I'm proposing we

refactor the main example inside the getting-started page
improve upon the tutorials page that is currently setup in the library.

I think these two items can improved in the following way:

Restructure the tutorials page into sections, with increasing 'complexity' of tutorials. That way, new users unexperience with the library will instantly be guided to the intro notebooks, while experience users familiar with the model will be directed to more complex notebooks, specific to their needs.

This first section will be the 'introduction' section, which will contain one extremely basic introductory tutorial with minimal code, featuring all the different modules (TimeSeriesDataset, different Models, Trainers, etc), but with little to no explanations. This basic tutorial is designed to essentially be a minimal walkthrough on how to use the library. The preceding tutorials will explain more in depth about each module. For example, we will have one tutorial explaining TimeSeriesDataset and so on.
The second section will be "Modelling tutorials", where most of the autoregressive models or forecasting model tutorials will be located here. For example, this and this.
The last section will be used for any other miscellaneous and additional tutorials, for example, this

For the tutorial in the getting-started page, we can re-use the very first intro notebook that we create to provide an extremely simple tutorial to explain to the user how it works.

I am also proposing that we split the directory that is used to load the data into a new directory inside the root folder named datasets. This folder will be the primarily method to load datasets for tutorials or for modelling purposes. To reduce duplication, we can just import loading methods from the sktime library.
This will allow us to keep the examples directory standalone, and the files inside will be used to code up simple functions and variables that can be used inside tutorials.

@fkiraly FYI

also, I need to figure out what Model.from_pretrained() does, and why it is necessary for it to be called this way in order to do training. It seems pretty counterintuitive that we need to load the model using a dataset, but it also doesnt seem to serve any purpose..

Hi, I just saw this issue.
I just created PR https://github.com/sktime/pytorch-forecasting/pull/1720 on predict_mode/TimeSeriesDataset.from_dataset().
I think that is probably connected.

@yarnabrina, @benHeid  Any thoughts on above suggestions? I would like your input if possible :)

I fully agree with your general step by step tutorial idea. The current one does not seem approachable for beginners.
I think in pydata I tried to start with just endogenous single series, then adding panel/hierarchy part, followed by hierarchy, then exogenous, etc. type of flow, so if you can also do that type of flow with pytorch-forecasting, that'll be great. As a first tutorial, I will probably not vary hyperparameters too much, but use the most common ones in the first case, and try to keep them similar in following steps if it make sense. Another thing that comes to my mind is I'll probably prefer to isolate the tuning part from usage without tuning part, because in my opinion it helps to get started with fit->predict flow common in most libraries first. These are of course just suggestions from my side, please feel free to adjust as you deem better.
In sktime we have the option to tell user how to check if all models are applicable for a section or not using tags, I think that's missing here. In future, adding a functionality for that may be useful.

I'll not make a comment about change of data folder. But I request you to keep that as part of different PR that new tutorials for sure, changing just path later in notebooks should be easy enough.

I agree that we should do this, and I also agree to the comment of @yarnabrina.
Perhaps, we could do it similar as in sktime using multiple notebooks that indicate different chapters. I.e.,
1_introduction_to_pytorch_forecasting
2_.....

authors: benHeid julian-fong madprogramer yarnabrina

repo: sktime/pytorch-forecasting


text:
Add FUEL and TRUE ODOMETER reading to decoder

We will need to add these byte codes to the recipe message we send to the OBD's
Ex:
wycfg pcr[0] 001001030406070809570a131217141005655a54

Here's the config change: obd-docs PR

repo: skurtinc/traccar


text:
error during installation

Dear skydive team,
I would like to use skydive in order to troubleshoot my openstack environment but I have some troubles during installation.
these are the output from my make install command:
[root@openstack-deployment skydive]# make install
3896f2a04008
go get github.com/kardianos/govendor
/root/go/bin/govendor sync
patch -p0 < dpdk/dpdk.govendor.patch
patching file vendor/github.com/intel-go/yanff/low/low.go
go get github.com/golang/protobuf/proto
go get github.com/golang/protobuf/protoc-gen-go
go get github.com/jteeuwen/go-bindata/...
protoc --go_out . flow/flow.proto flow/set.proto flow/request.proto
protoc --go_out . filters/filters.proto
# always export flow.ParentUUID as we need to store this information to know
# if it's a Outer or Inner packet.
sed -e 's/ParentUUID\(.*\),omitempty\(.*\)/ParentUUID\1\2/' -e 's/int64\(.*\),omitempty\(.*\)/int64\1\2/' -i flow/flow.pb.go
# do not export LastRawPackets used internally
sed -e 's/json:"LastRawPackets,omitempty"/json:"-"/g' -i flow/flow.pb.go
# add flowState to flow generated struct
sed -e 's/type Flow struct {/type Flow struct {\n\tXXX_state flowState `json:"-"`/' -i flow/flow.pb.go
go-bindata  -nometadata -o statics/bindata.go -pkg=statics -ignore=bindata.go statics/* statics/css/images/* statics/js/vendor/* statics/js/components/*
gofmt -w -s statics/bindata.go
make -C contrib/snort
make[1]: Entering directory `/root/go/src/github.com/skydive-project/skydive/contrib/snort'
govendor build snortSkydive.go
unexpected directory layout:
        import path: github.com/google/gopacket
        root: /root/go/src
        dir: /root/go/src/github.com/skydive-project/skydive/vendor/github.com/google/gopacket
        expand root: /root/go/src
        expand dir: /root/go/src/github.com/skydive-project/skydive/vendor/github.com/google/gopacket
        separator: /
Error: exit status 1
make[1]: *** [snortSkydive] Error 2
make[1]: Leaving directory `/root/go/src/github.com/skydive-project/skydive/contrib/snort'
make: *** [contribs] Error 2

This is my GOPATH variable:
[root@openstack-deployment skydive]# echo $GOPATH
/root/go

Any idea?
Thank you very much

Hi,
is the Skydive source folder in the right place, meaning in the $GOPATH folder? please have a look here if not already done:
http://skydive-project.github.io/skydive/getting-started/install/#install
please let me known if it solve your issue.
BTW, you can download the latest binary here: https://github.com/skydive-project/skydive-binaries
and the latest release binary here: https://github.com/skydive-project/skydive/releases/tag/v0.14.0
Thanks

Hi Sylvain,
I tried to compile today skydive on a new environment (https://docs.microsoft.com/en-us/windows/wsl/install-win10). This should actuallybe a typical ubuntu 16.04 environment and got the same build challenge:
sed -e 's/json:"LastRawPackets,omitempty"/json:"-"/g' -i.bak flow/flow.pb.go
# add flowState to flow generated struct
sed -e 's/type Flow struct {/type Flow struct { XXX_state flowState `json:"-"`/' -i.bak flow/flow.pb.go
gofmt -s -w flow/flow.pb.go
go-bindata  -nometadata -o statics/bindata.go -pkg=statics -ignore=bindata.go statics/* statics/css/images/* statics/css/themes/*/* statics/js/vendor/* statics/js/components/*
gofmt -w -s statics/bindata.go
make -C contrib/snort
make[1]: Entering directory '/root/go/src/github.com/skydive-project/skydive/contrib/snort'
govendor build snortSkydive.go
unexpected directory layout:
        import path: github.com/google/gopacket
        root: /root/go/src
        dir: /root/go/src/github.com/skydive-project/skydive/vendor/github.com/google/gopacket
        expand root: /root/go/src
        expand dir: /root/go/src/github.com/skydive-project/skydive/vendor/github.com/google/gopacket
        separator: /
Error: exit status 1
Makefile:6: recipe for target 'snortSkydive' failed
make[1]: *** [snortSkydive] Error 2
make[1]: Leaving directory '/root/go/src/github.com/skydive-project/skydive/contrib/snort'
Makefile:187: recipe for target 'contribs' failed
make: *** [contribs] Error 2

Environment variables:
# echo $PATH
/root/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

root@ERANRA2-TP [176] ~/go/src/github.com/skydive-project/skydive  (master u=)
# echo $GOROOT
/usr/local/go

root@ERANRA2-TP [176] ~/go/src/github.com/skydive-project/skydive  (master u=)
#

I think this might be connected somehow to the environment variables or shell but not totally sure
More info::
go version go1.9.1 linux/amd64

'''
root@ERANRA2-TP [248] ~/go/src/github.com/skydive-project/skydive  (master u=)
make
4e64886694f3
go get github.com/kardianos/govendor
/root/go/bin/govendor sync
patch -p0 < dpdk/dpdk.govendor.patch
patching file vendor/github.com/intel-go/yanff/low/low.go
rm -rf vendor/github.com/weaveworks/tcptracer-bpf/vendor/github.com/
go get github.com/golang/protobuf/proto
go get github.com/golang/protobuf/protoc-gen-go
go get github.com/jteeuwen/go-bindata/...
protoc --go_out . flow/flow.proto flow/set.proto flow/request.proto flow/defender_flow.proto
protoc --go_out . filters/filters.proto
always export flow.ParentUUID as we need to store this information to know
if it's a Outer or Inner packet.
sed -e 's/ParentUUID(.),omitempty(.)/ParentUUID\1\2/' -e 's/int64(.),omitempty(.)/int64\1\2/' -i.bak flow/flow.pb.go
do not export LastRawPackets used internally
sed -e 's/json:"LastRawPackets,omitempty"/json:"-"/g' -i.bak flow/flow.pb.go
add flowState to flow generated struct
sed -e 's/type Flow struct {/type Flow struct { XXX_state flowState json:"-"/' -i.bak flow/flow.pb.go
gofmt -s -w flow/flow.pb.go
go-bindata  -nometadata -o statics/bindata.go -pkg=statics -ignore=bindata.go statics/* statics/css/images/* statics/css/themes// statics/js/vendor/* statics/js/components/*
gofmt -w -s statics/bindata.go
make -C contrib/snort
make[1]: Entering directory '/root/go/src/github.com/skydive-project/skydive/contrib/snort'
govendor build snortSkydive.go
unexpected directory layout:
import path: github.com/google/gopacket
root: /root/go/src
dir: /root/go/src/github.com/skydive-project/skydive/vendor/github.com/google/gopacket
expand root: /root/go/src
expand dir: /root/go/src/github.com/skydive-project/skydive/vendor/github.com/google/gopacket
separator: /
Error: exit status 1
Makefile:6: recipe for target 'snortSkydive' failed
make[1]: *** [snortSkydive] Error 2
make[1]: Leaving directory '/root/go/src/github.com/skydive-project/skydive/contrib/snort'
Makefile:187: recipe for target 'contribs' failed
make: *** [contribs] Error 2
root@ERANRA2-TP [233] ~/go/src/github.com/skydive-project/skydive  (master u=)

'''

I just tested on a fresh install using this script
https://gist.github.com/safchain/c552453869f81d6739f52843925fada5
Could you test it ?

No update since awhile closing it for now

This is happening to us as well when we try to build the skydive project. the script you posted didn't help (or maybe I didn't understand what it does). can you please help us? we did install all the dependencies as specified here: http://skydive.network/documentation/build and we're working onb Ubuntu.
unexpected directory layout: 	import path: github.com/jteeuwen/go-bindata 	root: /home/shadikardosh/go/src 	dir: /home/shadikardosh/go/src/github.com/skydive-project/skydive/vendor/github.com/jteeuwen/go-bindata 	expand root: /home/shadikardosh/go/src 	expand dir: /home/shadikardosh/go/src/github.com/skydive-project/skydive/vendor/github.com/jteeuwen/go-bindata 	separator: / /home/shadikardosh/go/src/github.com/skydive-project/skydive gofmt -w -s statics/bindata.go make -C contrib/snort make[1]: Entering directory '/home/shadikardosh/go/src/github.com/skydive-project/skydive/contrib/snort' /home/shadikardosh/go/bin/govendor build -o $GOPATH/bin/snort-skydive snortSkydive.go go build command-line-arguments: /home/shadikardosh/go/pkg/tool/linux_amd64/link: signal: killed Error: exit status 1 Makefile:11: recipe for target 'snortSkydive' failed make[1]: *** [snortSkydive] Error 2 make[1]: Leaving directory '/home/shadikardosh/go/src/github.com/skydive-project/skydive/contrib/snort' Makefile:355: recipe for target 'contribs' failed make: *** [contribs] Error 2
I will also mention that the file $GOPATH/bin/snort-skydive snortSkydive.go is not present.

I just tested on a fresh ubuntu 18.04 taking the documentation steps which gives the following scripts
apt-get install -y git make patch golang findutils protobuf-compiler libprotobuf-dev   npm libpcap0.8-dev libxml2-dev libvirt-dev

mkdir $HOME/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH

mkdir -p $GOPATH/src/github.com/skydive-project
git clone https://github.com/skydive-project/skydive.git \
  $GOPATH/src/github.com/skydive-project/skydive
cd $GOPATH/src/github.com/skydive-project/skydive
make

It seems that the build as been killed.
/home/shadikardosh/go/pkg/tool/linux_amd64/link: signal: killed.
Is there enough memory ?
BTW the script pointed in this issue is deprecated, I deleted it.

Correct! there wasn't enough memory. Thanks a lot!

authors: Masber eranra safchain shadikardosh

repo: skydive-project/skydive


text:
german update

:exclamation: Please review the guidelines for contributing
Description
Please describe your pull request.
Reference issue it fixes.

@jpstotz, @Henry2o1o can I merge this PR?
It is hard for me to follow your discussion, so I just hope you will come to the conclusion :slightly_smiling_face:
Another option: I merge as is, and later someone will fix minor issues.

@Henry2o1o Could you please apply the changes we agreed on so that skylot can merge this PR?

So, no reply from @Henry2o1o :cry:
@jpstotz maybe you can add suggestions (like mentioned here in pt. 7), so I will be able to apply these changes and finally merge this PR :slightly_smiling_face:

@jpstotz great, thanks!

pushing it back to Henry2o1o:patch-8

I wasn't sure this available to collaborators, also PR contributor can forbid this, so sometimes it didn't work.
Anyway, thank you for help! :+1:

authors: Henry2o1o jpstotz skylot

repo: skylot/jadx


text:
A function for creating views with implicitly const components?

Hi!
When working on a project I noticed that a relatively common pattern when working with const entt::registry& registries, is the creation of views with only const components. The following is a real line of code that highlights the verbosity (it causes a line break with a column limit of 90, which is relatively generous). This is also a bit annoying since the components must be const if the registry is passed as reference-to-const.
const auto view =
      registry.view<const ui_button, const ui_label, const ui_position, const in_menu>();

Now, the requirement to explicitly state const components with view() is something that I enjoy when some of the components are non-const. However, do you think it would be beneficial or desirable to add a convenience for explicitly creating views with implicitly const components? For example, adding a function such as const_view() that would allow us to write the previous line of code as follows?
const auto view = registry.const_view<ui_button, ui_label, ui_position, in_menu>();

This isn't really a major issue for me or anything, but the API's are otherwise quite terse so I was curious to see what you guys think. 😄

Actually, functions like get or try_get works already with non-const types and return const references/pointers in any case.
We could do the same for the const overload of view, std::add_const_t should be enough for that. Would it work?

Yeah, unifying the behaviour of the functions seems like a good idea. As you say, it should basically just come down to applying std::add_const_t to the type parameters. However, we should probably not disallow const types in the template parameter lists to avoid breaking existing code though if we change the behaviour of view(). Although it's difficult to emit warnings if users use superfluous const types, so I guess that we can't deprecate anything really.

I wouldn't deprecate nor disable support for const types honestly.
The const overloads of try_get and get accept both const and non-const types and turn them to const in any case.

If you want to give it a try, it's available on branch wip. 👍

It seems to work just fine, thank you! Another related issue that I couldn't help notice when I tried it locally, is that the const-overload of ctx() also requires that the type parameters are const. Now, I don't know if there is a technical limitation or reason for this, but would this requirement be worth dropping for ctx() as well? 😄

I think it's easy as well. However, can I ask you to create another issue for that or to update the title of this one?
It helps me to keep track of the work and to figure out what's still pending. Thanks!

See #720 for an issue specific to the registry context variable getters. Feel free to close this issue whenever you want, thank you!😄

Thanks!

authors: albin-johansson skypjack

repo: skypjack/entt

license: mit


text:
Added the --non-interactive flag to the cron command

Although, according to the help, the --quiet flag implies --non-interactive, it kept failing until I've added it explicitly.

@SamClinckspoor correct, but then we should add them in every letsencrypt::certonly declaration, and I think they should be there by default, as it would fail otherwise (running from puppet or cron it should be non-interactive always)

can we add it in hiera to make it default? I want to avoid merge conflicts if we merge upstream.

@SamClinckspoor we could create a profile and use the create_resources function, but then we'll need to  change again every letsencrypt::certonly declaration. I created an issue to update the letsencrypt module (https://github.com/skyscrapers/puppet/issues/3159), so I suggest to consider this in that issue, and apply this quick fix for now.

authors: SamClinckspoor iuriaranda

repo: skyscrapers/puppet-letsencrypt


text:
Replace Reese's Sodium Options with Xander's Sodium Options

Is your request related to a problem? Please describe if so.
The Sodium options menu isn't very vanilla-like
Describe the mod you'd like to add, remove, or change
Replace https://modrinth.com/mod/reeses-sodium-options with https://modrinth.com/mod/xanders-sodium-options
List alternative mods or solutions you've considered
none
Additional context
Xander's Sodium Options is a more vanilla like alternative to the Sodium menu. It can integrate with compatible mods like Iris and Sodium Extra as well, alongside being able to be disabled incase the user doesnt like it

I've considered this since I saw v2 come out :)
I might ping opinions on the discord just to see which one people would prefer, I personally prefer xander's

repo: skywardmc/additive


text:
how we can listen to the request from button which is inside attachment

how we can listen to the request from button which is inside attachment using slack_bolt
The slack_bolt version
1.1.2
Python runtime version
3.7
OS info
Windows OS 10

You can use @app.action as with top-level blocks.
@app.message("button please")
def handle_messge_evnts(message, say):
    say(
        attachments=[
            {
                "blocks": [
                    {
                        "type": "actions",
                        "block_id": "b",
                        "elements": [
                            {
                                "type": "button",
                                "action_id": "button-action",
                                "text": {"type": "plain_text", "text": "Click Me"},
                                "value": "click_me_123",
                            }
                        ],
                    }
                ]
            }
        ]
    )

@app.action("button-action")
def handle_action(action, ack, logger):
    logger.info(f"action: {action}")
    ack()

You can use @app.action as with top-level blocks.
@app.message("button please")
def handle_messge_evnts(message, say):
    say(
        attachments=[
            {
                "blocks": [
                    {
                        "type": "actions",
                        "block_id": "b",
                        "elements": [
                            {
                                "type": "button",
                                "action_id": "button-action",
                                "text": {"type": "plain_text", "text": "Click Me"},
                                "value": "click_me_123",
                            }
                        ],
                    }
                ]
            }
        ]
    )

@app.action("button-action")
def handle_action(action, ack, logger):
    logger.info(f"action: {action}")
    ack()

As I've already provided an answer to this question, let me close this. Please feel free to write in if you have any further related questions.

As I've already provided an answer to this question, let me close this. Please feel free to write in if you have any further related questions.

repo: slackapi/bolt-python


text:
Ghost Scheduled Messages, Continue to Post After Deletion

(Filling out the following details about bugs will help us solve your issue sooner.)
Reproducible in:
The slack_bolt version
slack-bolt==1.5.0
slack-cleaner==0.7.4
slack-sdk==3.5.1
slackclient==2.9.3
slacker==0.14.0
Python runtime version
python 3.8.5
OS info
#60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021
Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))
Bot is a message scheduling bot, that automatically schedules positive messages to chat. In the app_home the user can select a channel to schedule messages to, remove messages, edit the messages dates and times, and reset and user changes made.

Bot is run on local machine
User selects channel to schedule messages to
User adds bot to that channel via slack
User selects a message pack, where messages are scheduled from. Messages are scheduled once very Monday, Wednesday, Friday
User edits a message, schedules a specific to be posted in 2-5 minutes of local time
User selects a new channel. (This step removes all current scheduled messages)
The old edited message will appear in the old channel

Expected result:
We expect the old edited message to not appear in the channel, since when the channel is reassigned. It first deletes all scheduled messages by the bot
(Tell what you expected to happen)
Actual result:
The message the user edited to schedule in the next 2-5 minutes will post even though all messages in that channel have been removed
(Tell what actually happened with logs, screenshots)
The edit message being scheduled is shown in the first step. Shown in scheduled messages and on the right we see the same scheduled message is shown in Slack API

We show that the bot is currently in #CS-1 channel

This action has occurred after the channel has been changed to #CS-2 channel (it's not reflected in the app_home because it hasn't been refreshed), we can see that remove scheduled messages has been called 11 times, and Slack API states that in the #CS-1 channel has no scheduled messages present

##Context
One thing to note is that when messages are being edited (deleted and rescheduled at a new time)
try:
  BOLT.schedule_message()
except slackapierror (invalid date/time):
  post_to_user(enter a valid time)
else:
  try:
    BOLT.delete_message()
  except SlackAPI Error (something went wrong with deleting a message)
    log(error)
  else:
    post_to_user("Congrats on rescheduling your message to the new time")

Some more context I performed an experiment where I schedule messages in time intervals of 5,10,20,30+ minutes, then change the channel, which again deletes all of the bots currently scheduled messages. This error only occurs for the message edited to be posted within 5 minutes, all messages edited to be scheduled for later do not post.
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Hi @mu6-Abdullah, thanks for asking the question!
Honestly, I'm still unsure about what's happening in your app as the details like how you call the APIs are not shared here. On the assumption where your app correctly utilizes chat.scheduleMessage and chat.deleteSheduledMessage, the only thing I can guess is that your app might not do pagination for chat.scheduledMessages.list API call (you're calling this for fetching all the messages to delete, right?). In the case, some of the messages you wanted to delete may remain when there are more messages in the next page. Refer to https://api.slack.com/methods/chat.scheduledMessages.list for more details of pagination.
I hope this was helpful to you!

@mu6-Abdullah Also, I strongly recommend revoking the tokens in the screenshots.

👋 Hi @mu6-Abdullah, let us know if you need further help here. I will close this issue after waiting for your response for a while.


text:
RAM Leak?

I have this installed on about a dozen machines.  Desktops, Laptops, and Servers.  Since I am using it to graph out resource use. I noticed one of the idle machines had a gradual growth of RAM use over the day. From 1GB to about 5GB.  So I checked out the task manager only to see that "hass-workstation-service" was using 3.2GB of RAM.  I quickly closed and reopened it and checked my other machines all of the rest were using under 100MB.

Thanks for creating an issue! That's quite the memory leak you're pointing out. Are there any differences with this specific machine? Do you use other sensors for example?

Nope, I created the same sensors on each machine.

LastBoot - 60 secs
CPULoad - 30 secs
MEMUse - 30 secs
GPULoad - 30 secs
TEMP - 30 secs
SessionState - 60 secs
LastActive - 30 secs

Actually, now that you mention it, I took a screenshot when it happened, and looking at it I noticed that there are two GPULoad sensors in the screenshot, one showing value the other blank.  It may be some bug that happened with duplicate sensors active.

Interesting! And do you also have the duplicate sensor in your config? Is there maybe something that stands out in the logs? You can find config and log files at "%localappdata%\Hass Workstation Service".

I'm closing this due to inactivity. Please reopen if you experience this again!

authors: MrKuenning sleevezipper

repo: sleevezipper/hass-workstation-service


text:
💡 Add css class support for !image

Is your feature request related to a problem? Please describe.
css can be quite verbose. Add css to customize an image can create very long line, not very readable.
Having an option in the image keyword could be interesting
Describe the solution you'd like
A new attribute in the !image to specify one (or several class) to apply to the image

Available in next version

2.7.4 ?

Yes

@gouz : works with 1 class as explained in doc 🤘
Would it be complex to be able to have a list of class ? 😇

Will be available in next version :
Since version 2.7.6, in the additional styles you can specify many classes with this following syntax: !image(path/of/your/image, my alternative text, 13, 12, [class1 class2 class3]) and the image will have these classes.

authors: gouz yodamad

repo: slidesk/slidesk


text:
Using unique_id for manifest and catalog nodes to allow for aliased m…

Resolves #30
Potentially resolves #40
What has changed?
Updates to the load_manifest and load_catalog functions to use the unique_id of the dbt model or test, instead of a schema + aliased name of the object.
The Coverage Report still returns the aliased object name, but the documentation coverage will be correctly calculated for each table as the manifest and catalog now use the normalized unique_id
Tested this for both doc and test cov_type and working as expected.

Thanks @vvvito, this does indeed look like it might work!
@sweco, would you mind taking a look as you were the architect of the approach that's currently being used?
Thanks!

authors: mrshu vvvito

repo: slidoapp/dbt-coverage


text:
Error with example

Hello,
when i run your example
from googleplaces import GooglePlaces, types, lang

YOUR_API_KEY = 'my_key'

google_places = GooglePlaces(YOUR_API_KEY)

query_result = google_places.nearby_search(
        location='London, England', keyword='Fish and Chips',
        radius=20000, types=[types.TYPE_FOOD])

i am getting this error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/googleplaces/__init__.py", line 542, in _generate_lat_lng_string
    else geocode_location(location))
  File "/usr/local/lib/python3.4/dist-packages/googleplaces/__init__.py", line 103, in geocode_location
    {'address': location, 'sensor': str(sensor).lower()})
  File "/usr/local/lib/python3.4/dist-packages/googleplaces/__init__.py", line 71, in _fetch_remote_json
    request_url, response = _fetch_remote(service_url, params, use_http_post)
  File "/usr/local/lib/python3.4/dist-packages/googleplaces/__init__.py", line 54, in _fetch_remote
    if type(v) in [str, unicode]:
NameError: name 'unicode' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/klofisch/PycharmProjects/Gmaps/Test01/test01.py", line 22, in <module>
    radius=20000, types=[types.TYPE_FOOD])
  File "/usr/local/lib/python3.4/dist-packages/googleplaces/__init__.py", line 260, in nearby_search
    lat_lng_str = self._generate_lat_lng_string(lat_lng, location)
  File "/usr/local/lib/python3.4/dist-packages/googleplaces/__init__.py", line 545, in _generate_lat_lng_string
    'lat_lng must be a dict with the keys, \'lat\' and \'lng\'')
ValueError: lat_lng must be a dict with the keys, 'lat' and 'lng'

I have the same issue.  Anyone has any idea how to fix this?

I'm looking at thios now. You guys are using python3, right?

I am facing the same prob.- " ValueError: lat_lng must be a dict with the keys, 'lat' and 'lng' ," since today.
I tried passing lat and lng as a dict with appropriate values and still the same problem.

I am also seeing the second half of the reported issue:
Traceback (most recent call last):
File "/home/klofisch/PycharmProjects/Gmaps/Test01/test01.py", line 22, in
radius=20000, types=[types.TYPE_FOOD])
File "/usr/local/lib/python3.4/dist-packages/googleplaces/init.py", line 260, in nearby_search
lat_lng_str = self._generate_lat_lng_string(lat_lng, location)
File "/usr/local/lib/python3.4/dist-packages/googleplaces/init.py", line 545, in _generate_lat_lng_string
'lat_lng must be a dict with the keys, 'lat' and 'lng'')
ValueError: lat_lng must be a dict with the keys, 'lat' and 'lng'
However, this only happens on one of my two computers, my other computer with the same exact version of python works flawlessly. Not sure what to say...

The issue seems to be resulted by incompatibility with Python 3. I tried to execute it with Python 2.7 and it works fine.
The unicode function is not part of the standard library for Python 3, and one of the potential fixes is to use a unicode = str workaround for Python 3.
After fixing this, there also seems to be an issue with the urllib module not having the urlencode function in Python 3.

Hello. There is already a pull request to fix py3 support: https://github.com/slimkrazy/python-google-places/pull/38
Please consider merging this pull request. Thanks!

I am facing the same problem, but I am running Python 2.7.
Strangely enough, the script was executing just fine this past week, and suddenly started raising this error.

I also originally  faced the problem in Python 2.7. I tried out Python 3.3 as well with the same exact error.

I am having the same problem on Python 2.7. The script was running fine and was actually in the middle of a large job when it started raising this error.  Has a solution been found yet?

Same problem here with python 3.4 ...

This has been resolved by merging in #38.
The changes are currently on the development branch. I am attempting to address a few issues today before merging to master and releasing over the next day or so.

Fixed and released in v1.1.0

This error points to your radius=50000 when the '''ValueError: lat_lng must be a dict with the keys, 'lat' and 'lng' ''' error is given. Basically, this says that the given location doesn't have a given Latitude and Longitude for your specified search relating to that area and therefore cannot draw a radius around that area because it doesn't have a point (lat,lng) in the google database to start from. Make sense?

authors: 5amfung ayasya chayanayak jordanjambazov klofisch lunoho parthion phixMe slimkrazy smyles140 solidevolution

repo: slimkrazy/python-google-places


text:
issue #2831 revived  getting the same issue

Hello,
I have the same issue as in issue #2831.
As suggested i added the addRoutingMiddleware middleware just before $app->run() but sadly i still get the same error message.
Using the skeleton from jerfeson i have the following route:
  $app->any('/', function (Request $request, Response $response, $args) use ($app) {
      return $app->resolveRoute('Welcome', 'index', $args, '\App\Controllers');
  });

And in the 'Welcome' controller class i have this:
use Psr\Http\Message\ServerRequestInterface as Request;

class Welcome
{
    public function index(Request $request)
    {
        $routeContext = RouteContext::fromRequest($request);
        $route = $routeContext->getRoute();

        return $this->render( '@site/test/welcome.twig'   );
    }
}

The strange thing is that the jerfeson/slim4-skeleton puts the request and response object into the IoC container. See here. For me it looks like the jerfeson/slim4-skeleton  doesn't use the request object correctly, because the request/response object is context specific and doesn't belong into the container. At the end the routing information are not available there.
This line also doesn't mach with the parameter list of resolveRoute.
return $app->resolveRoute('Welcome', 'index', $args, '\App\Controllers');

I think this is not a Slim, but more a  jerfeson/slim4-skeleton specific issue. Maybe create an issue here.

Thank you Daniel, I will look in to that, somehow I think it must be more …  because as soon I removed that code the whole system breaks down. In the end I could contact hem indeed.   Met Vriendelijke groetenNiels v/d Spek From: Daniel OpitzSent: zaterdag 18 juli 2020 14:50To: slimphp/SlimCc: nielsnl68; AuthorSubject: Re: [slimphp/Slim] issue #2831 revived getting the same issue (#2985) The strange thing is that the jerfeson/slim4-skeleton puts the request and response object into the IoC container. See here. For me it looks like the jerfeson/slim4-skeleton doesn't use the request object correctly, because the request/response object is context specific and doesn't belong into the container. At the end the routing information are not available there.This line also doesn't mach with the parameter list of resolveRoute.return $app->resolveRoute('Welcome', 'index', $args, '\App\Controllers');I think this is not a Slim, but more a jerfeson/slim4-skeleton specific issue. Maybe create an issue here.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

repo: slimphp/Slim


text:
HTTP Error 503: Service Unavailable for blob.translate()

Hello,
I just started with this awesome tool, I just got this error and was working fine 1 hour ago, so I wanted to report it:
>>> from textblob import TextBlob
>>> text = '''
... The titular threat of The Blob has always struck me as the ultimate movie
... monster: an insatiably hungry, amoeba-like mass able to penetrate
... virtually any safeguard, capable of--as a doomed doctor chillingly
... describes it--"assimilating flesh on contact.
... Snide comparisons to gelatin be damned, it's a concept with the most
... devastating of potential consequences, not unlike the grey goo scenario
... proposed by technological theorists fearful of
... artificial intelligence run rampant.
... '''
>>> blob = TextBlob(text)
>>> blob.translate(to="es")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/textblob/blob.py", line 541, in translate
    from_lang=from_lang, to_lang=to))
  File "/usr/local/lib/python3.6/site-packages/textblob/translate.py", line 54, in translate
    response = self._request(url, host=host, type_=type_, data=data)
  File "/usr/local/lib/python3.6/site-packages/textblob/translate.py", line 92, in _request
    resp = request.urlopen(req)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 564, in error
    result = self._call_chain(*args)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 756, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

This is the same issue as #215 . I've update that issue's title to reflect that this is happening in translate().

authors: poolebu sloria

repo: sloria/TextBlob


text:
UnicodeDecodeError in _read function when system locale is not defined

Hello!
I encountered a UnicodeDecodeError when running textblob-fr inside a Docker container (Ubuntu:16.04).
Because there is no LANG defined in the container, the _read function fails when it tries to read the fr-lexicon.txt file.
As far as I understand, Python uses the default encoding defined in the system if the encoding argument is not given to the open function. If the system locale is not defined, Python seems to default to an ASCII like encoding. So in my case, Python tries to read the fr-lexicon.txt file with ASCII decoding, which fails as there are non-ASCII characters in the file.
The solution is quite simple, the encoding argument is simply missing when the open function is called.
The only thing rather odd to me is that an encoding parameter is defined in the _read function but is not used anywhere. I guess it's just an oversight. 😄
Here is the stacktrace :
/home/django/venv/lib/python3.6/site-packages/textblob/decorators.py:24: in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
/home/django/venv/lib/python3.6/site-packages/textblob/blob.py:462: in pos_tags
    for word, t in self.pos_tagger.tag(self.raw)
/home/django/venv/lib/python3.6/site-packages/textblob_fr/taggers.py:17: in tag
    return pattern_tag(sentence, tokenize)
/home/django/venv/lib/python3.6/site-packages/textblob_fr/fr.py:217: in tag
    for sentence in parse(s, tokenize, True, False, False, False, encoding).split():
/home/django/venv/lib/python3.6/site-packages/textblob_fr/fr.py:201: in parse
    return parser.parse(s, *args, **kwargs)
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:1596: in parse
    s[i] = self.find_tags(s[i], **kwargs)
/home/django/venv/lib/python3.6/site-packages/textblob_fr/fr.py:150: in find_tags
    return _Parser.find_tags(self, tokens, **kwargs)
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:1544: in find_tags
    map = kwargs.get(     "map", None))
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:1350: in find_tags
    tagged.append([token, lexicon.get(token, i==0 and lexicon.get(token.lower()) or None)])
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:98: in get
    return self._lazy("get", *args)
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:79: in _lazy
    self.load()
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:367: in load
    dict.update(self, (x.split(" ")[:2] for x in _read(self._path) if x.strip()))
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:367: in <genexpr>
    dict.update(self, (x.split(" ")[:2] for x in _read(self._path) if x.strip()))
/home/django/venv/lib/python3.6/site-packages/textblob_fr/_text.py:346: in _read
    for line in f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <encodings.ascii.IncrementalDecoder object at 0x7f7a4cd735f8>
input = b';;;   \n;;;   The lexicon was based on Lefff (Lexique des Formes Fl\xc3\xa9chies du Fran\xc3\xa7ais).\n;;;   \n;;;  ...NNP\nAlaba NNP\nAlabama NNP\nAlaigne NNP\nAlain NNP\nAlaina NNP\nAlaincourt NNP\nAlaincourt-la-Cote NNP\nAlairac NNP\n'
final = False

    def decode(self, input, final=False):
>       return codecs.ascii_decode(input, self.errors)[0]
E       UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 66: ordinal not in range(128)

Thanks in advance!

Hello
You are right.
Just replace line 330 of _text.py (from textblog_fr package) by :
def _read(path, encoding="utf-8", comment=";;;"):

This has worked for me! I had :
'charmap' codec can't decode byte 0x9d in position 357: character maps to <undefined>
this should be a pull request

authors: Kemarus herve06 willmendil

repo: sloria/textblob-fr


text:
Bug in 1.6.0

Error: The getter 'uri' isn't defined for the class 'RouteInformation' in the file location_builders.dart

Hey @dr0g0 👋
Thanks for creating an issue!
Which version of Flutter are you using?

Hi @slovnicki ,
Flutter version: 3.7.12,
Dart SDK version: 2.19.6

Ah, I see, thank you for the information.
It should work on Flutter v3.8 and above. If you don't want to upgrade Flutter yet, you can continue using Beamer v1.5.6 which has the exact same functionality as v1.6.0.
This v1.6.0 release just replaced all usage of deprecated RouteInformation.location with RouteInformation.uri that was added in Flutter v3.8. Beamer was getting a low score on pub.dev because of these deprecation warnings so I decided to migrate it now that most projects had time to upgrade Flutter.
I'm sorry for the incovenience and thank you for reporting it so fast!

repo: slovnicki/beamer


text:
Class is not autoloadable

Hello,
I found an issue while using:
composer install --no-dev

That is causing:
Class SlowProg\CopyFile\ScriptHandler is not autoloadable, can not call post-install-cmd script

Sorry for late. I was a little busy =)
I can not find a bug. If it is still relevant, can you show your composer.json?

Yes, this still happens on my project:
git clone https://github.com/redaxscript/redaxscript

Yep, I got it. You have following composer.json:
"require-dev":
{
    ...
    "fbourigault/composer-mkdir": "2.0.0",
    ...
    "slowprog/composer-copy-file": "0.2.0",
    ...
},
"scripts":
{
    "post-install-cmd":
    [
        "SlowProg\\CopyFile\\ScriptHandler::copy",
        "Fbourigault\\ComposerMkdir\\ScriptHandler::mkdirs"
    ],
    ...
},

When you run composer install --no-dev, composer try call ScriptHandler::copy(), but it's no exists, because flag --no-dev forbids uploading deps from require-dev.
You have three ways:

Not run scripts when --no-dev: composer install --no-dev --no-scripts.

Move deps fbourigault/composer-mkdir and slowprog/composer-copy-file to require block.

Use composer-plugin scriptsdev.

Thank you for pointing it out, I will give scriptsdev a try. Thank you!

authors: redaxmedia slowprog

repo: slowprog/CopyFile


text:
[feature] Add source:URI under externalParameters

We need to add source for our BYOB builders.
In https://slsa.dev/provenance/v1 "Migrating from 0.2":
"source": old.invocation.configSource.uri,

which seems to indicate that source is a URI of type string.
In https://github.com/slsa-framework/slsa-verifier/pull/621, the "source" field is currently treated as a resourceDescriptor.
@asraa @ianlewis wdut?

I think it should be a resource descriptor - we get the URI and the hash explicitly, and can also add new fields.
I think they should rephrase the migration as
"source": {
   "uri": old.invocation.configSource.uri,
}

That migration note was made before they switched to ResourceDescriptors.

I agree with @asraa that source should be a resourceDescriptor. The provenance spec recommends string values in externalParameters, but they aren't required.

The externalParameters and internalParameters are the top-level inputs to the template, meaning inputs not derived from another input. Each is an arbitrary JSON object, though it is RECOMMENDED to keep the structure simple with string values to aid verification. The same field name SHOULD NOT be used for both externalParameters and internalParameters.

Since there's a benefit to using a resourceDescriptor, go for it. Just make sure to keep the fields in sync between the generator and the verifier.

I think it should be a resource descriptor - we get the URI and the hash explicitly, and can also add new fields.
I think they should rephrase the migration as
"source": {
   "uri": old.invocation.configSource.uri,
}

and maybe also have:
"source": {
    "uri": old.invocation.configSource.uri,
    "digest": old.invocation.configSource.digest,
}

I support that change. I've opened an issue on the SLSA spec repo to get input.

Just to be clear, this is a totally separate Resource Descriptor that's separate from the entry in resolvedDependencies?

Just to be clear, this is a totally separate Resource Descriptor that's separate from the entry in resolvedDependencies?

I understood it to be duplicated, since it is (1) a user input and (2) a resolved dependency pulled into the environment by the builder.
But yeah, actually just the source URI might be a user input, while the resolved dependency may contain the extra info like the digest that's resolved when the builder pulls it. So dupes doesn't really feel right either.

I understood it to be duplicated, since it is (1) a user input and (2) a resolved dependency pulled into the environment by the builder.
But yeah, actually just the source URI might be a user input, while the resolved dependency may contain the extra info like the digest that's resolved when the builder pulls it. So dupes doesn't really feel right either.

Ok, so if the source URI only contains the repo as a user input, we might need to look for the digest in the resolvedDependencies.
So something like:
// let p = <predicate>
let sourceURI = p.externalParameters?.source?.uri;
let sourceDigest = p.externalParameters?.source?.digest;
if (sourceURI && !sourceDigest && p.resolvedDependencies) {
  for (let dep of p.resolvedDependencies) {
    if (dep.uri == sourceURI) { // Maybe ignore ref if not present in externalParameters?
      sourceDigest = dep.digest;
    }
  }
}
// verify sourceURI and sourceDigest

well, the user does not provide the source URI as input either on a typical trigger, it's done by the platform, no? My reading of the format (which may be entirely wrong) is that source is set by the builder to simplify verification and because it's an "implicit" user input :D - if that makes any sense

This is related to https://github.com/slsa-framework/slsa-github-generator/issues/2077.

authors: asraa ianlewis kpk47 laurentsimon

repo: slsa-framework/slsa-github-generator


text:
Multiple Classes - only gives you a single class

Hello when I try to use summary_plot for feature importance with tf.Keras neural net (with Deep Explainer), I only just the the feature importance for one class?

versus what I am expecting:

Thank you.

what happens if you get rid of the [0] from shap_values_v[0]
By specyfiying [0], you are reaquessting to view feature importance for the first class

repo: slundberg/shap


text:
suggestion add smg4 skin as skin 10

also there is bug there is no sound

nothing oops

umm no sound is not a bug

license: WTFPL


text:
docs: text chunks stream to sentence stream examples

Two variants for the same example:

concat map
custom operator to capture required state

/cc @tsegismont

repo: smallrye/smallrye-mutiny


text:
Patches (WIP)

Just a test for now ...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: fuhry:white_check_mark: maraino:x: Nisarga PatelNisarga Patel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@maraino I've made this the default base branch for now.

Closing in favor of #8

authors: CLAassistant hslatman


text:
🛑 Portainer Portal Website for Proxmox (tunnel) is down

In 085bab7, Portainer Portal Website for Proxmox (tunnel) (https://portainer.sman3palu.sch.id) was down:

HTTP code: 530
Response time: 155 ms

Resolved: Portainer Portal Website for Proxmox (tunnel) is back up in e56ae8f after 34 minutes.

repo: smantriplw/uptime-services


text:
exports via getDependencies don't work in pilet debug

Bug Report
Prerequisites

[x] Can you reproduce the problem in a MWE?
[x] Are you running the latest version?
[x] Did you perform a search in the issues?

Environment Details and Version
piral-core/cli: 0.7.0-pre.637
Description
I have the following section in the createInstance() call:
        getDependencies: extendSharedDependencies({
            'my-piral-instance': require('./exports'),
        }),

If a pilet is published normally to the feed service, this dependency is correctly provided from the shell to the pilet. But when using pilet debug, it will give the pilet a different instance of this dependency (the referenced by the main attribute in the package.json of the shell.
Steps to Reproduce

create a shell, make it export a unique object using the getDependencies as seen above.
create a pilet, make it import this object.
In the shell and the pilet, store these objects in the window object (say window.piralTest = myExport and window.piletTest = myExport respectively).
compare these in the browser console using window.piralTest === window.piletTest when running pilet debug. It will show false.

Expected behavior
There should only be one instance exported to the pilet. The pilet should not get a different import than what the shell exports at runtime.
Actual behavior
The pilet got served a separate version of the export, which is not the same as the one the shell uses.

I've marked the milestone as 0.8, but we'll try to bring it into 0.7!

This should now be consistent with the new bundling / debugging mode.
Landed in develop.

authors: FlorianRappl SantoJambit

repo: smapiot/piral


text:
引入项目的其他包，smart-doc无法看到字段的描述

Your Environment(您的使用环境)

smart-doc version:
plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin):
build tool version(maven or gradle):

Expected Behavior(您期望的结果)

Current Behavior(当前结果)

Possible Solution(bug解决建议)

Steps to Reproduce (Bug产生步骤，请尽量提供用例代码)

Context(Bug影响描述)

分析其他工具包 需要在打包时生成resource包  可参考文档 https://smart-doc-group.github.io/#/zh-cn/QA

有用的话麻烦关一下issue

authors: netdied skyBuleXiaoXiong

repo: smart-doc-group/smart-doc


text:
Motivated Intruder Testing Task#1- Verification of Accidental Inclusion of PII in the OS datasets

As the Smart Columbus Chief Privacy Officer, I would like a privacy test to be conducted that is focused on verification of any accidental PII inclusion in the datasets ingested in the OS, so that I can apply necessary controls if required. In case of no PII, it helps to me to validate that the existing controls are working in keeping private data out of the OS.
Task#1 focuses on verification of accidental inclusion of PII in the datasets in the OS. This refers to any fields having PII (both direct and indirect PII should be identified).
AC:

Identify a list of datasets that have PII in them

Link to doc:
https://docs.google.com/document/d/1xGKv6VWAM3LWT47JXDLukO4O83Cw3_yXOMxPPUUVVuM/edit?ts=5e4eadcf
Amigos:
@ramboyapati , Warner Moore

Data sets reviewed for possibly PII and documented in the Google Form. Will review findings with Ram, this is good to close.

@ramboyapati let's discuss Sukaant's findings. He believes one finding could be PII and the other is publicly available.

Ram's review concluded that Sukaant's findings were of publicly available of information.

authors: carriebrinkley warnerAWESOMEmoore

repo: smartcitiesdata/smartcitiesdata


text:
README.md - fix typo

Little fix on directory path at point 2. > file README.md

Hello,
as requested by Patrick, I am sending my first pull request! :)
I hope I did it correctly!
Cya!

Any update here?

authors: PatrickAlphaC sebxyz sidaritech

repo: smartcontractkit/chainlink-mix


text:
[Node Operators] Fullfilling requests : ATestnetConsumer.sol constructor does not need the Link Token address anymore

Docs > Node Operators > Fullfilling requests
Section : Create a request to your node
Step : 3
Delete "Copy the LINK token contract address for the network you are using and paste it into the address_link field next to the Deploy button. Use one of the following network addresses".
Because ATestnetConsumer.sol  constructor does not take the LinkToken address anymore.

This is still necessary to deploy the Oracle.sol contract for now. The instruction to add the Link token contract address is not present in the section for "Create a request to your node": https://docs.chain.link/docs/fulfilling-requests/#create-a-request-to-your-node

authors: dwightjl elbombardi

repo: smartcontractkit/documentation


text:
bug/2263: fixing data race with serve wait group

You can tickle the data race in the previous code by adding a sleep on line 167.

Made redundant by #42

repo: smartcontractkit/wsrpc


text:
[SDL 0345] Android 12 Issues

Proposal Link
Proposal: Android 12 Issues
Proposal Introduction

With almost every Android version, Google updates the OS to better distribute the device resources among the running apps to enhance the performance and optimize battery life. However, sometimes the new enhancements come with new restrictions on how apps can use the resources on the device. Android 12 is one of the major Android updates that heavily modify how apps can run in the background and use device resources. This affects how the SdlRouterService starts and communicates with other SDL apps and also how the SdlService for SDL apps is started. This proposal is to address the issues that have been introduced as a result of Android 12.

Review Link
Review: https://github.com/smartdevicelink/sdl_evolution/issues/1181

Fixed in #1771

authors: joeygrover theresalech


text:
erro :  add onclicklistener on images

Hello can you help me..  in my SliderImageAdapter
`class SliderImageAdapter (val sliderList : List, private val listener: (Slider) -> Unit) : SliderViewAdapter<SliderImageAdapter.SliderAdapterVH>() {
override fun onCreateViewHolder(parent: ViewGroup?): SliderAdapterVH {
    val v = LayoutInflater.from(parent?.context).inflate(R.layout.image_slider_layout,parent,false)
    return SliderAdapterVH(v)
}

override fun onBindViewHolder(viewHolder: SliderAdapterVH, position: Int) {
   viewHolder.bindItem(sliderList[position],listener)
   viewHolder.itemView.setOnClickListener {
       listener(sliderList[position])
   }
}

override fun getCount(): Int {
    return sliderList.size
}

 class SliderAdapterVH(private val view: View) : SliderViewAdapter.ViewHolder(view) {

    private val imageViewBackground: ImageView = view.findViewById(R.id.iv_auto_image_slider)

     fun bindItem(slider: Slider, listener : (Slider) -> Unit){
            Picasso.get().load(slider.imgSlider).into(imageViewBackground)

    }

}

}`
but I get an error
Cannot access 'itemView': it is invisible (private in a supertype) in 'SliderAdapterVH'
thank's

Where is itemView?
Try to add listener at primary constructor

    override fun onCreateViewHolder(parent: ViewGroup): SliderAdapterVH {
        val inflate: View = LayoutInflater.from(parent.context)
            .inflate(R.layout.slider_item, null)
        val vh = SliderAdapterVH(inflate)
        vh.item.setOnClickListener {
            vh.data.log()
        }
        return vh
    }

item: is itemView at holder
class SliderAdapterVH(itemView: View) : ViewHolder(itemView)

authors: MahmoudMabrok willygs

repo: smarteist/Android-Image-Slider


text:
DEFAULT_METHOD_WHITELIST is outdated as requests library does not pin urllib3 to a version

Requests library used in Smartsheet's Python SDK does not pin urllib3 to a version; resulting in inconsistent behavior as SDK may subsequently useold version of urllib3 depending on which platform it was installed.
Expected Result
No error when using the allowed_methods param with Retry
Actual Result
AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'
Reproduction Steps

pip install smartsheet-python-sdk which will pull in this code: https://github.com/smartsheet/smartsheet-python-sdk/blob/8a7b8f39d31a9dca8b2a80773cac1baa8a95bd38/smartsheet/session.py#L56
pip install urllib3==2.0.2 which is a known version that reproduces this issue
smar_client = smartsheet.Smartsheet(smartsheet_api_token) which is code to invoke new Smartsheet API connection

same issue, this killed one of my services today at deployment

This is fixed in v3.0.2 of the SDK

authors: Rurquhart TarekSalha eric-french

repo: smartsheet/smartsheet-python-sdk


text:
🛑 Varnam API is down

In 2d4f2fb, Varnam API (https://varnam-status.smc.org.in/status) was down:

HTTP code: 502
Response time: 699 ms

Resolved: Varnam API is back up in 509859b after 3 hours, 16 minutes.

repo: smc/upt


text:
Remove python3.5 test

Numpy is incompatible with Python3.5, removing support for Python3.5

Codecov Report

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

@@           Coverage Diff           @@
##           master      #36   +/-   ##
=======================================
  Coverage   89.58%   89.58%
=======================================
  Files           8        8
  Lines          48       48
=======================================
  Hits           43       43
  Misses          5        5

Continue to review full report at Codecov.

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

authors: caitlinashcroft codecov-io


text:
Suggestion: BetterMouseYoke

Hey, great plugin,
Just wondering if you could add a cross on the centre screen representing where the yoke is 'centred'. It's difficult to tell otherwise if you are still deflecting the ailerons/elevators unless you come out of yoke mode.
Code below
if (rudder_control) {
            /* Draw little bars to indicate maximum rudder deflection. */
            for (int i = 1; i < 3; i++) {
                XPLMDrawString(green, cursor_pos[0] - rudder_defl_dist,
                    cursor_pos[1] + 4 - 7 * i, "|", NULL, xplmFont_Basic);
                XPLMDrawString(green, cursor_pos[0] + rudder_defl_dist,
                    cursor_pos[1] + 4 - 7 * i, "|", NULL, xplmFont_Basic);
            }
        }
        else {
            XPLMDrawString(green, screen_width/2,
                screen_height/2, "+", NULL, xplmFont_Basic);
        }

Thanks

@winkerbie
Had the same issue as you. Did you try the code above?
Also, I found that while playing in windowed mode, the center is misconfigured, and the limits aren't working correctly. Wondering if there was a way to make the "extremes" match the game window extreme, and make sure the center of the screen is the yoke in the central position.
Any ideas on how to implement? My knowledge in C is next to null, I could give it a try, but any pointeer would be great.
Thanks!

How do I change the code in bettermouseyoke? Can someone please tell me? Do I use datarefeditor? I tried using it, but for some reason I cant find any code related to bettermouseyoke.


text:
Bugfix/Remove-Quotes-From-Table-Names

This should fix tables like -> public."order"

Will do! Thanks @endophage

repo: smithoss/gonymizer


text:
Working on features section c,d (issue-04)

Creating the features section. Working on features c and d from the google doc.
c: Create Custom Music Rating Album
Make your custom playlist and let your friends rate your music taste!
d: Find Your Music Soulmate
Answer our quiz to see how compatible your music taste is to your friends.

Note: Ill have to change the paths for the images to a git path once they are merged in with the main branch.


text:
Custom range for floats

Currently, floats only generate in a range of 0..1
It's pretty easy to convert it in the user side to a specific range, but is there a reason why there isn't a way to do this directly? Since this would be a breaking change, maybe add a fastrand::f64_range(range).

The current one has the same behavior as rand's random.
However, I don't think there is any reason why {f32,f64}_range is not available, so I would accept a PR to add {f32,f64}_range.

This is now exposed in fastrand-contrib v0.1.0.

authors: IceSentry notgull taiki-e

repo: smol-rs/fastrand


text:
Read RFC 9293 vs RFC 793

The beginning of the tcp.rs file states:
Heads up! Before working on this file you should read, at least, RFC 793
But this rfc has been obsoleted by rfc 9293. Any reason why we should still refer to the older rfc?

No reason, other than that code was written before RFC 9293 existed :)

Ahhh ok haha

repo: smoltcp-rs/smoltcp


text:
Lmod support

Is your feature request related to a problem? Please describe.
The --use-envmodules CLI argument does not work with lmod (at least for my machine/setup). This is because in lmod the module command is not actually an executable that Snakemake could run but it is a bash function from a file to be sourced at the start of a session. There is an executable, of course, but in my setup this is not exposed via PATH or anything. And even if I do expose this via a symlink named module, it's currently not picked up by Snakemake.
Describe the solution you'd like
Ideally, we could make Snakemake detect this setup by itself and act appropriately but that might be out of scope for the moment. It might be more realistic to provide a further customisation option, e.g.

snakemake --envmodules_cmd="/path/to/executable"
snakemake --envmodules_setup="source /path/to/lmod/init/bash.in"
snakemake --use_envmodules=lmod

The first two would be quite straightforward to implement as the EnvModules class is close to trivial, so passing through either customisation and using it appropriately is straightforward. I'd be happy to prepare that few lines of PR. (I've actually patched my local version like that already.)
The third option would require a bit of logic to actually implement what to do in that case. Not sure, how unambiguous the necessary steps for setup are then.
So, two questions:

Is this feature desirable from your perspective?
If so, what's your preference for the interface?

Just stumbled across this: https://lmodule.readthedocs.io/en/latest/module.html which might be a very good fit for this kind of functionality.

I don't know if you'd consider this a hack or not, but couldn't you run the lmod init script using shell.prefix?

That seems to actually run well. Thanks for the workaround! Didn't know about that. It's not enough for me to close this issue as I want a Snakefile that I can have in my code release and everyone can read and run it. For that, it's way too hacky and brittle (who knows what other people have in their .bashrc... if they have one at all). It might be enough if you tell me next that this could be set in my Snakemake profile. That sounds okay because then the workflow itself is clean and machine-specific setup is done on my personal machine.

I'm not sure what this means:

the module commands are prepended even to shell.prefix
Could you give a little more feedback on what it is you're doing specifically and what the error message is that you're getting? What version of snakemake are you using (if you're using a version you patched yourself it's going to be difficult to offer help here). I would also  add that whether the module command is an executable or a bash function shouldn't be an issue.
I also think it's important to point out that as there is no reason to believe that the module names on one system will match the modules on another system, using envmodules is inherently not portable/reproducible, so I wouldn't worry too much about shell.prefix (if indeed that's even necessary, which I'm not sure it even is)

authors: CreRecombinase chillenzer

repo: snakemake/snakemake


text:
fix: fix AttributeError when handling failures of group jobs

QC

[x] The PR contains a test case for the changes or the changes are already covered by an existing test case.
[x] The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

Closing as a duplicate of #2133


text:
fix patterns= example to working keyword, corresponding to keyword in text below

with the previous example of pattern="", snakemake complains about pattern being an unexpected keyword argument for result()

Thanks!

authors: dlaehnemann johanneskoester


text:
Credentials not loaded

Trying to deploy now, I have AWS credentials configured but CDK says it can't load them
  Error: Need to perform AWS calls for account 1234xxxxxx, but no credentials have been configured.
      at SdkProvider.obtainCredentials (/Users/cyber/dev/jb/mercury/packages/backend/node_modules/aws-cdk/lib/api/aws-auth/sdk-provider.ts:245:11)
      at SdkProvider.forEnvironment (/Users/cyber/dev/jb/mercury/packages/backend/node_modules/aws-cdk/lib/api/aws-auth/sdk-provider.ts:131:19)
      at Function.lookup (/Users/cyber/dev/jb/mercury/packages/backend/node_modules/aws-cdk/lib/api/bootstrap/deploy-bootstrap.ts:35:17)
      at Bootstrapper.modernBootstrap (/Users/cyber/dev/jb/mercury/packages/backend/node_modules/aws-cdk/lib/api/bootstrap/bootstrap-environment.ts:81:21)
      at AwsCdkDeploy.bootstrapToolkitStack (/Users/cyber/dev/jb/mercury/packages/backend/node_modules/serverless-aws-cdk/cdk/toolkitStack.ts:17:3)

nvm user error... not doing great today


text:
fix indentation level

Fix indentation levels in breadcrumbs.html

Thanks :)

@ericholscher Thanks for merging. I am glad I can help. :)

authors: ericholscher zhanghongyi


text:
Site fora do ar / muito instável

Olá, tentando configurar o Posso Ler?, tenho encontrado dificuldades em rodar o site para pegar o script.
Seria possível oferecer uma forma diferente de obtenção do script e geração do hash? Mesmo que fosse mais manual como forma de opção para manter a ferramenta útil, mesmo que o site eventualmente pare de funcionar.

Também estou interessado em outra forma de geração do hash

Fala galera! Como vocês estão?
Acabei de escrever uma issue explicando o que aconteceu com o projeto...
Resumidamente, denunciaram meu projeto, meu projeto foi derrubado e minha conta suspensa :(

repo: snowom/PossoLer


text:
🐛 BUG: Cannot read property 'code' of undefined at Snowpack 3.8.0+

Quick checklist

[X] I am using the latest version of Snowpack and all plugins.

What package manager are you using?
yarn
What operating system are you using?
macOS
Describe the bug
Upon updating snowpack to any version above 3.8.0, I receive the following error:
TypeError: Cannot read property 'code' of undefined
    at FileBuilder.getProxy (/Users/negan/Projects/Firesquad/firesquad-app/node_modules/snowpack/lib/cjs/build/file-builder.js:267:48)
    at loadUrl (/Users/negan/Projects/Firesquad/firesquad-app/node_modules/snowpack/lib/cjs/commands/dev.js:628:55)
    at async handleRequest (/Users/negan/Projects/Firesquad/firesquad-app/node_modules/snowpack/lib/cjs/commands/dev.js:728:28)

[23:33:13] [snowpack] TypeError: Cannot read property 'code' of undefined
[23:33:13] [snowpack] [500] /_snowpack/link/packages/ui/styles.css.proxy.js

Looks to be caused by proxy style files, this even happens when disabling all plugins.
Steps to reproduce

yarn add snowpack@latest
snowpack dev
Fails

Link to minimal reproducible example (optional)
No response

it seems FileBuilder.build('styles.css') failed..check if you can isolate the styles.css out to debug?

I've ran into this issue with css/scss files before and it usually means the file is empty, adding an empty .root {} class or any line of css inside the file usually fixes it for me.

Yeah sorry for hanging into this one, the file is definitively not empty and I've got it working for any version below 3.8.0+. I'll try to debug which file is making this fail and post it here

Content of the file is:
#nprogress .bar {
  background: linear-gradient(to right, #4391ff, #5d04d1);
}

#nprogress .peg {
  box-shadow: 0 0 10px var(#5d04d1), 0 0 5px var(#5d04d1);
}

#nprogress .spinner {
  display: none;
}

It fails whenever the content is, it may be because I'm importing it using monorepos? on my JS i use it as import '@mypkg/ui/styles.css'

Content of the file is:
#nprogress .bar {
  background: linear-gradient(to right, #4391ff, #5d04d1);
}

#nprogress .peg {
  box-shadow: 0 0 10px var(#5d04d1), 0 0 5px var(#5d04d1);
}

#nprogress .spinner {
  display: none;
}

It fails whenever the content is, it may be because I'm importing it using monorepos? on my JS i use it as import '@mypkg/ui/styles.css'
the logic here is css file will be proxyed(renamed to styles.css.proxy.js), and its contents will be read and attach to an obj
{
'type':{
code:{}
}
}
'type' is the resouce type like '.js', '.css' and so on. 'code' is the content of the file. For this error, usually it is because getProxy() is trying to find the obj with the right 'type' and failed. So probably the 'type' has been processed wrongly.  Check if you can reproduce the code base for us to help, please.

@jacty
I have  a similar issue in a lerna managed monorepo, where one of my packages is importing a local .woff2 asset.
The woff2 asset is in a prebuild step being copied to the /dist folder of that package.
Snowpack is trying to fetch a proxy for this asset (by adding .proxy.js to a static asset?):
[07:58:07] [snowpack] TypeError: Cannot read property 'code' of undefined
[07:58:07] [snowpack] [500] /_snowpack/link/themes-mui/dist/fonts/Circular/lineto-circular-medium.woff2.proxy.js

When I debug the getProxy line 269: const code = this.resolvedOutput[type].code;, because of this.resolvedOutput[type] being undefined, this is because type was set to '.js' and not '.woff2'?
The FileBuilder.build didnt fail. resolvedOutput contains a key '.woff2', with an object with a code field with the correct content.
When I change this line to
const code = this.resolvedOutput[type] ? this.resolvedOutput[type].code : this.resolvedOutput[Object.keys(this.resolvedOutput)[0]].code;`

the file is being resolved correctly.
The root of this issue, seems to be that the resourceType of the asset, is wrongly being decided to be .js.
I suppose this is because of the extension of the proxy that needs to be stripped of for static assets when deciding on fileType.
https://github.com/snowpackjs/snowpack/blob/main/snowpack/src/commands/dev.ts#L624
the foundType is derived from the reqPath, instead of the resourcePath, where the .proxy.js suffix was already stripped off?
This only is the case for assets inside a symlinked directory (monorepo setup) (https://github.com/snowpackjs/snowpack/blob/main/snowpack/src/commands/dev.ts#L551) because for all others the resourceType is being derived from the resourcePath instead of the req(uest)Path: https://github.com/snowpackjs/snowpack/blob/main/snowpack/src/commands/dev.ts#L645

When trying to fix this, it was also necessary to change the responseType to .woff2, not only the resourceType.
But now I get a browser error:
Loading module from “http://localhost:8080/_snowpack/link/themes-mui/dist/fonts/Circular/lineto-circular-medium.woff2.proxy.js” was blocked because of a disallowed MIME type (“font/woff2”)

So the root of the problem seems to me, that this asset should not be proxied as a .js anyway.
It has more to do with the file-loader being used when importing a relative static file like so:
import CircularMediumRef from './lineto-circular-medium.woff2';

This shouldnt be rewritten as a proxied reference?
But when I run snowpack for production, it has the same problem.
When using webpack, this works out-of-the-box.

Having no experience with snowpack, I simply tried "snowpack build" from a libraries workspace, not workspaces root. Put this into snowpack.config.js:
module.exports = {
  workspaceRoot: false,
}

It's a typescript library, using yarn on Windows, Snowpack 3.8.8. Here's the log
$ C:\mono-rep\node_modules\.bin\snowpack build
[14:43:39] [snowpack] ! building files...
[14:43:41] [snowpack] ✔ files built. [1.91s]
[14:43:41] [snowpack] ! building dependencies...
[14:43:52] [esinstall] C:\mono-rep\node_modules\telejson\dist\esm\index.js:314:15 Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
[14:43:52] [esinstall] C:\mono-rep\node_modules\telejson\dist\esm\index.js:320:16 Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
[14:43:54] [snowpack] ✔ dependencies built. [12.93s]
[14:43:54] [snowpack] ! writing to disk...
[14:43:55] [snowpack] Build Result Error: There was a problem with a file build result.
[14:43:55] [snowpack] Cannot read properties of undefined (reading 'code')
[14:43:55] [snowpack] TypeError: Cannot read properties of undefined (reading 'code')
    at FileBuilder.getProxy (C:\mono-rep\node_modules\snowpack\lib\cjs\build\file-builder.js:267:48)
    at Object.loadUrl (C:\mono-rep\node_modules\snowpack\lib\cjs\commands\dev.js:629:55)
    at flushFileQueue (C:\mono-rep\node_modules\snowpack\lib\cjs\build\process.js:191:40)
    at async Object.writeToDisk (C:\mono-rep\node_modules\snowpack\lib\cjs\build\process.js:253:5)
    at async build (C:\mono-rep\node_modules\snowpack\lib\cjs\commands\build.js:13:5)
    at async Object.command (C:\mono-rep\node_modules\snowpack\lib\cjs\commands\build.js:35:9)
    at async cli (C:\mono-rep\node_modules\snowpack\lib\cjs\index.js:174:9)

authors: Negan1911 Sewdn canozo jacty jeffrson

repo: snowpackjs/snowpack


text:
Add option to specify size for complex objects

Currently properties with array fallback to hardcoded VARCHAR(5000).
We need to use --varchar-size for strings with unknown length (as it happens today) and new --complex-size as fallback for everything we couldn't determine with #53, including arrays.

Do you mean --complex-size?

Yes, renamed.

Updated description.

Migrated to iglu

authors: alexanderdean chuwy

repo: snowplow/schema-ddl


text:
Android Playbook not installing android-19 anymore

The Android playbook is defaulting to android-21 now. Will need to ensure that either we bump our setup commands to android-21 or force the install of android-19.

This has been fixed.

repo: snowplow/snowplow-android-tracker


text:
Kinesis: explore idea of app auto-restart on config change

Similar to how vulcanproxy works. Imagine having the MaxMind data files datestamped, and you simply update the filename to force a reload of the processing app...

This probably adds too much magic to the process

Migrated to https://github.com/snowplow/enrich/issues/177

repo: snowplow/snowplow


text:
EmrEtlRunner: add elasticsearch stage to help message

Currently elasticsearch is missing among stages to skip.

Good point!

authors: chuwy fblundun


text:
Document "local mode" with Snowplow Kinesis components

This is a precursor to http://snowplowanalytics.com/blog/2014/02/04/snowplow-0.9.0-released-with-beta-kinesis-support/#local-mode

@alexanderdean - done locally (preview here)

Really nice, merged, closing

authors: alexanderdean ihortom


text:
Better support directory structure on Windows

According to Windows conventions, the application dir should be inside of an organization dir.
e. g. instead of
{FOLDERID_LocalAppData}/_yourprojectname_/cache/

the cache dir should be
{FOLDERID_LocalAppData}/_yourorganizationname_/_yourprojectname_/cache/

This probably requires extending the factory functions or adding new functions.

This has been fixed in https://github.com/soc/directories-rs/commit/4067d11fb1964a34bc8ad024b3ff01a01980752e.

repo: soc/directories-rs


text:
chore: release v0.3.21

:robot: I have created a release beep boop
0.3.21 (2024-10-15)
Bug Fixes

deps: update dependency zustand to v5 (#178) (0f46230)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.3.21
:sunflower:


text:
Add allowed_actions for ViewSet and View.

When using the ResourceRepositoryViewSet class, all the available resource actions are available on the endpoint by default. It's difficult to block certain actions, like "delete", as this requires creating custom ListView / DetailView classes only to raise an exception.
This PR adds an optional mixin that can be used to disallow all actions by default and explicitly state which ones are allowed.
Example (all actions are allowed by default):
class MyResourceViewSet(flask_jsonapi.ResourceRepositoryViewSet):
    schema = schemas.MySchema
    repository = repositories.MyRepository()

Example (allowed actions are limited to "read" and "read_many"):
class MyResourceDetailView(flask_jsonapi.AllowedActionsResourceDetailMixin, flask_jsonapi.ResourceRepositoryDetailView):
    pass

class MyResourceListView(flask_jsonapi.AllowedActionsResourceListMixin, flask_jsonapi.ResourceRepositoryListView):
    pass

class MyResourceViewSet(flask_jsonapi.AllowedActionsResourceViewSetMixin, flask_jsonapi.ResourceRepositoryViewSet):
    schema = schemas.MySchema
    repository = repositories.MyRepository()
    detail_view_cls = MyResourceDetailView
    list_view_cls = MyResourceListView
    allowed_actions = (
        resources.Actions.read,
        resources.Actions.read_many,
    )

We encourage you to make this the default behavior for your app (deny by default, only allow access explicitly). Introducing a base ViewSet class will help.
Example:
File base.py
class BaseDetailView(flask_jsonapi.AllowedActionsResourceDetailMixin, flask_jsonapi.ResourceRepositoryDetailView):
    pass

class BaseListView(flask_jsonapi.AllowedActionsResourceListMixin, flask_jsonapi.ResourceRepositoryListView):
    pass

class BaseViewSet(flask_jsonapi.AllowedActionsResourceViewSetMixin, flask_jsonapi.ResourceRepositoryViewSet):
    detail_view_cls = MyResourceDetailView
    list_view_cls = MyResourceListView

File endpoints.py:
from flask_jsonapi import resources

from my_app import base, repositories, schemas

class MyResourceViewSet(base.BaseViewSet):
    schema = schemas.MySchema
    repository = repositories.MyRepository()
    allowed_actions = (
        resources.Actions.read,
        resources.Actions.read_many,
    )

This change is

Coverage increased (+0.2%) to 94.651% when pulling 617709e68012eea56737bd4c9c618d7971b33e4d on allowed_methods into f2f179984b608dfd4ff5febe0d84950a90115e0b on master.

authors: coveralls jgoclawski

repo: socialwifi/flask-jsonapi


text:
[Column/TableCell] Add “icon-S”, “icon-M”, etc.  as options for “size” prop

Currently
The width of a Column (or TableCell) can be set via the size prop to either a fraction represented as a string (e.g. size="2/4") or as the content width (size="content"). If no size is set the column widths are distributed evenly.
Wanted
As discussed with @tar-viturawong-sociomantic, it would be useful to accept our Icon sizes in the size prop. E.g: size="icon-S" or size="icon-L".
This could be used for table layouts where we have columns that contain icons (e.g. columns containing Delete or Edit IconButtons).

@conor-cafferkey-sociomantic what is the difference here form implementing this fixed sizes or using the "content" prop? it isn't enough for this goal to use the "content"prop already implemented?

Hey @eric-martinez-sociomantic, yep fair question, my description above didn't really make that clear.
The use case is when when we want a particular column to have the the size of an icon but we don't necessarily have any content in the table cells in that column. For example:

Fruit
Quantity

Apple
2000

Orange
1500

Kiwi
15
[+]

In this example the  [+] is an icon button that places an order for more Kiwis and that icon button is only shown when the quantity is below a certain amount.

repo: sociomantic-tsunami/nessie


text:
Console example on [Linux] login problem

After having launched the echo_server (https://github.com/socketio/socket.io-client-cpp/blob/master/test/echo_server/index.js), the compiled  sio_console_demo starts running normally, giving this output:
[2016-02-16 19:15:40] [connect] Successful connection
[2016-02-16 19:15:40] [connect] WebSocket Connection 127.0.0.1:3000 v-2
"WebSocket++/0.5.1"/socket.io/?EIO=4&transport=websocket&t=1455646540 101
Type your nickname:

but after entering the nickname, the client does not execute the code inside currentsocket->on()  (https://github.com/socketio/socket.io-client-cpp/blob/master/examples/Console/main.cpp#L129), and it skips directly to the wating condition on partecipants number (https://github.com/socketio/socket.io-client-cpp/blob/master/examples/Console/main.cpp#L140).
What could be wrong?
p.s. Where is the number of participants actually increased? Sorry if I may sound noob but I'm quite new on web developing :sweat_smile:
(Specs: Ubuntu 15.10, CMake 3.4.3, BoostVer 1.55)

I was unaware that I had to use the other package js server (https://github.com/socketio/socket.io/blob/master/examples/chat/index.js), sorry. Using that one works.