fix: unity teleport

Why?
...

Looks good, was it tested?

No, labeling blocked until I write a test.

I mean if it was manually tested

Works on my machine™
@matiasbargas how would you go about testing this? are there any other integration tests I could tap on to test this?

No, there are not yet. I'd say lets just merge it.

I dont see futher issues, but I'm not that used to explorer


Add ability to view issues assigned to a specific user

The app gives me an error (403 I believe) when I try to filter issues based on who they are assigned to. I'm able to do this on the website even on repos that I do not contribute to so it would be nice if I could do the same here.

How are you trying to do this?
It's working fine here if I search for assignee:jonan.

Same way you normally would. I go to the ForkHub repo, click on the Issues tab, select Open Issues. Then when I select Assigned To it gives me the 403 error stating that I must have push access to view repository contributors.

You're completely right :wink:

I just opened a repo in the app where I am not an owner but I do have push rights and it gave me no issues filtering by the assignee.


Make award title field optional

Is your feature request related to a problem? Please describe.
I'm migrating data from a system where only award numbers were required, and I don't have an automated way to get grant titles. When funding is added to the deposit form, it will also be annoying for users to have to enter a grant title for grants not in OpenAIRE.
Describe the solution you'd like
Make the award 'title' an optional field.
Describe alternatives you've considered
Ideally we would be able to automatically get the grant title from OpenAIRE, but we have funding from a number of sources that won't be indexed in OpenAIRE. Requiring grant titles is too large a burden for either researchers or library staff.

Ping @slint - I think you need to take this into account on the funder/grant sprint.

Would it be an acceptabe solution to make it in a similar way than with the new names vocabulary? i.e.:

If the grant exists in the vocabulary it will forcefully have the name (I guess is what Tom means by "automatically get the title from OpenAIRE").
If the grant is not in the system (do we allow this??), then title would be optional.

I think what Tom is referring to is the record data model:

So both in the RDM record data model, and the grant vocabulary we cannot require title is set. So probably we should simply require that title or number is set.

sorry, I didn't explain myself well. That's what I meant with then title would be optional in the second point. 👌

Yup, this issue is specific to the data model, as I'm loading in records with the API. title or number, or just requiring number would work fine.
I think reusing the names vocabulary is a very good approach for the funder/grant implementation.


[issue-93] data-manager endpoint

What does this PR do?
This PR fixes an issue in one of our systems.
The endpoint https://data-manager-dot-airqo-250220.appspot.com/api/v1/data/feeds/hourly/912220 is not functioning as expected, it returns 500 server error.
This PR is linked to this issue-93

What JIRA task is related to this PR?
There is no JIRA card, I do not have the creation rights in the boards for API, APP and website.

How do I test out this PR?
Git clone this repo cd AirQo-api/src/data-mgt Then run npm install to get all the necessary dependencies Afterwards run npm run prod to test out the end points using any REST client tool available to you.

Which end points should are ready for testing?
base url: http://localhost:3000/api/v1/data
[GET]partial url: /feeds/hourly/912220
More details in the API documentation here(data-mgt sheet)


Add Route constraint (including min and max layer per net)

This PR address #1100

@soneryaldiz Here is a PR to start working on #1100. Could you look at the schema and see if it is correct?

In the failing test (test_abut) it tooks like the different rows have different x values for the lines of symmetry.
align.schema.hacks ERROR : Solution not found due to conflict between:
align.schema.hacks ERROR : {"constraint": "symmetric_blocks", "pairs": [["X_CCP_MP5_MP6"], ["X_CCN_MN3_MN4"], ["X_DP_MN1_MN2"], ["X_MN0"], ["X_INVN_MN12_MP14", "X_INVP_MN11_MP13"], ["X_MP7", "X_MP8"], ["X_MP9", "X_MP10"]], "direction": "V"}
align.schema.hacks ERROR : {"constraint": "order", "instances": ["X_INVN_MN12_MP14", "X_INVP_MN11_MP13"], "direction": "left_to_right", "abut": true}
align.schema.hacks ERROR : {"constraint": "assign_bbox_variables", "bbox_name": "X_DP_MN1_MN2", "llx": 324, "lly": 1260, "urx": 5724, "ury": 3780}
align.schema.hacks ERROR : {"constraint": "assign_bbox_variables", "bbox_name": "X_CCP_MP5_MP6", "llx": 1080, "lly": 6930, "urx": 4968, "ury": 8820}
align.schema.hacks ERROR : {"constraint": "assign_bbox_variables", "bbox_name": "X_INVP_MN11_MP13", "llx": 2916, "lly": 9450, "urx": 4212, "ury": 10710}
align.schema.hacks ERROR : {"constraint": "assign_bbox_variables", "bbox_name": "X_INVN_MN12_MP14", "llx": 2268, "lly": 8820, "urx": 2916, "ury": 11340}

The DP and CCP have center point 3024 but the two abutted inverter have 2916.
I'll disable this test and open a new PR to address this.
(You need to turn off the checker to see image. It happens on the _5 placement.

Thanks @stevenmburns . It looks like the inverters are not using the same template. Even so, they should have been placed symmetric. If you could disable the test for now, I can start a new PR. @854768750 , fyi.

@soneryaldiz There is no real way to add a constraint for SameTemplate between these.
Two separate pieces of hierarchy are constructed using GroupBlocks and while we can add a SameTemplate constraint between them I don't think it does anything. I have this same problem in the NIWC opamp (when I split a pair of devices into two pairs of devices (connected in parallel) I have no way to say they need to be the same.)

@soneryaldiz This should be ready to review

@kkunal1408 @soneryaldiz Added simple tests to make sure layers were excluded.

@stevenmburns , I agree that SameTemplate does not do anything for two distinct GroupBlocks. I think we can make SameTemplate work across distinct GroupBlocks by simply checking equivalence and erroring out if the subcircuits do not match in the compiler.


GcInfo checking and updating when transferring Pr47 objects to Rust

(Outdated information, see the following comments)

Blocking on #5

No more blocking on #5

Blocking on VM implementation change.

Though the major changes have finished, but the bug is still here. What's more, here's comes another problem that we must consider: what if one argument fails in lifetime checking? Take the following function as an example:
fn foo<'a>(t: T, u: &U, v: V) -> R;

Here, T/U/V are all move types.
To make the foo callable from Pr47, the following wrapper would be generated:
fn call_foo(args: Vec<Value>) -> Result<Value, Error> {
    if args.len() != 3 { return Err }
    let t = args[0].move_as::<T>()?;
    let u = args[1].ref_as::<U>()?;
    let v = args[2].move_as::<V>()?;
    let r = foo(t, u, v);
    return Value::try_from(r)
}

If args[1] fails to move, an Err is returned (an exception is thrown in Pr47 VM) and the function call is cancelled. However, status of t/u/v are inconsistent now: u and v remains usable, while t gets moved away.
This makes the lifetime checking exception almost not recoverable at all, because user don't know what variables are still usable after an exception is thrown out.

[JUG] The so called "lifetime checking exception" is almost an "unchecked exception" in Java, and maybe a panic in Rust. I don't think this simply an implementational issue. We should talk about unchecked exceptions under the "Checked exception proposal P0002 https://github.com/Pr47/doc47/issues/2"

[JUG] Threading also matters here.

[JUG] Threading also matters here.

[MID] Sharing objects between threads is unsafe anyway. That may also cause data race in Java or C#. We can simply prohibit sharing raw objects between threads.

[TOP] We found that any time we send Pr47 objects to Rust, we must consider lifetime of these objects. Good news is that these are only related with FromValue

[SUP] 做不完不准吃晚饭。

[MID] This has been fixed by recent commit.

[JUG] This has not been fixed.

[SUP] @[MID] 把昨晚吃的饭给我吐出来

[TOP] The most recent commit https://github.com/Pr47/T10/commit/b2c7e85c316fb532134629a59095387afe678f93 tends to solve this issue. It's only left for testing team to check the solution.

[TOP] The most recent commit b2c7e85 tends to solve this issue. It's only left for testing team to check the solution.

[JUG] Unfortunately it did not solve the problem at all.

This seems to be resolved with recent commit. We need some refreshment on our codes, however.

This seems to be resolved with recent commit. We need some refreshment on our codes, however.


Dribble shot button for sending button

Fixes Issue
#821
Changes proposed
Dribble shot button for sending button
Video
https://github.com/Spyware007/Animating-Buttons/assets/114821855/36fdaf7e-1e68-4fa6-939d-4288c722a969
Checklist

[x] You've linked this PR to the correct issue.
[x] You have checked that the code is working correctly.
[x] You ⭐ the repository!

Note to reviewers

Please review @PoorviShetty

Please review at once! @PoorviShetty

Can you please review it? @Spyware007


Night CI 2023-03-06: Failed

action url: https://github.com/spidernet-io/spiderpool/actions/runs/4347578357

Ignore this issue during code refactoring.


PROBLEM SETTING PARAMETERS IN WEBHOOK

Hello,
I find an error when adding apikeys and urls as parameeters for the webhook (IBM action function).
See attached image:
https://i.stack.imgur.com/0tdJL.png

The keys or urls appear in red and cant SAVE.

Hi,
Try enclosing the API key in double quotes like the other parameters.

Hi,
Try enclosing the API key in double quotes like the other parameters.

Thank you very much!!

Correct - enclose the API key in double quotes but it points out a subtle problem in the documentation.
We can either redo the screenshot (which blurs the API key) so that the blur does not include the
" ▓▓▓ "
Or we could mention it in the text description.

Mentioning it in the text description will be very helpful.

I found out that the system-variables for location are not working, so the bot cant really get the information properly from the API or "The Weather Company".
@sys-location has been deprecated.
Please let me know how to solve this problem if possible.

I updated the README to specify double quotes.
https://github.com/Call-for-Code/Solution-Starter-Kit-Communication-2020/commit/b9432227c0bdfdc88d49422e4fa5eb12b5bbf1bb


New API for Plot Objects

Current problems

Combined and PlotSpec structure is confusing and probably too complex for what it does
Plot objects can't be instantiated without giving a scene

This causes problems when pre-assembling plots without a preexisting scene, which limits our API options because scenes have to be passed to everything

Plot objects can be too "entangled" with the scene they're in, for example if they lift on scene properties like errorbars does, because there is no API to disconnect those connections and reconnect them when moving the plot object to a different scene

API wishlist
# instantiate without scene, observable structure must internally be correctly created
# and just waiting for connection to scene
scatterobject = Scatter(x, y)

# add to scene and connect all relevant observables
push!(scene, scatterobject)

# remove from scene and disconnect all relevant observables
delete!(scene, scatterobject)

# re-add a removed plot object to a scene without problems
push!(scene, scatterobject)
delete!(scene, scatterobject)
push!(other_scene, scatterobject)

# remove a plot object from its parent without specifying it
push!(scene, scatterobject)
delete!(scatterobject)

# plot object can only have one parent, pushing to another disconnects from the first one
push!(scene, scatterobject)
push!(other_scene, scatterobject) # implicit delete!(scatterobject)

# it should not matter if a plot object's parent is a scene or another plot object
push!(my_plot_object, scatterobject)

Questions

What observables does every plot object need from a scene? All of them? How to most sensibly store, connect and disconnect them?
How do the backends factor into this, for example with GPU state etc?
How to unify Combined and PlotSpec into one?

So each scene has

events
camera
camera_controls
data_limits
transformation
Attributes

in terms of updateable fields that a plot object might care about. Which ones of these should be mirrored on the plot object side so that the internal logic can be set up without a scene being present?

I should add to the wishlist:

we want to fix the attributes a plot can contain, to give better errors
we want an easy way to get an attribute as a plain value, converted, and as an observable
I think it was a mistake, to push Plots to other plots. What we want here is to have a separate plot type, that can combine plots - I guess we could call it PlotCollection, or CombinedPlot :P This would give this a much saner design, instead of everything being a combined plot!
it should be possible to return Plot objects from convert_arguments

If we disconnect the Scene more from the plots, we can also think about factoring out the events from scene.
That was a bit ill designed as well, since they're really just window events, and there should just be one per window. We can hook the events up with the plots, when a scene with plots is added to a scene!

Oh and another thing, in my Text redesign I needed a place to store computed layouts, and there was no obvious option for me to store it except in an attribute. Which is really ugly (it was even an _underscore attribute name)

How do the backends factor into this, for example with GPU state etc?

SSAO attributes (not ssao=true) and backgroundcolor are strictly per Scene.
And now that Simon mentioned events - being able to lock/consume events would be nice. For example, if you have a slider next to a 3D plot and drag to far, you rotate the 3D plot. Or if you select a LMenu item over a slider, you may also adjust the slider.

if you have a slider next to a 3D plot and drag to far, you rotate the 3D plot. Or if you select a LMenu item over a slider, you may also adjust the slider

The slider thing is just bad dragging logic in the scene, my mousestatemachine code in MakieLayout guards against dragging in from the outside.
The LMenu thing with the slider is because right now, the slider accepts clicks in the whole scene area, because the line is so thin.. But then even if an LMenu covers part of the slider scene, the slider scene event doesn't know that and still triggers. It's not such an easy problem I think :)

I'm following a game engine tutorial series on the side. The event implementation they have essentially goes as such:

(GLFW) events create some event type, e.g. KeyPressedEvent and call handle!(application, event)
handle!(application, event) processes some events, like a WindowShouldCloseEvent and WindowShouldResizeEvent. The remaining events are passed on to layers in reverse render order (last drawn gets events first) via handle(layer, event)
Each layer can then implement handle!(layer, event) to process an event. If handle! return true, the event is  consumed, otherwise it goes down to the next layer.

Every so often I wonder if that design would be better for Makie. You can more or less translate application to scene and layer to plot. This would immediately fix my second point, because the menu could consume the event. For the first point - I think it would be relatively easy to set up a gui_layer/gui_plots which take events first.
From the user perspective adding some behavior based on an event would then require implementing
function AbstractPlotting.handle!(plot, event::SpecificEventType)
    # do something
    return true # true = event consumed, false = event continues to be passed
end

I don't know the internals at all well (yet), but in reconsidering the API, I'll throw up a deliberately-exaggerated proposed mental model: that plot objects should be only minor elaborations of Expr.
In a bit more detail, what I mean is that scatter(x, y) should create an object that does nothing more than record three facts: it's built from x and y and should be used to create a 2d scatter plot object. The type used to encode this object should also allow for those customizations that you would legitimately supply as extra arguments (keyword or otherwise) of that scatter call, things like color, marker, etc. Things like data limits, transform, camera controls, and layout are foreign to this notion, because they would never be supplied as part of the same command. That's the sense in which plot-objects are just glorified Exprs that merely capture the arguments a user has supplied, while also permitting modifications at a later time.
Parallel to plot objects would be "views", which include a layout hierarchy, camera settings, and transforms, and "actions" (events and their handers). Plot objects could literally be stored as a flat (and completely unorganized) list in the figure in which they appear, though I suspect each should be assigned a uuid and therefore should probably be a Dict. (The uuid would also be stored as a field of the plot object and thus one could easily go back and forth between the "key" and the "value.") This would facilitate pushing a single plot object to multiple container views, where the linkage is probably made via the uuid, and for example allowing both a zoomed-out and zoomed-in view in side-by-side axes. As long as the renderer skips over stale linkages, you could also delete a uuid from the Dict and have it disappear from all panels in which it is viewed.
I think that's pretty consistent with what's in the API demo in https://github.com/JuliaPlots/Makie.jl/issues/725#issue-722266337. The key thing seems to be to think of scenes (or whatever replaces them) as containers that you push plot objects to, rather than an argument you supply to the object constructor. There would be no more scatter!(scene, x, y), there is only `scatter(
One apparent loss would be in interactivity: naively, scatter(x, y) won't produce a plot anymore. But I think you could make the show method replace the contents of a default/current axis container---in essence, show(obj) calls push!(currentaxis, obj); show(currentfigure).
Again, I'm a total newbie here, speaking without the long experience of Makie's designers.

That sounds like a good plan, and I've been contemplating a lot to turn the plot object into something that is purely a spec of what should be plotted... It's just not 100% trivial to get there, under the constraints of usability, type inference, compile times and interactivity( with the event system).

I think it could be quite hard to have plot objects that just store their input arguments, as the connection of these arguments to some plottable outcome is often the heart of the plot object implementation. So I think it's fine that a scatter object can only really be displayed once it's pushed to a scene. But it's important that it's internal logic is not dependent on its "mother scene" which it was first pushed to.
Your idea with Expr like objects seems really well suited to a separate effort for a recipe system for Makie. But I'm not sure if the actual plot objects can be so reduced in scope.

Again, I don't have your experience. But I don't see any fundamental obstacle. Basically, I'm proposing that one make content orthogonal from layout orthogonal from rendering. That would suggest that you have some objects that represent each of these pillars. That doesn't prevent you from creating hybrid objects that combine one or more of each, plus any "glue" fields needed to make them interoperate.
AbstractPlotting and its internal MakieLayout seems fairly close to this already, so I don't mean to sell this as a more fundamental shift than it is. But my naive impression is that currently things are a bit mixed together. For example, the first call to LAxis(scene) has huge latency, because its poly! and line! calls end up triggering a whole cascade of inference. A dump of @NHDaly's new inference-trees (https://github.com/JuliaLang/julia/pull/37749) up to depth 50 with AbstractTrees.jl yields a file with more than 30k lines in it. I don't know Makie well enough to be sure, but a lot of them seem to be about geometric operations and rendering (e.g., lots of NamedTuple{(:visible, :shading, :fxaa), T}, which kinda look like rendering parameters), and to me it's just not clear that declaring a container object should trigger big chunks of the rendering pipline. To see what I mean, try this (on a recent Julia nightly or source build):
using AbstractPlotting, AbstractTrees
using AbstractPlotting.MakieLayout
AbstractTrees.children(node::Core.Compiler.Timings.Timing) = node.children
AbstractTrees.printnode(io::IO, node::Core.Compiler.Timings.Timing) = print(io, node.time/10^6, ": ", node.mi_info.mi)
scene, layout = layoutscene()
function time_inference()
    Core.Compiler.Timings.reset_timings()
    Core.Compiler.__set_measure_typeinf(true)
    LAxis(scene)
    Core.Compiler.__set_measure_typeinf(false)
    Core.Compiler.Timings.close_current_timer()
    return Core.Compiler.Timings._timings[1]
end
tinf = time_inference()
open("/tmp/LAxis.log", "w") do io     # or wherever you like to store your temporary files
    print_tree(io, tinf, 50)
end

and then open up /tmp/LAxis.log in an editor. The floating-point number before each MethodInstance is the inference time, in milliseconds.
The way I think about it, it seems like it should be possible to define a heirarchy of axes, etc, independent of the actual geometry or rendering. You call that code only when you actually display an object. I'm not necessarily saying that it will end up saving much inference time (it might merely delay it), but the triggered cascade seems like a symptom of mingling among what I naively expect could be independent layers.
I don't mean to pick on MakieLayout, as it exhibits several traits that I think should become the default for Makie. And again, I don't have yours and @SimonDanisch's expertise.

No I think you're completely right to question these design decisions. I can only speak for the MakieLayout part, as I didn't write AbstractPlotting. But it grew very organically, and I tried to use the existing functionality to hack together an axis that could be put in a layout and that wouldn't zoom its axis labels together with the content. From there it just got more and more complex, and because no standalone plot objects were available at the time, the whole LAxis thing is written like a hybrid of plot recipe and GUI container object. I would love to make this more streamlined, don't get me wrong :)
At least GridLayoutBase got factored out in the process and is now kind of parallel to everything else. Which is nice, but sometimes people are also confused that when a layout contains an object this doesn't mean that the scene contains / renders it. So the separation of concerns is sometimes hard to enforce.
One other thing which complicates things is that the layout code depends on getting measurements of things like axis labels. These can be measured only relative to a containing scene. That's another reason why all labels are instantiated as plot objects in the LAxis constructor, so that I can set up the reactive layout for whenever they change in size.


[metricbeat] using https to connect to elasticsearch

This PR enable metricbeat to connect into Elasticsearch via https

ok to test

jenkins test this pipeline please

jenkins test this pipeline please

ok to test

ok to test

jenkins test this please

jenkins test this pipeline please

jenkins test this please

ok to test


Cannot load ExcelDataReader

Description
未能加载文件或程序集“ExcelDataReader, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=93517dbe6a4012fa”或它的某一个依赖项。系统找不到指定的文件。
Related information

Operating system: Windows 10 18334
Branch: 1.0.1, 1.0.0, 0.9.1
.NET CORE 2.2
FSharp.Core 4.6
TargetFramework: net471
Platforms: x86

Any news? I'm having the same issue on .Net Framework too.
As a workaround, should I manually add this dependency to the project, right?
Please, confirm, thanks.

I use paket, and I have to set specific version like below:
nuget ExcelProvider 1.0.1
nuget ExcelDataReader 3.6.0
nuget ExcelDataReader.DataSet 3.6.0

I don't use paket but it has a documentation about assembly bindings:
https://fsprojects.github.io/Paket/dependencies-file.html#Controlling-assembly-binding-redirects

Had the same issue. I was able to use this package after invoking:
dotnet add package ExcelDataReader --version <IP_ADDRESS>
dotnet add package ExcelDataReader.DataSet --version <IP_ADDRESS>

which seems like a quick fix. I'm quite new to the .NET ecosystem, shouldn't these dependencies be handled implicitly when installing the ExcelProvider package?

Hi @mjarosie .
Yes it should, but for some reason it doesn't
Will have another look at it to see if i can fix this.

@quintusm Any update on this issue? When running code from a script (using paket generate-load-scripts), all works fine. but when trying to use the code from another project, the above error occurs.

HI @halcwb
Unfortunately this issue still exists.  The nuget package currently specifically targets net45 and netstandard2.0 so if you target those platforms it brings down the correct dependencies. On other platforms is doesn't bring down the required packages and you get the runtime issues you are experiencing. The workaround currently is as follows:
Manually add dependencies to the following nuget packages in addition to  ExcelProvider:

ExcelDataReader
-ExcelDataReader.DataSet
-System.Text.Encoding.CodePages ( for core and standard projects, not necessary on full framework projects)

The version number redirects should be handled automatically if you do this.
Hope this helps
I am working on new versions which should alleviate this. However, I need to update to FAKE5 first to sort out some issues with building and that is quite a large change and I have limited time available for this.

Version 2.0.0 is released.  This version is now built for netstandard2.0 only, and this issue should now be resolved.  Closing this issue.


PNG encoder ignores upper 16-bits of width and height values

This means that PNG images generated using this code can only have dimensions that are less than 2^16.
https://github.com/richgel999/miniz/blob/293d4db1b7d0ffee9756d035b9ac6f7431ef8492/miniz_tdef.c#L1544
The PNG file format specification includes 32-bits for the width and height values, each, in the header. This implementation only uses the lowest 16-bits of the width and height values passed into the function and leaves the upper two bytes for them in the header initialized to zero.
It can easily be modified to include the entire width and height values (though they are signed ints when passed into the function) but I just thought it was worth pointing out for anyone else who is trying to output huge PNG files with this encoder. :)

Could you create a PR to fix this? Looks easy to do (at least for the other 8 bits).


Reproduce AlexNet results.

I'm trying to reproduce this example http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb using SqueezeNet, but for this picture https://github.com/BVLC/caffe/blob/master/examples/images/cat.jpg predicted class is 278 which is n02119789 kit fox, Vulpes macrotis from https://github.com/HoldenCaulfieldRye/caffe/blob/master/data/ilsvrc12/synset_words.txt
Is it normal? Or something is wrong?
Here is full code:
import numpy as np
import matplotlib.pyplot as plt

# The caffe module needs to be on the Python path;
import sys
caffe_root = '/home/myuser/Downloads/caffe'# Change this line !
sys.path.insert(0, caffe_root + 'python')

# If you get "No module named _caffe", either you have not built pycaffe or you have the wrong path.
import caffe

caffe.set_mode_cpu()

model_def = '/home/myuser/Desktop/GeneralDBCreator/python/SqueezeNet/SqueezeNet_v1.0/deploy.prototxt'
model_weights = '/home/myuser/Desktop/GeneralDBCreator/python/SqueezeNet/SqueezeNet_v1.0/squeezenet_v1.0.caffemodel'

net = caffe.Net(model_def,      # defines the structure of the model
                model_weights,  # contains the trained weights
                caffe.TEST)     # use test mode (e.g., don't perform dropout)

net.blobs['data'].reshape(1,        # batch size
                          3,         # 3-channel (BGR) images
                          227, 227)  # image size is 227x227

image_path= '/home/myuser/Desktop/GeneralDBCreator/python/cat.jpg' # Change this line !
image = caffe.io.load_image(image_path)

mu= np.array([104.0069879317889,<PHONE_NUMBER>1696767,<PHONE_NUMBER>406786])
#mu= np.array([104, 117, 123])

transformer = caffe.io.Transformer({'data': net.blobs['data'].data.shape})
transformer.set_transpose('data', (2,0,1))  # move image channels to outermost dimension
transformer.set_mean('data', mu)           # subtract the dataset-mean value in each channel
transformer.set_raw_scale('data', 255)      # rescale from [0, 1] to [0, 255]
transformer.set_channel_swap('data', (2,1,0))  # swap channels from RGB to BGR
transformed_image = transformer.preprocess('data', image)
net.blobs['data'].data[...] = transformed_image

output = net.forward()

output_prob = output['prob'][0]  # the output probability vector for the first image in the batch

print 'predicted class is:', output_prob.argmax()

labels_file = '/home/myuser/Desktop/GeneralDBCreator/python/synset_words.txt'
labels = np.loadtxt(labels_file, str, delimiter='\t')
print 'output label:', labels[output_prob.argmax()]

Our claim is that, on the ImageNet test set of 50,000 images, SqueezeNet accuracy as at least as good as AlexNet accuracy. You have to admit that running one image isn't a good statistical measure of accuracy. :)
Even when training AlexNet multiple times with different random seeds, we've found that some training runs produce an AlexNet model that gets your cat image right, and some that get it wrong. But, zooming out to a larger statistically-significant test set, each training run leads to a model with similar overall accuracy. Same deal with SqueezeNet.

I met the same problem. The output of my test demo is
278 n02119789 kit fox, Vulpes macrotis
151 n02085620 Chihuahua
263 n02113023 Pembroke, Pembroke Welsh corgi
277 n02119022 red fox, Vulpes vulpes
331 n02326432 hare

@auzxb as said before it's 'normal' behaviour, because accuracy calculated on larger set of images and in average is should be near the same as AlexNet accuracy.
You can look at my results, it's relly near the same performance:
https://github.com/mrgloom/kaggle-dogs-vs-cats-solution


failed to build ros-world

$~/devel/build$ bitbake core-image-ros-world
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 1994 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'libav' (but /home/peter/devel/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb DEPENDS on or otherwise requires it)
ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
NOTE: Runtime target 'compressed-image-transport' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['compressed-image-transport', 'cv-bridge', 'opencv', 'libav']
NOTE: Runtime target 'packagegroup-ros-world' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-ros-world', 'compressed-image-transport', 'cv-bridge', 'opencv', 'libav']
ERROR: Required build target 'core-image-ros-world' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-ros-world', 'packagegroup-ros-world', 'compressed-image-transport', 'cv-bridge', 'opencv', 'libav']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Compiling the PCL library needs a lot of CPU power and memory. If you build PCL on a machine that just does not provide the needed ressources, it will start thrashing and the build will take longer than anyone would accept.
I am closing the issue because there is nothing we can do in the meta-ros layer here.


WIP: enable internal plotting with cftime datetime

This PR is meant to restore the internal plotting capabilities for objects with cftime.datetime dimensions.
Based mostly on the discussions in #2164

[x] Closes #2164
[x] Tests added
[x] Fully documented, including whats-new.rst for all changes and api.rst for new API

Ok I think I have most of the things covered. All test pass for me locally. What should I add to the  whats-new.rst. I thought of something like this under Enhancements (or would this be considered a bug fix?):
Internal plotting now supports cftime.datetime objects as time axis (@spencerkclark, @jbusecke)

@jbusecke Can you also add nc_time_axis to print_versions() if it is installed?

I am smh getting these errors in the backend part of the tests:
======================================================== FAILURES =========================================================
___________________________________ TestNetCDF3ViaNetCDF4Data.test_encoding_same_dtype ____________________________________

self = <xarray.tests.test_backends.TestNetCDF3ViaNetCDF4Data object at 0xd238d9a20>

    def test_encoding_same_dtype(self):
        ds = Dataset({'x': ('y', np.arange(10.0, dtype='f4'))})
        kwargs = dict(encoding={'x': {'dtype': 'f4'}})
        with self.roundtrip(ds, save_kwargs=kwargs) as actual:
>           assert actual.x.encoding['dtype'] == 'f4'
E           AssertionError: assert dtype('>f4') == 'f4'

xarray/tests/test_backends.py:853: AssertionError
_____________________________________ TestGenericNetCDFData.test_encoding_same_dtype ______________________________________

self = <xarray.tests.test_backends.TestGenericNetCDFData object at 0xd238e0588>

    def test_encoding_same_dtype(self):
        ds = Dataset({'x': ('y', np.arange(10.0, dtype='f4'))})
        kwargs = dict(encoding={'x': {'dtype': 'f4'}})
        with self.roundtrip(ds, save_kwargs=kwargs) as actual:
>           assert actual.x.encoding['dtype'] == 'f4'
E           AssertionError: assert dtype('>f4') == 'f4'

xarray/tests/test_backends.py:853: AssertionError

They do not always show up...not sure what to make of it, but could be an issue with my local environment. Lets see if the CI shows this aswell.

Can you also add line somewhere at the top of plotting.rst saying that cftime plotting is supported once nc-time-axis is installed?

I think I have addressed all the above remarks (Many thanks for the thorough review and tips). Waiting for the CI again.

Seems like the travis builds all pass, wohoo. Please let me know if anything else is needed.

Thanks. I updated the PR accordingly.

Awesome. Just added the line. Let me know if you think it is appropriate.

Thanks for this @jbusecke! Really excited to have this feature in Xarray now.


ci: use windows-2022 and default go-version

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-05-26T08:22:14.185+0000

Duration: 18 min 40 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
198

Skipped
0

Total
198

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.


0.5.5 release

Hello, can you please provide a new release?
For jspm this is mandatory, because the new package.json fixes the error with the main file (i think).

Also waiting for 0.5.5... Need the main entry to play nicely with browserify.


xSPUserProfileSyncConn

AD import not implemented yet.

@camiloborges Failing unit tests there brother. Also when you say AD import not yet supported, I'm assuming you mean we do work with AD that is using the full user profile sync service but not yet the basic LDAP option?

Hello.
Will look into the unit tests, it was missing one new method inside .util. Obviously I screwed something up as I thought I had already committed and pushed the fix.
Ad import is the other ldap way to do ups sync, I use that in clients with adfs.
Camilo Borges
Mob:0488 056 964
Sent via iPhone while out and about

On 26 Dec 2015, at 9:10 AM, Brian Farnhill<EMAIL_ADDRESS>wrote:
@camiloborges Failing unit tests there brother. Also when you say AD import not yet supported, I'm assuming you mean we do work with AD that is using the full user profile sync service but not yet the basic LDAP option?
—
Reply to this email directly or view it on GitHub.

Reference:
http://blogs.technet.com/b/meacoex/archive/2013/08/04/step-by-step-active-directory-import-for-sharepoint-2013.aspx

@camiloborges Just a few things to review in here for you mate, also need the "unreleased" section of the readme to be updated as well

hey @BrianFarnhill  check if this is now ok.

Thanks for fixing my notes.


Field selectors should support all native k8s operators

Summary
What change needs making?
Currently in the field-selector function there are a lot of limitations compared to native kubectl.
https://github.com/argoproj/argo-workflows/blob/89f2ed1d041d2f555d646ee02b77c7e1dc2bda10/server/utils/list_options.go#L77
For instance, metadata.name or metadata.namespace only work with = and are converted into a simple name lookup.
The k8s package as far as I know already allows for a similar approach as labels.Requirements, where you can use the full range of kubectl field-selectors.
https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
The function should be updated to allow for instance the usage of operators like !=
Use Cases
When would you use this?
Currently we want to use the argo cli to stop a list of ongoing workflows using a combination of criteria such as:
argo stop --field-selector "metadata.name!=workflow_name" -l workflows.argoproj.io/workflow-template!=some_template"
If we omit the --field-selector flag this works flawlessly, with it it returns the following error:
FATA[2024-08-14T15:36:43.802Z] rpc error: code = InvalidArgument desc = unsupported requirement metadata.name!=workflow_name

Message from the maintainers:
Love this feature request? Give it a 👍. We prioritise the proposals with the most 👍.

it feels a little bit weird as I would expect a field selector to behave like https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
This limits functionality by a lot imo.

Yeah i agree with you, would you be interested in contributing this feature?


Replace bsdtar with libarchive-tools in Dockerfile

bsdtar package is unavailable
fixes #1563

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

@markus-becker-tridonic-com - looks good to me. Please sign the CLA so that this can be merged once we gather all required approvals. Thank you for the contribution!

@markus-becker-tridonic-com - looks good to me. Please sign the CLA so that this can be merged once we gather all required approvals. Thank you for the contribution!

working on it with our management.

#1598

@markus-becker-tridonic-com #1598 removed the bsdtar alltogether. Should we keep this around to add libarchive-tools or are those not needed?

not required AFAIK.


Windows support

I don't own a single Windows machine to test this, but at a minimum it looks like pce-light will need to go.

Good news, pcre-light builds on Windows, and besides that there were no issues getting hgrep to build! It's a bit fiddly to set up but it does work:

Interestingly, the colour support is better on cmd:

That's awesome. Someone warned me on Twitter to stop using pcre-light, but I guess they were wrong! Thanks for digging into it.
I'll close this until someone else complains :)


Installation clarification

Hello,
In the Installation instructions, it says:

Since the 1.2 release, nanopub requires the use of Composer. Getting it to do all the things I wanted it to do was getting way beyond my skill level.

I have 0 experience with PHP, and don't plan to tinker with the code.
So I assume that installing Composer is not a requirement?
Can you please list the installation steps just to get the endpoint running for someone with no PHP experience like myself?

I shall be attending to this issue RSN. I see what you're saying about composer, and I'll be coming up with a workaround also.

Closing this now. Instructions for installation via composer & by use of zip files updated.

Thank you. I am in the process of committing these files to my site. Though, I have one basic question.. when and where will the script is creating the content files.. I mean.. once hugo is done generating the site, how would the nanopub generated content files matter. Wondering if this will work for my case where the site is hosted via Netlify. In any case, I'll still try this out.
Also, the vendor/ dir is huge, I guess I can start by not committing only the test files from there, right?


Js/refactor support v2

Changes

Update to latest sensu plugin sdk
Update to latest influx golang client
Introduce new influxv2 authentication configuration options
Deprecate influxv1 authentication configuration options
Add checkArgs logic to map influxv1 deprecated auth into influxv2 compatible auth following:
https://github.com/influxdata/influxdb-client-go#influxdb-18-api-compatibility
Drop support for influx v1.7.x and below

Additional Info

Tested basic metric upload with influx v1.8.x in Sensu workshop environment.

Okay I've done basic testing of this against both influx 1.8 and influx 2.2.0 docker containers running locally.


gene2vec file for CellLM model

Hi,
Thank you for releasing the beautiful work. The dataset and ckpt have been uploaded to Baidu cloud. Could you please also upload the gene2vec file for running CellLM?
Best

Thanks,
We have upload the gene2vec file , you can download it from here, the password is 7a6b.


Update 0.211.7 breaks the mod

After today update (0.211.7) breaks the mod.
Error spam in terminal:
[Error  : Unity Log] MissingMethodException: string World.GetWorldSavePath()
Stack trace:
ValheimPerformanceOptimizations.Patches.MinimapGenerationPatch.MinimapTextureFilePath () (at <25e748930c1b4c01acbe72ede2c372ad>:0)
ValheimPerformanceOptimizations.Patches.MinimapGenerationPatch.Prefix (Minimap __instance) (at <25e748930c1b4c01acbe72ede2c372ad>:0)
(wrapper dynamic-method) Minimap.DMD<Minimap::GenerateWorldMap>(Minimap)
Minimap.Update () (at <a05c950b516847ac906b0be67fc12b40>:0)

I fixed it by just removing the Patch for HeightmapColorAllocationPatch
Contact me on discord if you want the modified dll
Yamato#8987

Fixed as of 1.0.0


Fix issue #8

Fixes the path to the static files

Thank you for the submission, actually this change just fixes it if you had upgraded netbox (not clean install) as it will have the old files in your staticfiles.  This will not work with a fresh install of netbox.  The actual fix was the js files needed to be included in the manifest file.


Templates overhaul

What do you think about this templates improvements?
I previously did some work with flask/jinja2 templates, so seeing that the code contains "TODO: fix templates" comments and functions that concatenated strings to generate html, I thought that I can help with this.
Main points:

There is now a base.html template that index.html and generic.html extend
Added toolkit.html that contains template macros for creation of climb entry (replaces main functions.py functionality)
Added template filters as helpers (replaces additional functions.py functionality)

Hope you find this code changes useful :)

@Jakub-KK Awesome stuff! I will have a proper look probably over the weekend. :)

Looks a lot cleaner now. Thank you :)


Add new default rules

Add more default rules to Gitleaks, based on Trufflehog  ruleset but with minor fixes.

I made the following repo for testing the rules: https://github.com/jesmg/secretsRepo

Hey @jesmg I actually was just working on this yesterday. I have a branch here: https://github.com/zricethezav/gitleaks/commit/94482022264981258ac635de42659a25f0028c5e If you want to update your PR with the rules I supplied (couple of changes that I prefer like (?i) for case insensitivity and limits on the regexes) then I'd be happy to merge this PR.

Sure, I will do it! ;)
Thanks
El lun., 17 jun. 2019 19:37, Zachary Rice<EMAIL_ADDRESS>escribió:

Hey @jesmg https://github.com/jesmg I actually was just working on this
yesterday. I have a branch here: 9448202
https://github.com/zricethezav/gitleaks/commit/94482022264981258ac635de42659a25f0028c5e
If you want to update your PR with the rules I supplied (couple of changes
that I prefer like (?i) for case insensitivity and limits on the regexes)
then I'd be happy to merge this PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zricethezav/gitleaks/pull/231?email_source=notifications&email_token=AB46FD7HY4MBZZF3TID226LP27DURA5CNFSM4HYWOFI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX35DRI#issuecomment-502780357,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB46FD6QD6AC45X2OXHNBSTP27DURANCNFSM4HYWOFIQ
.

Hey @jesmg I actually was just working on this yesterday. I have a branch here: 9448202 If you want to update your PR with the rules I supplied (couple of changes that I prefer like (?i) for case insensitivity and limits on the regexes) then I'd be happy to merge this PR.

Updated!


"Confirm password" field in Sign-Up form

Is your feature request related to a problem? Please describe.
I have noticed that our current sign-up form lacks a confirm password field. This omission poses a potential problem as users may mistype their passwords during registration, leading to account access issues and user frustration. So it will enhance the user experience and improve security,.
Describe the solution you'd like
The solution I propose is to include a confirm password field in the sign-up form. This additional field would require users to re-enter their chosen password, ensuring that they have typed it correctly. By comparing the password entered in the original password field with the one entered in the confirm password field, we can validate and confirm their password selection.
Describe alternatives you've considered
While there are alternatives to implementing a confirm password field, they may not provide an optimal user experience or ensure the same level of security, we can add a toggle(eye) button so that user can see the password.
Additional context
It helps prevent potential login issues caused by password typos and gives users confidence that they have successfully chosen their desired password. By implementing this feature, we can enhance the overall user experience and promote a more secure registration process for our platform.

Please assign me this issue so that I can work on this issue under GSSOC'23.

Assigned @vaibhav5140

Hey @SurajPratap10 , I've had experience in this validation. Please assign me this issues under GSSoC'23.
THANK YOU


uxn: 1.0-unstable-2024-08-12 -> 1.0-unstable-2024-08-25

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for uxn is: Assembler and emulator for the Uxn stack machine
meta.homepage for uxn is: https://wiki.xxiivv.com/site/uxn.html
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.0-unstable-2024-08-25 in filename of file in /nix/store/g6di2imymsyp0z03fkpnph9jvmn8p796-uxn-1.0-unstable-2024-08-25

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

uxn

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/g6di2imymsyp0z03fkpnph9jvmn8p796-uxn-1.0-unstable-2024-08-25 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A uxn https://github.com/r-ryantm/nixpkgs/archive/4b8fe91f688af649d4f5c2cfd0b217bb40efa630.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/4b8fe91f688af649d4f5c2cfd0b217bb40efa630#uxn

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/g6di2imymsyp0z03fkpnph9jvmn8p796-uxn-1.0-unstable-2024-08-25
ls -la /nix/store/g6di2imymsyp0z03fkpnph9jvmn8p796-uxn-1.0-unstable-2024-08-25/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

uxn
uxn.projects

Maintainer pings
cc @AndersonTorres for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Make image run non-root

Changing the image to run non-root

@wacken89 will you please take a look at my PR? :)

@bork91  PR merged and released
Thank you for contributing


[Feature Request/Question]:  Disable Album Artwork

Choose the extension for feature request.
Full Screen Mode
📝 Provide a description of the new feature
Hey, don't know if there's an option to this, I've tried doing so within the available settings, but the artwork still appears at fullscreen. Am I missing something? If not, then it'll be pretty cool to see added.
➕ Additional Information
An option called ''Disable Album Artwork'' which basically hides that, but only shows the background colors, or whatever the user has choosen to be displayed.

Hi @plopin3472, I tried what you said but the UI will look a little weird without the foreground artwork, there is one mode called the TV Mode which is minimal and has a small artwork, and you can mess with the background to your heart's extent.
If you still want to hide the artwork you do so using CSS styling, you can remove that image by looking through the devtools and getting the selector of that artwork and using the display: none; property to hide it.
this and this can help you get started.
If you are interested I would recommend learning a little HTML and CSS so that you can customize and style Spotify how you like it.
Cheers!


Add sliding window

Adds option to utilize a sliding window in place of the standard attention.
Setting default for sliding window to be False.

Closing, I'll go back and rebase first to clean the PR.


Resize relies on interpolate's native uint8 handling

Description:

Now that https://github.com/pytorch/pytorch/pull/90771 is merged, let Resize() rely on interpolate()'s native uint8 handling instead of converting to and from float.

uint8 input is not casted to f32 for nearest and bilinear modes

Context: https://github.com/pytorch/vision/issues/7217
Benchmarks:
[-- Resize cpu torch.uint8 InterpolationMode.NEAREST -]
                         |  resize v2  |  resize stable
1 threads: --------------------------------------------
      (3, 400, 400)      |      462    |        492
      (16, 3, 400, 400)  |     6870    |      10100

Times are in microseconds (us).

[- Resize cpu torch.uint8 InterpolationMode.BILINEAR -]
                         |  resize v2  |  resize stable
1 threads: --------------------------------------------
      (3, 400, 400)      |      330    |        853
      (16, 3, 400, 400)  |     4480    |      14900

Times are in microseconds (us).

[-- Resize cpu torch.uint8 InterpolationMode.BICUBIC -]
                         |  resize v2  |  resize stable
1 threads: --------------------------------------------
      (3, 400, 400)      |      1.7    |        1.7
      (16, 3, 400, 400)  |     28.6    |       28.7

Times are in milliseconds (ms).

Source

Closing in favor of https://github.com/pytorch/vision/pull/7557


espusbjtag: Transfer fewer bits

None of these changes is terribly important, but with this PR, espusbjtag no longer allocates anything when assembling scan data, and only captures data bits that are actually exposed by the driver.
This is similar to what OpenOCD does, but unfortunately this PR causes a 10-15% throughput reduction. The reason is that we capture fewer bits, which I think leads to the response buffer being potentially less often ready to read immediately.

An obvious way to improve this PR would be to avoid capturing bits more actively. During a firmware download, we basically read back equal amount of data automatically that we then just discard. A convenient solution would be to turn the deferred transfer handle into a pointer type, that, when dropped before executing a transfer, turns off capture on that transfer. The idea is that if we don't want to read something, we may save waiting for the USB device to generate data for us.


Allow turning off SA_RESTART

Using a signal to trigger a custom exit path from a daemon/"infinite loop" app is a common pattern. However, if the app runs blocking I/O in the main thread, this requires turning off SA_RESTART: otherwise libc will automatically restart any blocking I/O calls after a signal, without giving the app a chance to react to the signal (e.g. check a flag). signal-hook right now hardcodes SA_RESTART.
In my case, the app reads data from a device which could be idle "forever", so there is no way to force it to exit out into user Rust code as long as SA_RESTART is set (without some ugly thing like closing the device directly in the signal handler, but that violates all the other layerings/abstractions so it kind of defeats the purpose).
Right now I am hacking it off after setting up the handler with signal-hook:
    unsafe {
        let mut act: libc::sigaction = core::mem::zeroed();
        assert!(libc::sigaction(signal_hook::consts::SIGQUIT, core::ptr::null(), &mut act) == 0);
        act.sa_flags &= !libc::SA_RESTART;
        assert!(libc::sigaction(signal_hook::consts::SIGQUIT, &mut act, core::ptr::null_mut()) == 0);
    }

... but it would be really nice if I didn't have to dig into libc to do that.

Hello
I've always found relying on interrupting system calls as error prone. Let's say you have something like this:
while (!terminate_flag.load()) {
    // But what if the signal arrives in here? Then the read will still get stuck forever.
    connection.read(buffer);
    handle_data(buffer);
}

Are you able to do such thing without this race condition?
Furthermore, what if the application spawns another thread (I'd say any dependency in Rust code can do that) and the signal happens to get delivered there instead of the main thread?
Or, can you provide a use case where it is actually correct without SA_RESTART and not with it, not merely works most of the times?

In this case it's a debug action, so "works almost all of the time" is certainly a lot more useful than "never works" ;)
The "correct" approach here would be to use a pipe to signal the main thread, so it can poll() on both it and the device. To implement that (in safe rust), signal_hook would have to offer that primitive (write to a file descriptor, or some higher level wrapper over the concept) as a signal handler.

I'm kind of reluctant to provide "works sometimes" solutions, the goal of the library is towards doing it correctly.
It does provide the primitive with the pipe (or, for technical reasons, a unix-domain socket): https://docs.rs/signal-hook/latest/signal_hook/low_level/pipe/index.html. You can also register both the flag and the pipe-write, the order of their execution is the same as the order of registration.
The iterator is just a wrapper over the pipe and flags for all the signals.
A completely different alternative would also be to set a timeout on the blocking file descriptor: https://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout. That way if there are no data until the timeout happens, the one read fails, but next read can be executed in the next iteration. This is a bit non-elegant because it a) doesn't react immediately to the signal, but only after the timeout happens and b) introduces "activity" even if everything is idle. But might be good enough for debug purposes.

Heh, I somehow completely missed that module.
Feel free to close this then, I'm fine with continuing to use the libc hack (for my use case it really doesn't matter that it's not perfect, but I understand not wanting to implement potential footguns like that).


 INSERT fails.\r\nThe statement has been terminated.",

The odd thing is in the debugger I can see the Id property in the instance has a value, so am I doing something wrong here?

You need to put autoincrement=false on the primary key attribute.

ah ok thanks will give that a try.

Huzzah works, is this documented anywhere as I couldnt find anything related to this, and a quick "gotcha" or something somewhere would be super helpful.
Thanks for quick response.


support ps(program stream) frame parse from rtp payload over tcp/udp

RT,thanks

Could you explain better? Do you mean metadata stream ?

@BogdanovKirill thanks for you reply.
when rtp payload is PS(MPEG2 Program Stream) type,raw H264 data needs to be unpacked from PS payload.at this point, the current project will not work properly.
but.i'm trying parse PS and send raw h264 data to RtpStream,not working.
example code:

and add handler

occasionally can trigger OnFrameGenerated event，but decode frame not working,code :
   if (!(rawFrame is RawH264IFrame rawVideoFrame))
                return;
           // rawVideoFrame.CleanSpsPpsSegment();
            FFmpegVideoDecoder decoder = GetDecoderForFrame(rawVideoFrame);
            if (!decoder.TryDecode(rawVideoFrame, out DecodedVideoFrameParameters decodedFrameParameters))
                return;

decoder.TryCode return error code -3.
i confirm that the data format is raw h264 and the pixel format is YUV420p(parse from ffmpeg).
attchment:
rtp&h264 dump.zip


Fine tuning

How to fine tune your model?
I don't have sufficient data to retrain your model from scratch.
I want to fine tune your model on my data which has only two classes ?

any update?
@Guanghan


Add Zip::File, Zip::Reader and Zip::Writer

Please check the docs for Zip, Zip::File, Zip::Reader and Zip::Writer. The docs explain why there are two types for reading a zip file.
I needed to add File#read_at and IO::Memory#read_at for this. This isn't strictly necessary, but provides a way to read multiple files from a zip file (stored in a File or IO::Memory) concurrently without problems, so you could for example extract multiple files concurrently. For File I used pread, and for IO::Memory I use a sub-view. Go also uses pread for reading from a zip file.

I think there we are missing specs for zip with files nested in directories.
From this SO thread we should be able to write with / but both \ and / should be checked at parsing.

@bcardiff Zip entries have a filename, for example "foo/bar/baz.txt". There's no notion of "directories" inside a zip file, you just add entries to it. A directory entry is assumed to have a trailing "/" and no content, but that's not enforced by the zip spec. What would the missing spec look like?

I checked with a .zip created in windows and they do have forward slashes as path separator. This SO thread had better references.
Regarding missing specs, I though entries were traversed in a tree fashion. Maybe a spec could be added to clarify that.

Entries are stored sequentially inside a zip file. I must admit that I learned everything about the zip file format for implementing this functionality and I also didn't know how zip file entries were stored. I don't know how much of the spec we should repeat in the docs, though... For example, in the spec it says:
4.3 General Format of a .ZIP file
---------------------------------

 4.3.3 Files MAY be stored in arbitrary order within a ZIP file.

So you can put first a file named "foo/bar/baz.txt", then a directory named "foo/", then a directory named "foo/bar/" and so on, without any order that relates to a tree in the filesystem.
There's also the thing that Zip::Reader reads zip entries sequentially from a stream, so this means the order comes from the zip file and can't be that of a tree. For Zip::File we could do something "smarter", but maybe people expect the entries to be in a specified order, because a zip file maintains an order (so if at one point I compress a file and put file "a.txt" in the beginning and in another point in the program I decompress it, I can be very sure that the first entry will be "a.txt")

Does it support ZIP64 archives?

@Sija No, ZIP64 is not supported, there's a note I left in the doc comment of the Zip module. It can be implemented later in a separate PR. ZIP64 allows you to compress files bigger than 4GB, which shouldn't be terribly common.

@asterite Roger that, thx for clarifying.


Change log level dynamically

Sometimes, system wants to run in the mode that log minimal message. However, when some unexpected happens, user might want to change specific log level for debugging.
This modification enables logger with functional to change log level for specific tag.

Change in pull request #3, close issue


Theme panel not visible

Hi I am looking into your repo, how do you invoke theme panel in the right pane? I tried to alter .storybook/config.js
import * as storybook from '@kadira/storybook';
import { setOptions } from '@kadira/storybook-addon-options';

setOptions({
  name: 'sm-react',
  url: 'https://github.com/sm-react/storybook-addon-material-ui',
  goFullScreen: false,
  showLeftPanel: false,
  showDownPanel: false,
  showSearchBox: false,
  downPanelInRight: true, // here?
});

storybook.configure(() => require('./../example/stories/'), module);

Hi @makstr! To open right panel use the Show Theme Editor switcher at the right of down panel:

If this is not what you are asking, please, give me more details

sorry @makstr it was really bug. now it fixed


Fix NRE when old matcommodlist is null

This should fix EDDiscovery/EDDiscovery#2957

Ta, got it already with:
   MaterialCommoditiesList newmc = oldml ?? new MaterialCommoditiesList();

        if (je is ICommodityJournalEntry || je is IMaterialJournalEntry)    // could be both
        {
            newmc = new MaterialCommoditiesList(newmc);          // so we need a new one, makes a new list, but copies the items..

stupid me.


Javascript refactoring megathread

What started out as exploring how to integrate localization has turned into some thoughts on how to refactor the JS to be more organized (apart from just splitting logically into multiple files) and have the code be more modular, clean up the global variable space, etc. This branch: https://github.com/codeforamerica/streetmix/tree/node-i18n
This branch is not likely to contain a complete overhaul of the code, but just parts of it that are relevant to localization. The first foray here came about as a result of adding a "Settings" menu (which only has "Language" as a setting; the design& UI implications of this menu should be another issue, really), so while doing that, I refactored the code behind the top menu bar items so that they're instances of a menu object namespaced to a global Stmx (ideally, everything gets namespaced to Stmx or some such object eventually).
More on this particular pattern: http://www.yuiblog.com/blog/2007/06/12/module-pattern/ (more or less)
Please review & comment on whether this is a good direction to take here on out? Other ideas are welcome before I go too far. One thing I haven't thought out yet is where I would put functions pertaining to individual menus (the feedback form and share menu have quite a bit of those). Extending objects? @drewda @mwichary

There's been a ton of progress on this, and the codebase is entirely ES6-based modules now, while refactoring work is taking a dramatically different approach than anything discussed here, so let's call this thread done. 😄


Proxy fails when using --secure flag

Hi,
I'm trying out the new --secure flag. The client app works correctly  but the proxy feature fails to pass the request to the backend with the following error:
[error] [500] /api/status
[error] TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token [":path"]
    at ClientRequest.setHeader (_http_outgoing.js:543:3)
    at new ClientRequest (_http_client.js:249:14)
    at Object.request (http.js:46:10)
    at Array.stream (C:\dev\Sonica\ClientApp\node_modules\http-proxy\lib\http-proxy\passes\web-incoming.js:126:74)
    at ProxyServer.<anonymous> (C:\dev\Sonica\ClientApp\node_modules\http-proxy\lib\http-proxy\index.js:81:21)
    at requestHandler (C:\dev\Sonica\ClientApp\node_modules\snowpack\dist-node\index.js:3629:30)
    at Http2SecureServer.<anonymous> (C:\dev\Sonica\ClientApp\node_modules\snowpack\dist-node\index.js:3940:20)
    at Http2SecureServer.emit (events.js:315:20)
    at Http2SecureServer.onServerStream (internal/http2/compat.js:809:10)
    at Http2SecureServer.emit (events.js:315:20)
    at ServerHttp2Session.sessionOnStream (internal/http2/core.js:2778:19)
    at ServerHttp2Session.emit (events.js:315:20)
    at emit (internal/http2/core.js:289:8)
    at processTicksAndRejections (internal/process/task_queues.js:87:22) {
  code: 'ERR_INVALID_HTTP_TOKEN'
}

This is my proxy configuration:
module.exports = {
  extends: '@snowpack/app-scripts-svelte',
  proxy: {
    '/api': {
      target: 'http://localhost:5000/',
    },
    '/hubs': {
      target: 'http://localhost:5000/',
      ws: true,
    },
  },
};

I have also tried to change the backend to use https instead of plain http but the error is just the same. If I remove the --secure flag the proxy works ok.
Thanks!!

Hmm I suspect this is because you're proxying to a non-secure API. I can take a look later today. I might have to change the default options for secure severs using proxies.

Thanks @stramel.
I've changed my backend to run with https enabled and I have observed the exact same behaviour. Without the flag, proxy calls to the https backend succeed as usual, but with the flag enabled, the error is thrown.

Thanks for taking a look, @stramel !

This seems to be an issue with the fact we're using an HTTP2 server and the http-proxy lib can't handle that.

I think that's a fair compromise for proxies to force --secure users down to HTTP 1, as long as the code to switch between the two isn't too wild.

Shouldn't be! I will have a PR out here in a bit 😄

This issue has resurfaced in 3.0 release as the proxy configuration is deprecated and there is no way to force HTTP 1.1 for --secure option.

This issue has resurfaced in 3.0 release as the proxy configuration is deprecated and there is no way to force HTTP 1.1 for --secure option.

@stramel, @FredKSchott this issue should possibly be reopened since --secure does not work since the 3.0 release

@stramel, @FredKSchott this issue should possibly be reopened since --secure does not work since the 3.0 release

I was able to get this working using http2-proxy module as follows: https://github.com/snowpackjs/snowpack/discussions/1985#discussioncomment-205820
I propose making following changes to the code:

Update documentation to include http2-proxy configuration
Add option to secure flag (e.g. --secure=http1 & --secure=http2) with http2 being the default.

I can create a PR if these changes are acceptable.

I was able to get this working using http2-proxy module as follows: https://github.com/snowpackjs/snowpack/discussions/1985#discussioncomment-205820
I propose making following changes to the code:

Update documentation to include http2-proxy configuration
Add option to secure flag (e.g. --secure=http1 & --secure=http2) with http2 being the default.

I can create a PR if these changes are acceptable.


Commit 10 FEB 21

created a branch, created a file and made a commit, and opened a pull request

file name is changed, previous file deleted. what else is wrong?


What is Slot-O-Matic / How do I use it?

When building, I get the error:
Slot with name yyy not found on class xxx have you run slot-o-matic?
What is slot-o-matic? is it an executable on my system, or where can I get it from?

HI @lukedukeus ,
Slot-o-matic is part of the development toolchain for Niagara developers.  If you're not sure how to use it then I suggest you get in contact with your Niagara distributor or reseller and ask for support.
Slot-o-matic isn't specific to this nhaystack module so for now I'm going to close this issue.
Thanks for reaching out!


fix(share_plus): fix shareUri method adding sharePositionOrigin parameter.

Description
share_plus requires iPad users to provide the sharePositionOrigin parameter. This parameter is not available in the shareUri method.
When the sharePositionOrigin  parameter is not provided on iPads you will see the following error:
PlatformException (PlatformException(error, sharePositionOrigin: argument must be set, {{0, 0}, {0, 0}} must be non-zero and within coordinate space of source view: {{0, 0}, {1024, 1366}}, null, null))

This PR also:

Updates the tests. shareUri method was not included in the tests.
Updates and fixes the example.

Related Issues

Fix #2464

Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I titled the PR using Conventional Commits.
[x] I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[x] No, this is not a breaking change.

It might make sense to add in the subject parameter while you are at it, just to completely match the signature of Share.share

Thanks for the contribution @rodruiz I will take a look at it.

It might make sense to add in the subject parameter while you are at it, just to completely match the signature of Share.share

I think it would be nice to have subject param as well (that may help with issues like https://github.com/fluttercommunity/plus_plugins/issues/1956), but I'd prefer if it can be done in a different PR. Anyone willing to do it, please go ahead!

box position looks good!

Sorry, I forgot to merge this one. Going to merge main, and probably will merge after if everything is still good.


Removed hard-coded client_id from some urls

I was getting 400 errors running this. On investigation, I found some hard-coded client_ids. Removing them didn't fix the issue, but I don't want to run as your app ;)

@oh-moore @Apph3x @coryalder
Hey I also keep getting "Error 400"s and "followed by"s. I went through and double checked that the hard coded-client_id's were altered as written in your updated code, but no luck. Is there anything I can do to get this working? I'm a lil noobish, but I'm a quick learner.


Question reg. #3426

Avoid duplicates

[X] Question is not already answered in the FAQ
[X] Question is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[X] Question has not already been asked in another issue

Your Question
#3426 changed the notifications notifying the user about a soon or already expired certificate from "Überprüfen Sie die Gültigkeit Ihrer Zertifikate." to "Es gibt Neuigkeiten von Ihrer Corona-Warn-App.".
Now my question is what will be opened when the user taps on this notification?
a) The certificate that expires soon or is already expired? In this case everything should be fine, although the user still has to find out what the app wants to tell them by themselves.
b) The start screen of the app? In this case a normal user probably won't search the whole app for any "news".
c) The certificates overview? In this case a normal user probably also won't look at each certificate.

I saw from PRs that the person overview is opened & and there are notification icons for certificates now (#3504).
Closing as answered.


Update multi_nodes.rst

命令是错的，初体验都有问题的话，怎么能让用户更加进入这个东西呢?
Description
What is the purpose of the change?
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

Brief of your solution
Please describe your solution to solve the issue or feature request.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

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

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

命令不是错的，sh 和 bash 是有区别的，sh 可以理解为是 bash 的一种模式，如果你的机器只能使用 bash 可以用这个命令，或者改一下机器相关配置支持 sh 命令，谢谢。

收到，这里可能是因为我的问题，我配置都喜欢用bash，因为配置默认是bash嘛，感谢大佬帮我普及了一个知识呵呵哈哈哈或 # # #

收到，这里可能是因为我的问题，我配置都喜欢用bash，因为配置默认是bash嘛，感谢大佬帮我普及了一个知识哈哈哈哈哈哈哈哈哈

问题已经解决了吗？解决了这个pr就 close 了哈。

关闭吧，这个问题也请在官方文档中修改一下，因为现在大家都还是喜欢用bash，麻烦了


Updated the addon package's Babel configuration

Description
I introduced a few changes to the Babel configuration for v2 addons:

Changed the default option for @babel/plugin-proposal-decorators to { "legacy": true } (to address a bug), then to { "version": "legacy" } (to address a deprecation)

Use version: "legacy" instead. This option is a legacy alias.

Reordered the plugins to group Babel plugins together

Removed @babel/plugin-syntax-decorators (unused) from package.json

The latter two code changes may be considered new to @embroider/addon-blueprint. I've created and used v2 addons with these changes for about 3 months, so I think we can consider the changes safe to implement.
Notes
The failing status check Tests (typescript), with the error message Cannot find module '@babel/plugin-proposal-object-rest-spread', is unrelated to this pull request.

I encountered the error message while trying to update the dependencies of ember-container-query (failed in #194, then later succeeded in #196 and #197).
According to https://github.com/babel/babel/issues/15670#issuecomment-1569606333, the issue might have been caused by rollup-plugin-ts not declaring @babel/plugin-proposal-object-rest-spread as a dependency or peer dependency.

Thank you!


Testing v3.7.1

Below are the items covered in functional test

Average
Percentage
cumulative

Note: Back-end functionality is covered, not UI

Functional testing of average is completed. Working as expected.

Functional testing of percentage is completed. Working as expected.

Functional testing of cumulative is completed. Working as expected.

Completed


Add triggering filter to alert embed title

The current alert embed for a triggered filter puts the filter type in the main body, where it's easily missed - especially for those of us who have higher-res screens.
Having the triggering filter in the embed's title will give instant access to that information at a glance. Below image is a mockup of what I propose:

I am not precious about the exact formatting of the title, as long as the information is in there.

I am in favor.

All of our filters are prefixed with filter right ?
If you want, I could send a PR for this @Etzeitet.
As for implementation we could split based on the underscore then build the title and the type of filter from there.
OR, we could add a key that can hold a descriptive name for each filter.
What do you think ?


Custom reporter in CommonJS project fails after v0.12.0

Using a custom reporter in a top level project using "type": "commonjs" is not possible since v0.12.0 when the ESM migration was done:
module.exports = async function reporter() {
	// ...
};

Adding the following log after the printReport is defined:
console.log('printReport', printReport);

Yields the following:
printReport [Module: null prototype] { default: [AsyncFunction: reporter] }

Running the tool errors like:
 file:///home/runner/work/foo/node_modules/knip/dist/cli.js:37
        await printReport({ report, issues, cwd, workingDir, isDev, options: reporterOptions });
              ^

TypeError: printReport is not a function
    at run (file:///home/runner/work/foo/node_modules/knip/dist/cli.js:37:15)

This used to work on knip v0.11.0. The log above printed this on that version:
printReport [AsyncFunction: reporter]

@webpro This has regressed in v1.2.0 (most likely in v1.0.0).

Oops... there are no "integration" tests yet (meaning only that cli.ts module does not have coverage yet) and this isn't trivial to set up (added ticket #44 for this).
For now, this should be fixed again in v1.4.0.


Convention for git commits & pull requests

Some things to include:

Useful commit messages
When to keep commits separate and when to squash
Checking files/changes committed before PR - to ensure you did not include unintentional changes or files that shouldn't be committed
Rebase vs merge: - before PR - always rebase on master; after PR, TBD decide on convention -  (rebase vs merge)
Other tips & tricks, links

I had originally planned to do this one but it turned out to be a little more nuanced then I had initially thought #441
My Original Comment:

Add reviewers to PR
2 must approve to merge into master
The reviewer making the 2nd approval should merge immediately into master if:
    There are no un-resolved changes requested by other reviewers
    There is merge conflict due to recent commits to master - the reviewer can resolve if they feel they can confidently do so OR ask the requester to resolve and complete the merge

At their discretion, repo admins can merge small or urgent changes without the 2 required approvals.

The thing that is not quite so clear cut - The reviewer making the 2nd approval should merge immediately into master if - it does kind of depend. Sometimes 2nd approval can approve and make optional suggestion for author to implement if they feel like it.
But generally:

Two approvals are required to merge into master
All reviewer change requests should be resolved before merging
Merge does not need to be completed by the author, the 2nd approving reviewer can merge into master if no pending change requests or ask author to complete (e.g. if there are optional suggestions for the author to implement at their discretion)
At their discretion, repo admin can merge small or urgent changes without the 2 required approvals

Is this resolved @idjevm @joshmorel ?


Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase

I use the PHPUnit\Framework\TestCase notation instead of PHPUnit_Framework_TestCase while extending our TestCases. This will help us migrate to PHPUnit 6, that no longer support snake case class names.
Just needed to bump PHPUnit version to ^4.8.36, that contains support for this change.

Thanks!


New update is not backwards-compatible

Great package, thanks for it!
Small note: it seems version 1.1.1 is not backwards-compatible with 1.0.2, which causes issues because Cargo assumes that it can install the latest semver-compatible build. Easy enough to fix by setting
rsruckig = "=1.0.2"
but I didn't even know Cargo did that, so it took me a while to figure it out :P Specifically I was hitting issues with the fact that the Ruckig struct now has two generics instead of one.

I am happy to hear that you have found the package useful!
It seems there was a mistake in versioning. I should have bumped the major version, not minor because of the breaking changes. As there is no way to delete a version from crates.io, I think we just need to accept this as is for now, and and I am glad to hear you have found a workaround. However, these changes are here to stay as they originate from the original Ruckig C++ version, which allows to declare number of DOF as a template parameter or dynamically. In general, the change is minor, so it depends on the size of your application, but it may make sense to refactor it to reflect the changes in the library.


Test & verify connection with provider

It would be great if there was a checkmark next to the provider name on the providers list which signified that the connection had been established and that data was being received.

Did think of something similar some time ago but I had no clear idea about a proper way to implement it 😅
That could be a great addition for providers management. Thanks for the suggestion!

While you consider how to implement, more docs on provider setup would be very helpful. Good defaults for the existing providers would help with this also.

There is certainly quite room for improvement, but didn't really had much time to spend on Facette lately.
But I started to work on major back-end changes and UI redesign including (but not limited to) improvements to providers management (e.g. placeholders highlighting defaults or providing example values and help tooltips).
Sadly, it's still not usable at its current state.


GitHub actions

Proposed changes:

Switch from travis to github actions
Improve testing performance by reusing trained models
Updated pytype to latest version

TODO:

[x] change docs-gh in documentation workflow to docs (before merge)
[x] remove github-ci-workflow from allowed branches on documentation.yml (before merge)

Future TODO:

move to poetry and caching https://medium.com/@vanflymen/blazing-fast-ci-with-github-actions-poetry-black-and-pytest-9e74299dd4a5 (once poetry is done)

Status (please check what you already did):

[x] switch all jobs
[x] updated the documentation
[x] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

@wochinge I've clustered the different changes in single commits to make it easier to review. They are a bit unrelated, but all of them were somehow necessary to get it all running on github actions.

Huge!!


Godeps file does not exist Error on gpm install

Downloaded the latest code and when tried to download and build the project it is throwing error
[root@or1hdp584 Burrow]# pwd
/workspace/go/src/github.com/linkedin/Burrow
[root@or1hdp584 Burrow]# gpm install

Godeps file does not exist.
All Done
[root@or1hdp584 Burrow]# go install
core/internal/storage/inmemory.go:20:2: cannot find package "github.com/OneOfOne/xxhash" in any of:
/usr/local/go/src/github.com/OneOfOne/xxhash (from $GOROOT)
/workspace/go/src/github.com/OneOfOne/xxhash (from $GOPATH)
core/internal/httpserver/config.go:16:2: cannot find package "github.com/julienschmidt/httprouter" in any of:
/usr/local/go/src/github.com/julienschmidt/httprouter (from $GOROOT)
/workspace/go/src/github.com/julienschmidt/httprouter (from $GOPATH)
core/internal/evaluator/caching.go:18:2: cannot find package "github.com/karrick/goswarm" in any of:
/usr/local/go/src/github.com/karrick/goswarm (from $GOROOT)
/workspace/go/src/github.com/karrick/goswarm (from $GOPATH)
core/internal/helpers/sarama.go:19:2: cannot find package "github.com/spf13/viper" in any of:
/usr/local/go/src/github.com/spf13/viper (from $GOROOT)
/workspace/go/src/github.com/spf13/viper (from $GOPATH)
core/internal/helpers/coordinators.go:21:2: cannot find package "github.com/stretchr/testify/mock" in any of:
/usr/local/go/src/github.com/stretchr/testify/mock (from $GOROOT)
/workspace/go/src/github.com/stretchr/testify/mock (from $GOPATH)
core/protocol/protocol.go:21:2: cannot find package "go.uber.org/zap" in any of:
/usr/local/go/src/go.uber.org/zap (from $GOROOT)
/workspace/go/src/go.uber.org/zap (from $GOPATH)
core/internal/httpserver/coordinator.go:32:2: cannot find package "go.uber.org/zap/zapcore" in any of:
/usr/local/go/src/go.uber.org/zap/zapcore (from $GOROOT)
/workspace/go/src/go.uber.org/zap/zapcore (from $GOPATH)
core/logger.go:25:2: cannot find package "gopkg.in/natefinch/lumberjack.v2" in any of:
/usr/local/go/src/gopkg.in/natefinch/lumberjack.v2 (from $GOROOT)
/workspace/go/src/gopkg.in/natefinch/lumberjack.v2 (from $GOPATH)

I get the same:
Step 9/16 : RUN cd $SRCPATH/github.com/linkedin/Burrow && gpm install && go install
---> Running in a606b068b162

Godeps file does not exist.
All Done
core/internal/storage/inmemory.go:20:2: cannot find package "github.com/OneOfOne/xxhash" in any of:
/usr/local/go/src/github.com/OneOfOne/xxhash (from $GOROOT)
/go/src/github.com/OneOfOne/xxhash (from $GOPATH)
core/internal/cluster/kafka_cluster.go:17:2: cannot find package "github.com/Shopify/sarama" in any of:
/usr/local/go/src/github.com/Shopify/sarama (from $GOROOT)
/go/src/github.com/Shopify/sarama (from $GOPATH)
core/internal/httpserver/config.go:16:2: cannot find package "github.com/julienschmidt/httprouter" in any of:
/usr/local/go/src/github.com/julienschmidt/httprouter (from $GOROOT)
/go/src/github.com/julienschmidt/httprouter (from $GOPATH)
core/internal/evaluator/caching.go:18:2: cannot find package "github.com/karrick/goswarm" in any of:
/usr/local/go/src/github.com/karrick/goswarm (from $GOROOT)
/go/src/github.com/karrick/goswarm (from $GOPATH)
core/internal/notifier/coordinator.go:37:2: cannot find package "github.com/pborman/uuid" in any of:
/usr/local/go/src/github.com/pborman/uuid (from $GOROOT)
/go/src/github.com/pborman/uuid (from $GOPATH)
core/protocol/protocol.go:20:2: cannot find package "github.com/samuel/go-zookeeper/zk" in any of:
/usr/local/go/src/github.com/samuel/go-zookeeper/zk (from $GOROOT)
/go/src/github.com/samuel/go-zookeeper/zk (from $GOPATH)
core/internal/helpers/sarama.go:19:2: cannot find package "github.com/spf13/viper" in any of:
/usr/local/go/src/github.com/spf13/viper (from $GOROOT)
/go/src/github.com/spf13/viper (from $GOPATH)
core/internal/helpers/coordinators.go:21:2: cannot find package "github.com/stretchr/testify/mock" in any of:
/usr/local/go/src/github.com/stretchr/testify/mock (from $GOROOT)
/go/src/github.com/stretchr/testify/mock (from $GOPATH)
core/protocol/protocol.go:21:2: cannot find package "go.uber.org/zap" in any of:
/usr/local/go/src/go.uber.org/zap (from $GOROOT)
/go/src/go.uber.org/zap (from $GOPATH)
core/internal/httpserver/coordinator.go:32:2: cannot find package "go.uber.org/zap/zapcore" in any of:
/usr/local/go/src/go.uber.org/zap/zapcore (from $GOROOT)
/go/src/go.uber.org/zap/zapcore (from $GOPATH)
core/logger.go:25:2: cannot find package "gopkg.in/natefinch/lumberjack.v2" in any of:
/usr/local/go/src/gopkg.in/natefinch/lumberjack.v2 (from $GOROOT)
/go/src/gopkg.in/natefinch/lumberjack.v2 (from $GOPATH)
The command '/bin/sh -c cd $SRCPATH/github.com/linkedin/Burrow && gpm install && go install' returned a non-zero code: 1

Please refer to the project readme file. Burrow no longer uses GPM, it now uses dep.


Stack Lottery is not random or secure at all!

In the Stack Lottery contract the winner is chosen when numtickets == maxTickets. Both of these variables can easily be read so someone can just wait until numtickets == maxTickets - 1 to "buy" their ticket.
Even though the numtickets and maxTickets variables are private, you can still get their current values.
Let's look at your live version: http://lottery.powdercode.com/
At the time of writing this ticket maxTickets (the 0th variable in your contract) is:
web3.eth.getStorageAt('0x1e217ADC6a6ADC16E248af109Ab7EFA4d1bb252D', 0, function() { console.log(arguments[1]); })
> 0x0000000000000000000000000000000000000000000000000000000000000011

So 17.
And numtickets (the 5th variable in your contract) is:
web3.eth.getStorageAt('0x1e217ADC6a6ADC16E248af109Ab7EFA4d1bb252D', 5, function() { console.log(arguments[1]); })
> 0x0000000000000000000000000000000000000000000000000000000000000000

So 0.

The aim of this lottery was to avoid using RNG, so yes... it's not random. And the fact that you know how many tickets are bought does not give more advantage than looking the contract at Etherscan or creating a contract to watch the lottery state.
If you think that security is the same as fairness, I can agree that technical knowledge in blockchain will increase your odds. there are several threads on Reddit discussing RNG where we ended talking about this lottery system and how it's based more on strategy than simple luck.
I want to clarify that this contract is more case study. although I deployed it, It should not be brought to a broad audience or make a commercial use just as it is. I'll edit the readme file to avoid more confusion.

Why would it not give me an advantage? Or do you mean everyone has the same advantage? Why would anyone buy a ticket if numtickets isn’t maxTickets - 1?
Besides it’s not fair at all as currently a miner could 100% win as they could just mine a transaction where they always buy the last ticket.

If you think that security is the same as fairness, I can agree that technical knowledge in blockchain will increase your odds.

Here I'm saying that you can gain advantage if you understand how the contract works. I'm also saying that you found a way to "read the contract" but there are other ways that also give you that information, even with a simpler way.

Why would anyone buy a ticket if numtickets isn’t maxTickets - 1?

That's not the correct question. If maxTickets = 10 and numTickets = 8 I can place 2 consecutive tickets ans still make huge benefit, you could make profit with only 2/3 tickets on the stack. It all depends on how much you want to wait and how much you want to win. Buying a ticket knowing that numTickets = 0 is not so smart.
As I said, it may not be the most fair lottery system as you can increase your chances by understanding the code. But a miner does not have more advantage than other wise users.

Since miners are able to include any transaction they want and are able to order the transactions in any way they want they can always insert a transaction from themselves that buys the last ticket. So if miners want to they can always win this lottery.
Note: I'm not saying individual miners can, I'm saying all miners together can.

Discussion ended. Closing.


[Link change] - now linking to the latest version

Link to https://laravel-mix.com/docs/basic-example will always redirect to the latest version :smile:

Duplicate of #2246

Vote to close in favour of #2246


timestamp: clarify that strptime produces DateTime not Duration

Prompted by: https://stackoverflow.com/questions/75654140/trouble-with-strptime-conversion-of-duration-time-string I went down a rabbit hole into how Dates and Times and Durations are handled.
The docs as of now are misleading, as DateTime cannot be safely cast to Time.
Maybe there should be a section on "Duration Stamp" parsing. The hacks suggested in the SO answer are not ideal. E.g. duration can certainly be negative. What about Time? Probably not. So Duration stamps should be handled separately. Otherwise all sorts of subtle bugs can creep in.
This PR is an attempt to defuse the ambiguity without proposing a clear way forward - this should be separately handled.

@braaannigan Can you explain what you think the snippet should do? Because the SO answer is broken - I would advise against using the code in the SO answer.


refactor: update caching defaults

This pull request ensures that all Prometheus metrics are updated at the same rate. It further increases the caching defaults for the delegators and score exporters to alleviate the endpoints.

Hey @stronk-dev, I'd love your take on these fresh defaults. As a newcomer to the Livepeer project, I'd like to know how often the data from these endpoints gets updated. Any insights you'd be able to share would help me alleviate the load on the endpoints! The current endpoints are.

crypto_prices_exporter uses the https://api.coinbase.com/v2/exchange-rates?currency=USD endpoint. This endpoint is rate-limited by Coinbase, so I don't see any problems keeping it at 1 reqoneest every minute.
orch_delegators_exporter uses the LivePeer subgraph. https://requestmetrics.com/resources/tools/http-cache-checker/ states that this data is not cached, but that would surprise me 😅.
orch_info_exporter also uses  LivePeer subgraph.
orch_rewards_exporter also uses  LivePeer subgraph.
orch_score_exporter uses https://explorer.livepeer.org/api/score/, which appears to be uncached.
orch_test_streams_exporter uses https://leaderboard-serverless.vercel.app/api/raw_stats?orchestrator, which also appears to be uncached.
orch_tickets_exporter also uses  LivePeer subgraph.

Thanks a lot in advance!

Any data on the Livepeer Subgraph would only be updated when someone interacts with LP's smart contracts, usually every few minutes. They are currently on the subgraph hosted service, not sure what the costs are for that, but once they switch to the decentralised version there will be a very small cost per query ( about $0.0002 ). LP Inc received a ton of free GRT tokens to bootstrap this, but LP Inc (and hopefully other actors) would have to add GRT to ensure people can keep querying. But keeping this data in memory with a 2 to 15 minute timeout should be plenty. My API is basically a self hosted subgraph, so once the new one's finished you could just run that yourself and have infinite queries for heavier data analysis
Test scores do get cached now as of today and are very infrequent, IIRC it's an hourly cronjob. Each O get's 3 tests daily per ingest region so the timeout here could be something like 15 minutes or w/e
On another note: is that coinbase API free to use? What's the rate limiting like? I currently use coinmarketcap for my API which does have a very annoying rate limiting policy, so i might switch if coinbase's api is better

@stronk-dev thanks a lot for your reply. I adjusted the timeouts to the values that you recommended 👍🏻! We can increase or cap them if the Livepeer endpoints receive too many requests.

On another note: is that coinbase API free to use? What's the rate limiting like? I currently use coinmarketcap for my API which does have a very annoying rate limiting policy, so i might switch if coinbase's api is better

The Coinbase API is rate limited to 10 requests per second, which for my exporter is more than enough 😄. I chose it over Coinmarketcap because of its less aggressive rate limit.


"Rename symbol" issue for macro name

Issue Type: Bug
It seems that "Rename Symbol" works for all macro names instances expected for the selected one.
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Xeon(R) CPU E3-1545M v5 @ 2.90GHz (8 x 2904)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.89GB (23.68GB free)

Process Argv
--crash-reporter-id 0fb39751-1f82-44aa-bd1e-aa82972e425e

Screen Reader
no

VM
0%

Extensions (8)

Extension
Author (truncated)
Version

atlascode
atl
2.9.1

python
ms-
2021.6.944021595

vscode-pylance
ms-
2021.6.3

jupyter
ms-
2021.6.999662501

cpptools
ms-
1.4.1

vscode-yaml
red
0.20.0

arduino-snippets
ron
1.0.2

vscode-arduino
vsc
0.4.3

/gifPlease

Hello,
I want to rename some #define macro.

I select the name (double click)
I press F2
I type the new name
I press Enter
All the occurrences of the name are updated except the first one (selected)

HTH
PS: recording attached
Jérôme Girard
De : VS Code Issue Triage Bot @.>
Envoyé : lundi 28 juin 2021 08:36
À : microsoft/vscode @.>
Cc : Jerome Girard @.>; Author @.>
Objet : Re: [microsoft/vscode] "Rename symbol" issue for macro name (#127289)
Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).
Happy coding!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/127289#issuecomment-869401876 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFC4DDML2Q5A4NMGPCLN6DTVAJ63ANCNFSM47NJPUTA .  https://github.com/notifications/beacon/ADFC4DE3Z7RHSFIB5K3TIKLTVAJ63A5CNFSM47NJPUTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGPJAKFA.gif